message
stringlengths
13
484
diff
stringlengths
38
4.63k
README: fix URLs to point to the right project When I copied and pasted here I failed to fix the project name.
pyrax ===== -.. image:: https://img.shields.io/pypi/v/jira.svg - :target: https://pypi.python.org/pypi/jira/ +.. image:: https://img.shields.io/pypi/v/pyrax.svg + :target: https://pypi.python.org/pypi/pyrax/ -.. image:: https://travis-ci.com/pycontribs/jira.svg?branch=master - :target: https://travis-ci.com/pycontribs/...
Add RandomForest to the baseline Random Forest is included because it's the simplest example of a framework being executed in a subprocess with its own virtual environment.
@@ -83,6 +83,7 @@ jobs: if: needs.detect_changes.outputs.skip_baseline == 0 strategy: matrix: + framework: [constantpredictor, randomforest] task: [iris, kc2, cholesterol] fail-fast: false steps: @@ -110,7 +111,7 @@ jobs: - name: Run constantpredictor on openml iris run: | source venv/bin/activate - python runbenchmark...
Update v_connection_summary.sql Fixed duration calculation for 'Connection Lost' sessions
@@ -16,7 +16,7 @@ trim(a.dbname) as dbname, trim(c.application_name) as app_name, trim(b.authmethod) as authmethod, case when d.duration > 0 then (d.duration/1000000)/86400||' days '||((d.duration/1000000)%86400)/3600||'hrs ' -||((d.duration/1000000)%3600)/60||'mins '||(d.duration/1000000%60)||'secs' else datediff(s,a....
util: python: Add within_method() helper function Checks if a caller is being called from a given method of a given object.
@@ -3,6 +3,7 @@ Python specific helper functions """ import types import pathlib +import inspect import importlib from typing import Optional, Callable, Union, Tuple, Iterator @@ -80,3 +81,97 @@ def modules( continue # Import module yield import_name, importlib.import_module(import_name) + + +# See comment at beginning...
stream_edit.js: Add `rerender_subscribers_list()` function. This function can be used for updating the subscribers list correctly when a subscriber is added or removed.
@@ -23,6 +23,15 @@ function get_email_of_subscribers(subscribers) { return emails; } +function rerender_subscribers_list(sub) { + var emails = get_email_of_subscribers(sub.subscribers); + var subscribers_list = list_render.get("stream_subscribers/" + sub.stream_id); + + // Changing the data clears the rendered list and...
Set keepalived branch to master The latest keepalived role tag (7.0.0) is too old to have incorporated fixes outlined in that are required for a functioning multi-node keepalived/haproxy setup.
- name: keepalived scm: git src: https://github.com/evrardjp/ansible-keepalived - version: 7.0.0 - trackbranch: None + version: 460fc120b8263bcafc996a3859c9c005fb434447 + trackbranch: master shallow_since: '2022-05-03' - name: lxc_container_create scm: git
Remove undefined parameter from docstring It looks like the ability to pass the `config` parameter was removed but the docstring explaining what it did stayed
@@ -47,14 +47,7 @@ class ElastAlerter(object): """ The main ElastAlert runner. This class holds all state about active rules, controls when queries are run, and passes information between rules and alerts. - :param args: An argparse arguments instance. Should contain debug and start - - :param conf: The configuration d...
add container_types.make_dict, c.f. no tests (since there are no tests for make_list or make_tuple either, though we probably should add some)
@@ -110,6 +110,15 @@ def dict_untake(x, idx, template): dict_untake.defvjp(lambda g, ans, vs, gvs, x, idx, template : dict_take(g, idx)) dict_untake.defvjp_is_zero(argnums=(1, 2)) +def make_dict(pairs): + keys, vals = zip(*pairs) + return _make_dict(make_list(*keys), make_list(*vals)) +@primitive +def _make_dict(keys, ...
Update morse_code_implementation.py * Update morse_code_implementation.py Added more characters to MORSE_CODE_DICT for a more complete dictionary. Split words with "/" instead of a space as is standard. Fixed bug when encrypting a message with a comma. * Fixed comment typo
# Python program to implement Morse Code Translator - # Dictionary representing the morse code chart MORSE_CODE_DICT = { "A": ".-", @@ -39,13 +38,22 @@ MORSE_CODE_DICT = { "8": "---..", "9": "----.", "0": "-----", + "&": ".-...", + "@": ".--.-.", + ":": "---...", ",": "--..--", ".": ".-.-.-", + "'": ".----.", + '"': "....
Scons: Catch segfault and try to make a helpful report * With informative URLs added this will become even better, but for now it will do.
@@ -118,7 +118,7 @@ def _filterMsvcLinkOutput(env, module_mode, data, exit_code): # To work around Windows not supporting command lines of greater than 10K by # default: -def getWindowsSpawnFunction(env, module_mode, source_files): +def _getWindowsSpawnFunction(env, module_mode, source_files): def spawnWindowsCommand( ...
More visible telnet conch message Capture traceback when trying to import required twisted modules, print it in case telnet is enabled, and mention settings variable that can be used to supress the message. Thanks
@@ -6,6 +6,7 @@ See documentation in docs/topics/telnetconsole.rst import pprint import logging +import traceback from twisted.internet import protocol try: @@ -13,6 +14,7 @@ try: from twisted.conch.insults import insults TWISTED_CONCH_AVAILABLE = True except (ImportError, SyntaxError): + _TWISTED_CONCH_TRACEBACK = tra...
fw/output: Implement retriving "augmentations" for `JobDatabaseOutput`s Enable retriving augmentations on a per job basis when using a Postgres database backend.
@@ -1010,6 +1010,7 @@ class RunDatabaseOutput(DatabaseOutput, RunOutputCommon): jobs = self._read_db(columns, tables, conditions) for job in jobs: + job['augmentations'] = self._get_job_augmentations(job['oid']) job['workload_parameters'] = workload_params.pop(job['oid'], {}) job['runtime_parameters'] = runtime_params....
Handle weird GKE Kubernetes versions This commit handles weird non-standard versions that Kubernetes clusters running in GKE return like, "1.14+". Fix
@@ -92,6 +92,26 @@ def kube_version_json(): return json.loads(stdout) +def strip_version(ver: str): + """ + strip_version is needed to strip a major/minor version of non-standard symbols. For example, when working with GKE, + `kubectl version` returns a minor version like '14+', which is not semver or any standard vers...
Refactor transposition of data Use the fact that all possible classes (ndarray, ListOfImages, DatasetView) have a .transpose() method.
@@ -265,32 +265,24 @@ class StackView(qt.QMainWindow): """ assert self._stack is not None assert 0 <= self._perspective < 3 + + # ensure we have the stack encapsulated in an array like object + # having a transpose() method if isinstance(self._stack, numpy.ndarray): - if self._perspective == 0: self.__transposed_view =...
MAINT: Cast x to float explicitly in CubicHermiteSpline It fixes some problems in pandas, not that their support for scipy interpolators is very good
@@ -26,9 +26,9 @@ def prepare_input(x, y, axis, dydx=None): """ x, y = map(np.asarray, (x, y)) - if np.issubdtype(x.dtype, np.complexfloating): raise ValueError("`x` must contain real values.") + x = x.astype(float) if np.issubdtype(y.dtype, np.complexfloating): dtype = complex
Restore --print-found option. Now --print-all and --print-found complement each other. The default remains that only the found are reported.
@@ -476,9 +476,13 @@ def main(): "On the other hand, this may cause a long delay to gather all results." ) parser.add_argument("--print-all", - action="store_true", dest="print_all", default=False, + action="store_true", dest="print_all", help="Output sites where the username was not found." ) + parser.add_argument("--...
Fix bug created in package install by trying to set consistent api versions across calls
@@ -68,6 +68,7 @@ class CreatePackageZipBuilder(BasePackageZipBuilder): self._write_package_xml(package_xml) class InstallPackageZipBuilder(BasePackageZipBuilder): + api_version = '33.0' def __init__(self, namespace, version): if not namespace: @@ -80,7 +81,7 @@ class InstallPackageZipBuilder(BasePackageZipBuilder): de...
test the names of the curves against the stored list We were testing the wrong version of the curve string. With this change on python-cryptography 2.6.1 and openssl 1.1.1c, we drop from 26 xfailed to 14 xfailed tests.
@@ -254,8 +254,8 @@ class TestPGPKey_Management(object): if not alg.can_gen: pytest.xfail('Key algorithm {} not yet supported'.format(alg.name)) - if isinstance(size, EllipticCurveOID) and ((not size.can_gen) or size.name not in _openssl_get_supported_curves()): - pytest.xfail('Curve {} not yet supported'.format(size.n...
Updated bug report template SVG and GUI framework information only required for TexText 0.11
@@ -54,7 +54,11 @@ If applicable and helpful, add screenshots to help explain your problem. - TexText version: - Inkscape version: - Operating system: [e.g. Windows 10, 1803, 32-bit] -- SVG-converter installed (pstoedit+ghostscript or pdf2svg): -- GUI framework installed (PyGTK, PyGTK+PyGTK-Sourceview, TkInter): - Wind...
Update index.html link to FAQ added
<!--<![endif]--> -<p>Read more <a href="{% url 'about' %}">about the site</a>. And please read our <a href="{% url 'caution' %}">guidelines for using this data</a>.</p> +<p>Read more <a href="{% url 'about' %}">about the site</a> and see our <a href="{% url 'faq' %}">FAQs</a>. And please read our <a href="{% url 'cauti...
check H5public.h instead of H5pubconf.h - print hdf5 version number info but don't check min version (this code is too fragile)
@@ -27,21 +27,13 @@ else: def check_hdf5version(hdf5_includedir): try: - f = open(os.path.join(hdf5_includedir, 'H5pubconf-64.h'), **open_kwargs) - except IOError: - try: - f = open(os.path.join(hdf5_includedir, 'H5pubconf-32.h'), - **open_kwargs) - except IOError: - try: - f = open(os.path.join(hdf5_includedir, 'H5pub...
fix(stock_board_concept_em.py): fix stock_board_concept_hist_em interface fix stock_board_concept_hist_em interface
@@ -230,7 +230,7 @@ def index_value_hist_funddb( if __name__ == "__main__": stock_zh_index_hist_csindex_df = stock_zh_index_hist_csindex( - symbol="000859", start_date="20220410", end_date="20220709" + symbol="000832", start_date="20221122", end_date="20221123" ) print(stock_zh_index_hist_csindex_df)
Fix FP in MySQL data leakage. Use re2 compatible range expression. Added data file for regexp-assemble.py
@@ -352,7 +352,7 @@ SecRule TX:sql_error_match "@eq 1" \ ver:'OWASP_CRS/3.4.0-dev',\ severity:'CRITICAL',\ chain" - SecRule RESPONSE_BODY "@rx (?i)(?:supplied argument is not a valid MySQL|Column count doesn't match value count at row|mysql_fetch_array\(\)|on MySQL result index|You have an error in your SQL syntax;|You...
[sync] remove `SnyEngine._dir_snapshot_with_mignore` move functionality inline
@@ -1582,7 +1582,9 @@ class SyncEngine: changes = [] snapshot_time = time.time() - snapshot = self._dir_snapshot_with_mignore(self.dropbox_path) + snapshot = DirectorySnapshot( + self.dropbox_path, listdir=self._scandir_with_mignore + ) lowercase_snapshot_paths: Set[str] = set() # don't use iterator here but pre-fetch ...
mgr: improve/fix disabled modules check Follow up on "disabled_modules" is always a list, it's the items in the list that can be dicts in mimic. Many ways to fix this, here's one.
- name: set _disabled_ceph_mgr_modules fact set_fact: - _disabled_ceph_mgr_modules: "{% if _ceph_mgr_modules | type_debug == 'list' %}[]{% elif _ceph_mgr_modules.disabled_modules | type_debug == 'dict' %}{{ _ceph_mgr_modules['disabled_modules'] }}{% else %}{{ _ceph_mgr_modules['disabled_modules'] | map(attribute='name'...
make to nomake change logic
@@ -9,7 +9,7 @@ Optional command line arguments: -v, --version : version, defaults to latest -d, --dir : install directory, defaults to '~/.cmdstanpy -s (--silent) : install with /VERYSILENT instead of /SILENT for RTools - -m --make : install mingw32-make (Windows RTools 4.0 only) + -m --nomake : don't install mingw32-...
Pontoon: Update Chinese (China) (zh-CN) localization of AMO Localization authors: passionforlife
@@ -4,7 +4,7 @@ msgstr "" "Project-Id-Version: AMO\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2019-07-02 08:24+0000\n" -"PO-Revision-Date: 2019-07-10 03:27+0000\n" +"PO-Revision-Date: 2019-07-10 03:34+0000\n" "Last-Translator: passionforlife <eloli@foxmail.com>\n" "Language-Team: Chinese Simplified,...
Nix config defaults here default specified in DatasourceConfigSchema
@@ -655,9 +655,6 @@ class BaseDataContext(object): runtime_environment={ "data_context": self }, - config_defaults={ - "module_name": "great_expectations.datasource" - } ) return datasource
CI: cache Python dependencies Reduces frequency of using pipenv to install dependencies in CI. Works by caching the entire Python directory. Only a full cache hit will skip the pipenv steps; a partial cache hit will still be followed by using pipenv to install from the pipfiles. * Disable pip cache
# https://aka.ms/yaml variables: + PIP_NO_CACHE_DIR: false PIPENV_HIDE_EMOJIS: 1 PIPENV_IGNORE_VIRTUALENVS: 1 PIPENV_NOSPIN: 1 @@ -12,7 +13,6 @@ jobs: vmImage: ubuntu-18.04 variables: - PIP_CACHE_DIR: ".cache/pip" PRE_COMMIT_HOME: $(Pipeline.Workspace)/pre-commit-cache BOT_API_KEY: foo BOT_SENTRY_DSN: blah @@ -29,11 +2...
remove unused import im a goofy goober
@@ -36,7 +36,6 @@ from corehq.apps.hqwebapp.doc_info import get_doc_info_by_id from corehq.apps.hqwebapp.templatetags.hq_shared_tags import pretty_doc_info from corehq.apps.linked_domain.applications import unlink_apps_in_domain from corehq.apps.linked_domain.const import ( - LINKED_MODELS, LINKED_MODELS_MAP, MODEL_APP...
[Data] Add codeowners to preprocessor tests Additional codeowners were added to ray/data/preprocessors package in This is a followup to add the same codeowners for preprocessors tests as well.
# Ray data. /python/ray/data/ @ericl @scv119 @clarkzinzow @jjyao @jianoaix @c21 /python/ray/data/preprocessors/ @clarkzinzow @jiaodong @Yard1 @bveeramani @matthewdeng @amogkam +/python/ray/data/tests/preprocessors/ @clarkzinzow @jiaodong @Yard1 @bveeramani @matthewdeng @amogkam /doc/source/data/ @ericl @scv119 @clarkzi...
[nixio] Avoid == comparison with quantities Comparing a Quantity using == currently raises warning (via numpy). Will raise error in the future. Performing instance check before comparing.
@@ -1127,7 +1127,9 @@ class NixIO(BaseIO): values = create_quantity(values, units) if len(values) == 1: values = values[0] - if values == "" and prop.definition == EMPTYANNOTATION: + if (not isinstance(values, pq.Quantity) and + values == "" and + prop.definition == EMPTYANNOTATION): values = list() neo_attrs[prop.name...
ebuild.processor: revert to single line ebd env export So non-file sending/sourcing works as expected when running phases where the tempdir isn't available.
@@ -691,7 +691,7 @@ class EbuildProcessor(object): # TODO: Move to using unprefixed lines to avoid leaking internal # variables to spawned commands once we use builtins for all commands # currently using pkgcore-ebuild-helper. - return '\n'.join(f"export {x}" for x in data) + return f"export {' '.join(data)}" def send_...
rm technologies from test_heating_and_cooling speeds up these tests and avoid timeout in Julia, which currently throws errors (separate issue will be raised)
@@ -13,7 +13,8 @@ from reo.src.wind import WindSAMSDK, combine_wind_files post = {"Scenario": { - "timeout_seconds": 1, + "timeout_seconds": 600, + "optimality_tolerance": 1.0, "Site": { "latitude": 37.78, "longitude": -122.45, "Financial": { @@ -44,15 +45,6 @@ post = {"Scenario": { "chp_fuel_type": "natural_gas", "chp...
Don't raise when delete non-existent image in docker When delete an image, we check whether 404 is in the exception. If the image doesn't exist in docker, we can continue to delete the image in DB.
@@ -38,6 +38,8 @@ class DockerDriver(driver.ContainerImageDriver): with docker_utils.docker_client() as docker: try: docker.remove_image(img_id) + except errors.ImageNotFound: + return except errors.APIError as api_error: raise exception.ZunException(str(api_error)) except Exception as e:
doc/build_plugin_docs: Only load the required plugins When updating the pluginload only load the modules we want to document rather than load all avalible and then filter.
@@ -25,7 +25,7 @@ from wa.utils.doc import (strip_inlined_text, get_rst_from_plugin, get_params_rst, underline, line_break) from wa.utils.misc import capitalize -GENERATE_FOR_PLUGIN = ['workload', 'instrument', 'output_processor'] +GENERATE_FOR_PACKAGES = ['wa.workloads', 'wa.instruments', 'wa.output_processors'] def i...
Fix latex formular error about *normal Summary: issue: the latex abort norm should be `\mathcal{N}(\text{mean}, \text{std}^2)` Pull Request resolved:
@@ -94,7 +94,7 @@ def uniform_(tensor, a=0., b=1.): def normal_(tensor, mean=0., std=1.): # type: (Tensor, float, float) -> Tensor r"""Fills the input Tensor with values drawn from the normal - distribution :math:`\mathcal{N}(\text{mean}, \text{std})`. + distribution :math:`\mathcal{N}(\text{mean}, \text{std}^2)`. Args...
Langkit_Support.Diagnostics: refactor To_Pretty_String TN:
@@ -8,14 +8,10 @@ package body Langkit_Support.Diagnostics is function To_Pretty_String (D : Diagnostic) return String is Sloc : constant Source_Location := Start_Sloc (D.Sloc_Range); - Line : constant String := Sloc.Line'Img; - Column : constant String := Sloc.Column'Img; Sloc_Prefix : constant String := (if Sloc = No...
Turn off strict parsing for pls playlist files Some PLS files contain one 'Version' key for each file in the playlist. This ultimately has no impact on how mopidy parses files in the playlist, and therefore it should be as tolerant as possible of real-world playlist files.
@@ -77,7 +77,7 @@ def parse_extm3u(data): def parse_pls(data): # TODO: convert non URIs to file URIs. try: - cp = configparser.RawConfigParser() + cp = configparser.RawConfigParser(strict=False) cp.read_string(data.decode()) except configparser.Error: return
Fixes all URLs in the Site cog. This changes URLs for stuff like FAQ, rules, and the Asking Good Questions page to fit the Django format.
@@ -9,7 +9,7 @@ from bot.pagination import LinePaginator log = logging.getLogger(__name__) -INFO_URL = f"{URLs.site_schema}{URLs.site}/info" +PAGES_URL = f"{URLs.site_schema}{URLs.site}/pages" class Site: @@ -46,7 +46,7 @@ class Site: async def site_resources(self, ctx: Context): """Info about the site's Resources page...
change order of event callbacks in trainer call the event callback after saving the model for this epoch to make it possible to copy the model from the callback to somewhere else.
@@ -426,7 +426,6 @@ class KrakenTrainer(object): self.stopper.update(eval_res['val_metric']) self.model.user_metadata['accuracy'].append((self.iterations, float(eval_res['val_metric']))) logger.info('Saving to {}_{}'.format(self.filename_prefix, self.stopper.epoch)) - event_callback(epoch=self.stopper.epoch, **eval_res...
[doc] Use python2 release for older mw versions mw 1.14 stupport is still available and will not be dropped before sunset of Python 2 support.
@@ -2754,8 +2754,9 @@ class APISite(BaseSite): warn('\n' + fill('Support of MediaWiki {version} will be dropped. ' 'It is recommended to use MediaWiki 1.19 or above. ' - 'You may use Pywikibot stable release 3.0.20200111 ' - 'for older MediaWiki versions. ' + 'You may use every Pywikibot 3.0.X release from ' + 'pypi in...
Removed unused code By chance I stumbled upon this code that isn't used anywhere apparently, so I propose to remove it.
@@ -58,11 +58,6 @@ class Instrument(object): self.SCPI = includeSCPI self.adapter = adapter - class Object(object): - pass - - self.get = Object() - self.isShutdown = False log.info("Initializing %s." % self.name)
sendmail: check if koji_task_owner name exists *CLOUDBLD-2089 Also, change log.exception into log.info to prevent unwanted tracebacks
@@ -330,6 +330,9 @@ class SendMailPlugin(ExitPlugin): else: if not self.email_domain: raise RuntimeError("Empty email_domain specified") + elif not obj.get('name'): + raise RuntimeError("Koji task owner name is missing") + else: return '@'.join([obj['name'], self.email_domain]) def _get_koji_submitter(self): @@ -386,7 ...
Remove useless translation markers These strings are used in an english default text and thus translating them doesn't make much sense. fixes
@@ -29,7 +29,6 @@ from indico.modules.events.contributions.models.fields import ContributionFieldV from indico.modules.events.models.persons import EventPerson from indico.modules.events.tracks.models.principals import TrackPrincipal from indico.modules.events.tracks.models.tracks import Track -from indico.util.i18n im...
modify the annotations of delete_snapshot The annotations of delete_snapshot were written as backup.
@@ -239,11 +239,11 @@ class BlockStorage(service.UnifiedService): @service.should_be_overridden def delete_snapshot(self, snapshot): - """Delete the given backup. + """Delete the given snapshot. - Returns when the backup is actually deleted. + Returns when the snapshot is actually deleted. - :param backup: backup insta...
Ensure image files are closed after opening Not sure I managed to trigger `image_as_rtf()` properly, but the other worked without a hitch and it seems a pretty benign change.
@@ -828,7 +828,7 @@ def image_as_rtf(match, question=None): if not os.path.isfile(page_file['fullpath']): server.fg_make_png_for_pdf_path(file_info['path'] + '.pdf', 'page') if os.path.isfile(page_file['fullpath']): - im = PIL.Image.open(page_file['fullpath']) + with PIL.Image.open(page_file['fullpath']) as im: page_fi...
plotting: ensure autoscalling See sympy/sympy#19088 and matplotlib/matplotlib#17004
@@ -942,6 +942,10 @@ def process_series(self): if parent.ylabel: self.ax.set_ylabel(parent.ylabel, position=(0, 1)) + if not isinstance(self.ax, Axes3D): + self.ax.autoscale_view(scalex=self.ax.get_autoscalex_on(), + scaley=self.ax.get_autoscaley_on()) + def show(self): self.process_series() # TODO after fixing https:/...
utils/travis-script.sh: minor refactoring TN:
@@ -18,11 +18,5 @@ gprbuild -v --no-auto-path \ | tee TESTSUITE_OUT -# Exit with an error if there is a FAILED line in -# TESTSUITE_OUT. -if grep "FAILED " TESTSUITE_OUT; then - exit 1 -else - exit 0 -fi - +# Exit with an error if there is a FAILED line in TESTSUITE_OUT +! grep "FAILED " TESTSUITE_OUT > /dev/null
lib: avoid changing process.config PR-URL: Refs:
@@ -96,7 +96,7 @@ function configure (gyp, argv, callback) { log.verbose('build/' + configFilename, 'creating config file') - var config = process.config || {} + var config = Object.assign({}, process.config) var defaults = config.target_defaults var variables = config.variables
bugfix in grad.sacasscf: get_veff -> get_jk The veff-like derivatives in grad.sacasscf are of the form vj - vk/2 whether the underlying SCF is RHF or ROHF. Using get_veff causes errors in the latter case.
@@ -118,7 +118,9 @@ def Lorb_dot_dgorb_dx (Lorb, mc, mo_coeff=None, ci=None, atmlst=None, mf_grad=No dme0 = (gfock+gfock.T)/2 # This transpose is for the overlap matrix later on aapa = vj = vk = vhf_c = vhf_a = None - vhf1c, vhf1a, vhf1cL, vhf1aL = mf_grad.get_veff(mol, (dm_core, dm_cas, dmL_core, dmL_cas)) + vj, vk = ...
Update documentation build examples to be generator agnostic Now that the default CMake generator used by `build.sh` is Ninja we should provide generator agnostic build instructions. Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL:
@@ -58,12 +58,12 @@ Current cmake offers the following configuration options: After running CMake in a `build` directory, if the `BUILD_*` options were not turned `OFF`, the following targets can be built: ```bash -$ make -j # Build libcuml++ and all tests -$ make -j sg_benchmark # Build c++ cuml single gpu benchmark -...
Update simulator.py Fix invalid torso tracker return values in simulator.py
@@ -1205,7 +1205,7 @@ class Simulator: tracker_data = self.renderer.vrsys.getDataForVRTracker(tracker_serial_number) # Set is_valid to false, and assume the user will check for invalid data if not tracker_data: - return [False, None, None] + return [False, [0,0,0], [0,0,0,0]] is_valid, translation, rotation = tracker_d...
fix exp fam. formula Summary: Pull Request resolved:
@@ -9,7 +9,7 @@ class ExponentialFamily(Distribution): .. math:: - p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle) - F(\theta) + k(x)) + p_{F}(x; \theta) = \exp(\langle t(x), \theta\rangle - F(\theta) + k(x)) where :math:`\theta` denotes the natural parameters, :math:`t(x)` denotes the sufficient statistic, :math:...
package.json: Move difflib to devDependencies. We introduced this a couple of commits ago (in for use in the tests only. Putting it here avoids pulling in a new dependency in production which we don't use there.
"@types/webpack": "3.0.13", "blueimp-md5": "2.10.0", "clipboard": "1.5.16", - "difflib": "0.2.4", "emoji-datasource": "3.0.0", "emoji-datasource-apple": "3.0.0", "emoji-datasource-emojione": "3.0.0", "devDependencies": { "casperjs": "casperjs/casperjs", "cssstyle": "0.2.29", + "difflib": "0.2.4", "eslint": "3.9.1", "ht...
left sidebar: Fix gaps between hover areas. A somewhat recent refactoring of the left sidebar had introduced a gap between the hover areas that looked off; this fixes this with a slight rearrangement with where the 1px of space between elements lives. Fixes
@@ -93,15 +93,15 @@ li.show-more-topics a { margin-bottom: 4px; } -.narrows_panel li { - margin: 1px 0px; +.narrows_panel li a { + margin-top: 1px; } .narrows_panel li a:hover { text-decoration: none; } -#stream_filters li { +#stream_filters li a { padding: 1px 0px; }
Update README_en.md add link to SlowFast_FasterRCNN_en.md
@@ -63,7 +63,7 @@ PaddleVideo is a video model development kit produced by [PaddlePaddle Official] <td colspan="5" style="font-weight:bold;">Spatio-temporal motion detection method</td> </tr> <tr> - <td><a href="slowfast.md">SlowFast+Fast R-CNN</a> + <td><a href="docs/en/model_zoo/detection/SlowFast_FasterRCNN_en.md">S...
fix: Doc layout Add breadcrumbs Overridable page_toc block
{% extends "templates/base.html" %} {%- from "templates/includes/navbar/navbar_items.html" import render_item -%} -{% macro page_content() %} -{%- block page_content -%}{%- endblock -%} -{% endmacro %} - {%- block head_include %} <link rel="stylesheet" href="/assets/frappe/css/hljs-night-owl.css"> {% endblock -%} {% bl...
Coerce seconds argument to a floating point number. Celery does not coerce configuration values into the right type (See celery/celery#6696). This is a workaround. This bug will be fixed in Celery NextGen when we will refactor our configuration subsystem.
@@ -155,7 +155,7 @@ class Timer: return self._enter(eta, priority, entry) def enter_after(self, secs, entry, priority=0, time=monotonic): - return self.enter_at(entry, time() + secs, priority) + return self.enter_at(entry, time() + float(secs), priority) def _enter(self, eta, priority, entry, push=heapq.heappush): push...
TYP,ENH: Add annotations for the new `ABCPolyBase.symbol` property Xref
@@ -9,6 +9,8 @@ class ABCPolyBase(abc.ABC): maxpower: ClassVar[int] coef: Any @property + def symbol(self) -> str: ... + @property @abc.abstractmethod def domain(self): ... @property @@ -21,7 +23,7 @@ def has_samecoef(self, other): ... def has_samedomain(self, other): ... def has_samewindow(self, other): ... def has_sa...
simplify alias compare function
@@ -63,12 +63,11 @@ def _get_optimization_history_plot(study): return go.Figure(data=[], layout=layout) best_values = [float('inf')] if study.direction == StudyDirection.MINIMIZE else [-float('inf')] + comp = min if study.direction == StudyDirection.MINIMIZE else max for trial in trials: trial_value = trial.value - if ...
core: Fix action of 'z' on self-messages. When 'z' hotkey was used in the All private messages narrow, on self messages, it did not switch narrow to PM with oneself. We now handle this logic explicitly.
@@ -174,6 +174,8 @@ class Controller: emails = [recipient['email'] for recipient in button.message['display_recipient'] if recipient['email'] != self.model.client.email] + if not emails and len(button.message['display_recipient']) == 1: + emails = [self.model.user_email] user_emails = ', '.join(emails) user_ids = {user...
Fix the path of calculate_rft.py Given the suggestion in
@@ -1269,7 +1269,7 @@ if ! "${skip_eval}"; then _fs=$(python3 -c "import humanfriendly as h;print(h.parse_size('${fs}'))") _sample_shift=$(python3 -c "print(1 / ${_fs} * 1000)") # in ms ${_cmd} JOB=1 "${_logdir}"/calculate_rtf.log \ - ../../../utils/calculate_rtf.py \ + calculate_rtf.py \ --log-dir ${_logdir} \ --log-n...
Use pchanges in highstate output module if changes key is empty and pchanges is present As per discussion in pchanges should be used for dry-run, it requires proper handling in the output module to correctly report changes to the user
@@ -221,6 +221,8 @@ def _format_host(host, data): tcolor = colors['GREEN'] orchestration = ret.get('__orchestration__', False) schanged, ctext = _format_changes(ret['changes'], orchestration) + if not ctext and 'pchanges' in ret: + schanged, ctext = _format_changes(ret['pchanges'], orchestration) nchanges += 1 if schan...
0.6.7 Auto connecting and minor bugfixes
@@ -24,7 +24,6 @@ while True: content = res.content.decode().splitlines() #Read content and split into lines host = content[0] #Line 1 = pool address port = content[1] #Line 2 = pool port - print(host, port) debug = debug + "Received pool IP and port.\n" break else:
Remove print statement from has_transparency Closes
@@ -124,7 +124,6 @@ def has_transparency(colour: Union[ColorType, List[ColorType]]): return has_alpha(colour) elif isinstance(colour, list): - print([c for c in colour]) return any([has_transparency(c) for c in colour]) return False
Rectified two broken links Two links are broken as they have absolute URLs. Changing the URLs from absolute to relative, and the links are working fine.
@@ -114,8 +114,8 @@ After adding Python to your Windows PATH, you should then be able to follow the ## Check #7 [Windows]: Do you need Build Tools for Visual Studio installed? -Starting with version [0.63](http://localhost:8000/changelog.html#version-0-63-0) (July 2020), Streamlit added [pyarrow](https://arrow.apache.o...
Moved RedLockTest and Tanium to skipped Increased Phishing test - attachment timeout
}, { "playbookID": "Phishing test - attachment", - "timeout": 500, + "timeout": 600, "nightly": true, "integrations": [ "EWS Mail Sender", "TruSTAR Test": "The test runs even when not supposed to, which causes its quota to run out", "Tenable.io test": "Error 409 ISSUE OPENED", "Tenable.io Scan Test": "Error 409 ISSUE O...
Update imports for relu6 removal in Keras 2.2.2 Keras 2.2.2 doesn't have keras_applications.mobilenet.relu6 anymore, resulting in an ImportError if code is run with this and posterior versions. This commit checks for the appropriate Keras version and provides a dummy replacement for relu6.
@@ -7,7 +7,10 @@ from distutils.version import StrictVersion as _StrictVersion if _keras.__version__ >= _StrictVersion('2.2.0'): from keras.layers import DepthwiseConv2D + if _keras.__version__ <= _StrictVersion('2.2.1'): from keras_applications.mobilenet import relu6 + else: + relu6 = lambda x: _keras.activations.relu...
Fixed bug causing "MAC verified OK" message Fix for verbose stderr output bug in openssl cmd
@@ -88,7 +88,8 @@ class CryptUtil(object): first_proc = subprocess.Popen(first_cmd, stdout=subprocess.PIPE) - second_proc = subprocess.Popen(second_cmd, stdin=first_proc.stdout, stdout=subprocess.PIPE) + second_proc = subprocess.Popen(second_cmd, stdin=first_proc.stdout, + stdout=subprocess.PIPE, stderr=subprocess.PIPE...
check if DD initialized This can happen in unit tests
@@ -105,10 +105,13 @@ class DatadogMetrics(HqMetrics): def _create_event(self, title: str, text: str, alert_type: str = ALERT_INFO, tags: dict = None, aggregation_key: str = None): + if datadog_initialized(): api.Event.create( title=title, text=text, tags=tags, alert_type=alert_type, aggregation_key=aggregation_key, ) ...
Unify handling of type_dispatched_args in gen_python_functions. This is just to simplify the handling, there is no generated code difference.
@@ -255,8 +255,20 @@ def create_python_bindings(python_functions, has_self, is_module=False): inputs = [arg for arg in declaration['arguments'] if not is_output(arg)] outputs = [arg for arg in declaration['arguments'] if is_output(arg)] - type_dispatched_args = [arg for arg in declaration['arguments'] if arg.get('is_ty...
Updated document Updated readme,added about ipython
@@ -24,6 +24,7 @@ Overview Welcome to IPython. Our full documentation is available on `ipython.readthedocs.io <https://ipython.readthedocs.io/en/stable/>`_ and contains information on how to install, use, and contribute to the project. +IPython (Interactive Python) is a command shell for interactive computing in multip...
Improved presentation Add round(*,2) to the extended price (break price) information comment to avoid long decimal numbers of python and by compatible witk price.
@@ -1212,7 +1212,7 @@ def add_dist_to_worksheet(wks, wrk_formats, index, start_row, start_col, # Sort the tiers based on quantities and turn them into lists of strings. qtys = sorted(price_tiers.keys()) prices = [str(price_tiers[q]) for q in qtys] - prices_ext = [str(price_tiers[qtys[q]]*int(qtys[q])) for q in range(le...
Stop SWO before starting it. This addresses the case where the probe already had SWO running, which for CMSIS-DAP will cause a command error if you attempt to restart it.
@@ -125,6 +125,11 @@ class SWVReader(threading.Thread): thread runs, it reads SWO data from the probe and passes it to the SWO parser created in init(). When the thread is signaled to stop, it calls DebugProbe.swo_stop() before exiting. """ + # Stop SWO first in case the probe already had it started. Ignore if this fai...
llvm, function/Distance: Provide custom output struct type The default will change in the following commit
@@ -9807,12 +9807,6 @@ class Distance(ObjectiveFunction): self.functionOutputType = None - # Override defaults. We only output single value - @property - def _result_length(self): - return 1; - - def _validate_params(self, request_set, target_set=None, variable=None, context=None): """Validate that variable had two ite...
Update matchms/importing/load_from_msp.py Thank you for the suggestion, I totally ignored that.
@@ -50,18 +50,16 @@ def parse_msp_file(filename: str) -> List[dict]: # Obtaining the masses and intensities if int(params['num peaks']) == peakscount: peakscount = 0 - spectrums.append( - { + yield { 'params': (params), 'm/z array': numpy.array(masses), 'intensity array': numpy.array(intensities) } - ) + params = {} ma...
Use contains to catch -local sources Changed a filter to use contains instead of iexact for local source matching
@@ -76,7 +76,7 @@ class SourceFilter(FilterSet): """Source custom filters.""" name = CharListFilter(field_name="name", lookup_expr="name__icontains") - type = CharListFilter(field_name="source_type", lookup_expr="source_type__iexact") + type = CharListFilter(field_name="source_type", lookup_expr="source_type__contains"...
Attempt to fix test_uiawrapper.WindowWrapperTests.test_issue_443 File "C:\projects\pywinauto\pywinauto\unittests\test_uiawrapper.py", line 2142, in test_issue_443 self.assertEqual(self.dlg.is_minimized(), True) AssertionError: False != True
@@ -2115,6 +2115,7 @@ if UIA_support: def test_issue_443(self): """Test .set_focus() for window that is not keyboard focusable""" self.dlg.minimize() + time.sleep(0.2) self.assertEqual(self.dlg.is_minimized(), True) self.dlg.set_focus() self.assertEqual(self.dlg.is_minimized(), False)
Upgrade shaker version to 1.1.3 This mainly fixes CentOS image builds.
@@ -37,7 +37,7 @@ rally_version: 0.10.1 shaker_venv: "{{browbeat_path}}/.shaker-venv" # Shaker version to Install -shaker_version: 1.1.0 +shaker_version: 1.1.3 # PerfKitBenchmarker Settings perfkit_venv: "{{browbeat_path}}/.perfkit-venv"
removes redundant check y_axis_column i.e a GraphDisplayColumn should always be a dict
@@ -801,10 +801,7 @@ class ReportConfiguration(QuickCachedDocumentMixin, Document): y_axis_columns = [] try: for y_axis_column in original_y_axis_columns: - if isinstance(y_axis_column, dict): column_id = y_axis_column['column_id'] - else: - column_id = y_axis_column column_config = self.report_columns_by_column_id[col...
Put no coverage pragmas on __str__ methods for new errors They aren't covered for the same reasons as most other error __str__ methods.
@@ -67,7 +67,10 @@ class StratisCliPartialChangeError(StratisCliRuntimeError): """ return self.changed_resources != frozenset() - def __str__(self): + # pylint: disable=fixme + # FIXME: remove no coverage pragma when adequate testing for CLI output + # exists. + def __str__(self): # pragma: no cover if len(self.unchang...
SA-CASSCF average-energy gradient logic Must set "converged=True" if we can skip Lagrange multipliers.
@@ -496,7 +496,7 @@ class Gradients (lagrange.Gradients): eris = self.eris = self.base.ao2mo (mo) if mf_grad is None: mf_grad = self.base._scf.nuc_grad_method () if state is None: - self.converged = self.base.converged + self.converged = True return casscf_grad.Gradients (self.base).kernel (mo_coeff=mo, ci=ci, atmlst=a...
Add Documentation URL This adds a [Documentation URL](https://packaging.python.org/guides/distributing-packages-using-setuptools/#project-urls), which will display in the left-hand nav of the projects PyPI page, allowing users arriving there to get to the documentation slightly faster.
@@ -94,4 +94,7 @@ setup( "License :: OSI Approved :: Apache Software License", "Topic :: Software Development :: Testing", ], + project_urls={ + "Documentation": "http://docs.getmoto.org/en/latest/", + }, )
Removed core pool initializing from adapter. As core pool is initialized by OCF, it is no longer required to do it in adapter
@@ -426,8 +426,6 @@ int cas_initialize_context(void) goto err_block_dev; } - ocf_mngt_core_pool_init(cas_ctx); - return 0; err_block_dev: @@ -444,7 +442,6 @@ err_ctx: int cas_cleanup_context(void) { - ocf_mngt_core_pool_deinit(cas_ctx); block_dev_deinit(); atomic_dev_deinit(); cas_garbage_collector_deinit();
SceneReaderPathPreview : Remove AlembicSource node It was unused, since Alembic loading is now done through the SceneReader.
@@ -54,9 +54,6 @@ class SceneReaderPathPreview( GafferUI.PathPreviewWidget ) : # for reading IECore.SceneInterface files (scc, lscc) self.__script["SceneReader"] = GafferScene.SceneReader() - # for reading Alembic files (abc) - self.__script["AlembicSource"] = GafferScene.AlembicSource() - # for reading more generic si...
Remove slow from sacremoses The issue has been resolved on upstream. Test run time on Circle CI: ~= 0.4 second.
import io -import unittest import torchtext.data as data from torchtext.utils import unicode_csv_reader @@ -22,9 +21,6 @@ class TestUtils(TorchtextTestCase): "A", "string", ",", "particularly", "one", "with", "slightly", "complex", "punctuation", "."] - # TODO: Remove this once issue was been resolved. - # TODO# Add nl...
Update changelog.md Small grammatical tweak.
@@ -7,7 +7,7 @@ Also see [changelog in progress](http://bit.ly/2nK3cVf) for the next release. ## Release v4.0.2 - **v4.0.2, released 2017-07-31** - - Fixed issue when using single-sign-on with GitLab (and in Enterprise Edition with SAML, Office365 and G Suite), where using a non-English language option in Account Setti...
Address some PR feedback keep 'comment' in sync organize test ID name
@@ -99,7 +99,7 @@ def _keep_first_some(values: Sequence[Any]) -> Any: if value: return value raise AssertionError( - "``_keep_some`` should find at least one valid option; check configuration." + "``_keep_first_some`` should find at least one valid option; check configuration." ) @@ -191,18 +191,18 @@ def _generate_pyt...
Arnold Renderer : Initialise autobumVisibility in Displacement constructor The idea being that Displacement takes full responsibility for its own data.
@@ -825,13 +825,6 @@ class ArnoldAttributes : public IECoreScenePreview::Renderer::AttributesInterfac updateVisibility( m_visibility, g_specularTransmitVisibilityAttributeName, AI_RAY_SPECULAR_TRANSMIT, attributes ); updateVisibility( m_visibility, g_volumeVisibilityAttributeName, AI_RAY_VOLUME, attributes ); updateVis...
[clanup] Remove pywikibot.QuitKeyboardInterrupt deprecated for 6 years also do not publish private _QuitKeyboardInterrupt class
@@ -45,9 +45,6 @@ from pywikibot.bot import ( show_help, ui, ) -from pywikibot.bot_choice import ( - QuitKeyboardInterrupt as _QuitKeyboardInterrupt, -) from pywikibot.diff import PatchManager from pywikibot.family import AutoFamily, Family from pywikibot.i18n import translate @@ -128,14 +125,14 @@ __all__ = ( 'NoCreat...
voctocore: added no-signal message to offline sources every source got a compositor that underlies a 'testvideosrc ! textoverlay' to show "NO SIGNAL" on a black background, if source is not sending anymore.
@@ -56,8 +56,22 @@ bin.( if self.has_video: self.bin += """ + videotestsrc + pattern=black + ! textoverlay + text=\"NO SIGNAL\" + valignment=center + halignment=center + font-desc="Roboto, 20" + ! {vcaps} + ! compositor-{name}. + {videoport} ! {vcaps} + ! compositor-{name}. + + compositor + name=compositor-{name} ! tee...
Remove creation of database line of rule `test` from Makefile. This goes to a script that runs when the cointainer ups.
@@ -62,8 +62,6 @@ run_migrate: # run all migrations @cd dbaas && python manage.py syncdb --migrate --noinput --no-initial-data test: # run tests - # @echo "create database IF NOT EXISTS dbaas;" | mysql -u root - @mysqladmin -uroot -p$(DBAAS_DATABASE_PASSWORD) -f drop test_dbaas -h$(DBAAS_DATABASE_HOST); true @cd dbaas ...
improve method for determining position compares the centroid to a history of bounding boxes
@@ -20,7 +20,9 @@ class ObjectTracker: def __init__(self, config: DetectConfig): self.tracked_objects = {} self.disappeared = {} + self.positions = {} self.max_disappeared = config.max_disappeared + self.detect_config = config def register(self, index, obj): rand_id = "".join(random.choices(string.ascii_lowercase + str...
Fix [Linux] disk_io_counters() fails on Linux kernel 4.18+ Linux kernel 4.18+ added 4 fields, ingore them and parse the rest as usual.
@@ -1060,6 +1060,8 @@ def disk_io_counters(perdisk=False): # ...unless (Linux 2.6) the line refers to a partition instead # of a disk, in which case the line has less fields (7): # "3 1 hda1 8 8 8 8" + # 4.18+ has 4 fields added: + # "3 0 hda 8 8 8 8 8 8 8 8 8 8 8 0 0 0 0" # See: # https://www.kernel.org/doc/Documentat...
Add option to exclude priors from charts (excluded by default) Thanks!
@@ -1123,12 +1123,14 @@ def api_get_progress_info(project_id): # noqa: F401 def api_get_progress_density(project_id): """Get progress density of a project""" + include_priors = request.args.get('priors', False, type=bool) + try: # get label history project_path = get_project_path(project_id) with open_state(project_pat...
enhancement: [cli] print inputs info also if those types are unknown Make cli prints out inputs (files) info also if it failed to detect those types from file names.
@@ -346,7 +346,9 @@ def _load_diff(args, extra_opts): _exit_with_output("Wrong input type '%s'" % args.itype, 1) except API.UnknownFileTypeError: _exit_with_output("No appropriate backend was found for given file " - "'%s'" % args.itype, 1) + "type='%s', inputs=%s" % (args.itype, + ", ".join(args.inputs)), + 1) _exit_i...
STY: Fix C++ style comment. [ci skip]
@@ -2099,7 +2099,7 @@ array_fromstring(PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds return NULL; } - // binary mode, condition copied from PyArray_FromString + /* binary mode, condition copied from PyArray_FromString */ if (sep == NULL || strlen(sep) == 0) { /* Numpy 1.14, 2017-10-19 */ if (DEPRECATE...
Update ports for push notifications Since the Mattermost server needs to reach these push proxy ports it makes sense to define which one has to be opened in the firewalls.
@@ -18,6 +18,8 @@ After purchasing a subscription to Mattermost E10 or higher from Mattermost, Inc Both TPNS and HPNS only work with the Mattermost Apple App Store and Google Play apps. If you have compiled the apps yourselves, you must also host your own Mattermost push proxy server. See our FAQ on :ref:`how push noti...
Update paper.bib fix authors order in scoop ref
volume = "", number = "", pages = "", - author = "Detoc, Jerome and Garo, Mickael and Carval, Thierry and Thepault, Baptiste and Mahoudo, Pierre", + author = "Detoc, Jerome and Thepault, Baptiste and Carval, Thierry and Mahoudo, Pierre and Garo, Mickael", url = "", organization = "", address = "",