message
stringlengths
13
484
diff
stringlengths
38
4.63k
Renderer : improve performance of filter clean-up for IPR sessions. We're creating filters in parallel by traversing the scene. Cleaning them up is done serially, though. This commit makes sure clean-up can happen on all cores.
@@ -2468,8 +2468,13 @@ void LightFilterConnections::deregisterLightFilter( const IECore::StringVectorDa return; } - for( const std::string &lightName : lightNames->readable() ) + const std::vector<std::string> &lights = lightNames->readable(); + tbb::parallel_for( + size_t(0), + lights.size(), + [this, lights, groupEmp...
help center: Rewrite "Contact support" page. Structure page as use case -> recommended channel. Include expected SLAs for all channels.
# Contact support -General and technical support for Zulip is available through three -channels: - -* [The Zulip development community][development-community]. - Depending on the time of day/week of your query and the complexity - of your question, you may get complete responses immediately or up - to a couple days lat...
docs: add SolidExecutionContext to relevant APIs for Solids Summary: Make context object more prominent in the solid docs. Test Plan: make dev Reviewers: alangenfeld, cdecarolis
@@ -12,11 +12,12 @@ Solids are the functional unit of work in Dagster. A solid's responsibility is t ## Relevant APIs | Name | Description | -| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------...
Add failing test for filtering attributes Added a test that fails when the friendlyName of the requested attribute is not the same with the name of the internal attribute (even though the OIDs and the internal representation names of the attribute are the same)
@@ -81,6 +81,18 @@ def test_filter_on_attributes_1(): assert ava["serialNumber"] == ["12345"] +def test_filter_on_attributes_2(): + + a = to_dict(Attribute(friendly_name="surName",name="urn:oid:2.5.4.4", + name_format=NAME_FORMAT_URI), ONTS) + required = [a] + ava = {"sn":["kakavas"]} + + ava = filter_on_attributes(ava...
Update PillarStack stack.py to latest upstream version which provide the following fixes/enhancements:
@@ -413,7 +413,7 @@ def ext_pillar(minion_id, pillar, *args, **kwargs): stack_config_files += cfgs for cfg in stack_config_files: if not os.path.isfile(cfg): - log.warning( + log.info( 'Ignoring pillar stack cfg "%s": file does not exist', cfg) continue stack = _process_stack_cfg(cfg, stack, minion_id, pillar) @@ -424,...
pmerge: color code display_failure output. green == normal yellow == unsolved red == failure point. It's not perfect, but it does make it easier for the eye to zero in on the relevant data. Closes:
@@ -366,21 +366,35 @@ def do_unmerge(options, out, err, vdb, matches, world_set, repo_obs): out.write(f"finished; removed {len(matches)} packages") -def display_failures(out, sequence, first_level=True, debug=False): +def display_failures(out, sequence, first_level=True, debug=False, _color_index=None): """when resolut...
viafree: Change autonaming from tv3play to viafree Change part autogenerated file names from tv3play to viafree
@@ -135,6 +135,7 @@ class Viaplay(Service, OpenGraphThumbMixin): if self.options.output_auto: directory = os.path.dirname(self.options.output) self.options.service = "tv3play" + self.options.service = "viafree" basename = self._autoname(dataj) title = "%s-%s-%s" % (basename, vid, self.options.service) if len(directory)...
Double the docker puppet process counts Deploy steps run the docker puppet steps with max of a 3 processes. This takes like 30 min to finish the containers configuration for a typical overcloud (in CI). Double the numbers to allow more puppets finish threir tasks sooner.
@@ -72,7 +72,7 @@ parameters: description: Set to True to enable debug logging with docker-puppet.py DockerPuppetProcessCount: type: number - default: 3 + default: 6 description: Number of concurrent processes to use when running docker-puppet to generate config files. ctlplane_service_ips: type: json
Update README.md fixed numerical <> categorical target drift links in the examples
## What is it? -Evidently helps evaluate machine learning models during validation and monitor them in production. The tool generates interactive visual reports and JSON profiles from pandas `DataFrame` or `csv` files. You can use visual reports for ad hoc analysis, debugging and team sharing, and JSON profiles to inte...
fix InProcessRepositoryLocation.executable_path Summary: Very unlikely to matter for this particular repository location but you never know :) Test Plan: BK
@@ -264,7 +264,9 @@ def origin(self) -> InProcessRepositoryLocationOrigin: @property def executable_path(self) -> Optional[str]: - return sys.executable + return ( + self._recon_repo.executable_path if self._recon_repo.executable_path else sys.executable + ) @property def container_image(self) -> str:
Update elastic_net.pyx Elasticnet regression: Change "smaell" to small"
@@ -28,7 +28,7 @@ class ElasticNet: ElasticNet extends LinearRegression with combined L1 and L2 regularizations on the coefficients when predicting response y with a linear combination of the predictors in X. It can reduce the variance of the predictors, force - some coefficients to be smaell, and improves the conditio...
fix ANTSPATH fixes
@@ -24,7 +24,7 @@ binaries: yum: - curl env: - ANTSPATH: "{{ self.install_path }}" + ANTSPATH: "{{ self.install_path }}/" PATH: "{{ self.install_path }}:$PATH" instructions: | {{ self.install_dependencies() }}
Update ci.yml more matrix-include trial and error
@@ -30,25 +30,14 @@ jobs: "da_tests.py" ] include: + - os: macos-latest + python-version: 3.8 + run-type: mac - os: ubuntu-latest python-version: 3.8 run-type: nb test-path: autotest_notebooks.py - - os: macos-latest - python-version: 3.8 - test-path: [ - "pst_tests_2.py", - "utils_tests.py", - "pst_from_tests.py", - "...
Update apt_cobaltdickens.txt Merging trails and fixing dups.
# See the file 'LICENSE' for copying permission # Reference: https://www.secureworks.com/blog/back-to-school-cobalt-dickens-targets-universities - -anvc.me -eduv.icu -jhbn.me -nimc.cf -uncr.me -unie.ga -unie.ml -unin.icu -unip.cf -unip.gq -unir.cf -unir.gq -unir.ml -unisv.xyz -univ.red -untc.me -untf.me -unts.me -unvc....
Disable test_backward_per_tensor in test_fake_quant Summary: Pull Request resolved: This testcase started breaking, clean up for the build. ghstack-source-id: Test Plan: Unittest disabling change
@@ -89,6 +89,7 @@ class TestFakeQuantizePerTensor(TestCase): @given(device=st.sampled_from(['cpu', 'cuda'] if torch.cuda.is_available() else ['cpu']), X=hu.tensor(shapes=hu.array_shapes(1, 5,), qparams=hu.qparams(dtypes=torch.quint8))) + @unittest.skip("temporarily disable the test") def test_backward_per_tensor(self, ...
Adding list sketches to the tsctl command * First steps toward adding the ability to manually run a sketch. * Revert "First steps toward adding the ability to manually run a sketch." This reverts commit * Adding a list sketch to tsctl.
@@ -303,6 +303,34 @@ class SearchTemplateManager(Command): db_session.commit() +class ListSketches(Command): + """List all available sketches.""" + + # pylint: disable=arguments-differ, method-hidden + def run(self): + """The run method for the command.""" + sketches = Sketch.query.all() + + name_len = max([len(x.name)...
[IMPR] Use ThreadList with weblinkchecker.py Also simplify ignore url checking
@@ -133,7 +133,7 @@ from pywikibot.bot import ExistingPageBot, SingleSiteBot, suggest_help from pywikibot.pagegenerators import ( XMLDumpPageGenerator as _XMLDumpPageGenerator, ) -from pywikibot.tools import deprecated +from pywikibot.tools import deprecated, ThreadList from pywikibot.tools.formatter import color_forma...
[Bugfix] fskip of EliminateCommonSubexpr cannot always return false * 'fskip' will not always return false fskip returns false at the end of PackedFunc, discards return true in 'cast' case * Update build_module.cc
@@ -318,6 +318,7 @@ class RelayBuildModule : public runtime::ModuleNode { pass_seqs.push_back(transform::SimplifyInference()); PackedFunc fskip = PackedFunc([](TVMArgs args, TVMRetValue* rv) { Expr expr = args[0]; + *rv = false; if (expr.as<CallNode>()) { auto call_node = expr.as<CallNode>(); auto op_node = call_node->...
explicitly provide memory format when calling to clone() at Sorting.cpp Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -120,7 +120,7 @@ static std::tuple<Tensor&, Tensor&> kthvalue_out_impl_cpu( indices.zero_(); return std::forward_as_tuple(values, indices); } - auto tmp_values = self.clone(); + auto tmp_values = self.clone(at::MemoryFormat::Contiguous); auto tmp_indices = at::empty(self.sizes(), self.options().dtype(kLong)); AT_DIS...
ENH: extend delete single value optimization Allow arrays of shape (1,) for delete's obj parameter to utilize the optimization for a single value. See
@@ -4368,6 +4368,19 @@ def delete(arr, obj, axis=None): return new if isinstance(obj, (int, integer)) and not isinstance(obj, bool): + single_value = True + else: + single_value = False + _obj = obj + obj = np.asarray(obj) + if obj.size == 0 and not isinstance(_obj, np.ndarray): + obj = obj.astype(intp) + + if obj.shap...
Assert page size return less than or equal to amt The EC2 API was returning us empty result lists with next tokens
@@ -64,9 +64,9 @@ class TestEC2Pagination(unittest.TestCase): self.assertEqual(len(results), 3) for parsed in results: reserved_inst_offer = parsed['ReservedInstancesOfferings'] - # There should only be one reserved instance offering on each - # page. - self.assertEqual(len(reserved_inst_offer), 1) + # There should be ...
Expand advanced install instructions For playbook-based installations of bifrost it is important to make sure that the appropriate virtual environment is activated and the correct working directory is used. Adding this information to the existing document
@@ -375,14 +375,37 @@ restarted. Playbook Execution ================== +Playbook based install provides a greater degree of visibility and control +over the process and is suitable for advanced installation scenarios. + +Examples: + +First, make sure that the virtual environment is active (the example below +assumes th...
Modify the list group date Modify the list group date to the correct value according to the API document described
@@ -20,9 +20,9 @@ from tempest.tests.lib.services import base class TestGroupSnapshotsClient(base.BaseServiceTest): FAKE_CREATE_GROUP_SNAPSHOT = { "group_snapshot": { - "group_id": "49c8c114-0d68-4e89-b8bc-3f5a674d54be", - "name": "group-snapshot-001", - "description": "Test group snapshot 1" + "id": "6f519a48-3183-46c...
Fix Cisco.IOS profile HG-- branch : feature/microservices
@@ -108,6 +108,8 @@ class Profile(BaseProfile): ) if il.startswith("virtual-template"): return "Vi %s" % il[16:].strip() + if il.startswith("service-engine"): + return "Service-Engine %s" % il[14:].strip() # Serial0/1/0:15-Signaling -> Serial0/1/0:15 if il.startswith("se") and "-" in interface: interface = interface.sp...
Keystone - List user groups 'membership_expires_at' attribute With the introduction of expiring group memberships, there is a new attribute `membership_expires_at` when listing user groups. This patch updates the test to check the attribute and then ignore it for group dict comparison. Partial-Bug:
@@ -114,6 +114,13 @@ class GroupsV3TestJSON(base.BaseIdentityV3AdminTest): self.groups_client.add_group_user(group['id'], user['id']) # list groups which user belongs to user_groups = self.users_client.list_user_groups(user['id'])['groups'] + # The `membership_expires_at` attribute is present when listing user + # grou...
Use Bland's rule Note: pivot_col() assume some obj value is negative
@@ -195,14 +195,11 @@ def simplex(c, m, b): if any(_.is_negative for _ in tableau[:-1, -1]): raise NotImplementedError("Phase I for simplex isn't implemented.") - # Pivoting strategy use Bland's rule - def pivot_col(obj): - low, idx = 0, 0 - for i in range(len(obj) - 1): - if obj[i] < low: - low, idx = obj[i], i - retu...
Update rules Add key-spacing and switch from no-spaced-func to func-call-spacing Change space-before-function-paren to require space for anonymous functions
@@ -41,13 +41,23 @@ module.exports = { "camelcase": ["error", {"properties": "never"}], "comma-dangle": ["warn", "always-multiline"], "eqeqeq": ["error"], + "func-call-spacing": ["error"], "indent": ["warn", 4, {"SwitchCase":1}], "linebreak-style": ["error", "unix"], - "semi": ["error", "always"], + "key-spacing": ["er...
Update hvac/api/secrets_engines/kv_v2.py changed to be align with sshishov's suggestions and removed the duplicated code
@@ -61,10 +61,7 @@ class KvV2(VaultApiBase): return self._adapter.get(url=api_path) def read_secret(self, path, mount_point=DEFAULT_MOUNT_POINT): - api_path = utils.format_url('/v1/{mount_point}/data/{path}', mount_point=mount_point, path=path) - return self._adapter.get( - url=api_path, - ) + return self.read_secret_v...
doc: Adding exit code for pytest usage examples * doc: Adding exit code for pytest usage examples Fix
@@ -168,15 +168,15 @@ You can invoke ``pytest`` from Python code directly: .. code-block:: python - pytest.main() + retcode = pytest.main() this acts as if you would call "pytest" from the command line. -It will not raise ``SystemExit`` but return the exitcode instead. +It will not raise :class:`SystemExit` but return ...
Added timer in VM resume case 15 min timeout, and 15 second internval for state checking
@@ -125,6 +125,7 @@ function Main { Start-Sleep -s 120 # Verify the VM status + # Can not find if VM hibernation completion or not as soon as it disconnects the network. Assume it is in timeout. $vmStatus = Get-AzVM -Name $vmName -ResourceGroupName $rgName -Status if ($vmStatus.Statuses[1].DisplayStatus = "VM stopped")...
Standalone: Blacklist more "test" modules from standard library. * These were causing issues on Python 2.6 and Travis, but other systems might be affected as well.
@@ -383,11 +383,11 @@ def scanStandardLibraryPath(stdlib_dir): ] if import_path in ("tkinter", "importlib", "ctypes", "unittest", - "sqlite3", "distutils"): + "sqlite3", "distutils", "email", "bsddb"): if "test" in dirs: dirs.remove("test") - if import_path == "lib2to3": + if import_path in ("lib2to3", "json", "distuti...
Minor polish to QAOA example removes function annotations for Python 2 compatibility puts factor of 2 on betas to match the paper convention
@@ -133,24 +133,16 @@ def Rzz(rads): return cirq.ZZPowGate(exponent=2 * rads / np.pi, global_shift=-0.5) -def qaoa_max_cut_unitary( - qubits, - betas, - gammas, - graph, # Nodes should be integers -) -> cirq.OP_TREE: +def qaoa_max_cut_unitary(qubits, betas, gammas, + graph): # Nodes should be integers for beta, gamma i...
Some changes in resource_utils.py: _Resource now abstract Removed ResourceBundle as decided to use modules for this purpose instead Added dosctring
-from typing import Union, Optional, Tuple, Dict +from typing import Optional, Dict import hail as hl # Resource classes -class ResourceBundle: - def __init__(self, **kwargs): - self.resources = kwargs - self.__dict__.update(kwargs) - - def __getitem__(self, item): - return self.resources[item] - - def __repr__(self): ...
tests: pin ansible-lint version This commit pins the ansible-lint version to 4.3.7 as ceph-ansible isn't compatible with recent changes in 5.0.0
@@ -14,5 +14,5 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint + - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ....
Potential fix for bug in "Use These Parameters" popup menu entry. The fix is actually changing the set_parameter API and it is setting the current value instead of the default value.
@@ -55,8 +55,8 @@ class Input(object): """ self._parameter = parameter - if parameter.default is not None: - self.setValue(parameter.default) + if parameter.value is not None: + self.setValue(parameter.value) if hasattr(parameter, 'units') and parameter.units: self.setSuffix(" %s" % parameter.units)
Fix lack of space in fatal error ("tofile an issue") Also reduces duplication by storing the error message in a variable
@@ -638,15 +638,10 @@ class LocalizedEvent(DatetimeEvent): try: starttz = getattr(self._vevents[self.ref]['DTSTART'].dt, 'tzinfo', None) except KeyError: - logger.fatal( - "Cannot understand event {} from calendar {},\n you might want to" - "file an issue at https://github.com/pimutils/khal/issues" - "".format(kwargs.g...
structured config docs import consistency Closes
@@ -206,6 +206,7 @@ supported by OmegaConf (``int``, ``float``. ``bool``, ``str``, ``Enum`` or Struc .. doctest:: + >>> from dataclasses import dataclass, field >>> from typing import List, Tuple >>> @dataclass ... class User: @@ -246,6 +247,7 @@ as arbitrary Structured configs) .. doctest:: + >>> from dataclasses impo...
Fix 'metadata referenced before assignment' error For the life of me, I can't figure out how this wasn't caught by the test added in
@@ -21,6 +21,7 @@ import websockets from . import provisioner, tag, utils from .annotationhelper import _get_annotations, _set_annotations from .bundle import BundleHandler, get_charm_series +from .charm import get_local_charm_metadata from .charmhub import CharmHub from .charmstore import CharmStore from .client impor...
Better error message for spark.serializer unset fixes
@@ -105,10 +105,11 @@ object HailContext { val problems = new ArrayBuffer[String] - val serializer = conf.get("spark.serializer") + val serializer = conf.getOption("spark.serializer") val kryoSerializer = "org.apache.spark.serializer.KryoSerializer" - if (serializer != kryoSerializer) - problems += s"Invalid configurat...
Fix check on empty dataset Without this fix we read empty datasets that resulted in several warnings.
@@ -129,7 +129,7 @@ class SqParquetDB(SqDB): dataset = ds.dataset(elem, format='parquet', partitioning='hive') - if not dataset: + if not dataset.files: continue tmp_df = self._process_dataset(dataset, namespace, start,
Temporarily disabling tests for 0.28.x because 0.28.x is currently unsupported by the test cases.
@@ -125,6 +125,12 @@ if [[ "${TFX_VERSION}" == 0.27.* ]]; then ) fi +if [[ "${TFX_VERSION}" == 0.28.* ]]; then + # Skipping all TFX 0.28.0 tests until all the issues has been resolved + # http://b/183541263 TFX Tests fails for TFX 0.28.0 + exit 0 +fi + # TODO(b/182435431): Delete the following test after the hanging is...
[ci] Add CODEOWNERS for .buildkite/hooks These hooks are specific to our Buildkite setup and require some context to be edited successfully. Thus they should be protected by codeowner approval.
#/.travis.yml @ray-project/ray-core #/ci/ @ray-project/ray-core +# Buildkite pipeline management +.buildkite/hooks @simon-mo @krfricke + /.github/ISSUE_TEMPLATE/ @ericl @stephanie-wang @scv119 @pcmoritz
Amend fix in commit #b737828 An empty string counts as a label. It should to be ignored.
@@ -218,7 +218,10 @@ class Layout(object): out : str x-axis label """ - return self.panel_scales_x[0].name or labels.get('x', '') + if self.panel_scales_x[0].name is not None: + return self.panel_scales_x[0].name + else: + return labels.get('x', '') def ylabel(self, labels): """ @@ -235,4 +238,7 @@ class Layout(object)...
Minor terminology fix For libadalang#923
@@ -1752,7 +1752,7 @@ def make_formatter( wrapped paragraphs, the given ``line_prefix`` for each line, and given ``prefix`` and ``suffix``. - If the ``:typeref:`` Langkit directive is used in the docstring, + If the ``:typeref:`` Langkit role is used in the docstring, ``get_node_name`` will be used to translate the nam...
fix: move GitLab mirror to sw release This commit moves the repo sync to the correct place.
# This job will execute a release: # Ansible galaxy new release # GitHub release with tag +# Mirror to GitLab # Documents release name: release @@ -60,6 +61,15 @@ jobs: python3 -m pip install --force dist/* kubeinit -v fi + - name: Mirror to GitLab + run: | + git clone https://github.com/Kubeinit/kubeinit.git kubeinit_...
doc:update virtual gpu doc Add a note to the documentation,the GPU vendor's VGPU driver software needs to be installed and configured.
@@ -11,7 +11,8 @@ Processing Units (vGPUs) if the hypervisor supports the hardware driver and has the capability to create guests using those virtual devices. This feature is highly dependent on the hypervisor, its version and the -physical devices present on the host. +physical devices present on the host. In addition...
Update README.rst Update
******************************************* -Uncertainty Quantification using python (UQpy) +Uncertainty Quantification with python (UQpy) ******************************************* |logo| + +==== + :Authors: Michael D. Shields, Dimitris G. Giovanis -:Contributors: Jiaxin Zhang, Aakash Bangalore Satish, Lohit Vandanap...
Always return true for feedback type when interaction type is not specified. Cleanup comments.
@@ -95,9 +95,12 @@ const CMIFeedback = { // Coerce the value to a string for validation value = String(value); if (obj.type === 'true-false') { + // Single character matching the valid true false characters return trueFalse.test(value) && value.length === 1; } if (obj.type === 'choice') { + // Choice is comma separated...
rolling_update: add ceph-handler role since the introduction of ceph-handler, it has to be added in rolling_update playbook as well
roles: - ceph-defaults + - ceph-handler - { role: ceph-common, when: not containerized_deployment } - { role: ceph-docker-common, when: containerized_deployment } - ceph-config roles: - ceph-defaults + - ceph-handler - { role: ceph-common, when: not containerized_deployment } - { role: ceph-docker-common, when: contain...
add sanity check for prod installs Test Plan: make sanity_check make rebuild_dagit Reviewers: #ft, max Subscribers: max
@@ -81,7 +81,10 @@ install_dev_python_modules_verbose: graphql: cd js_modules/dagit/; make generate-types -rebuild_dagit: +sanity_check: + ! pip list --exclude-editable | grep -e dagster -e dagit + +rebuild_dagit: sanity_check cd js_modules/dagit/; yarn install --offline && yarn build-for-python dev_install: install_de...
paper.md: Fixed broken link i had to use "latest" instead of "stable" for the RTD build because there is no release (yet) with the latest change (section: "use cases")
@@ -78,7 +78,7 @@ Another challenge of medical imaging is the heterogeneity of the data across hos # Usage -Past and ongoing research projects using `ivadomed` are listed [here](https://ivadomed.org/en/stable/use_cases.html). The figure below illustrates a cascaded architecture for segmenting spinal tumors on MRI data ...
FIX: account for API change in ophyd We are not doing anything with the status object we are passed yet, but this should work with both signatures and will prevent excessive warnings.
@@ -1788,7 +1788,7 @@ class RunEngine: await current_run.kickoff(msg) - def done_callback(): + def done_callback(status=None): self.log.debug( "The object %r reports 'kickoff' is done " "with status %r", msg.obj, @@ -1840,7 +1840,7 @@ class RunEngine: p_event = asyncio.Event(loop=self.loop) pardon_failures = self._pard...
Guess entity type on positive IDs in events and avoid some RPCs Now specifying a single positive integer ID will add all the types to the white/blacklist so it can be "guessed". Explicit peers will always be only that type, and an RPC is avoided (since it was not needed to begin with).
@@ -20,10 +20,24 @@ def _into_id_set(client, chats): result = set() for chat in chats: + if isinstance(chat, int): + if chat < 0: + result.add(chat) # Explicitly marked IDs are negative + else: + result.update({ # Support all valid types of peers + utils.get_peer_id(types.PeerUser(chat)), + utils.get_peer_id(types.Peer...
chore!: Deprecate request data source Remove RequestDataSource
@@ -601,16 +601,6 @@ class RequestSource(DataSource): raise NotImplementedError -@typechecked -class RequestDataSource(RequestSource): - def __init__(self, *args, **kwargs): - warnings.warn( - "The 'RequestDataSource' class is deprecated and was renamed to RequestSource. Please use RequestSource instead. This class nam...
Fix compute baremetal service client tests While removing the baremetal tests in compute baremetal service client in clients.py also got removed but it is needed in tempest/api/compute/admin/test_baremetal_nodes.py. This patch fix this.
@@ -163,6 +163,7 @@ class Manager(clients.ServiceClients): self.aggregates_client = self.compute.AggregatesClient() self.services_client = self.compute.ServicesClient() self.tenant_usages_client = self.compute.TenantUsagesClient() + self.baremetal_nodes_client = self.compute.BaremetalNodesClient() self.hosts_client = s...
added an image buffer to fix the artificial latency author Maxime Ellerbach +0200 committer Maxime Ellerbach +0200 added an image buffer to fix the artificial latency
@@ -23,7 +23,8 @@ class DonkeyGymEnv(object): conf["exe_path"] = sim_path conf["host"] = host conf["port"] = port - conf['guid'] = 0 + conf["guid"] = 0 + conf["frame_skip"] = 1 self.env = gym.make(env_name, conf=conf) self.frame = self.env.reset() self.action = [0.0, 0.0, 0.0] @@ -34,14 +35,37 @@ class DonkeyGymEnv(obj...
Fix typo in docs of `nn.ARGVA` Fixes a small typo of the docstring of `nn.ARGVA`
@@ -237,7 +237,6 @@ class ARGVA(ARGA): r"""The Adversarially Regularized Variational Graph Auto-Encoder model from the `"Adversarially Regularized Graph Autoencoder for Graph Embedding" <https://arxiv.org/abs/1802.04407>`_ paper. - paper. Args: encoder (Module): The encoder module to compute :math:`\mu` and
Close spur.SshShell connections when done Resolves
@@ -63,8 +63,7 @@ def get_server(sid=None, name=None): def get_connection(sid): """ - Attempts to connect to the given server and - returns a connection. + Attempts to connect to the given server and returns a connection. """ server = get_server(sid) @@ -90,6 +89,8 @@ def ensure_setup(shell): """ Runs sanity checks on ...
azure,hyperv: Fixed cpio unpacking for initrd TC On ubuntu distros the initrd image is made from 2 separate archives (microcode & initrd) and the old unpacking failed. We skip the microcode archive and unpack the actual initrd image.
@@ -100,17 +100,26 @@ if [ "${hv_modules:-UNDEFINED}" = "UNDEFINED" ]; then exit 0 fi -if [[ $DISTRO == "redhat_6" ]]; then - yum_install -y dracut-network +GetDistro +case $DISTRO in + centos_6 | redhat_6) + update_repos + install_package dracut-network dracut -f if [ "$?" = "0" ]; then - LogMsg "dracut -f ran success...
Change test to not check the actual values there seem to be differences between linux and mac probably because of the really small probability values coming out of the learner.
import tempfile import os +import numpy as np from itertools import count from nose.tools import assert_equal, eq_, raises -from numpy.testing import assert_array_almost_equal from rsmtool.utils import (float_format_func, int_or_float_format_func, @@ -397,9 +397,5 @@ class TestExpectedScores(): def test_expected_scores...
ssh: Fix password authentication with Python 3.x & OpenSSH 7.5+ Since PERMDENIED_PROMPT is a byte string the interpolation was resulting in: b"user@host: b'permission denied'". Needless to say this didn't match.
@@ -291,8 +291,8 @@ class Stream(mitogen.parent.Stream): raise HostKeyError(self.hostkey_failed_msg) elif buf.lower().startswith(( PERMDENIED_PROMPT, - b("%s@%s: %s" % (self.username, self.hostname, - PERMDENIED_PROMPT)), + b("%s@%s: " % (self.username, self.hostname)) + + PERMDENIED_PROMPT, )): # issue #271: work arou...
SceneTestCase : Use prefix in set comparisons in `assertScenesEqual()` Also simplify the code for comparing pruned sets.
@@ -229,16 +229,14 @@ class SceneTestCase( GafferImageTest.ImageTestCase ) : if "sets" in checks : self.assertEqual( scenePlug1.setNames(), scenePlug2.setNames() ) for setName in scenePlug1.setNames() : - if not pathsToPrune: - self.assertEqual( scenePlug1.set( setName ), scenePlug2.set( setName ) ) - else: - if sceneP...
cabana: fix incorrect freq&counter fix wrong freq
@@ -65,7 +65,6 @@ QList<QPointF> CANMessages::findSignalValues(const QString &id, const Signal *si void CANMessages::process(QHash<QString, std::deque<CanData>> *messages) { for (auto it = messages->begin(); it != messages->end(); ++it) { - ++counters[it.key()]; auto &msgs = can_msgs[it.key()]; const auto &new_msgs = i...
Update http: to https: for push.mattermost.com Update http: to https: for push.mattermost.com. It appears that works and does not forward to https thus allowing for an insecure connection.
@@ -1872,7 +1872,7 @@ Location of Mattermost Push Notification Service (MPNS), which re-sends push not To confirm push notifications are working, connect to the `Mattermost iOS App on iTunes <https://about.mattermost.com/mattermost-ios-app>`__ or the `Mattermost Android App on Google Play <https://about.mattermost.com/...
Update mouse.py Remove unused code block.
@@ -57,16 +57,6 @@ ctx.lists['self.mouse_button'] = { continuous_scoll_mode = "" -class continuous_scroll: - def __init__(self): - self.mode = None - # self.screen_index = 0 - self.was_control_mouse_enabled = False - self.was_zoom_mouse_enabled = False - - - - @imgui.open(x=700, y=0) def gui_wheel(gui: imgui.GUI): gui....
[metricbeat] move back to docker input and in_cluster for 6.x container input doesn't exist on 6.8 and in_cluster is still documented
@@ -3,3 +3,16 @@ imageTag: 6.8.8 extraEnvs: - name: ELASTICSEARCH_HOSTS value: six-master:9200 + +filebeatConfig: + filebeat.yml: | + filebeat.inputs: + - type: docker + containers.ids: + - '*' + processors: + - add_kubernetes_metadata: + in_cluster: true + output.elasticsearch: + host: '${NODE_NAME}' + hosts: '${ELAST...
exempt status_flag variables from units checks fixes
@@ -910,6 +910,9 @@ class CF1_6Check(CFNCCheck): # number_of_observations should short circuit and not continue # on to further units checks return valid_standard_units.to_result() + elif standard_name_modifier == "status_flag": + # no units required - skip further checks + return valid_standard_units.to_result() # Thi...
Add docstring to ComplexParameter.__init__(). Usage of __init__() directly is discouraged, use constructor methods instead.
@@ -705,6 +705,14 @@ class ComposedParameter(BaseComposedParameter): class ComplexParameter(ComposedParameter): def __init__(self, name, value_fn, dependents, dtype=ztypes.complex, **kwargs): + """Create a complex parameter. + + .. warning:: + Use the constructor class methods instead of the __init__() constructor: + +...
composebox_typeahead: Remove deprecated workaround. The Chromium bug[1] was fixed in 2015. [1]:
@@ -262,26 +262,6 @@ function handle_keyup(e) { } } -// https://stackoverflow.com/questions/3380458/looking-for-a-better-workaround-to-chrome-select-on-focus-bug -function select_on_focus(field_id) { - // A select event appears to trigger a focus event under certain - // conditions in Chrome so we need to protect again...
Remove publish_message_retryable This commit is here to allow reverting this change in case we decide it makes sense to auto-retry within the publisher
import logging -import time import pika @@ -50,37 +49,6 @@ class ResultQueuePublisher: return self._conn - def publish_message_retryable(self, message: bytes, retry_count=0, max_retries=3): - """Publish message to RabbitMQ with the routing key to identify the message source - The channel specifies confirm_delivery and ...
fix small typo Missed reviewing the other PR, this one fixes some formatting strings (yay, rST).
@@ -240,9 +240,9 @@ at the ``debug`` level, and sets a custom module to the ``all`` level: .. conf_log:: log_fmt_jid -You can determine what log call name to use here by adding `%(module)s` to the +You can determine what log call name to use here by adding ``%(module)s`` to the log format. Typically, it is the path of ...
[ludwig] Upgrade jsonschema for ludwig tests Ludwig 0.5.1 requires jsonschema>4, so we have to install it in the test environment. Related: ludwig-ai/ludwig#2055
@@ -379,7 +379,7 @@ install_dependencies() { # dependencies with Modin. if [ "${INSTALL_LUDWIG-}" = 1 ]; then # TODO: eventually pin this to master. - pip install -U "ludwig[test]">=0.4 + pip install -U "ludwig[test]">=0.4 jsonschema>=4 fi # Data processing test dependencies.
Add test for calling pytest.exit with statuscode It checks that a SystemError was raised and the SystemError code is the same as the returncode argument.
@@ -570,6 +570,15 @@ def test_pytest_exit_msg(testdir): result.stderr.fnmatch_lines(["Exit: oh noes"]) +def test_pytest_exit_returncode(): + try: + pytest.exit("hello", returncode=2) + except SystemExit as exc: + excinfo = _pytest._code.ExceptionInfo() + assert excinfo.errisinstance(SystemExit) + assert excinfo.value.c...
BUG: typo name Fixed typo in assigning slt variable name.
@@ -117,8 +117,7 @@ def calc_solar_local_time(inst, lon_name=None, slt_name='slt'): if inst.pandas_format: inst[slt_name] = pds.Series(slt, index=inst.data.index) else: - inst.data = inst.data.assign({pysat_slt: (inst.data.coords.keys(), - slt)}) + inst.data = inst.data.assign({slt_name: (inst.data.coords.keys(),slt)})...
settings: Explain that users can spell their name how they like. Fixes
<div class="input-group" id="name_change_container"> <label for="full_name" class="inline-block title">{{t "Full name" }}</label> <input type="text" name="full_name" id="full_name" class="w-200 inline-block" value="{{ page_params.fullname }}" {{#if page_params.realm_name_changes_disabled}}disabled="disabled" {{/if}}/> ...
Update wind generation capcacity for Norway Source is NVE as usual
"nuclear": 0, "oil": 0, "solar": 0, - "wind": 3481 + "wind": 3644 }, "contributors": [ "https://github.com/corradio" "nuclear": 0, "oil": 0, "solar": 0, - "wind": 1223 + "wind": 1287 }, "parsers": { "consumption": "ENTSOE.fetch_consumption", "nuclear": 0, "oil": 0, "solar": 0, - "wind": 590 + "wind": 689 }, "parsers": ...
Raise the exception when update_profile_data Allow show to the user a possible error
@@ -207,7 +207,7 @@ class NetflixSession(object): return True @common.time_execution(immediate=True) - def _refresh_session_data(self): + def _refresh_session_data(self, raise_exception=False): """Refresh session_data from the Netflix website""" # pylint: disable=broad-except try: @@ -220,15 +220,24 @@ class NetflixSes...
Update the template Made some progress to issue [#158](https://github.com/OpenMined/PySyft/issues/158) following the new [README template](https://github.com/OpenMined/Docs/blob/develop/contributing/readme_template.md)
The goal of this library is to give the user the ability to efficiently train Deep Learning models in a homomorphically encrypted state without needing to be an expert in either. Furthermore, by understanding the characteristics of both Deep Learning and Homomorphic Encryption, we hope to find very performant combinati...
Update recipes/yas/7.x.x/conanfile.py Removed LICENSE export
@@ -11,7 +11,6 @@ class LibnameConan(ConanFile): author = "Bincrafters <bincrafters@gmail.com>" license = "BSL-1.0" no_copy_source = True - exports = ["LICENSE.md"] _source_subfolder = "source_subfolder" def source(self):
Make error messages more consistent in the AoC daystar view From now on, when the interacting user and the original author of the view is different, the bot will send an ephemeral message regarding the issue.
@@ -42,7 +42,13 @@ class AoCDropdownView(discord.ui.View): async def interaction_check(self, interaction: discord.Interaction) -> bool: """Global check to ensure that the interacting user is the user who invoked the command originally.""" - return interaction.user == self.original_author + if interaction.user != self.o...
C: Explain typecasting in Dynamic Allocation tutorial Introducing typecasting without an explanation may confuse learners and make it hard to understand what the different statements in the dynamic allocation syntax exactly do.
@@ -16,7 +16,7 @@ To allocate a new person in the `myperson` argument, we use the following syntax person * myperson = (person *) malloc(sizeof(person)); -This tells the compiler that we want to dynamically allocate just enough to hold a person struct in memory, and then return a pointer to the newly allocated data. +T...
[WIP] Changes to doc generation to work on macs * [WIP] Changes to doc generation to work on macs * continue testing * Add "/usr/local/opt/coreutils/libexec/gnubin" to $PATH so the script also works on OS X when coreutils package is installed.
# # It writes generated documentation files to docs/monitors/<monitor name>.md +# NOTE: On OS X you need to install coreutils package. + +# Add gnu version of various utilities such as readlink, etc to PATH +if [[ "$(uname)" == "Darwin" ]]; then + echo "Detected Darwin, adding \"/usr/local/opt/coreutils/libexec/gnubin\...
Throw error if Redis replies with error Summary: The code already asserted, but only on the reply type, so it didn't include the actual error message. This makes debugging problems much easier when people have problems running the benchmark suite.
@@ -63,6 +63,9 @@ std::vector<char> RedisStore::get(const std::string& key) { GLOO_THROW_IO_EXCEPTION(redis_->errstr); } redisReply* reply = static_cast<redisReply*>(ptr); + if (reply->type == REDIS_REPLY_ERROR) { + GLOO_THROW_IO_EXCEPTION("Error: ", reply->str); + } GLOO_ENFORCE_EQ(reply->type, REDIS_REPLY_STRING); st...
Expose hover as command So a key can be bound to it (issue
@@ -3,7 +3,7 @@ import sublime import sublime_plugin import webbrowser -from .core.configurations import is_supported_syntax +from .core.configurations import is_supported_syntax, is_supported_view from .core.diagnostics import get_point_diagnostics from .core.clients import client_for_view from .core.protocol import R...
Refine the grid position of uploaded images Closes Ensure that when there are less images to fill up the columns, the columns still have the same max width
@@ -516,7 +516,7 @@ table.listing { .listing { &.horiz { display: grid; - grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-items: flex-end; justify-items: initial; }
Remove --no-preserve=all build_pip_package.py This commit removes --no-preserve=all from syntaxnet/dragnn/tools/build_pip_package.py. It was causing issues for OSX developers, as that option is not available on OSX.
@@ -63,13 +63,12 @@ def main(): # Copy the files. subprocess.check_call([ - "cp", "-r", - "--no-preserve=all", os.path.join(base_dir, "dragnn"), os.path.join( + "cp", "-r", os.path.join(base_dir, "dragnn"), os.path.join( base_dir, "syntaxnet"), tmp_packaging ]) if args.include_tensorflow: subprocess.check_call( - ["cp"...
input-pill: Wrap "values" in IIFE. The function should execute initially and return a function, not be a function that when executed returns another function. This fixes an existing bug.
@@ -199,7 +199,7 @@ var input_pill = function ($parent) { }()), // returns all human-readable values. - values: function () { + values: (function () { var values = []; return function () { if (store.lastUpdated >= store.lastCreated.values) { @@ -211,7 +211,7 @@ var input_pill = function ($parent) { return values; }; - ...
Update test_gp_algebra.py Fixed typo
@@ -48,7 +48,7 @@ def get_random_training_set(nenv): hyps_mask2['spec_mask'][2] = 1 hyps2 = np.ones(5, dtype=float) - # 9 different hyper-parameters, onlye train the 0, 2, 4, 6 + # 9 different hyper-parameters, only train the 0, 2, 4, 6 hyps_mask3 = {'nspec': 2, 'spec_mask': np.zeros(118, dtype=int), 'nbond': 2,
Fix failure when unprivileged user execution of archive containing /dev/null See discussion in
@@ -130,7 +130,7 @@ class TarExtractor(Extractor): self._assert_type(path, False) tar_flag = self.TAR_FLAGS.get(self.content_type) self.tmp_dir = tempfile.mkdtemp(dir=extract_dir) - command = "tar %s -x -f %s -C %s" % (tar_flag, path, self.tmp_dir) + command = "tar %s -x --exclude=*/dev/null -f %s -C %s" % (tar_flag, p...
whitelist.txt: updated for Zillya anti-virus Added domains for Zillya Anti-Virus software (Ukraine): zillya.com zillya.ua zillyaoem.com # to ignore in direct .exe downloads download.zillya.com
@@ -155,6 +155,9 @@ yahoo.com yahoodns.net yimg.com yvimg.kz +zillya.com +zillya.ua +zillyaoem.com # to ignore in direct .exe downloads @@ -180,6 +183,7 @@ digitalrivercontent.net divx.com download.drp.su download.geo.drweb.com +download.zillya.com easeus.com filehippo.com foxitsoftware.com
Update .editorconfig to reflect my understanding in 2019 Over last year I removed `end_of_line` and the special-casing of Windows files because I ran into more and more exceptions. Eventually I realized that forcing LF was also wrong (even for a repo like picoCTF).
-# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - root = true -#### 2+space is more trendy these days ######################################### +#### Indent 2 + space is more trendy these days ################################ [*] ch...
DOC: Example for sparse.linalg.spsolve_triangular Added example to the docstring of scipy.sparse.linalg.spsolve_triangular
@@ -458,6 +458,16 @@ def spsolve_triangular(A, b, lower=True, overwrite_A=False, overwrite_b=False): Notes ----- .. versionadded:: 0.19.0 + + Examples + -------- + >>> from scipy.sparse import csr_matrix + >>> from scipy.sparse.linalg import spsolve_triangular + >>> A = csr_matrix([[3, 0, 0], [1, -1, 0], [2, 0, 1]], dt...
core: Fix Receiver.__iter__ loop termination. Since the Message refactoring from a few weeks back, __iter__ has had nothing to throw ChannelError if the remote sent _DEAD.
@@ -416,6 +416,7 @@ class Receiver(object): if msg == _DEAD: raise ChannelError(ChannelError.local_msg) + msg.unpickle() # Cause .remote_msg to be thrown. return msg def __iter__(self): @@ -1006,6 +1007,7 @@ class Latch(object): if self.closed: raise LatchError() self._queue.append(obj) + if self._waking < len(self._sl...
Update GOVERNANCE.md adding Get Help page link to support section
@@ -48,7 +48,7 @@ Users should be encouraged to participate in the life of the project and the com Users who continue to engage with the project and its community will often find themselves becoming more and more involved. Such users may then go on to become contributors, as described above. ## Support -All participant...
external_tasks: Use fuzzed_keys only. minimized_keys will always be NA.
@@ -60,6 +60,6 @@ def add_external_task(command, testcase_id, job): 'minRevisionAbove': str(min_revision), } - reproducer = blobs.read_key(testcase.minimized_keys or testcase.fuzzed_keys) + reproducer = blobs.read_key(testcase.fuzzed_keys) message = pubsub.Message(data=reproducer, attributes=attributes) pubsub_client.p...
Pin coverage dependency for coveralls We install coverage inside tox builds to generate test coverage reports. These reports need to be created with a version supported by coveralls, which we use (outside of tox) to publish coverage reports to coveralls.io.
securesystemslib[crypto,pynacl] six iso8601 -coverage +requests pylint bandit -requests +# Pin to versions supported by `coveralls` (see .travis.yml) +# https://github.com/coveralls-clients/coveralls-python/releases/tag/1.8.1 +coverage<5.0
Check if we're closing the event loop before using it. Should fix
@@ -454,6 +454,9 @@ class Client: def _do_cleanup(self): + if self.loop.is_closed() or not self.loop.is_running(): + return # we're already cleaning up + self.loop.run_until_complete(self.close()) pending = asyncio.Task.all_tasks(loop=self.loop) if pending: @@ -469,6 +472,8 @@ class Client: except: pass + self.loop.clo...
Verification: schedule member update task Turns out that it's necessary to cancel the task manually. Otherwise, duplicate tasks can be running concurrently should the extension be reloaded.
@@ -57,9 +57,20 @@ BOT_MESSAGE_DELETE_DELAY = 10 class Verification(Cog): """User verification and role self-management.""" - def __init__(self, bot: Bot): + def __init__(self, bot: Bot) -> None: + """Start `update_unverified_members` task.""" self.bot = bot + self.update_unverified_members.start() + + def cog_unload(s...
fix Transforms unit test The `Transforms.index_with_tail` unit test incorrectly tested correctness of child transforms where edge transforms where intended.
@@ -74,7 +74,7 @@ class Common: if self.checkfromdims > 0: for etrans in ref.edge_transforms: for shuffle in lambda t: t, nutils.transform.canonical: - self.assertEqual(self.seq.index_with_tail(shuffle(trans+(ctrans,))), (i, (ctrans,))) + self.assertEqual(self.seq.index_with_tail(shuffle(trans+(etrans,))), (i, (etrans,...
Fix library.py _get_item when source is "special://" If the item path is "special://" we need to search both translated and untranslated paths in the kodi library, because it's possible to add a "special://" path to sources
@@ -81,14 +81,25 @@ def _get_item(mediatype, filename): # To ensure compatibility with previously exported items, # make the filename legal fname = xbmc.makeLegalFilename(filename) - path = os.path.dirname(xbmc.translatePath(fname).decode("utf-8")) + untranslated_path = os.path.dirname(fname).decode("utf-8") + translat...