message
stringlengths
13
484
diff
stringlengths
38
4.63k
Added required pickle import In commit the method `save_file` was added with a call to `pickle.dump`, while `pickle` is never imported.
@@ -190,6 +190,7 @@ class SentimentAnalyzer(object): """ print("Saving", filename, file=sys.stderr) with open(filename, 'wb') as storage_file: + import pickle # The protocol=2 parameter is for python2 compatibility pickle.dump(content, storage_file, protocol=2)
Fix ForumChannel annotation not working for app_commands Closes
@@ -720,6 +720,7 @@ BUILT_IN_TRANSFORMERS: Dict[Any, Transformer] = { VoiceChannel: BaseChannelTransformer(VoiceChannel), TextChannel: BaseChannelTransformer(TextChannel), CategoryChannel: BaseChannelTransformer(CategoryChannel), + ForumChannel: BaseChannelTransformer(ForumChannel), Attachment: IdentityTransformer(AppC...
Remove stale comment from json_serialization_test.py has been fixed and the following code snippet now works as expected. ```python >>> import cirq, sympy >>> circuit = cirq.Circuit(cirq.rx(sympy.Symbol('theta')).on(cirq.NamedQubit("q"))) >>> cirq.testing.assert_json_roundtrip_works(circuit) # works. ```
@@ -265,12 +265,6 @@ def test_fail_to_resolve(): QUBITS = cirq.LineQubit.range(5) Q0, Q1, Q2, Q3, Q4 = QUBITS -# TODO: Include cirq.rx in the Circuit test case file. -# Github issue: https://github.com/quantumlib/Cirq/issues/2014 -# Note that even the following doesn't work because theta gets -# multiplied by 1/pi: -# ...
Updating check-admin.js middleware Implementing solution suggested in the comments of issue
-export default function({ store, route, redirect }) { +export default async function({ app, store, route, redirect }) { + if (store.getters['projects/isEmpty']) { + await store.dispatch('projects/setCurrentProject', route.params.id) + } const role = store.getters['projects/getCurrentUserRole'] - const projectRoot = '/...
Update CHANGELOG.md Updated the descriptions
## [Unreleased] - - Fix for query using custom-field-data. - - In ad-create-contact command, display-name argument now works as expected. - - Added detailed description for filter argument in ad-search command. - - Fixed the example value for custom-attribute argument description in ad-create-user and ad-create-contact...
Remove from CODEOWNERS This is so that I don't get one new notification per Pull Request.
# These owners will be the default owners for everything in # the repo. Unless a later match takes precedence, -* @dlstadther @Tarrasch @spotify/dataex +* @dlstadther @spotify/dataex # Specific files, directories, paths, or file types can be # assigned more specificially.
Correct pretty-printing of exponents in nth-root notation Closes diofant/diofant#888 Tests were adapted from diofant/diofant#889
@@ -1292,12 +1292,12 @@ def _print_nth_root(self, base, expt): _zZ = xobj('/', 1) rootsign = xobj('\\', 1) + _zZ # Make exponent number to put above it - if isinstance(expt, Rational): + if expt.is_Rational: exp = str(expt.denominator) if exp == '2': exp = '' else: - exp = str(expt.args[0]) + exp = str(self._print(expt...
Fix typo in test for separate_spins Accidentally read a vasprun with Eigenval parser
@@ -711,7 +711,7 @@ class VasprunTest(PymatgenTest): self.assertEqual(vasprun.eigenvalues[Spin.up].shape[0], len(vasprun.actual_kpoints)) def test_eigenvalue_band_properties_separate_spins(self): - eig = Eigenval(self.TEST_FILES_DIR / "vasprun_eig_separate_spins.xml.gz", separate_spins=True) + eig = Vasprun(self.TEST_F...
travis.yml: don't restrict pip version The hotfix implemented in to fix broken builds after the release of pip 20.0 seems to be unnecessary after the release of pip 20.0.1.
@@ -21,7 +21,7 @@ addons: update: true install: - - pip install --upgrade "pip<20.0" setuptools wheel + - pip install --upgrade pip setuptools wheel - pip install -q -r dev-requirements.txt - pip install -q -r requirements.txt
Update DOCKER_README.md * Update DOCKER_README.md Fix typo in the docker name * Update DOCKER_README.md
@@ -85,9 +85,9 @@ If you don't have `Docker Compose` you can also use `Docker` directly to run the Here is the commands to run: ```bash -docker pull ghcr.io/openbb-finance/openbbterminal/poetry:X.Y.Z +docker pull ghcr.io/openbb-finance/openbbterminal-poetry:X.Y.Z -docker run -v ~/.openbb_terminal/:/home/python/.openbb_...
flesh out readiness probes to make sure the pod serving traffic asap Add documentation, and optimize to get probes passing and failing as quickly as possible
@@ -32,12 +32,21 @@ spec: periodSeconds: 5 ports: - containerPort: {{ .Values.studioApp.appPort }} + # readiness probes are checks for when the pod is ready to serve traffic. + # Note that this runs even after a pod is Ready. Reaching the failure threshold + # means the pod is taken off the routing rules, but then once...
Skip 'error.failure' files They tend to be unreadable
@@ -55,6 +55,10 @@ class NpzGeneratorDataset(object): if self.file_extension not in filename or filename[0] == '.': continue + # Don't load error failures -- they're bad files + if 'error.failure' in filename: + continue + if success_only and 'success' not in filename: continue
Update backend/main/chapters/c09_combining_booleans.py committed suggestion on line 184
@@ -181,7 +181,7 @@ Try inspecting the code with Bird's Eye. Inspect the `return` statements of each class AnExercise(ExerciseStep): """ -When we inspect it with Birdseye, we can see that: +When we inspect it with Bird's Eye, we can see that: name == "Alice" or "Bob"
fix deploy for freebsd HG-- branch : feature/microservices
@@ -37,7 +37,7 @@ stderr_logfile = {{noc_logs}}/{{ services[srv].process_name | default("%(program stderr_logfile_maxbytes = {{ services[srv].stderr_logfile_maxbytes | default('10MB', True)}} stderr_logfile_backups = {{ services[srv].stderr_logfile_backups | default(3, True)}} stderr_events_enabled = false -environment...
[metrics] Missing aggregation for node state The query was missing a group by, causing duplicate time series of the same legend if Ray restarts.
@@ -295,15 +295,15 @@ GRAFANA_PANELS = [ unit="nodes", targets=[ Target( - expr="ray_cluster_active_nodes{{{global_filters}}}", + expr="sum(ray_cluster_active_nodes{{{global_filters}}}) by (node_type)", legend="Active Nodes: {{node_type}}", ), Target( - expr="ray_cluster_failed_nodes{{{global_filters}}}", + expr="sum(r...
Update phorpiex.txt From ```nemucod```
@@ -663,6 +663,40 @@ xieieieros.su xiheiufisd.su xniaeninie.su + + +# Reference: https://app.any.run/tasks/9e581c45-0809-4dd8-8007-cda84b7079a2/ + +aefoahefuaehfu.su +aefoheaofefhuu.su +aeifuaeiuafbuu.su +aeigaeizfaizef.su +aeubaefefbuuss.su +afueufuefueifo.su +aufheuafoaheuf.su +babfaehfuehfuh.su +baeiaeueauieis.su +b...
Accommodate missing symlink targets in Guild view Was failing with an error.
@@ -197,8 +197,7 @@ class ViewDataImpl(view.ViewData): iconTooltip = "Link" return typeDesc, icon, iconTooltip, viewer - @staticmethod - def _base_file_type_info(path): + def _base_file_type_info(self, path): path_lower = path.lower() if re.search(r"\.tfevents\.", path_lower): return "Event log", "file-chart", "File", ...
ci: include optional merge commit number in commit check job Also add capturing group for message body.
@@ -187,7 +187,7 @@ jobs: uses: gsactions/commit-message-checker@v1 with: pattern: | - ^(.*):\s*(.*)\s\(PROJQUAY-[0-9]+\)(\n.*)*$ + ^(.*):\s*(.*)\s(\(PROJQUAY-[0-9]+\))(\s\(#[0-9]+\))?\n(\n(\n|.)*)?$ error: 'Commit must begin with <scope>: <subject> (PROJQUAY-####)' flags: 'gm' excludeTitle: true
Fix wrong behavior of Detection Transform Function.(#959) Consider the difference of the division operator between Python 2.x and Python 3.x.
@@ -91,8 +91,8 @@ class GeneralizedRCNNTransform(nn.Module): stride = size_divisible max_size = list(max_size) - max_size[1] = int(math.ceil(max_size[1] / stride) * stride) - max_size[2] = int(math.ceil(max_size[2] / stride) * stride) + max_size[1] = int(math.ceil(float(max_size[1]) / stride) * stride) + max_size[2] = ...
Update README.md Added citation and minor edits
@@ -27,7 +27,7 @@ The techniques include, but are not limited to: - Pruning - Quantization -- Pruning + Quantization +- Pruning and Quantization - Sparse Transfer Learning ## Installation @@ -62,7 +62,7 @@ The following table lays out the root-level files and folders along with a descr | Folder/File Name | Description ...
Disable flaky test_debug_info Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -1302,6 +1302,7 @@ class RpcTest(RpcAgentTestFixture): rpc.shutdown(graceful=False) @dist_init + @unittest.skip("Test is flaky. see https://github.com/pytorch/pytorch/issues/31846") def test_debug_info(self): # only test keys in this test case. Values should be covered by # individual module debug info tests
Add a separate build matrix entry for documentation testing. * Add a separate build matrix entry for documentation testing. This way we parallelize the unit tests with the documentation tests.
@@ -9,6 +9,11 @@ python: env: - JAX_ENABLE_X64=0 JAX_NUM_GENERATED_CASES=25 - JAX_ENABLE_X64=1 JAX_NUM_GENERATED_CASES=25 +matrix: + include: + - python: "3.7" + env: JAX_ENABLE_X64=1 JAX_ONLY_DOCUMENTATION=true + before_install: - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/minicond...
Updated chamilo-lms-sqli.yaml Uses SQL injection to insert data into the database, then checks to see if this data has been added;
id: chamilo-lms-sqli - info: author: undefl0w name: Chamilo LMS SQL Injection severity: high description: Finds sql injection in Chamilo version 1.11.14 - tags: chamilo,sqli - + tags: 'chamilo,sqli' requests: - raw: - - | - POST /main/inc/ajax/extra_field.ajax.php?a=search_options_from_tags HTTP/1.1 + - > + POST /main/...
framework: Initialize $testSummary for exceptions $testSummary wasn't initialized when a test exception occured. This meant that a previously set $testSummary variable was passed to an aborted test.
@@ -202,10 +202,10 @@ Function Run-TestsOnCycle ([string] $cycleName, [xml] $xmlConfig, [string] $Dist $junitReport.StartLogTestCase("LISAv2Test","$currentTestName","$($testCycle.cycleName)") Set-Variable -Name currentTestData -Value $currentTestData -Scope Global - try { - $testResult = @() + $testResult = "" + $testS...
Deseasonify: `pop` from remaining icons rather than unpack This should be more readable.
@@ -357,7 +357,7 @@ class BrandingManager(commands.Cog): log.info("Reset & shuffle remaining icons") await self._reset_remaining_icons() - next_up, *self.remaining_icons = self.remaining_icons + next_up = self.remaining_icons.pop(0) success = await self.bot.set_icon(next_up.download_url) return success
Update batch_beam_search_online_sim.py typo: The exxtended hypothesis -> The extended hypothesis
@@ -260,7 +260,7 @@ class BatchBeamSearchOnlineSim(BatchBeamSearch): hyps (Hypothesis): Current list of hypothesis Returns: - Hypothesis: The exxtended hypothesis + Hypothesis: The extended hypothesis """ for k, d in self.scorers.items():
Update ci_chemistry_psi4.yml psi4 conda support for python 3.7 stopped
@@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7] + python-version: [3.8] steps: - uses: actions/checkout@v2 @@ -50,7 +50,7 @@ jobs: source $HOME/.bashrc source $CONDABASE/bin/activate conda activate test_psi4 - conda install psi4 -c psi4 + conda install psi4 python=3.8 -c psi4 py...
Prevent job kind filenames from getting too long Many filesystems can't handle path components longer than 256 characters. This should fix
@@ -355,7 +355,7 @@ class FileJobStore(AbstractJobStore): def _supportsUrl(cls, url, export=False): return url.scheme.lower() == 'file' - def _makeStringFilenameSafe(self, arbitraryString): + def _makeStringFilenameSafe(self, arbitraryString, maxLength=240): """ Given an arbitrary string, produce a filename-safe though...
[Migrations] Filter to select migration scripts Added a filter to run only specific migration scripts using a glob expression. This is especially useful for development purposes when testing a new script.
@@ -15,9 +15,10 @@ import argparse import asyncio import importlib.util import logging -import os import sys +from pathlib import Path from types import ModuleType +from typing import Iterable, Optional from configmanager import Config @@ -61,6 +62,14 @@ def cli_parse() -> argparse.Namespace: type=str, help="Path to th...
Dev Requirements add a comment about pinned requirements
@@ -18,7 +18,7 @@ bash scripts/install_gradio.sh ### To install the local development version of Gradio -* Navigate to the repo folder and install test requirements +* Navigate to the repo folder and install test requirements (note that it is highly recommended to use a virtual environment since the versions are pinned...
DOC: Cleanup setuptools_scm version on readthedocs setuptools_scm versions dirty commits different from versioneer. It postpends a dot-date eg '.2022060'.
@@ -93,7 +93,7 @@ finally: # 2. remove the 0.0 version created by setuptools_scm when clone is too shallow if on_rtd: import re - p1 = re.compile(r'\+dirty$') + p1 = re.compile(r'\.d\d{8}$') if p1.match(version): version = p1.sub('', version)
Barf when module not found, without breaking hot reloading Summary: Test Plan: Manual Reviewers: schrockn, natekupp
@@ -52,7 +52,13 @@ observer.schedule(handler, '.', True) observer.start() try: + # We want to let the AutoRestartTrick do its thing (stopping dagit and restarting it on every + # observed filesystem change) until either a user interrupts it or dagit exits on its own. while True: + # handler.process is None during an au...
Adds a min-magnitude threshold to ChoiEigenvalueBarPlot. Avoids plotting O(1e-13) "zero" eigenvalues as red or gray bars on these plots (in ptic for target gates).
@@ -2089,10 +2089,11 @@ class ChoiEigenvalueBarPlot(WorkspacePlot): hoverinfo='text' ) + LOWER_LOG_THRESHOLD = -6 #so don't plot all the way down to, e.g., 1e-13 ys = _np.clip(ys, 1e-30, 1e100) #to avoid log(0) errors log_ys = _np.log10(_np.array(ys,'d')) - minlog = _np.floor(min(log_ys)) - maxlog = _np.ceil(max(log_ys...
Fix db cluster status check, allow more replicas * There can be more replicas the master has than the number of db nodes in our db_nodes table. * A customer can have an extra node replicating from the cluster. For example in geo repl use case.
@@ -384,7 +384,7 @@ def _get_db_cluster_status(db_service, expected_nodes_number): if not sync_replica: return ServiceStatus.FAIL - if (len(master_replications_state) != expected_nodes_number - 1 or + if (len(master_replications_state) < expected_nodes_number - 1 or not all_replicas_streaming): return ServiceStatus.DEG...
MPI->mpi typo
@@ -71,7 +71,7 @@ expressions. Examples of how to define operators are provided: `examples/seismic/tutorials`. * A set of tutorial notebooks concerning the Devito compiler can be found in `examples/compiler`. -* Devito with MPI can be explored in `examples/MPI`. +* Devito with MPI can be explored in `examples/mpi`. * E...
Update cd.rst typo fix: "dpeloyment" -> "deployment"
@@ -254,5 +254,5 @@ creating your secret in Secrets Manager. GithubRepoName=repo-name \ --capabilities CAPABILITY_IAM -We've now created a dpeloyment pipeline that will automatically deploy our +We've now created a deployment pipeline that will automatically deploy our Chalice app whenever we push to our GitHub reposit...
Relax field requirements when intending to Remove... Fixe issue Make the explainer link, i2i link, doc link, and spec link fields optional for features in the "Remove" intent stage.
@@ -83,7 +83,7 @@ const FORM_FIELD_GRAPH = { INTENT_EXPERIMENT: VISIBLE_OPTIONAL, INTENT_EXTEND_TRIAL: VISIBLE_OPTIONAL, INTENT_IMPLEMENT_SHIP: HIDDEN, - INTENT_SHIP: VISIBLE_OPTIONAL, + INTENT_SHIP: VISIBLE_REQUIRED, INTENT_REMOVE: VISIBLE_OPTIONAL, }, 'explainer_links': { @@ -93,7 +93,7 @@ const FORM_FIELD_GRAPH = { ...
astnode_types_ada.mako: minor reformatting TN:
% if logic_vars: procedure Assign_Names_To_Logic_Vars_Impl (Node : access ${type_name}); - -- Debug helper: Assign names to every logical variable in the root node, - -- so that we can trace logical variables. + -- Debug helper: Assign names to every logical variable in the root + -- node, so that we can trace logical ...
fix -O / PYTHONOPTIMIZE bug fixes I'm not sure how to write test cases for PYTHONOPTIMIZE=1 (without growing our whole test matrix), so I'm leaving this untested...
@@ -898,7 +898,8 @@ def tracers_to_jaxpr( def newvar(t: JaxprTracer) -> Var: var = gensym(type_substitute(t.aval)) - assert t_to_var.setdefault(id(t), var) is var + var_ = t_to_var.setdefault(id(t), var) + assert var is var_ return var def type_substitute(aval: AbstractValue) -> AbstractValue:
added message before logged values # Conflicts: # pype/plugins/global/publish/integrate_new.py
@@ -812,7 +812,9 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): matching_profiles = {} highest_value = -1 - self.log.info(self.template_name_profiles) + self.log.debug( + "Template name profiles:\n{}".format(self.template_name_profiles) + ) for name, filters in self.template_name_profiles.items(): value = 0 fa...
Fix a servicemanager race condition. We can't call 'cleanup' from two different threads at the same time.
@@ -47,6 +47,7 @@ class SubprocessServiceManager(ServiceManager): shutdownTimeout=None, logLevelName="INFO", metricUpdateInterval=2.0 ): + self.cleanupLock = threading.Lock() self.host = host self.port = port self.storageDir = storageDir @@ -149,22 +150,33 @@ class SubprocessServiceManager(ServiceManager): self.service...
admin server: test that "GET /admin" gets to the admin app This excercises
@@ -60,3 +60,18 @@ def test_get(test_client, url, mimetype, is_editable): assert resp.mimetype == mimetype data = b"".join(resp.get_app_iter(flask.request.environ)).decode("utf-8") assert ("/admin/edit?" in data) == is_editable + + +def test_get_admin_does_something_useful(test_client, mocker): + # Test that GET /admin...
hide software version in sidebar RTD uses weird versions, so we handle this ourselves
@@ -95,10 +95,9 @@ body { text-decoration: none; } -/* software version in sidebar */ +/* hide software version in sidebar */ .wy-side-nav-search > div.version { - color: #D63E29; - font-size: 90%; + font-size: 0; } .wy-breadcrumbs {
fixed LogSigmoid math string that wasn't rendering in documentation Summary: The documentation for LogSigmoid says: > Applies the element-wise function: > \<blank\> Now the documentation properly displays the math string. Pull Request resolved:
@@ -559,7 +559,8 @@ class LeakyReLU(Module): class LogSigmoid(Module): r"""Applies the element-wise function: - .. math:`\text{LogSigmoid}(x) = \log\left(\frac{ 1 }{ 1 + \exp(-x)}\right)` + .. math:: + \text{LogSigmoid}(x) = \log\left(\frac{ 1 }{ 1 + \exp(-x)}\right) Shape: - Input: :math:`(N, *)` where `*` means, any ...
llvm: Use full component name for function name This includes component type for named components.
@@ -1182,7 +1182,7 @@ class Component(object, metaclass=ComponentsMeta): ctx.get_input_struct_type(self).as_pointer(), ctx.get_output_struct_type(self).as_pointer())) - func_name = ctx.get_unique_name(self.name) + func_name = ctx.get_unique_name(str(self)) llvm_func = pnlvm.ir.Function(ctx.module, func_ty, name=func_na...
fix request verification add descriptions & outputs
@@ -685,7 +685,7 @@ script: return replaceInTemplates(currentCommand.template, args); } - function sendRequest(tmpl, reqArgs, resStatus) { + function sendRequest(tmpl, reqArgs, resStatusPath) { var readyBody = replaceInTemplates(tmpl, reqArgs); var httpParams = { Method: 'POST', @@ -702,15 +702,17 @@ script: if (res.St...
hide_alexa_from_mp * hide_alexa_from_mp pack integration is deprecated, no need to have the pack in the mp * Update pack_metadata.json add comma
"name": "Alexa Rank Indicator (Deprecated)", "description": "Deprecated. Vendor has declared end of life for this product. No available replacement.", "support": "xsoar", + "hidden": true, "currentVersion": "2.0.23", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex",
Fix handling of embedded shared libs on Windows TN:
@@ -40,13 +40,39 @@ _so_ext = { 'darwin': 'dylib', }.get(sys.platform, 'so') +# Loading the shared library here is quite involved as we want to support +# Python packages that embed all the required shared libraries: if we can +# find the shared library in the package directory, import it from there +# directly. + +# D...
fix AI-PEP path error Summary: Pull Request resolved: as title
@@ -3,14 +3,11 @@ from __future__ import division from __future__ import print_function from __future__ import unicode_literals -import importlib -import os from benchmarks.operator_benchmark import benchmark_runner +from benchmarks.operator_benchmark.ops import ( # noqa + add_test, # noqa + matmul_test) # noqa + if __...
Add __repr__, __eq__, and example() to point mass This commit adds the following methods to PointMass class: * __repr__ - representative method; * __eq__ - comparasion method; * point_mass_example() - to run some doctests.
@@ -26,6 +26,8 @@ class PointMass(Element): Mass for the element on the x direction. my: float, optional Mass for the element on the y direction. + tag: str + A tag to name the element Examples -------- @@ -54,6 +56,51 @@ class PointMass(Element): def __hash__(self): return hash(self.tag) + def __eq__(self, other): + "...
fix: check parts length before get match fix bugs which cause cannot modify field `type` etc.
@@ -264,7 +264,7 @@ def update(_doc_cls=None, **update): op = operator_map.get(op, op) match = None - if parts[-1] in COMPARISON_OPERATORS: + if len(parts) > 1 and parts[-1] in COMPARISON_OPERATORS: match = parts.pop() # Allow to escape operator-like field name by __
Update README.md Update badges with new data location at
@@ -18,9 +18,9 @@ Click here to [![badge](https://img.shields.io/badge/launch-Pangeo%20binder-579A ![Profile count](https://img.shields.io/endpoint?label=Number%20of%20Argo%20profiles%3A&style=social&url=https%3A%2F%2Fmap.argo-france.fr%2Fdata%2FARGOFULL.json) -![Erddap status](https://img.shields.io/endpoint?url=https...
Update Browser-2.1.0.rst Fix mistyped word.
@@ -42,7 +42,7 @@ Most important enhancements Use Playwright video to allow recording video of the test execution. (`#148`_) ------------------------------------------------------------------------------ Playwright has supported creating video for few releases. Now the library has been -enhanced to support videa creati...
Breaking changes in plotting to make interface cleaner Instead of specifying x axis in plot1d, now specify (optionally) the overlay axis. Makes the interface more like plotgrid.
@@ -534,6 +534,9 @@ class Hist(object): def sparse_axes(self): return [ax for ax in self._axes if isinstance(ax, SparseAxis)] + def sparse_nbins(self): + return len(self._sumw) + def _idense(self, axis): return self.dense_axes().index(axis)
Updated installation process added step to include conda-forge channel
@@ -10,6 +10,11 @@ After Anaconda has been installed, open up the terminal (Unix) or Anaconda promp conda create --name nilmtk-env ``` +2. Add conda-forge to list of channels to be searched for packages. + ```bash + conda config --add channels conda-forge + ``` + 2. Activate the new *nilmtk-env* environment. ```bash
Remove python36 windows environment from core in GA Github actions doesn't support python36 environment for windows anymore.
@@ -26,7 +26,7 @@ jobs: fail-fast: false matrix: name: [ - "windows-py36", + # "windows-py36", no support anymore for the package "windows-py37", "windows-py38", "windows-py39", @@ -43,9 +43,6 @@ jobs: ] include: - - name: "windows-py36" - python: "3.6" - os: windows-latest - name: "windows-py37" python: "3.7" os: wind...
Add a note about non-included custom mappings [#OSF-8559]
<ul> <li>custom name: the new name for the subject</li> <li>custom parent: the parent of the subject. Leave blank if it is a toplevel subject. - *Note*: if adding a new child of an existing bepress parent, you must also add a 'custom' parent with the same name that maps to the existing - bepress subject. See JSON below...
Fix sac_agent debug summary bug w/ entropy. SAC is usually used with a TransformedDistribution for the actor distribution, which does not have an analytic entropy.
@@ -438,9 +438,12 @@ class SacAgent(tf_agent.TFAgent): elif isinstance(action_distribution, tfp.distributions.Categorical): common.generate_tensor_summaries( 'act_mode', action_distribution.mode(), self.train_step_counter) - common.generate_tensor_summaries('entropy_raw_action', + try: + common.generate_tensor_summarie...
Change K calculation Change K calculation as proposed by HaukeWittich in
@@ -750,7 +750,7 @@ class ShaftElement(Element): [L*k8, 0, 0, L**2*k9, -L*k8, 0, 0, L**2*k9], ]) - K = E * Ie_l / (105 * L ** 3 * (1 + phi) ** 2) * (K1 + 105 * phi * K2 * A / A_l) + K = E * L**(-3) * (1 + phi)**(-2) * (K1 * Ie_l/105 + K2 * self.Ie * phi * A_l / A) # axial force k10 = 36 + 60 * phi + 30 * phi ** 2
Fix the git URL regex which may incorrectly match a Windows path as git URL E.g. c:/temp/pytest-of-Screamer/pytest-8/test_import_after_add_git1_0/test3.git
@@ -105,7 +105,7 @@ regex_local_ref = r'^([\w.+-][\w./+-]*?)/?(?:#(.*))?$' regex_url_ref = r'^(.*/([\w.+-]+)(?:\.\w+)?)/?(?:#(.*))?$' # git url (no #rev) -regex_git_url = r'^(git\://|ssh\://|https?\://|)(([^/:@]+)(\:([^/:@]+))?@)?([^/:]+)[:/](.+?)(\.git|\/?)$' +regex_git_url = r'^(git\://|ssh\://|https?\://|)(([^/:@]+)...
uart_common: fix a typo Transmitted -> Transmitter
Enabled: [1, "IDLE interrupt enabled"] TE: Disabled: [0, "Transmitter disabled"] - Enabled: [1, "Transmitted enabled"] + Enabled: [1, "Transmitter enabled"] RE: Disabled: [0, "Receiver disabled"] Enabled: [1, "Receiver enabled"]
Add comment about adding ':' characters into AAAA records read from TinyDNS files
@@ -47,6 +47,12 @@ class TinyDnsBaseSource(BaseSource): } def _data_for_AAAA(self, _type, records): + ''' + TinyDNS files have the ipv6 address written in full, but with the + colons removed. This inserts a colon every 4th character to make + the address correct. + ''' + values = [] for record in records: values.append...
Update README.md EOSC-Synergy SQAaaS Software Silver Badge
[![PyPI version](https://badge.fury.io/py/udocker.svg)](https://badge.fury.io/py/udocker) [![Build Status](https://jenkins.eosc-synergy.eu/buildStatus/icon?job=indigo-dc%2Fudocker%2Fmaster)](https://jenkins.eosc-synergy.eu/job/indigo-dc/job/udocker/job/master/) +## Achievements +[![SQAaaS badge](https://github.com/EOSC...
Update main-flow.md Tweak : fix incorrect variable name
@@ -122,7 +122,7 @@ Anytime in the future, you can reconstruct your data NFT as an object in Python, from ocean_lib.models.data_nft import DataNFT config = <like shown elsewhere in READMEs> data_nft_address = <what you wrote down previously> -data_nft = DataNFT(config, datatoken_address) +data_nft = DataNFT(config, dat...
chore: expand range to allow 2.x versions api-core, cloud-core, and resumable-media wil all be releasing Python3-only 2.x versions shortly. Closes
@@ -30,10 +30,10 @@ description = "Google BigQuery API client library" release_status = "Development Status :: 5 - Production/Stable" dependencies = [ "grpcio >= 1.38.1, < 2.0dev", # https://github.com/googleapis/python-bigquery/issues/695 - "google-api-core[grpc] >= 1.29.0, < 2.0.0dev", + "google-api-core[grpc] >= 1.2...
Update `pacman.py` Use widget to store parameters instead of using private variables.
@@ -12,53 +12,49 @@ import bumblebee.input import bumblebee.output import bumblebee.engine +#list of repositories the last one sould always be other +repos = ["community", "core", "extra", "other"] + class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, ...
SR-IOV: remove ml2_conf_sriov.ini from manual Before the doc-migration I proposed this patch: The following patch removed the ml2_conf_sriov.ini file: In order to reduce confusion, lets remove the reference to it.
@@ -271,15 +271,14 @@ Configure neutron-server (Controller) mechanism_drivers = openvswitch,sriovnicswitch -#. Add the ``ml2_conf_sriov.ini`` file as parameter to the ``neutron-server`` +#. Add the ``plugin.ini`` file as a parameter to the ``neutron-server`` service. Edit the appropriate initialization script to config...
refactor(chunks): change tostring to tobytes tostring is deprecated
@@ -151,7 +151,7 @@ def encode_compressed_segmentation_pure_python(subvol, block_size): return csegpy.encode_chunk(subvol.T, block_size=block_size) def encode_raw(subvol): - return subvol.tostring('F') + return subvol.tobytes('F') def encode_kempressed(subvol): data = 2.0 + np.swapaxes(subvol, 2,3)
[OTX-CI] extend timeout setting for the pre-merge test to 600 minutes from 360 minutes
@@ -21,7 +21,7 @@ jobs: runs-on: [self-hosted, linux, x64] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Install dependencies run: python -m pip install tox - name: Code Quality Checks @@ -29,10 +29,11 @@ jobs: Pre-Merge-Tests: runs-on: [self-hosted, linux, x64] need...
Fix - Harmony - unable to change workfile It was failing on Mac with OSError 9 Bad file descriptor and 48 Address already in use.
@@ -40,6 +40,7 @@ class Server(threading.Thread): # Create a TCP/IP socket self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # Bind the socket to the port server_address = ("127.0.0.1", port) @@ -91,7 +92,13 @@ class Server(threading.Thre...
print debug logs Blitz help menu print debug logs fully and link option. Raspiblitz help menu
# SHORTCUT COMMANDS you can call as user 'admin' from terminal -# command: raspiblitz -# calls the the raspiblitz mainmenu (legacy) -function raspiblitz() { +# command: blitz +# calls the the raspiblitz mainmenu (shortcut) +function blitz() { +if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ] || [ "$1" = "--help...
Add Breaking Bad Quotes under Video section remove API from description
@@ -759,6 +759,7 @@ API | Description | Auth | HTTPS | CORS | Link | API | Description | Auth | HTTPS | CORS | Link | |---|---|---|---|---|---| | An API of Ice And Fire | Game Of Thrones API | No | Yes | Unknown | [Go!](https://anapioficeandfire.com/) | +| Breaking Bad Quotes | Some Breaking Bad quotes | No | Yes | Unk...
EnvBindExpr: switch to ComputingExpr TN:
@@ -10,8 +10,8 @@ from langkit.compiled_types import ( ) from langkit.diagnostics import check_source_language from langkit.expressions.base import ( - AbstractVariable, AbstractExpression, BasicExpr, CallExpr, FieldAccessExpr, - GetSymbol, LiteralExpr, NullExpr, PropertyDef, ResolvedExpression, Self, + AbstractVariabl...
TST: revert breaking change to test Clearly I missed something here.
@@ -104,7 +104,11 @@ class CannedModelsTest(TestCase): """name attribute matches model name""" for model_name in models: model = get_model(model_name) + if model.name != model_name: self.assertTrue(model.name.startswith(model_name)) + else: + self.assertEqual(model.name, model_name) + def get_sample_model_types(mod_typ...
Allow passing of encoding-type for s3 get_bucket_versions without throwing error. This was a change made in
@@ -764,7 +764,7 @@ class S3Backend(BaseBackend): prefix=''): bucket = self.get_bucket(bucket_name) - if any((delimiter, encoding_type, key_marker, version_id_marker)): + if any((delimiter, key_marker, version_id_marker)): raise NotImplementedError( "Called get_bucket_versions with some of delimiter, encoding_type, key...
try optimize=True with einsum closes can revert if this ends up problematic for some reason!
@@ -2558,7 +2558,7 @@ def tensordot(a, b, axes=2, precision=None): @_wraps(onp.einsum, lax_description=_PRECISION_DOC) def einsum(*operands, **kwargs): - optimize = kwargs.pop('optimize', 'auto') + optimize = kwargs.pop('optimize', True) optimize = 'greedy' if optimize is True else optimize precision = kwargs.pop('prec...
Update README.md Add Age/Gender
@@ -20,6 +20,12 @@ This example shows how to do Subpixel, LR-Check or Extended Disparity, and also ![image](https://user-images.githubusercontent.com/32992551/99454609-e59eaa00-28e3-11eb-8858-e82fd8e6eaac.png) ![image](https://user-images.githubusercontent.com/32992551/99454680-fea75b00-28e3-11eb-80bc-2004016d75e2.png)...
registrar: cleanup start function Removed busy waiting for the threads and removed abstractions for starting and stopping threads/servers.
@@ -8,7 +8,6 @@ import ipaddress import threading import sys import signal -import time import http.server from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn @@ -485,52 +484,40 @@ class RegistrarServer(ThreadingMixIn, HTTPServer): http.server.HTTPServer.shutdown(self) -de...
Update main.yml Use a admin user's token instead of github generated token as the latter one doesn't have permission to merge to protected branch
@@ -49,14 +49,14 @@ jobs: id: metadata uses: dependabot/fetch-metadata@v1.1.1 with: - github-token: "${{ secrets.GITHUB_TOKEN }}" + github-token: "${{ secrets.BEANRUNNER_BOT_TOKEN }}" - name: Approve a PR run: gh pr review --approve "$PR_URL" env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secre...
Oops, attributed a contribution to the wrong person! Eryk Sun provided the stanza used to check for attribution.
@@ -259,7 +259,7 @@ if args.output: # --- define helpers ---- if sys.platform == 'win32': - # thanks to Brett Cannon for this recipe + # thanks to Eryk Sun for this recipe import ctypes shlwapi = ctypes.OleDLL('shlwapi')
Send signals a little more gracefully If there are failures, still send the signal so handlers can add additional errors
@@ -349,7 +349,7 @@ class LocationFormSet(object): ) if self.include_user_forms: clean_commcare_user.send( - 'MobileWorkerListView.create_mobile_worker', + 'LocationFormSet', domain=self.domain, request_user=self.request_user, user=self.user, @@ -377,11 +377,12 @@ class LocationFormSet(object): @property @memoized def ...
use `cmake` from `anaconda` for multi-architecture support images building successfully for `amd64/arm64/ppc64le`
# Use conda to resolve dependencies cross-platform FROM continuumio/miniconda3:4.11.0 as builder -ARG TARGETPLATFORM # install libpng to system for cross-architecture support # https://github.com/ANTsX/ANTs/issues/1069#issuecomment-681131938 -# Also install kitware key and get recent cmake RUN apt-get update && \ apt-g...
Adds a "full" default gauge group to GateSets loaded from text files. This avoids the issue of having to set the gauge group manually, and seems completely justified since stdinput.py's read_gateset only constructs FullyParameterizedGate objects (parameterizations are not conveyed in the text format of a GateSet).
@@ -885,4 +885,8 @@ def read_gateset(filename): if len(remainder_spam_label) > 0: gs.spamdefs[remainder_spam_label] = ('remainder', 'remainder') + #Add default gauge group -- the full group because + # we add FullyParameterizedGates above. + gs.default_gauge_group = _objs.FullGaugeGroup(gs.dim) + return gs
Update auto_threshold_methods.py update debug method
@@ -8,6 +8,7 @@ from plantcv.plantcv.transform import resize_factor from plantcv.plantcv import plot_image from plantcv.plantcv import print_image from plantcv.plantcv import fatal_error +from plantcv.plantcv._debug import _debug from plantcv.plantcv.threshold import mean from plantcv.plantcv.threshold import otsu from...
Adding reminder to remove pre-generated SECRET_KEY Later on, we'll need environment-based default configs anyway, so this will probably be done together.
@@ -20,6 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! +# TODO: remove this SECRET_KEY = 'oc2z%5)lu#jsxi#wpg)700z@v48)2aa_yn(a(3qg!z!fw&tr9f' # SE...
Pass env rebindings to lexical env get in properties TN:
@@ -11,8 +11,8 @@ from langkit.compiled_types import ( from langkit.diagnostics import check_source_language from langkit.expressions.base import ( AbstractVariable, AbstractExpression, ArrayExpr, BasicExpr, - BuiltinCallExpr, GetSymbol, PropertyDef, ResolvedExpression, Self, - auto_attr, auto_attr_custom, construct + ...
Improvements for RPC to the gateway. Added functions: gateway_devices - returns object with keys - device names and values - connector names gateway_stats - returns information about count of the processed messages of 5 last seconds
@@ -76,6 +76,8 @@ class TBGatewayService: } self.__gateway_rpc_methods = { "ping": self.__rpc_ping, + "stats": self.__form_statistics, + "devices": self.__rpc_devices, } self.__sheduled_rpc_calls = [] self.__self_rpc_sheduled_methods_functions = { @@ -108,17 +110,16 @@ class TBGatewayService: cur_time = time.time()*100...
comment out I comment out some code lines in the test-section
@@ -184,26 +184,26 @@ class XORCipher(object): # Tests -crypt = XORCipher() -key = 67 +# crypt = XORCipher() +# key = 67 -# test enrcypt -print crypt.encrypt("hallo welt",key) -# test decrypt -print crypt.decrypt(crypt.encrypt("hallo welt",key), key) +# # test enrcypt +# print crypt.encrypt("hallo welt",key) +# # test ...
Optimize check_migrated in cinder_helper.py There are more than one 'migrating' status in the volume migration. Others include starting, completing and so on. So we should check the final status 'success' and 'error'.
@@ -165,7 +165,8 @@ class CinderHelper(object): def check_migrated(self, volume, retry_interval=10): volume = self.get_volume(volume) - while getattr(volume, 'migration_status') == 'migrating': + final_status = ('success', 'error') + while getattr(volume, 'migration_status') not in final_status: volume = self.get_volum...
Fix print statement in READ.md print statement was throwing generator object instead of printing names of available datasets/metrics
@@ -81,14 +81,14 @@ Here is a quick example: import nlp # Print all the available datasets -print(dataset.id for dataset in nlp.list_datasets()) +print([dataset.id for dataset in nlp.list_datasets()]) # Load a dataset and print the first examples in the training set squad_dataset = nlp.load_dataset('squad') print(squad...
update validator to rely on sheet title for identifying if its a single sheet or multi sheet
@@ -45,30 +45,31 @@ class UploadedTranslationsValidator(object): self.current_rows = dict() # module_or_form_id: translations self.lang_prefix = lang_prefix self.default_language_column = self.lang_prefix + self.app.default_language - self.lang_to_compare = lang_to_compare + self.lang_to_compare = lang_to_compare or se...
Avoid parent process connection cleanup in the test suite. Fix
@@ -41,8 +41,29 @@ class ProcessSetup(multiprocessing.Process): else: django.setup() + def cleanup_connections(self): + + # Channels run `django.db.close_old_connections` as a signal + # receiver after each consumer finished event. This function + # iterate on each created connection wrapper, checks if + # connection i...
Made gnomad gnome download restartable Made gnomad gnome download restartable
@@ -33,6 +33,7 @@ recipe: gnomad_fields_to_keep_url=https://gist.githubusercontent.com/naumenko-sa/d20db928b915a87bba4012ba1b89d924/raw/cf343b105cb3347e966cc95d049e364528c86880/gnomad_fields_to_keep.txt wget --no-check-certificate -c $gnomad_fields_to_keep_url + wget -c ${url_prefix}CHECKSUMS # no chrY in gnomad genome...
docs(database): change gino homepage url Change homepage url gino from `https://python-gino.readthedocs.io/en/latest/` to `https://python-gino.org/`
Starlette is not strictly tied to any particular database implementation. -You can use it with an asynchronous ORM, such as [GINO](https://python-gino.readthedocs.io/en/latest/), +You can use it with an asynchronous ORM, such as [GINO](https://python-gino.org/), or use regular non-async endpoints, and integrate with [S...
Fix `check_json` The payload is sometimes a list
@@ -193,7 +193,7 @@ def generateOfflineThreadingID(): def check_json(j): - if j.get("payload") and j["payload"].get("error"): + if hasattr(j.get("payload"), "get") and j["payload"].get("error"): raise FBchatFacebookError( "Error when sending request: {}".format(j["payload"]["error"]), fb_error_code=None,
Update data_utils.py Switch the order of if-elif blocks in `get_tokenizer`
@@ -29,13 +29,13 @@ def natural_sort(l): def get_tokenizer(tokenizer_type=None, from_pretrained=True, add_padding_token=False): - if (tokenizer_type.lower() == "hf_gpt2tokenizerfast" and from_pretrained) or tokenizer_type is None: - tok = GPT2TokenizerFast.from_pretrained('gpt2') + if tokenizer_type.lower() == "hf_gp2t...
RAMECC: Keep separate defintions for RAMECC3 RAMECC3 only has two monitoring units
@@ -194,5 +194,93 @@ _add: derivedFrom: RAMECC1 baseAddress: 0x48023000 RAMECC3: - derivedFrom: RAMECC1 + description: RAM ECC monitoring + groupName: RAMECC baseAddress: 0x58027000 + registers: + IER: + description: RAMECC interrupt enable register + addressOffset: 0x0 + access: read-write + resetValue: 0x00000000 + f...
Update mkvtomp4.py abort if no audio tracks
@@ -747,6 +747,10 @@ class MkvtoMp4: self.log.debug("Output directory: %s." % output_dir) self.log.debug("Output file: %s." % outputfile) + if len(options['audio']) == 0: + self.error.info("Conversion has no audio tracks, aborting") + return inputfile, "" + if self.output_extension == input_extension and len([x for x i...
Catch 404 in wait_for_deletion when reacting The message may be deleted before the bot gets a chance to react. Fixes
@@ -34,7 +34,11 @@ async def wait_for_deletion( if attach_emojis: for emoji in deletion_emojis: + try: await message.add_reaction(emoji) + except discord.NotFound: + log.trace(f"Aborting wait_for_deletion: message {message.id} deleted prematurely.") + return def check(reaction: discord.Reaction, user: discord.Member) -...
cwltool: pass tmpdir as tmpdir down to workwlows instead of outdir as before. This solves the issue of out_tmpdir* and tmp* directories appearing in the designated output directory after the run.
@@ -953,6 +953,7 @@ def main(args=None, stdout=sys.stdout): if args is None: args = sys.argv[1:] + #we use workdir as jobStore: options = parser.parse_args([workdir] + args) use_container = not options.no_container @@ -961,6 +962,9 @@ def main(args=None, stdout=sys.stdout): cwllogger.setLevel(options.logLevel) outdir =...