message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add flip commands Closes
@@ -134,6 +134,10 @@ class Bsp(Layout): Key([mod, "shift"], "k", lazy.layout.shuffle_up()), Key([mod, "shift"], "h", lazy.layout.shuffle_left()), Key([mod, "shift"], "l", lazy.layout.shuffle_right()), + Key([mod, "mod1"], "j", lazy.layout.flip_down()), + Key([mod, "mod1"], "k", lazy.layout.flip_up()), + Key([mod, "mod1...
VHD transformer accept parameters of platform It makes the configuration of VHD transformer is simpler.
@@ -65,7 +65,7 @@ class VhdTransformerSchema(schema.Transformer): public_port: int = 22 username: str = constants.DEFAULT_USER_NAME password: str = "" - private_key_file: str = field(default="", metadata=schema.metadata(required=True)) + private_key_file: str = "" # values for exported vhd. storage_account_name is opti...
Mention gitter cirqdev in readme Fixes:
@@ -77,6 +77,7 @@ We use `Github issues <https://github.com/quantumlib/Cirq/issues>`__ for tracking requests and bugs. Please post questions to the `Quantum Computing Stack Exchange <https://quantumcomputing.stackexchange.com/>`__ with a 'cirq' tag. +For informal discussions about Cirq, join our `cirqdev <https://gitte...
use correct batching util in custom_vjp_call_jaxpr fixes
@@ -654,7 +654,7 @@ def _custom_vjp_call_jaxpr_vmap( fwd_args_batched = [0 if b else not_mapped for b in args_batched] fwd_out_dims = lambda: out_dims2[0] - batched_bwd = batching.batch(bwd, axis_name, axis_size, fwd_out_dims, + batched_bwd = batching.batch_custom_vjp_bwd(bwd, axis_name, axis_size, fwd_out_dims, fwd_ar...
Grammar Changes Some simple grammatical changes.
@@ -50,7 +50,7 @@ Installation * `pip install pyspider` * run command `pyspider`, visit [http://localhost:5000/](http://localhost:5000/) -**WARNING:** WebUI is opened to public by default, it can be used to execute any command which may harm to you system. Please use it in internal network or [enable `need-auth` for we...
Add / improve CircuitOperation memoizing Small change to cache control keys in circuit operations
@@ -96,6 +96,9 @@ class CircuitOperation(ops.Operation): _cached_measurement_key_objs: Optional[AbstractSet['cirq.MeasurementKey']] = dataclasses.field( default=None, init=False ) + _cached_control_keys: Optional[AbstractSet['cirq.MeasurementKey']] = dataclasses.field( + default=None, init=False + ) circuit: 'cirq.Froz...
Fix GitHub repo link constant Previous version was pointing to Python, not SeasonalBot
@@ -85,7 +85,7 @@ class Client(NamedTuple): token = environ.get("SEASONALBOT_TOKEN") sentry_dsn = environ.get("SEASONALBOT_SENTRY_DSN") debug = environ.get("SEASONALBOT_DEBUG", "").lower() == "true" - github_bot_repo = "https://github.com/python-discord/bot" + github_bot_repo = "https://github.com/python-discord/season...
Metadata API: improve module documentation Clarify the purpose of metadata API and that it's a low-level API and as such it doesn't use concepts like "repository" or "trusted collection of metadata" and don't implement the repository logic or client updater workflow.
"""TUF role metadata model. -This module provides container classes for TUF role metadata, including methods -to read and write from and to file, perform TUF-compliant metadata updates, and -create and verify signatures. +This module contains low-level API through container classes for TUF role +metadata. The API aims ...
Update DatabaseConnector.py Updated to be able to execute in the virtual environment
@@ -13,9 +13,8 @@ database.addListener("publishDocument","python","onDocument") database.setIdField("actor_id") database.setSql("select actor_id, first_name, last_name from actor") +if ('virtual' in globals() and virtual) # start crawling database.startCrawling() - sleep(5) - database.stopCrawling()
C API: fix signature of array method arguments in header This reverts commit (which was wrong) and renames the name of the C structure used to bind arrays. The renaming will hopefully remove the confusion that led to the above commit. TN:
<%def name="incomplete_decl(cls)"> <% type_name = cls.c_type(capi).name %> -typedef struct ${type_name} *${type_name}; +typedef struct ${type_name}_record *${type_name}; </%def> <%def name="decl(cls)"> @@ -10,23 +10,23 @@ typedef struct ${type_name} *${type_name}; <% type_name = cls.c_type(capi).name %> ${c_doc(cls)} -...
Apply suggestions from code review Many thanks for the corrections!
@@ -49,7 +49,7 @@ Aazra and Rui are teammates competing in a pirate-themed treasure hunt. <br> But things are a bit disorganized: Azara's coordinates appear to be formatted and sorted differently from Rui's, and they have to keep looking from one list to the other to figure out which treasures go with which locations. ...
add example for intersection of a single list This is to foresee in the future via doctests.
@@ -716,6 +716,9 @@ def intersection(array, *others): >>> intersection([1, 2, 3], [1, 2, 3, 4, 5], [2, 3]) [2, 3] + >>> intersection([1, 2, 3]) + [1, 2, 3] + .. versionadded:: 1.0.0 .. versionchanged:: 4.0.0
[IMPR] Improvements for askForHints (4) combine checkings
@@ -1167,16 +1167,13 @@ class Subject(interwiki_graph.Subject): def askForHints(self, counter): """Ask for hints to other sites.""" - if not self.workonme: # we don't work on it anyway - return - - if not ( - (self.untranslated or self.conf.askhints) - and not self.hintsAsked - and self.originPage - and self.originPage...
delete_in_topic: Name unused variable as ignored. sub isn't used, so let's just call it ignored_sub to be explicit about that intent.
@@ -857,7 +857,7 @@ def delete_in_topic( stream_id: int = REQ(converter=to_non_negative_int, path_only=True), topic_name: str = REQ("topic_name"), ) -> HttpResponse: - (stream, sub) = access_stream_by_id(user_profile, stream_id) + stream, ignored_sub = access_stream_by_id(user_profile, stream_id) messages = messages_fo...
Fix Editor examples We hadn't updated them for the scenario config changes.
@@ -135,12 +135,41 @@ def world_command_examples(): def editor_example(): """This editor example shows how to interact with holodeck worlds while they are being built - in the Unreal Engine. Most people that use holodeck will not need this. + in the Unreal Engine Editor. Most people that use holodeck will not need this...
Update capella_opendata.yaml Updated license
@@ -26,7 +26,7 @@ Tags: - computer vision - synthetic aperture radar License: | - [Capella EULA](https://www.capellaspace.com/wp-content/uploads/2021/09/EULA-Single-Org-Open-Data-License-Ver.-1.0-September-2021-Final.pdf) + [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) Resources: - Description: Capella Spac...
Update test_partial_integration.py Fix unittest hack
@@ -68,5 +68,5 @@ def test_partial_integral(): integral_x_true = integral_x(y=y, lowerx=lowerx, upperx=upperx) * ratio integral_y_true = integral_y(x=x, lowery=lowery, uppery=uppery) * ratio - np.testing.assert_allclose(integral_x_true, integral_x_np, atol=1e-3) - np.testing.assert_allclose(integral_y_true, integral_y_...
Ensure JDK is propagated into `experimental_run_in_sandbox` execution environment Using JVM targets as runnables was not working, because we didn't propagate the JDK immutable input into the execution environment. Now we do.
@@ -90,6 +90,7 @@ class ShellCommandProcessRequest: timeout: int | None tools: tuple[str, ...] input_digest: Digest + immutable_input_digests: FrozenDict[str, Digest] | None append_only_caches: FrozenDict[str, str] | None output_files: tuple[str, ...] output_directories: tuple[str, ...] @@ -135,6 +136,7 @@ async def _p...
SpreadsheetUI : Improve section ordering logic Don't put brand new sections after the "Other" section (if it's the last one). Deal with situation where a new section is created at the same time an old section is destroyed.
@@ -1389,17 +1389,25 @@ class _SectionChooser( GafferUI.Widget ) : def setSection( cls, cellPlug, sectionName ) : rowsPlug = cellPlug.ancestor( Gaffer.Spreadsheet.RowsPlug ) - sectionNames = cls.sectionNames( rowsPlug ) + oldSectionNames = cls.sectionNames( rowsPlug ) cls.__registerSectionMetadata( cellPlug, sectionNam...
Improved the assign analyst to incident script: 1. Fixed description 2. Added the ability to specify username to assign
@@ -4,9 +4,10 @@ commonfields: name: AssignAnalystToIncident system: true script: | - var userToAssign = null; + var userToAssign = args.username; assignBy = args.assignBy || 'random'; + if (!userToAssign) { switch(assignBy) { case 'random': var usersRes = executeCommand('getUsers', { roles: args.roles }); @@ -27,6 +28...
m1n1.proxy: Default to /dev/m1n1 We have udev rules, let's just default to a pretty device name to avoid conflicts with other devices.
@@ -135,7 +135,7 @@ class UartInterface(Reloadable): self.debug = debug self.devpath = None if device is None: - device = os.environ.get("M1N1DEVICE", "/dev/ttyACM0:115200") + device = os.environ.get("M1N1DEVICE", "/dev/m1n1:115200") if isinstance(device, str): baud = 115200 if ":" in device: @@ -1076,7 +1076,7 @@ __al...
Remove equivalent destinations when cleaning certificates Remove equivalent destinations when cleaning certificates. This will prevent Lemur from attempting to re-upload a certificate after it has been cleaned.
@@ -58,6 +58,13 @@ def execute_clean(plugin, certificate, source): try: plugin.clean(certificate, source.options) certificate.sources.remove(source) + + # If we want to remove the source from the certificate, we also need to clear any equivalent destinations to + # prevent Lemur from re-uploading the certificate. + for...
Remove note on usage of pip unzip fix
@@ -3,13 +3,6 @@ FAQ Frequently asked questions: -* **start up of khal and ikhal is very slow** - In some case the pytz (python timezone) is only available as a zip file, - as pytz accesses several parts during initialization this takes some - time. If `time python -c "import pytz; pytz.timezone('Europe/Berlin')"` - ta...
Fix bug: field that is not will raise a UnicodeDecodeError Test added. Related:
@@ -715,6 +715,15 @@ class TestFieldDeserialization: field.deserialize('invalid') assert 'Bad value.' in str(excinfo) + def test_field_deserialization_with_non_utf8_value(self): + non_utf8_char = '\xc8' + field = fields.String() + # This exception only happens in Python version <= 2.7 + if isinstance(non_utf8_char, byt...
launcher: add test for version requirements Make sure the modules stay in sync in case one is updated but we forgot to update the other. Tested-by: Mike Frysinger
@@ -26,6 +26,7 @@ import tempfile import unittest import git_command +import main import platform_utils from pyversion import is_python3 import wrapper @@ -83,6 +84,16 @@ class RepoWrapperUnitTest(RepoWrapperTestCase): self.assertEqual('', stderr.getvalue()) self.assertIn('repo launcher version', stdout.getvalue()) + d...
Fix off-by-one error While trying to use the `update` command for a custom format, I found that my update_to_2 was not called, because the range excludes the end version when it should include it.
@@ -836,7 +836,7 @@ def update_json(cls, path, api_version): "No version specified in {0}.".format(path)) if d['version'] < api_version: - for x in six.moves.xrange(d['version'] + 1, api_version): + for x in six.moves.xrange(d['version'] + 1, api_version + 1): d = getattr(cls, 'update_to_{0}'.format(x), lambda x: x)(d)...
cabana: remove extra frame border in logs remove extra frame border
@@ -195,8 +195,13 @@ void HeaderView::paintSection(QPainter *painter, const QRect &rect, int logicalI LogsWidget::LogsWidget(QWidget *parent) : QWidget(parent) { QVBoxLayout *main_layout = new QVBoxLayout(this); + main_layout->setContentsMargins(0, 0, 0, 0); + main_layout->setSpacing(0); + + QWidget *toolbar = new QWid...
Fixed import error in gym env missing optional pybullet environment made gym environment crash added flag to avoid crash
@@ -3,8 +3,9 @@ import gym try: import pybullet_envs import time + pybullet_found = True except ImportError: - pass + pybullet_found = False from gym import spaces as gym_spaces from mushroom_rl.environments import Environment, MDPInfo @@ -30,7 +31,7 @@ class Gym(Environment): """ # MDP creation self._close_at_stop = T...
Flash, erase, reset subcommands block by default. This matches the --no-wait argument's default. Added error log message if no session is returned when not blocking.
@@ -517,9 +517,10 @@ class PyOCDTool(object): unique_id=self._args.unique_id, target_override=self._args.target_override, frequency=self._args.frequency, - blocking=False, + blocking=(not self._args.no_wait), options=convert_session_options(self._args.options)) if session is None: + LOG.error("No device available to fl...
Add Tyk API Add Tyk API to Development
@@ -367,6 +367,7 @@ API | Description | Auth | HTTPS | CORS | | [StackExchange](https://api.stackexchange.com/) | Q&A forum for developers | `OAuth` | Yes | Unknown | | [Statically](https://statically.io/) | A free CDN for developers | No | Yes | Yes | | [Trending-Github](https://docs.trending-github.com) | Discover wh...
fix: fix misconfigured HA url overriding url input The get_url command would throw an exception even when hass_url was provided through the form. This would end up ignoring the hass_url input and result in a form loop. Thanks to for testing and discovering this. closes
@@ -244,12 +244,14 @@ class AlexaMediaFlowHandler(config_entries.ConfigFlow): errors={"base": "2fa_key_invalid"}, description_placeholders={"message": ""}, ) + hass_url: str = user_input.get(CONF_HASS_URL) + if hass_url is None: try: - hass_url: str = user_input.get( - CONF_HASS_URL, get_url(self.hass, prefer_external=...
sql: add ADMIN CHECK TABLE description * sql: add ADMIN CHECK TABLE description Via: PTAL * address morgan's comment * improve the language
@@ -128,13 +128,14 @@ mysql> show master status; ## `ADMIN` statement -This statement is a TiDB extension syntax, used to view the status of TiDB. +This statement is a TiDB extension syntax, used to view the status of TiDB and check the data of tables in TiDB. ```sql ADMIN SHOW DDL ADMIN SHOW DDL JOBS ADMIN SHOW DDL JO...
add alternative lldp local interface key On an the key is 'Local Interface' instead of 'Local Intf' when issuing 'show lldp neighbors detail'. Search for both options.
@@ -8,7 +8,7 @@ Value REMOTE_SYSTEM_CAPAB (.*) Value REMOTE_SYSTEM_ENABLE_CAPAB (.*) Start - ^Local Intf\s*?[:-]\s+${LOCAL_INTERFACE} + ^Local Int(?:er)?f(?:ace)?\s*?[:-]\s+${LOCAL_INTERFACE} ^Chassis id\s*?[:-]\s+${REMOTE_CHASSIS_ID} ^Port id\s*?[:-]\s+${REMOTE_PORT} ^Port Description\s*?[:-]\s+${REMOTE_PORT_DESCRIPTI...
raop: Harmonize protocol string in requests Relates to
@@ -18,6 +18,7 @@ _LOGGER = logging.getLogger(__name__) FRAMES_PER_PACKET = 352 USER_AGENT = "AirPlay/540.31" +HTTP_PROTOCOL = "HTTP/1.1" ANNOUNCE_PAYLOAD = ( "v=0\r\n" @@ -95,7 +96,9 @@ class RtspSession: async def info(self) -> Dict[str, object]: """Return device information.""" - device_info = await self.exchange("G...
Fix wrong import of service models from core, such as in A-CORD
@@ -13,13 +13,16 @@ from header import * {% if file_exists(m.name|lower+'_top.py') -%}{{ include_file(m.name|lower+'_top.py') }} {% endif %} {%- for l in m.links -%}{% set peer_name=l.peer.name %} + {% if peer_name not in proto.message_names -%} from core.models import {{ peer_name }} {%- endif -%} {%- endfor -%} {%- f...
wrstsegments: fix sync issues Fixes:
@@ -282,31 +282,32 @@ class subtitle(object): if n: # don't get the empty lines. itmes.append(n) - itemsn = 0 several_items = False + skip = False sub = [] for x in range(len(itmes)): - item = itmes[itemsn] - if strdate(item) and len(subs) > 0 and itmes[itemsn + 1] == subs[-1][1]: + item = itmes[x] + if strdate(item) a...
Accept custom provided cfg in WriteInferenceGraph. When provided, WriteInferenceGraph will use the provided cfg instead of getting it from model_registry.
@@ -1493,10 +1493,12 @@ class RunnerManager: """Sets the model name.""" self._model_name = model_name - def WriteInferenceGraph(self, prune_graph=True): + def WriteInferenceGraph(self, cfg=None, prune_graph=True): """Generates the inference graphs for a given model. Args: + cfg: Full `~.hyperparams.Params` for the mode...
ebd/ebuild-daemon-lib.bash: drop old read -N fallback EAPI 6 and up requires at least bash-4.2 so we can depend on that being available.
@@ -17,24 +17,13 @@ __ebd_read_line() { die "coms error in ${PKGCORE_EBD_PID}, read_line $@ failed w/ ${ret}: backing out of daemon." } -# are we running a version of bash (4.1 or so) that does -N? -if echo 'y' | read -N 1 &> /dev/null; then - __ebd_read_size() - { - read -u ${PKGCORE_EBD_READ_FD} -r -N $1 $2 - local r...
[hexagon][tests] re-enable maxpool hardware test Re-enable test_max_pool2d_slice.py when run on Hexagon hardware (as opposed to hexagon-sim). This is now safe because has been fixed.
@@ -330,9 +330,6 @@ class TestmaxPool2dSlice: expected_output_np, hexagon_session: Session, ): - if hexagon_session._launcher._serial_number != "simulator": - pytest.skip(msg="Due to https://github.com/apache/tvm/issues/11928") - target_hexagon = tvm.target.hexagon("v69") A = te.placeholder(input_shape_padded, name="A"...
Error "ipynb more recent than text file" is HTTP 400 To make sure it is displayed in Jupyter
@@ -300,15 +300,15 @@ def build_jupytext_contents_manager_class(base_contents_manager_class): + timedelta(seconds=config.outdated_text_notebook_margin) ): raise HTTPError( - 500, + 400, """{out} (last modified {out_last}) seems more recent than {src} (last modified {src_last}) Please either: - open {src} in a text edit...
Add kwarg support for `embedding_fn`. The `neural_structured_learning` package passes kwargs to the embedding function, so ensure that its use in the docs/examples includes it.
"\n", "# This function will be used to generate the embeddings for samples and their\n", "# corresponding neighbors, which will then be used for graph regularization.\n", - "def embedding_fn(features, mode):\n", + "def embedding_fn(features, mode, **params):\n", " \"\"\"Returns the embedding corresponding to the given ...
Fix `do_outdated()` when `pip freeze` is blank If no packages are installed, `results` contains a single empty string. This causes problems in the subsequent call to `convert_deps_from_pip`. Therefore filter out empty strings from `results` to avoid this. Fixes
@@ -1701,6 +1701,7 @@ def do_py(system=False): def do_outdated(): packages = {} results = delegator.run('{0} freeze'.format(which('pip'))).out.strip().split('\n') + results = filter(bool, results) for result in results: packages.update(convert_deps_from_pip(result))
[Bugfix] Fix primary key lookup The current primary key lookup is broken for tables that contain primary keys with more than 5 columns. indkey is an int2vector column and this seems to be the only way to lookup if attnum exists in the vector type because redshift doesn't support int2vector type.
@@ -299,12 +299,7 @@ WHERE AND att.attrelid = cl.oid and cl.relnamespace = pgn.oid and pgn.nspname = '%s' - and (ind.indkey[0] = att.attnum or - ind.indkey[1] = att.attnum or - ind.indkey[2] = att.attnum or - ind.indkey[3] = att.attnum or - ind.indkey[4] = att.attnum - ) + and att.attnum = ANY(string_to_array(textin(in...
settings_users: Refactor and extract function for last active. This just done to improves code readability and removes some code too.
@@ -170,29 +170,29 @@ function populate_users(realm_people_data) { }, }).init(); - var $users_table = $("#admin_users_table"); - list_render.create($users_table, active_users, { - name: "users_table_list", - modifier: function (item) { - var activity_rendered; + function get_rendered_last_activity(item) { var today = n...
Fix const-cast lint error in process_group_agent.cpp Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -437,6 +437,7 @@ void ProcessGroupAgent::handleSend(const SendWork& work) { std::vector<std::shared_ptr<c10d::ProcessGroup::Work>> pendingSends; const auto dst = work.to_.id_; + // NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast) auto serializedPayloadData = const_cast<char*>(serializedPayload->data()); auto se...
[interpolatable] Compare all masters to first master Reduces number of errors reported.
@@ -237,14 +237,15 @@ def test(glyphsets, glyphs=None, names=None): if b == bits: isomorphisms.append(_rot_list ([complex(*pt) for pt,bl in mirrored], i)) - # Check each master against the next one in the list. - for i, (m0, m1) in enumerate(zip(allNodeTypes[:-1], allNodeTypes[1:])): + # Check each master against the f...
Lexical env: give Env_Rebindings' Ref_Count field a constant offset TN:
@@ -377,8 +377,8 @@ private end record; type Env_Rebindings_Type (Size : Natural) is record - Rebindings : Env_Rebindings_Array (1 .. Size); Ref_Count : Natural := 1; + Rebindings : Env_Rebindings_Array (1 .. Size); end record; No_Env_Getter : constant Env_Getter := (False, null);
tests: Check all cases in check_has_permission_policies. This commit adds tests for POLICY_EVERYONE and POLICY_NOBODY in check_has_permission_policies test. The original code used these values but these were not covered in test.
@@ -1261,6 +1261,14 @@ Output: ) member_user.save() + do_set_realm_property(realm, policy, Realm.POLICY_NOBODY, acting_user=None) + self.assertFalse(validation_func(owner_user)) + self.assertFalse(validation_func(admin_user)) + self.assertFalse(validation_func(moderator_user)) + self.assertFalse(validation_func(member_...
Update apt_c23.txt Add domain + generic trail. Meanwhile domains from ```micropsia.txt``` are also present in ```apt_c23.txt```, ```micropsia.txt``` should be merged with ```apt_c23.txt```.
@@ -265,3 +265,13 @@ joycebyers.club harvey-ross.info davina-claire.xyz arthursaito.club + +# Reference: https://twitter.com/ClearskySec/status/1067109104492134400 +# Reference: https://blog.radware.com/security/2018/07/micropsia-malware/ + +samwinchester.club + +# Generic (callback) path + +/api/hazard/oneo +/api/whit...
Jenkins fixes from review comments Jenkinsfile fixes to address comments from Thanks!
@@ -41,6 +41,8 @@ pipeline { condaInstallDevito() runCondaTests() runExamples() + runCodecov() + buildDocs() } } stage('Build and test gcc-5 container') { @@ -56,6 +58,8 @@ pipeline { condaInstallDevito() runCondaTests() runExamples() + runCodecov() + buildDocs() } } stage('Build and test gcc-7 container') { @@ -73,6 +...
settings_users: Remove /json/users calls. As part of a refactoring, we are now able to remove the /json/users calls and get all the information needed on people.js. To do this, now the populate_users uses the people api to get all the active and non active human users.
@@ -127,31 +127,26 @@ function get_status_field() { } } -function failed_listing_users(xhr) { +function failed_listing_users() { loading.destroy_indicator($('#subs_page_loading_indicator')); const status = get_status_field(); - ui_report.error(i18n.t("Error listing users"), xhr, status); + const user_id = people.my_cur...
Update models.py Fix the handling of shared IPs (VIP, VRRF, etc.) when unique IP space enforcement is set. Add parentheses for the logical OR-statement to make the evaluation valid. Fixes:
@@ -596,11 +596,11 @@ class IPAddress(ChangeLoggedModel, CustomFieldModel): if self.address: # Enforce unique IP space (if applicable) - if self.role not in IPADDRESS_ROLES_NONUNIQUE and ( + if self.role not in IPADDRESS_ROLES_NONUNIQUE and (( self.vrf is None and settings.ENFORCE_GLOBAL_UNIQUE ) or ( self.vrf and self...
Update 00_intro.rst Deleted definition for R
@@ -21,11 +21,8 @@ Glossary ICU **I**\ nternational **C**\ omponents for **U**\ nicode. ICU is an open-source project of mature C/C++ and Java libraries for Unicode support, software internationalization, and software globalization. `Learn More <http://site.icu-project.org/>`_. - R - **R** is a free software environmen...
Reduce insights handler cache timer Fixes
@@ -165,12 +165,12 @@ class MainCompetitionseasonHandler(CacheableHandler): class MainInsightsHandler(CacheableHandler): - CACHE_VERSION = 2 + CACHE_VERSION = 3 CACHE_KEY_FORMAT = "main_insights" def __init__(self, *args, **kw): super(MainInsightsHandler, self).__init__(*args, **kw) - self._cache_expiration = 60 * 60 *...
Important bug fix for UHFQC detectors Solves the problem that looks like missing triggers.
@@ -1384,11 +1384,13 @@ class UHFQC_input_average_detector(Hard_Detector): print(nr_samples) def get_values(self): + self.UHFQC.quex_rl_readout(0) # resets UHFQC internal readout counters self.UHFQC.awgs_0_enable(1) try: temp = self.UHFQC.awgs_0_enable() except: temp = self.UHFQC.awgs_0_enable() + del temp if self.AWG ...
StandardNodeGadget : Fix bookmark texture mag filter GL_LINEAR_MIPMAP_LINEAR is not a valid magnification filter - see
@@ -161,7 +161,7 @@ static IECoreGL::Texture *bookmarkTexture() IECoreGL::Texture::ScopedBinding binding( *bookmarkTexture ); glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR ); - glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_LINEAR ); + glTexParameteri( GL_TEXTUR...
Add 'Sign In' link to navigation. Refs
{% if user_authenticated %} <li class="avatar"><a href="#"><img src="{{ request.user.picture_url }}" /></a></li> {% else %} - <li class="show-on-desktop"><a href="#">{{ _('Sign In') }}</a></li> + <li class="show-on-desktop"><a href="{{ login_link() }}">{{ _('Sign In') }}</a></li> {% endif %} </ul> </div>
short circuit error page when unit testing to avoid stack overflow a rendering error on the error page itself just creates a huge stack trace making it hard to debug
@@ -153,6 +153,9 @@ def server_error(request, template_name='500.html'): traceback_key = uuid.uuid4().hex cache.cache.set(traceback_key, traceback_text, 60*60) + if settings.UNIT_TESTING: + return HttpResponse(status=500) + return HttpResponseServerError(t.render( context={ 'MEDIA_URL': settings.MEDIA_URL,
change: rename .api._load._maybe_schema Rename .api._load._maybe_schema to try_to_load_schema to make its purpose clearer.
@@ -30,7 +30,7 @@ MappingT = typing.Dict[str, typing.Any] MaybeParserOrIdOrTypeT = typing.Optional[typing.Union[str, ParserT]] -def _maybe_schema(**options) -> typing.Optional[InDataT]: +def try_to_load_schema(**options) -> typing.Optional[InDataT]: """Try to load a schema object for validation. :param options: Optiona...
Update formbook.txt C2 addresses from: [0] [1]
@@ -25,3 +25,14 @@ www.n01.tech www.ourcrazyveterans.com www.sy-adm.com www.yinuxw.info + +# Reference: https://twitter.com/dms1899/status/1038276577254146049 +# Reference: https://pastebin.com/4pDsDuxn + +http://5.101.78.222/ +http://5.255.94.75/saite/gate.php +http://0day4today.com +http://www.commercekorea.net/hx289...
GDB helpers: materialize Entity rather than Self when appropriate TN:
@@ -26,11 +26,13 @@ is ## that we can use to dispatch on other properties and all. Self : ${Self.type.name} := ${Self.type.name} (${property.self_arg_name}); - ${gdb_bind('self', 'Self')} % if property._has_self_entity: Ent : ${Self.type.entity.name} := ${Self.type.entity.name}'(Node => Self, Info => E_Info); + ${gdb_b...
Update go language binary to version 1.17.2 Go client libraries from cloud.google.com/go may require an updated Go version. For instance, github.com/google/go-github requires Go version 1.13 or greater.
@@ -19,13 +19,13 @@ PACKAGE_NAME = 'go_lang' # Download go language release binary. When the binary need to be updated to # to a new version, please update the value of GO_TAR. -GO_TAR = 'go1.12.9.linux-amd64.tar.gz' +GO_TAR = 'go1.17.2.linux-amd64.tar.gz' GO_URL = 'https://dl.google.com/go/' + GO_TAR PREPROVISIONED_DA...
Update sso-saml-okta.rst Add SAML FAQ
@@ -100,6 +100,8 @@ It is also recommended to post an announcement about how the migration will work You may also configure SAML for Okta by editing ``config.json`` to enable SAML based on :ref:`SAML configuration settings <saml-enterprise>`. You must restart the Mattermost server for the changes to take effect. +.. in...
Remove ssl_verify property Only used when debugging, and in that case, the functionality could be implemented using private APIs.
@@ -49,19 +49,6 @@ class Client: Used when creating an external event loop to determine when to stop listening. """ - @property - def ssl_verify(self): - """Verify SSL certificate. - - Set to False to allow debugging with a proxy. - """ - # TODO: Deprecate this - return self._state._session.verify - - @ssl_verify.sette...
Temporarily limit setuptools version See
[build-system] requires = [ - "setuptools >= 41.0.0", + "setuptools == 41.0.0", # See https://github.com/ansible/molecule/issues/2350 "setuptools_scm >= 1.15.0", "setuptools_scm_git_archive >= 1.0", "wheel",
correct lineplot documentation for err_kws The variable err_band isn't used by lineplot. This seems to be a typo for err_kws.
@@ -1136,7 +1136,7 @@ lineplot.__doc__ = dedent("""\ err_style : "band" or "bars", optional Whether to draw the confidence intervals with translucent error bands or discrete error bars. - err_band : dict of keyword arguments + err_kws : dict of keyword arguments Additional paramters to control the aesthetics of the err...
Change column output order on `get-identities` Closes
@@ -60,7 +60,7 @@ def get_identities_command(values, lookup_style): else: ids = res['identities'] - print_table(ids, [('ID', 'id'), ('Full Name', 'name'), - ('Username', 'username'), + print_table(ids, [('ID', 'id'), ('Username', 'username'), + ('Full Name', 'name'), ('Organization', 'organization'), ('Email Address', ...
test: convert to pytest test_noop.py Split the tests and add verification for access to mount when necessary.
# # Runtime Tests for No-op Pipelines # - import json -import unittest import tempfile +import pytest from .. import test - -NOOP_V2 = { +@pytest.fixture(name="jsondata", scope="module") +def jsondata_fixture(): + return json.dumps({ "version": "2", "pipelines": [ { @@ -31,14 +31,19 @@ NOOP_V2 = { ] } ] -} + }) +@pytes...
[tests] improve output see
@@ -67,7 +67,7 @@ class TestConfig(unittest.TestCase): cfg = Config(["-l", "modules"]) result = self.stdout.getvalue() for module in all_modules(): - self.assertTrue(module["name"] in result) + self.assertTrue(module["name"] in result, "module {} missing in result".format(module["name"])) def test_invalid_list(self): w...
Reduce filter function to single function Removed duplicate filter functions to promote consistency between data provider classes outputs.
@@ -162,7 +162,6 @@ class Momentum(Scanner): async def run(self, back_time: datetime = None) -> List[str]: if not back_time: trade_able_symbols = await self._get_trade_able_symbols() - if isinstance(self.data_loader.data_api, PolygonData): filter_func = lambda ticket_snapshot: ( ticket_snapshot["ticker"] in trade_able_...
add support for displaying image messages with utime=0 some publishers don't fill in the utime field. In that case, we will will auto increment the utime as a sequential counter, since the app reads the utime field to know that a new image has arrived.
@@ -29,6 +29,7 @@ bool ddBotImageQueue::initCameraData(const QString& cameraName, CameraData* came { cameraData->mName = cameraName.toAscii().data(); cameraData->mHasCalibration = true; + cameraData->mImageMessage.utime = 0; cameraData->mCamTrans = bot_param_get_new_camtrans(mBotParam, cameraName.toAscii().data()); if ...
library/radosgw_user.py: fix user update Removes the case when display_name was defined prevously but was not provided when modifying. Without this change the module will change display_name to name even if display_name was not name originally. See
@@ -265,8 +265,6 @@ def modify_user(module, container_image=None): cluster = module.params.get('cluster') name = module.params.get('name') display_name = module.params.get('display_name') - if not display_name: - display_name = name email = module.params.get('email', None) access_key = module.params.get('access_key', N...
Changed the policy about cached Nones Now we use them for any cache TTL
@@ -85,8 +85,7 @@ class QueryCache(object): if self.ttl_min < 0 or (self.ttl_min > 0 and dif_minutes <= self.ttl_min): with open(file, "rb") as fh: result = pickle.loads(fh.read()) - # Valid load if we got a valid result or we have a persistent cache - return result, result is not None or self.ttl_min < 0 + return resu...
fix Subscribers on slots graph HG-- branch : feature/microservices
{ "key": "object", "operator": "=", - "value": "bng1a.mo" + "value": "$device" } ], "refId": "B", { "key": "object", "operator": "=", - "value": "bng1a.mo" + "value": "$device" } ], "refId": "A",
fix search for testdata don't look for specific repo name, but look for the testdata directory directly should fix the deploy of delpi-epidata, which currently fails due to unit tests failing due to being unable to find test data
@@ -21,7 +21,7 @@ class TestUtils: def __init__(self, abs_path_to_caller): # navigate to the root of the delphi-epidata repo path_to_repo = Path(abs_path_to_caller) - while path_to_repo.name != 'delphi-epidata': + while not (path_to_repo / 'testdata').exists(): if not path_to_repo.name: raise Exception('unable to deter...
StandardLightVisualiser : Conform spotlightCone wireframe weight Now we have reduced line thickness in general, and previously removed inner cone spokes, having the outer cone be thinner makes soft spots seem a lot fainter than ones with only a single cone being drawn. This feels like a better trade-off.
@@ -739,34 +739,18 @@ IECoreGL::ConstRenderablePtr StandardLightVisualiser::spotlightCone( float inner addCone( innerAngle, lensRadius, vertsPerCurve->writable(), p->writable(), length, !drawSecondaryCone ); - IECoreGL::CurvesPrimitivePtr curves = new IECoreGL::CurvesPrimitive( IECore::CubicBasisf::linear(), false, ver...
Except OSError with errno.WSAEACCES when connecting "OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions."
@@ -73,7 +73,8 @@ class TcpClient: # There are some errors that we know how to handle, and # the loop will allow us to retry if e.errno in (errno.EBADF, errno.ENOTSOCK, errno.EINVAL, - errno.ECONNREFUSED): + errno.ECONNREFUSED, # Windows-specific follow + getattr(errno, 'WSAEACCES', None)): # Bad file descriptor, i.e. ...
Update main.tf adding back teamcity based outputs
@@ -181,3 +181,15 @@ output "public_agent_ips" { description = "These are the IP addresses of all public agents" value = "${join(",", module.dcos.infrastructure.public_agents.private_ips)}" } + +output "masters-ips" { + value = "${module.dcos.masters-ips}" +} + +output "cluster-address" { + value = "${module.dcos.maste...
config.py: Add support for source containers Adding support for the application/vnd.oci.source.image.config.v1+json mime type.
@@ -757,6 +757,9 @@ class DefaultConfig(ImmutableConfig): "application/tar+gzip", "application/vnd.cncf.helm.chart.content.v1.tar+gzip", ], + "application/vnd.oci.source.image.config.v1+json": [ + "application/vnd.oci.image.layer.v1.tar+gzip" + ], } # Feature Flag: Whether to allow Helm OCI content types.
Add get_flink_metadata This will be used to expose the metadata in flink paasta API object
@@ -183,6 +183,22 @@ def get_flink_status( raise +def get_flink_metadata( + kube_client: KubeClient, service: str, instance: str +) -> Optional[Mapping[str, Any]]: + try: + co = kube_client.custom.get_namespaced_custom_object( + **flink_custom_object_id(service, instance) + ) + metadata = co.get("metadata") + return me...
[Small] Minor optimization for ImageScaleTransformer Image observation can take a lot of memory. So we try to make the memory footprint as small as possible. 1. uint8 can be directly multiplied with a float number without converting it first. 2. Do not add self._min if possible.
@@ -337,7 +337,6 @@ class FrameStacker(DataTransformer): def _stack_frame(obs, i): prev_obs = replay_buffer.get_field(self._exp_fields[i], env_ids, prev_positions) - prev_obs = convert_device(prev_obs) stacked_shape = alf.nest.get_field( self._transformed_observation_spec, self._fields[i]).shape # [batch_size, mini_bat...
Fixed wrong behaviour of release license caused by upnext and supplemental media type videoid
@@ -32,11 +32,10 @@ except NameError: # Python 3 class MSLHandler(object): """Handles session management and crypto for license, manifest and event requests""" - last_license_session_id = '' last_license_url = '' - last_license_release_url = '' - last_drm_context = '' - last_playback_context = '' + licenses_session_id ...
docker: use version 5.4 of tpm2-tools We need the lastest version of tpm2_eventlog to parse logs with newer Shims correctly.
@@ -2,6 +2,14 @@ FROM fedora:37 AS keylime_base LABEL version="_version_" description="Keylime Base - Only used as an base image for derived packages" MAINTAINER Keylime Team <main@keylime.groups.io> +RUN dnf -y install dnf-plugins-core git && dnf -y builddep tpm2-tools +RUN git clone -b 5.4 https://github.com/tpm2-sof...
Slightly simplify BinaryReader There was no need for the BufferedReader, since everything is already in memory. Further, the stream parameter was never used, so it was also unnecessary. The check for None when reading length was also unnecessary, since we could just pass 1 to begin with.
This module contains the BinaryReader utility class. """ import os +import time from datetime import datetime, timezone, timedelta -from io import BufferedReader, BytesIO +from io import BytesIO from struct import unpack -import time from ..errors import TypeNotFoundError from ..tl.alltlobjects import tlobjects @@ -18,...
Changed _default_manager in favor of _base_manager This fixes a bug where models with overwritten default managers that filter out some instances do not get added to revisions properly.
@@ -218,6 +218,7 @@ def add_to_revision(obj, model_db=None): def _save_revision(versions, user=None, comment="", meta=(), date_created=None, using=None): from reversion.models import Revision # Only save versions that exist in the database. + # Use _base_manager so we don't have problems when _default_manager is overri...
Add subtest support (https://github.com/CleanCut/green/issues/111) Great start! That really helped get things going. There's some corner cases we need to take care off and some tests that need to be included. I spent a few hours researching it last night. I'll see if I can finish polishing it up now.
@@ -48,9 +48,13 @@ class ProtoTest(): """ def __init__(self, test=None): if test: + method_parts = str(test).split(None, 2) + if hasattr(test, 'test_case'): + test = test.test_case self.module = test.__module__ self.class_name = test.__class__.__name__ - self.method_name = str(test).split()[0] + self.method_name = meth...
Add pattern_syntax error to Raisecom.ROS profile HG-- branch : feature/microservices
@@ -22,6 +22,7 @@ class Profile(BaseProfile): pattern_prompt = r"^\S+?#" command_more = " " command_exit = "exit" + pattern_syntax_error = r"% \".+\" (?:Unknown command.)" rogue_chars = [re.compile(r"\x08+\s+\x08+"), "\r"] rx_ver = re.compile(
[modules/pomodoro] Add note about command chaining to doc fixes
@@ -10,7 +10,10 @@ Parameters: * pomodoro.format: Timer display format with "%m" and "%s" for minutes and seconds (defaults to "%m:%s") Examples: "%m min %s sec", "%mm", "", "timer" * pomodoro.notify: Notification command to run when timer ends/starts (defaults to nothing) - Example: 'notify-send "Time up!"' + Example:...
Update Redis exporter to 1.12.0 Update Redis exporter to 1.12.0 and fix license.
@@ -58,11 +58,10 @@ packages: context: static: <<: *default_static_context - version: 1.9.0 - license: ASL 2.0 - release: 2 + version: 1.12.0 + license: MIT summary: Prometheus exporter for Redis server metrics. - description: Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, and 5.x + description: P...
replace.py: allow to edit modified text Allow to edit the latest version (i.e., with modifications) of the text. This allows to make changes without further replacements being applied. It is useful to make changes that should not be caught by replacements or to amend unwanted fixes in complex replacement cases.
@@ -733,13 +733,13 @@ class ReplaceRobot(Bot): continue applied = set() new_text = original_text + last_text = None while True: if self.isTextExcepted(new_text): pywikibot.output(u'Skipping %s because it contains text ' u'that is on the exceptions list.' % page.title(asLink=True)) break - last_text = None while new_tex...
filter: Show stream and topic title for near link narrows. Updates the `filter.get_title` logic to return the stream name for narrows that include the stream, topic and near operators. That way the browser/tab title remains the same for these views, which have a particular scroll offset.
@@ -662,7 +662,10 @@ export class Filter { get_title() { // Nice explanatory titles for common views. const term_types = this.sorted_term_types(); - if (term_types.length === 2 && _.isEqual(term_types, ["stream", "topic"])) { + if ( + (term_types.length === 3 && _.isEqual(term_types, ["stream", "topic", "near"])) || + ...
expressen: they started to use https for their stuff now fixes
@@ -21,7 +21,7 @@ class Expressen(Service): yield ServiceError("Excluding video") return - match = re.search('="(http://www.expressen.se/tvspelare[^"]+)"', data) + match = re.search('="(https://www.expressen.se/tvspelare[^"]+)"', data) if not match: log.error("Can't find video id") return
Update android_bankbot.txt > ```android_roamingmantis```
@@ -1978,12 +1978,6 @@ bbvaupdateappdownload.com lockappdown.com update-bbva-v2.com -# Reference: https://www.virustotal.com/gui/file/1cafde8a16790eb1b8b6839daced4f015b0d7ce8619ecdb69580cd00d3bbd3ee/detection - -http://192.186.11.125 -192.186.11.125:6666 -220103.top - # Reference: https://twitter.com/malwrhunterteam/st...
status: optimize the _fill_statuses method Close
@@ -383,8 +383,12 @@ class RemoteLOCAL(RemoteBase): return ret def _fill_statuses(self, checksum_info_dir, local_exists, remote_exists): + # Using sets because they are way faster for lookups + local = set(local_exists) + remote = set(remote_exists) + for md5, info in checksum_info_dir.items(): - status = STATUS_MAP[(m...
Windows: Fixup dependency walker usage in unicode directories * This prevented the tool from discovering dependencies and made it produce non-working dist folders, in or outside of unicode paths. * Produced outside, the dist folders were good though.
@@ -52,6 +52,7 @@ from nuitka.utils.Execution import withEnvironmentPathAdded from nuitka.utils.FileOperations import ( areSamePaths, deleteFile, + getExternalUsePath, getFileContentByLine, getFileContents, getSubDirectories, @@ -1029,7 +1030,8 @@ def detectBinaryPathDLLsWindowsDependencyWalker( "-pa1", "-ps1", binary_...
Update allen-cell-imaging-collections.yaml Removing documentation link from description field.
Name: Allen Cell Imaging Collections Description: | - https://open.quiltdata.com/b/allencell - This bucket contains multiple datasets (as Quilt packages) created by the Allen Institute for Cell Science (AICS). The imaging data in this bucket contains either of the following:
pagegenerators: try..except UnicodeEncodeError on getattr() Python 2 getattr() will do implicit convertion from unicode to str, and when the unicode is non-ascii it'll choke. Since we don't really have a reason to use non-ascii methods, I'm just doing try..except instead if detecting if it's Python 2 and conditionally ...
@@ -1176,7 +1176,11 @@ class GeneratorFactory(object): if value == '': value = None + try: handler = getattr(self, '_handle_' + arg[1:], None) + except UnicodeEncodeError: + # getattr() on py2 does implicit unicode -> str + return False if handler: handler_result = handler(value) if isinstance(handler_result, bool):
Implemented review suggestions. Added namespaces for json loading and random choices. Changed Path() to take a direct path instead of an argument separated path. Added aliases "anthem" and "pridesong". Added periods to the end of all doc strings.
+import json import logging -from json import load +import random from pathlib import Path -from random import choice from discord.ext import commands @@ -23,24 +23,24 @@ class PrideAnthem(commands.Cog): If none can be found, it will log this as well as provide that information to the user. """ if not genre: - return c...
Big bucks: v2 analysis not saving fit result values Internal representation of the lmfit.Parameters make the value a '_val'. Also we filtered out all variables of the internal representation with a '_', deeming it too private. Bonus bug solve: the key on which the result was saved was overwritten
@@ -525,11 +525,9 @@ class BaseDataAnalysis(object): fit_fn = fit_dict.get('fit_fn', None) model = fit_dict.get('model', lmfit.Model(fit_fn)) fit_guess_fn = fit_dict.get('fit_guess_fn', None) - if fit_guess_fn is None: if fitting_type == 'model' and fit_dict.get('fit_guess', True): fit_guess_fn = model.guess - if guess...
Mae reformat script working directory free After this PR, `dev/reformat` script is not affected by the current working directory.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +# The current directory of the script. +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +FWDIR="$( cd "$DIR"/.. && pwd )" +cd "$FWD...