message
stringlengths
13
484
diff
stringlengths
38
4.63k
Lint fixes Remove extra lines
@@ -406,5 +406,4 @@ def event_return(events): if ret and "saltutil.find_job" not in ret['fun'] or "salt/auth" not in ret['tag']: results = returner(ret, event_rtn=True) - return results
tools: add MultiLogIterator example to readme * update LogReader doc use MultiLogIterator to read the entire route, get timestamps and deal with exceptions * bring back the old example * clean f-strings * simplify
@@ -31,3 +31,21 @@ for msg in lr: if msg.which() == "carState": print(msg.carState.steeringAngleDeg) ``` + +### MultiLogIterator + +`MultiLogIterator` is similar to `LogReader`, but reads multiple logs. + +```python +from tools.lib.route import Route +from tools.lib.logreader import MultiLogIterator + +# setup a MultiL...
GraphBookmarksUI : Change shortcut from "Ctrl+B" to "B" Folks prefer single-key hotkeys for frequently accessed things. I've deliberately been lax in not checking that `event.modifiers == None`, to allow for a smooth transition for folks already used to `Ctrl+B`.
@@ -146,7 +146,7 @@ def appendNodeSetMenuDefinitions( editor, menuDefinition ) : { "command" : functools.partial( __findBookmark, editor, bookmarks ), "active" : len( bookmarks ), - "shortCut" : "Ctrl+B", + "shortCut" : "B", } ) @@ -303,7 +303,7 @@ def __findNumericBookmark( editor, numericBookmark ) : def __editorKeyP...
settings: Show enable_spectator_access option if server-setting is enabled. We show the "Allow creating web-public streams" setting in UI only if settings.WEB_PUBLIC_STREAMS_ENABLED is true on the server.
setting_name="realm_enable_spectator_access" prefix="id_" is_checked=realm_enable_spectator_access - render_only=page_params.development_environment + render_only=page_params.server_web_public_streams_enabled label=admin_settings_label.realm_enable_spectator_access}} <div class="input-group"> <label for="realm_create_p...
Update ua.txt ```It used a hard-coded user agent string in order to contact Gdrive. Mozilla / 5.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1)```
@@ -1314,6 +1314,10 @@ msie 44 WebMonitor Client +# Reference: https://blog.prevailion.com/2020/03/the-curious-case-of-criminal-curriculum.html + +Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1) + # Misc information_schema
cephadm-adopt: use ceph_osd_flag module There's no reason to not use the ceph_osd_flag module to set/unset osd flags. Also if there's no OSD nodes in the inventory then we don't need to execute the set/unset play.
when: not containerized_deployment | bool - name: set osd flags - hosts: "{{ mon_group_name|default('mons') }}[0]" + hosts: "{{ osd_group_name|default('osds') }}" become: true gather_facts: false tasks: name: ceph-defaults - name: set osd flags - command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ ...
Fix incorrect attributes in isherm_csr Some attributes were still trying to access the data as if it were scipy matrices. This occurred as part of a slightly failed merge up of master in dev.major, and was not caught at the time as the tests were not merged up.
@@ -51,13 +51,13 @@ cdef bint _isherm_csr_full(CSR matrix, double tol) except 2: cdef idxint row, ptr_a, ptr_b, col_a, col_b for row in range(matrix.shape[0]): ptr_a, ptr_a_end = matrix.row_index[row], matrix.row_index[row + 1] - ptr_b, ptr_b_end = transpose.indptr[row], transpose.indptr[row + 1] + ptr_b, ptr_b_end = t...
[client] make dir after clobbering cache directory This is for
@@ -835,6 +835,7 @@ class NamedCache(Cache): logging.exception( 'NamedCache: failed to load named cache state file; obliterating') file_path.rmtree(self.cache_dir) + fs.makedirs(self.cache_dir) with self._lock: self._try_upgrade() if time_fn:
Update README.md add Youtube link
## What's New +* *Aug 2021:* We now have a tutorial that introduces our toolkit, you can **[watch it on Youtube](https://youtu.be/PkMFnS6cjAc)**! * *July 2021:* We are now working on packaging s3prl and reorganizing the file structure in **v0.3**. Please consider using the stable **v0.2.0** for now. We will test and re...
Remove pool_destroy and fs_destroy from StratisCli class They are now really unnecessary since the list methods already filter out all non-test devices and the check for the devlinks has gone away.
@@ -55,16 +55,6 @@ class StratisCli: if fields[0].startswith(TEST_PREF) ) - @staticmethod - def pool_destroy(name): - """ - Destroy a pool - :param name: Name of pool to destroy - :return: None - """ - if name.startswith(TEST_PREF): - exec_command([STRATIS_CLI, "pool", "destroy", name]) - @staticmethod def destroy_all(...
Fix TensorProtosDBInput AttributeError Summary: Pull Request resolved:
@@ -5,7 +5,8 @@ from __future__ import division from __future__ import print_function from __future__ import unicode_literals -from caffe2.python import core, scope, workspace, helpers +from caffe2.python import core, scope, workspace +from caffe2.python.helpers.db_input import db_input from caffe2.python.modeling impo...
Deleting Trailing whitespace When we define several networks (ice1-2, ice1-3, ...) , the dhcpd.subnet.conf.j2 template generate many trailing whitespace in DHCP configuration files. This is not a problem to run the DHCP service, but the configuration files generate is too big and not very clean.
+#jinja2: lstrip_blocks: "True" #### Blue Banquise file #### ## {{ansible_managed}} {% endfor %} {% else %} {% set range = groups['all'] %} -{% endif %} +{% endif -%} -{% for host in range %} +{%- for host in range %} {% if hostvars[host]['network_interfaces'] is defined %} {% for nic, nic_args in hostvars[host]['netwo...
name cleanup cleaning up bad strings in naming when coming in from manual identification. also tried to set up logging, but found that it was logging for the web-server to the job's individual file, not a webserver log file that i wanted it to.
@@ -3,6 +3,7 @@ from time import strftime, localtime import urllib import json import re +#import logging # import omdb from arm.config.config import cfg @@ -26,6 +27,8 @@ def clean_for_filename(string): string = re.sub('\s+', ' ', string) string = string.replace(' : ', ' - ') string = string.replace(':', '-') + string...
Update odp-noaa-nesdis-ncei-csb.yaml Updates for new locations in Big Data Program.
Name: Crowdsourced Bathymetry Description: Community provided bathymetry data collected in collaboration with the International Hydrographic Organization. -Documentation: https://odp-noaa-nesdis-ncei-csb-docs.s3-us-west-2.amazonaws.com/readme.htm +Documentation: https://noaa-bathymetry-pds.s3.amazonaws.com/readme.html ...
Remove duplicate section (also removed fix that was merged into master)
# Studio Changelog -## Unreleased -#### Changes - -#### Issues Resolved - - ## Upcoming release #### Changes -* [[@jayoshih](https://github.com/jayoshih)] Don't allow users to set prerequisites on topics +* #### Issues Resolved -* [#1254](https://github.com/learningequality/studio/issues/1254) +* ## 2019-02-11 Release ...
Fix RefreshTokenGrant modifiers The RefreshTokenGrant modifiers now take the same arguments as the AuthorizationCodeGrant modifiers
@@ -63,7 +63,7 @@ class RefreshTokenGrant(GrantTypeBase): refresh_token=self.issue_new_refresh_tokens) for modifier in self._token_modifiers: - token = modifier(token) + token = modifier(token, token_handler, request) self.request_validator.save_token(token, request)
Fix InlineQuery.event.geo returning None Closes
@@ -130,7 +130,7 @@ class InlineQuery(EventBuilder): and the user's device is able to send it, this will return the :tl:`GeoPoint` with the position of the user. """ - return + return self.query.geo @property def builder(self):
daemon: Recover `sys.stdout.close()` call Fixing the following output on macOS when starting/stopping the daemon on CLI: ``` Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> BrokenPipeError: [Errno 32] Broken pipe ```
@@ -1363,7 +1363,7 @@ async def async_run_daemon(root_path: Path, wait_for_unlock: bool = False) -> in await ws_server.start() await shutdown_event.wait() log.info("Daemon WebSocketServer closed") - # sys.stdout.close() + sys.stdout.close() return 0 except LockfileError: print("daemon: already launching")
State correct environment variable in README.md `_OAUTH_AUTHORIZE_URL` is the internal variable holding the content of the environment variable `OAUTH2_AUTHORIZE_URL` (see `generic.GenericEnvMixin`). Therefore `OAUTH2_AUTHORIZE_URL` must be stated here instead of `_OAUTH_AUTHORIZE_URL`.
@@ -372,6 +372,6 @@ c.GenericOAuthenticator.extra_params = { 'client_secret': 'MOODLE-CLIENT-SECRET-KEY'} ``` -And set your environmental variable `_OAUTH_AUTHORIZE_URL` to: +And set your environmental variable `OAUTH2_AUTHORIZE_URL` to: `http://YOUR-MOODLE-DOMAIN.com/local/oauth/login.php?client_id=MOODLE-CLIENT-ID&re...
Label-based lookups in [add/remove]_data_from_viewer * delays loading data from a label that is also a path, now only used as a last resort * changes `data_path` arg name to `data_label` * removes now unnecessary extension kwargs * checked that no notebooks need updates
@@ -1004,8 +1004,8 @@ class Application(VuetifyTemplate, HubListener): return data_label - def add_data_to_viewer(self, viewer_reference, data_path, - clear_other_data=False, ext=None): + def add_data_to_viewer(self, viewer_reference, data_label, + clear_other_data=False): """ Plots a data set from the data collection ...
addresses: Add IPAddr.get_network() This gets the network portion of an IPAddr.
@@ -349,6 +349,17 @@ class IPAddr (object): return (self.toUnsigned() & ~((1 << (32-b))-1)) == n.toUnsigned() + def get_network (self, netmask_or_bits): + """ + Gets just the network part by applying a mask or prefix length + + Returns (IPAddr,preifx_bits) + """ + prefix = parse_cidr("255.255.255.255/" + str(netmask_or...
change behavior of 'name' field in buildtest cdash it will now show name with its identifier. This was an issue where single test can be run multiple times. Currently cdash was uploading first entry of the test whereas it needed to read all test records
@@ -161,12 +161,13 @@ def upload_test_cdash(build_name, configuration, site=None, report_file=None): with open(abspath_report_file) as json_file: buildtest_data = json.load(json_file) - for file_name in buildtest_data.keys(): - for test_name, tests_data in buildtest_data[file_name].items(): - test_data = tests_data[0] ...
Overload GetSymbol.__repr__ TN:
@@ -1472,6 +1472,9 @@ class GetSymbol(AbstractExpression): return CallExpr('Sym', 'Get_Symbol', Symbol, [token_expr], abstract_expr=abstract_expr) + def __repr__(self): + return '<GetSymbol>' + class SymbolLiteral(AbstractExpression): """
stream settings: Use full space in subscribers tab for listing them. We increase the height of the widget used for listing subscribers in stream settings to 100% so that it occupies the remaining space in the tab.
.subscriber_list_container { position: relative; - max-height: 300px; + max-height: 100%; overflow: auto; text-align: left; -webkit-overflow-scrolling: touch;
Fix incorrect wording in Message.edit docstring 'role' -> 'message'
@@ -1220,7 +1220,7 @@ class Message(Hashable): The ``suppress`` keyword-only parameter was added. .. versionchanged:: 2.0 - Edits are no longer in-place, the newly edited role is returned instead. + Edits are no longer in-place, the newly edited message is returned instead. .. versionchanged:: 2.0 This function no-long...
Update maltrail-sensor.service Adding Wiki-link to Documentation section
[Unit] Description=Maltrail IDS/IPS. Sensor of malicious traffic detection system Documentation=https://github.com/stamparm/maltrail#readme +Documentation=https://github.com/stamparm/maltrail/wiki Requires=network.target Wants=maltrail-server.service After=network-online.target maltrail-server.service
mgr: fix a typo this tasks isn't using the right container_exec_cmd, that's delegating to the wrong node. Let's use the right fact to fix this command.
when: dashboard_enabled | bool - name: wait for all mgr to be up - shell: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} mgr dump -f json | python -c 'import sys, json; print(json.load(sys.stdin)[\"available\"])'" + shell: "{{ container_exec_cmd_mgr | default('') }} ceph --cluster {{ cluster }} mg...
Adds a try/catch block to PlotManager queue processing. This prevents an error in the callback function (occasional in plotly) from stopping the queue processing by preventing the reset of busy=false.
@@ -378,10 +378,16 @@ PlotManager.prototype.run = function(){ var callback = pm.queue.shift(); //pop(); $("#status").text(label + " (" + pm.queue.length + " remaining)"); console.log("PLOTMANAGER: " + label + " (" + pm.queue.length + " remaining)"); + try { callback(); + } finally { + pm.busy = false; // in case an err...
deactivate pytest-sugar as dependency for release git dependencies are not allowed on PyPI and pytest-sugar >0.9.5 is still not released
@@ -33,7 +33,7 @@ pytest = { version = ">=6", optional = true } pytest-xdist = { version = ">=2.5", extras = ["psutil"], optional = true } # TODO:#i# wait for new release # pytest-sugar = { version = ">=0.9.5", optional = true } -pytest-sugar = { git = "https://github.com/Teemu/pytest-sugar.git", rev = "ee02ada200026f4...
Update grammar.md Removing double 'and'.
@@ -13,7 +13,7 @@ in the following form: ; This rule is called `Hello`. After the rule name, there is a colon. The body of the -rule is given as a textX expression, starting at the colon and and ending with a +rule is given as a textX expression, starting at the colon and ending with a semicolon. This rule tells us tha...
Update python dependencies We depend on 'cryptography', not 'pycryptodome'
@@ -98,7 +98,7 @@ Create a Python virtual environment (virtualenv) and activate it python3 -mvenv venv source venv/bin/activate pip install 'pip>=19.1.1' wheel -pip install PyYaml ansible netaddr pyOpenSSL pycryptodome +pip install PyYaml ansible netaddr pyOpenSSL cryptography>=3.0 ``` To create a virtualbox build (the...
TST: added test for Sequence to_html [ADDED} to_html test for sequence in test_sequence.py
@@ -949,6 +949,34 @@ class SequenceTests(TestCase): with self.assertRaises(AttributeError): s.is_annotated() + def test_to_html(self): + """produce correct html formatted text""" + seq = DnaSequence("ACGGTGGGGGGGGG") + got = seq.to_html() + # ensure balanced tags are in the txt + for tag in ["<style>", "</style>", "<di...
Fix tracking URL name It was causing people to see our special code who hadn't typed it in :(
@@ -135,6 +135,6 @@ urlpatterns = [ # redirect post March 2018 url(r'^(?P<ccg_code>[A-Za-z\d]{3})/$', frontend_views.measures_for_one_ccg, - name='measures_for_one_ccg'), + name='measures_for_one_ccg_tracking'), ]
Fix functional test for creating subnet subnet create failed by some bad random subnet range, so retry it with new random range when the test failed.
@@ -31,18 +31,22 @@ class FloatingIpTests(base.TestCase): cls.re_description = re.compile("description\s+\|\s+([^|]+?)\s+\|") cls.re_network_id = re.compile("floating_network_id\s+\|\s+(\S+)") - # Make a random subnet - cls.subnet = ".".join(map( - str, - (random.randint(0, 223) for _ in range(3)) - )) + ".0/26" - # Cr...
[Doc] [Jobs] Add `ray dashboard` docs to jobs doc To use Jobs on a remote cluster, you need to set up port forwarding. When using the cluster launcher, the `ray dashboard` command provides this automatically. This PR adds a how-to to the docs for this feature.
@@ -177,7 +177,9 @@ Monitoring cluster status (``ray dashboard/status``) The Ray also comes with an online dashboard. The dashboard is accessible via HTTP on the head node (by default it listens on ``localhost:8265``). You can -also use the built-in ``ray dashboard`` to do this automatically. +also use the built-in ``r...
Update android_cerberus.txt Not a ```Cerberus``` one, moving to neutral ```Bankbot``` trail:
@@ -6422,13 +6422,6 @@ ultimatemoon.top freecclleaner.com -# Reference: https://twitter.com/AgidCert/status/1353763168909225987 -# Reference: https://cert-agid.gov.it/news/individuato-sito-che-veicola-in-italia-un-apk-malevolo/ -# Reference: https://www.virustotal.com/gui/file/9ae593c5611fa04fc0b7cf85f356b0ac92dcbe51fc...
Make tox.ini tox 4.0.0 compatible * removed skipsdist=True to make sure cloudkitty is available in the virtual env * added find to allowed external commands in tox * replaced full path to find for readability
[tox] minversion = 3.18.0 -skipsdist = True envlist = py3,pep8 ignore_basepython_conflict = True [testenv] basepython = python3 -allowlist_externals = rm +allowlist_externals = + find + rm setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning usedevelop = True @@ -16,7 +17,7 @@ deps = -c{env:TOX_CONS...
remote: optimize UrlInfo.isin() This will use cached `_path`, which will use cached `_cparts`. Saves some time skipping repetitive parsing.
@@ -172,7 +172,7 @@ class URLInfo(object): @cached_property def _path(self): - return pathlib.PurePosixPath(self.parsed.path) + return PosixPathInfo(self.parsed.path) @property def name(self): @@ -210,7 +210,7 @@ class URLInfo(object): return ( self.scheme == other.scheme and self.netloc == other.netloc - and PathInfo(...
clear old values when setting a new objective new parameter 'clear' can be set to 'false' to keep old values fixes
@@ -441,18 +441,28 @@ cdef class Model: """ PY_SCIP_CALL(SCIPsetObjlimit(self._scip, objlimit)) - def setObjective(self, coeffs, sense = 'minimize'): - """Establish the objective function, either as a variable dictionary or as a linear expression. + def setObjective(self, coeffs, sense = 'minimize', clear = 'true'): + ...
Update FindARM.cmake Fix typos
@@ -68,9 +68,9 @@ if(NOT NEON_FOUND) MESSAGE(STATUS "Could not find hardware support for NEON on this machine.") endif(NOT NEON_FOUND) if(NOT CORTEXA8_FOUND) - MESSAGE(STATUS "No OMAP3 processor on this on this machine.") + MESSAGE(STATUS "No OMAP3 processor on this machine.") endif(NOT CORTEXA8_FOUND) if(NOT CORTEXA9_...
Deep copy work block in miner.py Issue
@@ -280,7 +280,7 @@ class Miner: if header_hash not in self.work_map: return False # this copy is necessary since there might be multiple submissions concurrently - block = copy.copy(self.work_map[header_hash]) + block = copy.deepcopy(self.work_map[header_hash]) header = block.header header.nonce, header.mixhash = nonc...
command: refactor Move the message to parent class. Fixes
@@ -7,6 +7,10 @@ from dvc.command.base import CmdBase class CmdDataBase(CmdBase): + def __init__(self, args): + self.UP_TO_DATE_MSG = "Everything is up-to-date." + super().__init__(args) + def do_run(self, target): pass @@ -22,8 +26,6 @@ class CmdDataBase(CmdBase): class CmdDataPull(CmdDataBase): - UP_TO_DATE_MSG = "Ev...
Updated requirements [formerly e50ed4c38ed428133b09eb8a9c900e8c48885614] [formerly 6338ab71dc30febcedac0b7faa9fc2fa63942806] [formerly 70cfdcd1a79b31dd255868b40ec1dbc2802f7ab0]
@@ -7,3 +7,55 @@ scipy~=1.4.1 setuptools~=46.1.3 cipheycore~=0.1.4 cipheydists~=0.1.2 +absl-py==0.9.0 +astunparse==1.6.3 +attrs==19.3.0 +cachetools==4.1.0 +certifi==2020.4.5.1 +chardet==3.0.4 +cipheycore==0.1.1 +cipheydists==0.0.2 +colorama==0.4.3 +commonmark==0.9.1 +coverage==5.1 +gast==0.3.3 +google-auth==1.16.0 +goo...
pin sqlalchemy below 2.0.0 new sqlalchemy dropped, our bk is broken
@@ -89,7 +89,7 @@ def get_version() -> str: "tomli", "tqdm", "typing_extensions>=4.0.1", - "sqlalchemy>=1.0", + "sqlalchemy>=1.0,<2.0.0", "toposort>=1.0", "watchdog>=0.8.3", 'psutil >= 1.0; platform_system=="Windows"',
[fix] Don't double log messages when sending a command to a running daemon. [fix] Prevent errors when rotating log file. fix
@@ -146,8 +146,6 @@ class Manager: except: flexget.log.start(level=self.options.loglevel, to_file=False) raise - else: - self._init_logging() manager = self @@ -182,7 +180,7 @@ class Manager: sys.exit(1) return options - def _init_logging(self): + def _init_logging(self, to_file=True): """ Initialize logging facilities...
Bugfix Add the templates_auto_reload API This is present in Flask (since version 1) and missing in Quart.
@@ -343,6 +343,19 @@ class Quart(PackageStatic): """Return if the app has received a request.""" return self._got_first_request + @property + def templates_auto_reload(self) -> bool: + """Returns True if templates should auto reload.""" + result = self.config["TEMPLATES_AUTO_RELOAD"] + if result is None: + return self....
Added Confirmation Dialog to Clear Pipeline Due to how the Clear Pipeline functionality is accomplished would be difficult to impossible to make it "undo-able" so instead I've added a confirmation dialog before clearing.
@@ -492,10 +492,18 @@ class Pipeline extends React.Component<Pipeline.Props, Pipeline.State> { } handleClear() { + return showDialog({ + title: 'Clear Pipeline?', + body: 'Are you sure you want to clear? You can not undo this.', + buttons: [Dialog.cancelButton(), Dialog.okButton({ label: 'Clear' })] + }).then( result =...
Add min(debug_level, 2) So that 3 v's e.g. `-vvv` would not cause a KeyError, and default to logging.DEBUG
@@ -43,7 +43,9 @@ def _set_debug_level(self, debug_level): 2: logging.DEBUG, } - self.setLevel(mapping[debug_level]) + self.setLevel( + mapping[min(debug_level, 2)], + ) log = get_logger()
settings: Add perfectScrollbar to uploads table. This adds the perfectScrollbar to the uploads table so that it will function properly in the settings container since the parent node has a perfectScrollbar.
@@ -47,9 +47,13 @@ exports.set_up_attachments = function () { callback: function (item, value) { return item.name.toLocaleLowerCase().indexOf(value) >= 0; }, + onupdate: function () { + ui.update_scrollbar(uploaded_files_table.closest(".progressive-table-wrapper")); + }, }, }).init(); + ui.set_up_scrollbar(uploaded_fil...
Eagerly upload to github release assets. Don't do final release steps for prereleases.
@@ -67,11 +67,32 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} TESTPYPI_API_TOKEN: ${{ secrets.TESTPYPI_API_TOKEN }} PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + github_upload: + name: Upload to Github release + runs-on: ubuntu-latest + needs: [whl, pex, dmg, deb, exe, zip] + steps: + - uses: actions/github...
BUG: Suspenders now call .resume() upon resuming The suspenders where calling the obj.pause() upon being triggered, but were not calling the obj.resume() when they resumed.
@@ -280,6 +280,7 @@ class RunEngine: 'clear_checkpoint': self._clear_checkpoint, 'rewindable': self._rewindable, 'pause': self._pause, + 'resume': self._resume, 'collect': self._collect, 'kickoff': self._kickoff, 'complete': self._complete, @@ -892,6 +893,7 @@ class RunEngine: self._plan_stack.append(ensure_generator(p...
Pass Generator not Sequence for GraphSAGE in hateful-twitter demo The GraphSAGE model was changed to take a generator rather than a sequence (created with `generator.flow`) in but the `demos/use-cases/hateful-twitter.ipynb` notebook was mistakenly not updated. See:
"source": [ "if model_type == \"graphsage\":\n", " base_model = GraphSAGE(\n", - " layer_sizes=[32, 32], generator=train_gen, bias=True, dropout=0.5,\n", + " layer_sizes=[32, 32], generator=generator, bias=True, dropout=0.5,\n", " )\n", " x_inp, x_out = base_model.default_model(flatten_output=True)\n", " prediction = l...
Added additional default plans to the migration that creates them. Since this modifies an existing migration and the logic doesn't run if any plans already exist, this shouldn't have any impact on existing sites.
@@ -36,7 +36,7 @@ def create_default_plans(apps, schema_editor): org='packaging', context='Upload Beta', ) - # Upload Beta + # Beta Test Plan.objects.create( name='Beta Test', description=( @@ -49,6 +49,43 @@ def create_default_plans(apps, schema_editor): org='beta', context='Beta Test', ) + # Upload Release + Plan.obj...
Enable RPM debug packages Now that the pulp infrastructure can handle the separate debug packages, enable RPM debuginfo extraction. This should reduce the install size substantially.
@@ -18,8 +18,9 @@ config_opts[f'{config_opts.package_manager}_builddep_opts'] = config_opts.get(f' config_opts['environment']['@env_key'] = '@env_val' @[end for] @[end if]@ -# Disable debug packages until infrastructure can handle it -config_opts['macros']['%debug_package'] = '%{nil}' +# Make debuginfo/debugsource pack...
Replace metrics unwraps with expects Using expect gives the line number where the error occured and more contextual information about what the error was for debugging.
@@ -20,10 +20,11 @@ use cpython::{NoArgs, ObjectProtocol, PyDict, PyModule, PyObject, Python, ToPyOb pub fn get_collector<S: AsRef<str>>(name: S) -> MetricsCollectorHandle { let gil = Python::acquire_gil(); let py = gil.python(); - let py_metrics = py.import("sawtooth_validator.metrics").unwrap(); + let py_metrics = py...
Fix next_level issue Check if level is None before comparing
@@ -176,7 +176,7 @@ class FlagSubmissionHandler(BaseHandler): # Unlock next level if based on Game Progress next_level = GameLevel.by_id(level.next_level_id) - if next_level._type == "progress" and level_progress * 100 >= next_level.buyout and next_level not in user.team.game_levels: + if next_level and next_level._typ...
Replace some <i> tags with <em>. Required by sonarcloud for code changes.
<form> <div class="field is-horizontal"> <div class="field-label is-small"> - <label class="label"><span class="icon is-small"><i class="fas fa-search"></i></span></label> + <label class="label"><span class="icon is-small"><em class="fas fa-search"></em></span></label> </div> <div class="field-body"> <div class="field"...
[BUG] Fix `write_ndarray_to_tsfile` for `classLabel = False` Fixes `IOError` when reading a tsfile written with `write_ndarray_to_tsfile` The issue in `load_from_tsfile_to_dataframe` happend attributes for "class label" were inconsistent. These are changed consistently to `@classlabel`.
@@ -1573,9 +1573,9 @@ def write_ndarray_to_tsfile( # write class label line if class_label is not None: space_separated_class_label = " ".join(str(label) for label in class_label) - file.write(f"@classLabel true {space_separated_class_label}\n") + file.write(f"@classlabel true {space_separated_class_label}\n") else: - ...
Remove --no-deps from mxnet installation. The latest version do not downgrade numpy anymore:
@@ -89,8 +89,7 @@ RUN pip uninstall -y tensorflow && \ pip install /tmp/tensorflow_gpu/tensorflow*.whl && \ rm -rf /tmp/tensorflow_gpu && \ pip uninstall -y mxnet && \ - # b/126259508 --no-deps prevents numpy from being downgraded. - pip install --no-deps mxnet-cu$CUDA_MAJOR_VERSION$CUDA_MINOR_VERSION && \ + pip instal...
Non-INTERFACE AT_LINK_STYLE is dead code Summary: Pull Request resolved:
@@ -305,39 +305,7 @@ if(USE_CUDA OR USE_ROCM) add_library(ATen_cuda INTERFACE) list(APPEND ATen_CUDA_DEPENDENCY_LIBS ATEN_CUDA_FILES_GEN_LIB) else() - # A hack to deal with cuda library dependencies and modern CMake: the - # CUDA_ADD_LIBRARY includes a target_link_libraries, and as a result, - # one cannot use PUBLIC/P...
Added batch processing to onnx Fixed a bug introduced 2021/03/27 where a for loop was directed at a dictionary Fixed duplicate prediction calls
@@ -1018,30 +1018,39 @@ class NERModel: ] if self.args.onnx: + + # Encode model_inputs = self.tokenizer.batch_encode_plus( to_predict, return_tensors="pt", padding=True, truncation=True ) - for inputs in tqdm(model_inputs): + # Change shape for batching + encoded_model_inputs = [] + if self.args.model_type in ["bert", ...
Don't use `patcher.start()`, specially if `patcher.stop()` is not called it breaks unrelated tests. Refs
@@ -11,9 +11,8 @@ from tests.support.mock import MagicMock, patch @pytest.fixture def configure_loader_modules(): - patcher = patch("salt.utils.path.which", lambda exe: exe) - patcher.start() - return {djangomod: {}} + with patch("salt.utils.path.which", lambda exe: exe): + yield {djangomod: {}} def test_command():
Move call to QAct out from _ApplyActivationFunction / _ApplyProjectionKernel. It was only enabled at a single call site, call it there instead.
@@ -1176,8 +1176,8 @@ class ProjectionLayer(quant_utils.QuantizableLayer): if self._is_bn_folded or not p.batch_norm: # Everything folded together. This is the only variant that supports # quantization. - out = self._ApplyProjectionKernel( - w, b, inputs, quant=True, **proj_kwargs) + out = self._ApplyProjectionKernel(w...
mongoengine.errors.InvalidQueryError: Cannot resolve field "id" fixes this
@@ -42,10 +42,10 @@ class QueryAjaxModelLoader(AjaxModelLoader): if not model: return None - return (as_unicode(model.id), as_unicode(model)) + return (as_unicode(model.pk), as_unicode(model)) def get_one(self, pk): - return self.model.objects.filter(id=pk).first() + return self.model.objects.filter(pk=pk).first() def ...
Silence tests: fix unawaited coro warnings Because the Scheduler is mocked, it doesn't actually do anything with the coroutines passed to the schedule() functions, hence the warnings.
@@ -68,7 +68,9 @@ class SilenceNotifierTests(unittest.IsolatedAsyncioTestCase): with self.subTest(current_loop=current_loop): with mock.patch.object(self.notifier, "_current_loop", new=current_loop): await self.notifier._notifier() - self.alert_channel.send.assert_called_once_with(f"<@&{Roles.moderators}> currently sil...
Update SECURITY.md Update supported releases
@@ -10,9 +10,10 @@ Along those lines, OWASP CRS team may not issue security notifications for unsup | Version | Supported | | --------- | ------------------ | -| 3.3.x-dev | :white_check_mark: | +| 3.4.x-dev | :white_check_mark: | +| 3.3.x | :white_check_mark: | | 3.2.x | :white_check_mark: | -| 3.1.x | :white_check_ma...
Add missing private field to NamedTuple It is very useful for doing introspection.
@@ -535,6 +535,7 @@ def cast(tp: Type[_T], obj: Any) -> _T: ... # NamedTuple is special-cased in the type checker class NamedTuple(tuple): + _field_types = ... # type: collections.OrderedDict[str, Type[Any]] _fields = ... # type: Tuple[str, ...] _source = ... # type: str
Average losses before logging is called Fixes by averaging losses before loggers are called. It's guarded with `n_gpu > 1` to avoid synchronizing processes in DDP runs.
@@ -386,6 +386,8 @@ class RecipeManagerTrainerInterface: teacher_inputs = None loss = student_outputs["loss"] + if self.args.n_gpu > 1: # DataParallel + loss = loss.mean() loss = self.manager.loss_update( loss, model,
id_parser: refactor _valid_url The nested if is ugly
@@ -6,8 +6,9 @@ class IDParser: pass def _valid_url(self, input): - if input is not None: - if (input[:7] == "http://") or (input[:8] == "https://"): + if input is None: + return False + if input[:7] == "http://" or input[:8] == "https://": return True return False
Test QR and cholesky These are the same as the ones recently merged into symengine.
from symengine import symbols from symengine.lib.symengine_wrapper import (DenseMatrix, Symbol, Integer, - function_symbol, I, NonSquareMatrixError, ShapeError, zeros, ones, eye, - ImmutableMatrix) + Rational, function_symbol, I, NonSquareMatrixError, ShapeError, zeros, + ones, eye, ImmutableMatrix) from symengine.util...
inte-tests: correct path to migrations mount After this path has changed
@@ -93,7 +93,7 @@ sources = [ # directory directly. sources_static = [ ( - 'cloudify-manager/resources/rest-service/cloudify/migrations', + 'cloudify-manager/rest-service/migrations', ['/opt/manager/resources/cloudify/migrations'] ), (
Added alias for tags get traceback - !exception. I find myself writing !exception by mistake too often and just figured i'd see if others would want this alias in.
@@ -139,6 +139,14 @@ class Alias: await self.invoke(ctx, "defcon disable") + @command(name="exception", hidden=True) + async def tags_get_traceback_alias(self, ctx): + """ + Alias for invoking <prefix>tags get traceback. + """ + + await self.invoke(ctx, "tags get traceback") + @group(name="get", aliases=("show", "g"), ...
docstring fix * docstring fix ModelCheckpoint: added missing argument * docstring fix simplified
@@ -42,6 +42,8 @@ class ModelCheckpoint(object): in the directory 'dirname' create_dir (bool, optional): If True, will create directory 'dirname' if it doesnt exist. + save_as_state_dict (bool, optional): + If True, will save only the `state_dict` of the objects specified, otherwise the whole object will be saved. Note...
Updated README.md [ci skip] Tiny docs-only PR to do some tests with Github permissions.
@@ -75,4 +75,4 @@ This is a set of template applications that exist in a real project space and ar These applications are visible via the `app_exchange` view. -To add a new app, add a new `ExchangeApplication` model via django admin. You must supply a domain and an app id. Use the "canonical" app id used in app manager...
Load permissions from the file during migrations * Load permissions from the file during migrations When migrating the db on a machine that already has the auth.conf file, load permissions from that file. And insert them. * add label
@@ -7,8 +7,10 @@ Revises: 387fcd049efb Create Date: 2020-11-09 15:12:12.055532 """ +import yaml from alembic import op import sqlalchemy as sa +from sqlalchemy.sql import table, column, select from manager_rest.storage.models_base import UTCDateTime @@ -27,7 +29,8 @@ def upgrade(): nullable=False, server_default="0")) ...
ceph-common: remove copr and sepia repositories All EL8 dependencies are now present on EPEL 8 so we don't need the additional repositories that were only a temporary solution.
--- -- name: specific el 8 dependencies - when: ansible_distribution_major_version | int == 8 - block: - - name: install dnf-plugins-core - package: - name: dnf-plugins-core - register: result - until: result is succeeded - tags: with_pkg - - - name: enable ceph-el8 copr - command: dnf copr enable -y ktdreyer/ceph-el8 ...
Update README.md update slack channel
@@ -74,7 +74,7 @@ make test ## For Contributors -If you are interested in contributing to Syft, first check out our [Contributor Quickstart Guide](https://github.com/OpenMined/Docs/blob/master/contributing/quickstart.md) and then sign into our [Slack Team](https://openmined.slack.com/) channel #syft to let us know whic...
Update docs to recommend using MSVC on Windows See I don't think MinGW has worked since around Python 3.4 (but I'm not completely confident in that) while I know that MSVC does work. Therefore we should recommend that.
@@ -22,13 +22,16 @@ according to the system used: XCode, which can be retrieved from the Mac OS X's install DVDs or from https://developer.apple.com/. - - **Windows** A popular option is to use the open source MinGW (a + - **Windows** The CPython project recommends building extension modules + (including Cython modules...
Updates text of Approximate Algorithm [ci-skip] [ci-skip]
@@ -173,7 +173,7 @@ Internally, these hafnians are calculated by using the recursion relation of the Approximate algorithm --------------------- -In 1999 Barvinok :cite:`barvinok1999polynomial` provided a surprisingly simple algorithm to approximate the hafnian of a symmetric matrix with positive entries. Let the matri...
Use with context manager and a few PEP8 changes. First File is opened using the with context manager Broke two long strings into multiple lines Add space between arguments in a method call
@@ -2,13 +2,19 @@ import pypandoc import os output = pypandoc.convert('README.md', 'rst') -f = open('README.txt','w+') +with open('README.txt' 'w+') as f: f.write(str(output.encode('utf-8'))) -f.close() readme_rst = open('./README.txt').read() -replace = '.. figure:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%...
Adjusted to pass the updated requirements Removed six and Py2 support Small changes to pass new lint tests
-# -*- coding: utf-8 -*- - # Import Python Libs -from __future__ import absolute_import, print_function, unicode_literals import os @@ -11,7 +8,6 @@ import salt.modules.yumpkg as yumpkg # Import Salt libs from salt.exceptions import CommandExecutionError -from salt.ext import six # Import Salt Testing Libs from tests.s...
[woff2] Fix seeds Use seeds from OSS-Fuzz instead of getting them manually (and incorrectly). Fixes
@@ -22,10 +22,13 @@ apt-get update && \ autoconf \ libtool +# Get seeds. +get_git_revision https://github.com/google/oss-fuzz.git e8ffee4077b59e35824a2e97aa214ee95d39ed13 oss-fuzz +mkdir -p $OUT/seeds +cp oss-fuzz/projects/woff2/corpus/* $OUT/seeds + get_git_revision https://github.com/google/woff2.git 9476664fd6931ea6...
Refactor: Use `id` instead of `pk` as key. Use `id` instead of `pk` as key to get RealmFilter object in `do_remove_linkifier` function in `actions.py`.
@@ -6643,7 +6643,7 @@ def do_remove_linkifier( if pattern is not None: RealmFilter.objects.get(realm=realm, pattern=pattern).delete() else: - RealmFilter.objects.get(realm=realm, pk=id).delete() + RealmFilter.objects.get(realm=realm, id=id).delete() notify_linkifiers(realm)
Add support for localised item types / fields Only en-US is currently supported, but it will eventually just work.
@@ -797,10 +797,10 @@ Pyzotero allows you to retrieve, delete, or modify saved searches: Item Methods ================= - .. py:method:: Zotero.item_types() + .. py:method:: Zotero.item_types([locale]) Returns a dict containing all available item types - + :param string locale: Clients can optionally request names in o...
updated new meaning
"a person who employs or superintends workers; manager.", "a politician who controls the party organization, as in a particular district.", "a person who makes decisions, exercises authority, dominates, etc." + "a person who gives only commands,not lead them" ], "parts-of-speech": "Noun" }
Fix code generation for hashing of analysis units TN:
@@ -1038,7 +1038,7 @@ package body ${ada_lib_name}.Analysis.Implementation is % if T.AnalysisUnitType.requires_hash_function: function Hash (Unit : Analysis_Unit) return Hash_Type is - (Ada.Strings.Unbounded.Hash (Unit.File_Name)); + (GNATCOLL.VFS.Full_Name_Hash (Unit.File_Name)); % endif -------------
Updating the glanceclient reference doc Added the missing commands from glanceclient, updated the OSC equivalent and removed the deprecated commands.
+cache-clear,,"Clear all images from cache, queue or both." +cache-delete,,Delete image from cache/caching queue. +cache-list,,Get cache state. +cache-queue,,Queue image(s) for caching. explain,WONTFIX,Describe a specific model. image-create,image create,Create a new image. -image-create-via-import,,EXPERIMENTAL: Creat...
ENH: add `arm64` support with native `cmake` no `cmake` for `ppc64le` available
-# This Dockerfile supports amd64,ppc64le +# This Dockerfile supports amd64,arm64,ppc64le # Note: QEMU emulated ppc64le build might take ~6 hours # 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...
Update test case to pass interface parameter to pod_factory Pod name will have 'cephfs' or 'rbd' based on the interface. This update does not bring any change in the functionality
@@ -323,10 +323,14 @@ class TestDeleteResourceDuringPodPvcDeletion(DisruptionBase): for pvc_obj in pvc_objs: if pvc_obj.access_mode == constants.ACCESS_MODE_RWX: pod_obj = pod_factory( - pvc=pvc_obj, status=constants.STATUS_RUNNING + interface=interface, pvc=pvc_obj, + status=constants.STATUS_RUNNING ) pod_objs.append(...
init: ensure a newline is present before appending certs Make sure the script still works when mounting certs as a read-only fs.
@@ -9,16 +9,8 @@ PYTHONUSERBASE_SITE_PACKAGE=${PYTHONUSERBASE_SITE_PACKAGE:-"$(python -m site --u cd ${QUAYDIR:-"/quay-registry"} -function ensure_newline() { - lastline=$(tail -c 1 $1) - if [ "$lastline" != "" ]; then - echo >> "$1" - fi -} - # Add the custom LDAP certificate -if [ -e $QUAYCONFIG/ldap.crt ] -then +if ...
Rearranges Dockerfile. Does timezone setup at the beginning. Separates python installation and requirements installation.
@@ -4,6 +4,11 @@ ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -qqy RUN apt-get install -qqy --no-install-recommends apt-utils +# Setup timezone. +ENV TZ=America/Los_Angeles +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +# Install Python 3.7. WORKDIR /root RUN apt-get install...
fix: use '>' instead of 'gt' in j2 templates Fixes:
@@ -61,7 +61,7 @@ allow {{ networks[nic.network]['subnet'] }}/{{ networks[nic.network]['prefix'] } # Serve time even if not synchronized to a time source. # Fairly unreliable time source {% if iceberg_level is defined and iceberg_level is not none %} - {% if (iceberg_level|int) is gt 3 %} + {% if (iceberg_level|int) > ...
TST: stats: Fix the expected r-value of a linregress test. The test TestRegression.test_nist_norris() in stats/test_stats.py uses the "Norris" data set from The certified r-squared value is 0.999993745883712. `stats.linregress` returns the r-value (not squared), so we must square it before comparing it to the certifie...
@@ -1163,13 +1163,13 @@ class TestRegression(object): # Expected values exp_slope = 1.00211681802045 exp_intercept = -0.262323073774029 - exp_rvalue = 0.999993745883712 + exp_rsquared = 0.999993745883712 actual = stats.linregress(x, y) assert_almost_equal(actual.slope, exp_slope) assert_almost_equal(actual.intercept, e...
Prepare 2.5.2rc3. [ci skip-rust] [ci skip-build-wheels]
See https://www.pantsbuild.org/v2.5/docs/release-notes-2-5 for an overview of the changes in this release series. +## 2.5.2rc3 (Aug 16, 2021) + +### Bug fixes + +* Fix shlexing of passthrough args. (cherrypick of #12547) ([#12550](https://github.com/pantsbuild/pants/pull/12550)) + ## 2.5.2rc2 (Aug 06, 2021) ### Bug fix...
Update generic.txt Moving + Dedup of ```smokealoader```
@@ -8739,18 +8739,6 @@ microsoft-hohm.space quickmaildrive.com -# Reference: https://twitter.com/malwrhunterteam/status/1247931172811874305 -# Reference: https://app.any.run/tasks/15f42296-0d96-4536-a255-04105ec7339d/ -# Reference: https://www.virustotal.com/gui/file/d3c075c5c6d9c6e8fcfda4a408c5bd8f5fc4c6ff6acf339293c5...
Fixed: Under Linux with TK the column number in the editor does not change during editing Now, only row and character number is displayed.
@@ -345,8 +345,9 @@ if TOOLKIT in (GTK, GTKSOURCEVIEW): else: col += 1 start.forward_char() - pos_label.set_text('char: %d, line: %d, column: %d' % (nchars, row, col + 1)) + else: + pos_label.set_text('char: %d, line: %d' % (nchars, row)) @staticmethod def load_file(text_buffer, path):
test(TestLoginLogout): mark as a user test Also remove the initial login status check. RequireUserMixin will login to the site automatically.
@@ -3660,17 +3660,13 @@ class TestLoginLogout(DefaultSiteTestCase): """Test for login and logout methods.""" - @unittest.skipIf(os.environ.get('APPVEYOR', 'false') in ('true', 'True'), - 'No user defined for APPVEYOR tests') + user = True + def test_login_logout(self): """Validate login and logout methods by toggling t...
MNT: rename self._task -> self._task_fut run_coroutine_threadsafe returns a future.Future, not the task it's self. Suspect this is because the tasks are not thread-safe so this is protecting us from an obvious foot-cannon.
@@ -323,6 +323,7 @@ class RunEngine: self._exit_status = 'success' # optimistic default self._reason = '' # reason for abort self._task = None # asyncio.Task associated with call to self._run + self._task_fut = None # asyncio.Task associated with call to self._run self._status_tasks = deque() # from self._status_object...
Report if there are any errors in local_settings. This will issue a `UserWarning` in case some kind of exception is being raised inside local_settings.py
@@ -149,5 +149,9 @@ INBOUND_EMAIL_VALIDATION_KEY = 'totally-unsecure-validation-string' # If you have settings you want to overload, put them in a local_settings.py. try: from local_settings import * # noqa -except ImportError: - pass +except ImportError as exc: + import warnings + import traceback + + warnings.warn('C...
Guard against 'aws._profile_env_var' getting overwritten by controller tests CR:
@@ -84,6 +84,7 @@ class TestProfileSelection(unittest.TestCase): def run(self, result=None): aws._flush() + aws._profile_env_var = 'AWS_EB_PROFILE' aws._region_name = 'us-west-2' self.root_dir = os.getcwd() if os.path.exists('testDir'):