message
stringlengths
13
484
diff
stringlengths
38
4.63k
maintain PyMca compatibility This should allow using a singleton print preview shared by silx and PyMca5 plot widgets.
@@ -40,7 +40,7 @@ __date__ = "11/07/2017" _logger = logging.getLogger(__name__) -_logger.setLevel(logging.DEBUG) +# _logger.setLevel(logging.DEBUG) # TODO: # - automatic picture centering @@ -364,8 +364,16 @@ class PrintPreviewDialog(qt.QDialog): if commentPosition is None: commentPosition = "CENTER" - vb = viewBox if ...
Store monitors by the host they came from and tidy up after receiving a batch This allows us to prune monitors which don't exist on the remote host any more if they've been deleted or renamed. Fixes
@@ -24,7 +24,7 @@ class SimpleMonitor: self.still_failing = [] # type: List[str] self.skipped = [] # type: List[str] self.warning = [] # type: List[str] - self.remote_monitors = {} # type: Dict[str, Monitor] + self.remote_monitors = {} # type: Dict[str, Dict[str, Monitor]] self.loggers = {} # type: Dict[str, Logger] se...
Fix icons incorrectly displaying on the command palette Fixes
@@ -144,6 +144,7 @@ const extension: JupyterFrontEndPlugin<void> = { palette.addItem({ command: commandIDs.createNewPython, + args: { isPalette: true }, category: 'Python Editor' }); }
fix: autosuggest for callable classes will i ever get this right?
@@ -298,7 +298,12 @@ class TestAutoSuggest(AutoSuggest): obj = getattr(base, current) if inspect.isclass(obj): obj = obj.__init__ - elif callable(obj) and not inspect.ismethod(obj) and not inspect.isfunction(obj): + elif ( + callable(obj) + and not hasattr(obj, "_autosuggest") + and not inspect.ismethod(obj) + and not ...
Fix LB heat template parameter name loadbalancer_protocol --> protocol Closes-Bug:
@@ -27,7 +27,7 @@ resources: type: Magnum::Optional::Neutron::LBaaS::Listener properties: loadbalancer: {get_resource: loadbalancer} - protocol: {get_param: loadbalancing_protocol} + protocol: {get_param: protocol} protocol_port: {get_param: port} pool: @@ -35,7 +35,7 @@ resources: properties: lb_algorithm: ROUND_ROBIN...
convert_options() handles sensitive_keys This is so that the sensitive_keys can be specified in django settings.
@@ -46,6 +46,7 @@ def convert_options(settings, defaults=None): options.setdefault('list_max_length', getopt('list_max_length')) options.setdefault('site', getopt('site')) options.setdefault('processors', getopt('processors')) + options.setdefault('sanitize_keys', getopt('sanitize_keys')) options.setdefault('dsn', geto...
Adding some prints when hdbscan assertion fails Authors: - Corey J. Nolet (https://github.com/cjnolet) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL:
@@ -108,6 +108,12 @@ class HDBSCANTest : public ::testing::TestWithParam<HDBSCANInputs<T, IdxT>> { score = MLCommon::Metrics::compute_adjusted_rand_index( out.get_labels(), labels_ref.data(), params.n_row, handle.get_stream()); + + if (score < 0.85) { + std::cout << "Test failed. score=" << score << std::endl; + raft::...
Update lpherbal.json amended sql
"numerator_columns": [ "SUM(actual_cost) AS numerator, " ], - "numerator_from": "{hscic}.normalised_prescribing_standard p LEFT JOIN (SELECT DISTINCT bnf_code FROM {richard.herbal_list}) r ON p.bnf_code = r.bnf_code", + "numerator_from": "{hscic}.normalised_prescribing_standard p LEFT JOIN (SELECT DISTINCT bnf_code FRO...
Don't use pipenv on github actions It should install dependencies faster
@@ -37,25 +37,26 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install pipenv + - name: Create virtualenv run: | - python -m pip install --upgrade pipenv wheel + python -m venv venv - uses: actions/cache@v2 id: cache-pip with: - path: ~/.local/share/virtualenvs + pa...
feat: add new "pyannote.audio.pipeline.utils.load_pretrained_pipeline" related to
@@ -242,19 +242,9 @@ def _generic(name: str, elif kind == 'pipeline': - params_yml, = pretrained_subdir.glob('*/*/params.yml') - - config_yml = params_yml.parents[2] / 'config.yml' - with open(config_yml, 'r') as fp: - config = yaml.load(fp, Loader=yaml.SafeLoader) - - from pyannote.core.utils.helper import get_class_b...
Added ffmpeg download when importing moviepy.editor When the `FFMPEG_BINARY` environment variable is not set, the ffmpeg binary will be downloaded if needed when `import moviepy.editor` is called.
@@ -17,8 +17,15 @@ clip.preview(). # Note that these imports could have been performed in the __init__.py # file, but this would make the loading of moviepy slower. -# Clips +import os + +# Downloads ffmpeg if it isn't already installed +import imageio +# Checks to see if the user has set a place for their own version ...
in apply sets from_argument from input var it was hard-coded to "data", which clashes with some processes
@@ -617,7 +617,7 @@ class ImageCollectionClient(ImageCollection): process_id = 'apply' arguments[data_argument] = \ { - "from_argument": "data" + "from_argument": data_argument } args = { 'data': {'from_node': self.node_id},
MRG, FIX: Fix scalp coupling index test that intermittently failed * Remove scalp coupling index test that intermittently failed This test was intermittently failing see The test was assuming that random noise would be correlated less than 0.5, but sometimes by chance this happens. * FIX: seed
@@ -50,9 +50,9 @@ def test_scalp_coupling_index(fname, fmt, tmpdir): raw._data[4] = new_data raw._data[5] = new_data * -1.0 # Set next two channels to be uncorrelated - # TODO: this might be a bad idea as sometimes random noise might correlate + rng = np.random.RandomState(0) raw._data[6] = new_data - raw._data[7] = np...
Use '.../' to denote parent path locations in runs list Prior to this, parent paths were listed explicitly, which could result in a lot of noise in the runs list. This approach uses three dots to simply note that the runs are outside the current cwd location.
@@ -322,7 +322,8 @@ def _format_guildfile_op(opref): relpath = os.path.relpath(opref.pkg_name, config.cwd()) if relpath[0] != '.': relpath = os.path.join('.', relpath) - return "%s/%s:%s" % (relpath, opref.model_name, opref.op_name) + path_desc = re.sub(r"(\.\.[/])+", ".../", relpath) + return "%s/%s:%s" % (path_desc, ...
Fix get_data_parallel_src_rank (necessary for sparse attention in 3D parallel)
@@ -221,8 +221,16 @@ def get_data_parallel_src_rank(): """Calculate the global rank corresponding to a local rank zero in the data parallel group.""" global_rank = torch.distributed.get_rank() - local_world_size = get_data_parallel_world_size() - return (global_rank // local_world_size) * local_world_size + topo = get_...
[Docker]Add dialout group by default on login This would help to run commands like nrfjprog inside docker without sudo command.
@@ -54,6 +54,7 @@ getent passwd "${CI_BUILD_UID}" || adduser --force-badname --gid "${CI_BUILD_GID --gecos "${CI_BUILD_USER} (generated by with_the_same_user script)" \ --disabled-password --home "${CI_BUILD_HOME}" --quiet "${CI_BUILD_USER}" usermod -a -G sudo -G tvm-venv "${CI_BUILD_USER}" +usermod -a -G sudo -G dialo...
Update worksites-takeover.yaml fix for matchers type
@@ -13,6 +13,6 @@ requests: - "{{BaseURL}}" matchers: - - type: word + - type: regex regex: - "(?:Company Not Found|you&rsquo;re looking for doesn&rsquo;t exist)"
implement dispersion index dispersion index is the sumsquares distances between the member of each cluster
@@ -217,7 +217,7 @@ def _cluster_quality_crossvalidation(data, clusters, clustering): cv = var warnings.warn("Number of columns in data (" + str(n_cols) + ") is smaller " "than the number of cluster (" + str(len(clusters)) + ") plus 1. " - "Returnin the residual noise instead.") + "Returning the residual noise instead....
Fix `JitTest.ADFormulas` intermittent failures Summary: Clamp input tensor values to [3, 3] to limit how small `tanh` gradint can get Pull Request resolved: Test Plan: CI + `bin/test_jit --gtest_filter=JitTest.ADFormulas --gtest_repeat=60000 --gtest_break_on_failure`
@@ -28,8 +28,8 @@ using var_meta_list = std::vector<var_meta_type>; using test_fn_type = std::function<variable_list(const variable_list&)>; struct ADTestSpec { - ADTestSpec(const char* name, var_meta_list input_meta, test_fn_type test_fn) - : name(name), input_meta(input_meta), test_fn(test_fn) {} + ADTestSpec(const c...
Install charmcraft 1.0.0 Install charmcraft 1.0.0 through pip for now until we move to pytest-operator tests.
@@ -40,11 +40,13 @@ jobs: - name: Install dependencies run: | set -eux + sudo apt update + sudo apt install -y python3-pip sudo snap install charm --classic sudo snap install juju --classic sudo snap install juju-helpers --classic sudo snap install juju-wait --classic - sudo snap install charmcraft --classic + sudo pip...
ceph-mon: change command to see if rbd exists The previous command was hanging, see this issue:
- include: set_osd_pool_default_pg_num.yml - name: test if rbd exists - command: ceph --cluster {{ cluster }} osd pool stats rbd + command: ceph --cluster {{ cluster }} osd pool get rbd size changed_when: false failed_when: false register: rbd_pool_exist
Test for removing core when the other one is mounted and core numeration is custom - each core ID starts with the same digit.
@@ -14,6 +14,7 @@ from test_utils.output import CmdException from test_utils.size import Size, Unit mount_point = "/mnt/cas" +cores_amount = 3 @pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand])) @@ -54,3 +55,44 @@ def test_remove_core_when_other_mounted_auto_numeration(): except CmdExcepti...
salt.utils.templates Add docstrings to some functions Some functions in salt/utils/templates.py were undocumented.
@@ -212,6 +212,19 @@ def generate_sls_context(tmplpath, sls): def wrap_tmpl_func(render_str): + """ + Each template processing function below, ``render_*_tmpl``, is wrapped by + ``render_tmpl`` before being inserted into the ``TEMPLATE_REGISTRY``. Some + actions are taken here that are common to all renderers. Perhaps ...
Remove warning around SSL option in email Alerter Based on feedback from user
@@ -35,8 +35,6 @@ class EMailAlerter(Alerter): Optional[str], self.get_config_option("ssl", allowed_values=["starttls", "yes", None]), ) - if self.ssl == "yes": - self.alerter_logger.warning("ssl=yes for email alerter is untested") self.support_catchup = True
Update setup_relative_calculation.py fix unit check
@@ -352,7 +352,7 @@ def run_setup(setup_options, serialize_systems=True, build_samplers=True): forcefield_files = setup_options['forcefield_files'] if "timestep" in setup_options: - if isinstance(timestep, float): + if isinstance(setup_options['timestep'], float): timestep = setup_options['timestep'] * unit.femtosecond...
Fix typo (I know, thank me later)
@@ -380,7 +380,7 @@ WELCOME_NOTIFICATION = app.packets.notification( OFFLINE_NOTIFICATION = app.packets.notification( "The server is currently running in offline mode; " - "some features will be unavailble.", + "some features will be unavailable.", ) DELTA_90_DAYS = timedelta(days=90)
validate: prevent from installing OSD on same disk as the OS This commit adds a validation task to prevent from installing an OSD on the same disk as the OS. Closes:
--- +- name: find device used for operating system + command: findmnt -v -n -T / -o SOURCE + changed_when: false + register: root_device + +- name: resolve root_device + command: "readlink -f {{ root_device.stdout }}" + changed_when: false + register: _root_device + +- name: set_fact root_device + set_fact: + root_devi...
Add flag to xcodebuild to disable manifest sandbox We're seeing a collision in some sandbox rules. Since we're using our own sandbox in the source compat suite, we can disable the one coming from package support.
@@ -317,7 +317,8 @@ def dispatch(root_path, repo, action, swiftc, swift_version, action['action'] ) - initial_xcodebuild_flags = ['SWIFT_EXEC=%s' % swiftc] + initial_xcodebuild_flags = ['SWIFT_EXEC=%s' % swiftc, + '-IDEPackageSupportDisableManifestSandbox=YES'] if build_config == 'debug': initial_xcodebuild_flags += ['...
fix Rally task [NovaServers.list_servers] failed with network problems when we get 'nics' information from rally task config 'contexts', the type of self.config["nics"] is 'tuple', but we need it is 'list' type. Closes-Bug:
@@ -91,7 +91,7 @@ class ServerGenerator(context.Context): if self.config.get("nics"): if isinstance(self.config["nics"][0], dict): # it is a format that Nova API expects - kwargs["nics"] = self.config["nics"] + kwargs["nics"] = list(self.config["nics"]) else: kwargs["nics"] = [{"net-id": nic} for nic in self.config["ni...
hotspots: Fix resizing of ``Got It!`` box. This dynamically resizes the box to fit the variable text size present with different languages. At the same time, it adds padding to the English version to make it look similar to previous versions. Fixes
position: absolute; bottom: 15px; right: 15px; - width: 80px; - height: 35px; + max-width: 125px; + max-height: 70px; border: none; color: hsl(0, 0%, 100%); background-color: hsl(164, 44%, 47%); border-radius: 4px; + white-space: normal; + padding: 7px 20px; } /* arrows */
Update Orbit_Screen.kv Updated code to use new yellow icon.
keep_ratio: True Image: id: OrbitISStiny - source: './imgs/orbit/ISSmimicLogoPartsGlowingISSblue.png' + source: './imgs/orbit/OrbitYellowISSicon.png' keep_ratio: False allow_stretch: True size_hint: 0.07,0.07
Reuse report_type ### Problem We extract coverage_subsystem.options.report into a local variable earlier in the function/rule. <img width="799" alt="Screen Shot 2020-06-05 at 1 28 23 PM" src="https://user-images.githubusercontent.com/1268088/83919892-7156bc80-a730-11ea-8aa2-84676ffe5cca.png"> ### Solution Reuse existin...
@@ -376,9 +376,9 @@ async def generate_coverage_report( report_dir = PurePath(coverage_subsystem.options.report_output_path) report_file: Optional[PurePath] = None - if coverage_subsystem.options.report == ReportType.HTML: + if report_type == ReportType.HTML: report_file = report_dir / "htmlcov" / "index.html" - elif c...
Modify the class names in the error messages Remove the syntax to highlight the class names in the error messages.
@@ -262,15 +262,14 @@ class Flow(on.Edge): if self.investment and self.nonconvex: raise WrongOptionCombinationError( "Investment flows cannot be combined with " - + "nonconvex flows using the class " - + "<class 'solph.flows.Flow'>! Please consider using" - + " <class 'solph.flows.NonConvexInvestFlow'>" + + "nonconvex ...
Adding Ambari missing versions With the new validation system, image versions on get_image_arguments() has to contain all available versions in order to allow cluster creation and validation with them all. Story:
@@ -270,7 +270,7 @@ class AmbariPluginProvider(p.ProvisioningPluginBase): resource_roots=['plugins/ambari/resources/images']) def get_image_arguments(self, hadoop_version): - if hadoop_version != '2.4': + if hadoop_version not in self.get_versions(): return NotImplemented return self.validator.get_argument_list()
Update README.md Updated module list depending on psutil and netifaces
@@ -83,8 +83,8 @@ This will create a file called `debug.log` in the same directory as the executab Modules and commandline utilities are only required for modules, the core itself has no external dependencies at all. -* psutil (for the modules 'cpu', 'memory') -* netifaces (for the module 'nic') +* psutil (for the modu...
Set CI timeout to 20m to avoid failure Workaround for slow blender279 download that times out on CircleCI
@@ -14,6 +14,7 @@ jobs: - checkout - run: name: Install Blender + no_output_timeout: 20m command: | FILTERS=($TEST_FILTERS) FILTER=${FILTERS[$CIRCLE_NODE_INDEX]}
Small fix to map/data display Update to get the value of `aria-label` (the jurisdiction name) for use as heading
this.hoveredSlug = null; }, jurNameForSlug(slug) { - return document.getElementById(slug).ariaLabel; + return document.getElementById(slug).getAttribute('aria-label'); }, caseCount() { return (this.hoveredSlug ? this.jurData[this.hoveredSlug].case_count : this.total_cases).toLocaleString()
Update mnist_cnn_features_level_fgsm.py Edit the example description
# -*- coding: utf-8 -*- -"""Trains a convolutional neural network on the MNIST dataset, then attacks it with the FGSM attack.""" +"""Trains a convolutional neural network on the MNIST dataset, then attacks one of the inner layers with the FGSM attack.""" from __future__ import absolute_import, division, print_function,...
Add back scikit-image This is a NoOp since this package is already part of the base image. However, we prefer to list it here explicitly. We also already have smoke test for this package.
@@ -103,6 +103,7 @@ RUN apt-get install -y libfreetype6-dev && \ vader_lexicon verbnet webtext word2vec_sample wordnet wordnet_ic words ycoe && \ # Stop-words pip install stop-words && \ + pip install scikit-image && \ /tmp/clean-layer.sh RUN pip install ibis-framework && \
Change queue instances type from c4.xlarge to c5.large Reason for this change is that not all the regions support c4.xlarge. C5 family support is broader What does this change solve? It allows to run the test where C4 isn't present
@@ -20,14 +20,14 @@ compute_resource_settings = ondemand_i1,ondemand_i2 compute_resource_settings = ondemand_i3,ondemand_i4 [compute_resource ondemand_i1] -instance_type = c4.xlarge +instance_type = c5.large [compute_resource ondemand_i2] instance_type = {{ instance }} min_count = 1 [compute_resource ondemand_i3] -inst...
Restrict PHP parsing to .php and .inc files This prevents situations where a directory-traversal path is forwarded from uwsgi to the PHP engine, which attempts to render the file. As an example, this could leak the contents of a flag.txt file located above `webroot/` in the deployed problem directory.
@@ -346,6 +346,6 @@ class PHPApp(WebService): """ web_root = join(self.directory, self.php_root) - self.start_cmd = "uwsgi --protocol=http --plugin php -p {1} --force-cwd {0} --php-allowed-docroot {2} --http-socket-modifier1 14 --php-index index.html --php-index index.php --check-static {0} --static-skip-ext php --logt...
Easy Debug for API Send Request Added Debug Log for Non JSON Result
@@ -528,6 +528,9 @@ class API(object): "Error checking for `feedback_required`, " "response text is not JSON" ) + self.logger.error('Full Response JSON: {}'.format(str(response))) + try: self.logger.error('Response Text: {}'.format(str(response.text))) + except: pass if response.status_code == 429: sleep_minutes = 5
Update viewpoint-system-status.yaml updated exposures -> exposure
@@ -6,7 +6,7 @@ info: severity: low metadata: shodan-query: http.title:"ViewPoint System Status" - tags: status,exposures,viewpoint + tags: status,exposure,viewpoint requests: - method: GET
lint: Exclude `zerver/views/development/` from i18n lint rules. This is consistent with how we handle JsonableError and friends; it doesn't make sense for translators to spend time on strings only visible in a development environment.
@@ -328,8 +328,8 @@ python_rules = RuleList( }, { "pattern": r"""\Wjson_error\(['"].+[),]$""", - "exclude": {"zerver/tests"}, - "description": "Argument to json_error should a literal string enclosed by _()", + "exclude": {"zerver/tests", "zerver/views/development/"}, + "description": "Argument to json_error should be ...
Handle the "spatial" attribute in onnx BatchNormalization op Summary: If we have this "spatial" attribute and its value equals to 1, we could just remove this attribute and convert this op to caffe2 SpatialBN. Pull Request resolved:
@@ -952,17 +952,21 @@ Caffe2Ops Caffe2Backend::CreateSlice( Caffe2Ops Caffe2Backend::CreateBatchNormalization( OnnxNode* onnx_node, const ConversionContext& ctx) { - if (ctx.opset_version() < 6) { auto& attributes = onnx_node->attributes; + + if (ctx.opset_version() < 6) { attributes.remove("consumed_inputs"); } if (ct...
Fix `loading_data_recipe` links Fixes
@@ -14,9 +14,9 @@ PyTorch offer built-in high-quality datasets for you to use in `torch.utils.data.Dataset <https://pytorch.org/docs/stable/data.html#torch.utils.data.Dataset>`__. These datasets are currently available in: -* `torchvision <https://pytorch.org/docs/stable/torchvision/datasets.html>`__ -* `torchaudio <ht...
Fix date_time_format in simplereport HG-- branch : feature/microservices
@@ -331,7 +331,7 @@ class TableColumn(ReportNode): :param f: :return: """ - return DateFormat(f).format(config.date_format) + return DateFormat(f).format(config.date_time_formats.date_format) def f_time(self, f): """ @@ -339,7 +339,7 @@ class TableColumn(ReportNode): :param f: :return: """ - return DateFormat(f).format...
[IMPR] Improvements for askForHints (3) decrease nested code
@@ -1170,12 +1170,14 @@ class Subject(interwiki_graph.Subject): if not self.workonme: # we don't work on it anyway return - if ((self.untranslated or self.conf.askhints) + if not ( + (self.untranslated or self.conf.askhints) and not self.hintsAsked and self.originPage and self.originPage.exists() and not self.originPag...
Add check in configuration parser for expected scores This is useful beacuse we can fail early rather than having to wait until after the model is trained.
@@ -35,6 +35,7 @@ from rsmtool.utils import (DEFAULTS, FIELD_NAME_MAPPING, is_skll_model) +from skll import Learner from skll.metrics import SCORERS if HAS_RSMEXTRA: @@ -816,8 +817,9 @@ class ConfigurationParser: "to specify the name of the column which " "contains candidate IDs.") - # 8. Check that if "skll_objective"...
added test for signal_scaling added test_first_level_models_with_no_signal_scaling()
@@ -382,3 +382,28 @@ def test_first_level_models_from_bids(): # can arise when variant or space is present and not specified assert_raises(ValueError, first_level_models_from_bids, bids_path, 'main', 'T1w') # variant not specified + +def test_first_level_models_with_no_signal_scaling(): + """ + test to ensure that the ...
SupplierPart - Improve API The default DRF behaviour throws errors if the supplied query params do not conform to the limit_choices_to field This is non optimum! Don't want to have to handle these cases Do the filtering ourselves!
@@ -104,12 +104,41 @@ class SupplierPartList(generics.ListCreateAPIView): queryset = super().get_queryset() + return queryset + + def filter_queryset(self, queryset): + """ + Custom filtering for the queryset. + """ + + queryset = super().filter_queryset(queryset) + + params = self.request.query_params + + # Filter by ...
Docs fix Fixed error in Migration FAQ.
@@ -68,6 +68,9 @@ Also you can bind your own filters for using as keyword arguments: class MyFilter(BoundFilter): key = 'is_admin' + def __init__(self, is_admin): + pass + async def check(self, message: types.Message): member = await bot.get_chat_member(message.chat.id, message.from_user.id) return member.is_admin()
Increase connection timeout for object controller tests Intermittent test failures due to timeout of *mocked* connections have been reported, so increase the connection timeout in the test app. Closes-Bug:
@@ -169,8 +169,10 @@ class BaseObjectControllerMixin(object): self.logger = debug_logger('proxy-server') self.logger.thread_locals = ('txn1', '127.0.0.2') + # increase connection timeout to avoid intermittent failures + conf = {'conn_timeout': 1.0} self.app = PatchedObjControllerApp( - None, FakeMemcache(), account_rin...
Remove the 'supplier_part' field when first creating a Part object As the Part does not yet exist, there are no matching SupplierPart objects
@@ -91,6 +91,15 @@ class PartCreate(AjaxCreateView): return context + def get_form(self): + form = super(AjaxCreateView, self).get_form() + + # Hide the default_supplier field (there are no matching supplier parts yet!) + #form.fields['default_supplier'].widget.attrs['hidden'] = True + del form.fields['default_supplier...
don't error when the mod is unknown fixes
@@ -117,7 +117,7 @@ class Infractions(BaseCog): infraction.delete_instance() await MessageUtils.send_to(ctx, "YES", "inf_delete_deleted", id=infraction.id) GearbotLogging.log_key(ctx.guild.id, 'inf_delete_log', id=infraction.id, target=Utils.clean_user(target), - target_id=target.id, mod=Utils.clean_user(mod), mod_id=m...
Update README.rst update dependency install instructions
@@ -18,9 +18,21 @@ and then run it:: This will pop up a GUI window. -If you have cloned the toga repository, navigate to the demo directory and run it like this:: +If you have cloned the toga repository, install the dependent packages in your virtualenv:: - $ pip install toga + $ cd toga + $ pip install -e src/core + $...
[cleanup] Cleanup MW version dependency in Site.notifications Also update documentation of EchoMixin
@@ -29,12 +29,11 @@ class EchoMixin: def notifications(self, **kwargs): """Yield Notification objects from the Echo extension. - :keyword format: If specified, notifications will be returned formatted - this way. Its value is either 'model', 'special' or None. Default - is 'special'. - :type format: str or None + :keyw...
quex_interface_body_c.mako: initialize the struct Lexer::prev_id field TN:
@@ -26,6 +26,7 @@ static void init_lexer(Lexer *lexer) { QUEX_NAME(token_p_set)(&lexer->quex_lexer, &lexer->buffer_tk); memset (&lexer->buffer_tk, 0, sizeof (lexer->buffer_tk)); + lexer->prev_id = 0; } Lexer*
Override comparisons on Expression so object comparison doesn't mess us up. Fixes
@@ -284,6 +284,18 @@ class Expression(object): plural('broadcast/join', len(self._joins), 'broadcasts/joins')) return s + def __lt__(self, other): + raise NotImplementedError("'<' comparison with expression of type {}".format(str(self._type))) + + def __le__(self, other): + raise NotImplementedError("'<=' comparison wi...
[ENH] Gettimeindex to access index of hierarchical data Adds a `_get_time_index` utility to retrieve `pandas` time series index from euqual indexed panels and series in `datatypes._utilities`.
@@ -6,6 +6,57 @@ import numpy as np import pandas as pd +def _get_index(x): + if hasattr(x, "index"): + return x.index + else: + # select last dimension for time index + return pd.RangeIndex(x.shape[-1]) + + +def get_time_index(X): + """Get index of time series data, helper function. + + Parameters + ---------- + X : p...
perform bottom up traversal of the call graph while inlining callees with gbarriers in them
@@ -2343,19 +2343,26 @@ def infer_arg_descr(program): def inline_kernels_with_gbarriers(program): from loopy.kernel.instruction import BarrierInstruction from loopy.transform.callable import inline_callable_kernel + from loopy.kernel.tools import get_call_graph + from pytools.graph import compute_topological_order def ...
clean up gemfile Remove opennebula, since we are using docker and ec2 Pin winrm to the package since our changes have been released by upstream
@@ -11,16 +11,11 @@ group :docker do gem 'kitchen-docker', :git => 'https://github.com/test-kitchen/kitchen-docker.git' end -group :opennebula do - gem 'kitchen-opennebula', '>=0.2.3' - gem 'xmlrpc' -end - group :windows do gem 'vagrant-wrapper' gem 'kitchen-vagrant' gem 'winrm', '~>2.0' - gem 'winrm-fs', :git => 'http...
[batch] more reslience in pod throttler * [batch] more reslience in pod throttler Two big changes. Catch any errors and release the semaphore. Restart failed workers in the concurrent worker pool. * address comments * bump * stick manager in a separate thread
import asyncio import logging +import traceback log = logging.getLogger('batch.throttler') @@ -13,13 +14,28 @@ class PodThrottler: self.pending_pods = set() self.created_pods = set() - for _ in range(parallelism): - asyncio.ensure_future(self._create_pod()) + workers = [asyncio.ensure_future(self._create_pod()) + for _...
use github issue instead of spreadsheet making a quick change now since the linked spreadsheet is not world-readable. can discuss later whether github issues or a spreadsheet make more sense longer term.
@@ -9,7 +9,7 @@ PRs will undergo lightweight review from the core team, primarily to ensure subm * The author's PR does not make extraneous changes to the manuscript. * That the author's PR is not a duplication of work already contained in the manuscript (with a more stringent notion of "duplication" for the text in th...
README feature update Updated with new features as well as notable features
@@ -41,28 +41,37 @@ If this is your first time making a PR or aren't sure of the standard practice o - [A great example from one of our own contributors](https://github.com/PokemonGoF/PokemonGo-Bot/pull/3912) ## Features +- [x] Based on Python for botting on any operating system - Windows, macOS and Linux +- [x] Allow ...
Remove username hack from strava Strava API now returns a username:
@@ -27,14 +27,13 @@ class StravaOAuth(BaseOAuth2): def get_user_details(self, response): """Return user details from Strava account""" - # because there is no usernames on strava - username = response['athlete']['id'] email = response['athlete'].get('email', '') + username = response['athlete'].get('username', '') full...
tools/dm: add description for task auto restore after dm-worker restart Via:
@@ -40,7 +40,7 @@ This sections describes the considerations that you need to know when you restar **In the process of full data loading:** -For the SQL files during full data import, DM uses the downstream database to record the checkpoint information. When DM-worker is restarted, it checks the checkpoint information ...
Change ValueError to assertion in clifford_optimize Fixes hunch was correct. The coefficient is initialized at 1, and can only be negated. Changed the error to an assertion accordingly, Update: Removed the assertion entirely since that assertion already exists in `PauliStringPhasor.__init__`
@@ -92,14 +92,6 @@ def clifford_optimized_circuit(circuit: circuits.Circuit, atol: float = 1e-8) -> qubit, pauli = next(iter(merge_op.pauli_string.items())) quarter_turns = round(merge_op.exponent_relative * 2) - if merge_op.pauli_string.coefficient not in [1, -1]: - # TODO: Add support for more general phases. - # Git...
DOC: Fixed minor typos in temp_elide.c [ci skip]
/* * Functions used to try to avoid/elide temporaries in python expressions - * of type a + b + b by translating some operations into inplace operations. + * of type a + b + b by translating some operations into in-place operations. * This example translates to this bytecode: * * 0 LOAD_FAST 0 (a) * instructions so the...
tv4play: better message if the video is not available fixes:
@@ -74,7 +74,7 @@ class Tv4play(Service, OpenGraphThumbMixin): url = "https://playback-api.b17g.net/media/{}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine".format(vid) res = self.http.request("get", url, cookies=self.cookies) if res.status_code > 200: - yield ServiceError("Can't play this because the vide...
[swarming] trap IOError while waiting Sometimes there can be an exception. Have the bot loop instead, because this normally happen during system shutdown. This will remove noise in the bot events log.
@@ -1154,7 +1154,13 @@ def _poll_server(botobj, quit_bit, last_action): _call_hook_safe( True, botobj, 'on_bot_idle', max(0, time.time() - last_action)) _maybe_update_lkgbc(botobj) + try: + # Sometimes throw with "[Errno 4] Interrupted function call", especially + # on Windows upon system shutdown. quit_bit.wait(value)...
[batch] eliminate non-determinism in test stderr and stdout non-deterministically interleave, breaking the string match in `test_can_use_google_credentials`
@@ -608,7 +608,8 @@ location = "gs://{ bucket_name }/{ token }/{ attempt_token }/test_can_use_hailct hl.utils.range_table(10).write(location) hl.read_table(location).show() ''' - j = builder.create_job(os.environ['HAIL_HAIL_BASE_IMAGE'], ['python3', '-c', script]) + j = builder.create_job(os.environ['HAIL_HAIL_BASE_IMA...
chore: Get the next perfect square If the amount of squares is not a perfect square, get the next highest perfect square
@@ -325,8 +325,10 @@ class AvatarModify(commands.Cog): if 1 <= squares <= MAX_SQUARES: raise commands.BadArgument(f"Squares must be a positive number less than or equal to {MAX_SQUARES:,}.") - if not math.sqrt(squares).is_integer(): - raise commands.BadArgument("The number of squares must be a perfect square.") + sqrt ...
Announce deprecation of Python 2 support in MLflow Announces deprecation of Python 2 support, to be dropped entirely from MLflow in a future release.
@@ -24,6 +24,8 @@ implement mutual exclusion manually. For a lower level API, see the :py:mod:`mlflow.tracking` module. """ +import sys + from mlflow.version import VERSION as __version__ from mlflow.utils.logging_utils import _configure_mlflow_loggers import mlflow.tracking._model_registry.fluent @@ -44,6 +46,14 @@ im...
Windows: Cleanup how "exec" works. * The documentation asks to not use "subprocess.call" because it may dead lock, so lets not do it, and use a process with proper "communicate" and "wait" method calls instead.
@@ -46,9 +46,12 @@ def callExec(args): del args[1] try: - sys.exit( - subprocess.call(args) + process = subprocess.Popen( + args = args, ) + process.communicate() + + sys.exit(process.wait()) except KeyboardInterrupt: # There was a more relevant stack trace already, so abort this # right here, pylint: disable=protected...
[DOC] Update PULL_REQUEST_TEMPLATE.md so PRs should start with [ENH], [DOC] or [BUG] in title Update PULL_REQUEST_TEMPLATE.md so PRs should start with [ENH], [DOC] or [BUG] in title
@@ -42,6 +42,7 @@ Please go through the checklist below. Please feel free to remove points if they - [ ] I've added myself to the [list of contributors](https://github.com/alan-turing-institute/sktime/blob/main/.all-contributorsrc). - [ ] Optionally, I've updated sktime's [CODEOWNERS](https://github.com/alan-turing-ins...
fixes file extension recognition for packed images resolves
@@ -157,10 +157,15 @@ def __get_image_data(sockets_or_slots, export_settings): source_channels_length = 1 file_name = os.path.splitext(result.shader_node.image.name)[0] + if result.shader_node.image.packed_file is None: + file_path = result.shader_node.image.filepath + else: + # empty path for packed textures, because ...
Update dynamic_domain.txt Update 2: ```changeip.com``` section.
@@ -380,6 +380,7 @@ zapto.org zenergycounsel.us # Reference: http://www.changeip.com/services/free-dynamic-dns/ +# Reference: https://gist.githubusercontent.com/neu5ron/8dd695d4cb26b6dcd997/raw/e1b1ed6fd0b0810b07c168fee028b668254ad486/dynamic-dns.txt (# changeip.com) 1dumb.com 25u.com @@ -391,6 +392,9 @@ zenergycounsel...
Update settings.rst Fixes a tiny typo
@@ -204,7 +204,7 @@ then participants will be able to complete the experiment any number of times. Note that this option does not affect the behavior when a participant starts the experiment but the quits or refreshes the page. In those cases, they will -still be locked out, regardless of the setting of 0allow_repeats`...
Toyota: whitelist FW queries whitelist toyota
@@ -209,16 +209,19 @@ FW_QUERY_CONFIG = FwQueryConfig( Request( [StdQueries.SHORT_TESTER_PRESENT_REQUEST, TOYOTA_VERSION_REQUEST], [StdQueries.SHORT_TESTER_PRESENT_RESPONSE, TOYOTA_VERSION_RESPONSE], + whitelist_ecus=[Ecu.fwdCamera, Ecu.fwdRadar, Ecu.dsu, Ecu.abs, Ecu.eps], bus=0, ), Request( [StdQueries.SHORT_TESTER_P...
Minor typo in readme Minor typo in readme
# Quora Bookmarked Topics Downloader -This python scrpit will download your Quora Bookmarked post into a pdf file. Just enter your quora credientials and selenium will take care for the rest of the part. +This python script will download your Quora Bookmarked post into a pdf file. Just enter your quora credentials and ...
Hardcode 8 test threads in CI This is needed due to the removal of psutil
@@ -125,7 +125,7 @@ jobs: [flake8] %(code)s: %(text)s'" - name: Run tests and generate coverage report - run: pytest -n auto --cov --disable-warnings -q + run: pytest -n 8 --cov --disable-warnings -q # Prepare the Pull Request Payload artifact. If this fails, we # we fail silently using the `continue-on-error` option. ...
lightbox: Remove redundant conversion of `image` to jQuery object. `image` passed to lightbox.open() is already a jQuery object, so we don't need to convert it explicitly. Also, the parameter is renamed from `image` to `$image`.
@@ -85,7 +85,7 @@ function display_video(payload) { // the image param is optional, but required on the first preview of an image. // this will likely be passed in every time but just ignored if the result is already // stored in the `asset_map`. -exports.open = function (image, options) { +exports.open = function ($im...
MIKE core needs to be at least 0.2 upgrades will otherwise fail
@@ -5,9 +5,9 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="mikeio", - version="0.12.0", + version="0.12.1", install_requires=[ - "mikecore", + "mikecore>=0.2.0", "numpy>=1.15.0.", # first version with numpy.quantile "pandas>1.0", "scipy>1.0",
Update core team & alumni list Add Tim Allen and Vince Salvino to the core team list Update Dawn's affiliation to Wharton Move Andy Babic and Bertrand Bordage to alumni list Add Michael van Tellingen to the alumni list
Core team ========= -* Andy Babic (Torchbox) * Andy Chosak (consumerfinance.gov) -* Bertrand Bordage (NoriPyt) * Codie Roelf (Praekelt) * Coen van der Kamp (Four Digits) * Cynthia Kiser (Caltech) * Dan Braghis (Torchbox) -* Dawn Wages +* Dawn Wages (The Wharton School) * Jacob Topp-Mugglestone (Torchbox) * Janneke Jans...
Changed error in keithley2600 Int cast instead of float in error property
@@ -54,7 +54,7 @@ class Keithley2600(Instrument): # if tab delimitated message is greater than one, grab first two as code, message # otherwise, assign code & message to returned error if len(err) > 1: - err = (float(err[0]), err[1]) + err = (int(err[0]), err[1]) code = err[0] message = err[1].replace('"', '') else:
Added API docs for ingest and tasks Fixes
@@ -90,6 +90,12 @@ Indices .. autoclass:: IndicesClient :members: +Ingest +------ + +.. autoclass:: IngestClient + :members: + Cluster ------- @@ -114,3 +120,8 @@ Snapshot .. autoclass:: SnapshotClient :members: +Tasks +----- + +.. autoclass:: TasksClient + :members:
To avoid I/O errors, carry out vg deactivate (using vgchange -an) and dmsetup remove device.
# Runs "lvremove -ff <vg>; vgremove -fy <vg>; pvremove -fy <pv>" for every device found to be a physical volume. - name: Clear GlusterFS storage device contents - shell: "{% for line in item.stdout_lines %}{% set fields = line.split() %}{% if fields | count > 1 %}lvremove -ff {{ fields[1] }}; vgremove -fy {{ fields[1] ...
utils/exec_control: Fix once decorator implementation Ensures that the once decorator does not affect classes in a parallel inheritance hierarchy.
-from inspect import getmro - # "environment" management: __environments = {} __active_environment = None @@ -96,10 +94,7 @@ def once(method): if __active_environment is None: activate_environment('default') - func_id = repr(method.func_name) - # Store the least derived class, which isn't object, to account - # for sub...
$.Common: generate kind subtype for abstract nodes with no derivation This makes the generated Ada API more consistent (now *all* nodes have such a subtype) and will make it easier to write predicates that involve such nodes. TN:
@@ -83,12 +83,14 @@ package ${ada_lib_name}.Common is ## Output subranges to materialize abstract classes as sets of their ## concrete subclasses. % for cls in ctx.astnode_types: + subtype ${cls.ada_kind_range_name} is ${T.node_kind} % if cls.concrete_subclasses: - subtype ${cls.ada_kind_range_name} is - ${T.node_kind}...
emoji.js: Add `display_name` field. The idea is to use this field for storing the best matching alias to be displayed in search results. In subsequent commits I will replace the search and rendering logic to use this field instead of creating new objects on each search.
@@ -107,6 +107,7 @@ exports.build_emoji_data = function (realm_emojis) { _.each(realm_emojis, function (realm_emoji, realm_emoji_name) { emoji_dict = { name: realm_emoji_name, + display_name: realm_emoji_name, aliases: [realm_emoji_name], is_realm_emoji: true, url: realm_emoji.emoji_url, @@ -122,6 +123,7 @@ exports.bui...
Adding more interface types to convert_intf_name() Added the following interface types and abbreviation variations: 'Ten': 'TenGigabitEthernet', 'Tw': 'TwoGigabitEthernet', 'Two': 'TwoGigabitEthernet', 'For': 'FortyGigabitEthernet', 'Hun': 'HundredGigE',
@@ -205,6 +205,9 @@ class Common(): 'Gig': 'GigabitEthernet', 'GE': 'GigabitEthernet', 'Te': 'TenGigabitEthernet', + 'Ten': 'TenGigabitEthernet', + 'Tw': 'TwoGigabitEthernet', + 'Two': 'TwoGigabitEthernet', 'mgmt': 'mgmt', 'Vl': 'Vlan', 'Tu': 'Tunnel', @@ -215,7 +218,9 @@ class Common(): 'BD': 'BDI', 'Se': 'Serial', 'F...
Fix nightly steps on existing directory ...and also move root chain height calc in nightly build
@@ -108,11 +108,6 @@ jobs: keys: - pyquarkchain-dep-{{ checksum "requirements.txt" }} - - run: - name: Calculate root chain tip height - command: | - echo 'export R_HEIGHT=$(python quarkchain/tools/db_browser.py --cluster_config=`pwd`/mainnet/singularity/cluster_config_template.json root_print_tip 2> /dev/null | grep "...
remove unneeded objectstorage class We use the default django-storages default_storage
@@ -346,89 +346,6 @@ class FileOnDiskStorage(FileSystemStorage): return super(FileOnDiskStorage, self)._save(name, content) -@deconstructible -class ObjectStorage(Storage): - """ - ObjectStorage stores our data in Minio, an object storage system that's Amazon S3 compatible. - - Minio runs on your local machine, allowin...
Fix PipelineController start should not kill the process when done Fix PY3.5 compatibility
@@ -690,7 +690,6 @@ class PipelineController(object): step_task_completed_callback=step_task_completed_callback, wait=wait ) - leave_process(0) return True @@ -2793,7 +2792,7 @@ class PipelineDecorator(PipelineController): add_pipeline_tags=False, # type: bool target_project=None, # type: Optional[str] abort_on_failure...
Fix a bug in the data loading of GraphWriter In the bucket sampler, the length array should be recovered after random picking samples.
@@ -227,6 +227,8 @@ class BucketSampler(torch.utils.data.Sampler): random.shuffle(datas) idxs = sum(datas, []) batch = [] + + lens = torch.Tensor([len(x) for x in self.data_source]) for idx in idxs: batch.append(idx) mlen = max([0]+[lens[x] for x in batch])
[PY3] Fix timezone module unit tests When writing to a file, the string needs to be converted to bytes first.
@@ -19,6 +19,8 @@ ensure_in_syspath('../../') # Import Salt Libs from salt.modules import timezone +import salt.ext.six as six +import salt.utils # Globals timezone.__salt__ = {} @@ -76,6 +78,9 @@ class TimezoneTestCase(TestCase): def create_tempfile_with_contents(self, contents): temp = NamedTemporaryFile(delete=False...
PyTorch should always depend on `future` Summary: Because `past` is used in `caffe2.python.core` Pull Request resolved: Test Plan: CI
@@ -352,10 +352,10 @@ def build_deps(): ################################################################################ # the list of runtime dependencies required by this built package -install_requires = [] +install_requires = ['future'] if sys.version_info <= (2, 7): - install_requires += ['future', 'typing'] + ins...
pkg_analysis_body_ada.mako: minor reformatting TN: minor
@@ -1163,8 +1163,8 @@ package body ${ada_lib_name}.Analysis is procedure Reroot_Foreign_Nodes (Self : in out Lex_Env_Data_Type; Root_Scope : Lexical_Env) is - Els : ${root_node_type_name}_Vectors.Elements_Array - := Self.Contains.To_Array; + Els : ${root_node_type_name}_Vectors.Elements_Array := + Self.Contains.To_Arra...
Update README.md Add gitter link.
[![Build Status](https://travis-ci.com/WagnerGroup/pyqmc.svg?branch=master)](https://travis-ci.com/WagnerGroup/pyqmc) [![Documentation Status](https://readthedocs.org/projects/pyqmc/badge/?version=latest)](https://pyqmc.readthedocs.io/en/latest/?badge=latest) - +[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter....