diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/spyder_kernels/_version.py b/spyder_kernels/_version.py index <HASH>..<HASH> 100644 --- a/spyder_kernels/_version.py +++ b/spyder_kernels/_version.py @@ -8,5 +8,5 @@ """Version File.""" -VERSION_INFO = (1, 6, 0) +VERSION_INFO = (1, 7, 0, 'dev0') __version__ = '.'.join(map(str, VERSION_INFO))
Back to work [ci skip]
diff --git a/WeaveData/src/WeavePathData.js b/WeaveData/src/WeavePathData.js index <HASH>..<HASH> 100644 --- a/WeaveData/src/WeavePathData.js +++ b/WeaveData/src/WeavePathData.js @@ -27,6 +27,21 @@ weave.WeavePath.qkeyToIndex = function(key) return this._qkeys_to_numeric[key_str]; }; +function toArray(args) +{ + var array = []; + for (var i = 0; i < args.length; i++) + array[i] = args[i]; + return array; +} + +if (!Function.prototype.bind) + Function.prototype.bind = function(/* that, ...args */):Function + { + var args = toArray(arguments), that = args.shift(); + return function():*{ return this.apply(that, args.concat(toArray(arguments))); }; + } + weave.WeavePath.prototype.qkeyToIndex = weave.WeavePath.qkeyToIndex.bind(weave.WeavePath); weave.WeavePath.indexToQKey = function (index)
added shim for missing JS Function.bind()
diff --git a/pythonforandroid/recipes/librt/__init__.py b/pythonforandroid/recipes/librt/__init__.py index <HASH>..<HASH> 100644 --- a/pythonforandroid/recipes/librt/__init__.py +++ b/pythonforandroid/recipes/librt/__init__.py @@ -19,7 +19,7 @@ class LibRt(Recipe): finishes''' def build_arch(self, arch): - libc_path = join(arch.ndk_platform, 'usr', 'lib', 'libc') + libc_path = join(arch.ndk_lib_dir, 'usr', 'lib', 'libc') # Create a temporary folder to add to link path with a fake librt.so: fake_librt_temp_folder = join( self.get_build_dir(arch.arch),
changed arch.ndk_platform to arch.ndk_lib_dir fix for ```python AttributeError: 'ArchARMv7_a' object has no attribute 'ndk_platform' ```
diff --git a/lib/rain/deployer.rb b/lib/rain/deployer.rb index <HASH>..<HASH> 100644 --- a/lib/rain/deployer.rb +++ b/lib/rain/deployer.rb @@ -24,7 +24,7 @@ module Rain run_cmd("git tag #{tag.to_s}") push_tag(tag) else - say "Deploying existing tag #{GitTools::ReleaseTag.current} to '#{environment}'." + say "Deploying existing tag #{GitTools::ReleaseTag.current("stage")} to '#{environment}'." end run_cmd "bundle exec cap to_#{environment} deploy"
Deploy the latest stage, not the current prod
diff --git a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java b/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java index <HASH>..<HASH> 100644 --- a/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java +++ b/sonar-server/src/main/java/org/sonar/server/permission/InternalPermissionTemplateService.java @@ -144,7 +144,7 @@ public class InternalPermissionTemplateService implements ServerComponent { List<PermissionTemplateDto> existingTemplates = permissionDao.selectAllPermissionTemplates(); if(existingTemplates != null) { for (PermissionTemplateDto existingTemplate : existingTemplates) { - if((templateId == null || templateId != existingTemplate.getId()) && (existingTemplate.getName().equals(templateName))) { + if((templateId == null || !existingTemplate.getId().equals(templateId)) && (existingTemplate.getName().equals(templateName))) { String errorMsg = "A template with that name already exists"; LOG.error(errorMsg); throw new BadRequestException(errorMsg);
SONAR-<I> Fixed quality issue
diff --git a/src/Composer/ArtifactsPlugin.php b/src/Composer/ArtifactsPlugin.php index <HASH>..<HASH> 100644 --- a/src/Composer/ArtifactsPlugin.php +++ b/src/Composer/ArtifactsPlugin.php @@ -29,7 +29,7 @@ class ArtifactsPlugin implements PluginInterface { $packagesDir = $composer->getConfig()->get('data-dir').'/packages'; - if (!is_dir($packagesDir)) { + if (!is_dir($packagesDir) || !class_exists(\ZipArchive::class)) { return; }
Bypass artifacts plugin if ext-zip is not installed
diff --git a/lib/percheron/cli/main_command.rb b/lib/percheron/cli/main_command.rb index <HASH>..<HASH> 100644 --- a/lib/percheron/cli/main_command.rb +++ b/lib/percheron/cli/main_command.rb @@ -1,6 +1,6 @@ module Percheron module CLI - class MainCommand < Clamp::Command + class MainCommand < AbstractCommand subcommand 'list', "List stacks and it's containers", ListCommand subcommand 'start', 'Start a stack', StartCommand end
MainCommand needs to < AbstractCommand so -c is available to all subcommands
diff --git a/lib/userlist/push/resource.rb b/lib/userlist/push/resource.rb index <HASH>..<HASH> 100644 --- a/lib/userlist/push/resource.rb +++ b/lib/userlist/push/resource.rb @@ -67,9 +67,10 @@ module Userlist def to_hash Serializer.serialize(self) end + alias to_h to_hash - def to_h - to_hash + def to_json(*args) + to_hash.to_json(*args) end def url
Add Userlist::Push::Resource#to_json to fix serialization accross different JSON implementations
diff --git a/js/tabs.js b/js/tabs.js index <HASH>..<HASH> 100644 --- a/js/tabs.js +++ b/js/tabs.js @@ -132,7 +132,9 @@ if (!clicked) { var prev_index = index; index = $tabs_wrapper.index(item); + $active.removeClass('active'); $active = $links.eq(index); + $active.addClass('active'); animateIndicator(prev_index); if (typeof(options.onShow) === "function") { options.onShow.call($this[0], $content);
Fixed active bug on swipeable tabs
diff --git a/src/utils/get-coords.spec.js b/src/utils/get-coords.spec.js index <HASH>..<HASH> 100644 --- a/src/utils/get-coords.spec.js +++ b/src/utils/get-coords.spec.js @@ -6,6 +6,7 @@ import getCoords from './get-coords'; test('should return null when no coordinates were found ', (t) => { t.deepEqual( + // $FlowFixMe: Find a way of simulating an actual synthetic react event getCoords(new FocusEvent('focus')), null, ); @@ -15,6 +16,7 @@ test('should return the coords when it\'s a mouse event', (t) => { // Simulated mouse event const ev = new MouseEvent('mousedown'); + // $FlowFixMe: Find a way of simulating an actual synthetic react event t.deepEqual(getCoords(ev), { x: ev.clientX, y: ev.clientY, @@ -30,6 +32,7 @@ test('should return the coords when it\'s a touch event', (t) => { }], }); + // $FlowFixMe: Find a way of simulating an actual synthetic react event t.deepEqual(getCoords(ev), { x: ev.touches[0].clientX, y: ev.touches[0].clientY,
Suppress flow warnings in getCoords test as there is no way of creating a simulated synthetic event
diff --git a/lib/veritas/relation/operation/order/direction.rb b/lib/veritas/relation/operation/order/direction.rb index <HASH>..<HASH> 100644 --- a/lib/veritas/relation/operation/order/direction.rb +++ b/lib/veritas/relation/operation/order/direction.rb @@ -26,15 +26,15 @@ module Veritas self.class.reverse.new(attribute) end + def ==(other) + eql?(other) + end + def eql?(other) instance_of?(other.class) && attribute.eql?(other.attribute) end - def ==(other) - eql?(other) - end - def hash attribute.hash end
Prefer #eql? and #hash definitions together in the source
diff --git a/packages/pob/lib/generators/common/babel/index.js b/packages/pob/lib/generators/common/babel/index.js index <HASH>..<HASH> 100644 --- a/packages/pob/lib/generators/common/babel/index.js +++ b/packages/pob/lib/generators/common/babel/index.js @@ -569,7 +569,9 @@ module.exports = class BabelGenerator extends Generator { /* webpack 5 and node with ESM support */ if (useBabel) { - pkg.exports = {}; + pkg.exports = { + './package.json': './package.json', + }; this.entries.forEach((entry) => { const isBrowserOnly =
feat: exports package.json by default
diff --git a/lib/cancan/inherited_resource.rb b/lib/cancan/inherited_resource.rb index <HASH>..<HASH> 100644 --- a/lib/cancan/inherited_resource.rb +++ b/lib/cancan/inherited_resource.rb @@ -3,16 +3,16 @@ module CanCan class InheritedResource < ControllerResource # :nodoc: def load_resource_instance if parent? - @controller.parent + @controller.send :parent elsif new_actions.include? @params[:action].to_sym - @controller.build_resource + @controller.send :build_resource else - @controller.resource + @controller.send :resource end end def resource_base - @controller.end_of_association_chain + @controller.send :end_of_association_chain end end end
Controllers which use 'inherit_resources' instead of Inheritance may have inherited_resource's methods protected
diff --git a/cartoframes/context.py b/cartoframes/context.py index <HASH>..<HASH> 100644 --- a/cartoframes/context.py +++ b/cartoframes/context.py @@ -1,4 +1,5 @@ """CartoContext and BatchJobStatus classes""" +from __future__ import absolute_import import json import os import random @@ -20,11 +21,11 @@ from carto.exceptions import CartoException from carto.datasets import DatasetManager from pyrestcli.exceptions import NotFoundException -from cartoframes.credentials import Credentials -from cartoframes.dataobs import get_countrytag -from cartoframes import utils -from cartoframes.layer import BaseMap, AbstractLayer -from cartoframes.maps import (non_basemap_layers, get_map_name, +from .credentials import Credentials +from .dataobs import get_countrytag +from . import utils +from .layer import BaseMap, AbstractLayer +from .maps import (non_basemap_layers, get_map_name, get_map_template, top_basemap_layer_url) from cartoframes.__version__ import __version__
add absolute_import to make imports clearer
diff --git a/consumer.go b/consumer.go index <HASH>..<HASH> 100644 --- a/consumer.go +++ b/consumer.go @@ -3,6 +3,7 @@ package cony import ( "fmt" "os" + "sync" "github.com/streadway/amqp" ) @@ -21,6 +22,8 @@ type Consumer struct { exclusive bool noLocal bool stop chan struct{} + dead bool + m sync.Mutex } // Deliveries return deliveries shipped to this consumer @@ -36,9 +39,13 @@ func (c *Consumer) Errors() <-chan error { // Cancel this consumer func (c *Consumer) Cancel() { - select { - case c.stop <- struct{}{}: - default: + c.m.Lock() + defer c.m.Unlock() + + if !c.dead { + close(c.deliveries) + close(c.stop) + c.dead = true } }
Consumer will close its delivery channel once Close()-ed * Close deliveries channel * Guard closing channel with mutex and condition
diff --git a/src/dna-template-component.js b/src/dna-template-component.js index <HASH>..<HASH> 100644 --- a/src/dna-template-component.js +++ b/src/dna-template-component.js @@ -30,7 +30,7 @@ export const TemplateMixin = (SuperClass) => class extends SuperClass { constructor() { super(); let template = this.constructor.template; - if (template) { + if (template && !this.hasOwnProperty('template')) { if (typeof template === 'string') { template = new Template(template); Object.defineProperty(this.constructor, 'template', { @@ -42,9 +42,13 @@ export const TemplateMixin = (SuperClass) => class extends SuperClass { value: template.clone().setScope(this), }); } - this.observeProperties(() => { - this.render(); - }); + } + if (this.hasOwnProperty('template')) { + if (this.observeProperties) { + this.observeProperties(() => { + this.render(); + }); + } this.render(); } }
refactor: improve template property handling
diff --git a/src/L.Control.Locate.js b/src/L.Control.Locate.js index <HASH>..<HASH> 100644 --- a/src/L.Control.Locate.js +++ b/src/L.Control.Locate.js @@ -1,3 +1,9 @@ +/* +Copyright (c) 2013 Dominik Moritz + +This file is part of the leaflet locate control. It is licensed under the MIT license. +You can find the project at: https://github.com/domoritz/leaflet-locatecontrol +*/ L.Control.Locate = L.Control.extend({ options: { position: 'topleft',
Add notice about origin to main js file
diff --git a/lib/Github/HttpClient/Message/ResponseMediator.php b/lib/Github/HttpClient/Message/ResponseMediator.php index <HASH>..<HASH> 100644 --- a/lib/Github/HttpClient/Message/ResponseMediator.php +++ b/lib/Github/HttpClient/Message/ResponseMediator.php @@ -46,5 +46,7 @@ class ResponseMediator if (null !== $remainingCalls && 1 > $remainingCalls) { throw new ApiLimitExceedException($remainingCalls); } + + return $remainingCalls; } }
Add the missing return statement Simply return the 'X-RateLimit-Remaining' as expected.
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/commonHTMLFragments.js b/bundles/org.eclipse.orion.client.core/web/orion/commonHTMLFragments.js index <HASH>..<HASH> 100644 --- a/bundles/org.eclipse.orion.client.core/web/orion/commonHTMLFragments.js +++ b/bundles/org.eclipse.orion.client.core/web/orion/commonHTMLFragments.js @@ -66,7 +66,7 @@ define(['require'], '<div class="layoutRight" id="statusPane"></div>' + '<div class="layoutRight pageActions" id="pageNavigationActions"></div>' + '<div id="notificationArea" class="layoutLeft layoutBlock slideContainer">' + - '<div class="layoutLeft" id="notifications"></div>' + + '<div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div>' + // still need to hook it up and get correct icon '<div class="layoutRight core-sprite-delete imageSprite" id="close"></div>' + '</div>' + '<div id="parameterArea" class="layoutBlock slideParameters slideContainer">' +
Fix bug <I> - Status Messages cannot be read by screen reader
diff --git a/ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java b/ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java index <HASH>..<HASH> 100644 --- a/ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java +++ b/ext/memory/src/main/java/org/minimalj/repository/memory/InMemoryRepository.java @@ -179,9 +179,9 @@ public class InMemoryRepository implements Repository { Object value = field.get(object); if (field.getAnnotation(NotEmpty.class) != null) { if (value == null) { - throw new IllegalArgumentException(); + throw new IllegalArgumentException(field.getName() + " must not be null"); } else if (value instanceof String && ((String)value).isEmpty()) { - throw new IllegalArgumentException(); + throw new IllegalArgumentException(field.getName() + " must not be empty"); } }
InMemoryRepository: more meaningful exceptions for invalid fields
diff --git a/lib/arel/session.rb b/lib/arel/session.rb index <HASH>..<HASH> 100644 --- a/lib/arel/session.rb +++ b/lib/arel/session.rb @@ -11,26 +11,23 @@ module Arel @instance = nil end - module CRUD - def create(insert) - insert.call - end + def create(insert) + insert.call + end - def read(select) - @read ||= {} - key = select.object_id - return @read[key] if @read.key? key - @read[key] = select.call - end + def read(select) + @read ||= {} + key = select.object_id + return @read[key] if @read.key? key + @read[key] = select.call + end - def update(update) - update.call - end + def update(update) + update.call + end - def delete(delete) - delete.call - end + def delete(delete) + delete.call end - include CRUD end end diff --git a/spec/algebra/unit/session/session_spec.rb b/spec/algebra/unit/session/session_spec.rb index <HASH>..<HASH> 100644 --- a/spec/algebra/unit/session/session_spec.rb +++ b/spec/algebra/unit/session/session_spec.rb @@ -30,7 +30,7 @@ module Arel end end - describe Session::CRUD do + describe 'session crud' do before do @insert = Insert.new(@relation, @relation[:name] => 'nick') @update = Update.new(@relation, @relation[:name] => 'nick')
CRUD is not being reused, so we should not expose it
diff --git a/src/wa_kat/zeo/request_info.py b/src/wa_kat/zeo/request_info.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/zeo/request_info.py +++ b/src/wa_kat/zeo/request_info.py @@ -105,7 +105,25 @@ class RequestInfo(Persistent): @transaction_manager def get_log(self): - return "\n".join( + # create banlist + banlist = set(worker_mapping().keys()) + banlist.add("index") + + # log the state of properties in RequestInfo, except thos in banlist + property_status = [ + " %s=%s," % (key, repr(val)) + for key, val in self.__dict__.items() + if not key.startswith("_") and key not in banlist + ] + + # construct the namedtuple-like view on data + status = "%s(\n%s\n)\n---\n" % ( + self.__class__.__name__, + "\n".join(property_status), + ) + + # add logged messages + return status + "\n".join( "%s: %s" % (str(timestamp), self._log[timestamp]) for timestamp in sorted(self._log.keys()) )
#<I>: Log improved.
diff --git a/src/main/java/moa/tasks/EvaluatePeriodicHeldOutTest.java b/src/main/java/moa/tasks/EvaluatePeriodicHeldOutTest.java index <HASH>..<HASH> 100644 --- a/src/main/java/moa/tasks/EvaluatePeriodicHeldOutTest.java +++ b/src/main/java/moa/tasks/EvaluatePeriodicHeldOutTest.java @@ -169,7 +169,9 @@ public class EvaluatePeriodicHeldOutTest extends MainTask { if (totalTrainTime > this.trainTimeOption.getValue()) { break; } - //testStream.restart(); + if (this.cacheTestOption.isSet()) { + testStream.restart(); + } evaluator.reset(); long testInstancesProcessed = 0; monitor.setCurrentActivityDescription("Testing (after "
Updated EvaluatePeriodicHeldOutTest
diff --git a/src/ol/source/geojsonsource.js b/src/ol/source/geojsonsource.js index <HASH>..<HASH> 100644 --- a/src/ol/source/geojsonsource.js +++ b/src/ol/source/geojsonsource.js @@ -9,6 +9,7 @@ goog.require('ol.source.VectorFile'); * @constructor * @extends {ol.source.VectorFile} * @param {olx.source.GeoJSONOptions=} opt_options Options. + * @todo stability experimental */ ol.source.GeoJSON = function(opt_options) {
Add stability annotation to ol.source.GeoJSON
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,12 +4,7 @@ appinstance Active8 (04-03-15) license: GNU-GPL2 """ -from __future__ import unicode_literals -from __future__ import print_function -from __future__ import division -from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() + from setuptools import setup setup(name='consoleprinter', version='16',
appinstance Friday <I> March <I> (week:9 day:<I>), <I>:<I>:<I>
diff --git a/grails-core/src/main/groovy/org/codehaus/groovy/grails/exceptions/DefaultStackTraceFilterer.java b/grails-core/src/main/groovy/org/codehaus/groovy/grails/exceptions/DefaultStackTraceFilterer.java index <HASH>..<HASH> 100644 --- a/grails-core/src/main/groovy/org/codehaus/groovy/grails/exceptions/DefaultStackTraceFilterer.java +++ b/grails-core/src/main/groovy/org/codehaus/groovy/grails/exceptions/DefaultStackTraceFilterer.java @@ -35,6 +35,7 @@ public class DefaultStackTraceFilterer implements StackTraceFilterer { public static final Log STACK_LOG = LogFactory.getLog("StackTrace"); private static final String[] DEFAULT_INTERNAL_PACKAGES = new String[] { + "org.grails.plugin.resource.DevMode", "org.codehaus.groovy.grails.", "gant.", "org.codehaus.groovy.runtime.",
filter resources plugin DevModeSanityFilter by default
diff --git a/lib/less/rhino.js b/lib/less/rhino.js index <HASH>..<HASH> 100644 --- a/lib/less/rhino.js +++ b/lib/less/rhino.js @@ -188,14 +188,15 @@ function writeFile(filename, content) { return false; } - if (match = arg.match(/^--?([a-z][0-9a-z-]*)(?:=(.*))?$/i)) { arg = match[1] } // was (?:=([^\s]*)), check! - else { return arg } + if (match = arg.match(/^--?([a-z][0-9a-z-]*)(?:=(.*))?$/i)) { arg = match[1]; } // was (?:=([^\s]*)), check! + else { return arg; } switch (arg) { case 'v': case 'version': console.log("lessc " + less.version.join('.') + " (LESS Compiler) [JavaScript]"); continueProcessing = false; + break; case 'verbose': options.verbose = true; break; @@ -215,6 +216,7 @@ function writeFile(filename, content) { //TODO // require('../lib/less/lessc_helper').printUsage(); continueProcessing = false; + break; case 'x': case 'compress': options.compress = true;
fixed some jshint errors
diff --git a/src/index.js b/src/index.js index <HASH>..<HASH> 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env/node + import modules from './modules/'; import MupAPI from './mup-api'; import checkUpdates from './updates';
Add hash-bang line to cli file
diff --git a/src/Piano.js b/src/Piano.js index <HASH>..<HASH> 100644 --- a/src/Piano.js +++ b/src/Piano.js @@ -27,7 +27,7 @@ class Piano extends React.Component { }; state = { - activeNotes: [], + activeNotes: this.props.activeNotes || [], }; componentDidUpdate(prevProps) {
make Piano use activeNotes prop for initial state
diff --git a/spyderlib/plugins/externalconsole.py b/spyderlib/plugins/externalconsole.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/externalconsole.py +++ b/spyderlib/plugins/externalconsole.py @@ -519,7 +519,7 @@ class ExternalConsole(SpyderPluginWidget): _("You can't close an IPython kernel tab.\n\n" "You need to close its associated console\n" "instead or you can kill it using the button\n" - "far to the left."), + "far to the right."), QMessageBox.Ok)
Console: Fix minor wording in the message shown when trying to close an IPython kernel
diff --git a/rpc/args.go b/rpc/args.go index <HASH>..<HASH> 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -1061,7 +1061,7 @@ func (args *WhisperFilterArgs) UnmarshalJSON(b []byte) (err error) { for idx, field := range list { switch value := field.(type) { case nil: - topics[idx] = []string{""} + topics[idx] = []string{} case string: topics[idx] = []string{value}
rpc: use nil topic wildcards instead of ""
diff --git a/src/jamesiarmes/PhpEws/Client.php b/src/jamesiarmes/PhpEws/Client.php index <HASH>..<HASH> 100644 --- a/src/jamesiarmes/PhpEws/Client.php +++ b/src/jamesiarmes/PhpEws/Client.php @@ -950,6 +950,22 @@ class Client } /** + * Retrieves configuration information for the specified type of service. + * + * This operation can return configuration settings for the Unified + * Messaging, Protection Rules, and Mail Tips services. + * + * @since Exchange 2010 + * + * @param \jamesiarmes\PhpEws\Request\GetServiceConfigurationType $request + * @return \jamesiarmes\PhpEws\Response\GetServiceConfigurationResponseMessageType + */ + public function GetServiceConfiguration($request) + { + return $this->makeRequest(__FUNCTION__, $request); + } + + /** * Function Description * * @param \jamesiarmes\PhpEws\Request\GetUserAvailabilityRequestType $request
Added GetServiceConfiguration operation.
diff --git a/etcdserver/server.go b/etcdserver/server.go index <HASH>..<HASH> 100644 --- a/etcdserver/server.go +++ b/etcdserver/server.go @@ -734,7 +734,7 @@ func (s *EtcdServer) start() { s.applyWait = wait.NewTimeList() s.done = make(chan struct{}) s.stop = make(chan struct{}) - s.stopping = make(chan struct{}) + s.stopping = make(chan struct{}, 1) s.ctx, s.cancel = context.WithCancel(context.Background()) s.readwaitc = make(chan struct{}, 1) s.readNotifier = newNotifier()
server: use buffered channel to avoid goroutine leak (#<I>)
diff --git a/manifest.go b/manifest.go index <HASH>..<HASH> 100644 --- a/manifest.go +++ b/manifest.go @@ -323,11 +323,23 @@ func (m *Manifest) FetchDependency(dep Dependency, outputFile string) error { return nil } +func (m *Manifest) entrySupportsCurrentStack(entry *ManifestEntry) bool { + stack := os.Getenv("CF_STACK") + + for _, s := range entry.CFStacks { + if s == stack { + return true + } + } + + return false +} + func (m *Manifest) AllDependencyVersions(depName string) []string { var depVersions []string for _, e := range m.ManifestEntries { - if e.Dependency.Name == depName { + if e.Dependency.Name == depName && m.entrySupportsCurrentStack(&e) { depVersions = append(depVersions, e.Dependency.Version) } } @@ -350,7 +362,7 @@ func (m *Manifest) InstallOnlyVersion(depName string, installDir string) error { func (m *Manifest) getEntry(dep Dependency) (*ManifestEntry, error) { for _, e := range m.ManifestEntries { - if e.Dependency == dep { + if e.Dependency == dep && m.entrySupportsCurrentStack(&e) { return &e, nil } }
Filter dependencies based on their stack
diff --git a/package.php b/package.php index <HASH>..<HASH> 100644 --- a/package.php +++ b/package.php @@ -4,7 +4,7 @@ require_once 'PEAR/PackageFileManager2.php'; -$version = '1.4.118'; +$version = '1.4.119'; $notes = <<<EOT No release notes for you! EOT;
prepare for release of <I> svn commit r<I>
diff --git a/lib/chars/chars.rb b/lib/chars/chars.rb index <HASH>..<HASH> 100644 --- a/lib/chars/chars.rb +++ b/lib/chars/chars.rb @@ -41,7 +41,7 @@ module Chars ] # The space character set - SPACE = CharSet.new(' ', "\f", "\n", "\r", "\t", "\v") + SPACE = CharSet[' ', "\f", "\n", "\r", "\t", "\v"] # The set of printable characters (not including spaces) VISIBLE = ALPHA_NUMERIC | CharSet[
Use CharSet[] to initialize the char sets.
diff --git a/pytablewriter/style/_cell.py b/pytablewriter/style/_cell.py index <HASH>..<HASH> 100644 --- a/pytablewriter/style/_cell.py +++ b/pytablewriter/style/_cell.py @@ -10,3 +10,10 @@ class Cell: self.col = col self.value = value self.default_style = default_style + + def is_header_row(self) -> bool: + """ + Return |True| if the cell is a header. + """ + + return self.row < 0 diff --git a/test/test_style.py b/test/test_style.py index <HASH>..<HASH> 100644 --- a/test/test_style.py +++ b/test/test_style.py @@ -2,11 +2,28 @@ import sys import pytest -from pytablewriter.style import Align, FontSize, FontStyle, FontWeight, Style, ThousandSeparator +from pytablewriter.style import ( + Align, + Cell, + FontSize, + FontStyle, + FontWeight, + Style, + ThousandSeparator, +) from ._common import print_test_result +class Test_Cell_is_header_row: + @pytest.mark.parametrize( + ["row", "expected"], [[-1, True], [0, False], [sys.maxsize, False]], + ) + def test_normal(self, row, expected): + cell = Cell(row=row, col=0, value=None, default_style=None) + assert cell.is_header_row() is expected + + class Test_Style_constructor: @pytest.mark.parametrize( ["value", "expected"],
Add is_header_row method to Cell class
diff --git a/lib/dpl/providers/lambda.rb b/lib/dpl/providers/lambda.rb index <HASH>..<HASH> 100644 --- a/lib/dpl/providers/lambda.rb +++ b/lib/dpl/providers/lambda.rb @@ -164,7 +164,7 @@ module Dpl end def split_vars(vars) - vars.map { |var| var.split('=') }.to_h + vars.map { |var| var.split('=', 2) }.to_h end def tmp_filename
port <I> (preserve = in the rhs of env var, lambda)
diff --git a/src/Synapse/ApplicationInitializer.php b/src/Synapse/ApplicationInitializer.php index <HASH>..<HASH> 100644 --- a/src/Synapse/ApplicationInitializer.php +++ b/src/Synapse/ApplicationInitializer.php @@ -11,13 +11,6 @@ use Symfony\Component\Debug\Debug; class ApplicationInitializer { /** - * Application version - * - * @var string - */ - protected $appVersion = '0.0.0'; - - /** * Initialize the Silex Application * * Register services and routes @@ -30,15 +23,15 @@ class ApplicationInitializer // Create the application object $app = new Application; - // Store application version - $app['version'] = $this->appVersion; - $this->setEnvironment($app); $this->registerConfig($app); // Handle init config $initConfig = $app['config']->load('init'); + // Store application version + $app['version'] = $initConfig['version']; + if ($initConfig['debug']) { Debug::enable(); $app['debug'] = true;
Get application version from init config.
diff --git a/src/Illuminate/Queue/IronQueue.php b/src/Illuminate/Queue/IronQueue.php index <HASH>..<HASH> 100755 --- a/src/Illuminate/Queue/IronQueue.php +++ b/src/Illuminate/Queue/IronQueue.php @@ -77,7 +77,7 @@ class IronQueue extends Queue implements QueueInterface { * @param string $queue * @return mixed */ -public function later($delay, $job, $data = '', $queue = null) + public function later($delay, $job, $data = '', $queue = null) { $delay = $this->getSeconds($delay); @@ -181,4 +181,4 @@ public function later($delay, $job, $data = '', $queue = null) return $this->iron; } -} \ No newline at end of file +}
Add missing tab Whoops, something went wrong here.
diff --git a/html5lib/treewalkers/__init__.py b/html5lib/treewalkers/__init__.py index <HASH>..<HASH> 100644 --- a/html5lib/treewalkers/__init__.py +++ b/html5lib/treewalkers/__init__.py @@ -13,7 +13,7 @@ from __future__ import absolute_import, division, unicode_literals from .. import constants from .._utils import default_etree -__all__ = ["getTreeWalker", "pprint", "dom", "etree", "genshi", "etree_lxml"] +__all__ = ["getTreeWalker", "pprint"] treeWalkerCache = {}
Remove items from __all__ that aren't in the namespace
diff --git a/src/Access/TagPolicy.php b/src/Access/TagPolicy.php index <HASH>..<HASH> 100755 --- a/src/Access/TagPolicy.php +++ b/src/Access/TagPolicy.php @@ -13,7 +13,6 @@ namespace Flarum\Tags\Access; use Flarum\Core\Access\AbstractPolicy; use Flarum\Core\User; use Flarum\Tags\Tag; -use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Database\Eloquent\Builder; class TagPolicy extends AbstractPolicy @@ -39,7 +38,7 @@ class TagPolicy extends AbstractPolicy */ public function startDiscussion(User $actor, Tag $tag) { - if (! $tag->is_restricted + if ((! $tag->is_restricted && $actor->hasPermission('startDiscussion')) || $actor->hasPermission('tag' . $tag->id . '.startDiscussion')) { return true; }
Only allow starting a discussion on a non-restricted tag if the user has the global permission
diff --git a/src/tracing/exporters/console.js b/src/tracing/exporters/console.js index <HASH>..<HASH> 100644 --- a/src/tracing/exporters/console.js +++ b/src/tracing/exporters/console.js @@ -76,7 +76,7 @@ class ConsoleTraceExporter extends BaseTraceExporter { this.printRequest(span.id); // remove old printed requests - this.removeSpanWithChildren(span); + this.removeSpanWithChildren(span.id); } } diff --git a/test/unit/tracing/exporters/console.spec.js b/test/unit/tracing/exporters/console.spec.js index <HASH>..<HASH> 100644 --- a/test/unit/tracing/exporters/console.spec.js +++ b/test/unit/tracing/exporters/console.spec.js @@ -119,7 +119,7 @@ describe("Test Console tracing exporter class", () => { expect(exporter.printRequest).toHaveBeenCalledWith("span1"); expect(exporter.removeSpanWithChildren).toHaveBeenCalledTimes(1); - expect(exporter.removeSpanWithChildren).toHaveBeenCalledWith(span1); + expect(exporter.removeSpanWithChildren).toHaveBeenCalledWith("span1"); }); it("should not call printRequest if has parent span", () => {
fix span removing in console trace exporter
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,13 @@ -from setuptools import setup +from setuptools import setup, find_packages setup(name='dispatch', - version='0.1', + version='0.2.7', description='A publishing platform for modern newspapers', url='http://github.com/ubyssey/dispatch', author='Peter Siemens', author_email='peterjsiemens@gmail.com', license='GPL', - packages=['dispatch'], + packages=find_packages(), scripts=['dispatch/bin/dispatch-admin'], include_package_data=True, install_requires=[
Find all packages with find_packages()
diff --git a/packages/openneuro-client/src/datasets.js b/packages/openneuro-client/src/datasets.js index <HASH>..<HASH> 100644 --- a/packages/openneuro-client/src/datasets.js +++ b/packages/openneuro-client/src/datasets.js @@ -107,3 +107,9 @@ export const updatePermissions = gql` updatePermissions(datasetId: $datasetId, userId: $userId, level: $level) } ` + +export const removePermissions = gql` + mutation ($datasetId: ID!, $userId: String!) { + removePermissions(datasetId: $datasetId, userId: $userId) + } +`
removePermissions added to openneuro-client shared mutations
diff --git a/src/views/site/lockscreen.php b/src/views/site/lockscreen.php index <HASH>..<HASH> 100644 --- a/src/views/site/lockscreen.php +++ b/src/views/site/lockscreen.php @@ -24,8 +24,8 @@ $this->title = 'Lockscreen'; <!-- /.lockscreen-image --> <!-- lockscreen credentials (contains the form) --> - <form class="lockscreen-credentials" action="<?= Yii::$app->params['hipanelUrl'] ?>"> - <input type="submit" class="form-control btn" value="Return to HiPanel" /> + <form class="lockscreen-credentials" action="/site/back"> + <input type="submit" class="form-control btn" value="Return to site" /> </form><!-- /.lockscreen credentials --> </div><!-- /.lockscreen-item -->
used /site/back to return to site
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,8 @@ # python setup.py sdist # # To install distribution in current venv: -# pip install -U dist/elfstonelib-a.b.c.tar.gz +# pip install -U dist/pyudmx-x.y.z.tar.gz +# where x.y.z is the version number (e.g. 1.0.0) # import os
Correct comment explaining how to install package into a venv.
diff --git a/app/models/agents/twitter_stream_agent.rb b/app/models/agents/twitter_stream_agent.rb index <HASH>..<HASH> 100644 --- a/app/models/agents/twitter_stream_agent.rb +++ b/app/models/agents/twitter_stream_agent.rb @@ -125,13 +125,13 @@ module Agents end def self.setup_worker - if Agents::TwitterStreamAgent.dependencies_missing? - STDERR.puts Agents::TwitterStreamAgent.twitter_dependencies_missing - STDERR.flush - return false - end - Agents::TwitterStreamAgent.active.group_by { |agent| agent.twitter_oauth_token }.map do |oauth_token, agents| + if Agents::TwitterStreamAgent.dependencies_missing? + STDERR.puts Agents::TwitterStreamAgent.twitter_dependencies_missing + STDERR.flush + return false + end + filter_to_agent_map = agents.map { |agent| agent.options[:filters] }.flatten.uniq.compact.map(&:strip).inject({}) { |m, f| m[f] = []; m } agents.each do |agent|
TwitterStream only run dependency check when agents are configured Fixes #<I>
diff --git a/lib/puppet/interface/option_builder.rb b/lib/puppet/interface/option_builder.rb index <HASH>..<HASH> 100644 --- a/lib/puppet/interface/option_builder.rb +++ b/lib/puppet/interface/option_builder.rb @@ -19,7 +19,7 @@ class Puppet::Interface::OptionBuilder Puppet::Interface::Option.instance_methods.grep(/=$/).each do |setter| next if setter =~ /^=/ # special case, darn it... - dsl = setter.sub(/=$/, '') + dsl = setter.to_s.sub(/=$/, '') define_method(dsl) do |value| @option.send(setter, value) end end end
(#<I>) Fix string method sub call on a symbol for Ruby <I> Ruby <I> is less forgiving about treating symbols like strings.
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -310,7 +310,8 @@ class ClassicalCalculator(base.HazardCalculator): self.datastore['csm_info'] = self.csm_info return {} smap = parallel.Starmap( - self.core_task.__func__, h5=self.datastore.hdf5) + self.core_task.__func__, h5=self.datastore.hdf5, + num_cores=oq.num_cores) smap.task_queue = list(self.gen_task_queue()) # really fast acc0 = self.acc0() # create the rup/ datasets BEFORE swmr_on() self.datastore.swmr_on()
Fixed num_cores in classical [skip CI]
diff --git a/transport/http/src/main/java/org/kaazing/gateway/transport/http/HttpConnectProcessor.java b/transport/http/src/main/java/org/kaazing/gateway/transport/http/HttpConnectProcessor.java index <HASH>..<HASH> 100644 --- a/transport/http/src/main/java/org/kaazing/gateway/transport/http/HttpConnectProcessor.java +++ b/transport/http/src/main/java/org/kaazing/gateway/transport/http/HttpConnectProcessor.java @@ -71,7 +71,8 @@ public class HttpConnectProcessor extends BridgeConnectProcessor<DefaultHttpSess // create HttpRequestMessage HttpRequestMessage httpRequest = new HttpRequestMessage(); httpRequest.setMethod(session.getMethod()); - httpRequest.setRequestURI(session.getRequestURI()); + URI pathFromResource = URI.create(resource.getPath()); + httpRequest.setRequestURI(pathFromResource); httpRequest.setVersion(session.getVersion()); Map<String, List<String>> parameters = session.getParameters(); if (!parameters.isEmpty()) {
Added the request URI to the HttpRequestMessage from the path of the remote address
diff --git a/pkg/printers/common.go b/pkg/printers/common.go index <HASH>..<HASH> 100644 --- a/pkg/printers/common.go +++ b/pkg/printers/common.go @@ -34,7 +34,7 @@ func ShortHumanDuration(d time.Duration) string { return fmt.Sprintf("%dm", minutes) } else if hours := int(d.Hours()); hours < 24 { return fmt.Sprintf("%dh", hours) - } else if hours < 24*364 { + } else if hours < 24*365 { return fmt.Sprintf("%dd", hours/24) } return fmt.Sprintf("%dy", int(d.Hours()/24/365))
Fixed a tiny issue for ShortHumanDuration printer. Fixed a tiny issue for ShortHumanDuration printer to avoid "0y" message.
diff --git a/lib/rake-pipeline-web-filters/sass_filter.rb b/lib/rake-pipeline-web-filters/sass_filter.rb index <HASH>..<HASH> 100644 --- a/lib/rake-pipeline-web-filters/sass_filter.rb +++ b/lib/rake-pipeline-web-filters/sass_filter.rb @@ -63,14 +63,24 @@ module Rake::Pipeline::Web::Filters end.flatten end - private - + # Overwritten method from rake-pipeline + # # Make sure that files within additional load paths are watched for changes - def create_file_task(output, deps=[], &block) - deps.concat(additional_file_paths) - super(output, deps, &block) + # @return [void] + def generate_rake_tasks + @rake_tasks = outputs.map do |output, inputs| + dependencies = inputs.map(&:fullpath) + additional_file_paths + + dependencies.each { |path| create_file_task(path) } + + create_file_task(output.fullpath, dependencies) do + output.create { generate_output(inputs, output) } + end + end end + private + def external_dependencies [ 'sass', 'compass' ] end
Overwrite generate_rake_tasks method to avoid repeated searching in additional load path for every file in filter
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -19,6 +19,7 @@ from tests.constants import test_bel_simple, mock_bel_resources, test_bel_thorou log = logging.getLogger(__name__) +@unittest.skipUnless('PYBEL_TEST_THOROUGH' in os.environ) class TestCli(TemporaryCacheMixin, BelReconstitutionMixin): def setUp(self): super(TestCli, self).setUp()
Remove CLI testing Will have to resume later
diff --git a/src/java/org/archive/wayback/accesscontrol/AdministrativeExclusionServlet.java b/src/java/org/archive/wayback/accesscontrol/AdministrativeExclusionServlet.java index <HASH>..<HASH> 100644 --- a/src/java/org/archive/wayback/accesscontrol/AdministrativeExclusionServlet.java +++ b/src/java/org/archive/wayback/accesscontrol/AdministrativeExclusionServlet.java @@ -202,6 +202,9 @@ public class AdministrativeExclusionServlet extends WaybackServlet { } catch (ParseException e) { e.printStackTrace(); page.append(formatException(e)); + } catch (DatabaseException e) { + e.printStackTrace(); + page.append(formatException(e)); } } page.append("</body></html>"); @@ -366,7 +369,7 @@ public class AdministrativeExclusionServlet extends WaybackServlet { } private void handleRuleCreate(AdministrativeExclusionAuthority auth, - Map queryMap) throws ParseException, URIException { + Map queryMap) throws ParseException, URIException, DatabaseException { AdministrativeExclusionRule rule = new AdministrativeExclusionRule();
BUGFIX: (unreported) was not handling newly thrown database exception on put() git-svn-id: <URL>
diff --git a/protocol-servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java b/protocol-servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java index <HASH>..<HASH> 100644 --- a/protocol-servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java +++ b/protocol-servlet/src/test/java/org/jboss/arquillian/protocol/servlet/ProtocolTestCase.java @@ -47,7 +47,7 @@ public class ProtocolTestCase public void setup() throws Exception { server = new Server(8181); - Context root = new Context(server, "/protocol", Context.SESSIONS); + Context root = new Context(server, "/arquillian-protocol", Context.SESSIONS); root.addServlet(ServletTestRunner.class, "/*"); server.start(); } @@ -156,7 +156,7 @@ public class ProtocolTestCase private URL createURL(String outputMode, String testClass, String methodName) { - StringBuilder url = new StringBuilder(createBaseURL().toExternalForm()).append("protocol/"); + StringBuilder url = new StringBuilder(createBaseURL().toExternalForm()).append("arquillian-protocol/"); boolean first = true; if(outputMode != null) {
ARQ-<I> Updated protocol name
diff --git a/testsuite/run_cim_operations.py b/testsuite/run_cim_operations.py index <HASH>..<HASH> 100755 --- a/testsuite/run_cim_operations.py +++ b/testsuite/run_cim_operations.py @@ -3337,6 +3337,7 @@ class ClassOperations(ClientClassTest): type='uint8')}) # force propagated False for all properties + # Effictive V0.12.0 this is required. for p in test_class.properties: test_class.properties[p].propagated = False
Add comment as to why we set propagated
diff --git a/new_english/bin/restintercept.py b/new_english/bin/restintercept.py index <HASH>..<HASH> 100755 --- a/new_english/bin/restintercept.py +++ b/new_english/bin/restintercept.py @@ -694,7 +694,9 @@ class JsonProxyRestHandler(splunk.rest.BaseRestHandler): self.response.setStatus(status) self.response.setHeader('Content-Type', 'application/json') - if status == 401: + authorization = self.request["headers"].get("authorization", ""); + is_regular_authorized = authorization.startswith("Splunk"); + if status == 401 and not is_regular_authorized: self.response.setHeader("www-authenticate", 'Basic realm="/splunk"') self.response.write(content)
Make new_english www-authenticate behavior (SPL-<I>) Don't send www-authenticate if Authorization: Splunk* header is in.
diff --git a/tests/test_repository_mining.py b/tests/test_repository_mining.py index <HASH>..<HASH> 100644 --- a/tests/test_repository_mining.py +++ b/tests/test_repository_mining.py @@ -189,10 +189,10 @@ def test_ignore_add_whitespaces_and_changed_file(): def test_clone_repo_to(): - tmp_folder = tempfile.TemporaryDirectory() - dt2 = datetime(2018, 10, 20) - url = "https://github.com/ishepard/pydriller.git" - assert len(list(RepositoryMining( - path_to_repo=url, - to=dt2, - clone_repo_to=tmp_folder.name).traverse_commits())) == 159 + with tempfile.TemporaryDirectory() as tmp_dirname: + dt2 = datetime(2018, 10, 20) + url = "https://github.com/ishepard/pydriller.git" + assert len(list(RepositoryMining( + path_to_repo=url, + to=dt2, + clone_repo_to=tmp_dirname).traverse_commits())) == 159
in the attempt to fix python <I> on Windows. Using tempdirectory as a context manager
diff --git a/tests/functional/contexts/FeatureContext.php b/tests/functional/contexts/FeatureContext.php index <HASH>..<HASH> 100644 --- a/tests/functional/contexts/FeatureContext.php +++ b/tests/functional/contexts/FeatureContext.php @@ -38,7 +38,6 @@ class FeatureContext implements Context, SnippetAcceptingContext $command = $this->application->find('lint'); $this->commandTester = new CommandTester($command); - } /**
Fix coding standards violation in functional tests Removed empty line before closing brace to fix Code Sniff violation.
diff --git a/src/Capsule.php b/src/Capsule.php index <HASH>..<HASH> 100644 --- a/src/Capsule.php +++ b/src/Capsule.php @@ -21,6 +21,16 @@ class Capsule implements \ArrayAccess private $granules = []; /** + * Constructor. + * + * @param array $initialData The initial data. + */ + public function __construct(array $initialData) + { + $this->granules = $initialData; + } + + /** * Checks if a granule is set. * * @param string $key The unique key of the granule.
Added constructor with initial data in Capsule
diff --git a/plugins/item_licenses/server/__init__.py b/plugins/item_licenses/server/__init__.py index <HASH>..<HASH> 100644 --- a/plugins/item_licenses/server/__init__.py +++ b/plugins/item_licenses/server/__init__.py @@ -30,15 +30,15 @@ from .rest import getLicenses def validateString(value): """ - Make sure a value is a string. + Make sure a value is a unicode string. - :param value: the value to coerce into a string if it isn't already. - :returns: the string version of the value. + :param value: the value to coerce into a unicode string if it isn't already. + :returns: the unicode string version of the value. """ if value is None: - value = '' - if not isinstance(value, six.string_types): - value = str(value) + value = six.u('') + if not isinstance(value, six.text_type): + value = six.text_type(value) return value
Validate string as unicode consistently across Python versions
diff --git a/src/Tappleby/OAuth2/Repositories/RefreshTokenRepositoryEloquent.php b/src/Tappleby/OAuth2/Repositories/RefreshTokenRepositoryEloquent.php index <HASH>..<HASH> 100644 --- a/src/Tappleby/OAuth2/Repositories/RefreshTokenRepositoryEloquent.php +++ b/src/Tappleby/OAuth2/Repositories/RefreshTokenRepositoryEloquent.php @@ -62,8 +62,6 @@ class RefreshTokenRepositoryEloquent implements RefreshTokenRepositoryInterface */ function create($attributes, $save = true) { - $attributes['refresh_token'] = $attributes['id']; - unset($attributes['id']); $model = $this->createModel()->fill($attributes); if($save) $this->save($model);
No longer to to switch key of refresh token.
diff --git a/index.js b/index.js index <HASH>..<HASH> 100644 --- a/index.js +++ b/index.js @@ -64,7 +64,7 @@ module.exports = function(options) { } ses.sendEmail({ - Source: "events@webmaker.org", + Source: "Webmaker <events@webmaker.org>", Destination: { ToAddresses: [options.to], }, @@ -102,7 +102,7 @@ module.exports = function(options) { } else { template = 'badgeAwarded'; subject = 'badgeAwardedSubject'; - from = 'help@webmaker.org'; + from = 'Webmaker <help@webmaker.org>'; } var html = templates[template].render({ @@ -161,7 +161,7 @@ module.exports = function(options) { } ses.sendEmail({ - Source: "help@webmaker.org", + Source: "Webmaker <help@webmaker.org>", Destination: { ToAddresses: [options.to] }, @@ -199,7 +199,7 @@ module.exports = function(options) { } ses.sendEmail({ - Source: "help@webmaker.org", + Source: "Webmaker <help@webmaker.org>", Destination: { ToAddresses: [options.to] },
Fix bug <I> - Send emails from Webmaker
diff --git a/pyphi/network.py b/pyphi/network.py index <HASH>..<HASH> 100644 --- a/pyphi/network.py +++ b/pyphi/network.py @@ -109,7 +109,6 @@ class Network: def __init__(self, tpm, connectivity_matrix=None, node_labels=None, perturb_vector=None, purview_cache=None): self.tpm = tpm - self._size = self.tpm.shape[-1] # TODO extend to nonbinary nodes self._num_states = 2 ** self.size self._node_indices = tuple(range(self.size)) @@ -117,12 +116,12 @@ class Network: self.connectivity_matrix = connectivity_matrix self.perturb_vector = perturb_vector self.purview_cache = purview_cache or cache.PurviewCache() - # Validate the entire network. + validate.network(self) @property def size(self): - return self._size + return self.tpm.shape[-1] @property def num_states(self):
Compute `Network.size` dynamically
diff --git a/lib/mongo/server/connection_pool.rb b/lib/mongo/server/connection_pool.rb index <HASH>..<HASH> 100644 --- a/lib/mongo/server/connection_pool.rb +++ b/lib/mongo/server/connection_pool.rb @@ -383,6 +383,12 @@ module Mongo Monitoring::Event::Cmap::ConnectionCheckedOut.new(@server.address, connection.id, self), ) + if Lint.enabled? + unless connection.connected? + raise Error::LintError, 'Connection pool checked out a disconnected connection' + end + end + connection ensure check_invariants diff --git a/spec/spec_tests/cmap_spec.rb b/spec/spec_tests/cmap_spec.rb index <HASH>..<HASH> 100644 --- a/spec/spec_tests/cmap_spec.rb +++ b/spec/spec_tests/cmap_spec.rb @@ -62,6 +62,9 @@ describe 'Cmap' do let!(:result) do socket = double('fake socket') allow(socket).to receive(:close) + # When linting, connection pool ensures the connection returned + # is connected. + allow(socket).to receive(:alive?).and_return(true) allow_any_instance_of(Mongo::Server::Connection).to receive(:do_connect).and_return(socket) spec.run
verify connection pool does not check out disconnected connections when linting (#<I>)
diff --git a/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js b/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js index <HASH>..<HASH> 100644 --- a/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js +++ b/bundles/org.eclipse.orion.client.javascript/web/tern/plugin/modules.js @@ -43,6 +43,7 @@ }, resolveModule: function(name, parentFile) { + var modName = name; // ORION we need the original name for linting var over = this.maybeOverride(name) if (over) return over var known = this.knownModules[name] @@ -67,6 +68,7 @@ if (typeof resolved != "string") { if (!relative) this.nonRelative[name] = true + resolved.modName = modName; //ORION tag module with original name return resolved } @@ -76,7 +78,10 @@ if (/\.js$|(?:^\/)[^\.]+$/.test(resolved)) this.server.addFile(resolved, contents, parentFile) if (!relative) this.nonRelative[name] = resolved - return this.modules[resolved] = new infer.AVal + //ORION tag the module name + var val = new infer.AVal; + val.modName = modName; + return this.modules[resolved] = val; }, findIn: function(array, node, pos) {
Bug <I> - [regression] We need to add back support for tagging module names to resolved files in Tern - part one
diff --git a/examples/docgen/docs/.vuepress/config.js b/examples/docgen/docs/.vuepress/config.js index <HASH>..<HASH> 100644 --- a/examples/docgen/docs/.vuepress/config.js +++ b/examples/docgen/docs/.vuepress/config.js @@ -15,6 +15,7 @@ module.exports = async () => { ) return { + base: "/docgen/", dest: path.join(__dirname, '../../dist'), title: 'VuePress DocGen Live', themeConfig: {
docs: repair docgen example
diff --git a/chess/variant.py b/chess/variant.py index <HASH>..<HASH> 100644 --- a/chess/variant.py +++ b/chess/variant.py @@ -295,7 +295,7 @@ class AtomicBoard(chess.Board): yield move def status(self): - status = super(SuicideBoard, self).status() + status = super(AtomicBoard, self).status() status &= ~chess.STATUS_OPPOSITE_CHECK if self.turn == chess.WHITE: status &= ~chess.STATUS_NO_WHITE_KING @@ -540,7 +540,7 @@ class ThreeCheckBoard(chess.Board): raise ValueError("three-check fen should consist of 7 parts: {0}".format(repr(fen))) # Extract check part. - if "+" == parts[6][0]: + if parts[6][0] == "+": check_part = parts.pop()[1:] try: w, b = check_part.split("+", 1)
More coding style fixes by flake8
diff --git a/lib/on_membership_event.js b/lib/on_membership_event.js index <HASH>..<HASH> 100644 --- a/lib/on_membership_event.js +++ b/lib/on_membership_event.js @@ -21,7 +21,7 @@ var Member = require('./membership/member.js'); var MembershipEvents = require('./membership/events.js'); -var RingEvents = require('../ring/events.js'); +var RingEvents = require('./ring/events.js'); function createChecksumComputedHandler(ringpop) { return function onMembershipChecksumComputed() {
Wrong path to ./ring/events
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index <HASH>..<HASH> 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,6 +1,6 @@ class HomeController < ApplicationController def index - @count = Rubygem.total_count + @count = Version.latest.count @latest = Rubygem.latest @downloaded = Rubygem.downloaded @updated = Version.updated
Use Version.latest.count instead of total_count since AR hates DISTINCT
diff --git a/zap/src/main/java/org/parosproxy/paros/view/AbstractFrame.java b/zap/src/main/java/org/parosproxy/paros/view/AbstractFrame.java index <HASH>..<HASH> 100644 --- a/zap/src/main/java/org/parosproxy/paros/view/AbstractFrame.java +++ b/zap/src/main/java/org/parosproxy/paros/view/AbstractFrame.java @@ -25,6 +25,7 @@ // ZAP: 2015/09/07 Move icon loading to a utility class // ZAP: 2019/06/01 Normalise line endings. // ZAP: 2019/06/05 Normalise format/style. +// ZAP: 2020/11/05 Remove abstract modifier. package org.parosproxy.paros.view; import java.awt.Dimension; @@ -61,7 +62,7 @@ import org.zaproxy.zap.utils.DisplayUtils; * #setPreferredSize(Dimension)} instead. Also, don't use {@link #setLocation(Point)}. This abstract * class will automatically take care of size and position. */ -public abstract class AbstractFrame extends JFrame { +public class AbstractFrame extends JFrame { private static final long serialVersionUID = 6751593232255236597L;
Allow to instantiate AbstractFrame Do not require to extend the class to use it, it's not needed.
diff --git a/src/angular-ui-query-builder-tables.js b/src/angular-ui-query-builder-tables.js index <HASH>..<HASH> 100644 --- a/src/angular-ui-query-builder-tables.js +++ b/src/angular-ui-query-builder-tables.js @@ -440,7 +440,7 @@ angular.module('angular-ui-query-builder') of {{showRange.total | number}} </span> </span> - <ul ng-if="qbTableSettings.pagination.showPages && showRange.end" class="display-pages pagination"> + <ul ng-if="qbTableSettings.pagination.showPages && showRange.end && pages.max > 1" class="display-pages pagination"> <li ng-repeat="page in pages.range track by page.number" ng-class="page.mode == 'current' ? 'active' : ''"> <a ng-click="navPageNumber(page.number)"> {{page.number + 1 | number}}
BUGFIX: Dont show page display if there is only one page within the range anyway
diff --git a/src/Charcoal/Object/RoutableTrait.php b/src/Charcoal/Object/RoutableTrait.php index <HASH>..<HASH> 100644 --- a/src/Charcoal/Object/RoutableTrait.php +++ b/src/Charcoal/Object/RoutableTrait.php @@ -423,6 +423,7 @@ trait RoutableTrait $objectRoute->setData($data); $objectRoute->setSlug($slug); + $objectRoute->setLang($lang); if (!$objectRoute->isSlugUnique()) { $objectRoute->generateUniqueSlug();
Set lang to objectRoute.
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/base.py +++ b/pylint/checkers/base.py @@ -137,6 +137,10 @@ TYPE_QNAME = "%s.type" % BUILTINS PY33 = sys.version_info >= (3, 3) PY3K = sys.version_info >= (3, 0) PY35 = sys.version_info >= (3, 5) +ABC_METACLASSES = { + '_py_abc.ABCMeta', # Python 3.7+, + 'abc.ABCMeta', +} # Name categories that are always consistent with all naming conventions. EXEMPT_NAME_CATEGORIES = {'exempt', 'ignore'} @@ -664,7 +668,7 @@ class BasicErrorChecker(_BasicChecker): node=node) break return - if metaclass.qname() == 'abc.ABCMeta' and abstract_methods: + if metaclass.qname() in ABC_METACLASSES and abstract_methods: self.add_message('abstract-class-instantiated', args=(infered.name, ), node=node)
abstract-class-instantiated accounts for _py_abc.ABCMeta for Python <I>
diff --git a/galpy/potential_src/plotRotcurve.py b/galpy/potential_src/plotRotcurve.py index <HASH>..<HASH> 100644 --- a/galpy/potential_src/plotRotcurve.py +++ b/galpy/potential_src/plotRotcurve.py @@ -89,14 +89,8 @@ def calcRotcurve(Pot,Rs): grid=1 Rs= nu.array([Rs]) rotcurve= nu.zeros(grid) - from planarPotential import evaluateplanarRforces for ii in range(grid): - try: - rotcurve[ii]= nu.sqrt(Rs[ii]*-evaluateplanarRforces(Rs[ii],Pot)) - except TypeError: - from planarPotential import RZToplanarPotential - Pot= RZToplanarPotential(Pot) - rotcurve[ii]= nu.sqrt(Rs[ii]*-evaluateplanarRforces(Rs[ii],Pot)) + rotcurve[ii]= vcirc(Pot,Rs[ii]) return rotcurve def vcirc(Pot,R):
rewrite calcRotcurve
diff --git a/javascript/node/selenium-webdriver/http/index.js b/javascript/node/selenium-webdriver/http/index.js index <HASH>..<HASH> 100644 --- a/javascript/node/selenium-webdriver/http/index.js +++ b/javascript/node/selenium-webdriver/http/index.js @@ -213,6 +213,7 @@ function sendRequest(options, onOk, onError, opt_data, opt_proxy, opt_retries) { if (!location.hostname) { location.hostname = hostname; location.port = port; + location.auth = options.auth; } request.abort(); @@ -222,6 +223,7 @@ function sendRequest(options, onOk, onError, opt_data, opt_proxy, opt_retries) { hostname: location.hostname, port: location.port, path: location.path, + auth: location.auth, pathname: location.pathname, search: location.search, hash: location.hash,
fix(nodejs): include auth in same domain redirects (#<I>)
diff --git a/src/bg/passwords.php b/src/bg/passwords.php index <HASH>..<HASH> 100644 --- a/src/bg/passwords.php +++ b/src/bg/passwords.php @@ -14,7 +14,7 @@ return [ 'reset' => 'Паролата е нулирана!', 'sent' => 'Изпратено е напомняне за вашата парола!', - 'throttled' => 'Моля изчакайте преди да опитате отново.', + 'throttled' => 'Моля изчакайте, преди да опитате отново.', 'token' => 'Този токен за нулиране на парола е невалиден.', 'user' => 'Потребител с такъв e-mail адрес не може да бъде открит.', ];
[bg] Update password.php throttled translation
diff --git a/lib/beanstalkd_view/beanstalkd_utils.rb b/lib/beanstalkd_view/beanstalkd_utils.rb index <HASH>..<HASH> 100644 --- a/lib/beanstalkd_view/beanstalkd_utils.rb +++ b/lib/beanstalkd_view/beanstalkd_utils.rb @@ -12,7 +12,7 @@ module BeanstalkdView def beanstalk_url return @@url if defined?(@@url) and @@url - ENV['BEANSTALK_URL'] || 'beanstalk://localhost/' + ENV['BEANSTALK_URL'] || 'beanstalk://127.0.0.1/' end def beanstalk_addresses
Use <I> as the default host instead of localhost This should be used to avoid connection refused exceptions when trying to connect to IPv6 socket (since there is no code to handle ipv4 fallback).
diff --git a/middleware.go b/middleware.go index <HASH>..<HASH> 100644 --- a/middleware.go +++ b/middleware.go @@ -2,7 +2,6 @@ package req import ( "bytes" - "github.com/imroc/req/v3/internal/util" "io" "io/ioutil" "mime/multipart" @@ -14,6 +13,8 @@ import ( "reflect" "strings" "time" + + "github.com/imroc/req/v3/internal/util" ) type ( @@ -272,7 +273,7 @@ func unmarshalBody(c *Client, r *Response, v interface{}) (err error) { } func parseResponseBody(c *Client, r *Response) (err error) { - if r.StatusCode == http.StatusNoContent { + if nil == r.Response || r.StatusCode == http.StatusNoContent { return } if r.Request.Result != nil && r.IsSuccess() {
:bug: Fix non-pointer panic
diff --git a/skeleton.go b/skeleton.go index <HASH>..<HASH> 100644 --- a/skeleton.go +++ b/skeleton.go @@ -50,11 +50,11 @@ type conversation interface { } func (c *context) send(message []byte) { - // Dummy for now + // FIXME Dummy for now } func (c *context) receive() []byte { - // Dummy for now + // FIXME Dummy for now return nil }
Silly change to test CI config
diff --git a/pep8ify/pep8ify.py b/pep8ify/pep8ify.py index <HASH>..<HASH> 100755 --- a/pep8ify/pep8ify.py +++ b/pep8ify/pep8ify.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from lib2to3.main import main +import lib2to3.main try: import pep8ify.fixes @@ -14,7 +14,7 @@ except ImportError: def _main(): - raise SystemExit(main("pep8ify.fixes")) + raise SystemExit(lib2to3.main.main("pep8ify.fixes")) if __name__ == '__main__': _main()
Clean-up: Use lib2to3.main.main qualified. Calling just `main(...)` is a bit irritating.
diff --git a/js/src/composer-autocomplete.js b/js/src/composer-autocomplete.js index <HASH>..<HASH> 100644 --- a/js/src/composer-autocomplete.js +++ b/js/src/composer-autocomplete.js @@ -152,15 +152,17 @@ export default function() { dropdown.active(true); clearTimeout(searchTimeout); - searchTimeout = setTimeout(function() { - var typedLower = typed.toLowerCase(); - if (searched.indexOf(typedLower) === -1) { - app.store.find('users', {q: typed, page: {limit: 5}}).then(users => { - if (dropdown.active()) buildSuggestions(); - }); - searched.push(typedLower); - } - }, 250); + if (typed) { + searchTimeout = setTimeout(function() { + var typedLower = typed.toLowerCase(); + if (searched.indexOf(typedLower) === -1) { + app.store.find('users', {q: typed, page: {limit: 5}}).then(users => { + if (dropdown.active()) buildSuggestions(); + }); + searched.push(typedLower); + } + }, 250); + } } }); });
No need to query the API about nothing
diff --git a/script/wee.chain.js b/script/wee.chain.js index <HASH>..<HASH> 100644 --- a/script/wee.chain.js +++ b/script/wee.chain.js @@ -83,6 +83,8 @@ */ each: function(fn, options) { W.$each(this, fn, options); + + return this; }, /**
Return Wee instance from chained each()
diff --git a/thinc/config.py b/thinc/config.py index <HASH>..<HASH> 100644 --- a/thinc/config.py +++ b/thinc/config.py @@ -316,7 +316,7 @@ class registry(object): # Handle spread arguments and use their annotation as Sequence[whatever] if param.kind == param.VAR_POSITIONAL: spread_annot = Sequence[annotation] # type: ignore - sig_args[ARGS_FIELD_ALIAS] = (spread_annot, default) + sig_args[ARGS_FIELD_ALIAS] = (spread_annot, param.default) else: sig_args[param.name] = (annotation, default) sig_args["__config__"] = _PromiseSchemaConfig
Don't make positional __args__ required if present Functions can totally define variable *args and not have any passed in
diff --git a/test/tests/OutputChannel.test.js b/test/tests/OutputChannel.test.js index <HASH>..<HASH> 100644 --- a/test/tests/OutputChannel.test.js +++ b/test/tests/OutputChannel.test.js @@ -185,4 +185,28 @@ describe("OutputChannel Object", function() { }); + describe("resetAllControllers()", function () { + + it("should call the 'sendChannelMode' method", function () { + + // Arrange + let spy = sinon.spy(WebMidiOutputChannel, "sendChannelMode"); + let options = {}; + + // Act + WebMidiOutputChannel.resetAllControllers(options); + + // Assert + expect(spy.calledOnceWithExactly("resetallcontrollers", 0, options)).to.be.true; + + }); + + it("should return the 'OutputChannel' object for method chaining", function () { + expect( + WebMidiOutputChannel.resetAllControllers() + ).to.equal(WebMidiOutputChannel); + }); + + }); + });
Add tests for resetAllControllers() method
diff --git a/lib/search_engine.py b/lib/search_engine.py index <HASH>..<HASH> 100644 --- a/lib/search_engine.py +++ b/lib/search_engine.py @@ -2320,6 +2320,7 @@ def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, re epilogue=format_epilogue, ln=ln, search_pattern=search_pattern, + record_separator="\n", uid=uid)) elif format.startswith('t') or str(format[0:3]).isdigit():
When using the new format_records() function, set the record_separator argument to newline, fixing joined format nuisance formatting such as "</record><record>" in the search engine MARCXML output.
diff --git a/voice.go b/voice.go index <HASH>..<HASH> 100644 --- a/voice.go +++ b/voice.go @@ -135,7 +135,6 @@ func (v *VoiceConnection) ChangeChannel(channelID string, mute, deaf bool) (err // Disconnect disconnects from this voice channel and closes the websocket // and udp connections to Discord. -// !!! NOTE !!! this function may be removed in favour of ChannelVoiceLeave func (v *VoiceConnection) Disconnect() (err error) { // Send a OP4 with a nil channel to disconnect
Update Disconnect() comment It looks like dgo has moved away from ChannelVoiceLeave ever since discord allows bot to connect to more than one channel. Confusing comment seeing that it is very hard to find information about the function that it mentions.
diff --git a/specs-go/v1/layout.go b/specs-go/v1/layout.go index <HASH>..<HASH> 100644 --- a/specs-go/v1/layout.go +++ b/specs-go/v1/layout.go @@ -14,8 +14,6 @@ package v1 -import "regexp" - // ImageLayoutVersion is the version of ImageLayout const ImageLayoutVersion = "1.0.0" @@ -24,8 +22,3 @@ const ImageLayoutVersion = "1.0.0" type ImageLayout struct { Version string `json:"imageLayoutVersion"` } - -var ( - // RefsRegexp matches requirement of image-layout 'refs' charset. - RefsRegexp = regexp.MustCompile(`^[a-zA-Z0-9-._]+$`) -)
specs-go/v1/layout: Remove RefsRegexp The restriction on names was removed by <I>a6be (image-layout: ./refs/ -> index.json, <I>-<I>-<I>, #<I>) and the replacement (org.opencontainers.ref.name) has no equivalent limitation.
diff --git a/src/Driver/Element/Wpphp/UserElement.php b/src/Driver/Element/Wpphp/UserElement.php index <HASH>..<HASH> 100644 --- a/src/Driver/Element/Wpphp/UserElement.php +++ b/src/Driver/Element/Wpphp/UserElement.php @@ -27,7 +27,7 @@ class UserElement extends BaseElement throw new UnexpectedValueException(sprintf('Failed creating new user: %s', $user->get_error_message())); } - return $this->get($user->ID); + return $this->get($user); } /** diff --git a/src/Driver/WpphpDriver.php b/src/Driver/WpphpDriver.php index <HASH>..<HASH> 100644 --- a/src/Driver/WpphpDriver.php +++ b/src/Driver/WpphpDriver.php @@ -302,7 +302,7 @@ class WpphpDriver extends BaseDriver return array( 'id' => $user->ID, - 'slug' => $user->user_nicename, + 'slug' => $user->$user_login, ); }
Effect the user failure fix for the WPPHP driver also The wpphp user element class was attempting to access $user->id where $user was already the id of the user in question. As such a `Trying to get property of non-object` error was thrown. The create user method now simply access $user.
diff --git a/simple_elasticsearch/management/commands/es_manage.py b/simple_elasticsearch/management/commands/es_manage.py index <HASH>..<HASH> 100644 --- a/simple_elasticsearch/management/commands/es_manage.py +++ b/simple_elasticsearch/management/commands/es_manage.py @@ -5,6 +5,17 @@ from django.core.management.base import BaseCommand, CommandError from ...utils import get_indices, create_indices, rebuild_indices +class Unbuffered(object): + def __init__(self, stream): + self.stream = stream + def write(self, data): + self.stream.write(data) + self.stream.flush() + def __getattr__(self, attr): + return getattr(self.stream, attr) +sys.stdout = Unbuffered(sys.stdout) + + class ESCommandError(CommandError): pass
Adding a 'flushing' sys.stdout wrapper to help with some command line text output.
diff --git a/lib/docusign_rest/client.rb b/lib/docusign_rest/client.rb index <HASH>..<HASH> 100644 --- a/lib/docusign_rest/client.rb +++ b/lib/docusign_rest/client.rb @@ -354,7 +354,7 @@ module DocusignRest listTabs: get_tabs(signer[:list_tabs], options, index), noteTabs: nil, numberTabs: nil, - radioGroupTabs: nil, + radioGroupTabs: get_tabs(signer[:radio_group_tabs], options, index), initialHereTabs: get_tabs(signer[:initial_here_tabs], options.merge!(initial_here_tab: true), index), signHereTabs: get_tabs(signer[:sign_here_tabs], options.merge!(sign_here_tab: true), index), signerAttachmentTabs: nil, @@ -415,6 +415,9 @@ module DocusignRest tab_hash[:list_items] = tab[:list_items] if tab[:list_items] + tab_hash[:groupName] = tab[:group_name] if tab.key?(:group_name) + tab_hash[:radios] = get_tabs(tab[:radios], options, index) if tab.key?(:radios) + tab_array << tab_hash end tab_array
Added support for the Radio Group Tab. Fixes jondkinney/docusign_rest#<I>
diff --git a/tasks/save.js b/tasks/save.js index <HASH>..<HASH> 100644 --- a/tasks/save.js +++ b/tasks/save.js @@ -36,7 +36,7 @@ function save(name, src = path.resolve(), options) { filter: pathToCopy => { const match = pathToCopy.match(/node_modules$|.git$/); if (match) { - console.log(`${chalk.redBright(match[0])} has been excluded from ${chalk.blueBright(name)}`); + console.log(`${chalk.dim.redBright(match[0])} has been excluded from ${chalk.blueBright(name)}`); } return !match; } @@ -80,7 +80,7 @@ function clean(root, name) { const itemExists = fs.pathExistsSync(pathToItem); if (itemExists) { fs.removeSync(pathToItem); - console.log(`${chalk.redBright(item)} has been removed from ${chalk.blueBright(name)}`); + console.log(`${chalk.dim.redBright(item)} has been removed from ${chalk.blueBright(name)}`); } } }
Add dim modifier to filtered and removed content logs
diff --git a/frigg_worker/fetcher.py b/frigg_worker/fetcher.py index <HASH>..<HASH> 100644 --- a/frigg_worker/fetcher.py +++ b/frigg_worker/fetcher.py @@ -123,5 +123,5 @@ def upgrade(): pip.main(['install', '-U', 'frigg-worker']) pip.main(['install', '-U', 'frigg-settings']) pip.main(['install', '-U', 'frigg-test-discovery']) - pip.main(['install', '-U', 'docker-wrapper-py']) + pip.main(['install', '-U', 'docker-wrapper']) sys.exit(1) diff --git a/tests/test_fetcher.py b/tests/test_fetcher.py index <HASH>..<HASH> 100644 --- a/tests/test_fetcher.py +++ b/tests/test_fetcher.py @@ -109,5 +109,5 @@ class FetcherTests(TestCase): call(['install', '-U', 'frigg-worker']), call(['install', '-U', 'frigg-settings']), call(['install', '-U', 'frigg-test-discovery']), - call(['install', '-U', 'docker-wrapper-py']) + call(['install', '-U', 'docker-wrapper']) ])
fix(deps): Set correct ref to docker-wrapper in fetcher
diff --git a/version.py b/version.py index <HASH>..<HASH> 100644 --- a/version.py +++ b/version.py @@ -4,7 +4,7 @@ _version_major = 0 _version_minor = 1 _version_micro = '' # use '' for first of series, number for 1 and above -_version_extra = 'dev' +_version_extra = 'rc1' #_version_extra = '' # Uncomment this for full releases # Construct full version string from these.
Making a release candidate to test installation through pip.
diff --git a/jax/experimental/jax2tf/tests/primitive_harness.py b/jax/experimental/jax2tf/tests/primitive_harness.py index <HASH>..<HASH> 100644 --- a/jax/experimental/jax2tf/tests/primitive_harness.py +++ b/jax/experimental/jax2tf/tests/primitive_harness.py @@ -905,10 +905,10 @@ lax_conv_general_dilated = tuple( # Validate dtypes and precision # This first harness runs the tests for all dtypes and precisions using # default values for all the other parameters. Variations of other parameters # can thus safely skip testing their corresponding default value. - _make_conv_harness("dtype_precision", dtype=dtype, precision=precision) - for dtype in jtu.dtypes.all_inexact - for precision in [None, lax.Precision.DEFAULT, lax.Precision.HIGH, - lax.Precision.HIGHEST] + # _make_conv_harness("dtype_precision", dtype=dtype, precision=precision) + # for dtype in jtu.dtypes.all_inexact + # for precision in [None, lax.Precision.DEFAULT, lax.Precision.HIGH, + # lax.Precision.HIGHEST] ) + tuple( # Validate variations of feature_group_count and batch_group_count _make_conv_harness("group_counts", lhs_shape=lhs_shape, rhs_shape=rhs_shape, feature_group_count=feature_group_count,
[jax2tf] Disable some convolution tests (#<I>)
diff --git a/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb b/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb index <HASH>..<HASH> 100644 --- a/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb +++ b/lib/oneview-sdk/resource/api800/synergy/server_hardware_type.rb @@ -15,7 +15,7 @@ module OneviewSDK module API800 module Synergy # Server hardware type resource implementation for API800 Synergy - class ServerHardwareType < OneviewSDK::API800::C7000::ServerHardwareType + class ServerHardwareType < OneviewSDK::API800::C7000::ServerHardwareType end end end
Removing whitespaces from server hardware type File
diff --git a/src/utils/ui/create-publishable-api-keys-ui.js b/src/utils/ui/create-publishable-api-keys-ui.js index <HASH>..<HASH> 100644 --- a/src/utils/ui/create-publishable-api-keys-ui.js +++ b/src/utils/ui/create-publishable-api-keys-ui.js @@ -148,7 +148,7 @@ export default function createPublishableApiKeysUi (a, b) { createPromptUi({ width: 550, title: 'Generate Publishable Api Key', - message: 'Please specify allowed domains separated by empty space.<br>Example: "localhost *.3d.io mypage.com"', + message: 'Please specify allowed domains separated by empty space.<br>Example: localhost *.3d.io mypage.com', bottom: el('<a>', { html: 'Read more about allowed domains', href: 'https://3d.io/docs/api/1/authentication.html', @@ -199,4 +199,4 @@ export default function createPublishableApiKeysUi (a, b) { }) }) -} \ No newline at end of file +}
Removed quotes from allowed domains example
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -6,7 +6,7 @@ import os import subprocess -_BASE_VERSION = "2.0.0a0" +_BASE_VERSION = "2.0.0a1" def _generate_version(base_version):
dvc: bump to <I>a1
diff --git a/lib/spear/resource/talent_network.rb b/lib/spear/resource/talent_network.rb index <HASH>..<HASH> 100644 --- a/lib/spear/resource/talent_network.rb +++ b/lib/spear/resource/talent_network.rb @@ -5,12 +5,12 @@ module Spear raise Spear::ParametersRequired.new('TalentNetworkDID') if talent_network_did.blank? Spear::Request.new(:get, Spear.uri_tn_join_form_question % [talent_network_did, 'json'], { - api_options: {need_test_element: true}}).execute + api_options: {need_test_element: false}}).execute end def create_member(data={}) Spear::Request.new(:post, Spear.uri_tn_menber_create % ['json'], { - api_options: {need_test_element: true}, body: data}).execute + api_options: {need_test_element: false}, body: data}).execute end end end diff --git a/lib/spear/version.rb b/lib/spear/version.rb index <HASH>..<HASH> 100644 --- a/lib/spear/version.rb +++ b/lib/spear/version.rb @@ -1,3 +1,3 @@ module Spear - VERSION = "0.0.8" + VERSION = "0.0.9" end
fix tn api create member bug.