message
stringlengths
13
484
diff
stringlengths
38
4.63k
Do not rm container on travis Causes weird error /dev/stdout: resource temporarily unavailable
@@ -25,7 +25,7 @@ install: - docker-compose up -d script: - - docker-compose run --rm -v /tmp/coverage:/tmp/coverage web bash -c "COVERAGE_FILE=/tmp/coverage/.coverage pytest --cov-report= --cov=." + - docker-compose run -v /tmp/coverage:/tmp/coverage web bash -c "COVERAGE_FILE=/tmp/coverage/.coverage pytest --cov-repo...
Update README_noviflow.rst with faucet 1.5.2, the table config is updated to make all cases passed.
@@ -10,7 +10,7 @@ Introduction NoviFlow provide a range of switches known to work with FAUCET. -These instructions are known to work with a NoviFlow 1248, software NW400.1.8, running with FAUCET 1.4.0. +These instructions are known to work with a NoviFlow 1248 and NS-2116, software NW400.1.8 and NW400.2.1, running with...
[luci-config] Use gitiles.Location.parse in imports_ref parse_resolve raises an exception if ref is invalid. But ref in the location is irrelevant in import_ref because we need only host and project. Use simpler gitiles.Location.parse.
@@ -363,7 +363,10 @@ def import_ref(project_id, ref_name): raise NotFoundError('project %s not found' % project_id) if project.config_location.storage_type != GITILES_LOCATION_TYPE: raise Error('project %s is not a Gitiles project' % project_id) - loc = gitiles.Location.parse_resolve(project.config_location.url) + + # ...
Add missing file from This was the missing h11 event case mentioned in the commit.
@@ -134,6 +134,8 @@ class H11Server(HTTPProtocol): self.streams[0].append(event.data) elif event is h11.NEED_DATA: break + elif isinstance(event, h11.ConnectionClosed): + break if self.connection.our_state is h11.MUST_CLOSE: self.transport.close() elif self.connection.our_state is h11.DONE:
Test-Commit: use upstream config for rdo jobs This commit is to ensure that the rdo jobs don't use internal config files. Also, testing out exactly how the current_build and hash vars look like
@@ -52,7 +52,10 @@ if [ ! -z ${current_build+x} ] export RELEASE="$RELEASE" #no mutations needed after latest changes export VARS="$VARS --extra-vars current_build=$current_build" else - export RELEASE="$RELEASE-rhel" + #implies this is a upstream job + #export RELEASE="$RELEASE-rhel" + echo "current_build is '$current...
Removed should_compile logic Debugging, removed logic, force compile
@@ -177,7 +177,6 @@ class AppDynamicsInstaller(PHPExtensionHelper): The argument is the installer object that is passed into the `compile` method. """ - if(self._should_compile): print("ktully fork!!!") print("Downloading AppDynamics package...") install.package('APPDYNAMICS')
Add a new --file-pattern option (mutually exclusive with input_files Still to be implemented
@@ -50,8 +50,13 @@ def main(argv): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument( 'input_files', - nargs="+", - help='Input files (EDF, SPEC)') + nargs="*", + help='Input files (EDF, SPEC).') + # input_files and --filepattern are mutually exclusive + parser.add_argument( + '--file-pattern', ...
preserver user group ids and group names in ES on user save previously saving the user would wipe its group membership by excluding __group_ids and __group_names
@@ -2,6 +2,7 @@ import copy from corehq.apps.change_feed.consumer.feed import KafkaChangeFeed, KafkaCheckpointEventHandler from corehq.apps.change_feed.document_types import COMMCARE_USER, WEB_USER, FORM from corehq.apps.change_feed.topics import FORM_SQL +from corehq.apps.groups.models import Group from corehq.apps.us...
DOC: change fill_value of full_like from scalar to array_like Add example using array_like type. See
@@ -364,7 +364,7 @@ def full_like(a, fill_value, dtype=None, order='K', subok=True, shape=None): a : array_like The shape and data-type of `a` define these same attributes of the returned array. - fill_value : scalar + fill_value : array_like Fill value. dtype : data-type, optional Overrides the data type of the result...
Windows: Avoid passing options to Clang on Windows that it hates * With this it almost works with MinGW64 only, but the Python library is not done.
@@ -855,7 +855,7 @@ if mingw_mode: env.Append(CPPDEFINES=["_WIN32_WINNT=0x0501"]) # At least older MinGW64 has issues with this, so disable it. -if mingw_mode and gcc_version < "6": +if mingw_mode and gcc_version < "6" and not clang_mode: env.Append(LINKFLAGS=["-Wl,--no-gc-sections"]) if debug_mode: @@ -970,6 +970,7 @@...
Use global for create_ccd_data size. So they can be compared in tests without hardcoding the value multiple times.
@@ -20,14 +20,16 @@ from astropy.utils.data import (get_pkg_data_filename, get_pkg_data_filenames, from astropy.nddata.ccddata import CCDData from astropy.table import Table +DEFAULT_DATA_SIZE = 100 with NumpyRNGContext(123): - _random_array = np.random.normal(size=[100, 100]) + _random_array = np.random.normal(size=[D...
remove ceph-iscsi-gw play from site.yml.sample We ship ceph-iscsi-gw in a separate repo downstream and do not package it with ceph-ansible. Including the play for ceph-iscsi-gw in site.yml.sample makes the playbook fail when using the downstream packages. Fixes:
- restapis - rbdmirrors - clients - - iscsigws - mgrs gather_facts: false tags: roles: - ceph-client -- hosts: iscsigws - gather_facts: false - become: True - roles: - - ceph-iscsi-gw - - hosts: mgrs gather_facts: false become: True
Set random seed to stop flaky test Summary: The function is not very stable in the larger range; will investigate that later.
@@ -5,6 +5,7 @@ import logging import unittest import numpy.testing as npt +import torch from ml.rl.models.actor import FullyConnectedActor, GaussianFullyConnectedActor from ml.rl.test.models.test_utils import check_save_load @@ -97,6 +98,7 @@ class TestGaussianFullyConnectedActor(unittest.TestCase): ) def test_get_log...
Add description to policies in admin_password.py blueprint policy-docs
@@ -26,9 +26,16 @@ admin_password_policies = [ policy.RuleDefault( name=POLICY_ROOT % 'discoverable', check_str=base.RULE_ANY), - policy.RuleDefault( - name=BASE_POLICY_NAME, - check_str=base.RULE_ADMIN_OR_OWNER), + base.create_rule_default( + BASE_POLICY_NAME, + base.RULE_ADMIN_OR_OWNER, + "Change the administrative p...
return empty list when nothing's found [fix] imdb_watchlist no longer crashes with empty lists
@@ -130,7 +130,7 @@ class ImdbWatchlist: total_item_count = len(json_vars['list']['items']) if not total_item_count: logger.verbose('No movies were found in imdb list: {}', config['list']) - return + return [] imdb_ids = [] for item in json_vars['list']['items']: if is_valid_imdb_title_id(item.get('const')):
remove stop_at_first to simplify caching github issue: AdaCore/libadalang#45
@@ -48,7 +48,6 @@ package body Langkit_Support.Lexical_Env is Recursive : Boolean := True; Rebindings : Env_Rebindings := null; Metadata : Element_Metadata := Empty_Metadata; - Stop_At_First : Boolean; Results : in out Entity_Vectors.Vector); ----------------------- @@ -378,7 +377,6 @@ package body Langkit_Support.Lexi...
Fix ChatAction.user_left was considered as user_kicked Closes
@@ -54,20 +54,9 @@ class ChatAction(EventBuilder): kicked_by=True, users=update.user_id) - elif isinstance(update, types.UpdateChannel): - # We rely on the fact that update._entities is set by _process_update - # This update only has the channel ID, and Telegram *should* have sent - # the entity in the Updates.chats li...
Fix virt.init documentation Adjust virt.init documentation to match reality: disks use 'name' property, not 'disk_name'.
@@ -1263,7 +1263,7 @@ def init(name, Disk dictionaries can contain the following properties: - disk_name + name Name of the disk. This is mostly used in the name of the disk image and as a key to merge with the profile data.
Update how_to_instantiate_a_data_context_on_a_databricks_spark_cluster.rst fixed broken links in `Additional resources` section
@@ -163,10 +163,8 @@ Additional notes Additional resources -------------------- -- How to create a Data Source in :ref:`Databricks AWS <_how_to_guides__configuring_datasources__how_to_configure_a_databricks_aws_datasource>` - -- How to create a Data Source in :ref:`Databricks Azure <_how_to_guides__configuring_datasour...
Adds logic to EigenvalueParameterizedGate for larger-than-expected nullspace. Performing germ selection resulted in a case where the computed null space was larger than the minimum size needed. This seems ok, and so we just use the first <number-needed> nullspace vectors.
@@ -1874,12 +1874,16 @@ class EigenvalueParameterizedGate(GateMatrix): for ik,k in enumerate(evecIndsToMakeReal): vecs[:,ik] = self.B[:,k] V = _np.concatenate((vecs.real, vecs.imag), axis=1) - nullsp = _mt.nullspace(V); assert(nullsp.shape[1] == nToReal) - #assert we can find enough real linear combos! + nullsp = _mt.n...
Fixed small bug in `GenericCommand.{add,get,del,has}_setting()` that did not replace spaces in command when accessing setting.
@@ -3345,6 +3345,15 @@ class GenericCommand(gdb.Command): def post_load(self): pass + def __get_setting_name(self, name): + def __sanitize_class_name(clsname): + if " " not in clsname: + return clsname + return "-".join(clsname.split()) + + class_name = __sanitize_class_name(self.__class__._cmdline_) + return "{:s}.{:s...
manage.py: add support for --gargs TN:
@@ -23,8 +23,10 @@ PYTHON_LIB_ROOT = LANGKIT_ROOT / "contrib" / "python" def create_subparser( subparsers: _SubParsersAction, fn: Callable[..., None], + *, with_jobs: bool = False, with_no_lksp: bool = False, + with_gargs: bool = False, accept_unknown_args: bool = False, ) -> ArgumentParser: """ @@ -34,6 +36,7 @@ def c...
Allow to fake the currency rates. The envidonment variable KICOST_CURRENCY_RATES can be used to fake the cunrrency rates. It must indicate the name of an XML file containing the desired rates. The format is the one used by the European Central Bank.
""" Simple helper to download the exchange rates. """ +import os import sys from bs4 import BeautifulSoup @@ -25,6 +26,10 @@ url = 'https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml' def download_rates(): content = '' + if os.environ.get('KICOST_CURRENCY_RATES'): + with open(os.environ['KICOST_CURRENCY_RATE...
Style fix in compute popup Style fix in compute popup
<div class="col"> <p>Cluster alias:</p> </div> - <div class="col tooltip-wrap" (mouseover)="isEllipsisActive($event)"> + <div class="col" (mouseover)="isEllipsisActive($event)"> <span>{{resource.computational_name}}</span> <!-- <div class="tooltip" [style.visibility]="tooltip ? 'visible': 'hidden'">{{resource.computati...
Fix bug in TDict ordering Found this while working on unsafe stuff.
@@ -632,8 +632,8 @@ case class TDict(keyType: Type, valueType: Type) extends TContainer { extendOrderingToNull(missingGreatest)( Ordering.Iterable( Ordering.Tuple2( - elementType.ordering(missingGreatest), - elementType.ordering(missingGreatest)))) + keyType.ordering(missingGreatest), + valueType.ordering(missingGreate...
Fixes typo in neutron_350.py There is a typo in the message that appears when an answerfile is generated using PackStack CLI. I removed an extra "O" from "chosen" & capitalized the project name Neutron. Closes-Bug:
@@ -445,8 +445,8 @@ def initConfig(controller): "USE_DEFAULT": False, "NEED_CONFIRM": False, "CONDITION": False, - "MESSAGE": ("You have choosen OVN neutron backend. Note that this backend does not support the VPNaaS or FWaaS services. " - "Geneve will be used as encapsulation method for tenant networks"), + "MESSAGE":...
BUG: fixed data acknowledgements referencing Fixed a bug in the way that the instrument acknowledgements and references are accessed.
@@ -45,4 +45,4 @@ Citing the publication: To aid in scientific reproducibility, please include the version number in publications that use this code. This can be found by invoking `pysat.__version__ `. -Information for appropriately acknowledging and citing the different instruments accessed through pysat is sometimes ...
flask_utils: add missing variable It's used with `global` so it must be defined first
@@ -32,7 +32,7 @@ from integration_tests.tests.utils import get_resource logger = setup_logger('Flask Utils', logging.INFO) - +security_config = None SCRIPT_PATH = '/tmp/reset_storage.py' CONFIG_PATH = '/tmp/reset_storage_config.json'
More documentation on caffe2::Operator Summary: Pull Request resolved:
@@ -602,6 +602,12 @@ class Operator : public OperatorBase { } ~Operator() noexcept override {} + /// Retrieve a non-owning reference to the input at position 'idx' for this + /// operator. The returned reference is valid for the duration of the + /// RunOnDevice call. The optional 'type' parameter can be used to assert...
refactor: model: Extract stream sorting to new functions. This is useful if model.pinned_streams or model.unpinned_streams needs to be sorted again in the future.
@@ -57,6 +57,13 @@ class ServerConnectionFailure(Exception): pass +def sort_streams(streams: List[List[str]]) -> None: + """ + Used for sorting model.pinned_streams and model.unpinned_streams. + """ + streams.sort(key=lambda s: s[0].lower()) + + class Model: """ A class responsible for storing the data to be displayed....
Minimalistic changes to allow successful execution of `keylime_ca -c listen` with `openssl` Basically, the problem stems from the fact that `openssl` produces an **empty** `cacrl.der` (and `cacrl.pem`). Resolves: ##261
@@ -319,6 +319,7 @@ def cmd_revoke(workingdir, name=None, serial=None): write_private(priv) # write out the CRL to the disk + if os.stat('cacrl.der').st_size : with open('cacrl.der', 'wb') as f: f.write(crl) convert_crl_to_pem("cacrl.der", "cacrl.pem") @@ -378,7 +379,7 @@ def cmd_listen(workingdir, cert_path): logger.i...
periodic plotting bugfix Following PR identified plotting issues with periodic boundary conditions. I've tried to now fix these up so that the proper number of prior dimensions are initialized and labels are properly transferred.
@@ -1411,15 +1411,6 @@ def boundplot(results, dims, it=None, idx=None, prior_transform=None, if (it is None and idx is None) or (it is not None and idx is not None): raise ValueError("You must specify either an iteration or an index!") - # TODO: npdim and label are undefined here! - - # Gather non-periodic boundary con...
Deleted headings, amended definition Deleted account and loan heading. Changed definition from interest accrued to interest accumulated.
@@ -5,12 +5,10 @@ schemas: [account, derivative_cash_flow, derivative, loan, security] --- # accrued_interest -#account -**accrued\_interest** represents the interest accrued *but unpaid* since the [last\_payment\_date][lpd] and due at the [next\_payment\_date][npd]. -Accrued interest is an accounting definition result...
Fixed styling for active and hover states. Prior to this, bootstrap's more specific rules would make active buttons the extra-dark blue "selected" style instead of the "purple" primary style.
margin-right: 5px; margin-bottom: 5px; - &.active { + &.active, &.active:focus, &.active:hover { // Styled similarly to .btn-primary // Don't bold font because .active often toggles on and off, and we don't want the size to change background-color: @call-to-action-mid;
m4: add download mirror * m4: add download mirror Fixes * m4: use new syntax to specify mirrors
sources: "1.4.19": - url: "https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz" + url: + - "https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.gz" + - "https://ftpmirror.gnu.org/gnu/m4/m4-1.4.19.tar.gz" sha256: "3be4a26d825ffdfda52a56fc43246456989a3630093cced3fbddf4771ee58a70" "1.4.18": - url: "https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.g...
Update data-drift.md fixed broken link
@@ -76,7 +76,7 @@ You can also zoom on distributions to understand what has changed. ![](../.gitbook/assets/data_distr_by_feature.png) {% hint style="info" %} -To change the bins displayed, you can define [custom options](../../step-by-step-guides/report-customization/options-for-data-target-drift.md). +To change the b...
Remove outdated comment Should have been removed as part of commit
@@ -245,11 +245,7 @@ class CouchCaseUpdateStrategy(UpdateStrategy): return self def soft_rebuild_case(self, xforms=None): - """ - Rebuilds the case state in place from its actions. - - If strict is True, this will enforce that the first action must be a create. - """ + """Rebuilds the case state in place from its actio...
Add asteroids 162173 Ryugu (Q1385178) and 101955 Bennu (Q11558) Both are being used as globes for other items on Wikidata. See:
@@ -58,6 +58,7 @@ class Family(family.WikimediaFamily): """Supported globes for Coordinate datatype.""" return { 'ariel': 'http://www.wikidata.org/entity/Q3343', + 'bennu': 'http://www.wikidata.org/entity/Q11558', 'callisto': 'http://www.wikidata.org/entity/Q3134', 'ceres': 'http://www.wikidata.org/entity/Q596', 'deimo...
Fix get_dataset_stats - change SampleDocument to DatasetSampleDocument was wrong - it was originally ODMDatasetSample, not ODMSample
@@ -169,7 +169,7 @@ def get_dataset_stats(dataset): } } """ - _sample_doc_cls = type(dataset.name, (foo.SampleDocument,), {}) + _sample_doc_cls = type(dataset.name, (foo.DatasetSampleDocument,), {}) num_default_fields = len(_sample_doc_cls.get_field_schema()) field_names = [field_name for field_name in dataset.get_fiel...
macOS: Enhanced output for missing DLLs during dependency scan * Also normalize paths consistently for rpath and loader_path resolutions, for at least readability of output.
@@ -146,9 +146,9 @@ def _resolveBinaryPathDLLsMacOS( break else: # This is only a guess, might be missing package specific directories. - resolved_path = os.path.join(original_dir, path[7:]) + resolved_path = os.path.normpath(os.path.join(original_dir, path[7:])) elif path.startswith("@loader_path/"): - resolved_path =...
[Datasets] Add test for reading CSV files without reading the first line as the header. This PR adds a test confirming that the user can manually supply column names as an alternative to reading a header line.
@@ -1932,7 +1932,7 @@ def test_csv_roundtrip(ray_start_regular_shared, fs, data_path): ], ) def test_csv_write_block_path_provider( - shutdown_only, + ray_start_regular_shared, fs, data_path, endpoint_url, @@ -1971,6 +1971,24 @@ def test_csv_write_block_path_provider( assert df.equals(ds_df) +# NOTE: The last test usin...
Update README with more detailed description The README shows up on PyPI, etc so it's good to make it more detailed.
-=================== -MLflow Beta Release -=================== +============================================= +MLflow: A Machine Learning Lifecycle Platform +============================================= + +MLflow is a platform to streamline machine learning development, including tracking experiments, packaging code +...
Update running_pets.md Updated doc as well line 211.
@@ -208,7 +208,7 @@ For running the training Cloud ML job, we'll configure the cluster to use 5 training jobs and three parameters servers. The configuration file can be found at `object_detection/samples/cloud/cloud.yml`. -Note: This sample is supported for use with 1.8 runtime version. +Note: The code sample below is...
fix shadowed variable name Summary: When compiled with -Werror=shadow-compatible-local, cannot reuse a variable name. This passed our tests, but some people use stronger settings to compile.
@@ -50,9 +50,9 @@ void Context::connectFullMesh( allBytes.insert(allBytes.end(), addrBytes.begin(), addrBytes.end()); } - std::ostringstream key; - key << rank; - store.set(key.str(), allBytes); + std::ostringstream storeKey; + storeKey << rank; + store.set(storeKey.str(), allBytes); // Connect every pair for (int i = ...
(Games Cog): Updated task repeating cooldown time. Changed `hours` argument in `refresh_genres_task` from `1.0` to `24.0` due no need for so fast updating.
@@ -138,7 +138,7 @@ class Games(Cog): self.refresh_genres_task.start() - @tasks.loop(hours=1.0) + @tasks.loop(hours=24.0) async def refresh_genres_task(self) -> None: """Refresh genres in every hour.""" try:
Use tezos/opam-repository fork Problem: It's inconvenient to manually find suitable versions of the opam packages in hacks.nix:( Solutiom: Use tezos/opam-repository fork which has only suitable versions for all dependencies.
}, "opam-repository": { "branch": "master", - "description": "Main public package repository for OPAM, the source package manager of OCaml.", - "homepage": "https://opam.ocaml.org", - "owner": "ocaml", + "description": "Tezos opam-repository fork.", + "owner": "tezos", "repo": "opam-repository", - "rev": "3e92793804b7f...
Add test for short non-local number Test case for issue
@@ -327,3 +327,8 @@ class ExampleNumbersTest(unittest.TestCase): short_metadata = PhoneMetadata.short_metadata_for_region("GB") result = str(short_metadata) self.assertTrue(result.startswith("PhoneMetadata(id='GB', country_code=None, international_prefix=None")) + + def testGBLocalNumberLength(self): + # Python version...
gae.py: make it work for milo Milo's "logs" module uses property "service" instead of "module" and does not specify "application". Check "service" property and fallback to "module". Fail with a nice error message if application id is not specifed in the default module and not provided explictly. Review-Url:
@@ -236,7 +236,7 @@ class Application(object): for yaml_path in find_app_yamls(self._app_dir): with open(yaml_path) as f: data = yaml.load(f) - module_id = data.get('module', 'default') + module_id = data.get('service', data.get('module', 'default')) if module_id in self._modules: raise ValueError( 'Multiple *.yaml fil...
Reload doesn't kill operations. Removes elements and orphan opnodes.
@@ -3201,7 +3201,8 @@ class Elemental(Modifier): @self.tree_operation(_("Reload {name}"), node_type="file", help="") def reload_file(node, **kwargs): filepath = node.filepath - self.clear_elements_and_operations() + self.clear_elements() + self.remove_orphaned_opnodes() self.load(filepath) @self.tree_submenu(_("Duplica...
add suggestion to use lld to CONTRIBUTING.md Summary: I found this significantly speeds up incremental builds. Pull Request resolved:
@@ -349,6 +349,16 @@ ccache -F 0 # deploy (and add to ~/.bashrc for later) export PATH="/usr/lib/ccache:$PATH" ``` +#### Use a faster linker +If you are editing a single file and rebuilding in a tight loop, the time spent +linking will dominate. The system linker available in most Linux distributions +(GNU `ld`) is qui...
Index task_hashsum to give cross-run query speedup Practical experience with wstat has shown this index to give great speedup when making queries which match up tasks between runs based on their checkpointing hashsum.
@@ -131,7 +131,7 @@ class Database: task_depends = Column('task_depends', Text, nullable=True) task_func_name = Column('task_func_name', Text, nullable=False) task_memoize = Column('task_memoize', Text, nullable=False) - task_hashsum = Column('task_hashsum', Text, nullable=True) + task_hashsum = Column('task_hashsum', ...
Fix email role enum issue Fix bug where email generated after changing user role shows enum Fix similar issue with Team Project Role email
@@ -2172,7 +2172,7 @@ def change_organization_role( user=role.user, submitter=request.user, organization_name=organization.name, - role=role.role_name, + role=role.role_name.value, ) send_role_changed_as_organization_member_email( @@ -2180,7 +2180,7 @@ def change_organization_role( role.user, submitter=request.user, or...
Add two more invalid serialization tests Those tests are about missing "keys" and "roles" attributes in Targets.Delegations.
@@ -319,6 +319,13 @@ class TestSerialization(unittest.TestCase): invalid_delegations: utils.DataSet = { "empty delegations": "{}", + "missing keys": '{ "roles": [ \ + {"keyids": ["keyid"], "name": "a", "terminating": true, "paths": ["fn1"], "threshold": 3}, \ + {"keyids": ["keyid2"], "name": "b", "terminating": true, "...
Update modular_commands.rst Minor fix to use cmd2 intead of cmd in example text.
@@ -44,7 +44,7 @@ functions with ``help_``, and completer functions with ``complete_``. A new decorator ``with_default_category`` is provided to categorize all commands within a CommandSet in the same command category. Individual commands in a CommandSet may be override the default category by specifying a -specific ca...
Apply suggestions from code review Mainly LaTeX refinements
@@ -15,7 +15,7 @@ grand_parent: COVIDcast API 1. TOC {:toc} -## COVID-19 tests +## COVID-19 Tests * **First issued:** * **Number of data revisions since 19 May 2020:** 0 @@ -41,8 +41,8 @@ StorageDate, patient age, and unique identifiers for the device on which the test was performed, the individual test, and the result...
insecure_skip_verify works only on telegraf 1.4. skip it for now HG-- branch : feature/microservices
[[inputs.nginx]] ## An array of Nginx stub_status URI to gather stats. urls = ["https://{{ noc_web_host }}/ng_stats"] +{# waits for telegraf 1.4 insecure_skip_verify = {% if nginx_self_signed_cerificate %}true{% else %}false{% endif %} - +#} [[inputs.procstat]] pid_file = "/var/run/nginx.pid"
[bugfix] Remove description parameter called with changeCommonscat The description parameter of changeCommonscat was never used and removed recently. The method must not be called with it.
@@ -305,7 +305,7 @@ class CommonscatBot(ConfigParserBot, ExistingPageBot, NoRedirectPageBot): self.changeCommonscat(page, currentCommonscatTemplate, currentCommonscatTarget, primaryCommonscat, - checkedCommonscatTarget, LinkText, Note) + checkedCommonscatTarget, LinkText) return # Commonscat link is wrong
Add query current minion config with config.items Fixes
@@ -461,3 +461,16 @@ def gather_bootstrap_script(bootstrap=None): ret = salt.utils.cloud.update_bootstrap(__opts__, url=bootstrap) if 'Success' in ret and len(ret['Success']['Files updated']) > 0: return ret['Success']['Files updated'][0] + +def items(): + ''' + Return the complete config from the currently running min...
Viewer : Apply userDefaults to Views This allows config files to be used to configure the Viewer. For instance, the following changes the default display transform for the ImageView : ``` Gaffer.Metadata.registerValue( GafferImageUI.ImageView, "displayTransform", "userDefault", "rec709" ) ```
@@ -195,6 +195,7 @@ class Viewer( GafferUI.NodeSetEditor ) : if self.__currentView is None : self.__currentView = GafferUI.View.create( plug ) if self.__currentView is not None: + Gaffer.NodeAlgo.applyUserDefaults( self.__currentView ) self.__currentView.setContext( self.getContext() ) self.__views.append( self.__curre...
doc/motors: hide status getters These are not yet implemented
@@ -107,14 +107,6 @@ These are all instances of the ``Control`` class given below. .. autoclass:: pybricks.builtins.Control :no-members: - .. rubric:: Control status - - .. automethod:: pybricks.builtins.Control.stalled - - .. automethod:: pybricks.builtins.Control.active - - .. rubric:: Control settings - .. autometho...
Bugfix adopt Werkzeug's timestamp parsing This uses the Response last_modified setter to parse the timestamp, which is consistent with Flask and also fixes a DST bug.
@@ -373,7 +373,7 @@ async def send_file( attachment_filename = file_path.name file_body = current_app.response_class.file_body_class(file_path) if last_modified is None: - last_modified = datetime.fromtimestamp(file_path.stat().st_mtime) + last_modified = file_path.stat().st_mtime # type: ignore if cache_timeout is Non...
Ray Interpolation functions Two interpolating functions to obtain a ray along a ray trace and along the line defined by two rays in z.
@@ -174,6 +174,86 @@ class Ray: return rays + @staticmethod + def along(ray1, ray2, z): + """This function returns a ray at position z using the line defined + by ray1 and ray2. y and theta are linearly interpolated. + + Parameters + ---------- + ray1 : Ray + First ray + ray2 : Ray + Second ray + z : float + Position i...
Parse gradient, hessian and atommasses from fchk Using the _parse_block method
@@ -171,6 +171,30 @@ class FChk(logfileparser.Logfile): if line[0:11] == 'Shell types': self.parse_aonames(line, inputfile) + if line[0:19] == 'Real atomic weights': + count = int(line.split()[-1]) + assert count == self.natom + + atommasses = numpy.array(self._parse_block(inputfile, count, float, 'Atomic Masses')) + +...
Handle unregistered transformations more gracefully deserialize unregistered transformations as 'dummy transformations', which are instances of the base Transformation or SubgraphTransformation classes with all the necessary information attached to re-searialize them without loss of information.
@@ -153,8 +153,8 @@ class Transformation(TransformationBase): self.sdfg_id = sdfg_id self.state_id = state_id - expr = self.expressions()[expr_index] if not override: + expr = self.expressions()[expr_index] for value in subgraph.values(): if not isinstance(value, int): raise TypeError('All values of ' @@ -372,6 +372,13...
Reduce code duplication in JpegCompression This patch decreases code duplication in the parameter parsing of augmenters.arithmetic.JpegCompression by using the parameter handling functions in parameters.py. It also enables the compression parameter to convert a list of values to Choice.
@@ -1573,14 +1573,17 @@ class JpegCompression(Augmenter): Parameters ---------- - compression : int or tuple of two ints or StochasticParameter + compression : number or tuple of two number or list of number or StochasticParameter Degree of compression using saving to `jpeg` format in range [0, 100] High values for com...
Supply default value to call to get_device_setting to prevent DeviceProvisioned error that prevents setup wizard page from loading.
@@ -128,7 +128,9 @@ class FrontEndCoreAppAssetHook(WebpackBundleHook): "languageGlobals": self.language_globals(), "oidcProviderEnabled": OIDCProviderHook.is_enabled(), "kolibriTheme": ThemeHook.get_theme(), - "isSubsetOfUsersDevice": get_device_setting("subset_of_users_device"), + "isSubsetOfUsersDevice": get_device_s...
Fix "Notebook loading error" on colab * Fix "Notebook loading error" on colab There was a missing comma after the array element on line 46, so I added it. From what I can tell, this was causing the colab to be unable to load. * Update AIDungeon_2.ipynb
"\n", "## About\n", "* While you wait you can [read adventures others have had](https://aidungeon.io/)\n", - "* [Read more](https://pcc.cs.byu.edu/2019/11/21/ai-dungeon-2-creating-infinitely-generated-text-adventures-with-deep-learning-language-models/) about how AI Dungeon 2 is made." - "- **[Support AI Dungeon 2](htt...
filestore-to-bluestore: skip bluestore osd nodes If the OSD node is already using bluestore OSDs then we should skip all the remaining tasks to avoid purging OSD for nothing. Instead we warn the user. Closes:
- import_role: name: ceph-defaults + - name: set_fact current_objectstore + set_fact: + current_objectstore: '{{ osd_objectstore }}' + + - name: warn user about osd already using bluestore + debug: + msg: 'WARNING: {{ inventory_hostname }} is already using bluestore. Skipping all tasks.' + when: current_objectstore == ...
Patch 7 * Update custom-buttons.md Set the 'updatemenu method' link directly to the method instead of the page header. * Update custom-buttons.md Bolded phrases and additional explanation in the "methods" section.
@@ -34,10 +34,10 @@ jupyter: --- #### Methods -The [updatemenu method](https://plot.ly/python/reference/#layout-updatemenus-buttons-method) determines which [plotly.js function](https://plot.ly/javascript/plotlyjs-function-reference/) will be used to modify the chart. There are 4 possible methods: -- `"restyle"`: modif...
change fields to CustomFields in stixParser change fields to CustomFields
@@ -14,7 +14,7 @@ script: |- i = 0 def create_new_ioc(data, i, time, pkg_id, ind_id): data.append({}) - data[i]['fields'] = {'indicator_id': ind_id, 'stix_package_id':pkg_id} + data[i]['CustomFields'] = {'indicator_id': ind_id, 'stix_package_id':pkg_id} data[i]['source'] = ind_id.split(':')[0] if time is not None: data...
[bugfix] Fix wikibase_tests.py after use _test_new_empty in DataCollectionTestCase which is called by each subclass use self.assertIsEmpty(result) instead of self.assertLength(result, 0) self.assert(Not)In(attr, item.__dict__) to verify that an attribute exists. hasattr() would load the attributes. use subTests
@@ -55,19 +55,6 @@ class WbRepresentationTestCase(WikidataTestCase): self.assertLength(set(list_of_dupes), 1) -class DataCollectionTestCase(WikidataTestCase): - - """Test case for a Wikibase collection class.""" - - collection_class = None - - def test_new_empty(self): - """Test that new_empty method returns empty coll...
docs: fix graphql query to return failed runs Summary: These queries should be under test. Fixing the immediate problem first. Test Plan: run query locally Reviewers: sashank, sidkmenon
@@ -116,7 +116,7 @@ The `pipelineRunsOrError` query also takes in an optional filter argument, of ty For example, the following query will return all failed runs: query FilteredPipelineRuns { - pipelineRunsOrError(filter: { status: FAILURE }) { + pipelineRunsOrError(filter: { statuses: [FAILURE] }) { __typename ... on ...
[risksense-835] RiskSense Integration ### Enhancement - Human readable format change in app detail command
@@ -1840,7 +1840,7 @@ script: description: The state of the ticket associated with the application. type: String description: This command is used to lookup single application details in depth. Command accepts application id as an argument. - dockerimage: demisto/python3:3.8.1.6120 + dockerimage: demisto/python3:3.8.1....
Creating convert_to_tfrecord function Changing file to follow examples/how_tos/reading_data/convert_to_records.py
@@ -58,16 +58,9 @@ def read_pickle_from_file(filename): return data_dict -def main(argv): - del argv # Unused. - - file_names = _get_file_names() - for file_name in file_names: - input_file = os.path.join(FLAGS.input_dir, file_name) - output_file = os.path.join(FLAGS.output_dir, file_name + '.tfrecords') - +def convert...
Ensure we can serialize protobuf messages if present. We need to either support arbitrary pickle format, or make a better way to add plugins for custom serialization.
@@ -23,6 +23,11 @@ import pytz import lz4.frame import logging +try: + from google.protobuf.message import Message as GoogleProtobufMessage +except ImportError: + GoogleProtobufMessage = None + _reconstruct = numpy.array([1, 2, 3]).__reduce__()[0] _ndarray = numpy.ndarray @@ -201,6 +206,8 @@ class SerializationContext(...
Resolve spamming log on blobstor disconnect. Sanitize blobstor printing.
@@ -32,6 +32,12 @@ logger = logging.getLogger(__name__) CHUNK_SIZE = 16 * s_const.mebibyte +def _path_sanitize(blobstorpath): + ''' + The path might contain username/password, so just return the last part + ''' + return '.../' + blobstorpath.rsplit('/', 1)[-1] + async def to_aiter(it): ''' Take either a sync or async i...
Update mysql_toolkits.py im2recipe
@@ -11,7 +11,7 @@ def connect_mysql(): conn = pymysql.connect(host="127.0.0.1",user="root",port=3306,password="123456",database="mysql", local_infile=True) return conn except Exception as e: - print("CINNECT MYSQL ERROR:", e) + print("CONNECT MYSQL ERROR:", e) # return "connect mysql faild" @@ -35,7 +35,7 @@ def load_d...
Fixed E131 flake8 errors continuation line unaligned for hanging indent
@@ -196,6 +196,6 @@ filterwarnings = ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning [flake8] -ignore = E131,E201,E202,E203,E221,E222,E225,E226,E231,E241,E251,E261,E262,E265,E271,E272,E293,E301,E302,E303,E401,E402,E501,E701,E702,E704,E712,E731 +ignore = E201,E202,E203,E221,E222,E225,...
Editor: highlight current line Highlighting the current line makes it easier to spot the cursor, especially when jumping to a specific line in the editor coming from the Journal.
@@ -27,6 +27,9 @@ import 'codemirror/addon/comment/comment'; // placeholder import 'codemirror/addon/display/placeholder'; +// highlight line +import 'codemirror/addon/selection/active-line'; + import './codemirror/fold-beancount'; import './codemirror/hint-beancount'; import './codemirror/mode-beancount'; @@ -203,6 +2...
Update django.po Author info added
# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# FIRST AUTHOR <jakobdo@gmail.com>, 2020. # msgid "" msgstr ""
Bugfix for wait_for_ssh for waiting for connectivity causes issues when using an SSH gateway yet this is simply doing a basic check for port 22 connectivity.
- role: "lxc_container_create" post_tasks: - name: Wait for ssh to be available - local_action: - module: wait_for + wait_for: port: "22" host: "{{ ansible_host | default(inventory_hostname) }}" search_regex: OpenSSH delay: 1 + delegate_to: "{{ physical_host }}" vars: is_metal: "{{ properties.is_metal|default(false) }}...
Update docs for conditional Key callbacks Closes 2571
@@ -45,6 +45,26 @@ The :class:`EzKey` modifier keys (i.e. ``MASC``) can be overwritten through the 'C': 'control', } +Callbacks can also be configured to work only under certain conditions by using +the ``when()`` method. Currently, two conditions are supported: + +:: + + from libqtile.config import Key + + keys = [ + ...
Update kikBplistmeta.py Made artifact media_to_html compliant
#!/usr/bin/env python3 - +from pathlib import Path import os import biplist from scripts.artifact_report import ArtifactHtmlReport -from scripts.ilapfuncs import logfunc, tsv, is_platform_windows +from scripts.ilapfuncs import logfunc, tsv, is_platform_windows, media_to_html def get_kikBplistmeta(files_found, report_fo...
Update apt_oilrig.txt Other stuff was added in previous PRs.
@@ -64,3 +64,9 @@ prosalar.com # Reference: https://misterch0c.blogspot.com/2019/04/apt34-oilrig-leak.html myleftheart.com + +# Reference: https://unit42.paloaltonetworks.com/behind-the-scenes-with-oilrig/ +# Reference: https://otx.alienvault.com/pulse/5cc8494e1a6c9c572567ba7f + +msoffice-cdn.com +office365-management....
Fixed: duplicate parameter and missing parameter changing duplicate parameter `data_files` in `DatasetBuilder.__init__` to the missing parameter `data_dir`
@@ -231,7 +231,7 @@ class DatasetBuilder: For example to separate "squad" from "lhoestq/squad" (the builder name would be "lhoestq___squad"). data_files: for builders like "csv" or "json" that need the user to specify data files. They can be either local or remote files. For convenience you can use a DataFilesDict. - d...
Move TPIU configuring to set_swo_clock() method. TPIU should not have been configuring for SWO in the init() method. Improved some doc comments.
@@ -48,26 +48,40 @@ class TPIU(CoreSightComponent): return self._has_swo_uart def init(self): - """! @brief Configures the TPIU for SWO UART mode.""" + """! @brief Reads TPIU capabilities. + + Currently this method simply checks whether the TPIU supports SWO in asynchronous + UART mode. The result of this check is avai...
Fix line endings for gaphor/conftest We do unix line endings!
Everything is about services so the Case can define it's required services and start off. """ +from __future__ import annotations import logging from io import StringIO @@ -25,6 +26,7 @@ from gaphor.diagram.painter import ItemPainter from gaphor.diagram.selection import Selection T = TypeVar("T") +S = TypeVar("S") log ...
remove getting internal build number during deployment As ODF 4.9 is GA'ed, we don't need to decide whether to check mcg-operator or noobaa-operator based on build number. From ODF 4.9, its mcg-operator
@@ -92,7 +92,6 @@ from ocs_ci.utility.utils import ( exec_cmd, get_cluster_name, get_latest_ds_olm_tag, - get_ocs_build_number, is_cluster_running, run_cmd, run_cmd_multicluster, @@ -653,12 +652,8 @@ class Deployment(object): ocs_operator_names = [ defaults.ODF_OPERATOR_NAME, defaults.OCS_OPERATOR_NAME, + defaults.MCG_...
2.7.0 Automatically generated by python-semantic-release
@@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers """ from datetime import timedelta -__version__ = "2.6.1" +__version__ = "2.7.0" PROJECT_URL = "https://github.com/custom-components/alexa_media_player/" ISSUE_URL = "{}issues".format(PROJECT_URL)
Rename Struct into StructType and create an alias for the DSL TN:
@@ -1852,7 +1852,7 @@ class TypeDeclaration(object): ) -class Struct(CompiledType): +class StructType(CompiledType): """ Base class for all user struct-like composite types, such as POD structs and AST nodes. @@ -2266,7 +2266,7 @@ class Struct(CompiledType): )) -class ASTNode(Struct): +class ASTNode(StructType): """ Ba...
Properly emit belongs-to annotations for fields' doc libadalang#923
<% type_name = field.struct.entity.api_name ret_type = field.type.entity if field.type.is_ast_node else field.type + doc = ada_doc(field, 3) %> function ${field.api_name} (Node : ${type_name}'Class) return ${ret_type.api_name}; - ${ada_doc(field, 3)} + % if doc: + ${doc} + --% belongs-to: ${field.struct.entity.api_name...
Disable more xpack features, add some documentation. Fixes
@@ -50,7 +50,14 @@ services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1 environment: + # Disable all xpack related features to avoid unrelated logging + # in docker logs. https://github.com/mozilla/addons-server/issues/8887 + # This also avoids us to require authentication for local devel...
Update __init__.py Update go hub binary to fix es sync test.
__hub_url__ = ( - "https://github.com/lbryio/hub/releases/download/v0.2021.12.18.1/hub" + "https://github.com/lbryio/hub/releases/download/v0.2022.01.21.1/hub" ) from .node import Conductor from .service import ConductorService
Update README.md Links to new repo location
-![](https://raw.githubusercontent.com/isislab/CTFd/master/CTFd/static/original/img/logo.png) +![](https://raw.githubusercontent.com/CTFd/CTFd/master/CTFd/static/original/img/logo.png) ==== -[![Build Status](https://travis-ci.org/isislab/CTFd.svg?branch=master)](https://travis-ci.org/isislab/CTFd) +[![Build Status](htt...
Use numpy.repeat() to accelerate offsets2parents About a factor of 6 speedup
@@ -41,12 +41,10 @@ class JaggedArray(awkward.array.base.AwkwardArrayWithContent): @classmethod def offsets2parents(cls, offsets): - out = cls.numpy.zeros(offsets[-1], dtype=cls.JaggedArray.fget(None).INDEXTYPE) - cls.numpy.add.at(out, offsets[offsets != offsets[-1]][1:], 1) - cls.numpy.cumsum(out, out=out) - if offset...
tests: Remove test_change_email_address_visibility from test_realm.py. This commit removes test_change_email_address_visibility which is used to test changing email_address_visibility using 'PATCH /realm' endpoint as we already do this in do_test_realm_update_api and invalid value is also tested in test_invalid_integer...
@@ -466,24 +466,6 @@ class RealmTest(ZulipTestCase): result = self.client_patch("/json/realm", req) self.assert_json_error(result, "Invalid bot_creation_policy") - def test_change_email_address_visibility(self) -> None: - # We need an admin user. - user_profile = self.example_user("iago") - - self.login_user(user_profi...
[oauth] catch keyring.errors.InitError when saving / loading password fixes
@@ -17,7 +17,7 @@ import keyring.backends.SecretService # type: ignore import keyring.backends.kwallet # type: ignore from keyring.backend import KeyringBackend # type: ignore from keyring.core import load_keyring # type: ignore -from keyring.errors import KeyringLocked, PasswordDeleteError # type: ignore +from keyring...
Update README.md Found a typo.
@@ -112,7 +112,7 @@ Please be aware that the environment.xml and requirements.txt each use a differe $Env:Path ``` Copy the resulting output. Example: `"PATH": "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"` -Then open the applicable settings.json in your VS Code. (See how to open command palette [here](https://code.vi...
Fix sporadic cluster_t test failure The test was failing because a GC sweep wasn't happening. This fix ensures that the GC does a pass before running the assertion Tested-by: Mark Nunberg
@@ -19,6 +19,7 @@ from couchbase.tests.base import CouchbaseTestCase from couchbase.connstr import ConnectionString from couchbase.cluster import Cluster, ClassicAuthenticator,\ PasswordAuthenticator, NoBucketError, MixedAuthError +import gc class ClusterTest(CouchbaseTestCase): @@ -55,6 +56,8 @@ class ClusterTest(Couc...
[fix] anilist: fix crash when yuna.moe is unreacheable Make sure `ids` is declared even when the call to relations.yuna.moe fails. Closes
@@ -144,6 +144,7 @@ class AniList(object): ) or 'all' in selected_formats if has_selected_type and has_selected_release_status: + ids = {} try: ids = task.requests.post( 'https://relations.yuna.moe/api/ids', @@ -152,7 +153,7 @@ class AniList(object): logger.debug(f'Additional IDs: {ids}') except RequestException as e: ...