message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
[Fix] Update transforms.py
ScalePadding: Fixed interpolation of masks. | @@ -836,7 +836,7 @@ class ScalePadding:
if label is not None:
label = np.uint8(new_label)
label = functional.resize(
- label, self.target_size, interp=cv2.INTER_CUBIC)
+ label, self.target_size, interp=cv2.INTER_NEAREST)
if label is None:
return (im, )
else:
|
companion: Fix pairing requirement flag
Relates to | @@ -39,8 +39,9 @@ _LOGGER = logging.getLogger(__name__)
# Observed values of rpfl (zeroconf):
# 0x62792 -> All on the same network (Unsupported/Mandatory)
# 0x627B6 -> Only devices in same home (Disabled)
-# Mask = 0x62792 & ~0x627B6 = 0x24
-PAIRING_DISABLED_MASK = 0x24
+# 0xB67A2 -> Same as above
+# Mask = 0x62792 & ~... |
Fix typo in logging.rst
Remove extra parenthesis from RequestFormatter constructor. | @@ -129,7 +129,7 @@ handler. ::
formatter = RequestFormatter(
'[%(asctime)s] %(remote_addr)s requested %(url)s\n'
'%(levelname)s in %(module)s: %(message)s'
- ))
+ )
default_handler.setFormatter(formatter)
mail_handler.setFormatter(formatter)
|
fix(currency_boc_sina): fix currency_boc_sina interface
fix currency_boc_sina interface | @@ -21,9 +21,9 @@ def currency_latest(base: str = "USD", api_key: str = "") -> pd.DataFrame:
:return: Latest data of base currency
:rtype: pandas.DataFrame
"""
- payload = {"base": base, "api_key": api_key}
+ params = {"base": base, "api_key": api_key}
url = "https://api.currencyscoop.com/v1/latest"
- r = requests.get(... |
Update runserver_plus message to account for https
This change makes the startup message correctly print "https" vs "http" if `ssl_context` is available | @@ -273,8 +273,6 @@ class Command(BaseCommand):
open_browser = options.get('open_browser', False)
cert_path = options.get("cert_path")
quit_command = (sys.platform == 'win32') and 'CTRL-BREAK' or 'CONTROL-C'
- bind_url = "http://%s:%s/" % (
- self.addr if not self._raw_ipv6 else '[%s]' % self.addr, self.port)
extra_fil... |
Xin tone curve failure, fix
The tone curve doesn't work on proper images it needs a grayscale conversion to work. Added that in for xin. | @@ -177,6 +177,11 @@ class RasterScripts(Module):
'units': 0,
'step': 2
})
+ ops.append({
+ 'name': 'grayscale',
+ 'enable': True,
+ 'invert': False,
+ })
ops.append({
'name': 'tone',
'type': 'spline',
|
removing resetting delay to 0 in UHFQC set default settings
Not to mess up a hack that compensates for delay when measuring with optimal weights | @@ -272,8 +272,8 @@ class UHFQC(Instrument):
# detect when the measurement is complete, and then manually fetch the results using the 'get'
# command. Disabling the automatic result readout speeds up the operation a bit, since we avoid
# sending the same data twice.
- self.quex_iavg_readout(0)
- self.quex_rl_readout(0)... |
Convert typed dict earlier in new_context
To avoid possible argument mutation for arguments that have pointers, like dictionaries | @@ -725,6 +725,7 @@ class PlaywrightState(LibraryComponent):
[https://forum.robotframework.org/t/comments-for-new-context/4307|Comment >>]
"""
params = locals_to_params(locals())
+ params = convert_typed_dict(self.new_context.__annotations__, params)
params = self._set_video_path(params)
params = self._set_video_size_t... |
Allow uploads to user AND group libraries
fixes | @@ -1678,7 +1678,8 @@ class Zupload(object):
reg_data = {"upload": authdata.get("uploadKey")}
upload_reg = requests.post(
url=self.zinstance.endpoint
- + "/users/{u}/items/{i}/file".format(
+ + "/{t}/{u}/items/{i}/file".format(
+ t=self.zinstance.library_type,
u=self.zinstance.library_id, i=reg_key
),
data=reg_data,
|
fix various typos and backtick usage in 4.0 changelog/release notes
adds a ref to the new setting added for `WAGTAILADMIN_UNSAFE_PAGE_DELETION_LIMIT` - see | @@ -261,6 +261,8 @@ The interval (in milliseconds) to check for changes made in the page editor befo
`WAGTAILADMIN_GLOBAL_PAGE_EDIT_LOCK` can be set to `True` to prevent users from editing pages that they have locked.
+(wagtailadmin_unsafe_page_deletion_limit)=
+
### `WAGTAILADMIN_UNSAFE_PAGE_DELETION_LIMIT`
```python
|
Update mobileInstall.py
Assigment error fix. | @@ -114,7 +114,7 @@ def get_mobileInstall(files_found, report_folder, seeker):
datainsert,
)
db.commit()
-
+ path = ''
tsv_tml_data_list.append((inserttime, actiondesc, bundleid, path))
# logfunc()
|
fix: Changed one more parameter
repo --> root | @@ -36,8 +36,8 @@ def FileExists(filename):
# GIT
@Statement.from_func(historical=True, quantitative=False)
-def LastCommitted(_start_, _end_, repo=None):
- repo = Repo(repo)
+def LastCommitted(_start_, _end_, root=None):
+ repo = Repo(root)
last_commit = next(iter(repo.iter_commits()))
dt = pd.Timestamp(last_commit.co... |
Add proper Apache copyright notice in the about dialog
Including a link to the license. | <property name="comments" translatable="yes">Gaphor is the simple modeling tool written in Python</property>
<property name="website">https://github.com/gaphor/gaphor</property>
<property name="website_label" translatable="yes">Fork me on GitHub</property>
- <property name="license" translatable="yes">This software is ... |
Delete sphere
Until we can be sure non-orthogonal lattices will work | @@ -276,56 +276,6 @@ class VolumetricData(MSONable):
total = np.sum(np.sum(m, axis=0), 0)
return total / ng[(ind + 1) % 3] / ng[(ind + 2) % 3]
- def mask_sphere(self, radius: float, fcoord: npt.ArrayLike):
- """
- Create a mask for a sphere in the data
-
- Args:
- radius: Radius of the mask in Angstroms
- fcoord: The f... |
Trying to fix the travis build
Something went wrong with travis a couple commits back, so I'm cleaning
out the unnecessary code | namespace py = pybind11;
struct JaggedArraySrc {
-private:
-
- /*template <typename T>
- static void set_native_endian(py::array_t<T> input) {
- if (!input.dtype().isnative()) {
- input = input.byteswap().newbyteorder();
- }
- }*/
-
public:
template <typename T>
@@ -240,7 +231,6 @@ public:
PYBIND11_MODULE(_jagged, m) {... |
Add documentation for DELETE method for Swift Object Store API.
Account API does not document 'DELETE' verb, which is a valid request to
delete an account.
This is a doc addition request.
Closes-Bug: | @@ -363,3 +363,67 @@ Response Parameters
- X-Account-Meta-Quota-Bytes: X-Account-Meta-Quota-Bytes_resp
- X-Account-Access-Control: X-Account-Access-Control_resp
- Content-Type: Content-Type_cud_resp
+
+
+Delete the specified account
+============================
+
+.. rest_method:: DELETE /v1/{account}
+
+Deletes the s... |
Bugfix: brew_update_formula.py
Sample command output is:
Error: This command updates brew itself, and does not take formula names.
Use 'brew upgrade thefuck' instead.
This will never match the previous `"Use 'brew upgrade <formula>'" in command.output` test. | @@ -5,7 +5,8 @@ from thefuck.utils import for_app
def match(command):
return ('update' in command.script
and "Error: This command updates brew itself" in command.output
- and "Use 'brew upgrade <formula>'" in command.output)
+ and "Use 'brew upgrade" in command.output
+ and "instead" in command.output)
def get_new_comm... |
[client] tweak order of resolved_visibility conversion
This is required because resolved_visibility attribute may return RequestedVisibility in some cases. | @@ -1605,11 +1605,11 @@ def convert_shared_link_metadata(res: sharing.SharedLinkMetadata) -> SharedLinkM
effective_audience = LinkAudience.Public
elif res.link_permissions.resolved_visibility.is_team_only():
effective_audience = LinkAudience.Team
+ elif res.link_permissions.resolved_visibility.is_password():
+ require_... |
Updated Show_Interface.py Regex
Regex pattern to match VRF name has been updated to include the ':' character (new regex patter is below).
(?P<vrf_name>[A-Za-z0-9:]+) | @@ -78,7 +78,7 @@ class ShowIpInterfaceBrief(ShowIpInterfaceBriefSchema):
# Loopback500 192.168.220.1 Up Up default
p = re.compile(r'^\s*(?P<interface>[a-zA-Z0-9\/\.\-]+) '
'+(?P<ip_address>[a-z0-9\.]+) +(?P<interface_status>[a-zA-Z]+) '
- '+(?P<protocol_status>[a-zA-Z]+) +(?P<vrf_name>[A-Za-z0-9]+)$')
+ '+(?P<protocol... |
Update messages.json
Unsure how 0.9.4's message was delivered to users | "0.9.0": "messages/0.9.0.txt",
"0.9.1": "messages/0.9.1.txt",
"0.9.2": "messages/0.9.2.txt",
- "0.9.3": "messages/0.9.3.txt"
+ "0.9.3": "messages/0.9.3.txt",
+ "0.9.4": "messages/0.9.4.txt",
+ "0.9.5": "messages/0.9.5.txt"
}
|
Changed abstract method TTSPlugin.say
Added the "voice" parameter to the abstract class for text to
speech plugins. | @@ -126,7 +126,7 @@ class TTSPlugin(GenericPlugin, metaclass=abc.ABCMeta):
Generic parent class for all speakers
"""
@abc.abstractmethod
- def say(self, phrase):
+ def say(self, phrase, voice):
pass
def mp3_to_wave(self, filename):
|
changed postcard naming convention
will need to be adjusted again once sector keyword is available in the FITS header | @@ -13,7 +13,7 @@ import numpy as np
from time import strftime
from astropy.wcs import WCS
-from .version import __version__
+from version import __version__
def make_postcards(fns, outdir, width=104, height=148, wstep=None, hstep=None):
@@ -52,7 +52,7 @@ def make_postcards(fns, outdir, width=104, height=148, wstep=Non... |
simplify conditions and utilize lazy eval
of elif | @@ -64,12 +64,9 @@ def run_prettier_on_file(file):
If Prettier is not installed, a warning is logged.
"""
- _prettier_installed = not shutil.which("prettier") is None
- _pre_commit_installed = not shutil.which("pre-commit") is None
-
- if _prettier_installed:
+ if shutil.which("prettier"):
_run_prettier_on_file(file)
-... |
remove dynamic dependencies from setup.py
they are in violation of PEP517 and PEP518 | # system imports
from setuptools import setup, find_packages
-import importlib.util
# proceed with actual install
@@ -34,12 +33,6 @@ gui_requires = [
syslog_requires = ["systemd-python"]
-# if GUI is installed, always update it as well
-if importlib.util.find_spec("maestral_qt") or importlib.util.find_spec(
- "maestral... |
[Doc] Small graphs readme.txt, edit pass
* [Doc] Small graphs readme.txt, edit pass
Edit for grammar and style. Should this be an .rst on .txt?
* Update README.txt | .. _tutorials2-index:
-Dealing with many small graphs
+Batching many small graphs
==============================
* **Tree-LSTM** `[paper] <https://arxiv.org/abs/1503.00075>`__ `[tutorial]
- <2_small_graph/3_tree-lstm.html>`__ `[code]
+ <2_small_graph/3_tree-lstm.html>`__ `[PyTorch code]
<https://github.com/dmlc/dgl/blo... |
[Hexagon] Skip HexagonThreadManagerTest.thread_order_signal_wait unit test
skip test | @@ -259,6 +259,7 @@ TEST_F(HexagonThreadManagerTest, thread_order) {
}
TEST_F(HexagonThreadManagerTest, thread_order_signal_wait) {
+ GTEST_SKIP() << "Skipping due to: https://github.com/apache/tvm/issues/13169";
std::vector<int> arr;
htm->Wait(streams[1], 1);
|
docs(event.py): format event.py
format event.py | @@ -524,12 +524,15 @@ if __name__ == "__main__":
print(macro_cons_gold_change_df)
macro_cons_gold_amount_df = macro_cons_gold_amount()
print(macro_cons_gold_amount_df)
+ print(pd.concat([macro_cons_gold_volume_df, macro_cons_gold_change_df, macro_cons_gold_amount_df], axis=1))
+
macro_cons_silver_volume_df = macro_cons... |
Add test case for only pulp repos, no packages or modules (currently fails)
This is part of work to fix | @@ -659,6 +659,23 @@ class TestResolveComposes(object):
self.run_plugin_with_args(workflow, expect_error=error_message,
reactor_config_map=reactor_config_map)
+ def test_only_pulp_repos(self, workflow, reactor_config_map): # noqa:F811
+ mock_repo_config(workflow._tmpdir,
+ dedent("""\
+ compose:
+ pulp_repos: true
+ ""... |
added specialization of Factorize operation
in case we factorize by a variable V, which is stupid, we replace Factorize<F,V> by F. This should be usefull when implementing automatic factorization recursively. | @@ -407,15 +407,18 @@ using _P = Param<N>;
// the computation of G, meaning that if G appears several times inside the
// formula F, we will compute it once only
+template < class F, class G > struct FactorizeAlias;
+template < class F, class G > using Factorize = typename FactorizeAlias<F,G>::type;
+
template < class ... |
[tests] Use Portalwiki for logentries_tests.py
btrfswiki is MW 1.19 which is no longer supported.
Remove btrfswiki from test matrix and replace it with
portalwiki which is 1.23 | @@ -50,10 +50,9 @@ class TestLogentriesBase(TestCase):
'target': None,
},
'old': {
- 'family': AutoFamily('btrfs',
- # /api.php required for scriptpath()
- 'https://btrfs.wiki.kernel.org/api.php'),
- 'code': 'btrfs',
+ 'family': AutoFamily('portalwiki',
+ 'https://theportalwiki.com/wiki/Main_Page'),
+ 'code': 'en',
'ta... |
Remove unused field in models.py
replacement_costs no longer reported by REopt.jl | @@ -873,10 +873,6 @@ class FinancialOutputs(BaseModel, models.Model):
null=True, blank=True,
help_text="Up-front capital costs for all technologies, in present value, excluding replacement costs, including incentives."
)
- replacement_costs = models.FloatField(
- null=True, blank=True,
- help_text="Net replacement cost... |
fix for phantom migration warning
Closes | @@ -55,7 +55,7 @@ class InvenTreeModelMoneyField(ModelMoneyField):
def __init__(self, **kwargs):
# detect if creating migration
- if 'makemigrations' in sys.argv:
+ if 'migrate' in sys.argv or 'makemigrations' in sys.argv:
# remove currency information for a clean migration
kwargs['default_currency'] = ''
kwargs['curre... |
DOC: Update mode parameter description to account for shape
The `shape` parameter must be specified when opened in appending mode. Docstring
and exception message wording are updated to reflect this. | @@ -59,6 +59,7 @@ class memmap(ndarray):
| 'r+' | Open existing file for reading and writing. |
+------+-------------------------------------------------------------+
| 'w+' | Create or overwrite existing file for reading and writing. |
+ | | If ``mode == 'w+'`` then `shape` must also be specified. |
+------+----------... |
Remove dependency on requests library from crhelper
This is done in order to avoid packaging additional dependencies when
running AWS Lambda backed custom resources | # Imported from https://github.com/aws-cloudformation/custom-resource-helper
+# The file has been modified to drop dependency on requests package
# flake8: noqa
from __future__ import print_function
-import requests
import json
import logging as logging
import time
+from urllib.parse import urlsplit, urlunsplit
+from h... |
not creating the source_dist (as should be done by travis)
Only uploading whl files and not eggs | @@ -50,7 +50,7 @@ after_test:
# Again, you only need build.cmd if you're building C extensions for
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
# interpreter
- - python setup.py sdist bdist_wheel
+ - python setup.py bdist_wheel
artifacts:
# bdist_wheel puts your built wheel in the dist direc... |
Adds a fast-kron implementation of ComputationalSPAMVec.todense()
It turns out that when creating large (~15Q) models the bottleneck
is in the creation of the state prep vectors within
ComputationalSPAMVec.todense(). This commit increases the performance
of this function by using the Cython-implemented fast_kron when
... | @@ -37,6 +37,12 @@ from .polynomial import Polynomial as _Polynomial
from . import replib
from .opcalc import bulk_eval_compact_polys_complex as _bulk_eval_compact_polys_complex
+try:
+ from ..tools import fastcalc as _fastcalc
+except ImportError:
+ _fastcalc = None
+
+
IMAG_TOL = 1e-8 # tolerance for imaginary part b... |
Fix ingestor
## Purpose
make sure the ingest can deal with temporary directory
## Changes
add code to `get_egap_assets` code
## QA Notes
No new details should work now.
## Documentation
Not user-facing
## Side Effects
None that I know of.
## Ticket
None | @@ -119,6 +119,14 @@ def get_egap_assets(guid, creator_auth):
with ZipFile(egap_assets_path, 'r') as zipObj:
zipObj.extractall(temp_path)
+ zip_parent = [file for file in os.listdir(temp_path) if os.path.isdir(file) and file != '__MACOSX']
+ if zip_parent:
+ zip_parent = os.listdir(temp_path)[0]
+ for i in os.listdir(o... |
Fix issue with assertion style in test_fields
Fixes an issue in test_fields.py where the old assertion style was being used and causing an error | @@ -398,9 +398,9 @@ class TestSelectField:
F = make_form(a=SelectField(choices=[]))
form = F(DummyPostData(a=["b"]))
assert not form.validate()
- self.assertEqual(form.a.data, "b")
- self.assertEqual(len(form.a.errors), 1)
- self.assertEqual(form.a.errors[0], "Not a valid choice")
+ assert form.a.data == "b"
+ assert l... |
Fix bug in unembed_response
* The binary quadratic model should be a subset of the embedding,
not the other way around.
* Uses the new BinaryQuadraticModel.__contains__ syntax | @@ -387,7 +387,7 @@ def unembed_response(target_response, embedding, source_bqm, chain_break_method=
The method used to resolve chain breaks.
"""
- if any(v not in source_bqm.linear for v in embedding):
+ if any(v not in embedding for v in source_bqm):
raise ValueError("given bqm does not match the embedding")
energies... |
Fix unexpected redirection behavior
New behavior:
help > name with space
- redirects to a file called "name" (without the quotes)
help > "name with space"
- redirects to a file called "name with space" (without the quotes) | @@ -1840,7 +1840,7 @@ class Cmd(cmd.Cmd):
# REDIRECTION_APPEND or REDIRECTION_OUTPUT
if statement.output == constants.REDIRECTION_APPEND:
mode = 'a'
- sys.stdout = self.stdout = open(os.path.expanduser(statement.output_to), mode)
+ sys.stdout = self.stdout = open(os.path.expanduser(shlex.split(statement.output_to)[0]),... |
docs: Remove securesystemslib mock import
We want to document some securesystemslib classes (Key gets documented
with this change already as it's part of the metadata API). | @@ -61,8 +61,6 @@ html_favicon = "tuf-icon-32.png"
# -- Autodoc configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
-autodoc_mock_imports = ["securesystemslib"]
-
# Tone down the "tuf.api.metadata." repetition
add_module_names = False
py... |
Block any non-GET request to the dashboard
Thanks | @@ -31,4 +31,8 @@ class DashboardSite(AdminSite):
urls = filter(self.valid_url, self.get_urls())
return list(urls), 'admin', self.name
+ def has_permission(self, req):
+ return False if req.method != 'GET' else super().has_permission(req)
+
+
dashboard = DashboardSite()
|
[dagit] preview wrong type config errors same as missing
Summary: resolves
Test Plan:
The red solid entries remain red while value is `None` or the wrong type
{F418767}
Reviewers: dish, bengotow, sashank | @@ -243,22 +243,25 @@ export class RunPreview extends React.Component<RunPreviewProps, RunPreviewState
validation.errors.forEach((e) => {
const path = errorStackToYamlPath(e.stack.entries);
+ errorsAndPaths.push({pathKey: path.join('.'), error: e});
+
if (e.__typename === 'MissingFieldConfigError') {
missingNodes.push(... |
Typo in "Page Detected" description
The description beneath "Page Detected" had the word "automatically" spelled incorrectly. | @@ -141,7 +141,7 @@ page_detect_list:
public: true
title: 'Pages Detected'
desc: |
- This list was created automatcally by guessing which URLs are web pages in this archive file.
+ This list was created automatically by guessing which URLs are web pages in this archive file.
# WARC Paths and Names
|
Added additional entrypoint script.
Added a third entrypoint to use python's minor version as well.
This can help when testing out differences of python versions. One could easily open "ipython3.10" and test it's differences with "ipython3.8". | @@ -211,14 +211,16 @@ def find_entry_points():
use, our own build_scripts_entrypt class below parses these and builds
command line scripts.
- Each of our entry points gets both a plain name, e.g. ipython, and one
- suffixed with the Python major version number, e.g. ipython3.
+ Each of our entry points gets a plain nam... |
Update gandcrab.txt
Some detect optimization. | @@ -38,10 +38,6 @@ gdcbmuveqjsli57x.onion.rip
gdcbmuveqjsli57x.onion.plus
gdcbmuveqjsli57x.onion.to
-# Reference: https://twitter.com/blackorbird/status/1108200419543535616
-
-kakaocorp.link/includes/assets/zufufu.gif
-
# Reference: https://blog.talosintelligence.com/2019/03/threat-roundup-0315-0322.html (Win.Ransomwar... |
Corrects the Jacobian matrix in Autograd tutorial
Fixes | @@ -114,23 +114,23 @@ print(x.grad)
#
# .. math::
# J=\left(\begin{array}{ccc}
-# \frac{\partial y_{1}}{\partial x_{1}} & \cdots & \frac{\partial y_{m}}{\partial x_{1}}\\
+# \frac{\partial y_{1}}{\partial x_{1}} & \cdots & \frac{\partial y_{1}}{\partial x_{n}}\\
# \vdots & \ddots & \vdots\\
-# \frac{\partial y_{1}}{\pa... |
Guard GUILD_MEMBER_ADD/GUILD_MEMBER_REMOVE from errors
If the guilds intent is disabled all guilds are unavailable. This means
we don't receive a member_count attribute and cannot update it. | @@ -731,13 +731,22 @@ class ConnectionState:
member = Member(guild=guild, data=data, state=self)
if self._member_cache_flags.joined:
guild._add_member(member)
+
+ try:
guild._member_count += 1
+ except AttributeError:
+ pass
+
self.dispatch('member_join', member)
def parse_guild_member_remove(self, data):
guild = self.... |
Update icedid.txt
Updated Reference + generic trails. | @@ -40,6 +40,7 @@ nejokexulang.example.com
payfinance.net
# Reference: https://www.crowdstrike.com/blog/bokbots-man-in-the-browser-overview/
+# Reference: https://otx.alienvault.com/pulse/5c99fb543acc7f5eb0e7e933
acquistic.space
ambusted.space
@@ -60,3 +61,5 @@ tybalties.com
ugrigo.space
waharactic.com
yorubal.space
+/... |
updated gdrive to use sync-server-sites
Contains changes from | @@ -73,13 +73,7 @@ class GDriveHandler(AbstractProvider):
format(site_name))
return
- provider_presets = self.presets.get(self.CODE)
- if not provider_presets:
- msg = "Sync Server: No provider presets for {}".format(self.CODE)
- log.info(msg)
- return
-
- cred_path = self.presets[self.CODE].get("credentials_url", {}).... |
Update to conda-build badge link
Updates link used for the conda-build badge. The upstream-dev-ci workflow is now used. | @@ -69,7 +69,7 @@ https://geocat-comp.readthedocs.io/en/latest/citation.html) page.
[github-ci-badge]: https://img.shields.io/github/workflow/status/NCAR/geocat-comp/CI?label=CI&logo=github&style=for-the-badge
[github-conda-build-badge]: https://img.shields.io/github/workflow/status/NCAR/geocat-comp/build_test?label=co... |
Extend pantsd test timeout
This is how long it takes for tests to pass on my laptop | @@ -47,7 +47,7 @@ class PantsDaemonMonitor(ProcessManager):
self._check_pantsd_is_alive()
return self._pid
- def assert_pantsd_runner_started(self, client_pid, timeout=4):
+ def assert_pantsd_runner_started(self, client_pid, timeout=12):
return self.await_metadata_by_name(
name='nailgun-client',
metadata_key=str(client... |
fix comment on dnnlowp op arguments
Summary:
Pull Request resolved:
Fix comment | @@ -55,14 +55,15 @@ namespace caffe2 {
* this option is intended for debugging accuracy issues.
*
* For the following quantization method related options, please refer
- * to deeplearning/quantization/dnnlowp/dnnlowp.cc for more details.
+ * to caffe2/quantization/server/dnnlowp.cc for more details.
*
* - activation_qu... |
Add point mass position
This adds the point mass position to the DataFrame. It loops through
the point mass elements compares it's node to the bearings nodes. The
point mass location is then assigned the value of the bearing top part. | @@ -392,6 +392,15 @@ class Rotor(object):
df.loc[df.tag == t, "y_pos"] = y_pos
y_pos += mean_od / 2
+ # define position for point mass elements
+ dfb = df[df.type == "BearingElement"]
+ for p in point_mass_elements:
+ z_pos = dfb[dfb.n_l == p.n]["nodes_pos_l"].values[0]
+ y_pos = dfb[dfb.n_l == p.n]["y_pos"].values[0]
... |
Update operators - editing
Added link dissolve operator:
Reparents all children of selected link to its effective parent and
delete the link
Added getLeave operator;
Gets all leaves of the spanning tree of the currently selected objects | @@ -34,6 +34,84 @@ import phobos.utils.io as ioUtils
import phobos.defs as defs
+def dissolveLink(obj):
+ """ Remove the selected link and reparent all children to its effective Parent.
+
+ Args:
+ obj(bpy.types.Object): the link to dissolve
+ """
+
+ # Store original layers
+ originallayers = list(bpy.context.scene.la... |
Upgrade GitPython 3.1.27 -> 3.1.29, and its deps: gitdb,smmap,typing-extensions
GitPython 3.1.27 -> 3.1.29
gitdb 4.0.9 -> no upgrade
smmap 5.0.0 -> no upgrade
typing-extensions 4.3.0 -> 4.4.0 | @@ -52,7 +52,7 @@ genshi==0.7.7
# via creoleparser
gitdb==4.0.9
# via gitpython
-gitpython==3.1.27
+gitpython==3.1.29
# via -r requirements.in
gunicorn==20.1.0
# via -r requirements.in
@@ -190,7 +190,7 @@ translationstring==1.4
# via colander
turbogears2==2.3.12
# via -r requirements.in
-typing-extensions==4.3.0
+typin... |
Fix bug in Ngram splitting logic
Rather than returning the TemporarySpan, along with its splits, Snorkel
was returning the TemporarySpan twice, and only the 2nd split. Hiromu
Hota fixed this bug in Fonduer in [1]. This commit fixes it for Snorkel.
[1] | @@ -172,7 +172,7 @@ class Ngrams(CandidateSpace):
ts1 = TemporarySpan(char_start=start, char_end=start + m.start(1) - 1, sentence=context)
if ts1 not in seen:
seen.add(ts1)
- yield ts
+ yield ts1
ts2 = TemporarySpan(char_start=start + m.end(1), char_end=end, sentence=context)
if ts2 not in seen:
seen.add(ts2)
|
Upgrade to Beta status
With the h2spec and autobahn websocket compliance test passes and my
own production testing I think it is safe to upgrade the status. | @@ -38,7 +38,7 @@ setup(
author_email='philip.graham.jones@googlemail.com',
license='MIT',
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
|
Enable test_nested_rpc in rpc_test.py
Summary:
Pull Request resolved:
As after we only test RPC using spawn, the multi-thread/fork
error should disappear.
Test Plan: Imported from OSS | @@ -679,7 +679,6 @@ class RpcTest(object):
with self.assertRaisesRegex(Exception, "ValueError"):
fut.wait()
- @unittest.skip("Test is flaky, see https://github.com/pytorch/pytorch/issues/29381")
@dist_init
def test_nested_rpc(self):
n = self.rank + 1
|
Serialiser : Fix syntax error created by `moduleDependencies()`
Classes that didn't exist in any module were creating an empty `import` statement, which was the trigger for the crash described in | @@ -320,7 +320,11 @@ Serialisation::SerialiserMap &Serialisation::serialiserMap()
void Serialisation::Serialiser::moduleDependencies( const Gaffer::GraphComponent *graphComponent, std::set<std::string> &modules, const Serialisation &serialisation ) const
{
- modules.insert( Serialisation::modulePath( graphComponent ) )... |
Use validator_for to get validator for specific schema
In case schema is missing, will fall back on default defined in python jsonschema | @@ -38,7 +38,7 @@ def validate(data, schema, set_default=True):
"""
try:
import jsonschema
- from jsonschema import Draft4Validator, validators, RefResolver
+ from jsonschema import validators, RefResolver
except ImportError:
raise WorkflowError("The Python 3 package jsonschema must be installed "
"in order to use the ... |
code clean up
removed comments that are not necessary | @@ -104,8 +104,8 @@ def extract_images(i):
imName=os.path.split(filedata.iloc[i].loc['file'])[1][:-4] #get file name ex: IM-0107-0022
#check for existence of patient folder, create if needed
- if not (os.path.exists(png_destination + folderName)): # it is completely possible for multiple proceses to run this check at t... |
Update bootstrap
Removed groupby operations | @@ -3,6 +3,7 @@ from functools import wraps
from inspect import signature
from typing import Callable, Optional
+import numpy as np
import pandas as pd
import xarray as xr
from xarray.core.dataarray import DataArray
@@ -139,9 +140,9 @@ def _bootstrap_period(
exceedance_function: ExceedanceFunction,
) -> DataArray:
peri... |
Reformat prelude.lkt a little
TN: | -@builtin struct Int {}
+@builtin struct Int {
+}
+
@builtin struct BigInt {
@builtin fun as_int(): Int
}
-@builtin struct Symbol {}
-@builtin struct Regexp {}
+
+@builtin struct Symbol {
+}
+
+@builtin struct Regexp {
+}
+
@builtin @open enum Bool {
case false, true
}
+
@builtin trait Sized {
@builtin fun length(): In... |
Update indian_tokenizer.py
removed the '|' from the string punctuation and added it separately as '|+' | @@ -6,7 +6,7 @@ import string
__author__ = 'Anoop Kunchukuttan'
__copyright = 'GPL'
-indian_punctuation_pattern = re.compile('(['+string.punctuation+'\u0964\u0965'+'])')
+indian_punctuation_pattern = re.compile('(['+string.punctuation.replace("|","")+'\u0964\u0965'+']|\|+)')
def indian_punctuation_tokenize_regex(input_... |
HelpChannels: retrieve category channels more efficiently
The channels property of categories sorts the channels before returning
them.
* Add a generator function to get category channels | import asyncio
-import itertools
import json
import logging
import typing as t
@@ -85,16 +84,25 @@ class HelpChannels(Scheduler, commands.Cog):
async def get_available_candidate(self) -> discord.TextChannel:
"""Return a dormant channel to turn into an available channel."""
+ @staticmethod
+ def get_category_channels(ca... |
ci: build: images: containers: Build with docker
Kaniko has issues running under GitHub Actions | @@ -58,19 +58,29 @@ jobs:
build:
name: Build container images
runs-on: ubuntu-latest
- container: gcr.io/kaniko-project/executor:latest
strategy:
fail-fast: false
max-parallel: 40
matrix: ${{ fromJSON(inputs.manifests) }}
steps:
+ - uses: actions/checkout@v3
+ with:
+ repository: '${{ github.repository }}'
+ ref: '${{ ... |
Use quotes when installing in the README
Other shells have a hard time with square brackets.
Closes | @@ -41,7 +41,7 @@ Otherwise to get voice support you should run the following command:
.. code:: sh
# Linux/macOS
- python3 -m pip install -U discord.py[voice]
+ python3 -m pip install -U "discord.py[voice]"
# Windows
py -3 -m pip install -U discord.py[voice]
|
Update votenet config README
* Update votenet config README
modified: configs/votenet/README.md
* updated .pre-commit-config.yaml and beautified style\
* deleted unused files
* update votenet config doc
* rephrase doc and remove markdownlint | # Deep Hough Voting for 3D Object Detection in Point Clouds
## Introduction
+
We implement VoteNet and provide the result and checkpoints on ScanNet and SUNRGBD datasets.
+
```
@inproceedings{qi2019deep,
author = {Qi, Charles R and Litany, Or and He, Kaiming and Guibas, Leonidas J},
@@ -14,11 +16,25 @@ We implement Vot... |
Admin Router: make dns mock a dependency for mocker as well
It uses it to resolve server_name variables, without it the testa can
stall for >60s. | @@ -33,7 +33,7 @@ def repo_is_ee():
@pytest.fixture(scope='session')
-def mocker_s(repo_is_ee, syslog_mock, extra_lo_ips):
+def mocker_s(repo_is_ee, syslog_mock, extra_lo_ips, dns_server_mock_s):
"""Provide a gc-ed mocker instance suitable for the repository flavour"""
if repo_is_ee:
from mocker.ee import Mocker
|
Update gmsh.py
According to the GMSH documentation, these are the available algorithms:
3D mesh algorithm (1: Delaunay, 3: Initial mesh only, 4: Frontal, 7: MMG3D, 9: R-tree, 10: HXT) | @@ -147,7 +147,7 @@ def to_volume(mesh,
import gmsh
# checks mesher selection
- if mesher_id not in [1, 4, 7, 10]:
+ if mesher_id not in [1, 3, 4, 7, 9, 10]:
raise ValueError('unavilable mesher selected!')
else:
mesher_id = int(mesher_id)
|
Fix typo in comment in cpp_extension
Summary:
From
Pull Request resolved: | @@ -104,7 +104,7 @@ COMMON_NVCC_FLAGS = [
# See comment in load_inline for more information
# The goal is to be able to call the safe version of the
-# function exactely as if it was the original one.
+# function exactly as if it was the original one.
# We need to create a pointer to this new function to give
# it to p... |
Still troubleshooting travis
I can get around the pypy issue, but now my tests are being skipped | @@ -52,11 +52,11 @@ install:
- python -c 'import awkward; print(awkward.__version__)'
- export AWKWARD_DEPLOYMENT=base
- pip install --upgrade pyOpenSSL # for deployment
- - pip install pybind11
+ - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]] ; then pip install pybind11 ; fi
- ln -s ../awkward-cpp/awkward/cpp awkward/cpp
... |
Update list.html
Fix the missing CSRF error in bootstrap 4 line editing | {% set form = list_forms[get_pk_value(row)] %}
{% if form.csrf_token %}
{{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }}
+ {% elif csrf_token %}
+ {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=csrf_token()) }}
{% else %}
{{ form[c](pk=get_pk_va... |
[query] avoid rare test collection bug
* [query] avoid rare test collection bug
Pytest sometimes uses a background thread to collect tests. That interacts badly
with asyncio. We avoid this by explicitly managing the event loop.
* fixg | import pytest
+import asyncio
import hail as hl
from hail.utils.java import Env, scala_object
@@ -47,6 +48,17 @@ def all_values_table_fixture():
return create_all_values_table()
+# pytest sometimes uses background threads, named "Dummy-1", to collect tests. asyncio will only
+# create an event loop when `asyncio.get_ev... |
Constants: rename conflicting channel
There were two attributes named 'announcements' on the Channels class. | @@ -78,7 +78,7 @@ class Channels(NamedTuple):
voice_chat = 412357430186344448
# Core Dev Sprint channels
- announcements = 755958119963557958
+ sprint_announcements = 755958119963557958
information = 753338352136224798
organisers = 753340132639375420
general = 753340631538991305
@@ -230,7 +230,7 @@ WHITELISTED_CHANNELS... |
Use existing CNF_INCLUDE_DIR to create mysql-flavor directory
Just replaced a hardcoded value with already defined variable.
Also removed the trailing slash from the path to pass the tests. | @@ -75,7 +75,7 @@ MYSQL_CONFIG = {operating_system.REDHAT: "/etc/my.cnf",
MYSQL_BIN_CANDIDATES = ["/usr/sbin/mysqld", "/usr/libexec/mysqld"]
MYSQL_OWNER = 'mysql'
CNF_EXT = 'cnf'
-CNF_INCLUDE_DIR = '/etc/mysql/conf.d/'
+CNF_INCLUDE_DIR = '/etc/mysql/conf.d'
CNF_MASTER = 'master-replication'
CNF_SLAVE = 'slave-replicati... |
Update readme for vae
formatting issues addressed | # Pyprobml VAE
Compare_results of different VAEs : <a href="https://colab.research.google.com/github/probml/pyprobml/blob/master/scripts/vae/compare_results.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
+
VAE tricks and what the different VAE try t... |
Add service for zun-wsproxy console access
This adds an HAProxy instance for the Zun wsproxy service which
allows containers' console output to be streamed to the Horizon
dashboard. | @@ -531,6 +531,22 @@ haproxy_zun_api_service:
- "httpchk GET /v1 HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_service_enabled: "{{ groups['zun_api'] is defined and groups['zun_api'] | length > 0 }}"
+haproxy_zun_console_service:
+ haproxy_service_name: zun_console
+ haproxy_backend_nodes: "{{ groups['zu... |
Resolve add-node error on aws(#960)
Error "Ensure clusterid is set along with the cloudprovider" occur
in add-node playbook runtime.
It is because node-setup.yaml is called without "openshift_clusterid"
variable setting.
With openshift_clusterid variable, we can avoid this issue. | openshift_hosted_router_replicas: 3
openshift_hosted_registry_replicas: 3
openshift_node_local_quota_per_fsgroup: 512Mi
+ openshift_clusterid: "{{ stack_name }}"
openshift_master_cluster_method: native
openshift_cloudprovider_kind: aws
openshift_master_cluster_hostname: "internal-openshift-master.{{ public_hosted_zone ... |
add download-backup and upload-backup
fixes | @@ -1925,14 +1925,22 @@ class Model:
return await app_facade.DestroyUnits(unit_names=list(unit_names))
destroy_units = destroy_unit
- def download_backup(self, archive_id):
+ async def download_backup(self, archive_id):
"""Download a backup archive file.
:param str archive_id: The id of the archive to download
:return ... |
Securitycenter: overlooked synth changes.
The *effects* were merged in but not the synth changes themselves. | @@ -29,22 +29,9 @@ s.move(
]
)
-# Fix security_center_client.py docstrings.
+# Add encoding header to protoc-generated files.
+# See: https://github.com/googleapis/gapic-generator/issues/2097
s.replace(
- "google/cloud/securitycenter_v1beta1/gapic/security_center_client.py",
- "::\n\n\s+(compare_duration, but present a... |
Oops. Missed these when juggling locators around.
There's no longer a locators_48, so this bumps all versions up by
one (48->49, 49->50) | @@ -10,7 +10,7 @@ class TestLocators(unittest.TestCase):
@mock.patch("cumulusci.robotframework.Salesforce.Salesforce.get_latest_api_version")
def test_locators_in_robot_context(self, get_latest_api_version):
"""Verify we can get locators for the current org api version"""
- get_latest_api_version.return_value = 49.0
+ ... |
Remove docker network after acceptance tests
This change will configure tox to remove the docker network after every
acceptance test, cleaning up the environemnt. | @@ -40,7 +40,9 @@ commands =
dockeritest: -e ITEST_PYTHON_FACTOR={env:ITEST_PYTHON_FACTOR} \
dockeritest: -e ACCEPTANCE_TAGS={env:ACCEPTANCE_TAGS} \
dockeritest: itest /scripts/run_tests.sh; exit_status=$?; \
- dockeritest: docker-compose stop; exit $exit_status"
+ dockeritest: docker-compose stop; \
+ dockeritest: doc... |
[MinecraftData] fix error on unload
RuntimeWarning: coroutine 'ClientSession.close' was never awaited | @@ -20,7 +20,7 @@ class MinecraftData(commands.Cog):
self.session = aiohttp.ClientSession(loop=self.bot.loop)
def __unload(self):
- self.session.close()
+ self.bot.loop.create_task(self.session.close())
@commands.group(name="minecraft", aliases=["mc"])
async def minecraft(self, ctx):
|
Add stronger typing to gradient accumulation scheduler callback
* Update gradient_accumulation_scheduler.py
add types for gradient accumulation scheduler callback
* Update gradient_accumulation_scheduler.py | @@ -21,6 +21,8 @@ Trainer also calls ``optimizer.step()`` for the last indivisible step number.
"""
+from typing import Dict
+
from pytorch_lightning.callbacks.base import Callback
@@ -44,7 +46,7 @@ class GradientAccumulationScheduler(Callback):
>>> trainer = Trainer(accumulate_grad_batches={5: 2})
"""
- def __init__(s... |
WordPress Site Health Exclusion Rule
This adds an exclusion rule for the Wordpress site health page which will trigger PHP and SQL leak rules present in RESPONSE-951-DATA-LEAKAGES-SQL.conf and RESPONSE-951-DATA-LEAKAGES-PHP.conf.
Implements | @@ -713,6 +713,18 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/edit.php" \
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:s,\
ver:'OWASP_CRS/3.3.0'"
+# Wordpress Site Health
+# The wordpress site health page makes use of embedded SQL/PHP
+# which triggers PHP/MySQL leak rules.
+SecRule REQUEST_FILENAME "@rx /wp-admin/sit... |
Update authentication.md
import 'Starlette' | @@ -5,6 +5,7 @@ interfaces will be available in your endpoints.
```python
+from starlette.applications import Starlette
from starlette.authentication import (
AuthenticationBackend, AuthenticationError, SimpleUser, UnauthenticatedUser,
AuthCredentials
|
Do not explicitly specify filesystem type when mounting
Resolves | @@ -201,9 +201,8 @@ class Mounter(object):
if device.is_mounted:
self._log.info(_('not mounting {0}: already mounted', device))
yield Return(True)
- fstype = str(device.id_type)
options = self._mount_options(device)
- kwargs = dict(fstype=fstype, options=options)
+ kwargs = dict(options=options)
self._log.debug(_('moun... |
Added nullptr check for pthradpool_get_threads_count
Summary:
We get seg fault without this in using XNNPACK.
Pull Request resolved: | @@ -28,7 +28,19 @@ void pthreadpool_compute_1d(
}
size_t pthreadpool_get_threads_count(pthreadpool_t threadpool) {
+ // The current fix only useful when XNNPACK calls pthreadpool_get_threads_count with nullptr.
+ if (threadpool == nullptr) {
+ return 1;
+ }
return reinterpret_cast<caffe2::ThreadPool*>(threadpool)->getN... |
Rename Reaction.custom_emoji to Reaction.is_custom_emoji
This legacy attribute was apparently never changed to be consistent
with the rest of the library | @@ -73,8 +73,7 @@ class Reaction:
self.count = data.get('count', 1)
self.me = data.get('me')
- @property
- def custom_emoji(self):
+ def is_custom_emoji(self):
""":class:`bool`: If this is a custom emoji."""
return not isinstance(self.emoji, str)
@@ -190,7 +189,7 @@ class Reaction:
if the member has left the guild.
"""... |
Use more efficient approximation for commcare.fix_user_types.unknown_user_count
as suggested in | @@ -4,6 +4,7 @@ from celery.schedules import crontab
from celery.task import periodic_task
from corehq.apps.es import FormES
+from corehq.apps.es.aggregations import CardinalityAggregation
from corehq.form_processor.interfaces.dbaccessors import FormAccessors
from corehq.form_processor.utils.xform import resave_form
fr... |
Distutils: Fix, directory handling wrong for more than one item to build
* Change back at the end of things, not inside the loop.
* Use absolute path, so "chdir" doesn't affect anything it's not
supposed to. | @@ -158,7 +158,7 @@ class build(distutils.command.build.build):
os.chdir(build_lib)
# Search in the build directory preferably.
- setMainScriptDirectory(".")
+ setMainScriptDirectory(os.path.abspath(old_dir))
to_builds = self._find_to_build()
for to_build in to_builds:
@@ -235,10 +235,10 @@ class build(distutils.comman... |
Update README.rst
Added roadmap link | python-slackclient
===================
-A basic client for Slack.com, which can optionally connect to the Slack Real Time Messaging (RTM) API.
+A client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API.
|build-status| |windows-build-status| |codecov| |doc-status| |pypi-version| |python-vers... |
Update tutorial.md
Changes to load gen instructions | @@ -73,7 +73,14 @@ In a new browser tab, navigate to the Hipster Shop URL, where you can "purchase"
## Run the load generator
-In another browser tab, navigate to the load-generator URL, from which you can simulate users interacting with the application to generate traffic. For this application, values like 100 total u... |
Update pinverse doc for recent commit
Summary: Pull Request resolved: | @@ -6353,12 +6353,12 @@ Please look at `Moore-Penrose inverse`_ for more details
See :meth:`~torch.svd` for more details.
Arguments:
- input (Tensor): The input 2D tensor of dimensions :math:`m \times n`
+ input (Tensor): The input tensor of size :math:`(*, m, n)` where :math:`*` is zero or more batch dimensions
rcond ... |
CompiledType.is_struct_type: new class attribute
TN: | @@ -257,6 +257,11 @@ class CompiledType(object):
* convert_to_storage_expr.
"""
+ is_struct_type = False
+ """
+ Whether this type is a subclass of Struct.
+ """
+
is_ast_node = False
"""
Whether this type represents an AST node type.
@@ -1869,6 +1874,8 @@ class Struct(CompiledType):
is_ptr = False
null_allowed = True
... |
Added ceiling to test_sympyissue_21651
// edited by skirpichev
* Minor formatting fixes
* drop redundant parens 2**(-x) -> 2**-x | from diofant import (And, Catalan, Derivative, E, Eq, EulerGamma, Float,
Function, I, Integer, Integral, KroneckerDelta, Le, Mod,
Ne, Or, Piecewise, Product, Rational, Sum, Symbol,
- binomial, cos, exp, factorial, floor, gamma, harmonic,
- log, lowergamma, nan, oo, pi, product, simplify, sin,
- sqrt, summation, symbols... |
cabana: display warning if failed to load dbc from clipboard
display warning if failed to load from clipboard | @@ -238,7 +238,11 @@ void MainWindow::loadDBCFromClipboard() {
remindSaveChanges();
QString dbc_str = QGuiApplication::clipboard()->text();
dbc()->open("from_clipboard.dbc", dbc_str);
+ if (dbc()->messages().size() > 0) {
QMessageBox::information(this, tr("Load From Clipboard"), tr("DBC Successfully Loaded!"));
+ } els... |
GCE: configure the root volume size
Add the support to configure the root volume of GCE instances. If
CLOUD_RV exists and is not 0, set the root volume size to this value. | @@ -951,6 +951,11 @@ class GceCmds(CommonCloudFunctions) :
obj_attr_list["cloud_rv_type"] = "pd-standard"
_root_type = "zones/" + obj_attr_list["vmc_name"] + "/diskTypes/" + obj_attr_list["cloud_rv_type"]
+ if "cloud_rv" in obj_attr_list and obj_attr_list["cloud_rv"] != "0":
+ _rv_size = obj_attr_list["cloud_rv"]
+ els... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.