message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
added duplicates() method to IPAddress and Prefix model managers.
refactored condition on IPAddress and Prefix clean method to use new
manager method. | @@ -262,6 +262,12 @@ class PrefixQuerySet(NullsFirstQuerySet):
return queryset
return filter(lambda p: p.depth <= limit, queryset)
+ def duplicates(self, prefix):
+ return self.filter(
+ vrf=prefix.vrf,
+ prefix=str(prefix)
+ ).exclude(pk=prefix.pk)
+
class Prefix(CreatedUpdatedModel, CustomFieldModel):
"""
@@ -299,7 +... |
Update Florida.md
geos | @@ -12,7 +12,7 @@ tags: protester, shove
id: fl-fortlauderdale-1
-geolocation:
+geolocation: 26.120612,-80.1446222
**Links**
@@ -31,7 +31,7 @@ tags: less-lethal, protester, rubber-bullet, shoot
id: fl-fortlauderdale-2
-geolocation:
+geolocation: 26.120612,-80.1446222
**Links**
@@ -48,7 +48,7 @@ tags: abuse-of-power, bo... |
Fix interrupt handling
Remove shield, switch gather to wait, queue restoration now happens in
try/except in _get_query_results. | @@ -233,13 +233,12 @@ class SqlValidator(Validator):
async def shutdown(self, signal, loop):
logger.info("\n\n" + "Please wait, asking Looker to cancel any running queries")
- logger.debug("Cleaning up Spectacles async tasks.")
+ logger.debug("Cleaning up async tasks.")
tasks = [t for t in asyncio.all_tasks() if t is n... |
Add libmkl_vml_def.so
* Add libmkl_vml_def.so
Needed by pytorch for CPU model execution
* Review edits | @@ -559,6 +559,7 @@ COPY --from=tritonserver_pytorch /opt/conda/lib/libmkl_intel_lp64.so /opt/triton
COPY --from=tritonserver_pytorch /opt/conda/lib/libmkl_intel_thread.so /opt/tritonserver/backends/pytorch/
COPY --from=tritonserver_pytorch /opt/conda/lib/libmkl_def.so /opt/tritonserver/backends/pytorch/
COPY --from=tr... |
Add smoke test for preprocessing.
The utility functions that this is using are all tested
separately, so a stronger test would be kind of redundant. | @@ -5,7 +5,7 @@ import networkx as nx
import pytest
from spektral.layers import CensNetConv
-from core import batch_size, F, S
+from core import batch_size, F, S, A
NODE_CHANNELS = 8
@@ -183,3 +183,11 @@ def test_get_config_round_trip():
# The new layer should be the same.
assert new_layer.node_channels == layer.node_c... |
Enhancement: better formating the initial text
# On branch pretty
# Changes to be committed:
# modified: core/commands/commit.py
# | @@ -155,7 +155,7 @@ class GsCommitInitializeViewCommand(TextCommand, GitCommand):
if has_prepare_commit_msg_hook and os.path.exists(commit_editmsg_path):
with util.file.safe_open(commit_editmsg_path, "r") as f:
- initial_text = f.read() + help_text
+ initial_text = "\n" + f.read().rstrip() + help_text
elif option_amend... |
share_decoder_embedding conflict with copy_generator
throw error: CopyGenerator dose not support index | @@ -565,11 +565,12 @@ def make_base_model(opt, model_opt, fields, cuda, checkpoint=None):
generator = nn.Sequential(
nn.Linear(model_opt.rnn_size, len(fields["tgt"].vocab)),
nn.LogSoftmax())
+ if model_opt.share_decoder_embeddings:
+ generator[0].weight = decoder.embeddings.word_lut.weight
else:
generator = onmt.module... |
Made the change more elegant
As suggested by This is of course more elegant. | @@ -101,9 +101,7 @@ def process_options(options):
# if there is a config variable with VERISIGN_PRODUCT_<upper(authority.name)> take the value as Cert product-type
# else default to "Server", to be compatoible with former versions
authority = options.get("authority").name.upper()
- product_type = current_app.config.get... |
generate_family_file.py: Add __future__ import line to generated family file
Also fix other minor stylistic issues detected by flake8. | @@ -141,19 +141,22 @@ class FamilyFileGenerator(object):
f.write("""
# -*- coding: utf-8 -*-
\"\"\"
-This family file was auto-generated by $Id$
+This family file was auto-generated by generate_family_file.py script.
+
Configuration parameters:
url = %(url)s
name = %(name)s
Please do not commit this to the Git reposito... |
Fix issue # 366
Set the right texture for rendering, otherwise a previously set texture is overwritten. | @@ -450,6 +450,7 @@ class GLViewWidget(QtOpenGL.QGLWidget):
glfbo.glFramebufferTexture2D(glfbo.GL_FRAMEBUFFER, glfbo.GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0)
self.paintGL(region=(x, h-y-h2, w2, h2), viewport=(0, 0, w2, h2)) # only render sub-region
+ glBindTexture(GL_TEXTURE_2D, tex) # fixes issue #366
## read text... |
TST: Add a test for monotonic basin-hopping (T=0)
(MBH always rejects steps that increase energy.) | @@ -301,6 +301,13 @@ class TestBasinHopping(object):
niter=10, callback=callback2, seed=10)
assert_equal(np.array(f_1), np.array(f_2))
+ def test_monotonic_basin_hopping(self):
+ # test 1d minimizations with gradient and T=0
+ i = 0
+ res = basinhopping(func1d, self.x0[i], minimizer_kwargs=self.kwargs,
+ niter=self.nit... |
[query/compiler] Update dependencies
These upgrades are simple and do not represent major version upgrades. | @@ -161,7 +161,7 @@ dependencies {
exclude group: 'com.fasterxml.jackson.core'
}
- bundled 'org.lz4:lz4-java:1.4.0'
+ bundled 'org.lz4:lz4-java:1.8.0'
// Breeze 1.0 has a known bug (https://github.com/scalanlp/breeze/issues/772)
unbundled 'org.scalanlp:breeze-natives_' + scalaMajorVersion + ':' + breezeVersion()
@@ -17... |
Add missing engine f/w for CAR.RAV4H_TSS2
Togo#7636
[also fixed some alpha-sorting] | @@ -993,8 +993,9 @@ FW_VERSIONS = {
(Ecu.engine, 0x700, None): [
b'\x01896634A15000\x00\x00\x00\x00',
b'\x018966342M5000\x00\x00\x00\x00',
- b'\x018966342X6000\x00\x00\x00\x00',
b'\x018966342W8000\x00\x00\x00\x00',
+ b'\0018966342X5000\x00\x00\x00\x00',
+ b'\x018966342X6000\x00\x00\x00\x00',
b'\x028966342W4001\x00\x00\... |
tests: Test for PMs in test_export_realm_with_member_consent.
Sending PM from a hamlet(consented) to othello is a case
of sending message from a consented user to a non consented
user. This result in the generation of more than one message
files during realm export. To handle this case _export_realm
is updated. | @@ -239,14 +239,21 @@ class ImportExportTest(ZulipTestCase):
exportable_user_ids=exportable_user_ids,
consent_message_id=consent_message_id,
)
- # TODO: Process the second partial file, which can be created
- # for certain edge cases.
export_usermessages_batch(
input_path=os.path.join(output_dir, 'messages-000001.json.... |
Fix docstring typo
`presizing` --> `presize` to conform to the actual function signature | @@ -45,7 +45,7 @@ def aug_tfms(
size: The final size of the image. If an `int` is given, the maximum size of
the image is rescaled, maintaing aspect ratio. If a `tuple` is given,
the image is rescaled to have that exact size (width, height).
- presizing: Rescale the image before applying other transfroms. If `None` thi... |
changed time format
fixed update response | @@ -101,17 +101,20 @@ script:
return incident
+ def isoformat(date):
+ return date.isoformat()[:-3] + 'Z'
+
# FUNCTIONS
def fetchIncidents():
incidents = []
t = datetime.datetime.utcnow()
- now = str(t)
+ now = isoformat(t)
lastRun = demisto.getLastRun() and demisto.getLastRun()['time']
if len(lastRun) == 0:
t = t - ti... |
Update README.md
fixed naming path python train_with_wav2vec.py hparams/train_with_wav2vec.yaml
to python train_with_wav2vec2.py hparams/train_with_wav2vec2.yaml | @@ -34,7 +34,7 @@ The recipe can also be used using a pretrained Wav2Vec as an encoder
```
cd direct
-python train_with_wav2vec.py hparams/train_with_wav2vec.yaml
+python train_with_wav2vec2.py hparams/train_with_wav2vec2.yaml
```
# Performance summary
|
Update apt_domestickitten.txt
Minor update for Reference section | # See the file 'LICENSE' for copying permission
# Reference: https://research.checkpoint.com/domestic-kitten-an-iranian-surveillance-operation/
+# Reference: https://twitter.com/malwrhunterteam/status/1340344596698677250
+# Reference: https://www.virustotal.com/gui/file/bd7779e6100e07b3eae67bfcdc53f1f08468651240229e284... |
sql: update memory control config
Via: | @@ -18,7 +18,13 @@ oom-action = "log"
## Configure the memory quota of a query
-You can control the memory quota of a query using the following session variables. Generally, you only need to configure `tidb_mem_quota_query`. Other variables are used for advanced configuration which most users do not need to care about.... |
Update changelog.rst
fix | @@ -60,9 +60,7 @@ Mobjects, Scenes, and Animations
#. Add customizable left and right bracket for :code:`Matrix` mobject and :code:`set_row_colors` method for matrix mobject
#. Add :code:`AddTeXLetterByLetter` animation
#. Enhanced GraphScene
-```suggestion
-Mobjects, Scenes, and Animations
-```
+
#. You can now add ar... |
DOC: fixed dostring warnings in registry
Fixed the docstring warnings and improved some of the block comment formatting. | @@ -26,6 +26,7 @@ registered in pysat_dir/user_modules.txt and is also listed in
::
pysat.user_modules
+
which is stored as a dict of dicts keyed by platform and name.
Once registered, subsequent calls to Instrument may use the platform
@@ -187,23 +188,24 @@ def register(module_names, overwrite=False):
# get platform a... |
Adding central packages to release
All Python packages, even nested ones, must be explicitly listed to be
part of the package. | @@ -15,7 +15,14 @@ with open("README.md", "r") as handle:
setup(
name="heat",
- packages=["heat", "heat.core"], # , "heat.core.cluster", "heat.core.regression"],
+ packages=[
+ "heat",
+ "heat.core",
+ "heat.core.cluster",
+ "heat.core.regression",
+ "heat.core.regression.lasso",
+ "heat.utils",
+ ],
data_files=["READM... |
normalize step + fft `entropy_spectral`
fft seems to be default in most papers implementing SpEn | @@ -9,6 +9,8 @@ def entropy_spectral(signal, sampling_rate=1000, **kwargs):
Spectral entropy (SE or SpEn) treats the signal's normalized power distribution in the frequency domain as
a probability distribution, and calculates the Shannon entropy of it.
+ A power spectrum with one or two dominant frequencies possesses a... |
Add kwargs to CHP Tech class super()
This wasn't needed until new Tech class attributes for export/curtail were introduced.
This fixed the assignment of the can_[export/curtail] inputs for CHP. | @@ -331,7 +331,7 @@ class CHP(Tech):
def __init__(self, dfm, run_uuid, existing_boiler_production_type_steam_or_hw, oa_temp_degF, site_elevation_ft,
outage_start_time_step=None, outage_end_time_step=None, time_steps_per_hour=1, year=None, **kwargs):
- super(CHP, self).__init__()
+ super(CHP, self).__init__(**kwargs)
se... |
Fix typo in exec-scheduler log path
It is supposed to be `-`, not `_`, eg. | @@ -21,7 +21,7 @@ DEFAULT_INTERVAL = 60
SCHEDULER_LOCK_BASE = 10000
# so we won't conflict with usage collector, which uses lock numbers 1 and 2
-DEFAULT_LOG_PATH = '/var/log/cloudify/execution_scheduler/scheduler.log'
+DEFAULT_LOG_PATH = '/var/log/cloudify/execution-scheduler/scheduler.log'
CONFIG_PATH = '/opt/manager... |
ExpressionUI : Add popup context menu and associated signal.
This will allow different engines to modify the context menu. | @@ -51,7 +51,7 @@ Gaffer.Metadata.registerNode(
scripted expressions.
""",
- "layout:customWidget:Expression:widgetType", "GafferUI.ExpressionUI._ExpressionWidget",
+ "layout:customWidget:Expression:widgetType", "GafferUI.ExpressionUI.ExpressionWidget",
plugs = {
@@ -140,10 +140,10 @@ def __popupMenu( menuDefinition, p... |
Increase hardcoded encapsulate follow-on resources
This should fix and | @@ -1571,7 +1571,8 @@ class EncapsulatedJob(Job):
self.encapsulatedJob = job
Job.addChild(self, job)
# Use small resource requirements for dummy Job instance.
- self.encapsulatedFollowOn = Job(disk='1M', memory='32M', cores=0.1)
+ # But not too small, or the job won't have enough resources to safely start up Toil.
+ se... |
opts-separator
include an option to define separator for situations where a specific character may be needed | @@ -115,6 +115,7 @@ class ReadSettings:
'post-process': False,
'wait-post-process': False,
'detailed-progress': False,
+ 'opts-separator': ',',
'preopts': '',
'postopts': '',
},
@@ -619,8 +620,9 @@ class ReadSettings:
self.postprocess = config.getboolean(section, 'post-process')
self.waitpostprocess = config.getboolean... |
Put back bq_helper in editable mode and install cleverhans from pypi.
Partial rollback of because | @@ -304,7 +304,7 @@ RUN pip install fancyimpute && \
pip install nibabel && \
pip install mlens && \
pip install scikit-multilearn && \
- pip install git+http://github.com/tensorflow/cleverhans.git#egg=cleverhans && \
+ pip install cleverhans && \
pip install leven && \
pip install catboost && \
#cd /usr/local/src && g... |
Fixed broken link in developer center
When the developer center is processed by grunt it adds a new level breaking this images. | @@ -147,6 +147,6 @@ from cartoframes import Layer
cc.map(layers=Layer('brooklyn_poverty_w_rates', color='poverty_per_pop'))
```
-
+
Note: Legends are not yet implemented for stable releases of cartoframes. See [this pull request](htt... |
Update domain.txt
Not as ```generic.txt``` or ```phishing.txt```, just as an actor for ```scarcruft```. | @@ -4962,3 +4962,8 @@ iok.la
# Reference: https://www.ptsecurity.com/ru-ru/research/analytics/operation-taskmasters-2019/ (Russian)
5wya.com
+
+# Reference: https://securelist.com/scarcruft-continues-to-evolve-introduces-bluetooth-harvester/90729/
+# Reference: https://www.virustotal.com/gui/domain/nitesbr1.org/details... |
Add empty codeActionKind entry
RLS now requires a codeActionKind entry. An empty valueSet will
satisfy the requirement for now. | @@ -136,7 +136,11 @@ def get_initialize_params(project_path: str, config: ClientConfig):
"rangeFormatting": {},
"definition": {},
"codeAction": {
- "codeActionLiteralSupport": {}
+ "codeActionLiteralSupport": {
+ "codeActionKind": {
+ "valueSet": []
+ }
+ }
},
"rename": {}
},
|
Update Oregon.md
// Oregon.md
Line: 3996, Third word, "sate", is corrected to "said", as it was misspelled. | @@ -3993,7 +3993,7 @@ id: or-portland-256
### Bystander shot in the head | August 10th
-A man sate he was walking home shows injuries to his head and arms, allegedly received from police. He states that he was struck with batons and shot with rubber bullets. Protest medics administer first aid to the man.
+A man said h... |
Ticket 247: Fixing Number and layout
* Ticket 247: Fixing Number and layout
The card_face object doesn't support the same fields as the card object so I adjusted the code to pull the fields from the card object where not available by the card_face
* tox run | @@ -426,15 +426,17 @@ def build_mtgjson_tokens(
"text": face_data.get("oracle_text"),
"power": face_data.get("power"),
"colors": face_data.get("colors"),
- "colorIdentity": face_data.get("color_identity"),
+ "colorIdentity": sf_token.get("color_identity"),
"toughness": face_data.get("toughness"),
"loyalty": face_data.g... |
Fix(icsi-recipe): Downloaded zip file wasn't found
+ needed to adapt extract commands to new dir structure | @@ -226,11 +226,13 @@ def download_icsi(
)
# Unzip annotations zip file
- with zipfile.ZipFile("ICSI_original_transcripts.zip") as z:
- z.extractall() # unzips to a dir called 'transcripts'
+ with zipfile.ZipFile(target_dir / "ICSI_original_transcripts.zip") as z:
+ # Unzips transcripts to <target_dir>/'transcripts'
+ ... |
Skip tests that depend on docker on windows
Test Plan: unit
Reviewers: max | import sys
+import pytest
+
+from dagster import seven
from dagster.api.list_repositories import (
sync_list_repositories,
sync_list_repositories_ephemeral_grpc,
@@ -274,7 +277,7 @@ def test_sync_list_python_module_attribute_grpc():
repository_code_pointer_dict['hello_world_repository'].fn_name == 'hello_world_reposito... |
Fix typo "properlyh"
Summary: Pull Request resolved: | @@ -119,7 +119,7 @@ def optimize_inference_for_dag(net, input_blobs, namescope=""):
ops = list(net.Proto().op)
op_indices = [index for index, op in enumerate(net.Proto().op)]
- # Sanity check: check that all external inputs are properlyh accounted
+ # Sanity check: check that all external inputs are properly accounted
... |
Update pythonpublish.yml
Goes from test to prod | # This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
-name: publish-test
+name: publish
on:
release:
@@ -24,8 +24,8 @@ jobs:
pip i... |
move memory_limit into ETermBase.get_paths(), update .make_function()
when using a path, memory limit is ignored | @@ -405,16 +405,21 @@ class ETermBase(Struct):
output('build expression: {} s'.format(timer.stop()))
def get_paths(self, expressions, operands):
+ memory_limit = self.backend_kwargs.get('memory_limit')
+
if ('numpy' in self.backend) or self.backend.startswith('dask'):
+ optimize = (self.optimize if memory_limit is None... |
ENH: optimize.minimize: correct bounds warnings
ENH: optimize.minimize: correct bounds warnings | @@ -552,20 +552,18 @@ def minimize(fun, x0, args=(), method=None, jac=None, hess=None,
warn('Method %s does not use Hessian information (hess).' % method,
RuntimeWarning)
# - hessp
- if meth not in ('newton-cg', 'dogleg', 'trust-ncg', 'trust-constr',
+ if meth not in ('newton-cg', 'trust-ncg', 'trust-constr',
'trust-kr... |
Fix failing test
In py3 bytes are actual bytes and you can't join them with strings
So, you have to make sure everything's the same type
I used `.encode()` | @@ -358,10 +358,10 @@ class CMDMODTestCase(TestCase, LoaderModuleMockMixin):
# stdout with the non-decodable bits replaced with the unicode
# replacement character U+FFFD.
stdout_unicode = '\ufffd\x1b\ufffd\ufffd' + os.linesep
- stderr_bytes = os.linesep.join([
+ stderr_bytes = os.linesep.encode().join([
b'1+0 records ... |
Update conf.py
Boards redirect. | @@ -322,6 +322,8 @@ redirects = {
# Boards redirects
"boards/navigating-mattermost-boards.html":
"https://docs.mattermost.com/welcome/what-changed-in-v60.html",
+"/boards/data-and-archives.html":
+ "https://docs.mattermost.com/boards/migrate-to-boards.html".
# Channels redirects
"channels/sign-in.html":
|
pm changes
made cone search smaller
applied magnitude cuts
applied small border of 20 pixels to ignore | @@ -519,7 +519,7 @@ class data_products(find_sources):
pos = [header['CRVAL1'], header['CRVAL2']]
data = find_sources.tic_by_contamination(find_sources(), pos, r, contam)
ra, dec = data['ra'], data['dec']
- return WCS(header).all_world2pix(ra, dec, 1), data['ID']
+ return WCS(header).all_world2pix(ra, dec, 1), data['ID... |
fix: hide unhide workspace css not working in firefox
reverting css part for now | @@ -1027,18 +1027,6 @@ body {
}
}
- &[item-is-hidden="0"] {
- .drop-icon {
- display: none;
- }
-
- &:has(.sidebar-item-container[item-is-hidden="0"]) {
- .drop-icon {
- display: inline-block;
- }
- }
- }
-
.sidebar-item-container {
margin-left: 10px;
@@ -1071,14 +1059,6 @@ body {
}
}
- .standard-sidebar-section {
- di... |
Fix dispatcher
Fix libgl issue. | @@ -19,13 +19,14 @@ FROM gcr.io/fuzzbench/base-image
ENV WORK /work
WORKDIR $WORK
-# Install runtime dependencies for benchmarks, easy json parsing.
+# Install runtime dependencies for benchmarks, easy json parsing, and fuzzbench.
RUN apt-get update -y && apt-get install -y \
jq \
libglib2.0-0 \
libxml2 \
libarchive13 ... |
Update Puppet Facter link
The old link is now giving a 404 | # Sal
[](https://circleci.com/gh/salopensource/sal)
-Sal is a multi-tenanted reporting dashboard for [Munki](https://github.com/munki/munki/) with the ability to display information from [Facter](http://puppetlabs.com/facter). It has a plugin system al... |
Make KFold do split
Based on | @@ -230,7 +230,8 @@ class Learned(Model):
results = mapper(self._cross_score,
((i, [values_labels[i] for i in train_i],
[values_labels[i] for i in test_i])
- for i, (train_i, test_i) in enumerate(folds_i)))
+ for i, (train_i, test_i) in enumerate(
+ folds_i.split(values_labels))))
agg_score_labels = []
for score_labels... |
Assert that we're getting a sensible limit in get_items_not_in_filter
Assert that we're getting a sensible limit in get_items_not_in_filter. | @@ -672,6 +672,8 @@ class MempoolManager:
counter = 0
broke_from_inner_loop = False
+ assert limit > 0
+
# Send 100 with the highest fee per cost
for dic in reversed(self.mempool.sorted_spends.values()):
if broke_from_inner_loop:
|
Make stylistic changes
cr | @@ -136,7 +136,17 @@ class InitController(AbstractBaseController):
configure_keyname(platform, keyname, keyname_of_existing_application, interactive, force_non_interactive)
fileoperations.write_config_setting('global', 'include_git_submodules', True)
- def initialize_multiple_directories(self, modules, region, interact... |
Update doctest with more lenient ellipsis
Python 3.7 seems to output "re.Match object; span=(0, 4), match='abcd'" | @@ -9,7 +9,7 @@ with Java regular expression code.
>>> r2 = re.compile('bc')
>>> r3 = re.compile('abc')
>>> fullmatch(r1, string) # doctest: +ELLIPSIS
-<...SRE_Match object...>
+<...Match object...>
>>> fullmatch(r2, string)
>>> fullmatch(r3, string)
>>> r = re.compile(r'\\d{8}|\\d{10,11}')
|
add comments
use standard definition of condition number | @@ -1263,17 +1263,20 @@ def randsphere(n, rstate=None):
return xhat
-def improve_covar_mat(covar0, ntries=100, min_condition_number=1e-12):
+def improve_covar_mat(covar0, ntries=100, max_condition_number=1e14):
"""
Given the covariance matrix improve it, if it is not invertable
- or eigen values are negative or conditi... |
Support -s option in runs list when showing comments
`-s` is used for tests - does not impact users. | @@ -1802,18 +1802,12 @@ def _comment(args, ctx):
def _list_comments(args, ctx):
- _list_runs_comments(runs_op_selected(args, ctx, LATEST_RUN_ARG))
+ _list_runs_comments(runs_op_selected(args, ctx, LATEST_RUN_ARG), args)
-def _list_runs_comments(runs, comment_index_format=True):
+def _list_runs_comments(runs, args, comm... |
iterable split comment added
[ci skip] | @@ -1418,6 +1418,12 @@ def join_dicts(dicts: List[dict]) -> dict:
def iterable_split(func: Callable, iterable: Iterable, params: dict, *args, **kwargs) -> np.ndarray:
+ """
+ # TODO: a faster version using buffer-provider objects via the uppercase communication method
+ A faster version of iterable/tiles_split is possi... |
fix comment on Cost params_bytes
Summary:
Pull Request resolved:
As discussed with Alexander Sidorov, params_bytes refer to the number of bytes we're reading for parameters, not the size of parameters. They only differ in sparse operators. | @@ -190,7 +190,7 @@ class CAFFE2_API OpSchema {
uint64_t flops{0}; // Floating point operations.
uint64_t bytes_read{0}; // Total memory read.
uint64_t bytes_written{0}; // Total memory written.
- uint64_t params_bytes{0}; // Memory footprint of parameters
+ uint64_t params_bytes{0}; // Memory read for parameters.
};
/... |
Update mkvtomp4.py
restore source sorting so that first language option respects this
update the sortStreams function to handle either incoming source data or options that have been generated
wrap sorting in try catches so errors don't break things | @@ -349,7 +349,15 @@ class MkvtoMp4:
audio_settings = []
blocked_audio_languages = []
iOS = (self.settings.iOS is not False)
- for a in info.audio:
+
+ # Sort incoming streams so that things like first language preferences respect these options
+ audio_streams = info.audio
+ try:
+ self.sortStreams(audio_streams, awl)
... |
fixed
Fixed indexing in returned enr state | @@ -927,7 +927,7 @@ def enr_fock(dims, excitations, state):
raise ValueError("The state tuple %s is not in the restricted "
"state space" % str(tuple(state)))
- return Qobj(data, dims=[dims, 1])
+ return Qobj(data, dims=[dims, [1]*len(dims)])
def enr_thermal_dm(dims, excitations, n):
|
Remove community nux for now
### Summary & Motivation
We're going to rethink our strategy here | @@ -15,7 +15,6 @@ import ReactDOM from 'react-dom';
import {Link} from 'react-router-dom';
import styled from 'styled-components/macro';
-import {CommunityNux} from './NUX/CommunityNux';
import {extractInitializationData} from './extractInitializationData';
import {telemetryLink} from './telemetryLink';
@@ -71,7 +70,6 ... |
Removed all subsitution logic from the datasource. Variable substitution is a service that the data
context provides. Datasources should not see unsubstituted variables in their config. | @@ -82,8 +82,6 @@ class SqlAlchemyDatasource(Datasource):
generators=generators,
**configuration_with_defaults)
-########
- ### FIXME: EUGENE UPDATE WITH ENVIRONMENT LOGIC
if credentials is not None:
self._datasource_config.update({
"credentials": credentials
@@ -116,10 +114,8 @@ class SqlAlchemyDatasource(Datasource):... |
cli: dataflow: diagram: Fix for new inputflow syntax
We had forgotten to fix the diagram command when we added
the new inputflow syntax. The one where we can specify
which definitions from an origin an input could come from
Fixes: | @@ -426,6 +426,39 @@ class Diagram(CMD):
print(f"{seed_input_node} --> {input_node}")
else:
print(f"{seed_input_node} --> {node}")
+ elif isinstance(source, dict) and isinstance(
+ list(source.values())[0], list
+ ):
+ # Handle the case where the key is the origin (so
+ # something like "seed") and the value is a list ... |
AbstractExpression.prepare: expand and traverse TypeRepo.Defer instances
TN: | @@ -520,8 +520,10 @@ class AbstractExpression(Frozable):
elif isinstance(obj, (dict)):
for v in obj.items():
explore(v, fn)
- elif (not isinstance(obj, (PropertyDef, TypeRepo.Defer)) and
- hasattr(obj, 'prepare')):
+ elif isinstance(obj, TypeRepo.Defer):
+ obj = obj.get()
+ return explore(obj, fn) or obj
+ elif not isi... |
Update ESP32_Code.ino
Removing a line that is not used. | @@ -42,7 +42,6 @@ volatile int wifiStatus = 0;
volatile int wifiPrev = WL_CONNECTED;
void WiFireconnect( void * pvParameters ) {
- bool ESP_reset = true;
//wifiStatus = WiFi.status();
//wifiPrev = wifiStatus;
delay(1000);
|
fix(pg): Transform Falsy values as None
ref: | @@ -113,7 +113,7 @@ class Database:
raise NotImplementedError
def _transform_query(self, query: Query, values: QueryValues):
- return query, values or ()
+ return query, values or None
def sql(
self,
|
RampPlugValueWidget : Don't allow edits to readOnly plugs
( partially simplified version of ) | @@ -79,7 +79,6 @@ class RampPlugValueWidget( GafferUI.PlugValueWidget ) :
self.__splineWidget._qtWidget().setMinimumHeight( 50 )
self.__slider = GafferUI.Slider()
- self.__slider.setSizeEditable( True )
self.__slider.setMinimumSize( 2 )
self.__positionsChangedConnection = self.__slider.positionChangedSignal().connect( ... |
Fix: generate_table would otherwise fail with a more general index
Reference: | @@ -17,7 +17,7 @@ def generate_table(dataframe, max_rows=10):
# Body
[html.Tr([
- html.Td(dataframe.loc[i][col]) for col in dataframe.columns
+ html.Td(dataframe.iloc[i][col]) for col in dataframe.columns
]) for i in range(min(len(dataframe), max_rows))]
)
|
Update test_structure.py
Changed quotation marks to satisfy the 'black' linting. | @@ -551,14 +551,14 @@ Direct
def test_get_symmetric_neighbor_list(self):
# tetragonal group with all bonds related by symmetry
- s = Structure.from_spacegroup(100, [[1, 0, 0], [0, 1, 0], [0, 0, 2]], ['Fe'], [[0., 0., 0.]])
+ s = Structure.from_spacegroup(100, [[1, 0, 0], [0, 1, 0], [0, 0, 2]], ["Fe"], [[0.0, 0.0, 0.0]]... |
Fix DDP error checking for unused parameters
Summary: Pull Request resolved:
Test Plan: Imported from OSS | @@ -322,26 +322,34 @@ void Reducer::mark_variable_ready(VariableIndex index) {
// Something is wrong if all variables contained in this bucket replica have
// already been marked as ready.
if (replica.pending == 0) {
- // Receiving a call to `mark_variable_ready` twice for the same variable
- // is only possible if the... |
I have too many mags for the comand line.
I'm not shure if these logfiles are usefull, if no error happens | @@ -42,7 +42,6 @@ def predict_genes_genomes(input_dir,out_dir,log,threads):
pool.starmap(predict_genes, zip(genome_names,genomes_fastas,
itertools.repeat(out_dir),log_names))
- shell("cat {log_names} > {log}".format(log_names=' '.join(log_names), log=log))
shell("rm -r {temp_log_dir}".format(temp_log_dir=temp_log_dir))... |
TST: Make test_partial_iteration_cleanup robust but require leak checker
This makes sure the test is not flaky, but the test now requires
a leak checker (both valgrind or reference count based should work
in CPython at least).
Closes | @@ -3169,7 +3169,6 @@ def test_warn_noclose():
@pytest.mark.skipif(sys.version_info[:2] == (3, 9) and sys.platform == "win32",
reason="Errors with Python 3.9 on Windows")
-@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
@pytest.mark.parametrize(["in_dtype", "buf_dtype"],
[("i", "O"), ("O", "i"), ... |
Fix groupby bug
Add cast to groupby | @@ -1124,7 +1124,7 @@ class BaseColumns(ABC):
:param agg: List of tuples with the form [("agg", "col")]
:return:
"""
- df = self.root.data
+ df = self.root
compact = {}
agg_names = None
@@ -1137,15 +1137,20 @@ class BaseColumns(ABC):
for col_agg in agg:
if is_dict(col_agg):
- col_agg = list(col_agg.items())[::-1]
+ col... |
Omit relay state in HTTP-POST response when empty
Do not send an HTTP-POST SAML response with a non-conforming relay
state. This can happen when the incoming <AuthnRequest> does not include
relay state information. | @@ -94,6 +94,8 @@ def http_form_post_message(message, location, relay_state="",
val=html.escape(_msg),
type='hidden')
+ relay_state_input = ""
+ if relay_state:
relay_state_input = HTML_INPUT_ELEMENT_SPEC.format(
name='RelayState',
val=html.escape(relay_state),
|
Document the CLI 'cache clear' command
Resolves: | @@ -491,3 +491,19 @@ The `cache list` command lists Poetry's available caches.
```bash
poetry cache list
```
+
+### cache clear
+
+The `cache clear` command removes packages from a cached repository.
+
+For example, to clear the whole cache of packages from the `pypi` repository, run:
+
+```bash
+poetry cache clear pyp... |
Update tests/unit/recommenders/evaluation/test_python_evaluation.py
Add comments | @@ -219,6 +219,7 @@ def test_get_top_k_items(rating_true):
assert(top_3_items_df[DEFAULT_ITEM_COL][5] in [5, 6])
assert(set(top_3_items_df[DEFAULT_ITEM_COL][6:]) == set([2, 5, 6]))
+ # Tests when k is larger than the number of available items
top_6_items_df = get_top_k_items(
dataframe=rating_true,
col_user=DEFAULT_USE... |
Update pymeasure/instruments/eurotest/eurotestHPP120256.py
Remove module level variable for regex | @@ -93,8 +93,7 @@ class EurotestHPP120256(Instrument):
COMMAND_DELAY = 0.2 # s
response_encoding = "iso-8859-2"
- f_numbers_regex_pattern = r'([+-]?([\d]*\.)?[\d]+)'
- regex = re.compile(f_numbers_regex_pattern)
+ regex = re.compile(r'([+-]?([\d]*\.)?[\d]+)')
def __init__(self,
adapter,
|
Fix the HTML AST doc installation procedure
TN: | @@ -770,7 +770,7 @@ class ManageScript(object):
# Install the remaining miscellaneous files
for fpath in [
os.path.join('include', lib_name + '.h'),
- os.path.join('share', lib_name, 'ast-types.txt'),
+ os.path.join('share', lib_name, 'ast-types.html'),
os.path.join('python', lib_name + '.py'),
]:
build_path = self.dir... |
azure: improve error message
load lowest error details. The error may be an object, sometime the
message is a serialized dict. So try to deserialize and parse it. | @@ -6,6 +6,7 @@ from dataclasses import dataclass, field
from datetime import datetime
from functools import lru_cache
from pathlib import Path
+from types import SimpleNamespace
from typing import Any, Dict, List, Optional, Type, Union
from azure.core.exceptions import HttpResponseError
@@ -701,20 +702,14 @@ class Azu... |
Smooth out Sienna tuning
Current Sienna tuning leads to pretty significant bouncing and oversteering, this change fixes it. Thanks to for finding some great values and checking with a Toyota mechanic on the real steer ratio for Siennas! | @@ -195,10 +195,10 @@ class CarInterface(CarInterfaceBase):
stop_and_go = True
ret.safetyParam = 73
ret.wheelbase = 3.03
- ret.steerRatio = 16.0
+ ret.steerRatio = 15.5
tire_stiffness_factor = 0.444
ret.mass = 4590. * CV.LB_TO_KG + STD_CARGO_KG
- ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.3], [0.05]]
+ ... |
Fixes problem when updating dynamic gene list
There was a unbound local variable error when no hgnc genes where found | @@ -87,6 +87,7 @@ class CaseHandler(object):
updated_case(dict)
"""
dynamic_gene_list = []
+ res = []
if hgnc_ids:
logger.info("Fetching genes by hgnc id")
res = self.hgnc_collection.find(
|
Better debug output for test_no_fd_leak failure
Print exactly which file descriptor appeared. Also re-enable on OS X. I cannot get it to fail there anymore.
Refs | @@ -133,7 +133,6 @@ def requires_progs(*progs):
requires_posix = skipUnless(os.name == "posix", "Requires POSIX")
requires_utf8 = skipUnless(sh.DEFAULT_ENCODING == "UTF-8", "System encoding must be UTF-8")
-not_macos = skipUnless(not IS_MACOS, "Doesn't work on MacOS")
requires_py3 = skipUnless(IS_PY3, "Test only works ... |
Docstring added.
docstring added for function do_systeminfo(self, s) and help_systeminfo(self). | @@ -722,9 +722,11 @@ class CmdInterpreter(Cmd):
print_say("Shutdown the system.", self)
def do_systeminfo(self, s):
+ """Display system information with distribution logo"""
system("screenfetch")
def help_systeminfo(self):
+ """"Print help about systeminfo command"""
print_say("Display system information with distribut... |
Readme: deprecate
I removed also CI status as its not valid anymore.
This repository is archived. Thank you for all the contributions. | +## Deprecation note!
+
+**Please note: This repository is deprecated and it is no longer actively maintained**.
+
## yotta: Build Software with Reusable Components
-[](https://travis-ci.org/ARMmbed/yotta)
-[:
}
]
if requires_docker_bosh:
- version = None
+ version = '29.0.0'
version_param = '?v=' + version if version else ''
self['releases'] += [{
'name': 'docker-boshrelease',
|
fix: Use `sort_by` field instead of non-existent `sort_field`
To get proper form navigation | @@ -1102,13 +1102,13 @@ frappe.ui.form.Form = class FrappeForm {
let list_view = frappe.get_list_view(this.doctype);
if (list_view) {
filters = list_view.get_filters_for_args();
- sort_field = list_view.sort_field;
+ sort_field = list_view.sort_by;
sort_order = list_view.sort_order;
} else {
let list_settings = frappe.... |
add energy_source_code_num to the interim output of the net gen allocation
This column indicates the importance of the energy source or fuel type.
It indicates whether the energy source/fuel type is a primary, secondary
etc fuel. | @@ -217,7 +217,8 @@ def allocate_gen_fuel_by_gen_pm_fuel(gf, gen, gens, drop_interim_cols=True):
if drop_interim_cols:
gen_pm_fuel_frac = gen_pm_fuel_frac[
IDX_PM_FUEL +
- ['generator_id', 'net_generation_mwh', 'fuel_consumed_mmbtu']]
+ ['generator_id', 'energy_source_code_num', 'net_generation_mwh',
+ 'fuel_consumed_m... |
Fix Type Hint
* Fix Type Hint
Union is not necessary here? My IDE pops an error for it.
* Rerun workflows
* empty commit | @@ -101,7 +101,7 @@ class BaseHTTPResponse:
async def send(
self,
- data: Optional[Union[AnyStr]] = None,
+ data: Optional[AnyStr] = None,
end_stream: Optional[bool] = None,
) -> None:
"""
|
added tests for selection
xzy, layer and time selection in dataset | @@ -1366,3 +1366,44 @@ def test_incompatible_data_not_allowed():
mikeio.Dataset([da1, da2])
assert "time" in str(excinfo.value).lower()
+
+
+def test_xzy_selection():
+ # select in space via x,y,z coordinates test
+ filename = "tests/testdata/oresund_sigma_z.dfsu"
+ ds = mikeio.read(filename)
+
+ dss_xzy = ds.sel(x=340... |
Update bower.json
Angular angular-sanitize is pulling in an incompatible version of angular knocking out the webUI by breaking chart.js. | "angular-underscore": "^0.5.0",
"angular-translate": "^2.9.0",
"angular-ui-switch": "~0.1.0",
- "angular-sanitize": "^1.5.0",
+ "angular-sanitize": "~1.5.0",
"angular-file-saver": "~1.0.1",
"angular-ui-select": "~0.17.1",
"d3": "^3.5.17"
|
Added more forum ignores
More forum ignores for Vanilla forum URL patterns | "/post/\\d+/quote/\\d+",
"/tortoise\\.pl",
"/ad\\.pl",
- "/reportpost\\?link="
+ "/reportpost\\?link=",
+ "/discussion/comment/\\d+/(smile|smiley|wink|blush|neutral|relaxed|grin|joy|sweat_smile|lol|innocent|naughty|yum|relieved|love|sunglasses|smirk|expressionless|unamused|sweat|pensive|confused|confounded|kissing|kiss... |
Updated to handbrake.py to handle if no main feat
Added logging and error functionality if handbrake could not find main feature
Copied from #338(https://github.com/automatic-ripping-machine/automatic-ripping-machine/pull/338/commits/699781fd2cfcb0bc1b7a0c03b863cdb6aa70dc31) | @@ -29,12 +29,17 @@ def handbrake_mainfeature(srcpath, basepath, logfile, job):
filename = os.path.join(basepath, job.title + "." + job.config.DEST_EXT)
filepathname = os.path.join(basepath, filename)
+ logging.info("Ripping title Mainfeature to " + shlex.quote(filepathname))
get_track_info(srcpath, job)
track = job.tr... |
Killswitch bug fix
Move check for killswitch config to after the config import. | @@ -11,17 +11,17 @@ from array import array
from queue import Empty
from aiohttp import ClientSession, ProxyConnectionError
+from .db import SIGHTING_CACHE, MYSTERY_CACHE, Bounds
+from .utils import random_sleep, round_coords, load_pickle, load_accounts, get_device_info, get_spawn_id, get_distance, get_start_coords
+fr... |
Removing the use of current-passed-ci.yml files
We can no longer pull from current-passed-ci.yml
as they point to a puddle that no longer exists and
the CI had already moved away from using them a
couple of months back. | @@ -54,15 +54,9 @@ if [ ! -z ${current_build+x} ]
export RELEASE="$RELEASE-rhel"
export VARS="$VARS --extra-vars current_build=$hash"
fi
-
-#If we are not in the pipeline downstream builds need to use current-passed-ci
-elif [[ $RELEASE == *rhos-* ]]
- then
- export RELEASE="perfci/$RELEASE-current-passed-ci"
fi
-
#use... |
Undo part of the windows context manager change
Popen is not a context manager for PY27, lots of tests
failed as a result. | @@ -296,9 +296,11 @@ def find_vc_pdir_vswhere(msvc_version):
vswhere_cmd = [vswhere_path, '-products', '*', '-version', msvc_version, '-property', 'installationPath']
if os.path.exists(vswhere_path):
- with subprocess.Popen(vswhere_cmd,
+ #TODO PY27 cannot use Popen as context manager
+ # try putting it back to the old... |
Added Santas Monica entry
Not sure if this should be under LA or as Santas Monica. | @@ -119,3 +119,13 @@ The individual recording the video is trying his best to save his fellow protest
* https://twitter.com/YourAnonCentral/status/1266991237355069442
+## Santas Monica
+
+### Police fire pepper bullets into apartment | June 1st
+
+Live on TV, police fire multiple pepper bullets at an apartment window.
... |
Download blueprint from its tenant folder, not the request one
Since a blueprint can be global, it may be download by any user, from
any tenant, so its local path should be calculated with the initial
tenant with which it was created (during upload), instead of the current
request tenant. | @@ -55,38 +55,33 @@ class BlueprintsIdArchive(SecuredResource):
"""
Download blueprint's archive
"""
- # Verify blueprint exists.
- get_storage_manager().get(
- models.Blueprint,
- blueprint_id,
- include=['id']
- )
+ blueprint = get_storage_manager().get(models.Blueprint, blueprint_id)
for arc_type in SUPPORTED_ARCHIV... |
[FIX] Fix cublas batch matmul
* Update batch_matmul.py
Update batch_matmul.py
* fix | @@ -138,7 +138,7 @@ def schedule_batch_matmul(cfg, outs):
return s
-def batch_matmul_cublas(x, y):
+def batch_matmul_cublas(x, y, out_shape=None):
"""Computes batch matrix multiplication of `x` and `y` when `x` and `y` are
data in batch.
@@ -150,6 +150,9 @@ def batch_matmul_cublas(x, y):
y : tvm.te.Tensor
3-D with shap... |
new ReciprocalMassMatrixSolver (ls.rmm) (WIP)
new .__init__(), .init_rmm(), .__call__() | @@ -1253,3 +1253,82 @@ class MultiProblem(ScipyDirect):
res.append(resi)
return res[-1]
+
+
+class ReciprocalMassMatrixSolver(LinearSolver):
+ """
+ Solver for explicit transient elastodynamics that uses lumped and/or
+ reciprocal mass matrix algorithms.
+
+ Limitations:
+ - Assumes that the density is constant in time... |
[subset] Update default feature tags
Corresponding to HarfBuzz commits: | @@ -2614,6 +2614,9 @@ class Options(object):
'vertical': ['valt', 'vert', 'vkrn', 'vpal', 'vrt2'],
'ltr': ['ltra', 'ltrm'],
'rtl': ['rtla', 'rtlm'],
+ 'rand': ['rand'],
+ 'justify': ['jalt'],
+ 'private': ['Harf', 'HARF', 'Buzz', BUZZ'],
# Complex shapers
'arabic': ['init', 'medi', 'fina', 'isol', 'med2', 'fin2', 'fin3... |
Added IT-CSO Renewable Capacities
Added Biomass, hydro, solar, and wind for the region from the listed source: (no source update required)
(hydro is not split into normal and storage, as this source doesn't have that data)
Regions included in IT-SO are: "Campania, Lazio, Abruzzo" | ]
},
"IT-CSO": {
+ "bounding_box": [
+ [
+ 10.951496463496312,
+ 39.49396986000008
+ ],
+ [
+ 16.29054702002901,
+ 43.40156077856554
+ ]
+ ],
+ "capacity": {
+ "biomass": 440.7,
+ "geothermal": 0,
+ "hydro": 2770.7,
+ "nuclear": 0,
+ "solar": 2960.8,
+ "wind": 2061.1
+ },
"contributors": [
- "https://github.com/corradi... |
/hello/: Make gradients extend further on mobile.
This makes the gradients extend further on mobile so that the white
text does not display on an almost-white background. | @@ -3208,6 +3208,22 @@ nav ul li.active::after {
.footer {
width: 100vw;
}
+
+ /* the gradients leave the bottom of the text and the button white so we
+ want to have the gradients stay darker for longer.
+ */
+ .gradients .gradient.green {
+ background: linear-gradient(-25deg, transparent 10%, #3fb082 80%);
+ }
+
+ .g... |
Remove todo as mistral tag filtering is fixed
Fixed tag filtering in mistral so it is safe to remove the workaround
to delete workflows
Depends-On: | @@ -113,16 +113,9 @@ if [ "$(hiera mistral_api_enabled)" = "true" ]; then
if openstack cron trigger show publish-ui-logs-hourly >/dev/null 2>&1; then
openstack cron trigger delete publish-ui-logs-hourly
fi
- #TODO In the future we should be able to run something like
- # openstack workflow list --filter=tag=tripleo-com... |
Fixing KeyErrors on messages without text
This may occur if messages consist only of media elements. A message
that consists just a gif for example | @@ -305,7 +305,7 @@ class ConnectorTelegram(Connector):
if message.get("reply_to_message"):
event = Reply(
- text=emoji.demojize(message["text"]),
+ text=emoji.demojize(message.get("text", "")),
user=user,
user_id=user_id,
event_id=message["message_id"],
@@ -317,7 +317,7 @@ class ConnectorTelegram(Connector):
if messag... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.