message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Onefile: Remove experimental status in help output
* Also added option to disable --standalone if given
as a project option. | @@ -79,15 +79,23 @@ want to use "--python-flag=no_site" to avoid the "site.py" module, which can sav
a lot of code dependencies. Defaults to off.""",
)
+parser.add_option(
+ "--no-standalone",
+ action="store_false",
+ dest="is_standalone",
+ default=False,
+ help=SUPPRESS_HELP,
+)
+
+
parser.add_option(
"--onefile",
a... |
docs: installation: Talk about testing Windows and MacOS
Related: | @@ -8,7 +8,9 @@ is another good way to install it. You could also use the docker container.
**Windows and MacOS are not officially supported yet**. Support varies by which
plugins you install. We do not currently have a list of what is supported and
-what is not supported on those OSs.
+what is not supported on those O... |
disposition fix for copy codecs as well
also removed disposition from attachmentcopycodec | @@ -522,7 +522,14 @@ class AudioCopyCodec(BaseCodec):
lang = 'und'
optlist.extend(['-metadata:s:a:' + stream, "language=" + lang])
if 'disposition' in safe:
- optlist.extend(['-disposition:a:' + stream, str(safe['disposition'])])
+ dispo = str(safe['disposition'])
+ if '+default' not in dispo:
+ dispo = dispo + '-defau... |
test_osds: remove scenario leftover
Since there's only only scenario available we don't need lvm_scenario
and no_lvm_scenario.
Also add missing assert for ceph-volume tests. | @@ -26,7 +26,6 @@ class TestOSDs(object):
for osd in setup["osds"]:
assert host.service("ceph-osd@%s" % osd).is_running
- @pytest.mark.no_lvm_scenario
def test_osd_services_are_enabled(self, node, host, setup):
# TODO: figure out way to paramaterize node['osds'] for this test
for osd in setup["osds"]:
@@ -42,13 +41,13 ... |
Remove unused util functions
The various refactorings left them jobless. | @@ -36,18 +36,6 @@ CONTINUOUS_KINDS = 'ifuc'
SIZE_FACTOR = np.sqrt(np.pi)
-def pop(dataframe, key, default):
- """
- Pop element *key* from dataframe and return it. Return default
- if it *key* not in dataframe
- """
- try:
- value = dataframe.pop(key)
- except KeyError:
- value = default
- return value
-
-
def is_scal... |
New entry in Columbus, Ohio
Woman holding up a sign is shot with rubber bullets | @@ -70,6 +70,7 @@ Three reporters repeatedly tell police that they are members of the press and sh
### Police pepper spray African-American photographer | May 31st.
+
Photographer being sprayed while seemingly calmly standing 10 feet away from the police line.
**Links**
@@ -77,3 +78,11 @@ Photographer being sprayed whi... |
Fix Error String Issue
Summary: The string formatter causes issues for certain types of errors that appear, this is not the root cause fix since that will involve looking at what the actual error is but a step before that, but this should fix the error. | @@ -280,7 +280,7 @@ class CommandHandler(Counters, FacebookBase, FcrIface):
retry_count += 1
except Exception as e:
raise ttypes.SessionException(
- message="bulk_run_remote failed: %r" % (e)
+ message=f"bulk_run_remote failed: {e}"
) from e
# Split the request into chunks and run them on remote hosts
|
Fix to allow S20 Update() to work.
S20 stretched from the end of 2019 into beginning of 2020. Apparently the MAST CBV file structure, which include a subdirectory by year, puts things into the year the sector started. | @@ -132,7 +132,7 @@ class Update(object):
def get_cbvs(self):
if self.sector <= 6:
year = 2018
- elif self.sector <= 19:
+ elif self.sector <= 20:
year = 2019
else:
year = 2020
|
Update README.MD
[formerly b6e5752778ae21bf04458a14704489673a17dab9] [formerly b5be6ceab56a82afbf9bd14881f797218acf20ca] [formerly dc40a46e8ec01114e363c8727db1c5c5161365ef] | <p align="center">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Ciphey">
<img src="https://github.com/brandonskerritt/Ciphey/workflows/Python%20application/badge.svg?branch=master" alt="Ciphey">
+ <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/ciphey">
</p>
# What is this?
|
Typo: let -> let's
Small typo | @@ -134,7 +134,7 @@ class ReplayMemory(object):
######################################################################
-# Now, let's define our model. But first, let quickly recap what a DQN is.
+# Now, let's define our model. But first, let's quickly recap what a DQN is.
#
# DQN algorithm
# -------------
|
Live e2e long toggling
Live toggling | @@ -48,10 +48,11 @@ def limit_accel_in_turns(v_ego, angle_steers, a_target, CP):
class LongitudinalPlanner:
def __init__(self, CP, init_v=0.0, init_a=0.0):
self.CP = CP
- params = Params()
- # TODO read param in the loop for live toggling
- mode = 'blended' if params.get_bool('EndToEndLong') else 'acc'
- self.mpc = Lon... |
lnchannel: rm "is_closing" method - has confusing semantics
(and there is intentional behaviour changes here, due to erroneous use of "is_closing") | @@ -196,9 +196,6 @@ class AbstractChannel(Logger, ABC):
def is_open(self):
return self.get_state() == ChannelState.OPEN
- def is_closing(self):
- return ChannelState.SHUTDOWN <= self.get_state() <= ChannelState.FORCE_CLOSING
-
def is_closed(self):
# the closing txid has been saved
return self.get_state() >= ChannelStat... |
pcie: Add t6000 support
This one seems to need one extra magic poke | @@ -152,6 +152,10 @@ int pcie_init(void)
printf("pcie: Error applying %s for %s\n", "apcie-axi2af-tunables", path);
return -1;
}
+
+ /* ??? */
+ write32(rc_base + 0x4, 0);
+
if (tunables_apply_local(path, "apcie-common-tunables", 1)) {
printf("pcie: Error applying %s for %s\n", "apcie-common-tunables", path);
return -1... |
Workaround for bug Pandas bug
Recreate groupby object before apply because other functions affected
its internals. | @@ -114,6 +114,8 @@ def test_mixed_dtypes_groupby(as_index):
# TODO Add more apply functions
apply_functions = [lambda df: df.sum(), min]
+ # Workaround for Pandas bug #34656. Recreate groupby object for Pandas
+ pandas_groupby = pandas_df.groupby(by=by[-1], as_index=as_index)
for func in apply_functions:
eval_apply(mo... |
Adding ``/FCLEAN`` implementation
Adding fclean implementation | @@ -383,6 +383,33 @@ class Files:
command = f"/COPY,{fname1},{ext1},,{fname2},{ext2},,{distkey}"
return self.run(command, **kwargs)
+ def fclean(self, **kwargs):
+ """Deletes all local files in all processors in a distributed parallel processing run.
+
+ APDL Command: /FCLEAN
+
+ Deletes all local files (``.rst``, ``.e... |
Minor docstring tweak for Sphinx doc generation
Sphinx interprets the string "_p" as a reference. ``_p`` does not have
this problem.
TN: | @@ -132,8 +132,8 @@ base_langkit_docs = {
Exception that is raised when an error occurs while evaluating any
${'function' if lang == 'ada' else 'AST node method'}
whose name starts with
- "${'P_' if lang == 'ada' else 'p_'}". This is the only exceptions that
- such functions can raise.
+ ``${'P_' if lang == 'ada' else ... |
SAMPLE_info supports only 2 columns
Fixed sleuth to ignore any further columns in sample_info but <sample>
<condition> | @@ -19,7 +19,7 @@ t2g_file = args[[5]]
setwd(outdir)
getwd()
-sample_info = read.table(sample_info_file, header=T)
+sample_info = read.table(sample_info_file, header=T)[,1:2]
colnames(sample_info) = c("sample", "condition")
print(sample_info)
sample_info$sample
|
Add typing to data_structures/queue/queue_on_pseudo_stack.py
* Add typing
hacktoberfest
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see | """Queue represented by a pseudo stack (represented by a list with pop and append)"""
+from typing import Any
class Queue:
@@ -14,7 +15,7 @@ class Queue:
@param item
item to enqueue"""
- def put(self, item):
+ def put(self, item: Any) -> None:
self.stack.append(item)
self.length = self.length + 1
@@ -23,7 +24,7 @@ clas... |
Pin futures to 3.1.1
To avoid 3.1.2 errors where it doesn't run when you use python 3. | @@ -11,6 +11,7 @@ tqdm==4.19.6 # progress bars
requests==2.18.4
cherrypy==13.0.1 # Temporarily pinning this until CherryPy stops depending on namespaced package, see #2971 # pyup: <13.1.0
iceqube==0.0.4
+futures==3.1.1
porter2stemmer==1.0
unicodecsv==0.14.1
metafone==0.5
|
Update mediaprocessor.py
remove codec based sorting | @@ -645,7 +645,7 @@ class MediaProcessor:
# Sort incoming streams so that things like first language preferences respect these options
audio_streams = info.audio
try:
- self.sortStreams(audio_streams, awl, self.settings.acodec)
+ self.sortStreams(audio_streams, awl)
except:
self.log.exception("Error sorting source audi... |
Update connector-ldap.yml
include some more comments for all_users_filter | @@ -52,7 +52,10 @@ search_page_size: 200
require_tls_cert: False
# (optional) all_users_filter (default value given below)
-# all_users_filter specifies the query used to find all users in the directory.
+# In order to obtain a more fine-tunned list of LDAP users, adapt the filter to your needs.
+# Only resulted users ... |
Update install instructions to make compatible with zsh
Add quotation mark for StoneSoup pip installation
This makes the command compatible with zsh. | @@ -60,7 +60,7 @@ following:
git clone "https://github.com/dstl/Stone-Soup.git"
cd Stone-Soup
- python -m pip install -e .[dev]
+ python -m pip install -e ".[dev]"
Please also see our :ref:`contributing:Contributing` page.
|
Accommodated unit of time.
Changed _timeout_watch_time and _timeout_disable_time definitions to divide by 1000 do accommodate ms input instead of s input. | @@ -48,9 +48,9 @@ class AutofireCoil(SystemWideDevice):
# pulse is handled via rule but add a handler so that we take notice anyway
self.config['switch'].add_handler(self._hit)
if self.config['enable_timeouts']:
- self._timeout_watch_time = self.config['timeout_watch_time']
+ self._timeout_watch_time = self.config['tim... |
Update potential_vorticity_baroclinic() docstring
Fixes | @@ -653,9 +653,6 @@ def potential_vorticity_baroclinic(potential_temperature, pressure, u, v, dx, dy
the size of `u` along the applicable axis.
lats : (M, N) ndarray
latitudes of the wind data in radians or with appropriate unit information attached
- axis : int, optional
- The axis corresponding to the vertical dimens... |
settings_users: Remove unnecessary sort.
The populate_users function doesn't need to sort the list of
active and non-active users, because the list_render is called
specifying to sort users by their full_name.
Author: Clara Moraes Dantas | @@ -137,11 +137,9 @@ function failed_listing_users() {
function populate_users() {
const active_user_ids = people.get_active_human_ids();
let active_users = active_user_ids.map(user_id => people.get_by_user_id(user_id));
- active_users = _.sortBy(active_users, 'full_name');
const deactivated_user_ids = people.get_non_a... |
Don't reference long in types.pyi
(It's a type alias for int anyway, and it will cause a problem in the
initial import cycle once is merged.) | @@ -13,7 +13,7 @@ TypeType = type
ObjectType = object
IntType = int
-LongType = long
+LongType = int # Really long, but can't reference that due to a mypy import cycle
FloatType = float
BooleanType = bool
ComplexType = complex
|
[docs] - [definitions] Update Repository page for Definitions
This PR updates the **Repository** concept page for the new `Definitions` world.
[Preview here](https://dagster-git-erin-repository-concept-definitions-elementl.vercel.app/concepts/repositories-workspaces/repositories).
**Note**: This page will be removed fr... | ---
-title: Repositories | Dagster
+title: Repositories | Dagster Docs
description: A repository is a collection of jobs, schedules, and sensor definitions that the Dagster CLI, Dagit and the Dagster Daemon can target to load them.
---
# Repositories
-A repository is a collection of software-defined assets, jobs, sched... |
Remove failing unit tests
Testing `information` cog seems redutant as it is not too important part of the bot. | @@ -97,79 +97,6 @@ class InformationCogTests(unittest.TestCase):
self.assertEqual(admin_embed.title, "Admins info")
self.assertEqual(admin_embed.colour, discord.Colour.red())
- @unittest.mock.patch('bot.exts.info.information.time_since')
- def test_server_info_command(self, time_since_patch):
- time_since_patch.return_... |
Use dst dir for temp file
Summary:
Fixes
Pull Request resolved: | @@ -378,7 +378,12 @@ def _download_url_to_file(url, dst, hash_prefix, progress):
if content_length is not None and len(content_length) > 0:
file_size = int(content_length[0])
- f = tempfile.NamedTemporaryFile(delete=False)
+ # We deliberately save it in a temp file and move it after
+ # download is complete. This preve... |
qt PayToEdit: rm redundant code
This is already handled by `self.textChanged.connect(self.check_text)` in __init__. | @@ -257,13 +257,6 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger):
self.setMaximumHeight(h)
self.verticalScrollBar().hide()
- def qr_input(self, *, callback=None):
- def _on_qr_success(data):
- if data.lower().startswith(BITCOIN_BIP21_URI_SCHEME + ':'):
- self.win.pay_to_URI(data)
- # TODO: update fee
- ... |
Add currently undocumented premium_tier field.
Needs more testing to find out what it is. | @@ -132,7 +132,7 @@ class Guild(Hashable):
'owner_id', 'mfa_level', 'emojis', 'features',
'verification_level', 'explicit_content_filter', 'splash',
'_voice_states', '_system_channel_id', 'default_notifications',
- 'description', 'max_presences', 'max_members')
+ 'description', 'max_presences', 'max_members', 'premium_... |
Show all elements in the namespace view
Except for top level Property and InstanceSpecification. | @@ -31,26 +31,6 @@ if TYPE_CHECKING:
from gaphor.core.modeling import ElementFactory
from gaphor.core.eventmanager import EventManager
-# The following items will be shown in the treeview, although they
-# are UML.Namespace elements.
-_default_filter_list = (
- UML.Class,
- UML.Interface,
- UML.Package,
- UML.Component... |
add task level fine-grainedness
also add docs to indicate that users
might want to consider using SimCSE's dropin
replacement instead of the original SentEval harness
when considering STS tasks | +"""Run any MEAD embeddings within the SentEval framework
+
+The SentEval framework (https://github.com/facebookresearch/SentEval) facilitates
+testing the quality of sentence embeddings. To prepare your data, you can clone
+that repo and do a `pip install -e .`. This program allows you to control which
+sets of tasks ... |
fix(graphene): use_https was clobbered by precomputed parent class
Resolves | @@ -96,6 +96,7 @@ class GrapheneMetadata(PrecomputedMetadata):
self.auth_header = {
"Authorization": "Bearer %s" % token
}
+ kwargs['use_https'] = bool(use_https)
super(GrapheneMetadata, self).__init__(cloudpath, *args, **kwargs)
version = self.server_path.version
|
resolved_ips could be None
Only run len() when we know that resolved_ips is a list. | @@ -914,7 +914,7 @@ def _wait_for_ip(vm_ref, max_wait):
resolved_ips = salt.utils.network.host_to_ips(vm_name)
log.debug("Timeout waiting for VMware tools. The name {0} resolved "
"to {1}".format(vm_name, str(resolved_ips)))
- if len(resolved_ips) > 0:
+ if isinstance(resolved_ips, list) and len(resolved_ips):
return r... |
TitanCNA: allow running with genomes with "chr" prefixes
This will ensure that the right option is set with a compatible genome.
Currently the list is hardcoded as I think it is not possible to detect
those. | @@ -102,6 +102,8 @@ def _run_titancna(cn_file, het_file, ploidy, num_clusters, work_dir, data):
with utils.chdir(tmp_dir):
cmd = ("{export_cmd} && titanCNA.R --id {sample} --hetFile {het_file} --cnFile {cn_file} "
"--numClusters {num_clusters} --ploidy {ploidy} --numCores {cores} --outDir {tmp_dir}")
+ if data["genome_... |
[Datasets] Remove the non-useful comment in `map_batches()`
This PR is a quick fix to remove the non-useful comment introduced in probably during debugging.
Replace the comment with a meaningful one. | @@ -614,7 +614,7 @@ class Dataset(Generic[T]):
zero_copy_batch=zero_copy_batch,
)
- # breakpoint()
+ # TODO(chengsu): pass function name to MapBatches logical operator.
if hasattr(fn, "__self__") and isinstance(
fn.__self__, ray.data.preprocessor.Preprocessor
):
|
Add an "error" token to the testsuite reference lexer
TN: | @@ -6,9 +6,10 @@ from langkit.lexer import (
class Token(LexerToken):
+ Def = WithText()
+ Error = WithText()
Example = WithText()
Null = WithText()
- Def = WithText()
Comma = WithText()
Dot = WithText()
@@ -28,9 +29,10 @@ foo_lexer.add_rules(
(Pattern(r'[ \n\r\t]+'), Ignore()),
(Eof(), Token.Termination),
+ (Literal('... |
Report datadog user stats more frequently
and decouple from calculated properties | @@ -74,8 +74,6 @@ def _update_calculated_properties():
get_domains_to_update_es_filter()
).fields(["name", "_id"]).run().hits
- all_stats = all_domain_stats()
- datadog_report_user_stats(commcare_users_by_domain=all_stats['commcare_users'])
for r in results:
dom = r["name"]
domain_obj = Domain.get_by_name(dom)
@@ -95,6... |
fix(futures_pig): fix rename futures_pig_info and futures_pig_rank interface
fix rename futures_pig_info and futures_pig_rank interface | @@ -1689,8 +1689,8 @@ if __name__ == "__main__":
print(stock_hk_spot_em_df)
stock_zh_a_hist_df = stock_zh_a_hist(
- symbol="301183",
- period="weekly",
+ symbol="430090",
+ period="daily",
start_date="20220516",
end_date="20220722",
adjust="hfq",
|
Fix VOD issues with longer keyframe intervals
* Fix VOD issues with longer keyframe intervals
* Move probe function to util
Update comment
* Use recording duration for keyFrameDurations
* Remove unused early return
* Avoid clipping first clip | @@ -849,16 +849,13 @@ def vod_ts(camera_name, start_ts, end_ts):
for recording in recordings:
clip = {"type": "source", "path": recording.path}
duration = int(recording.duration * 1000)
- # Determine if offset is needed for first clip
- if recording.start_time < start_ts:
- offset = int((start_ts - recording.start_time... |
Update Dockerfile.xpress.pyjul
reorder commands to run from most general to most specific | @@ -3,6 +3,8 @@ FROM nlaws/pyjul
ENV APP_ENV=local
ENV SRC_DIR=/opt/reopt/reo/src
+# Add remote debugging capability
+RUN apt-get update && apt-get install telnet
# Install Xpress solver
ENV XPRESSDIR=/opt/xpressmp
@@ -35,8 +37,5 @@ COPY . /opt/reopt
WORKDIR /opt/reopt
EXPOSE 8000
RUN ["pip", "install", "-r", "requirem... |
fix Exchange name
change Exchange to Microsoft Exchange | "creation_date": "2019-06-03",
"data_metadata": {
"data_source": [
- "Exchange",
+ "Microsoft Exchange",
"SMTP",
"Cuckoo",
"Splunk",
"DeepSight"
],
"providing_technologies": [
- "Exchange",
+ "Microsoft Exchange",
"SMTP",
"Cuckoo",
"Splunk",
|
Update bulkresize.py file
Add rename_img and output_path_concat functions
This additions will seperate the login of renaming or the path concatination of the resized images from the resizing logic
Now bulk_resizer function has only one functionality which is the resizing of the images | @@ -34,6 +34,16 @@ def get_extension(path):
else:
return False
+def rename_img(path, number):
+ output_path = path + '/' + str(number) + '.jpg'
+ return output_path
+
+def output_path_concat(path, im_path):
+ output_path = path + '/' + \
+ os.path.splitext(os.path.basename(im_path))[0] + '.jpg'
+
+ return output_path
+... |
checkout: add --jobs support
Use multiprocessing to run in parallel. When operating on multiple
projects, this can speed things up. Across 1000 repos, it goes from
~9sec to ~5sec with the default -j8.
Tested-by: Mike Frysinger | # See the License for the specific language governing permissions and
# limitations under the License.
+import functools
+import multiprocessing
import sys
-from command import Command
+
+from command import Command, DEFAULT_LOCAL_JOBS, WORKER_BATCH_SIZE
from progress import Progress
@@ -31,27 +34,41 @@ The command is ... |
expressen: fixed an issue we cant find the id
fixes: | @@ -5,7 +5,7 @@ import re
import json
from svtplay_dl.service import Service
-from svtplay_dl.log import log
+from svtplay_dl.error import ServiceError
from svtplay_dl.fetcher.hls import hlsparse
from svtplay_dl.utils.text import decode_html_entities
@@ -16,26 +16,14 @@ class Expressen(Service):
def get(self):
data = s... |
DOC: removed reference to old template
Removed the API reference to the old netCDF pandas instrument template. | @@ -23,21 +23,12 @@ General
:members:
-Instrument Templates
---------------------
-
-General Instrument
-^^^^^^^^^^^^^^^^^^
+Instrument Template
+-------------------
.. automodule:: pysat.instruments.templates.template_instrument
:members: __doc__, init, default, load, list_files, list_remote_files, download, clean
-ne... |
fix: update docs link checker
since docs are moved to wiki | @@ -24,6 +24,8 @@ def docs_link_exists(body):
parts = parsed_url.path.split('/')
if len(parts) == 5 and parts[1] == "frappe" and parts[2] in docs_repos:
return True
+ if parsed_url.netloc in ["docs.erpnext.com", "frappeframework.com"]:
+ return True
if __name__ == "__main__":
|
kivy: (fix) clicking "max" to send would raise for empty wallet
fix | @@ -1110,7 +1110,8 @@ class ElectrumWindow(App, Logger):
def cb(amount):
if amount == '!':
screen.is_max = True
- screen.amount = self.get_max_amount() + ' ' + self.base_unit
+ max_amt = self.get_max_amount()
+ screen.amount = (max_amt + ' ' + self.base_unit) if max_amt else ''
else:
screen.amount = amount
screen.is_ma... |
Add automatic sdist/wheel deployment
Reasons to use a distinct build deployment stage instead of `deploy`
key:
more customizable
if using more than one job, waits until all jobs have succeeded | @@ -24,3 +24,14 @@ script:
- twine check dist/*
- flake8
- nosetests
+
+jobs:
+ include:
+ - stage: deploy
+ name: Upload release to PyPI
+ if: tag is present
+ script: twine upload dist/*
+ env:
+ - TWINE_USERNAME: coldfix-deploy
+ # TWINE_PASSWORD
+ - secure: "d8WYCQ56Se9Y9Z+GIwfLnMRgzfqiPm73XL8Cv3QBAeK/iyN8tsfoVknh5... |
add fetchItems to library
use totalSize so we dont do any more http requests then needed. | @@ -360,6 +360,33 @@ class LibrarySection(PlexObject):
# Private attrs as we dont want a reload.
self._total_size = None
+ def fetchItems(self, ekey, cls=None, **kwargs):
+ """ Load the specified key to find and build all items with the specified tag
+ and attrs. See :func:`~plexapi.base.PlexObject.fetchItem` for more ... |
erepo: replace copy_tree from disutils with copytree of shutil
Fixes: | @@ -144,7 +144,7 @@ def _cached_clone(url, rev, for_write=False):
revision checked out. If for_write is set prevents reusing this dir via
cache.
"""
- from distutils.dir_util import copy_tree
+ from shutil import copytree
# even if we have already cloned this repo, we may need to
# fetch/fast-forward to get specified r... |
modals: Make settings page selectors more specific.
The `#settings_page .right.show` selector was breaking the Emoji style inputs in Display settings on mobile responsive view.
Fixes | @@ -989,7 +989,7 @@ form#add_new_subscription {
#subscription_overlay .left,
#subscription_overlay .right,
#settings_page .left,
- #settings_page .right {
+ #settings_page .content-wrapper.right {
position: absolute;
display: block;
margin: 0;
@@ -1008,7 +1008,7 @@ form#add_new_subscription {
}
#subscription_overlay .r... |
extra-filerefs include files even if no refs in states to apply
Fixes | @@ -135,9 +135,9 @@ def lowstate_file_refs(chunks, extras=''):
elif state.startswith('__'):
continue
crefs.extend(salt_refs(chunk[state]))
- if crefs:
if saltenv not in refs:
refs[saltenv] = []
+ if crefs:
refs[saltenv].append(crefs)
if extras:
extra_refs = extras.split(',')
|
revert change to get_closed_and_deleted_ids
case lite view doesn't include deleted cases | @@ -10,7 +10,7 @@ from casexml.apps.case.dbaccessors import (
get_related_indices,
)
from casexml.apps.case.models import CommCareCase
-from casexml.apps.case.util import get_case_xform_ids
+from casexml.apps.case.util import get_case_xform_ids, iter_cases
from casexml.apps.stock.models import StockTransaction
from cor... |
Lexical envs: minor refactoring in Shed_Rebindings
TN: | @@ -875,13 +875,6 @@ package body Langkit_Support.Lexical_Env is
(From_Env : Lexical_Env;
Rebindings : Env_Rebindings) return Env_Rebindings
is
- function Get_First_Rebindable_Env (L : Lexical_Env) return Lexical_Env
- is
- (if L = null
- or else (L.Node /= No_Element and then Is_Rebindable (L.Node))
- then L
- else Ge... |
List.get_type: use resolve_type on the list_cls
TN: | @@ -941,7 +941,7 @@ class List(Parser):
def get_type(self):
with self.diagnostic_context():
if self.list_cls:
- ret = self.list_cls
+ ret = resolve_type(self.list_cls)
check_source_language(
ret.is_list_type,
'Invalid list type for List parser: {}. '
|
Update whoisvalentine.py to address requested changes
A few things have been changed to address the changes listed under PR
Changed the color tag of the embed from both commands from
discord.Color.dark_magenta() to bots.constants.Colours.pink
Renamed valentine_facts to valentine_fact
These changes are needed to fit the... | @@ -6,6 +6,8 @@ from random import choice
import discord
from discord.ext import commands
+from bot.constants import Colours
+
log = logging.getLogger(__name__)
with open(Path("bot", "resources", "valentines", "valentine_facts.json"), "r") as file:
@@ -24,7 +26,7 @@ class ValentineFacts:
embed = discord.Embed(
title="W... |
Documentation: replacing unhelpful link
The link that was previously used here does not contain information about supported framework version of PyTorch.
Adding a link to the DLC images, which contains all supported PT version. | @@ -75,7 +75,7 @@ class PyTorch(Framework):
framework_version (str): PyTorch version you want to use for
executing your model training code. Defaults to ``None``. Required unless
``image_uri`` is provided. List of supported versions:
- https://github.com/aws/sagemaker-python-sdk#pytorch-sagemaker-estimators.
+ https://... |
{CI} Update build.sh
Support `.sql` | @@ -142,6 +142,7 @@ cat >>$testsrc_dir/setup.py <<EOL
'*.md',
'*.pem',
'*.pfx',
+ '*.sql',
'*.txt',
'*.txt',
'*.xml',
@@ -157,6 +158,7 @@ cat >>$testsrc_dir/setup.py <<EOL
'**/*.md',
'**/*.pem',
'**/*.pfx',
+ '**/*.sql',
'**/*.txt',
'**/*.txt',
'**/*.xml',
|
Fix bug in result of compile if AST flag is set.
If a class with __slots__ inherits a class without __slots__, any attribute can be set to its instances. | @@ -365,10 +365,7 @@ function compile() {
root.parent_block = $B.builtins_scope
$B.parser.dispatch_tokens(root, $.source)
if($.flags == $B.PyCF_ONLY_AST){
- var ast = root.ast(),
- klass = ast.constructor.$name
- $B.create_python_ast_classes()
- return $B.python_ast_classes[klass].$factory(ast)
+ return root.ast()
}
re... |
call mem::forget on variable passed from Rust to Python
Prior to this commit there was a Clippy lint error about calling
mem::forget on a Copy trait, which doesn't have a destructor. | @@ -304,7 +304,7 @@ pub unsafe extern "C" fn block_publisher_summarize_block(
*result = consensus.as_ptr();
*result_len = consensus.as_slice().len();
- mem::forget(result);
+ mem::forget(consensus);
ErrorCode::Success
}
|
Complete the docstrings for forward passes in the model base class
modified: src/poem/models/base.py | @@ -126,8 +126,16 @@ class BaseModule(nn.Module):
self.to(self.device)
torch.cuda.empty_cache()
- # Predicting scores calls the owa forward function, as this
def predict_scores(self, triples):
+ """
+ Calculate the scores for triples.
+ This method takes subject, relation and object of each triple and calculates the co... |
Update HPE Aruba documentation for 5400R
This documentation-only update adds a missing command for the HPE
Aruba 5400R, which enables V3-only mode. This is necessary for a
few OpenFlow commands related to pipeline configuration. | @@ -12,7 +12,7 @@ These switches include:
- `3810 <http://www.arubanetworks.com/products/networking/switches/3810-series/>`_
- `2930F <http://www.arubanetworks.com/products/networking/switches/2930f-series/>`_
-The FAUCET pipeline is only supported from ``16.03`` release of the firmware onwards.
+The FAUCET pipeline is... |
Fix Distributive link in README
Distributive link originally pointed to consul.io, instead point to the Github repository for Distributive. | @@ -3,8 +3,8 @@ Distributive
.. versionadded:: 1.1
-`Distributive <https://www.consul.io/>`_ is used in Mantl to run detailed,
-granular health checks for various services.
+`Distributive <https://github.com/CiscoCloud/distributive>`_ is used in Mantl to
+run detailed, granular health checks for various services.
This ... |
Deseasonify: remove `Evergreen` season
The `SeasonBase` now serves as the fallback, off-season season for when
no other season is available. | -from bot.seasons import SeasonBase
-
-
-class Evergreen(SeasonBase):
- """Evergreen Seasonal event attributes."""
-
- bot_icon = "/logos/logo_seasonal/evergreen/logo_evergreen.png"
- icon = (
- "/logos/logo_animated/heartbeat/heartbeat_512.gif",
- "/logos/logo_animated/spinner/spinner_512.gif",
- "/logos/logo_animated... |
updated news.rst
updated News.rst with information about fastqc reports | @@ -7,6 +7,8 @@ snakePipes 1.2.1
* Fixed a typo in ``createIndices``.
* Implemented complex experimental design in RNAseq (differential gene expression), ChIP/ATACseq (differential binding).
* Fixed an issue with ggplot2 and log transformation in RNAseq report Rmd.
+ * fastqc folder is created and its content will be a... |
fix epacems_year_and_state handling "all" input
Also use etl_params dict keys epacems_year/state instead of just year/state | @@ -4,6 +4,7 @@ from pathlib import Path
import dask.dataframe as dd
import pytest
+from pudl.etl import _validate_params_epacems
from pudl.output.epacems import epacems
@@ -14,7 +15,8 @@ def epacems_year_and_state(etl_params):
epacems = [item for item in etl_params['datapkg_bundle_settings']
[0]['datasets'] if 'epacem... |
Remove google safebrowsing flags
Global Wayback policy is to archive everything, so its best to avoid
disabling these flags. | @@ -163,9 +163,6 @@ class Chrome:
'--disable-first-run-ui', '--no-first-run',
'--homepage=about:blank', '--disable-direct-npapi-requests',
'--disable-web-security', '--disable-notifications',
- '--disable-client-side-phishing-detection',
- '--safebrowsing-disable-auto-update',
- '--safebrowsing-disable-download-protect... |
Update README.md
Correct Markdown syntax of the link. | @@ -7,7 +7,7 @@ pywebview is a lightweight cross-platform wrapper around a webview component tha
pywebview is lightweight and has no dependencies on an external GUI framework. It uses native GUI for creating a web component window: WinForms on Windows, Cocoa on Mac OSX and Qt4/5 or GTK3 on Linux. If you choose to freez... |
Add cls command
Note that this relies on Console Window object storing the panel in a `control` attribute (rather than `panel`) and I will standardise this in the next commit. | @@ -7,6 +7,10 @@ from ..mwindow import MWindow
_ = wx.GetTranslation
+RICHTEXT_TRANSLATE = {
+ "[Red]": "",
+}
+
def register_panel_console(window, context):
panel = ConsolePanel(window, wx.ID_ANY, context=context)
@@ -27,6 +31,22 @@ def register_panel_console(window, context):
window.on_pane_add(pane)
context.register... |
Skip failing test
Summary: Pull Request resolved: | @@ -3219,7 +3219,7 @@ def foo(x):
self.checkScript(annotate_none, ())
self.checkScript(annotate_none_no_optional, ())
- @unittest.skipIf(PY2, "Python 3 required")
+ @unittest.skipIf(True, "Python 3 required")
def test_type_annotate_py3(self):
code = dedent("""
import torch
|
luhn: update tests to v1.3.0
Closes | @@ -5,7 +5,7 @@ import unittest
from luhn import Luhn
-# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0
+# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0
class LuhnTest(unittest.TestCase):
def test_single_digit_strings_can_not_be_valid(self):
@@ -29,6 +29,9 @@ class... |
ENH: convert_tinydb_to_sqlite uses the original log date
[CHANGED] derives from first line of the logfile if possible,
otherwise leaves as conversion date | from __future__ import annotations
+import contextlib
import inspect
import json
import re
@@ -589,22 +590,22 @@ def convert_directory_datastore(
def convert_tinydb_to_sqlite(source: Path, dest: Optional[Path] = None) -> DataStoreABC:
- try:
+ from datetime import datetime
from fnmatch import translate
+ from .data_sto... |
update rebuildstaging to tell you how to deploy
rather than doing it for you, since deploys are now done from commcarehq-ansible repo | @@ -67,7 +67,8 @@ fi
if [[ $deploy = 'y' && $no_push != 'y' ]]
then
- rebuildstaging $args && git checkout autostaging && git submodule update --init --recursive && fab staging awesome_deploy:confirm=no
+ rebuildstaging $args && \
+ echo "rebuildstaging will no longer deploy for you. From commcarehq-ansible, run `fab s... |
Update to use latest stable Ocean
dwave-tabu -> 0.2.x
dwave-neal -> 0.5.x
dwave-hybrid -> 0.3.x
dwave-networkx -> 0.8.x | @@ -29,12 +29,12 @@ else:
install_requires = [
- 'dwave-networkx>=0.7.0,<0.8.0',
+ 'dwave-networkx>=0.8.0,<0.9.0',
'dwave-system>=0.7.0,<0.8.0',
'dwave-qbsolv>=0.2.7,<0.3.0',
- 'dwave-hybrid>=0.2.0,<0.3.0',
- 'dwave-neal>=0.4.0,<0.5.0',
- 'dwave-tabu>=0.1.3,<0.2.0',
+ 'dwave-hybrid>=0.3.0,<0.4.0',
+ 'dwave-neal>=0.5.0,... |
Update response.py
Providing more information in case of AudienceRestrictions conditions not satisfied | @@ -212,10 +212,8 @@ def for_me(conditions, myself):
if audience.text.strip() == myself:
return True
else:
- # print("Not for me: %s != %s" % (audience.text.strip(),
- # myself))
- pass
-
+ logger.debug("AudienceRestriction - One condition not satisfied: %s != %s" % (audience.text.strip(), myself))
+ logger.debug("Audi... |
nix: add defaultText to services.lnbits.package
Without this, evaluating the module doesn't provide a default value visible on search.nixos.org | let
defaultUser = "lnbits";
cfg = config.services.lnbits;
- inherit (lib) mkOption mkIf types optionalAttrs;
+ inherit (lib) mkOption mkIf types optionalAttrs literalExpression;
in
{
@@ -25,6 +25,7 @@ in
};
package = mkOption {
type = types.package;
+ defaultText = literalExpression "pkgs.lnbits";
default = pkgs.lnbits... |
Update netwire.txt
Adding Aliases field | # Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/)
# See the file 'LICENSE' for copying permission
+# Aliases: netwiredrc, netwire
+
# Reference: https://www.sophos.com/en-us/threat-center/threat-analyses/viruses-and-spyware/Troj~NetWire-EK/detailed-analysis.aspx
mommyreal.ddns.net
|
D( G(z).detach() ), added D means for monitoring
and use os.makedirs py2.7 compatible | @@ -35,7 +35,10 @@ parser.add_argument('--outf', default='.', help='folder to output images and mod
opt = parser.parse_args()
print(opt)
-os.makedirs(opt.outf, exist_ok=True)
+try:
+ os.makedirs(opt.outf)
+except OSError:
+ pass
opt.manualSeed = random.randint(1, 10000) # fix seed
print("Random Seed: ", opt.manualSeed)... |
removing iOS and Android configuration
These settings are now better managed natively by CMake | @@ -62,35 +62,12 @@ class CppRestSDKConan(ConanFile):
if self._cmake:
return self._cmake
- if self.settings.os == "iOS":
- with open('toolchain.cmake', 'w') as toolchain_cmake:
- if self.settings.arch == "armv8":
- arch = "arm64"
- sdk = "iphoneos"
- elif self.settings.arch == "x86_64":
- arch = "x86_64"
- sdk = "iphon... |
Add a note to uninstall pip packages on unstack
Adding a note in quickstart guide to uninstall pip
packages before restacking the environment.
Closes Bug: | @@ -52,6 +52,16 @@ Run devstack::
$ cd /opt/stack/devstack
$ ./stack.sh
+.. note::
+
+ If the developer have a previous devstack environment and they want to re-stack
+ the environment, they need to uninstall the pip packages before restacking::
+
+ $ ./unstack.sh
+ $ ./clean.sh
+ $ pip freeze | grep -v '^\-e' | xargs ... |
Install torchvision before all tests, tickles
Summary:
Pull Request resolved: | @@ -159,19 +159,20 @@ test_custom_script_ops() {
}
if [ -z "${JOB_BASE_NAME}" ] || [[ "${JOB_BASE_NAME}" == *-test ]]; then
+ test_torchvision
test_python_nn
test_python_all_except_nn
test_aten
- test_torchvision
test_libtorch
test_custom_script_ops
else
if [[ "${JOB_BASE_NAME}" == *-test1 ]]; then
+ test_torchvision
t... |
[images] only build images on deploy or dev
* [images] only build images on deploy or dev
The wheel container prevents this image from ever being cached.
* Update build.yaml | @@ -1576,6 +1576,8 @@ steps:
inputs:
- from: /wheel-container.tar
to: /wheel-container.tar
+ scopes:
+ - dev
- kind: runImage
name: test_hail_public_image
image:
@@ -1587,6 +1589,8 @@ steps:
gsutil --version
dependsOn:
- hail_public_image
+ scopes:
+ - dev
- kind: buildImage
name: genetics_public_image
dockerFile: dock... |
Update CentOS quickstart doc
This line looked out of place seeing as I'm deploying Queens. I checked
with Major Hayden who verified that adding the extra repo is no longer
required. | @@ -61,7 +61,6 @@ system packages are upgraded and then reboot into the new kernel:
## CentOS
# yum upgrade
- # yum install https://rdoproject.org/repos/openstack-pike/rdo-release-pike.rpm
# yum install git
# reboot
|
DOC: update np.around docstring with note about floating-point error
Fixes
[ci-skip] | @@ -3125,10 +3125,35 @@ def around(a, decimals=0, out=None):
-----
For values exactly halfway between rounded decimal values, NumPy
rounds to the nearest even value. Thus 1.5 and 2.5 round to 2.0,
- -0.5 and 0.5 round to 0.0, etc. Results may also be surprising due
- to the inexact representation of decimal fractions i... |
Ignore kill event in interchange command server
The interchange is shut down by process termination, so
this code path is not needed. | @@ -264,7 +264,7 @@ class Interchange(object):
hub_channel.send_pyobj((MessageType.NODE_INFO, d))
@wrap_with_logs(target="interchange")
- def _command_server(self, kill_event):
+ def _command_server(self):
""" Command server to run async command to the interchange
"""
logger.debug("Command Server Starting")
@@ -274,7 +... |
fix test_create_newdb for Python <3.8
The Path.unlink() method was introduced in 3.8 - using it broke
the remaining tests in older Python because the test database
was not created. | @@ -85,7 +85,9 @@ class TestCreatedbSubcommand(unittest.TestCase):
def test_create_newdb(self):
"""Test creation of new empty pyani database."""
# Remove existing dbpath first
- self.dbpath.unlink(missing_ok=True)
+ # The missing_ok argument does not come in until Python 3.8
+ if self.dbpath.exists():
+ self.dbpath.unl... |
Another dce fix
Summary:
Pull Request resolved:
Another place where onnx export is running dead code elimination after making the jit graph invalid. Fixing it. | @@ -351,7 +351,7 @@ def _model_to_graph(model, args, verbose=False, training=False,
if do_constant_folding and _export_onnx_opset_version == 9:
params_dict = torch._C._jit_pass_onnx_constant_fold(graph, params_dict)
- torch._C._jit_pass_dce(graph)
+ torch._C._jit_pass_dce_allow_deleting_nodes_with_side_effects(graph)
i... |
Update rtd.yml
Re-start from dev lock | @@ -7,28 +7,26 @@ dependencies:
- xarray=0.16.1
- aiohttp=3.6.2
- dask=2.30.0
- - scipy=1.1.0
- - scikit-learn=0.21
-# - distributed=2.30.0
-# - matplotlib=3.3.2
+ - distributed=2.30.0
+ - matplotlib=3.3.2
+ - zarr=2.4.0
+ - scikit-learn=0.23.2
- ipython=7.18.1
- - conda-forge::netcdf4=1.5.4
-# - seaborn=0.11.0
- - con... |
modified examples/cpp/README.md
modified exaamples/cpp/README.md | A walkthrough example of developing algorithm in Python and running it in C++ on MNIST handwritten digit classification talk.
+### [mnist_training](mnist_training)
+
+A walkthrough example of developing algorithm in C++ training with an nnp file of an initialized model on MNIST handwritten digit classification.
+
### [... |
Update test_preprocess.py
We now have 4 specials, value needs to be updated. | @@ -57,8 +57,8 @@ class TestData(unittest.TestCase):
self.assertEqual(Counter({'c': 6, 'b': 4, 'a': 2, 'e': 2, 'f': 1}),
merged.freqs)
- # 3 specicials + 2 words (since we pass 2 to merge_vocabs)
- self.assertEqual(5, len(merged.itos))
+ # 4 specicials + 2 words (since we pass 2 to merge_vocabs)
+ self.assertEqual(6, l... |
Note that sigma_m is mosaicity
Simplest possible fix that closes | @@ -568,7 +568,7 @@ def __init__(
self._sigma_b = beam_divergence.sigma()
- logger.info("Calculating E.S.D Reflecting Range.")
+ logger.info("Calculating E.S.D Reflecting Range (mosaicity).")
reflecting_range = ComputeEsdReflectingRange(
crystal,
beam,
|
MAINT: Relax asserts to match relaxed reducelike resolution behaviour
This closes which was due to the assert not being noticed
triggered (not sure why) during initial CI run.
The behaviour is relaxed, so the assert must also be relaxed. | @@ -3032,8 +3032,12 @@ PyUFunc_Accumulate(PyUFuncObject *ufunc, PyArrayObject *arr, PyArrayObject *out,
return NULL;
}
- /* The below code assumes that all descriptors are identical: */
- assert(descrs[0] == descrs[1] && descrs[0] == descrs[2]);
+ /*
+ * The below code assumes that all descriptors are interchangeable, ... |
Remove code block from within link block
The c.g.c. generator doesn't look like it parses this correctly. Instead of trying to post-process this or modify the generator, I think we should take the easy way out and simply remove the code block. | @@ -66,7 +66,7 @@ _DETAILED_HELP_TEXT = ("""
<https://cloud.google.com/storage/docs/object-versioning>`_
- `Guide for using Object Versioning
<https://cloud.google.com/storage/docs/using-object-versioning>`_
- - The `reference page for the ``gsutil versioning`` command
+ - The `reference page for the gsutil versioning ... |
Pass rank parameter to BotorchModel
Summary: Add rank parameter as optional argument for BoTorchModel __init__ function and cross_validate function in botorch.py and also in _get_model in botorch_defaults.py | @@ -170,6 +170,7 @@ class FixedNoiseGP(BatchedMultiOutputGPyTorchModel, ExactGP):
train_Yvar: Tensor,
covar_module: Optional[Module] = None,
outcome_transform: Optional[OutcomeTransform] = None,
+ **kwargs: Any,
) -> None:
r"""A single-task exact GP model using fixed noise levels.
|
Fix numerical typo in the examples
Changes `heads=128` to `heads=12` in the example which is more realistic. | @@ -29,7 +29,7 @@ class MultiHeadAttention(tf.keras.layers.Layer):
between them:
```python
- mha = MultiHeadAttention(head_size=128, num_heads=128)
+ mha = MultiHeadAttention(head_size=128, num_heads=12)
query = tf.random.uniform((32, 20, 200)) # (batch_size, query_elements, query_depth)
key = tf.random.uniform((32, 15... |
chore(buildpacks): update heroku-buildpack-php to v117
See | @@ -36,7 +36,7 @@ download_buildpack https://github.com/heroku/heroku-buildpack-gradle.git
download_buildpack https://github.com/heroku/heroku-buildpack-grails.git v20
download_buildpack https://github.com/heroku/heroku-buildpack-play.git v26
download_buildpack https://github.com/heroku/heroku-buildpack-python.git v97
... |
Update views.py
Fixing typo in 'version' | @@ -42,7 +42,7 @@ class InstalledPluginsAPIView(APIView):
'author': plugin_app_config.author,
'author_email': plugin_app_config.author_email,
'description': plugin_app_config.description,
- 'verison': plugin_app_config.version
+ 'version': plugin_app_config.version
}
def get(self, request, format=None):
|
Elantra 2021: add missing FW
add FW for 82e9cdd3f43bf83e|2021-05-15--02-42-51 (test route) | @@ -1232,6 +1232,7 @@ FW_VERSIONS = {
b'\xf1\x87\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf1\x00CN7 MDPS C 1.00 1.06 \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 4CNDC106',
b'\xf1\x8756310/AA070\xf1\x00CN7 MDPS C 1.00 1.06 56310/AA070 4CNDC106',
b'\xf1\x8756310AA050\x00\xf1\x00CN7 MDPS C 1.00 1.06 56310AA050\x00 4C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.