message
stringlengths
13
484
diff
stringlengths
38
4.63k
Minor improvements in torch approximator using call instead of forward for the network removed useless requires_grad_(False) closes
@@ -98,7 +98,7 @@ class TorchApproximator(Serializable): if not self._use_cuda: torch_args = [torch.from_numpy(x) if isinstance(x, np.ndarray) else x for x in args] - val = self.network.forward(*torch_args, **kwargs) + val = self.network(*torch_args, **kwargs) if output_tensor: return val @@ -109,8 +109,7 @@ class Torc...
Add SCRIPTS_ROOT to configuration.example.py Fixes by adding the new variable to the example configuration.
@@ -154,6 +154,10 @@ PREFER_IPV4 = False # this setting is derived from the installed location. # REPORTS_ROOT = '/opt/netbox/netbox/reports' +# The file path where custom scripts will be stored. A trailing slash is not needed. Note that the default value of +# this setting is derived from the installed location. +# SC...
DOC: updated Constellation documentation Updated the Constellation documentation to reflect the updated string output.
@@ -44,4 +44,6 @@ to create a Constellation of real-time solar wind data. This last command will show that four :py:class:`~pysat._instrument.Instrument` objects match the desired :py:attr:`platform` and :py:attr:`tag` criteria. The :py:attr:`~pysat._instrument.Instrument.name` values are: :py:data:`epam`, -:py:data:`m...
TypeRepo.env_assoc: use T.defer_root_node instead of T.root_node TN:
@@ -2880,12 +2880,10 @@ class TypeRepo(object): EnvAssoc type, used to add associations of key and value to the lexical environments, via the add_to_env primitive. """ - assert T.root_node - class EnvAssoc(StructType): _fields = [ ('key', UserField(type=Symbol)), - ('val', UserField(type=T.root_node)), + ('val', UserFi...
Pulling out 3.2.2 version of Robot Framework from Github Actions Latest builds are failing in somewhat unusual places. I want to see what is the consitancy of runs for version 4.x, 5.x, and 6.x.
@@ -9,7 +9,7 @@ jobs: strategy: matrix: python-version: [3.7, 3.9, pypy-3.7] - rf-version: [3.2.2, 4.1.3, 5.0.1] + rf-version: [4.1.3, 5.0.1, 6.0.1] steps: - uses: actions/checkout@v3
Refactor "delete part category" dialog Translations Simplification
{% load i18n %} {% block pre_form_content %} -{% trans 'Are you sure you want to delete category' %} <strong>{{ category.name }}</strong>? + +<div class='alert alert-block alert-danger'> + {% trans "Are you sure you want to delete this part category?" %} +</div> {% if category.children.all|length > 0 %} -<p>{% blocktra...
fix pipeline definition doc to reference solid Summary: pipeline def was referencing `apply_op_three` instead of `apply_op` Test Plan: none Reviewers: max, sashank
@@ -114,8 +114,8 @@ def adder_resource(init_context): pipeline_def = PipelineDefinition( name='basic', - solid_defs=[return_one, apply_op_three], - dependencies={'apply_op_three': {'num': DependencyDefinition('return_one')}}, + solid_defs=[return_one, apply_op], + dependencies={'apply_op': {'num': DependencyDefinition(...
X-API-Key and Authorization: Bearer headers. * MS teams sends Authorization: Bearer header. To use X-API-Key header with teams (webhook) we need to look for X-API-Key if Authorization header doesn't have Key. (this was briefly discussed in alerta/alerta-contrib#280) * use startswith('Key ') instead of find('Key ').
@@ -24,7 +24,7 @@ def permission(scope=None): def wrapped(*args, **kwargs): # API Key (Authorization: Key <key>) - if 'Authorization' in request.headers: + if 'Authorization' in request.headers and request.headers['Authorization'].startswith('Key '): auth_header = request.headers['Authorization'] m = re.match(r'Key (\S...
Ctypes: Fix missing adaptations for C target type conversion in list operations.
@@ -23,7 +23,8 @@ Right now only the creation is done here. But more should be added later on. from .CodeHelpers import ( decideConversionCheckNeeded, generateChildExpressionsCode, - generateExpressionCode + generateExpressionCode, + withObjectCodeTemporaryAssignment ) from .ErrorCodes import getErrorExitBoolCode, getE...
Change the default source for the workflow fixture When passing source=None, the workflow object will create a DummySource in a newly created system tmpdir. Use the source_dir fixture instead, to make sure unit tests reuse the pytest tmpdir rather than creating new ones in /tmp.
@@ -14,6 +14,7 @@ import requests import requests.exceptions from atomic_reactor.constants import DOCKERFILE_FILENAME from atomic_reactor.dirs import RootBuildDir +from atomic_reactor.source import DummySource from tests.constants import LOCALHOST_REGISTRY_HTTP, DOCKER0_REGISTRY_HTTP, TEST_IMAGE from tests.util import ...
Fix GPT2 impl partially TODO: still need to add `until` everywhere
@@ -17,19 +17,22 @@ class GPT2LM(LM): return cls(device=args.get("device", "cpu")) def generate(self, context, max_gen_length, truncate=True): - context_tensor = torch.tensor([self.tokenizer.encode(context.strip())], dtype=torch.long).to(self.device) + # when too long to fit in context, truncate from the left + context...
added pull request link to changelog added entry to contributors list
### Features - Added warning to nodes selector if nothing was matched ([#2115](https://github.com/fishtown-analytics/dbt/issues/2115), [#2343](https://github.com/fishtown-analytics/dbt/pull/2343)) - Suport column descriptions for BigQuery models ([#2335](https://github.com/fishtown-analytics/dbt/issues/2335), [#2402](h...
Create a mapping: kind constant -> ASTNodeType subclass TN:
@@ -406,6 +406,13 @@ class CompileCtx(object): :type: dict[langkit.compiled_types.ASTNodeType, int] """ + self.kind_constant_to_node = {} + """ + Reverse mapping for `node_kind_constants`. + + :type: dict[int, langkit.compiled_types.ASTNodeType] + """ + self._struct_types = [] """ List of all plain struct types. @@ -17...
Quality: Avoid temporary file from isorted * This causes flicker to git and can be left over if interrupted and it's not in the ignore list for git.
@@ -335,6 +335,7 @@ def _cleanupImportSortOrder(filename): isort_call + [ "-q", # quiet, but stdout is still garbage + "--overwrite-in-place", # avoid using another temp file, this is already on one. "-ot", # Order imports by type in addition to alphabetically "-m3", # "vert-hanging" "-tc", # Trailing commas
Update decisiontree.cu remove printf from stateless
@@ -187,7 +187,6 @@ void decisionTreeClassifierPredict(const ML::cumlHandle &handle, bool verbose) { std::shared_ptr<DecisionTreeClassifier<float>> dt_classifier = std::make_shared<DecisionTreeClassifier<float>>(); - dt_classifier->print(tree->root); dt_classifier->predict(handle, tree, rows, n_rows, n_cols, prediction...
Update requirements.txt after testing. pandas.read_excel requires xlrd>=0.9.0
-pytest==3.4.2 -pandas==0.23.1 -numpy==1.14.1 -setuptools==38.5.2 +pytest>=3.4.2 +pandas>=0.23.1 +numpy>=1.14.1 +setuptools>=38.5.2 sphinxcontrib-fulltoc==1.2.0 scikit-learn==0.19.1 +xlrd>=0.9.0 \ No newline at end of file
Fix shaft elements plot and add slenderness ratio parameter This piece of code was missing in the first commit. It's a list with elements lenght, built just like "nodes_o_d" and "nodes_i_d", and has the same objective, provide data for the rotor plot.
@@ -259,6 +259,10 @@ class Rotor(object): nodes_o_d.append(df_shaft["o_d"].iloc[-1]) self.nodes_o_d = nodes_o_d + nodes_le = list(df_shaft.groupby("n_l")["L"].min()) + nodes_le.append(df_shaft["L"].iloc[-1]) + self.nodes_le = nodes_le + self.nodes = list(range(len(self.nodes_pos))) self.elements_length = [sh_el.L for s...
UserField: document the "is_public" constructor argument TN:
@@ -1041,6 +1041,9 @@ class UserField(AbstractField): :type type: CompiledType :type doc: str + + :param bool is_public: Whether this field is public in the generated + APIs. """ super(UserField, self).__init__(repr, doc, type) self._is_public = is_public
Update ctc.py setting the --ctc_conf ignore_nan_grad= true like and suggested at
@@ -23,7 +23,7 @@ class CTC(torch.nn.Module): dropout_rate: float = 0.0, ctc_type: str = "builtin", reduce: bool = True, - ignore_nan_grad: bool = False, + ignore_nan_grad: bool = True, ): assert check_argument_types() super().__init__()
help text for container_format, disk_format Updated the container_format and disk_format in v1 help text. Closes-Bug:
@@ -28,8 +28,9 @@ from glanceclient.common import utils from glanceclient import exc import glanceclient.v1.images -CONTAINER_FORMATS = 'Acceptable formats: ami, ari, aki, bare, and ovf.' -DISK_FORMATS = ('Acceptable formats: ami, ari, aki, vhd, vmdk, raw, ' +CONTAINER_FORMATS = ('Acceptable formats: ami, ari, aki, bar...
Update contrib.py update concat docs
@@ -243,7 +243,7 @@ def concat(arr, dim=0): Example:: jt.concat([jt.array([[1],[2]]), jt.array([[2],[2]])], dim=1) - # return [[1],[2],[2],[2]] + # return jt.Var([[1,2],[2,2]],dtype=int32) ''' if not isinstance(arr, Sequence): raise TypeError("concat arr needs to be a tuple or list")
validate: support obs repository Otherwise, installation on SuSe fails. Fixes:
- name: validate ceph_repository fail: - msg: "ceph_repository must be either 'community', 'rhcs', 'dev', 'custom' or 'uca'" + msg: "ceph_repository must be either 'community', 'rhcs', 'obs', 'dev', 'custom' or 'uca'" when: - ceph_origin == 'repository' - - ceph_repository not in ['community', 'rhcs', 'dev', 'custom', ...
Update southern-california-earthquakes.yaml Adding more tutorials
Name: Southern California Earthquake Data Description: This dataset contains ground motion velocity and acceleration seismic waveforms recorded by the Southern California Seismic Network (SCSN) - and archived at the Southern California Earthquake Data Center (SCEDC). + and archived at the Southern California Earthquake...
Update agilent34410A.py fixed spelling typo
@@ -45,5 +45,5 @@ class Agilent34410A(Instrument): def __init__(self, adapter, delay=0.02, **kwargs): super(Agilent34410A, self).__init__( - adapter, "HP/Agilent/Keysight 34410A Multimiter", **kwargs + adapter, "HP/Agilent/Keysight 34410A Multimeter", **kwargs )
Overload Concat.__repr__ TN:
@@ -643,3 +643,6 @@ class Concat(AbstractExpression): return CallExpr('Concat_Result', 'Concat', array_1.type, [array_1, array_2], abstract_expr=self) + + def __repr__(self): + return '<Concat>'
[bugfix] use page.site.data_repository when creating a _WbDataPage use page.site.data_repository() instead of default Site().data_repository() when creating a _WbDataPage.
@@ -943,7 +943,7 @@ class _WbDataPage(_WbRepresentation): :param page: page containing the data :param site: The Wikibase site """ - site = site or Site().data_repository() + site = site or page.site.data_repository() specifics = type(self)._get_type_specifics(site) _WbDataPage._validate(page, specifics['data_site'], s...
[commands] Handle nick mentions in HelpFormatter Modifies the help formatter to handle nicknamed bot users for mentions in clean_prefix
@@ -181,12 +181,12 @@ class HelpFormatter: @property def clean_prefix(self): """The cleaned up invoke prefix. i.e. mentions are ``@name`` instead of ``<@id>``.""" - user = self.context.bot.user + user = self.context.guild.me if self.context.guild else self.context.bot.user # this breaks if the prefix mention is not the...
Fix, need to reset return release mode when generating outline codes. * This could lead to crashes when this kind of function was executed in a return handler of a tried block.
@@ -779,10 +779,10 @@ def generateFunctionOutlineCode(to_name, expression, emit, context): context = PythonFunctionOutlineContext(parent=context, outline=expression) # Need to set return target, to assign to_name from. - old_return_release_mode = context.getReturnReleaseMode() return_target = context.allocateLabel("out...
Allow iterable params to column Add type checking in QueryBuilder column methods After apply this patch, list and tuple is allow to column (fixed
@@ -719,6 +719,9 @@ class QueryBuilder(Selectable, Term): if self._insert_table is None: raise AttributeError("'Query' object has no attribute '%s'" % "insert") + if isinstance(terms[0], (list, tuple)): + terms = terms[0] + for term in terms: if isinstance(term, str): term = Field(term, table=self._insert_table)
tools: Include `test_server_url.py` to be checked by mypy. This commit adds `test_server_url.py` to the `type_consistent_testfiles` list to check for type consistency with mypy.
@@ -78,7 +78,8 @@ repo_python_files['tests'] = [] # Added incrementally as newer test files are type-annotated. type_consistent_testfiles = [ - "test_run.py", "test_core.py", "test_emoji_data.py", "test_helper.py" + "test_run.py", "test_core.py", "test_emoji_data.py", "test_helper.py", + "test_server_url.py" ] for file...
Add group permission check to Get BI dashboard HG-- branch : feature/microservices
@@ -172,6 +172,7 @@ class BIAPI(API): :return: """ user = self.handler.current_user + groups = user.groups.values_list("id", flat=True) d = Dashboard.objects.filter(id=id).first() if not d: return None @@ -181,8 +182,10 @@ class BIAPI(API): for i in d.access: if i.user == user and i.level >= access_level: return d + el...
Fix, properly construct the path of extension modules. * This was at least a problem on MacOS, it should be a fix for Linux too.
@@ -632,7 +632,8 @@ static PyObject *loadModule(PyObject *module_name, struct Nuitka_MetaPathBasedLo char filename[MAXPATHLEN + 1]; strcpy(filename, getBinaryDirectoryHostEncoded()); - filename[strlen(filename)] = SEP; + char const sep_str[2] = {SEP, 0}; + strcat(filename, sep_str); copyModulenameAsPath(filename + strl...
Tests: Fixups for the distutils test runner * Need to be able to both execute "runner" and "runner.exe" which occurs for CPython too. * Was not really doing the output of Nuitka when it said so. * More fixups
@@ -87,10 +87,21 @@ for filename in sorted(os.listdir(".")): 'pip install "%s"' % (os.path.join(dist_dir, os.listdir(dist_dir)[0])) ) + runner_binary = os.path.join( + venv.getVirtualenvDir(), + "bin" if os.name != "nt" else "scripts", + "runner", + ) + + if os.path.exists(runner_binary): # Need to call CPython binary ...
Fix date filters. Handle lists of operations. Filter[date][eq]=day becomes [filter[date][gt]=day-1, filter[date][lt]=day+1].
@@ -541,10 +541,12 @@ class ListFilterMixin(FilterMixin): if filters: for key, field_names in filters.iteritems(): for field_name, data in field_names.iteritems(): + operations = data if isinstance(data, list) else [data] + for operation in operations: if isinstance(queryset, list): - queryset = self.get_filtered_query...
Squashed commit of the following: commit Author: William Jones Date: Mon Jul 8 14:34:18 2019 +0100 fix order of function parameters commit Author: William Jones Date: Mon Jul 8 14:31:37 2019 +0100 add boolean for atomic writes
@@ -115,7 +115,7 @@ def create_dir(path): def save_df_as_csv(df, path, filename, - comment="", prepend_info=True,**kwargs, atomic=True): + comment="", prepend_info=True, atomic=True, **kwargs): """ Save dataframe to a CSV file. Parameters
Update README.md Clean up quick start
@@ -22,18 +22,20 @@ See more on the [hypergan youtube](https://www.youtube.com/channel/UCU33XvBbMnS8 * [Quick start](#quick-start) * [Requirements](#requirements) * [Install](#install) - * [Troubleshooting](#troubleshooting) * [Train](#train) - * [Development Mode](#development-mode) * [The pip package hypergan](#the-p...
install ceph-mds packages on SUSE/openSUSE install packages on SUSE/openSUSE distributions, using the same logic as on RedHat-based distributions Fixes
register: result until: result is succeeded -- name: install redhat ceph-mds package +- name: install ceph-mds package on redhat or suse package: name: "ceph-mds" state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" until: result is succeeded when: - mds_group_name in group_names - - ansible_os_fam...
Infraction Tests: Small fixes Remove unnecessary space from placeholder Rename `has_active_infraction` to `get_active_infraction`
@@ -17,11 +17,11 @@ class TruncationTests(unittest.IsolatedAsyncioTestCase): self.guild = MockGuild(id=4567) self.ctx = MockContext(bot=self.bot, author=self.user, guild=self.guild) - @patch("bot.cogs.moderation.utils.has_active_infraction") + @patch("bot.cogs.moderation.utils.get_active_infraction") @patch("bot.cogs.m...
Make test_leaky_relu_inplace_with_neg_slope device-generic and skipIfRocm. Summary: Pull Request resolved: Fixes Test Plan: Imported from OSS
@@ -4108,18 +4108,6 @@ for shape in [(1,), ()]: with self.assertRaisesRegex(RuntimeError, "must implement the backward"): BadBw.apply(inp).sum().backward() - def test_leaky_relu_inplace_with_neg_slope(self): - for device in torch.testing.get_all_device_types(): - a = torch.tensor([-1., 1.], device=device, requires_grad...
Simplify column and info copying for table. In particular, since parent_table and indices are never copied internally, there is no need to save and reset them. Also, as it was, the code set indices to an empty list even when not present initially, thus changing a column being copied.
@@ -74,26 +74,15 @@ def col_copy(col, copy_indices=True): if isinstance(col, BaseColumn): return col.copy() - # The new column should have None for the parent_table ref. If the - # original parent_table weakref there at the point of copying then it - # generates an infinite recursion. Instead temporarily remove the wea...
allow runway tests to exit 0 without signaling failure This will check the exit code of tests so any that have called sys.exit(0) (e.g. yamllint) won't trigger Runway to count it as failed.
@@ -78,6 +78,8 @@ class Test(BaseCommand): # pylint: disable=too-few-public-methods # tool it is wrapping. if not isinstance(err, SystemExit): traceback.print_exc() + elif err.code == 0: + continue # Tests calling sys.exit(0) don't indicate failure LOGGER.error('Test failed: %s', test.name) if test.required: LOGGER.err...
Fix test_delete_create_pvc_same_name Fixed teardown mechanism using teardown_factory
@@ -11,28 +11,6 @@ from tests import helpers logger = logging.getLogger(__name__) -@pytest.fixture() -def resources(request): - """ - Delete the pvc resources and validate pv deletion created during the test - - Returns: - list: empty list of pvcs - """ - pvcs = [] - - def finalizer(): - for instance in pvcs: - instanc...
qt: Link dbus-1 not dbus-1d in Debug builds on Windows Neither the Conan or the vanilla CMake-build version of the dbus package use a d-suffix for the debug version of the library on Windows. Fixes
@@ -420,6 +420,10 @@ class QtConan(ConanFile): " if (enable_precompiled_headers) {\n if (is_win) {", " if (enable_precompiled_headers) {\n if (false) {" ) + tools.replace_in_file(os.path.join(self.source_folder, "qt5", "qtbase", "configure.json"), + "-ldbus-1d", + "-ldbus-1" + ) def _make_program(self): if self._is_msv...
Fixup some documentation references for new grain.equals function versionadded code-block notation
@@ -763,12 +763,15 @@ def equals(key, value): ''' Used to make sure the minion's grain key/value matches. - Returns ``True`` if matches otherwise ``False`` + Returns ``True`` if matches otherwise ``False``. + + .. versionadded:: Nitrogen CLI Example: - salt '*' grains.equals fqdn <expected_fqdn> + .. code-block:: bash ...
sql: Improve description of i_s.engines It was improved to no longer show dummy data:
@@ -80,7 +80,7 @@ NULL. ### ENGINES table -The ENGINES table provides information about storage engines. But it contains dummy data only. In the production environment, use the TiKV engine for TiDB. +The ENGINES table provides information about storage engines. For compatibility, TiDB will always describe InnoDB as the...
reference/tools: add a brief explanation for a default value in br doc * sql: fix sequence docs * Revert "sql: fix sequence docs" This reverts commit * reference/tools: add a brief explanation for a default value in br doc
@@ -154,7 +154,7 @@ Each of the above three sub-commands might still include the following three sub To back up the cluster data, use the `br backup` command. You can add the `full` or `table` sub-command to specify the scope of your backup operation: the whole cluster or a single table. -If the backup time might excee...
Only apply clip_values if available Also removed some unnecessary `.detach()` calls.
@@ -134,7 +134,8 @@ class FeatureAdversariesPyTorch(EvasionAttack): if self.random_start: # Starting at a uniformly random point adv = adv + torch.empty_like(adv).uniform_(-self.delta, self.delta) - adv = torch.clamp(adv, *self.estimator.clip_values).detach() + if self.estimator.clip_values is not None: + adv = torch.c...
[IMPR] Reduce code complexity of pwb.main for further improvements Introduce a new function find_filename to look for the given filename and return its path. The code was moved from main(). This change will be used for further improvements.
@@ -168,26 +168,22 @@ except RuntimeError: sys.exit(1) -def main(): - """Command line entry point.""" - global filename - if not filename: - return False +def find_filename(filename): + """Search for the filename in the given script paths.""" + from pywikibot import config - file_package = None - argvu = pwb.argvu[1:] ...
remove burn valid check since this has its own disposition options no need to apply twice
@@ -1063,7 +1063,7 @@ class MediaProcessor: def burnSubtitleFilter(self, inputfile, subtitle_streams, swl, valid_external_subs=None): if self.settings.burn_subtitles: - filtered_subtitle_streams = [x for x in subtitle_streams if self.validLanguage(x.metadata.get('language'), swl) and self.validDisposition(x.metadata.ge...
Clean up change_parent matrix calculation Causes less updates.
@@ -66,15 +66,16 @@ class Presentation(Matrices, Element, Generic[S]): """Change the parent and update the item's matrix so the item visualy remains in the same place.""" old_parent = self.parent - self.parent = new_parent + if new_parent is old_parent: + return + self.parent = new_parent + m = self.matrix if old_paren...
[BYOC][MergeComposite] if root->args[i] isn't a CallNode, then Donwcast<Call> will check fail we needn't execute L131 "call_map->Set(arg, new_arg)", because when arg is CallNode and root->args[i] is not CallNode, new_arg will be a null pointer. There is no point in caching null pointer.
@@ -121,7 +121,7 @@ class MergeCompositeWrapper : public ExprMutator { Array<Expr> new_args; for (const auto& arg : pattern->args) { Expr new_arg; - if (arg->IsInstance<CallNode>()) { + if (arg->IsInstance<CallNode>() && root->args[i]->IsInstance<CallNode>()) { new_arg = ExtractPattern(Downcast<Call>(arg), Downcast<Cal...
Fix typo in contribution guide If you're only exposure to using... -> If your only exposure to using...
@@ -81,7 +81,7 @@ Following that we'll tell you about how you can test your changes locally and th # If you're using shells other than bash you'll need to use pip install -e ".[test,examples,doc]" ``` - * If you're only exposure to using pip is `pip install package_name` then this might be a bit confusing. + * If your ...
Prevent file called `1` from being created during build * Fix issue with shell redirection A file called `1` is no longer created * Remove trailing whitespace
@@ -83,12 +83,12 @@ endif # Fall back to "-march=native" if the compiler doesn't support either of those. ifeq ($(filter -march=%,$(CXXFLAGS)),) - FAIL_A :=$(shell cp /dev/null a.cpp; $(CXX) -march=sandybridge -c a.cpp 2>1 || echo FAIL; rm -f a.cpp a.o) + FAIL_A :=$(shell cp /dev/null a.cpp; $(CXX) -march=sandybridge -...
Add one more `# noqa` to unblock Missed one.
import sys from types import MappingProxyType -from typing import ( # noqa: Y027 +from typing import ( # noqa: Y027,Y038 AbstractSet as Set, AsyncGenerator as AsyncGenerator, AsyncIterable as AsyncIterable,
latex can't recognize path seperator \\ in windows Modify path before transport it to system command
import os import hashlib +from pathlib import Path + from manimlib.constants import TEX_TEXT_TO_REPLACE from manimlib.constants import TEX_USE_CTEX import manimlib.constants as consts @@ -39,12 +41,15 @@ def generate_tex_file(expression, template_tex_file_body): def tex_to_dvi(tex_file): result = tex_file.replace(".tex...
changelog! [skip-ci]
@@ -7,7 +7,12 @@ Changelog v0.4.2 ====== -Released: |today| +Released: August 4, 2017 + +New Features +------------ + + * Packets with partial body lengths can now be parsed. For now, these packets are converted to have definite lengths instead. (#95) (#208) Bugs Fixed ---------- @@ -15,6 +20,9 @@ Bugs Fixed * PGPKey.d...
Fix MapR dependency on mysql on RHEL MapR is missing mysql-java-connector and that makes it necessary to have subscription enable on RHEL7 Story:
@@ -75,10 +75,14 @@ validators: - libtirpc - libvisual - libxslt + - mariadb + - mariadb-server + - mariadb-libs - mesa-dri-drivers - mesa-libGL - mesa-libGLU - mesa-private-llvm + - mysql-connector-java - nmap-ncat - numactl - openjpeg-libs
qt send tab: when clicking "Max", show tooltip explaining max amt follow
@@ -41,7 +41,7 @@ from typing import Optional, TYPE_CHECKING, Sequence, List, Union import eth_abi from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor, QFont -from PyQt5.QtCore import Qt, QRect, QStringListModel, QSize, pyqtSignal +from PyQt5.QtCore import Qt, QRect, QStringListModel, QSize, pyqtSignal, QPoin...
fix: Now PyScript can import in the script path.
@@ -23,10 +23,11 @@ class PyScript(Task): def execute_action(self, **params): root = str(Path(self.path).parent) - task_func = self.get_task_func() - sys.path.append(root) + + task_func = self.get_task_func() output = task_func(**params) + sys.path.remove(root) return output
Add tox environ to test without external utilities available. Break PATH to simulate not having imagemagick, git, etc. installed.
@@ -10,6 +10,9 @@ setenv = # Use per-testenv coverage files to prevent contention when parallel # tests (using `tox -p`) COVERAGE_FILE=.coverage.{envname} + # To test in environment without external utitilities like imagemagick and git installed, + # break PATH in noutils environment(s). + noutils: PATH=/dev/null deps ...
CMSIS-DAPv2 USB match class catches UnicodeDecodeError. This error is raised by certain versions of STLinkV2 that are known to have a corrupted interface name.
@@ -268,8 +268,15 @@ class HasCmsisDapv2Interface(object): try: def match_cmsis_dap_interface_name(desc): + try: interface_name = usb.util.get_string(desc.device, desc.iInterface) return (interface_name is not None) and ("CMSIS-DAP" in interface_name) + except UnicodeDecodeError: + # This exception can be raised if the...
Fix small typo in setup.py Fixed small typo in setup.py
@@ -279,7 +279,7 @@ class build_deps(Command): # This is not perfect solution as build does not depend on any of # the auto-generated code and auto-generated files will not be # included in this copy. If we want to use auto-generated files, - # we need to find a batter way to do this. + # we need to find a better way t...
Fix / update data path assertion forgot to push this final change before i merged the last commit
@@ -696,11 +696,11 @@ class NeoXArgs(*BASE_CLASSES): "in args " # assert that if one of train/test/valid_data_path are provided, all should be - assert_error_mess = "One of train/valid/test data_path is not provided\n" - assert_error_mess += "\n".join( - [f"{name}_data_path:{data_path}," for name, data_path in [self.tr...
Fixed gdbserver response to 'vCont?' command. Search-replace error introduced during PEP8 rename.
@@ -760,7 +760,7 @@ class GDBServer(threading.Thread): # v_cont capabilities query. elif b'Cont?' == cmd: - return self.create_rsp_packet(b"v_cont;c;C;s;S;t") + return self.create_rsp_packet(b"vCont;c;C;s;S;t") # v_cont, thread action command. elif cmd.startswith(b'Cont'):
communication: handle attachment case for both filename and fileid some incoming files could have either filename or fileid for whatever reason. this handles both those cases (at least for now).
@@ -279,12 +279,16 @@ def prepare_to_notify(doc, print_html=None, print_format=None, attachments=None) if isinstance(a, string_types): # is it a filename? try: - # keep this for error handling - _file = frappe.get_doc("File", a) + # check for both filename and file id + file_id = frappe.db.get_list('File', or_filters={...
Bugfix htmlsafe function Somehow the unicode characters intended were in fact the ascii versions which negated the point of htmlsafe as it left the output unsafe. This wasn't directly noticeable (as was the intention), so to help avoid this in the future I've used the explicit forms.
@@ -52,10 +52,13 @@ def loads(object_: str, app: Optional["Quart"] = None, **kwargs: Any) -> Any: def htmlsafe_dumps(object_: Any, **kwargs: Any) -> str: - # Note in the below the ascii characters are replaced with a - # unicode similar version. - result = dumps(object_, **kwargs).replace("<", "<").replace(">", ">") - ...
travis.yml: fix pytorch version compatibility bug `conda install torchvision` will installs the latest one, and it will update the pytorch to 0.3.0, which has some compatibility bugs. Fix the torchvision verion to 0.1.8 for now.
@@ -20,7 +20,7 @@ before_install: - pip install -r requirements.txt # dependencies for im2text - pip install Pillow - - conda install torchvision + - conda install torchvision==0.1.8 # dependencies for speech2text - sudo apt-get install -y sox libsox-dev libsox-fmt-all - pip install librosa git+https://github.com/pytor...
Fix checkFormat fail for null input Patched in the function checkFormat itself, instead of the code which calls it
@@ -344,6 +344,7 @@ def formatSubclassOf(fmt, cls, ontology, visited): def checkFormat(actualFile, inputFormats, ontology): # type: (Union[Dict[Text, Any], List, Text], Union[List[Text], Text], Graph) -> None for af in aslist(actualFile): + if not af: continue if "format" not in af: raise validate.ValidationException(u...
linked-list: Implement extra-credit tests add optional tests for users to implement __len__() and __iter__()
@@ -44,6 +44,24 @@ class LinkedListTests(unittest.TestCase): self.assertEqual(50, self.list.pop()) self.assertEqual(30, self.list.shift()) + @unittest.skip("extra-credit") + def test_length(self): + self.list.push(10) + self.list.push(20) + self.assertEqual(2, len(self.list)) + self.list.shift() + self.assertEqual(1, l...
Swap order of coverage actions in source It would be nice to get the html report even if the coverage percent has dropped below the failing threshold.
@@ -42,8 +42,8 @@ coverage: python3 -m coverage --version python3 -m coverage run --timid --branch -m pytest ./tests/whitebox/integration python3 -m coverage run --timid --branch -a -m pytest ./tests/whitebox/monkey_patching/test_keyboard_interrupt.py - python3 -m coverage report -m --fail-under=86 --show-missing --inc...
clipping values, and replacing transposes with permute Without clipping, any values larger than 255 will be replaced with int(v mod 256) by byte(), which results in high freq noise in image.
@@ -90,6 +90,6 @@ def save_image(tensor, filename, nrow=8, padding=2, tensor = tensor.cpu() grid = make_grid(tensor, nrow=nrow, padding=padding, normalize=normalize, range=range, scale_each=scale_each) - ndarr = grid.mul(255).byte().transpose(0, 2).transpose(0, 1).numpy() + ndarr = grid.mul(255).clip(0, 255).byte().per...
Have CaseBlock leave date_opened unset unless explicitly passed in Letting the default behavior kick in where date_opened automatically is set to date_modified
@@ -35,8 +35,7 @@ class CaseBlock(object): self.update = copy.copy(update) if update else {} now = datetime.utcnow() self.date_modified = date_modified or now - self.date_opened = (now if create and date_opened is CaseBlock.undefined - else date_opened) + self.date_opened = date_opened self.case_type = "" if create and...
Action is now recorded as event:PutEvents (fully qualified) We no longer need to amend how the Action is reported in the describe_event_bus policy
@@ -235,7 +235,7 @@ class EventsBackend(BaseBackend): 'Sid': statement_id, 'Effect': 'Allow', 'Principal': {'AWS': 'arn:aws:iam::{0}:root'.format(data['principal'])}, - 'Action': 'events:{0}'.format(data['action']), + 'Action': data['action'], 'Resource': arn }) return {
fix: return 0 if no users are found if no users are present in the system, get_total_users returns None instead of 0 causing comparison issues
@@ -841,11 +841,11 @@ def user_query(doctype, txt, searchfield, start, page_len, filters): def get_total_users(): """Returns total no. of system users""" - return frappe.db.sql('''SELECT SUM(`simultaneous_sessions`) + return cint(frappe.db.sql('''SELECT SUM(`simultaneous_sessions`) FROM `tabUser` WHERE `enabled` = 1 AN...
fix: Make infer dummy entity join key idempotent fix: Infer dummy entity join key once
@@ -156,7 +156,11 @@ def update_feature_views_with_inferred_features_and_entities( ) # Infer a dummy entity column for entityless feature views. - if len(fv.entities) == 1 and fv.entities[0] == DUMMY_ENTITY_NAME: + if ( + len(fv.entities) == 1 + and fv.entities[0] == DUMMY_ENTITY_NAME + and not fv.entity_columns + ): f...
Remove comment that is in conflict with the code From git blame, this hasn't been the case for at least 2 years
@@ -43,8 +43,6 @@ domain_specific = [ url(r'^logo.png', logo, name='logo'), url(r'^apps/', include('corehq.apps.app_manager.urls')), url(r'^api/', include('corehq.apps.api.urls')), - # the receiver needs to accept posts at an endpoint that might - # not have a slash, so don't include it at the root urlconf url(r'^recei...
Modify 'Click to expand' detail margin Decrease the margin-top where a <detail> panel follows a paragraph, and increase the margin-bottom.
@@ -313,6 +313,10 @@ h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend { line-height: 1.5; } +.wy-body-for-nav p + details { + margin: -10px 0 15px; +} + .wy-body-for-nav blockquote { margin: 1em 0; padding-left: 1em;
Convert strs to bytes before decoding in tests Fixes pypy3 test failure Resolves
import base64 +import six from globus_sdk.authorizers import BasicAuthorizer from tests.framework import CapturedIOTestCase @@ -24,7 +25,7 @@ class BasicAuthorizerTests(CapturedIOTestCase): # confirm value self.assertEqual(header_dict["Authorization"][:6], "Basic ") decoded = base64.b64decode( - header_dict["Authorizat...
fix bug that gallery is none in generated envs The gallery is created in __post_init__, but it's not called for a generated environment. So update code to create a _gallery cache, and update with gallery_raw. a small fix that remove vhd secret, as it may block troubleshooting on vhd path.
@@ -2,7 +2,7 @@ import json import logging import os import re -from dataclasses import dataclass, field +from dataclasses import InitVar, dataclass, field from datetime import datetime from functools import lru_cache from pathlib import Path @@ -151,30 +151,32 @@ class AzureNodeSchema: # for gallery image, which need ...
bypassConvert adjustments Logging now does not show options which are never created or used if bypass convert is trigger optionsonly mode also reflects bypassConvert
@@ -86,10 +86,17 @@ class MediaProcessor: options = None preopts = None postopts = None + outputfile = None + ripped_subs = [] + downloaded_subs = [] info = info or self.isValidSource(inputfile) if info: + if self.canBypassConvert(inputfile, info): + outputfile = inputfile + self.log.info("Bypassing conversion and sett...
handle existing phenotype terms log better
@@ -26,13 +26,16 @@ def update_variants(adapter, case_obj, old_variants): for variant in old_variants: new_variant = Variant.objects(variant_id=variant['variant_id']).first() if new_variant is None: - logger.warning("missing variant: %s", variant['variant_id']) + logger.warn("missing variant: %s", variant['variant_id']...
Update README.md Simple, minor typo in the Readme.
<img height="120px" align="right" src="/static/mythril.png"/> -Mythril is a security analysis tool for Ethereum smart contracts. I uses concolic analysis, taint analysis and control flow checking to detect a variety of security vulnerabilities. The analysis is based on [laser-ethereum](https://github.com/b-mueller/lase...
docs: tutorials: models: slr: Document that hyperparameters live in model config Related:
@@ -62,6 +62,9 @@ Anything that a user might want to tweak about a models behavior should go in the ``Config`` class for the model. The naming convention is ``TheName`` + ``Model`` + ``Config``. +Hyperparameters for a model should live inside the model's config. Ideally at +the top level and not nested within another s...
Updated acknowledgements file to change old username I recently moved from to and this commit fixes that in the acknowledgements file
@@ -57,7 +57,7 @@ Documenters - Matt Caldwell (@mattcaldwell) - berdario (@berdario) - Cory Taylor (@coryandrewtaylor) -- James C. (@Jammy4312) +- James C. (@JamesMCo) - Ally Weir (@allyjweir) - Steven Loria (@sloria) - Patrick Abeya (@wombat2k)
Menu : Fix search widget focus styling on Mac By default, Qt draws an additional focus box that we don't want.
@@ -201,6 +201,7 @@ class Menu( GafferUI.Widget ) : self.__searchMenu = _Menu( self._qtWidget(), "" ) self.__searchMenu.aboutToShow.connect( Gaffer.WeakMethod( self.__searchMenuShow ) ) self.__searchLine = QtWidgets.QLineEdit() + self.__searchLine.setAttribute( QtCore.Qt.WA_MacShowFocusRect, False ) self.__searchLine.t...
Move start of consensus items after Genesis Move the start of the consensus network items to after genesis, as the validator is not ready to satisfy any requests on that interconnect.
@@ -404,14 +404,14 @@ class Validator: def start(self): self._component_dispatcher.start() self._component_service.start() - self._consensus_dispatcher.start() - self._consensus_service.start() if self._genesis_controller.requires_genesis(): self._genesis_controller.start(self._start) else: self._start() def _start(sel...
adding the Privacy, Security and OSINT Show adding the Privacy, Security and OSINT Show
- [Talos Takes](https://talosintelligence.com/podcasts/shows/talos_takes) - [Open Source Security Podcast](https://opensourcesecurity.io/category/podcast/) - [Crypto-Gram Security Podcast](http://crypto-gram.libsyn.com/) +- [The Privacy, Security and OSINT Show](https://inteltechniques.com/podcast.html)
Update elf_coinminer.txt Detection update due to PA Unit 42 information.
# Reference: https://isc.sans.edu/forums/diary/Crypto+Mining+Is+More+Popular+Than+Ever/24050 # Reference: https://www.alibabacloud.com/blog/jbossminer-mining-malware-analysis_593804 # Reference: https://blog.talosintelligence.com/2018/08/rocke-champion-of-monero-miners.html +# Reference: https://unit42.paloaltonetworks...
fix typos fix some typos
@@ -21,7 +21,8 @@ TAG=0.2.1 kubectl apply -f ./install/$TAG/kfserving.yaml ``` By default, you can create InferenceService instances in any namespace which has no label with `control-plane` as key. -You can aslo configure KFServing to make InferenceService instances only work in the namespace which has label pair `serv...
operations.format: don't regen all fetchables (and chksums) for fetch ops If they're provided to the call. This fixes `pmaint digest` complaining about missing digests when trying to fetch/digest distfiles for new ebuilds.
@@ -135,8 +135,9 @@ class operations(_operations_mod.base): if not isinstance(fetchables, (tuple, list)): fetchables = [fetchables] ret = [] + fetcher = self._fetch_kls(self.domain, self.pkg, fetchables, self._find_fetcher()) for fetchable in fetchables: - ret.append(self._fetch_op.fetch_one(fetchable, self._get_observ...
devstack: enable flow based tunnels for sfc ODL SFC requires flow based tunnels to operate correctly. This is enabled through a specific property set as an external id in the OVS database.
@@ -336,6 +336,9 @@ function bind_opendaylight_controller { other_config:provider_mappings=$ODL_PROVIDER_MAPPINGS fi sudo ovs-vsctl set Open_vSwitch $ovstbl other_config:local_ip=$ODL_LOCAL_IP + if [[ ",$ODL_NETVIRT_KARAF_FEATURE," =~ ",odl-netvirt-sfc," ]]; then + sudo ovs-vsctl set Open_vSwitch $ovstbl external_ids:o...
Bugfix in PC_Miner.py Fix a missing ) makes crash in app
@@ -222,7 +222,7 @@ class Client: return (NODE_ADDRESS, NODE_PORT) elif "message" in response: - pretty_print(f"Warning: {response['message']}" + pretty_print(f"Warning: {response['message']}") + f", retrying in {retry_count*2}s", "warning", "net0")
Fix formulation of eigenvectors Add the missing imaginary unit in the section 'Create modulated structure'
@@ -1141,7 +1141,7 @@ eigenvectors with amplitudes and phase factors as ```{math} \frac{A} { \sqrt{N_\mathrm{a}m_j} } \operatorname{Re} \left[ \exp(i\phi) -\mathbf{e}_j \exp( \mathbf{q} \cdot \mathbf{r}_{jl} ) \right], +\mathbf{e}_j \exp( i \mathbf{q} \cdot \mathbf{r}_{jl} ) \right], ``` where {math}`A` is the amplitud...
Update `AsyncHTTPClient` to latest version `1.11.1` Version `1.11.1` of `AsyncHTTPClient` only support Swift 5.4+
"maintainer": "ktoso@apple.com", "compatibility": [ { - "version": "5.0", - "commit": "a72c5adce3986ff6b5092ae0464a8f2675087860" + "version": "5.4", + "commit": "794dc9d42720af97cedd395e8cd2add9173ffd9a" } ], "platforms": [
update download location for BLAST 2.2.26 for Travis CI Travis builds were failing because NCBI have removed the 2.2.26 obsolete executables from their FTP site. The Travis config file now points at VBI at Virginia Tech's mirror
@@ -19,7 +19,7 @@ script: # application dependencies: BLAST+, legacy BLAST, MUMMER before_install: - cd $HOME - - wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/legacy.NOTSUPPORTED/2.2.26/blast-2.2.26-x64-linux.tar.gz + - wget http://mirrors.vbi.vt.edu/mirrors/ftp.ncbi.nih.gov/blast/executables/blast+/2.2.26/blast-2...
[drivers.SAFE.quicklook] generalized to allow unpacked + tar.gz scenes until now this method worked on zipped archives only
@@ -1290,15 +1290,14 @@ class SAFE(ID): if format != 'kmz': raise RuntimeError('currently only kmz is supported as format') kml_name = self.findfiles('map-overlay.kml')[0] - kml_membername = kml_name.replace(self.scene, '').strip(r'\/') - png = self.findfiles('quick-look.png')[0] - png_membername = png.replace(self.sce...
adapted code for q0 off-sweetspot the changes regard only the functions handling the noise
@@ -684,7 +684,7 @@ def distort_amplitude(fitted_stepresponse_ty,amp,tlist_new,sim_step_new): def shift_due_to_fluxbias_q0(fluxlutman,amp_final,fluxbias_q0): if not fluxlutman.czd_double_sided(): - omega_0 = fluxlutman.calc_amp_to_freq(0,'01') + omega_0 = compute_sweetspot_frequency(fluxlutman.q_polycoeffs_freq_01_det(...
Add float types to load_items to support configuration parameters of float type Complement missing float types when loading configuration group parameters so that parameters of type float can be attached into the trove instance successfully Story: Task: 42508
@@ -166,6 +166,8 @@ class Configuration(object): item.configuration_value = bool(int(item.configuration_value)) elif rule.data_type == 'integer': item.configuration_value = int(item.configuration_value) + elif rule.data_type == 'float': + item.configuration_value = float(item.configuration_value) else: item.configurati...
Update README.md Add new install steps for conjure-up
@@ -22,10 +22,7 @@ This is a minimal Kubernetes cluster comprised of the following components and f Installation has been automated via [conjure-up](http://conjure-up.io/): - sudo apt-add-repository ppa:juju/stable - sudo apt-add-repository ppa:conjure-up/next - sudo apt update - sudo apt install conjure-up + sudo snap...
Update knowledge_graph.py The l in "bool" is lost.
@@ -27,7 +27,7 @@ class KnowledgeGraphDataset(DGLBuiltinDataset): ----------- name: str Name can be 'FB15k-237', 'FB15k' or 'wn18'. - reverse: boo + reverse: bool Whether add reverse edges. Default: True. raw_dir : str Raw file directory to download/contains the input data directory.