message
stringlengths
13
484
diff
stringlengths
38
4.63k
Patch spectrum.js for jQuery 3 compatibility. This includes removing deprecated functions (namely bind/unbind/delegate) and fix an aspect of event handling that breaks in the new jQuery.
} } - offsetElement.bind("click.spectrum touchstart.spectrum", function (e) { + offsetElement.on("click.spectrum touchstart.spectrum", function (e) { toggle(); e.stopPropagation(); // Handle user typed input textInput.change(setFromTextInput); - textInput.bind("paste", function () { + textInput.on("paste", function () ...
Update table_info.sql Fixed columns "rows", pct_stats_off, and pct_unsorted to be correct for DISTSTYLE ALL.
@@ -20,6 +20,7 @@ Notes: History: 2015-02-16 ericfe created 2017-03-23 thiyagu Added percentage encoded column metric (pct_enc) and fixes +2017-10-01 mscaer Fixed columns "rows", pct_stats_off, and pct_unsorted to be correct for DISTSTYLE ALL. ****************************************************************************...
Fix "Load more" not shown in Windows Fixes a bug where the "Load more" button wouldn't appear on browsers in Windows
@@ -610,7 +610,7 @@ class ExperimentRunsTableCompactView extends React.Component { scrollTop: grid.state.scrollTop, }; const isRunsListShort = scrollHeight < clientHeight; - const isAtScrollBottom = isRunsListShort || (clientHeight + scrollTop === scrollHeight); + const isAtScrollBottom = isRunsListShort || (clientHeig...
Fix issue 724 Vertical_raster is saved in the test file but setting vertical_raster is not possible because it's a To rectify we go ahead and except the attribute error for the setattr. there.
@@ -404,15 +404,18 @@ class SVGLoader: key, type_v(element.values[key]), ) - except (ValueError, KeyError): + except (ValueError, KeyError, AttributeError): pass elif type_v == bool: + try: setattr( op.settings, key, str(element.values[key]).lower() in ("true", "1"), ) + except (ValueError, KeyError, AttributeError): +...
Fix crash when clicking diagnostics hover "Code Action" link Fixes following traceback: Traceback (most recent call last): File "C:\Apps\Sublime\Data\Packages\LSP\main.py", line 1965, in <lambda> on_navigate=lambda href: self.on_diagnostics_navigate(self, href, point, diagnostics)) TypeError: on_diagnostics_navigate() ...
@@ -1967,7 +1967,7 @@ class HoverHandler(sublime_plugin.ViewEventListener): location=point, wrapper_class="lsp_hover", max_width=800, - on_navigate=lambda href: self.on_diagnostics_navigate(self, href, point, diagnostics)) + on_navigate=lambda href: self.on_diagnostics_navigate(href, point, diagnostics)) def on_diagnos...
[Jira] Update jira.py * Update jira.py added update filter method * fixed spaces * fixed spaces * added return in docstring
@@ -590,6 +590,22 @@ class Jira(AtlassianRestAPI): url = "{base_url}/{id}".format(base_url=base_url, id=filter_id) return self.get(url) + def update_filter(self, filter_id, jql, **kwargs): + """ + :param filter_id: int + :param jql: str + :param kwargs: dict, Optional (name, description, favourite) + :return: + """ + a...
Add PyUnicode_AsUTF8AndSize to cpython imports [0.29.x] Backport of
@@ -314,9 +314,25 @@ cdef extern from *: # raised by the codec. bytes PyUnicode_EncodeUTF8(Py_UNICODE *s, Py_ssize_t size, char *errors) - # Encode a Unicode objects using UTF-8 and return the result as Python string object. Error handling is ``strict''. Return NULL if an exception was raised by the codec. + # Encode a...
Update torchvision_tutorial.rst * Update torchvision_tutorial.rst Fixes link to ipynb notebook for this article. * Update torchvision_tutorial.rst
@@ -3,7 +3,7 @@ TorchVision Object Detection Finetuning Tutorial .. tip:: To get the most of this tutorial, we suggest using this - `Colab Version <https://colab.research.google.com/github/pytorch/vision/blob/temp-tutorial/tutorials/torchvision_finetuning_instance_segmentation.ipynb>`__. + `Colab Version <https://colab...
Fix lint issues Summary: Pull Request resolved:
@@ -173,8 +173,10 @@ module_tests = [ module_name='Softplus', constructor_args=(2, -100), input_size=(10, 20), - reference_fn=(lambda i, *_: ((i * 2) > -100).type_as(i) * i + - ((i * 2) <= -100).type_as(i) * 1. / 2. * torch.log(1 + torch.exp(2 * i))), + reference_fn=( + lambda i, *_: ((i * 2) > -100).type_as(i) * i + +...
Fixed logging message Added file documentation
# remove all releaseNotes from files in: Itegrations, Playbooks, Reports and Scripts. -# Note: using yaml will destroy the file structures so filtering as regular text-file. +# Note: using yaml will destroy the file structures so filtering as regular text-file.\ +# Note2: file must be run from root directory with 4 sub...
[DOCS] Update deployment_google_cloud_composer.rst * Update deployment_google_cloud_composer.rst Updated based on comment from user * Update deployment_google_cloud_composer.rst
@@ -39,6 +39,8 @@ Note: These steps are basically following the :ref:`Deploying Great Expectations Note: You may want to reference our :ref:`Configuring metadata stores <how_to_guides__configuring_metadata_stores>` and :ref:`Configuring Data Docs <how_to_guides__configuring_data_docs>` how-to guides. All of the stores ...
Update CODEOWNERS Summary: teng-li is passing the baton to mrshenli. Thanks for all your work on distributed teng-li!! :tada: Pull Request resolved:
/docs/cpp @goldsborough @ebetica @yf225 /torch/csrc/api/ @ebetica @goldsborough @yf225 /test/cpp/api/ @ebetica @goldsborough @yf225 -/torch/lib/c10d/ @apaszke @pietern @teng-li -/torch/csrc/distributed/ @apaszke @pietern @teng-li -/torch/distributed/ @apaszke @pietern @teng-li -/test/test_c10d.py @apaszke @pietern @ten...
Add members marker and unsafe_name to pkg_resources.Requirement For now specify Requirement.marker as Optional[Any] (as suggested by as we can't import packaging.markers (pkg_resource does that via runtime magic in pkg_resources.external) Closes
@@ -68,10 +68,14 @@ class Environment: def parse_requirements(strs: Union[str, Iterable[str]]) -> Generator[Requirement, None, None]: ... class Requirement: + unsafe_name: str project_name: str key: str extras: Tuple[str, ...] specs: List[Tuple[str, str]] + # TODO: change this to Optional[packaging.markers.Marker] once...
see also : groupby in resample doc and vice-versa groupby is like a resample on non-contiguous data
@@ -8931,6 +8931,8 @@ class Dataset( DataArray.groupby core.groupby.DatasetGroupBy pandas.DataFrame.groupby + Dataset.resample + DataArray.resample """ from xarray.core.groupby import DatasetGroupBy @@ -9210,6 +9212,8 @@ class Dataset( DataArray.resample pandas.Series.resample pandas.DataFrame.resample + Dataset.groupb...
Poetry: update Windows install instructions, as noted in their github repo Check out. The old instructions failed big time for me on a second Windows box I just tried to install it to. This new one works with the last release just fine.
@@ -82,9 +82,9 @@ poetry install Enter the PowerShell command prompt and execute, ```powershell -(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python - -# the path can be added to system, so it applies to every terminal. -$env:PATH += ";$...
[air] Do not use gzip for checkpoint dict conversion Gzipping binary data is inefficient and slows down data transfer significantly.
@@ -479,7 +479,7 @@ def _temporary_checkpoint_dir() -> str: def _pack(path: str) -> bytes: """Pack directory in ``path`` into an archive, return as bytes string.""" stream = io.BytesIO() - with tarfile.open(fileobj=stream, mode="w:gz", format=tarfile.PAX_FORMAT) as tar: + with tarfile.open(fileobj=stream, mode="w", for...
Update install.rst Added command for installation all the prerequisites if user is on Ubuntu 17.04.
@@ -21,6 +21,12 @@ all the prerequisites using the following command: sudo apt install git python-pip nodejs-legacy npm postgresql postgresql-server-dev-9.5 postgresql-contrib-9.5 libxml2-dev libxslt1-dev python-dev libmemcached-dev virtualenv +If you're on Ubuntu 17.04, you can install all the prerequisites using the ...
Removed new privilege check It isn't strictly necessary for this PR, and it breaks a bunch of tests that would need to have domain_has_privilege patched.
@@ -1706,9 +1706,6 @@ class CommCareUser(CouchUser, SingleMembershipMixin, CommCareMobileContactMixin) return self.user_data.pop(key, default) def get_user_data_profile(self, profile_id): - if not domain_has_privilege(self.domain, privileges.APP_USER_PROFILES): - return None - from corehq.apps.users.views.mobile.custom...
Update 5-minutes-to-zfit article. Correct some typos and phrasings. Update some code snippets that either don't work anymore or are no longer best practice. Add a paragraph explaining that Parameters are mutable.
The zfit library provides a simple model fitting and sampling framework for a broad list of applications. This section is designed to give an overview of the main concepts and features in the context of likelihood fits in a *crash course* manner. The simplest example is to generate, fit and plot a Gaussian distribution...
Update tox.ini Ignore numpy security issue, as it is not used in packaged application as is needed for tests only
@@ -54,11 +54,10 @@ commands=isort -c --diff --recursive hug [testenv:py37-safety] deps= -rrequirements/build_style_tools.txt - numpy==1.16.4 marshmallow==3.0.0rc6 whitelist_externals=flake8 -commands=safety check +commands=safety check -i 36810 [testenv:pywin] deps =-rrequirements/build_windows.txt
Make it possible to ignore specific resolved expression variables This will make it possible during resolved expression construction to introduce dummy variables that will not interfere with the "unused bindings" warning. TN:
@@ -1099,6 +1099,7 @@ class AbstractVariable(AbstractExpression): self.static_type = assert_type(type, CompiledType) self.name = name self.abstract_var = abstract_var + self._ignored = False super(AbstractVariable.Expr, self).__init__( skippable_refcount=True, abstract_expr=abstract_expr @@ -1125,7 +1126,15 @@ class Ab...
Some additional clarity to the proposal after lengthy discussions about scheduling. + Make port an external linkage via extern call
@@ -126,7 +126,7 @@ a global scope to all identifiers in order to declare values shared across all ` // Defined within `cal`, so it may not leak back out to the enclosing blocks scope float new_freq = 5.2e9; // declare global port - port d0 = getport("drive", $0); + extern port d0; // reference `freq` variable from enc...
pager: catch startup failures on Windows If the user's pager settings are broken, display an error message rather than crash to avoid confusing them. Tested-by: Mike Frysinger
@@ -56,8 +56,11 @@ def _PipePager(pager): global pager_process, old_stdout, old_stderr assert pager_process is None, "Only one active pager process at a time" # Create pager process, piping stdout/err into its stdin + try: pager_process = subprocess.Popen([pager], stdin=subprocess.PIPE, stdout=sys.stdout, stderr=sys.st...
Update noaa-ufs-shortrangeweather.yaml Added SNS topic
@@ -33,3 +33,7 @@ Resources: Type: S3 Bucket Explore: - '[Browse Bucket](https://noaa-ufs-srw-pds.s3.amazonaws.com/index.html)' + - Description: New data notifications for UFS Short-Range Weather data, only Lambda and SQS protocols allowed + ARN: arn:aws:sns:us-east-1:709902155096:NewUFSSRWObject + Region: us-east-1 + ...
Clarify message when `remote_dir` exists If `remote_dir` exists, SshChannel.push_file complains that pushing failed. This is a bit confusing for users because pushing did not actually fail-- it was just not necessary to create `remote_dir`.
@@ -133,14 +133,14 @@ class SshChannel (): try: self.sftp_client.mkdir(remote_dir) except IOError as e: + if e.errno is None: + logger.info("Copying {0} into existing directory {1}".format(local_source, remote_dir)) + else: logger.error("Pushing {0} to {1} failed".format(local_source, remote_dir)) if e.errno == 2: rais...
Fix playing audio streams from ffpyplayer Everything in the title - try playing a webradio such as `http://www.tms-radio.com/radio.ogg` and it will fail because duration turns from `None` to `0.0`, which doesn't trigger this condition.
@@ -126,7 +126,7 @@ class SoundFFPy(Sound): # wait until loaded or failed, shouldn't take long, but just to make # sure metadata is available. s = time.perf_counter() - while ((not player.get_metadata()['duration']) and + while (player.get_metadata()['duration'] is None and not self.quitted and time.perf_counter() - s ...
Moves 'algorithms' test package from "default" to "drivers" TravisCI case. Since the "default" case is timing out (now that we can't use multiprocessing due to the "Darwin" bug) on TravisCI, this attempts to load balance the TravisCI cases by moving the 'algorithms' tests out of the "default" and into "drivers" case.
@@ -34,10 +34,10 @@ elif doReportB == 'True': # Removed: 'testFigureFormatter.py', elif doDrivers == 'True': - tests = ['drivers'] + tests = ['drivers', 'algorithms'] elif doDefault == 'True': - tests = ['objects', 'tools', 'iotest', 'optimize', 'algorithms', 'construction','extras'] + tests = ['objects', 'tools', 'iot...
[IMPR] some improvements for data_ingestion.py use try..else instead of continue inside exception use contextlib.closing to close a file
@@ -285,13 +285,11 @@ def main(*args): filename = os.path.join(csv_dir, configuration['csvFile']) try: - f = codecs.open(filename, 'r', configuration['csvEncoding']) except (IOError, OSError) as e: pywikibot.error('%s could not be opened: %s' % (filename, e)) - continue - - try: + else: + with f: files = CSVReader(f, u...
Adjust package version requirements Allow django-ipware to have a newer version in the future Update Python version requirement to match package specifiers
@@ -35,8 +35,8 @@ setup( package_dir={"axes": "axes"}, use_scm_version=True, setup_requires=["setuptools_scm"], - python_requires="~=3.6", - install_requires=["django>=3.2", "django-ipware>=3,<5", "setuptools"], + python_requires=">=3.7", + install_requires=["django>=3.2", "django-ipware>=3", "setuptools"], include_pac...
Update handleAdd to add node at dropped location Now when a user drag and drop a notebook into the piepline editor it will add it in the location it is dropped. This includes some extra code to handle the original usage. Fixes
@@ -317,8 +317,17 @@ class Pipeline extends React.Component<Pipeline.Props, Pipeline.State> { this.widgetContext.model.fromJSON(this.canvasController.getPipelineFlow()); } - handleAdd() { + handleAdd(x?: number, y?: number) { let failedAdd = 0; + let position = 0; + let missingXY = !(x && y); + + // if either x or y is...
[TR] DATA_SOURCES: show real URL change URL in documentation to show the realtime graph (not a login page)
@@ -121,7 +121,7 @@ Real-time electricity data is obtained using [parsers](https://github.com/tmrowc - Saudi Arabia: [GCCIA](https://www.gccia.com.sa/) - Switzerland: [ENTSOE](https://transparency.entsoe.eu/content/static_content/Static%20content/web%20api/Guide.html) - Taiwan: [TAIPOWER](http://www.taipower.com.tw/d00...
Remove GNU specific "tm" struct fields "tm_zone" and "tm_gmtoff" from libc/time.pxd because they get in the way of automatic struct conversions. See
@@ -20,8 +20,9 @@ cdef extern from "<time.h>" nogil: int tm_wday int tm_yday int tm_isdst - char *tm_zone - long tm_gmtoff + # GNU specific extensions + #char *tm_zone + #long tm_gmtoff int daylight # global state long timezone
[Doc] Added md5sum info for OGB-LSC dataset * Added md5sum for the large dataset files md5sum helps in validating the correctness of large dataset files once downloaded. Refer:
- [Node Classification with MAG240M](https://dgl-data.s3-accelerate.amazonaws.com/dataset/OGB-LSC/mag240m_kddcup2021.zip) - [Link Prediction with WikiKG90M](https://dgl-data.s3-accelerate.amazonaws.com/dataset/OGB-LSC/wikikg90m_kddcup2021.zip) - [Graph Classification with PCQM4M](https://dgl-data.s3-accelerate.amazonaw...
AUTO: Enable statsd exporter on staging We want to do some load testing so we want to use the Prometheus metrics for observing the system Roll out the statsd exporter work to staging too
@@ -69,7 +69,7 @@ applications: AWS_ACCESS_KEY_ID: '{{ AWS_ACCESS_KEY_ID }}' AWS_SECRET_ACCESS_KEY: '{{ AWS_SECRET_ACCESS_KEY }}' - {% if environment == 'preview' %} + {% if environment in ['preview', 'staging'] %} STATSD_HOST: "statsd.notify.tools" STATSD_PREFIX: "" {% else %}
Remove %s in formatting previously %s was used to display variable for string formatting which won't work.
@@ -24,7 +24,7 @@ def execute(statespace): instruction = state.get_current_instruction() if instruction['opcode'] == "ORIGIN": - description = "Function %s retrieves the transaction origin (tx.origin) using the ORIGIN opcode. " \ + description = "The function `{}` retrieves the transaction origin (tx.origin) using the ...
Fix disable_redirect_output to fix We constant disable and reenable logging/redirection. Apparently we are disabling it in the wrong order, which in GDB 8.1 causes issues.
@@ -1160,8 +1160,8 @@ def enable_redirect_output(to_file="/dev/null"): def disable_redirect_output(): """Disable the output redirection, if any.""" - gdb.execute("set logging redirect off") gdb.execute("set logging off") + gdb.execute("set logging redirect off") return
Update version 0.8.0 -> 0.8.1 New Features * `BatchReverseComposite` and `ReverseAdvanceComposite` * Failover support in `DWaveSampler` * Embedding composites now return QPU `problem_id` in sampleset's info field and additional embedding context/parameters * Warnings generation (during embedding/unembedding)
# ============================================================================= __all__ = ['__version__', '__author__', '__authoremail__', '__description__'] -__version__ = '0.8.0' +__version__ = '0.8.1' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'All things D-Wave S...
Minor fix getting novel info Minor fix getting novel info
@@ -8,6 +8,7 @@ from ..utils.crawler import Crawler logger = logging.getLogger(__name__) chapter_info_url = 'https://www.wattpad.com/v4/parts/%s?fields=id,title,pages,text_url&_=%d' +story_info_url = 'https://www.wattpad.com/api/v3/stories/%s' class WattpadCrawler(Crawler): base_url = [ @@ -21,21 +22,24 @@ class Wattpa...
remove NameMC field NameMC now seems to be using some sort of obfuscation
@@ -36,7 +36,7 @@ class MinecraftData: await self.bot.say(chat.error("This player not found")) return em = discord.Embed(timestamp=ctx.message.timestamp) - em.add_field(name="NameMC profile", value="[{}](https://namemc.com/profile/{})".format(nickname, uuid)) + # em.add_field(name="NameMC profile", value="[{}](https://...
Update telnetconsole.rst Change spelling of bellow to below.
@@ -45,7 +45,7 @@ the console you need to type:: >>> By default Username is ``scrapy`` and Password is autogenerated. The -autogenerated Password can be seen on scrapy logs like the example bellow:: +autogenerated Password can be seen on scrapy logs like the example below:: 2018-10-16 14:35:21 [scrapy.extensions.telnet...
Orphan: don't create a new lexical env. if input is already an orphan TN:
@@ -879,13 +879,16 @@ package body Langkit_Support.Lexical_Env is function Orphan (Self : Lexical_Env) return Lexical_Env is begin + -- If Self is already an orphan, don't create yet another lexical env + -- wrapper: just return Self itself. Inc_Ref (Self); - return Wrap - (new Lexical_Env_Type' + return (if Self.Kind ...
doc: readme: remove travis bagde CI is now implemented in GitHub actions
.. image:: https://img.shields.io/pypi/l/lona.svg :alt: pypi.org :target: https://pypi.org/project/lona -.. image:: https://img.shields.io/travis/com/lona-web-org/lona/master.svg - :alt: Travis branch - :target: https://travis-ci.com/lona-web-org/lona .. image:: https://img.shields.io/pypi/pyversions/lona.svg :alt: pyp...
run tests with node 8 [nodeploy]
@@ -16,7 +16,7 @@ env: - JOB=JSUNIT - JOB=LINT before_install: -- nvm install 6.0.0 +- nvm install 8.0.0 install: - travis_retry ./ops/travis/travis-install.sh $JOB - export PYTHONPATH=${PYTHONPATH}:${HOME}/google_appengine
arp_table: Undo strange broadcast behavior I'm not actually sure what the old behavior was getting at; probably some hack for DHCP. I think the current behavior is much more reasonable in general.
@@ -111,10 +111,10 @@ class ARPTable (object): return if ipp.dstip == pkt.IPV4.IP_BROADCAST: # Would be nice to do this for any multicast... - ipp.dstip = router_ip - #eth_packet.dst = pkt.ETHERNET.ETHER_BROADCAST - #send_function(eth_packet.pack()) - #return + #ipp.dstip = router_ip # Not sure what this was about + et...
adopters: add China Telecom BestPay Via:
@@ -22,6 +22,7 @@ This is a list of TiDB adopters in various industries. - [Yuanfudao (EdTech)](https://www.crunchbase.com/organization/yuanfudao) - [ZuoZhu Financial (FinTech)](http://www.zuozh.com/) - [360 Financial (FinTech)](https://jinrong.360jie.com.cn/) +- [China Telecom BestPay (FinTech)](https://www.bestpay.co...
Increase hard_timeout and io_timeout to seven days. We have stress tests that takes up to seven days.
@@ -96,8 +96,8 @@ TEMPLATE_SKIP = TemplateApplyEnum('TEMPLATE_SKIP') # Maximum allowed timeout for I/O and hard timeouts. # -# Three days in seconds. Includes an additional 10s to account for small jitter. -MAX_TIMEOUT_SECS = 3 * 24 * 60 * 60 + 10 +# Seven days in seconds. Includes an additional 10s to account for smal...
Fix typo in preprocessing.md Remove a 'The'
@@ -16,8 +16,6 @@ preprocessing stack and easy ways to implement your own preprocessors. Usage ----- -The - Each preprocessor implements three methods: 1. The constructor (`__init__`) for parameter initialization
update co2_cost_escalation_pct Now assuming inflation = default O&M cost escalation rate (2.5%) to convert from real to nominal co2 cost escalation
@@ -468,7 +468,7 @@ nested_input_definitions = { "type": "float", "min": -1.0, "max": 1.0, - "default": 0.040173, + "default": 0.042173, "description": "Annual nominal Social Cost of CO2 escalation rate (as a decimal)." }, "nox_cost_escalation_pct": {
Do not refer to transit server in Dockerfile removed the transit server, breaking the Dockerfile. This fixes the Dockerfile to run just the rendezvous server.
@@ -62,9 +62,8 @@ ENV WORMHOLE_USER_NAME="wormhole" RUN adduser --uid 1000 --disabled-password --gecos "" "${WORMHOLE_USER_NAME}" # Facilitate network connections to the application. The rendezvous server -# listens on 4000 by default. The transit relay server on 4001. +# listens on 4000 by default. EXPOSE 4000 -EXPOSE...
Update phishing.txt Moving to ```android_roamingmantis.txt``` with trail optimization\generalization.
@@ -11557,14 +11557,11 @@ downloadontheapple.live # Reference: https://twitter.com/yumy222/status/1147753081762750464 # Reference: https://www.virustotal.com/gui/ip-address/107.179.40.165/relations -# Reference: https://twitter.com/NaomiSuzuki_/status/1147844385448456197 epos-k.com epos-l.com epos-s.com epos-z.com -myd...
Add a default description for TheHive alerts if one isn't provided Use the default alert body created by ElastAlert, in line with the other alerters
@@ -1992,11 +1992,12 @@ class HiveAlerter(Alerter): alert_config = { 'artifacts': artifacts, - 'sourceRef': str(uuid.uuid4())[0:6], - 'customFields': {}, 'caseTemplate': None, + 'customFields': {}, + 'date': int(time.time()) * 1000, + 'description': self.create_alert_body(matches), + 'sourceRef': str(uuid.uuid4())[0:6]...
Update table_info.sql Remove unnecessary nested case.
@@ -48,9 +48,9 @@ SELECT TRIM(pgn.nspname) AS SCHEMA, 0,0, ((b.mbytes/part.total::DECIMAL)*100)::DECIMAL(20,2) ) AS pct_of_total, - (CASE WHEN a.rows = 0 THEN NULL ELSE - CASE WHEN pgc.reldiststyle = 8 THEN ((a.rows_all_dist - pgc.reltuples)::DECIMAL(20,3) / a.rows_all_dist::DECIMAL(20,3)*100)::DECIMAL(20,2) - ELSE ((a...
Get notebook auth token from the JUPYTERHUB_API_TOKEN environment variable if it is not present in the server info
@@ -543,10 +543,11 @@ class ScriptInfo(object): data={'_xsrf': cookies['_xsrf'], 'password': password}) cookies.update(r.cookies) + auth_token = server_info.get('token') or os.getenv('JUPYTERHUB_API_TOKEN') or '' try: r = requests.get( url=server_info['url'] + 'api/sessions', cookies=cookies, - headers={'Authorization'...
GDB helpers: look for 'character' instead of 'char' type The former is more likely to refer to what GDB expects for strings. TN:
@@ -85,7 +85,7 @@ class Token(object): text_addr = (src_buffer['P_ARRAY'].cast(uint32_t) + (first - src_buffer['P_BOUNDS']['LB0'])) - char = gdb.lookup_type('char').pointer() + char = gdb.lookup_type('character').pointer() return (text_addr.cast(char) .string('latin-1', length=4 * length) .decode('utf32'))
Grammer_fixes Implemented grammatical changes.
@@ -346,8 +346,8 @@ You can expand any of the messages that matches the filter to see the full stack ## SRE Recipes -SRE Recipes is our [Chaos Engineering](https://en.wikipedia.org/wiki/Chaos_engineering) tool to test your sandbox environment. It helps users to familiarize with finding the root cause of a breakage usin...
FIX: be forgiving of higher-numbered mouse buttons coming in For example the "back" button which reports as mouse 8.
@@ -1125,9 +1125,11 @@ class BackendMatplotlibQt(FigureCanvasQTAgg, BackendMatplotlib): _MPL_TO_PLOT_BUTTONS = {1: 'left', 2: 'middle', 3: 'right'} def _onMousePress(self, event): + button = self._MPL_TO_PLOT_BUTTONS.get(event.button, None) + if button is not None: self._plot.onMousePress( event.x, self._mplQtYAxisCoor...
Fix test of big message Since RabbitMQ 3.8.0 max size of message is 128MB.
@@ -1071,7 +1071,7 @@ class TestCase(BaseTestCase): await queue.bind(exchange, routing_key) - body = bytes(shortuuid.uuid(), 'utf-8') * 9999999 + body = bytes(shortuuid.uuid(), 'utf-8') * 6000000 await exchange.publish( Message(
Switch to SafeLoader when loading yaml files We don't need the functionality of a FullLoader.
@@ -1125,7 +1125,7 @@ class YAMLTemplateSerializer(TemplateSerializer): try: return yaml.load( file_contents, - Loader=yaml.FullLoader, + Loader=yaml.SafeLoader, ) except ScannerError: raise RuntimeError(
tests/mechanisms/LCControlMechanism: Only run benchmark if enabled Cleanup
@@ -86,7 +86,9 @@ class TestLCControlMechanism: default_variable = 10.0 ) if mode == 'Python': - EX = LC.execute + def EX(variable): + LC.execute(variable) + return LC.output_values elif mode == 'LLVM': e = pnlvm.execution.MechExecution(LC) EX = e.execute @@ -95,20 +97,15 @@ class TestLCControlMechanism: EX = e.cuda_ex...
Refactor pyDAPAccess transfer response checking. Factor out transfer response checking into a new method. Add a description to the exception for unexpected ACK values.
@@ -312,6 +312,36 @@ class _Command(object): write_pos += 1 return buf + def _check_response(self, response): + """! @brief Check the response status byte from CMSIS-DAP transfer commands. + + The ACK bits [2:0] and the protocol error bit are checked. If any error is indicated, + the appropriate exception is raised. An...
Update ee-install.rst Found another file with ubuntu 14.04
@@ -11,13 +11,12 @@ Installing Enterprise Edition To install Mattermost Enterprise Edition directly please use one of the following guides: -1. `Production Enterprise Edition on Ubuntu 14.04 <https://docs.mattermost.com/install/install-ubuntu-1404.html>`__ -2. `Production Enterprise Edition on Ubuntu 16.04 <https://doc...
Add exclusion for owncloud 10.6.0 to PUT (upload) file, owncloud 10.6.0 use `/remote.php/dav/...` instead of `/remote.php/webdav/...`
@@ -88,7 +88,7 @@ SecRule REQUEST_METHOD "@streq PUT" \ nolog,\ ver:'OWASP_CRS/3.4.0-dev',\ chain" - SecRule REQUEST_FILENAME "@contains /remote.php/webdav" \ + SecRule REQUEST_FILENAME "@rx /remote\.php/(?:webdav|dav)" \ "t:none,\ ctl:ruleRemoveById=920000-920999,\ ctl:ruleRemoveById=932000-932999,\
ScriptNode : Add comment This should have been included with
@@ -728,6 +728,10 @@ bool ScriptNode::load( bool continueOnError) void ScriptNode::save() const { + // Caution : `FileMenu.save()` currently contains a duplicate of this code, + // so that `serialiseToFile()` can be done in a background task, and the + // plug edit can be made on the UI thread. If editing this function...
as_array: handle frozen input abstract expressions TN:
@@ -365,7 +365,7 @@ def as_array(self, list_expr): :param AbstractExpression list_expr: The AST list to convert. :rtype: ResolvedExpression """ - abstract_result = list_expr.map(lambda x: x) + abstract_result = Map(list_expr, expr=collection_expr_identity) abstract_result.prepare() result = construct(abstract_result) r...
Fix ASSERT_ANY_THROW. Summary: Pull Request resolved: ghimport-source-id:
ASSERT_NE(std::string(e.what()).find(substring), std::string::npos); \ } #define ASSERT_ANY_THROW(statement) \ + { \ bool threw = false; \ try { \ (void)statement; \ } catch (const std::exception& e) { \ threw = true; \ } \ - ASSERT_TRUE(threw); + ASSERT_TRUE(threw); \ + } #endif // defined(USE_GTEST)
Update generic.txt Something with no explicit name.
@@ -5812,3 +5812,9 @@ http://220.158.216.134 # Reference: https://www.virustotal.com/gui/domain/tomx.xyz/relations tomx.xyz + +# Reference: https://twitter.com/SecSome/status/1169972222439690241 +# Reference: https://app.any.run/tasks/21339218-b4fd-4084-95d5-5c42fed4c71d/ + +204.152.219.82:9008 +jobmalawi.com
Fixes a bug in gauge-opt jacobian when Instruments are used. Adds derivatives of Instrument-elements to the gauge optimization jacobian. Their absence was caught b/c gauge optimization would fail to find a good final gateset when the 'ls' (least-squares) method was used but work fine when BFGS was used.
@@ -401,6 +401,12 @@ def _create_objective_fn(gateset, targetGateset, itemWeights=None, dS = _np.rollaxis(dS, 2) # shape (n, d1, d2) assert(dS.shape == (n,d,d)) + # --- NOTE: ordering here, with running `start` index MUST + # correspond to those in GateSet.residuals, which in turn + # must correspond to those in GateCa...
dipatch: Remove a stale comment. This stopped being true in
@@ -453,7 +453,6 @@ export function dispatch_normal_event(event) { case "stream": switch (event.op) { case "update": - // Legacy: Stream properties are still managed by stream_settings_ui.js on the client side. stream_events.update_property(event.stream_id, event.property, event.value, { rendered_description: event.ren...
{App Service} Fix az webapp delete: Fix the command help message Fixes
@@ -208,7 +208,7 @@ def load_arguments(self, _): c.argument('logs', options_list=['--logs', '-l'], action='store_true', help='Enable viewing the log stream immediately after launching the web app') with self.argument_context('webapp delete') as c: - c.argument('name', arg_type=webapp_name_arg_type, local_context_attrib...
Improve `webbrowser` stubs `BaseBrowser.open` is an abstract method that should be overridden in all subclasses. `UnixBrowser.open` only accepts 0, 1 or 2 for the `new` parameter.
import sys +from abc import abstractmethod from typing import Callable, Sequence +from typing_extensions import Literal class Error(Exception): ... @@ -23,16 +25,19 @@ class BaseBrowser: name: str basename: str def __init__(self, name: str = ...) -> None: ... + @abstractmethod def open(self, url: str, new: int = ..., a...
Create missing gfortran symbolic link on macOS Further, the `--oversubscribe` flag is passed to `mpirun` on the macOS platform.
@@ -7,4 +7,6 @@ runs: run: | brew install open-mpi brew install libomp + ln -s /usr/local/bin/gfortran-8 /usr/local/bin/gfortran + echo "MPI_OPTS=--oversubscribe" >> $GITHUB_ENV shell: bash
Log a meaningful error if Okta connector isn't invoked correctly removed connectors_config.accessed_keys loop and checking with container value comparision with JSON object
@@ -324,9 +324,8 @@ class ConfigLoader(object): options = {} connectors_config = self.get_directory_connector_configs() - if connectors_config is not None: - for accessed_keys_type in connectors_config.accessed_keys: - if (accessed_keys_type =='okta') and (connector_name == 'ldap'): + if ( 'okta' in connectors_config.v...
Update README.md User smaller domain in example
@@ -38,8 +38,8 @@ Init the fetcher: ``` and then, request data for a domain: ```python - argo_loader.region([-85,-45,10.,20.,0,1000.]).to_xarray() - argo_loader.region([-85,-45,10.,20.,0,1000.,'2012-01','2014-12']).to_xarray() + argo_loader.region([-85,-45,10.,20.,0,100.]).to_xarray() + argo_loader.region([-85,-45,10.,...
921110 add track and path and 921150 lowercase X rule 921110 added track and path rule 921150 lowercase x
@@ -67,7 +67,7 @@ SecRule REQUEST_HEADERS:'/(?:Content-Length|Transfer-Encoding)/' "@rx ," \ # [ References ] # http://projects.webappsec.org/HTTP-Request-Smuggling # -SecRule ARGS_NAMES|ARGS|XML:/* "@rx (?:\n|\r)+(?:get|post|head|options|connect|put|delete|trace|propfind|propatch|mkcol|copy|move|lock|unlock)\s+" \ +Se...
Remove notes about Client.messages Since `Client.messages` no longer exists, I think we should remove the note about the cache being named that.
@@ -216,7 +216,7 @@ to handle it, which defaults to print a traceback and ignoring the exception. .. function:: on_message_delete(message) Called when a message is deleted. If the message is not found in the - :attr:`Client.messages` cache, then these events will not be called. This + internal message cache, then these...
Update monolith-repo link in faq monolith-repo link went to stable which 404'd. Replace with latest
@@ -126,7 +126,7 @@ up and ``ANSIBLE_ROLES_PATH`` is set accordingly. See `this page`_ for more information. .. _`monorepo`: https://en.wikipedia.org/wiki/Monorepo -.. _`this page`: https://molecule.readthedocs.io/en/stable/examples.html#monolith-repo +.. _`this page`: https://molecule.readthedocs.io/en/latest/examples...
GDB helpers: robustify system.address lookup to work in C mode TN:
@@ -3,7 +3,7 @@ from __future__ import absolute_import, division, print_function import gdb -system_address = gdb.lookup_type('system.address') +system_address = gdb.lookup_type('system__address') def ptr_to_int(ptr_value):
Update install.md Clarify that logger needs to be in config, and Home Assistant needs to be restarted, before you can add HACS to the config file.
**NB!: If you move from [`custom_updater`](https://github.com/custom-components/custom_updater) to this see the special note at the bottom here.** -**NB!: You need to have added `logger:` to your `configuration.yaml` for this to work.** +**NB!: You need to have added `logger:` to your `configuration.yaml` for this to w...
Track exit status from all builds and end with the 0 exit status for pass and 1 for any failures
@@ -8,8 +8,15 @@ git reset --hard $HEROKU_TEST_RUN_COMMIT_VERSION cd /app mv CumulusCI/.git . +failed=0 + # Run the CumulusCI Unit Tests nosetests --with-tap --tap-stream --with-coverage --cover-package=cumulusci +exit_status=$? +if [ "$exit_status" == "0" ]; then + failed=1 +fi + # If the last commit message contains ...
tests: clear DB transactions before all db calls Because of repeatable read isolation, changes from externally executed command dont reflect until transaction is ended.
@@ -405,23 +405,26 @@ class TestCommands(BaseTestCommands): def test_set_password(self): from frappe.utils.password import check_password + self.assertEqual(check_password("Administrator", "am"), "Administrator") self.execute("bench --site {site} set-password Administrator test1") self.assertEqual(self.returncode, 0) s...
add support for scaling the grads in pytorch If DDP is being used, the gradients are going to get averaged over the world_size and thats not necessarily what we want to happen. Add a function to apply a scalar
@@ -216,6 +216,12 @@ class OptimizerManager: self.current_lr = self.update_lr() self.global_step += 1 + def scale_grads(self, scalar): + for param_group in self.optimizer.param_groups: + for p in param_group['params']: + if p.grad is not None: + p.grad.data.mul_(scalar) + def zero_grad(self): self.optimizer.zero_grad()...
Support for CHM to detect Adding support for ```*.chm``` to detect. It is also rather popular way to deliver malware. MIME for CHM: IANA:
@@ -77,8 +77,8 @@ BAD_TRAIL_PREFIXES = ("127.", "192.168.", "localhost") LOCALHOST_IP = { 4: "127.0.0.1", 6: "::1" } IGNORE_DNS_QUERY_SUFFIXES = set(("arpa", "local", "guest", "intranet", "int")) VALID_DNS_CHARS = string.letters + string.digits + '-' + '.' # Reference: http://stackoverflow.com/a/3523068 -SUSPICIOUS_CON...
Add test for text wrapping Missed a test.
@@ -185,3 +185,13 @@ def test_table_stringify_booleans(sample_data): instance = CliTable(data, bool_cols=["Configured"]) assert CHECKMARK in instance.table.table_data[1] assert CliTable.PICTOGRAM_FALSE in instance.table.table_data[2] + + +@mock.patch("terminaltables.SingleTable.column_max_width") +def test_table_wrap_c...
Make default split work for hidden files and paths with ./.. Fixes
@@ -18,11 +18,11 @@ facilitate pickling. """ import torch import regex -import pathlib import unicodedata import bidi.algorithm as bd -from os import extsep +from os import extsep, PathLike +from pathlib import Path from PIL import Image from PIL.Image import Resampling @@ -91,9 +91,12 @@ def text_reorder(text: str, ba...
Re-ordering the if statement so that q>0 is evaluated instead of q==0 Also putting the qs_in calculation in the part of the if statement that results in it changing.
@@ -34,21 +34,24 @@ np.ndarray[DTYPE_INT_t, ndim=1] flow_receivers, # choose the node id node_id = stack_flip_ud[i] - # if q at the current node is zero, set qs at that node is zero. - if q[node_id] == 0: - qs[node_id] = 0 - - # otherwise, calculate qs based on a local analytical solution. This - # local analytical sol...
Update README.md Add description for dynamic_quantize and thread_tune args
@@ -3279,6 +3279,13 @@ Set a manual seed if necessary for reproducible results. #### *encoding* Specify an encoding to be used when reading text files. +#### *dynamic_quantize* +Set to True during inference on CPU/GPUs to obtain higher-through put. + +#### *thread_tune* +Set to True during inference if you want pytorch...
[bugfix] Fix AttributeError on sock.close() on toolforge On toolforge an old pymysql release is installed. THe AttributeError bug is solved with pymysql >= 0.7.11. Backport this fix but deprecate the old package.
-"""Miscellaneous helper functions for mysql queries.""" +"""Miscellaneous helper functions for mysql queries. + +.. deprecated:: 7.0 + Support of pymysql < 0.7.11 +""" # # (C) Pywikibot team, 2016-2021 # # Distributed under the terms of the MIT license. # +import struct from typing import Optional import pkg_resources...
Fix like_comment and unlike_comment Added missing fields in like_comment and unlike_comment
@@ -638,12 +638,20 @@ class API(object): return self.send_request(url) def like_comment(self, comment_id): - data = self.json_data() + data = self.json_data({ + "is_carousel_bumped_post": "false", + "container_module": "comments_v2", + "feed_position": "0" + }) url = 'media/{comment_id}/comment_like/'.format(comment_id...
Fix race condition with interrupts Summary: For some reason this just popped in now on py36. Test Plan: , was previously failing about 25% of the time now for some reason
@@ -68,10 +68,6 @@ def raise_interrupts_as(error_cls): yield return - if _received_interrupt["received"]: - _received_interrupt["received"] = False - raise error_cls() - original_signal_handler = signal.getsignal(signal.SIGINT) def _new_signal_handler(signo, _): @@ -82,6 +78,12 @@ def _new_signal_handler(signo, _): try...
Updated methodology of timestamp entry Updated the methodology used to generate timestamp (using $(command) rather than `command`)
@@ -18,6 +18,7 @@ mkdir -p "$LOGPATH" # shellcheck disable=SC2129 echo "*** Start config parameters ****" >> "$LOG" echo "Timestamp: [`date`]" >> "$LOG" +echo -e "\tTimestamp: $(date -R)" >> "$LOG" # shellcheck disable=SC2002 cat "$ARM_CONFIG"|sed '/^[#;].*$/d;/^$/d;/if/d;/^ /d;/^else/d;/^fi/d;/KEY=/d;/PASSWORD/d' >> "...
Fix test I guess defining it as a variable is needed
@@ -1183,7 +1183,7 @@ class MPHSEBSTest(PymatgenTest): self.assertEqual(len(vis.kpoints.kpts), 180) with pytest.warns(BadInputSetWarning, match=r"Hybrid functionals"): - MPHSEBSSet.from_prev_calc(prev_calc_dir=prev_run, user_incar_settings={"ALGO": "Fast"}) + vis = MPHSEBSSet.from_prev_calc(prev_calc_dir=prev_run, user...
fix for rendering single file from AE in DL for sequence Solves issue with rendering single frame sequence, eg with 00000 in its file.
@@ -6,6 +6,7 @@ import pyblish.api from avalon import api from openpype.lib import env_value_to_bool +from openpype.lib.delivery import collect_frames from openpype_modules.deadline import abstract_submit_deadline from openpype_modules.deadline.abstract_submit_deadline import DeadlineJobInfo @@ -102,24 +103,18 @@ class...
Documenting release workflow * version doc * dev to release nb * Redirected release procedure to wiki To avoid duplication and risk of divergence.
@@ -269,16 +269,5 @@ reviewers will be notified when you add them. Versioning ---------- -Versioning uses the following convention: MAJOR.MINOR.PATCH, where: - -PATCH version when there are backwards-compatible bug fixes or -enhancements, without alteration to Python's modules or data/binaries. -MINOR version when ther...
Fedora: Fixup for Python3.7.0 as in not updated Ferora 29 * Mostly needed for OBS which apparently does not update the minor version and has no yum or dnf installed to do it manually
@@ -309,10 +309,15 @@ typedef long Py_hash_t; * function that does it instead. * * TODO: Make it work for Win32 Python <= 3.7 too. + * TODO: The Python 3.7.0 on Linux doesn't work this way either, was a bad + * CPython release apparently. */ #if (defined(_WIN32) || defined(__MSYS__)) && PYTHON_VERSION < 0x380 #define N...
tests/models/Botvinick: reinitialize binary structures Add results test.
@@ -190,10 +190,17 @@ def test_botvinick_model(benchmark, mode): words_hidden_layer.reinitialize([[0,0,0]]) response_layer.reinitialize([[0,0]]) task_layer.reinitialize([[0,0]]) + comp.reinitialize() return results res = benchmark(run, mode=='LLVM') + assert np.allclose(res[0], [0.05330691, 0.05330691, 0.03453411]) + a...
Update decoder name for bart "bart-large" is ""facebook/bart-large" on huggingface model hub
@@ -1997,7 +1997,7 @@ model_args = { # Initialize model model = Seq2SeqModel( encoder_decoder_type="bart", - encoder_decoder_name="bart-large", + encoder_decoder_name="facebook/bart-large", args=model_args, )
Make _winapi.SetNamedPipeHandleState args Optional As can be seen here: the arguments can be Optional (and are used as such in CPython).
@@ -64,7 +64,7 @@ def GetVersion() -> int: ... def OpenProcess(desired_access: int, inherit_handle: bool, process_id: int) -> int: ... def PeekNamedPipe(handle: int, size: int = ...) -> Union[Tuple[int, int], Tuple[bytes, int, int]]: ... def ReadFile(handle: int, size: int, overlapped: Union[int, bool] = ...) -> Tuple[...
[ci] Fix doc deploy folder This was unpacking into `tvm-site/docs` instead of just `docs` at the top level
@@ -746,10 +746,10 @@ def deploy_docs() { git status git checkout -B $DOCS_DEPLOY_BRANCH - rm -rf tvm-site/docs - mkdir -p tvm-site/docs - tar xf ../docs.tgz -C tvm-site/docs - COMMIT=$(cat tvm-site/docs/commit_hash) + rm -rf docs + mkdir -p docs + tar xf ../docs.tgz -C docs + COMMIT=$(cat docs/commit_hash) git add . g...
fix: no add/change image-field if user is not allowed no add/change image-field (dropdown) if user is not allowed to change
@@ -65,6 +65,7 @@ frappe.ui.form.setup_user_image_event = function(frm) { }); } + if (frm.fields_dict[frm.meta.image_field].df.read_only == 0) { frm.sidebar.image_wrapper.on('click', ':not(.sidebar-image-actions)', (e) => { let $target = $(e.currentTarget); if ($target.is('a.dropdown-toggle, .dropdown')) { @@ -74,6 +75...
fix typo Fixing a (glaring) typo.
@@ -37,7 +37,7 @@ Citations ========= If you find `dynesty` useful in your research, please cite -`Speagle (2019) <https://arxiv.org/abs/1904.02180>_`. You are +**`Speagle (2019) <https://arxiv.org/abs/1904.02180>`_**. You are also encouraged to cite: * Nested Sampling: