diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/batchAntiSpoof.php b/batchAntiSpoof.php index <HASH>..<HASH> 100644 --- a/batchAntiSpoof.php +++ b/batchAntiSpoof.php @@ -12,7 +12,7 @@ $batchSize = 1000; $result = $dbw->select( 'user', 'user_name', null, 'batchAntiSpoof.php' ); $n = 0; -foreach( $res as $row ) { +foreach( $result as $row ) { if ( $n++ % $batchSize == 0 ) { echo "$wgDBname $n\n"; }
followup r<I> typo in var name
diff --git a/.eslintrc.js b/.eslintrc.js index <HASH>..<HASH> 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -198,6 +198,7 @@ module.exports = { 'packages/components/**/*', 'packages/composite-checkout/**/*', 'packages/data-stores/**/*', + 'packages/js-utils/**/*', 'packages/launch/**/*', 'packages/wpcom-checkout/**/*', 'test/e2e/**/*', diff --git a/packages/js-utils/src/test/unique-by.js b/packages/js-utils/src/test/unique-by.js index <HASH>..<HASH> 100644 --- a/packages/js-utils/src/test/unique-by.js +++ b/packages/js-utils/src/test/unique-by.js @@ -1,6 +1,3 @@ -/** - * Internal dependencies - */ import uniqueBy from '../unique-by'; describe( 'uniqueBy()', () => {
chore: migrate packages/js-utils to import/order (#<I>)
diff --git a/cmsplugin_cascade/bootstrap3/image.py b/cmsplugin_cascade/bootstrap3/image.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/bootstrap3/image.py +++ b/cmsplugin_cascade/bootstrap3/image.py @@ -24,12 +24,12 @@ class ImageFormMixin(object): tuple(t for t in getattr(LinkForm, 'LINK_TYPE_CHOICES') if t[0] != 'email') def __init__(self, *args, **kwargs): + super(ImageFormMixin, self).__init__(*args, **kwargs) try: - self.base_fields['image_file'].initial = kwargs['instance'].image.pk + self.fields['image_file'].initial = kwargs['instance'].image.pk except (AttributeError, KeyError): pass - self.base_fields['image_file'].widget = AdminFileWidget(ManyToOneRel(FilerImageField, Image, 'file_ptr'), site) - super(ImageFormMixin, self).__init__(*args, **kwargs) + self.fields['image_file'].widget = AdminFileWidget(ManyToOneRel(FilerImageField, Image, 'file_ptr'), site) def clean_glossary(self): # TODO: remove this someday
fixed: image_file initial The base_fields class attribute is the *class-wide* definition of fields,it will keep previous instance state. if kwargs['instance'].image is None, image_file initial wrong value.
diff --git a/safe/impact_functions/earthquake/earthquake_building/impact_function.py b/safe/impact_functions/earthquake/earthquake_building/impact_function.py index <HASH>..<HASH> 100644 --- a/safe/impact_functions/earthquake/earthquake_building/impact_function.py +++ b/safe/impact_functions/earthquake/earthquake_building/impact_function.py @@ -144,7 +144,6 @@ class EarthquakeBuildingFunction(ContinuousRHClassifiedVE, (tr('High'), {}), (tr('Medium'), {}), (tr('Low'), {}), - (self._not_affected_value, {}) ]) removed = [] for i in range(interpolate_size): @@ -211,8 +210,8 @@ class EarthquakeBuildingFunction(ContinuousRHClassifiedVE, category = tr('High') else: # Not reported for less than level t0 - cls = 0 - category = self._not_affected_value + continue + attributes[i][self.target_field] = cls self.affected_buildings[ category][usage][tr('Buildings Affected')] += 1 @@ -222,7 +221,7 @@ class EarthquakeBuildingFunction(ContinuousRHClassifiedVE, self.affected_buildings[category][usage][ tr('Contents value ($M)')] += contents_value / 1000000.0 - # remove uncategorized element + # remove un-categorized element removed.reverse() geometry = interpolate_result.get_geometry() for i in range(0, len(removed)):
Remove not affected handling from IF Eq
diff --git a/py/nupic/encoders/vector.py b/py/nupic/encoders/vector.py index <HASH>..<HASH> 100644 --- a/py/nupic/encoders/vector.py +++ b/py/nupic/encoders/vector.py @@ -125,10 +125,10 @@ class VectorEncoderOPF(VectorEncoder): ################################################################################################# class SimpleVectorEncoder(VectorEncoder): """Vector encoder for beginners, easy to create and play with; - encodes list of 5 elements, numbers 0-100""" + by default encodes list of 5 elements, numbers 0-100""" - def __init__(self, length=5): - sc = ScalarEncoder(5, 0, 100, n=40) + def __init__(self, length=5, minval=0, maxval=100, resolution=1, name='vect'): + sc = ScalarEncoder(5, minval, maxval, resolution=resolution, name='idx') super(SimpleVectorEncoder, self).__init__(length, sc, typeCastFn=float)
SimpleVector: make little more customizable
diff --git a/lib/responders/flash_responder.rb b/lib/responders/flash_responder.rb index <HASH>..<HASH> 100644 --- a/lib/responders/flash_responder.rb +++ b/lib/responders/flash_responder.rb @@ -86,6 +86,9 @@ module Responders mattr_accessor :flash_keys @@flash_keys = [ :notice, :alert ] + mattr_reader :helper + @@helper = Object.new.extend(ActionView::Helpers::TranslationHelper) + def initialize(controller, resources, options={}) super @flash = options.delete(:flash) @@ -106,10 +109,6 @@ module Responders protected - def helper - @helper ||= Object.new.extend(ActionView::Helpers::TranslationHelper) - end - def set_flash_message! if has_errors? set_flash(:alert, @alert) @@ -122,7 +121,7 @@ module Responders return if controller.flash[status].present? options = mount_i18n_options(status) - message = helper.t options[:default].shift, options + message = Responders::FlashResponder.helper.t options[:default].shift, options set_flash(status, message) end
Caching helper as a class variable.
diff --git a/context/context.go b/context/context.go index <HASH>..<HASH> 100644 --- a/context/context.go +++ b/context/context.go @@ -451,6 +451,10 @@ func (ctx *Context) ModifyImport(ps *pkgspec.Pkg, mod Modify) error { } } + if canonicalImportPath == "" { + canonicalImportPath = sourcePath + } + // Does the local import exist? // If so either update or just return. // If not find the disk path from the canonical path, copy locally and rewrite (if needed).
context: fix setting path when it doesn't exist anywhere yet
diff --git a/axis/__init__.py b/axis/__init__.py index <HASH>..<HASH> 100644 --- a/axis/__init__.py +++ b/axis/__init__.py @@ -120,8 +120,16 @@ class AxisDevice(object): self._event_topics = '{}|{}'.format(self._event_topics, event_topic) + def minimum_firmware(self, constraint): + """Checks that firmwware isn't older than constraint.""" + from packaging import version + return version.parse(self._version) >= version.parse(constraint) + def initiate_metadatastream(self): """Set up gstreamer pipeline and data callback for metadatastream""" + if not self.minimum_firmware('5.50'): + _LOGGER.info("Too old firmware for metadatastream") + return False try: from .stream import MetaDataStream except ImportError as err: @@ -206,6 +214,7 @@ class AxisDevice(object): elif data['Operation'] == 'Deleted': _LOGGER.debug("Deleted event from stream") + # ToDo: # keep a list of deleted events and a follow up timer of X, # then clean up. This should also take care of rebooting a camera
Added check to ensure minimum firmware version of <I> for metadatastream
diff --git a/mod/assignment/type/offline/assignment.class.php b/mod/assignment/type/offline/assignment.class.php index <HASH>..<HASH> 100644 --- a/mod/assignment/type/offline/assignment.class.php +++ b/mod/assignment/type/offline/assignment.class.php @@ -66,9 +66,8 @@ class assignment_offline extends assignment_base { if (!$grading_info->items[0]->grades[$feedback->userid]->locked and !$grading_info->items[0]->grades[$feedback->userid]->overridden) { - $submission->grade = $feedback->grade; - $submission->submissioncomment = $feedback->submissioncomment; - $submission->format = $feedback->format; + $submission->grade = $feedback->xgrade; + $submission->submissioncomment = $feedback->submissioncomment_editor['text']; $submission->teacher = $USER->id; $mailinfo = get_user_preferences('assignment_mailinfo', 0); if (!$mailinfo) {
assignment MDL-<I> some assignment changes were left out for offline assignment type , fixed processing grading.
diff --git a/webpack.config.js b/webpack.config.js index <HASH>..<HASH> 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,10 @@ module.exports = (env, options) => ({ entry: path.resolve(__dirname, 'demo/js/demo.js'), output: { path: path.resolve(__dirname, 'pages'), - filename: '[name][chunkhash].js', + filename: + options.mode === 'production' + ? '[name][chunkhash].js' + : '[name].js', }, module: { rules: [
Fix chunkhash not allowed in development
diff --git a/src/datastore/leveldb_shard_datastore.go b/src/datastore/leveldb_shard_datastore.go index <HASH>..<HASH> 100644 --- a/src/datastore/leveldb_shard_datastore.go +++ b/src/datastore/leveldb_shard_datastore.go @@ -198,14 +198,14 @@ func (self *LevelDbShardDatastore) closeOldestShard() { } func (self *LevelDbShardDatastore) closeShard(id uint32) { - delete(self.shardRefCounts, id) - delete(self.shards, id) - delete(self.lastAccess, id) - delete(self.shardsToClose, id) shard := self.shards[id] if shard != nil { shard.close() } + delete(self.shardRefCounts, id) + delete(self.shards, id) + delete(self.lastAccess, id) + delete(self.shardsToClose, id) } // // returns true if the point has the correct field id and is
Fix bug where I was deleting the shard reference before pulling out the shard to close it
diff --git a/lib/MapboxInspect.js b/lib/MapboxInspect.js index <HASH>..<HASH> 100644 --- a/lib/MapboxInspect.js +++ b/lib/MapboxInspect.js @@ -187,9 +187,17 @@ MapboxInspect.prototype._onMousemove = function (e) { if (!features.length) { this._popup.remove(); } else { - this._popup.setLngLat(e.lngLat) - .setHTML(this.options.renderPopup(features)) - .addTo(this._map); + this._popup.setLngLat(e.lngLat); + + var type = typeof this.options.renderPopup(features); + + if (type === 'string') { + this._popup.setHTML(this.options.renderPopup(features)); + } else { + this._popup.setDOMContent(this.options.renderPopup(features)); + } + + this._popup.addTo(this._map); } } };
Support for htmlNodes (Nodes) in popups
diff --git a/test/test_f90nml.py b/test/test_f90nml.py index <HASH>..<HASH> 100644 --- a/test/test_f90nml.py +++ b/test/test_f90nml.py @@ -890,6 +890,12 @@ class Test(unittest.TestCase): self.assert_file_equal('types.yaml', 'tmp.yaml') os.remove('tmp.yaml') + def test_cli__read(self): + cmd = ['f90nml', 'types.yaml'] + source_str = self.get_cli_output(cmd) + + # TODO: Check output after resolving the ordering issue + def test_cli_missing_yaml(self): orig_has_yaml = f90nml.cli.has_yaml f90nml.cli.has_yaml = False
CLI: YAML read test
diff --git a/src/common.js b/src/common.js index <HASH>..<HASH> 100644 --- a/src/common.js +++ b/src/common.js @@ -9,7 +9,7 @@ let __nimiqLoaded = null; // Defaults for development. Build script replaces CONFIG.ALLOWED_ORIGIN and CONFIG.NETWORK. const CONFIG = { ALLOWED_ORIGIN: '*', - NETWORK: Constants.NETWORK.TEST, + NETWORK: 'test', BASE_URL: '/src/', };
revert unrelated change to constant, because it breaks tests
diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb index <HASH>..<HASH> 100644 --- a/actionpack/lib/action_controller/resources.rb +++ b/actionpack/lib/action_controller/resources.rb @@ -296,6 +296,10 @@ module ActionController # article_comments_url(:article_id => @article) # article_comment_url(:article_id => @article, :id => @comment) # + # If you don't want to load all objects from the database you might want to use the <tt>article_id</tt> directly: + # + # articles_comments_url(@comment.article_id, @comment) + # # * <tt>:name_prefix</tt> - Define a prefix for all generated routes, usually ending in an underscore. # Use this if you have named routes that may clash. #
note on increasing performance a bit when using restful urls
diff --git a/mod/quiz/module.js b/mod/quiz/module.js index <HASH>..<HASH> 100644 --- a/mod/quiz/module.js +++ b/mod/quiz/module.js @@ -219,8 +219,8 @@ M.mod_quiz.secure_window = { window.location = 'about:blank'; } Y.delegate('contextmenu', M.mod_quiz.secure_window.prevent, document, '*'); - Y.delegate('mousedown', M.mod_quiz.secure_window.prevent_mouse, document, '*'); - Y.delegate('mouseup', M.mod_quiz.secure_window.prevent_mouse, document, '*'); + Y.delegate('mousedown', M.mod_quiz.secure_window.prevent_mouse, 'body', '*'); + Y.delegate('mouseup', M.mod_quiz.secure_window.prevent_mouse, 'body', '*'); Y.delegate('dragstart', M.mod_quiz.secure_window.prevent, document, '*'); Y.delegate('selectstart', M.mod_quiz.secure_window.prevent, document, '*'); Y.delegate('cut', M.mod_quiz.secure_window.prevent, document, '*');
MDL-<I> mod_quiz: Scrollbar not working in Javascript Security Popup Quiz window in Chrome
diff --git a/views/search.py b/views/search.py index <HASH>..<HASH> 100644 --- a/views/search.py +++ b/views/search.py @@ -439,6 +439,10 @@ def search(collection, p, of, so, rm): argd = argd_orig = wash_search_urlargd(request.args) argd['of'] = 'id' + # fix for queries like `/search?p=+ellis` + if 'p' in argd: + argd['p'] = argd['p'].strip() + # update search arguments with the search user preferences if 'rg' not in request.values and current_user.get('rg'): argd['rg'] = int(current_user.get('rg'))
search: quick fix for queries with leading space * Strips leading/trailing white space from `p` argument to `/search`. This quick-fixes queries like `/search?p=+ellis` that were otherwise leading to "Showing records 1 to 0 out of 0 results" situations.
diff --git a/lib/js/Mixin.js b/lib/js/Mixin.js index <HASH>..<HASH> 100644 --- a/lib/js/Mixin.js +++ b/lib/js/Mixin.js @@ -50,7 +50,7 @@ module.exports = function(settings, done) { if ( (hasNewIndex && hasNewStep) || didToggleTooltip || hasNewX || hasNewY ) { this._renderLayer(); - } else if ( hasSteps && !hasNewStep ) { + } else if ( hasSteps && hasNewIndex && !hasNewStep ) { this.completionCallback(); this._unrenderLayer(); }
fix completionCallback being called too soon
diff --git a/go_agent/src/bosh/agent/applier/applyspec/v1_apply_spec.go b/go_agent/src/bosh/agent/applier/applyspec/v1_apply_spec.go index <HASH>..<HASH> 100644 --- a/go_agent/src/bosh/agent/applier/applyspec/v1_apply_spec.go +++ b/go_agent/src/bosh/agent/applier/applyspec/v1_apply_spec.go @@ -10,7 +10,7 @@ type V1ApplySpec struct { PackageSpecs map[string]PackageSpec `json:"packages"` ConfigurationHash string `json:"configuration_hash"` NetworkSpecs map[string]interface{} `json:"networks"` - ResourcePoolSpecs map[string]interface{} `json:"resource_pool"` + ResourcePoolSpecs interface{} `json:"resource_pool"` Deployment string `json:"deployment"` Index int `json:"index"`
Ignore ResourcePoolSpec structure in apply message but pass it through resource_pool in apply message differs from compile vm to job vm
diff --git a/src/babel/transformation/transformers/es6/block-scoping.js b/src/babel/transformation/transformers/es6/block-scoping.js index <HASH>..<HASH> 100644 --- a/src/babel/transformation/transformers/es6/block-scoping.js +++ b/src/babel/transformation/transformers/es6/block-scoping.js @@ -139,7 +139,12 @@ var hoistVarDeclarationsVisitor = { enter(node, parent, scope, self) { if (this.isForStatement()) { if (isVar(node.init, node)) { - node.init = t.sequenceExpression(self.pushDeclar(node.init)); + var nodes = self.pushDeclar(node.init); + if (nodes.length === 1) { + node.init = nodes[0]; + } else { + node.init = t.sequenceExpression(nodes); + } } } else if (this.isFor()) { if (isVar(node.left, node)) {
don't rely on sequence expressions for <= 1 sequence expressions in blockScoping transformer
diff --git a/container.go b/container.go index <HASH>..<HASH> 100644 --- a/container.go +++ b/container.go @@ -316,7 +316,7 @@ type PidLimits struct { // Limits the number of pids a container may create before new forks or clones are disallowed to processes in the container. // Note: this may only be enforced when a process attempts to fork, so it does not guarantee that a new container.Run(ProcessSpec) // will not succeed even if the limit has been exceeded, but the process will not be able to spawn further processes or threads. - Limit uint64 `json:"limit,omitempty"` + Max uint64 `json:"max,omitempty"` } // Resource limits.
Rename pid limit * Max better represents what type of limit is being applied [#<I>]
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from setuptools import setup +with open('requirements.txt', 'r') as f: + requirements = [line.strip() for line in f] + packages = ["qiskit", "qiskit.backends", "qiskit.dagcircuit", @@ -14,16 +17,6 @@ packages = ["qiskit", "qiskit.tools.qcvv", "qiskit.tools.qi"] -requirements = ["IBMQuantumExperience>=1.8.13", - "requests>=2.18,<2.19", - "networkx>=1.11,<1.12", - "ply==3.10", - "numpy>=1.13,<1.14", - "scipy>=0.19,<0.20", - "matplotlib>=2.0,<2.1", - "sphinx>=1.6,<1.7", - "sympy>=1.0"] - setup( name="qiskit", version="0.4.0",
Issue <I> - One entry point for requirements (#<I>)
diff --git a/download.js b/download.js index <HASH>..<HASH> 100644 --- a/download.js +++ b/download.js @@ -238,12 +238,14 @@ function getFilesSizes() { getFilesSizes(); function getFileContents(filepath) { - return new Promise(function(resolve) { + return new Promise(function(resolve, reject) { $u.xhr({ url: filepath, callback: function(xhr) { if (xhr.status < 400) { resolve(xhr.responseText); + } else { + reject(); } } }); @@ -350,6 +352,7 @@ function generateCode(){ promises.push({ contentsPromise: cache[path].contentsPromise, + path: path, type: type }); } @@ -389,6 +392,11 @@ function buildCode(promises) { i++; f(resolve); }); + p.contentsPromise['catch'](function() { + code[p.type] += '/* Error downloading file '+p.path+' */' + '\n'; + i++; + f(resolve); + }); } else { resolve(code); }
Reject promise if file does not exist
diff --git a/buildozer/__init__.py b/buildozer/__init__.py index <HASH>..<HASH> 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -342,8 +342,8 @@ class Buildozer(object): else: stderr.write(chunk) - stdout.flush() - stderr.flush() + stdout.flush() + stderr.flush() process.communicate() if process.returncode != 0 and break_on_error:
Made sure to print all lines of license question by always flushing
diff --git a/js/server/Connection.js b/js/server/Connection.js index <HASH>..<HASH> 100644 --- a/js/server/Connection.js +++ b/js/server/Connection.js @@ -26,7 +26,6 @@ exports = Class(net.protocols.rtjp.RTJPProtocol, function(supr) { this._clientConnected = false // TODO do we need to unsubscribe from redis channels? this._redisClient.close() - delete this._redisClient } this.getId = function() { return this._id }
Don't delete the redis client, since it seems like the closing of the connection can be called multiple times
diff --git a/active-sync.js b/active-sync.js index <HASH>..<HASH> 100644 --- a/active-sync.js +++ b/active-sync.js @@ -52,7 +52,6 @@ ActiveSync.prototype = { onConnect: function onConnect () { BaseSync.prototype.onConnect.apply(this, arguments) this.sendConnect() - this.syncSince(this.synced) } } diff --git a/messages/connect.js b/messages/connect.js index <HASH>..<HASH> 100644 --- a/messages/connect.js +++ b/messages/connect.js @@ -31,6 +31,7 @@ module.exports = { if (this.options.fixTime) this.connectSended = this.log.timer()[0] this.startTimeout() this.send(message) + this.syncSince(this.synced) }, sendConnected: function sendConnected (start, end) {
Move first sync after connect message to BaseSync
diff --git a/src/Http/Client.php b/src/Http/Client.php index <HASH>..<HASH> 100644 --- a/src/Http/Client.php +++ b/src/Http/Client.php @@ -4,7 +4,7 @@ namespace PeterColes\Betfair\Http; use Exception; use GuzzleHttp\Client as GuzzleClient; -use GuzzleHttp\Psr7\Response; +use Psr\Http\Message\ResponseInterface; use PeterColes\Betfair\Api\Auth; use stdClass; @@ -313,23 +313,12 @@ class Client } /** - * Get status code from http response. - * - * @param Response $response - * @return integer - */ - protected function getStatus(Response $response) - { - return (int) $response->getStatusCode(); - } - - /** * Get http response body, cast to json and decode. * - * @param Response $response + * @param ResponseInterface $response * @return array */ - protected function getBody(Response $response) + protected function getBody(ResponseInterface $response) { return json_decode((string) $response->getBody()); }
remove redundant method and type hint to interface rather than concrete implementation
diff --git a/res/middleware/consoler.js b/res/middleware/consoler.js index <HASH>..<HASH> 100644 --- a/res/middleware/consoler.js +++ b/res/middleware/consoler.js @@ -1,4 +1,4 @@ -<script type="text/javascript" src="/socket.io/socket.io.js"></script> +<script type="text/javascript" src="http://127.0.0.1:3000/socket.io/socket.io.js"></script> <script type="text/javascript"> (function(window) { var socket = io('http://127.0.0.1:3000');
[#<I>] Fix console to load the client socket library.
diff --git a/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerJSON.java b/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerJSON.java index <HASH>..<HASH> 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerJSON.java +++ b/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerJSON.java @@ -261,7 +261,7 @@ public class ORecordSerializerJSON extends ORecordSerializerStringAbstract { // SET THE OWNER ((ODocument) collectionItem).addOwner(iRecord); - if (collectionItem instanceof String && ((String) collectionItem).length() > 0) + if (collectionItem instanceof String && ((String) collectionItem).length() == 0) continue; ((Collection<Object>) embeddedCollection).add(collectionItem);
Problem with JSON string array deserialization was fixed.
diff --git a/h2o-core/src/test/java/water/TestUtil.java b/h2o-core/src/test/java/water/TestUtil.java index <HASH>..<HASH> 100644 --- a/h2o-core/src/test/java/water/TestUtil.java +++ b/h2o-core/src/test/java/water/TestUtil.java @@ -12,6 +12,7 @@ import org.junit.runners.model.Statement; import org.junit.runner.Description; import water.fvec.*; import water.parser.ParseDataset; +import water.util.FrameUtils; import water.util.Log; import water.util.Timer; import water.parser.ValueString; @@ -185,6 +186,7 @@ public class TestUtil extends Iced { } public static Frame frame(double[]... rows) { return frame(null,rows); } public static Frame frame(String[] names, double[]... rows) { return frame(Key.make(),names,rows); } + public static Frame frame(String name, Vec vec) { Frame f = new Frame(); f.add(name, vec); return f; } // Shortcuts for initializing constant arrays public static String[] ar (String ...a) { return a; }
Add factory method for Frame from named Vec.
diff --git a/Neos.Neos/Tests/Functional/Fusion/Cache/ContentCacheFlusherTest.php b/Neos.Neos/Tests/Functional/Fusion/Cache/ContentCacheFlusherTest.php index <HASH>..<HASH> 100644 --- a/Neos.Neos/Tests/Functional/Fusion/Cache/ContentCacheFlusherTest.php +++ b/Neos.Neos/Tests/Functional/Fusion/Cache/ContentCacheFlusherTest.php @@ -1,5 +1,4 @@ <?php - namespace Neos\Neos\Tests\Functional\Fusion\Cache; /* @@ -54,9 +53,6 @@ class ContentCacheFlusherTest extends FunctionalTestCase */ protected $nodeDataRepository; - /** - * - */ public function setUp()/* The :void return type declaration that should be here would cause a BC issue */ { parent::setUp(); @@ -79,9 +75,6 @@ class ContentCacheFlusherTest extends FunctionalTestCase $this->persistenceManager->clearState(); } - /** - * - */ public function flushingANodeWillResolveAllWorkspacesToFlush() { // Add more workspaces
BUGFIX: Remove empty comments
diff --git a/test/test_kramdown.rb b/test/test_kramdown.rb index <HASH>..<HASH> 100644 --- a/test/test_kramdown.rb +++ b/test/test_kramdown.rb @@ -14,6 +14,7 @@ class TestKramdown < JekyllUnitTest 'auto_ids' => false, 'footnote_nr' => 1, + 'syntax_highlighter' => 'rouge', 'syntax_highlighter_opts' => { 'bold_every' => 8, 'css' => :class }
kramdown: fix state leakage (#<I>) in test fixes #<I>
diff --git a/lib/ztk/rake/docs.rb b/lib/ztk/rake/docs.rb index <HASH>..<HASH> 100644 --- a/lib/ztk/rake/docs.rb +++ b/lib/ztk/rake/docs.rb @@ -41,7 +41,7 @@ namespace :docs do Dir.chdir(DOC_PATH) do system(%(git add -Av)) - system(%(git commit -m"#{commit_message.join}")) + system(%(git commit -S -m"#{commit_message.join}")) system(%(git push origin gh-pages)) end end
start gpg signing our document commits
diff --git a/lib/dew/commands/deploy.rb b/lib/dew/commands/deploy.rb index <HASH>..<HASH> 100755 --- a/lib/dew/commands/deploy.rb +++ b/lib/dew/commands/deploy.rb @@ -45,6 +45,7 @@ class DeployCommand < Clamp::Command end env = Environment.get(environment_name) + raise "Unknown environment #{environment_name}" unless env db_managed = false
Bail with error if environment unrecognized when deploying
diff --git a/components/dashboards-web-component/src/utils/Theme.js b/components/dashboards-web-component/src/utils/Theme.js index <HASH>..<HASH> 100644 --- a/components/dashboards-web-component/src/utils/Theme.js +++ b/components/dashboards-web-component/src/utils/Theme.js @@ -62,7 +62,7 @@ export const lightTheme = getMuiTheme(lightBaseTheme, trackOffColor: Colors.grey500, thumbOffColor: Colors.grey700, }, - }, + } ); export default darkTheme;
Remove unnecessary comma in Theme.
diff --git a/utp.go b/utp.go index <HASH>..<HASH> 100644 --- a/utp.go +++ b/utp.go @@ -1021,6 +1021,9 @@ func (c *Conn) ackSkipped(seqNr uint16) { return } send.acksSkipped++ + if send.resend == nil { + return + } switch send.acksSkipped { case 3, 60: ackSkippedResends.Add(1)
Don't resend packet when ack is skipped if it's already acked
diff --git a/dist/select.js b/dist/select.js index <HASH>..<HASH> 100644 --- a/dist/select.js +++ b/dist/select.js @@ -394,7 +394,7 @@ uis.controller('uiSelectCtrl', $scope.$uisSource = Object.keys(originalSource($scope)).map(function(v){ var result = {}; result[ctrl.parserResult.keyName] = v; - result.value = $scope.peopleObj[v]; + result.value = $scope[ctrl.parserResult.sourceName][v]; return result; }); };
remove hardcoded $scope.peopleObj
diff --git a/spam_lists/structures.py b/spam_lists/structures.py index <HASH>..<HASH> 100644 --- a/spam_lists/structures.py +++ b/spam_lists/structures.py @@ -142,6 +142,12 @@ class Hostname(name.Name): class IPAddress(object): + ''' A class of objects representing IP address values. + + The instances are used as values tested by clients of + IP-address-listing services or as items stored by objects + representing such IP address lists. + ''' reverse_domain = None @property def relative_domain(self):
Add docstring to IPAddress class
diff --git a/libnavigation-ui/src/main/java/com/mapbox/navigation/ui/NavigationViewModel.java b/libnavigation-ui/src/main/java/com/mapbox/navigation/ui/NavigationViewModel.java index <HASH>..<HASH> 100644 --- a/libnavigation-ui/src/main/java/com/mapbox/navigation/ui/NavigationViewModel.java +++ b/libnavigation-ui/src/main/java/com/mapbox/navigation/ui/NavigationViewModel.java @@ -465,8 +465,7 @@ public class NavigationViewModel extends AndroidViewModel { } } - private void updateReplayEngine(DirectionsRoute route) { - locationEngineConductor.updateSimulatedRoute(route); + private void updateReplayEngine(DirectionsRoute route) { locationEngineConductor.updateSimulatedRoute(route); } private void endNavigation() {
[ui] register location observer fix
diff --git a/packages/extract-svg-sprite-webpack-plugin/lib/utils/replacement-generator.js b/packages/extract-svg-sprite-webpack-plugin/lib/utils/replacement-generator.js index <HASH>..<HASH> 100644 --- a/packages/extract-svg-sprite-webpack-plugin/lib/utils/replacement-generator.js +++ b/packages/extract-svg-sprite-webpack-plugin/lib/utils/replacement-generator.js @@ -42,14 +42,14 @@ class ReplacementGenerator { * @return {Replacement} */ static symbolUrl(symbol, config) { - const { filename, emit, spriteType, sriteConfig } = config; + const { filename, emit, spriteType, spriteConfig } = config; let replaceTo; if (!filename || !emit) { replaceTo = `#${symbol.id}`; } else { replaceTo = spriteType === mixer.StackSprite.TYPE - ? `${filename}#${symbol.id}${sriteConfig.usageIdSuffix}` + ? `${filename}#${symbol.id}${spriteConfig.usageIdSuffix}` : filename; }
fix: typo (#<I>)
diff --git a/grunt/connect-middleware/sources.js b/grunt/connect-middleware/sources.js index <HASH>..<HASH> 100644 --- a/grunt/connect-middleware/sources.js +++ b/grunt/connect-middleware/sources.js @@ -59,9 +59,10 @@ const "/src/sources.json?map": response => { response.setHeader("Content-Type", "application/json"); cachedUglifyResult = null; // Reset cache - return response.end(JSON.stringify([{ + response.end(JSON.stringify([{ "name": "sources" }])); + return Promise.resolve(); }, "/src/sources.js": response => {
Fixing harmless error (#<I>)
diff --git a/code/FontAwesomeIconPickerField.php b/code/FontAwesomeIconPickerField.php index <HASH>..<HASH> 100644 --- a/code/FontAwesomeIconPickerField.php +++ b/code/FontAwesomeIconPickerField.php @@ -17,6 +17,7 @@ class FontAwesomeIconPickerField extends TextField { Requirements::css('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'); Requirements::css('//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'); Requirements::css(FONTAWESOMEICONPICKER_DIR . '/code/thirdparty/fontawesome-iconpicker-1.0.0/dist/css/fontawesome-iconpicker.min.css'); + Requirements::customCSS('* { box-sizing: content-box; }'); Requirements::set_force_js_to_bottom(true); Requirements::javascript(FONTAWESOMEICONPICKER_DIR . '/code/thirdparty/fontawesome-iconpicker-1.0.0/dist/js/fontawesome-iconpicker.js');
change fontawesome picker styling from border-box to content-box
diff --git a/lib/exonio/financial.rb b/lib/exonio/financial.rb index <HASH>..<HASH> 100644 --- a/lib/exonio/financial.rb +++ b/lib/exonio/financial.rb @@ -135,7 +135,7 @@ module Exonio begin temp = newton_iter(guess, nper, pmt, pv, fv, end_or_beginning) - next_guess = guess - temp + next_guess = (guess - temp).round(20) diff = (next_guess - guess).abs close = diff < tolerancy guess = next_guess diff --git a/spec/financial_spec.rb b/spec/financial_spec.rb index <HASH>..<HASH> 100644 --- a/spec/financial_spec.rb +++ b/spec/financial_spec.rb @@ -1,4 +1,5 @@ require 'spec_helper' +require 'bigdecimal' describe Exonio::Financial do describe '#fv' do @@ -166,5 +167,16 @@ describe Exonio::Financial do expect(results).to eq(0.07265012823626603) end + + context 'with large decimal scale' do + let(:pmt) { BigDecimal.new("351.622169863986539264256777349669281495") } + let(:pv) { BigDecimal.new("-3061.762000011") } + + it 'computes rate' do + results = Exonio.rate(nper, pmt, pv) * 100 + + expect(results.round(2)).to eq(5.32) + end + end end end
fix infinite loop with bigscale on RATE method
diff --git a/Resources/public/js/resource/manager.js b/Resources/public/js/resource/manager.js index <HASH>..<HASH> 100644 --- a/Resources/public/js/resource/manager.js +++ b/Resources/public/js/resource/manager.js @@ -769,10 +769,11 @@ 'create': function (event) { this.create(event.action, event.data, event.nodeId); }, - 'delete': function () { + 'delete': function (event) { var ids = []; - $('.node-thumbnail input[type=checkbox]:checked').each(function () { - ids.push($($(this).parents('.node-thumbnail').get(0)).attr('id')); + + $(event.ids).each(function (index) { + ids.push(event.ids[index]); }); if (ids.length >= 1) {
[CoreBundle] Fixing res manager delete menu option.
diff --git a/src/Hal/Report/Html/template/index.php b/src/Hal/Report/Html/template/index.php index <HASH>..<HASH> 100644 --- a/src/Hal/Report/Html/template/index.php +++ b/src/Hal/Report/Html/template/index.php @@ -141,7 +141,10 @@ <td><?php echo $package->name; ?></td> <td><?php echo $package->required; ?></td> <td><?php echo $package->latest; ?></td> - <td><?php echo implode(', ', $package->license); ?></td> + <td><?php foreach($package->license as $license) { ?> + <a target="_blank" href="https://spdx.org/licenses/<?php echo $license;?>.html"><?php echo $license;?></a> + <?php }; ?> + </td> </tr> <?php } ?> </tbody>
added link to spdx license in composer report
diff --git a/hugolib/page.go b/hugolib/page.go index <HASH>..<HASH> 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -1506,8 +1506,8 @@ func (p *Page) copy() *Page { } func (p *Page) Now() time.Time { - // Delete in Hugo 0.21 - helpers.Deprecated("Page", "Now", "Use now (the template func)", true) + // Delete in Hugo 0.22 + helpers.Deprecated("Page", "Now", "Use now (the template func)", false) return time.Now() }
hugolib: Delay deletion of Page.Now() Looking at the state of the themes, it will be too painful to log ERROR now.
diff --git a/src/main/java/com/tascape/qa/th/AbstractTestResource.java b/src/main/java/com/tascape/qa/th/AbstractTestResource.java index <HASH>..<HASH> 100644 --- a/src/main/java/com/tascape/qa/th/AbstractTestResource.java +++ b/src/main/java/com/tascape/qa/th/AbstractTestResource.java @@ -36,10 +36,11 @@ public abstract class AbstractTestResource { public File saveAsTextFile(String filePrefix, CharSequence data) throws IOException { Path path = this.getLogPath(); - if (!path.toFile().mkdirs()) { - throw new IOException("Cannot create test log directory " + path); + File p = path.toFile(); + if (!p.exists() && !p.mkdirs()) { + throw new IOException("Cannot create test log directory " + p); } - File f = File.createTempFile(filePrefix, ".txt", path.toFile()); + File f = File.createTempFile(filePrefix, ".txt", p); FileUtils.write(f, data); LOG.debug("Save data into file {}", f.getAbsolutePath()); return f;
fix a problem of creating log dir
diff --git a/tests/test_write.py b/tests/test_write.py index <HASH>..<HASH> 100644 --- a/tests/test_write.py +++ b/tests/test_write.py @@ -27,15 +27,13 @@ # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -from os.path import join - import pytest import uproot def test_strings(tmp_path): ROOT = pytest.importorskip("ROOT") - filename = join(tmp_path, 'example.root') + filename = tmp_path/'example.root' with uproot.recreate(filename) as f: f['hello'] = 'world'
Fix use of paths in Python <I>
diff --git a/elasticsearch-api/utils/thor/generate_source.rb b/elasticsearch-api/utils/thor/generate_source.rb index <HASH>..<HASH> 100644 --- a/elasticsearch-api/utils/thor/generate_source.rb +++ b/elasticsearch-api/utils/thor/generate_source.rb @@ -161,6 +161,7 @@ module Elasticsearch def __parse_path(path) path.gsub(/^\//, '') + .gsub(/\/$/, '') .gsub('{', '#{Elasticsearch::API::Utils.__listify(_') .gsub('}', ')}') end
[API] Generator: remove trailing / from paths
diff --git a/src/main/java/org/dita/dost/util/FileUtils.java b/src/main/java/org/dita/dost/util/FileUtils.java index <HASH>..<HASH> 100644 --- a/src/main/java/org/dita/dost/util/FileUtils.java +++ b/src/main/java/org/dita/dost/util/FileUtils.java @@ -12,7 +12,6 @@ import static org.apache.commons.io.FilenameUtils.*; import static org.dita.dost.util.Constants.*; import java.io.File; -import java.io.IOException; import java.net.URI; import java.util.*; @@ -185,7 +184,7 @@ public final class FileUtils { * @return relative path */ public static File getRelativePath(final File basePath, final File refPath) { - return new File(getRelativePath(basePath.getPath(), refPath.getPath(), File.separator)); + return basePath.toPath().getParent().relativize(refPath.toPath()).toFile(); } /**
Use NIO Path for file path processing instead of custom code
diff --git a/gsh/stdin.py b/gsh/stdin.py index <HASH>..<HASH> 100644 --- a/gsh/stdin.py +++ b/gsh/stdin.py @@ -173,6 +173,10 @@ class pipe_notification_reader(asyncore.file_dispatcher): else: self._do(c) + def writable(self): + """That's a reader""" + return False + # All the words that have been typed in gsh. Used by the completion mechanism. history_words = set()
Strange that we could get away without that.
diff --git a/lib/util/token.js b/lib/util/token.js index <HASH>..<HASH> 100644 --- a/lib/util/token.js +++ b/lib/util/token.js @@ -74,7 +74,7 @@ function removeInBetween(startToken, endToken, check){ remove(startToken); } } - else if (startToken.type === check) { + else if (startToken.type === check || startToken.value === check) { remove(startToken); } startToken = startToken.next; @@ -91,7 +91,7 @@ function findInBetween(startToken, endToken, check){ found = startToken; } } - else if (startToken.type === check) { + else if (startToken.type === check || startToken.value === check) { found = startToken; } startToken = startToken.next; @@ -118,7 +118,7 @@ function removeAdjacentBefore(token, check){ prev = prev.prev; } } else { - while (prev && prev.type === check) { + while (prev && (prev.type === check || prev.value === check)) { remove(prev); prev = prev.prev; } @@ -135,7 +135,7 @@ function removeAdjacentAfter(token, check){ next = next.next; } } else { - while (next && next.type === check) { + while (next && (next.type === check || next.value === check)) { remove(next); next = next.next; }
improve token helpers to accept token.value instead of callback. closes #<I>
diff --git a/tests/CallableResolverTest.php b/tests/CallableResolverTest.php index <HASH>..<HASH> 100644 --- a/tests/CallableResolverTest.php +++ b/tests/CallableResolverTest.php @@ -13,7 +13,9 @@ use Prophecy\Argument; use Prophecy\Prophecy\ObjectProphecy; use Psr\Container\ContainerInterface; use Slim\CallableResolver; +use Slim\Interfaces\ErrorRendererInterface; use Slim\Tests\Mocks\CallableTest; +use Slim\Tests\Mocks\ErrorRendererTest; use Slim\Tests\Mocks\InvokableTest; use Slim\Tests\Mocks\RequestHandlerTest; @@ -158,6 +160,16 @@ class CallableResolverTest extends TestCase $this->assertEquals('custom', $callable[1]); } + public function testObjErrorRendererClass() + { + $obj = new ErrorRendererTest(); + $resolver = $this->getCallableResolver(); + $callable = $resolver->resolve($obj); + + $this->assertIsCallable($callable); + $this->assertInstanceOf(ErrorRendererInterface::class, $callable[0]); + } + /** * @expectedException \RuntimeException */
Add test case if the object to be resolved is an instance of an error renderer
diff --git a/lib/jets/spec_helpers/controllers.rb b/lib/jets/spec_helpers/controllers.rb index <HASH>..<HASH> 100644 --- a/lib/jets/spec_helpers/controllers.rb +++ b/lib/jets/spec_helpers/controllers.rb @@ -2,12 +2,11 @@ module Jets::SpecHelpers module Controllers include Jets::Router::Helpers # must be at the top because response is overridden later - attr_reader :request, :response - - def initialize(*) - super - @request = Request.new(:get, '/', {}, Params.new) - @response = nil # will be set after http_call + attr_reader :response + # Note: caching it like this instead of within the initialize results in the headers not being cached + # See: https://community.rubyonjets.com/t/is-jets-spechelpers-controllers-request-being-cached/244/2 + def request + @request ||= Request.new(:get, '/', {}, Params.new) end rest_methods = %w[get post put patch delete]
spec helpers: dont cache requeset headers between specs
diff --git a/src/model.js b/src/model.js index <HASH>..<HASH> 100644 --- a/src/model.js +++ b/src/model.js @@ -105,7 +105,9 @@ export function add (model, key, field) { * @returns {Model} - the updated model. */ export function remove (model, key, field) { - // TODO: bug - verify that the field is there to remove in the first place + if (get(model, key).filter(f => f._id === field._id).length === 0) { + return model + } return createModel( model.subject, model.fields.set( diff --git a/test/model.spec.js b/test/model.spec.js index <HASH>..<HASH> 100644 --- a/test/model.spec.js +++ b/test/model.spec.js @@ -96,6 +96,11 @@ describe('Model', () => { expect(Model.get(updatedModel, 'phone')).toEqual([secondPhone]) }) + it('can not remove fields which do not belong to the model', () => { + const notOwnedPhone = phone('tel:444-444-4444') + expect(Model.remove(model, 'phone', phone)).toEqual(model) + }) + it('can change the value of contained fields', () => { const firstPhone = Model.get(model, 'phone')[0] const secondPhone = Model.get(model, 'phone')[1]
Don't remove un-owned fields from a model
diff --git a/test/d3-funnel/d3-funnel.js b/test/d3-funnel/d3-funnel.js index <HASH>..<HASH> 100644 --- a/test/d3-funnel/d3-funnel.js +++ b/test/d3-funnel/d3-funnel.js @@ -372,9 +372,9 @@ describe('D3Funnel', () => { const paths = d3.selectAll('#funnel path'); - const quadraticPaths = paths.filter(() => - d3.select(this).attr('d').indexOf('Q') > -1 - ); + const quadraticPaths = paths.filter(function () { // eslint-disable-line func-names + return d3.select(this).attr('d').indexOf('Q') > -1; + }); assert.equal(paths[0].length, quadraticPaths[0].length); });
Prevent lexical binding of `this` in chart.curve.enabled test
diff --git a/lib/node_modules/@stdlib/repl/lib/context/math/constants.js b/lib/node_modules/@stdlib/repl/lib/context/math/constants.js index <HASH>..<HASH> 100644 --- a/lib/node_modules/@stdlib/repl/lib/context/math/constants.js +++ b/lib/node_modules/@stdlib/repl/lib/context/math/constants.js @@ -18,6 +18,7 @@ NS.EPS = require( '@stdlib/math/constants/float64-eps' ); NS.EULERGAMMA = require( '@stdlib/math/constants/float64-eulergamma' ); NS.FLOAT64_EXPONENT_BIAS = require( '@stdlib/math/constants/float64-exponent-bias' ); NS.GLAISHER = require( '@stdlib/math/constants/float64-glaisher-kinkelin' ); +NS.HALF_LN2 = require( '@stdlib/math/constants/float64-half-ln2' ); NS.LN_SQRT_TWO_PI = require( '@stdlib/math/constants/float64-ln-sqrt-two-pi' ); NS.LN2 = require( '@stdlib/math/constants/float64-ln2' ); NS.FLOAT64_MAX = require( '@stdlib/math/constants/float64-max' );
Add HALF_LN2 to REPL context
diff --git a/src/Naderman/Composer/AWS/AwsPlugin.php b/src/Naderman/Composer/AWS/AwsPlugin.php index <HASH>..<HASH> 100644 --- a/src/Naderman/Composer/AWS/AwsPlugin.php +++ b/src/Naderman/Composer/AWS/AwsPlugin.php @@ -28,16 +28,12 @@ class AwsPlugin implements PluginInterface, EventSubscriberInterface protected $composer; protected $io; - public function __construct(Composer $composer, IOInterface $io) + public function activate(Composer $composer, IOInterface $io) { $this->composer = $composer; $this->io = $io; } - public function activate() - { - } - public static function getSubscribedEvents() { return array(
The composer plugin interface was changed to pass args to activate
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index <HASH>..<HASH> 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -316,6 +316,28 @@ test(".ajax() - headers" , function() { }); +test(".ajax() - Accept header" , function() { + + expect( 1 ); + + stop(); + + jQuery.ajax(url("data/headers.php?keys=accept"), { + headers: { + Accept: "very wrong accept value" + }, + beforeSend: function( xhr ) { + xhr.setRequestHeader( "Accept", "*/*" ); + }, + success: function( data ) { + strictEqual( data , "accept: */*\n" , "Test Accept header is set to last value provided" ); + start(); + }, + error: function(){ ok(false, "error"); } + }); + +}); + test(".ajax() - contentType" , function() { expect( 2 );
Fixes #<I>. Added a unit test to control that, since the ajax rewrite, setting the Accept header actually replaced the previous value and didn't append to it (tested in Safari <I> for which the problem was specifically reported).
diff --git a/src/main/java/rx/internal/operators/OperatorMerge.java b/src/main/java/rx/internal/operators/OperatorMerge.java index <HASH>..<HASH> 100644 --- a/src/main/java/rx/internal/operators/OperatorMerge.java +++ b/src/main/java/rx/internal/operators/OperatorMerge.java @@ -72,9 +72,6 @@ public class OperatorMerge<T> implements Operator<T, Observable<? extends T>> { * I'd love to have contributions that improve this class, but keep in mind the performance and GC pressure. * The benchmarks I use are in the JMH OperatorMergePerf class. GC memory pressure is tested using Java Flight Recorder * to track object allocation. - * - * TODO There is still a known concurrency bug somewhere either in this class, in SubscriptionIndexedRingBuffer or their relationship. - * See https://github.com/ReactiveX/RxJava/issues/1420 for more information on this. */ public OperatorMerge() {
Remove Comment This comment is no longer correct. <I> was resolved.
diff --git a/js/btcmarkets.js b/js/btcmarkets.js index <HASH>..<HASH> 100644 --- a/js/btcmarkets.js +++ b/js/btcmarkets.js @@ -332,7 +332,7 @@ module.exports = class btcmarkets extends Exchange { return this.parseOrder (order); } - async prepareHistoryRequest (market, since = undefined, limit = undefined) { + prepareHistoryRequest (market, since = undefined, limit = undefined) { let request = this.ordered ({ 'currency': market['quote'], 'instrument': market['base'],
BTCMarkets: Fix fetchOrders, fetchOpenOrders, fetchMyTrades `prepareHistoryRequest` is declared as `async` function, but used synchronously, which makes `fetchOrders`, `fetchOpenOrders`, `fetchMyTrades` fail. Removing `async` fixes the error.
diff --git a/app/code/community/Aoe/Scheduler/Model/Observer.php b/app/code/community/Aoe/Scheduler/Model/Observer.php index <HASH>..<HASH> 100755 --- a/app/code/community/Aoe/Scheduler/Model/Observer.php +++ b/app/code/community/Aoe/Scheduler/Model/Observer.php @@ -78,8 +78,8 @@ class Aoe_Scheduler_Model_Observer /* extends Mage_Cron_Model_Observer */ do { $reason = ($repetition == 0) ? Aoe_Scheduler_Model_Schedule::REASON_ALWAYS : Aoe_Scheduler_Model_Schedule::REASON_REPEAT; $schedule = $scheduleManager->getScheduleForAlwaysJob($job->getJobCode(), $reason); - $schedule->setRepetition($repetition); // this is not persisted, but can be access from within the callback if ($schedule !== false) { + $schedule->setRepetition($repetition); // this is not persisted, but can be access from within the callback $schedule->process(); } $repetition++;
Move setRepetition method call into condition check
diff --git a/pkg/controller/daemon/daemoncontroller.go b/pkg/controller/daemon/daemoncontroller.go index <HASH>..<HASH> 100644 --- a/pkg/controller/daemon/daemoncontroller.go +++ b/pkg/controller/daemon/daemoncontroller.go @@ -480,7 +480,10 @@ func (dsc *DaemonSetsController) manage(ds *extensions.DaemonSet) error { for i := range daemonPods { pod := daemonPods[i] if pod.Status.Phase == v1.PodFailed { - glog.V(2).Infof("Found failed daemon pod %s/%s on node %s, will try to kill it", pod.Namespace, node.Name, pod.Name) + msg := fmt.Sprintf("Found failed daemon pod %s/%s on node %s, will try to kill it", pod.Namespace, node.Name, pod.Name) + glog.V(2).Infof(msg) + // Emit an event so that it's discoverable to users. + dsc.eventRecorder.Eventf(ds, v1.EventTypeWarning, "FailedDaemonPod", msg) podsToDelete = append(podsToDelete, pod.Name) failedPodsObserved++ } else {
Emit events on 'Failed' daemon pods
diff --git a/pysnmp/proto/proxy/rfc2576.py b/pysnmp/proto/proxy/rfc2576.py index <HASH>..<HASH> 100644 --- a/pysnmp/proto/proxy/rfc2576.py +++ b/pysnmp/proto/proxy/rfc2576.py @@ -283,14 +283,7 @@ def v2ToV1(v2Pdu, origV1Pdu=None): # Translate Var-Binds for oid, v2Val in v2VarBinds: - # 2.1.1.11 - if v2Val.tagSet == v2c.IpAddress.tagSet: - v1Val = v1.NetworkAddress().setComponentByPosition( - 0, __v2ToV1ValueMap[v2Val.tagSet].clone(v2Val) - ) - else: - v1Val = __v2ToV1ValueMap[v2Val.tagSet].clone(v2Val) - v1VarBinds.append((oid, v1Val)) + v1VarBinds.append((oid, __v2ToV1ValueMap[v2Val.tagSet].clone(v2Val))) if rfc3411.notificationClassPDUs.has_key(pduType): v1.apiTrapPDU.setVarBinds(v1Pdu, v1VarBinds)
fix to IpAddress translation to match it with setVarBinds() API
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index <HASH>..<HASH> 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "jekyll" require "jekyll-seo-tag" -require "html/proofer" +require "html-proofer" ENV["JEKYLL_LOG_LEVEL"] = "error"
require html-proofer, not html/proofer
diff --git a/fluids/particle_size_distribution.py b/fluids/particle_size_distribution.py index <HASH>..<HASH> 100644 --- a/fluids/particle_size_distribution.py +++ b/fluids/particle_size_distribution.py @@ -1491,7 +1491,7 @@ class ParticleSizeDistributionContinuous(object): -------- >>> psd = PSDLognormal(s=0.5, d_characteristic=5E-6, order=3) >>> psd.fractions_discrete([1e-6, 1e-5, 1e-4, 1e-3]) - [0.000643471012913, 0.916528009985, 0.0828285179619, 1.039798247504e-09] + [0.00064347101291, 0.916528009985, 0.0828285179619, 1.039798e-09] ''' cdfs = [self.cdf(d, n=n) for d in ds] return [cdfs[0]] + diff(cdfs)
Another CI fix for appveyor
diff --git a/core/Spirit.php b/core/Spirit.php index <HASH>..<HASH> 100644 --- a/core/Spirit.php +++ b/core/Spirit.php @@ -16,7 +16,7 @@ class Spirit const LOG_ERROR = 'ERROR'; protected static $instance = null; - protected static $useColoredTerminalOutput = true; + protected static $useColoredTerminalOutput = false; /** * @return bool
Version <I> Console Color Output Support Switch inside Spirit Take it as off as default
diff --git a/h2o-algos/src/main/java/hex/schemas/SharedTreeV3.java b/h2o-algos/src/main/java/hex/schemas/SharedTreeV3.java index <HASH>..<HASH> 100755 --- a/h2o-algos/src/main/java/hex/schemas/SharedTreeV3.java +++ b/h2o-algos/src/main/java/hex/schemas/SharedTreeV3.java @@ -40,7 +40,7 @@ public class SharedTreeV3<B extends SharedTree, S extends SharedTreeV3<B,S,P>, P /** * The maximum number (top K) of predictions to use for hit ratio computation (for multi-class only, 0 to disable) */ - @API(help = "Max. number (top K) of predictions to use for hit ratio computation (for multi-class only, 0 to disable)", level = API.Level.secondary, direction=API.Direction.INOUT, gridable = true) + @API(help = "Max. number (top K) of predictions to use for hit ratio computation (for multi-class only, 0 to disable)", level = API.Level.secondary, direction=API.Direction.INOUT, gridable = false) public int max_hit_ratio_k; @API(help="Number of trees.", gridable = true)
No longer let max_hit_ratio_k be gridable - it's not a hyper-parameter.
diff --git a/components/pager/pager.js b/components/pager/pager.js index <HASH>..<HASH> 100644 --- a/components/pager/pager.js +++ b/components/pager/pager.js @@ -10,8 +10,7 @@ /* eslint-disable react/jsx-no-literals */ /* eslint-disable no-magic-numbers */ -import React, {PropTypes} from 'react'; -import RingComponent from '../ring-component/ring-component'; +import React, {PureComponent, PropTypes} from 'react'; import Button from '../button/button'; import ButtonGroup from '../button-group/button-group'; import ButtonToolbar from '../button-toolbar/button-toolbar'; @@ -20,7 +19,7 @@ import classNames from 'classnames'; import '../link/link.scss'; import style from './pager.css'; -export default class Pager extends RingComponent { +export default class Pager extends PureComponent { static propTypes = { total: PropTypes.number.isRequired, current: PropTypes.number.isRequired,
ring-pager as a PureComponent Former-commit-id: <I>e<I>e9b<I>b<I>b<I>a<I>e<I>b
diff --git a/js/okex.js b/js/okex.js index <HASH>..<HASH> 100644 --- a/js/okex.js +++ b/js/okex.js @@ -1107,7 +1107,7 @@ module.exports = class okex extends Exchange { const symbol = ticker['symbol']; result[symbol] = ticker; } - return result; + return this.filterByArray (result, 'symbol', symbols); } async fetchTickers (symbols = undefined, params = {}) {
okex fetchTicker filter by symbols fix #<I>
diff --git a/mod/lesson/report.php b/mod/lesson/report.php index <HASH>..<HASH> 100644 --- a/mod/lesson/report.php +++ b/mod/lesson/report.php @@ -32,6 +32,13 @@ ORDER BY u.lastname")) { $nothingtodisplay = true; } + +// make sure people are where they should be + require_login($course->id, false); + + if (!isteacher($course->id)) { + error("Must be teacher to view Reports"); + } /// Process any form data before fetching attempts, grades and times if ($form = data_submitted()) { @@ -90,13 +97,6 @@ $times = array(); } -// make sure people are where they should be - require_login($course->id, false); - - if (!isteacher($course->id)) { - error("Must be teacher to view Reports"); - } - /// Print the page header $strlessons = get_string('modulenameplural', 'lesson');
Moved the require login and isteacher checks to infront of the form data processing
diff --git a/pyinfra/api/util.py b/pyinfra/api/util.py index <HASH>..<HASH> 100644 --- a/pyinfra/api/util.py +++ b/pyinfra/api/util.py @@ -189,7 +189,7 @@ def get_file_sha1(filename): # Otherwise, assume a filename and open it up else: - file_io = open(filename) + file_io = open(filename, 'rb') # Ensure we're at the start of the file file_io.seek(0) @@ -198,7 +198,7 @@ def get_file_sha1(filename): hasher = sha1() while len(buff) > 0: - hasher.update(buff.encode()) + hasher.update(buff) buff = file_io.read(BLOCKSIZE) return hasher.hexdigest() diff --git a/pyinfra/modules/files.py b/pyinfra/modules/files.py index <HASH>..<HASH> 100644 --- a/pyinfra/modules/files.py +++ b/pyinfra/modules/files.py @@ -279,7 +279,7 @@ def put( if add_deploy_dir and state.deploy_dir: local_filename = path.join(state.deploy_dir, local_filename) - local_file = open(local_filename) + local_file = open(local_filename, 'rb') mode = ensure_mode_int(mode) remote_file = host.fact.file(remote_filename)
Basic binary file support: needs tests and further verification.
diff --git a/lib/websearch_webinterface.py b/lib/websearch_webinterface.py index <HASH>..<HASH> 100644 --- a/lib/websearch_webinterface.py +++ b/lib/websearch_webinterface.py @@ -1291,8 +1291,7 @@ def display_collection(req, c, aas, verbose, ln): req.content_type = "text/html" req.send_http_header() # deduce collection id: - c = get_coll_normalised_name(c) - colID = get_colID(c) + colID = get_colID(get_coll_normalised_name(c)) if type(colID) is not int: page_body = '<p>' + (_("Sorry, collection %s does not seem to exist.") % ('<strong>' + str(c) + '</strong>')) + '</p>' page_body = '<p>' + (_("You may want to start browsing from %s.") % ('<a href="' + CFG_SITE_URL + '?ln=' + ln + '">' + get_coll_i18nname(CFG_SITE_NAME, ln) + '</a>')) + '</p>'
WebSearch: fix collection display normalisation * When displaying collection page for a collection that does not exist, the original name should be preserved for the error message display. This fixes problems introduced as part of the collection name normalisation call <I>cc<I>cba<I>b<I>e1be5f5a8d<I>f9b.
diff --git a/Entity/ContactClient.php b/Entity/ContactClient.php index <HASH>..<HASH> 100644 --- a/Entity/ContactClient.php +++ b/Entity/ContactClient.php @@ -121,6 +121,16 @@ class ContactClient extends FormEntity private $schedule_exclusions; /** + * ContactClient constructor. + */ + public function __construct() + { + if (!$this->type) { + $this->type = 'api'; + } + } + + /** * @param ClassMetadata $metadata */ public static function loadValidatorMetadata(ClassMetadata $metadata)
Use 'API' as the default type for a new client.
diff --git a/src/node_modules/base/collection.js b/src/node_modules/base/collection.js index <HASH>..<HASH> 100644 --- a/src/node_modules/base/collection.js +++ b/src/node_modules/base/collection.js @@ -1,6 +1,13 @@ var Base = require('ampersand-filtered-subcollection') var lodashMixin = require('ampersand-collection-lodash-mixin') -module.exports = Base.extend( +var Collection = Base.extend( lodashMixin ) + +// don't sort yo +Collection.prototype._sortModels = function (models) { + return models +} + +module.exports = Collection
don't sort, it's slow
diff --git a/lib/generators/sail/install/install_generator.rb b/lib/generators/sail/install/install_generator.rb index <HASH>..<HASH> 100644 --- a/lib/generators/sail/install/install_generator.rb +++ b/lib/generators/sail/install/install_generator.rb @@ -34,7 +34,7 @@ module Sail end def migration_version - "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version.start_with?("5") + "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version >= "5.0.0" end end end diff --git a/lib/generators/sail/update/update_generator.rb b/lib/generators/sail/update/update_generator.rb index <HASH>..<HASH> 100644 --- a/lib/generators/sail/update/update_generator.rb +++ b/lib/generators/sail/update/update_generator.rb @@ -46,7 +46,7 @@ module Sail end def migration_version - "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version.start_with?("5") + "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]" if Rails.version >= "5.0.0" end end end
Fix migration class inheritance for generators (#<I>)
diff --git a/lxd/storage/drivers/driver_btrfs_utils.go b/lxd/storage/drivers/driver_btrfs_utils.go index <HASH>..<HASH> 100644 --- a/lxd/storage/drivers/driver_btrfs_utils.go +++ b/lxd/storage/drivers/driver_btrfs_utils.go @@ -156,6 +156,12 @@ func (d *btrfs) deleteSubvolume(rootPath string, recursion bool) error { return errors.Wrapf(err, "Failed setting subvolume writable %q", rootPath) } + // Attempt to delete the root subvol itself (short path). + err = destroy(rootPath) + if err == nil { + return nil + } + // Delete subsubvols. if recursion { // Get the subvolumes list.
lxd/storage/btrfs: Add volume delete shortcut Most people don't have nested subvolumes and recursively deleting subvolumes can be time consuming and has additional restrictions on path traversal that's caused issues to some users. Closes #<I>
diff --git a/blackfridaytext.go b/blackfridaytext.go index <HASH>..<HASH> 100644 --- a/blackfridaytext.go +++ b/blackfridaytext.go @@ -54,15 +54,18 @@ var ansiEscape = ansiEscapeCodes{ } func GetWidth() int { - tty, err := os.OpenFile("/dev/tty", os.O_RDWR, 0600) - if err != nil { + var tty *os.File + var err error + if tty, err = os.OpenFile("/dev/tty", os.O_RDWR, 0600); err != nil { tty = os.Stdout + } else { + defer tty.Close() } - width, _, err := terminal.GetSize(int(tty.Fd())) - if err != nil { + if width, _, err := terminal.GetSize(int(tty.Fd())); err != nil { return 79 + } else { + return width - 1 } - return width - 1 } // MarkdownToText parses the markdown text using the Blackfriday Markdown
Fixed a silly fd leak
diff --git a/influxdb/tests/test_line_protocol.py b/influxdb/tests/test_line_protocol.py index <HASH>..<HASH> 100644 --- a/influxdb/tests/test_line_protocol.py +++ b/influxdb/tests/test_line_protocol.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +from __future__ import unicode_literals import sys if sys.version_info < (2, 7): @@ -55,3 +56,23 @@ class TestLineProtocol(unittest.TestCase): line_protocol.make_lines(data), 'm1 multi_line="line1\\nline1\\nline3"\n' ) + + def test_make_lines_unicode(self): + data = { + "tags": { + "unicode_tag": "\'Привет!\'" # Hello! in Russian + }, + "points": [ + { + "measurement": "test", + "fields": { + "unicode_val": "Привет!", # Hello! in Russian + } + } + ] + } + + self.assertEqual( + line_protocol.make_lines(data), + 'test,unicode_tag=\'Привет!\' unicode_val="Привет!"\n' + )
tests: add unicode test for line_protocol.make_line. I'm discovered problems, while try to write data, with tags in unicode.
diff --git a/grimoire_elk/enriched/enrich.py b/grimoire_elk/enriched/enrich.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/enrich.py +++ b/grimoire_elk/enriched/enrich.py @@ -935,7 +935,8 @@ class Enrich(ElasticItems): # Create alias if output index exists (index is always created from scratch, so # alias need to be created each time) - if out_conn.exists() and not out_conn.exists_alias(out_index, ONION_ALIAS): + if out_conn.exists() and not out_conn.exists_alias(out_index, ONION_ALIAS) \ + and not self.elastic.alias_in_use(ONION_ALIAS): logger.info(log_prefix + " Creating alias: %s", ONION_ALIAS) out_conn.create_alias(ONION_ALIAS)
[enrich] Prevent adding ONION alias if already in use This code prevents to add the alias `all_onion` to an index if the alias is already used on other indexes.
diff --git a/aws/resource_aws_instance.go b/aws/resource_aws_instance.go index <HASH>..<HASH> 100644 --- a/aws/resource_aws_instance.go +++ b/aws/resource_aws_instance.go @@ -128,7 +128,8 @@ func resourceAwsInstance() *schema.Resource { DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { // Sometimes the EC2 API responds with the equivalent, empty SHA1 sum // echo -n "" | shasum - if old == "da39a3ee5e6b4b0d3255bfef95601890afd80709" && new == "" { + if (old == "da39a3ee5e6b4b0d3255bfef95601890afd80709" && new == "") || + (old == "" && new == "da39a3ee5e6b4b0d3255bfef95601890afd80709") { return true } return false
resource/aws_instance: Ignore change of user_data from omission to empty
diff --git a/pyramid_webassets/tests/test_webassets.py b/pyramid_webassets/tests/test_webassets.py index <HASH>..<HASH> 100644 --- a/pyramid_webassets/tests/test_webassets.py +++ b/pyramid_webassets/tests/test_webassets.py @@ -715,7 +715,7 @@ class TestBaseUrlBehavior(object): automatic_view, manual_view = self.view_actions[static_view] - if not ':' in base_dir: + if ':' not in base_dir: base_dir = os.path.join(self.temp.tempdir, base_dir) self.request = testing.DummyRequest()
fix bad "not in" in tests
diff --git a/examples/Lambda.py b/examples/Lambda.py index <HASH>..<HASH> 100644 --- a/examples/Lambda.py +++ b/examples/Lambda.py @@ -113,7 +113,7 @@ LambdaExecutionRole = t.add_resource(Role( AssumeRolePolicyDocument={ "Version": "2012-10-17", "Statement": [{ - "Action": [ "sts:AssumeRole" ], + "Action": ["sts:AssumeRole"], "Effect": "Allow", "Principal": { "Service": ["lambda.amazonaws.com"]
Fix pycodestyle issues with examples/Lambda.py
diff --git a/app/libraries/Utilities/CustomTemplate.php b/app/libraries/Utilities/CustomTemplate.php index <HASH>..<HASH> 100644 --- a/app/libraries/Utilities/CustomTemplate.php +++ b/app/libraries/Utilities/CustomTemplate.php @@ -72,11 +72,11 @@ class CustomTemplate * @param int $post_id * * @since 0.6.0 - * @access private + * @access public * * @return string */ - private function slug(int $post_id = null): string + public function slug(int $post_id = null): string { return (string)\get_page_template_slug($post_id); } @@ -87,11 +87,11 @@ class CustomTemplate * @param array $type * * @since 0.6.0 - * @access private + * @access public * * @return bool */ - private function is(array $type): bool + public function is(array $type): bool { return $this->utilities->page->is('page_template', $type); }
Change visibility for `is()` and `slug()` of custom templates utility They are handy methods that can be used by a child theme.
diff --git a/lib/phoenx/gem_version.rb b/lib/phoenx/gem_version.rb index <HASH>..<HASH> 100755 --- a/lib/phoenx/gem_version.rb +++ b/lib/phoenx/gem_version.rb @@ -1,5 +1,5 @@ module Phoenx - VERSION = "0.1.0".freeze unless defined? Phoenx::VERSION + VERSION = "0.1.1".freeze unless defined? Phoenx::VERSION end \ No newline at end of file
Bumped version to <I>
diff --git a/app/Http/Controllers/GedcomFileController.php b/app/Http/Controllers/GedcomFileController.php index <HASH>..<HASH> 100644 --- a/app/Http/Controllers/GedcomFileController.php +++ b/app/Http/Controllers/GedcomFileController.php @@ -188,6 +188,7 @@ class GedcomFileController extends AbstractBaseController default: return $this->viewResponse('admin/import-fail', [ 'error' => I18N::translate('Error: converting GEDCOM files from %s encoding to UTF-8 encoding not currently supported.', $charset), + 'tree' => $tree, ]); } $first_time = false;
Error when importing tree with invalid encoding
diff --git a/test/api.js b/test/api.js index <HASH>..<HASH> 100644 --- a/test/api.js +++ b/test/api.js @@ -66,7 +66,7 @@ describe('Graphs', function () { var g = new GDS({ url: APIURL, username: USERNAME, password: PASSWORD }); - g.graphs().add(function (err, data) { + g.graphs().create(function (err, data) { should(err).equal(null); data.should.be.an.Object; data.dbUrl.should.be.a.String; @@ -86,7 +86,7 @@ describe('Graphs', function () { .reply(201, { graphId: 'foo', dbUrl: 'https://example.com/user/foo' }); var g = new GDS({ url: APIURL, username: USERNAME, password: PASSWORD }); - g.graphs().add(function (err, data) { + g.graphs().create(function (err, data) { should(err).equal(null); g.graphs().delete(function (err, data) { should(err).equal(null);
fix _graphs tests after method rename
diff --git a/src/App.php b/src/App.php index <HASH>..<HASH> 100644 --- a/src/App.php +++ b/src/App.php @@ -200,12 +200,16 @@ class App extends BaseApplication $uri = $input->getParameterOption(['--uri', '-l']); - /*Checking if the URI has http of not in begenning*/ - if ($uri && !preg_match('/^(http|https):\/\//', $uri)) { - $uri = sprintf( - 'http://%s', - $uri - ); + if (!$uri) { + // When uri is empty it's impossible to view logged + // messages because of InvalidArguemntException. + $uri = 'http://default'; + } elseif (!preg_match('/^(http|https):\/\//', $uri)) { + // Make sure uri starts with a protocol. + $uri = sprintf( + 'http://%s', + $uri + ); } $env = $input->getParameterOption(['--env', '-e'], getenv('DRUPAL_ENV') ?: 'prod');
#<I> Default value for uri option. Without it it's impossible to view messages logged during command execution in Reports UI (InvalidArgumentException). (#<I>)
diff --git a/murmurhash/about.py b/murmurhash/about.py index <HASH>..<HASH> 100644 --- a/murmurhash/about.py +++ b/murmurhash/about.py @@ -1,5 +1,5 @@ __title__ = "murmurhash" -__version__ = "1.0.7" +__version__ = "1.0.8" __summary__ = "Cython bindings for MurmurHash" __uri__ = "https://github.com/explosion/murmurhash" __author__ = "Explosion"
Set version to <I> (#<I>)
diff --git a/lib/zertico/version.rb b/lib/zertico/version.rb index <HASH>..<HASH> 100644 --- a/lib/zertico/version.rb +++ b/lib/zertico/version.rb @@ -1,3 +1,3 @@ module Zertico - VERSION = '2.0.0.alpha.2' + VERSION = '2.0.0.alpha.3' end \ No newline at end of file
Bumping version to <I>.alpha<I> [ci skip]
diff --git a/platform/android/build/android_tools.rb b/platform/android/build/android_tools.rb index <HASH>..<HASH> 100644 --- a/platform/android/build/android_tools.rb +++ b/platform/android/build/android_tools.rb @@ -857,7 +857,7 @@ def start_emulator(cmd) # wait while emulator appears in adb device list 30.times do - sleep 1 + sleep 5 out = Jake.run4("#{$adb} devices") lines = out.chomp.split("\n"); return if lines.length > 1
travis: emulator can start really slow
diff --git a/sphinxcontrib/openapi/openapi30.py b/sphinxcontrib/openapi/openapi30.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/openapi/openapi30.py +++ b/sphinxcontrib/openapi/openapi30.py @@ -267,16 +267,16 @@ def _httpresource(endpoint, method, properties, render_examples, if render_request: request_content = properties.get('requestBody', {}).get('content', {}) if request_content: - req_properties = json.dumps(request_content['application/json'] - ['schema']['properties'], indent=2, separators=(',', ':') - ) + schema = request_content['application/json']['schema'] + req_properties = json.dumps(schema['properties'], indent=2, + separators=(',', ':')) yield '{indent}**Request body:**'.format(**locals()) yield '' yield '{indent}.. sourcecode:: http'.format(**locals()) yield '' yield '{indent}{indent}POST /customers HTTP/1.1'.format(**locals()) yield '{indent}{indent}Host: example.com'.format(**locals()) - yield '{indent}{indent}Content-Type: application/json'\ + yield '{indent}{indent}Content-Type: application/json' \ .format(**locals()) yield '' for line in req_properties.splitlines():
Request Body: E<I> continuation line under-indented for visual indent.
diff --git a/bcbio/install.py b/bcbio/install.py index <HASH>..<HASH> 100644 --- a/bcbio/install.py +++ b/bcbio/install.py @@ -782,7 +782,7 @@ def add_subparser(subparsers): action="append", default=[], type=_check_toolplus) parser.add_argument("--datatarget", help="Data to install. Allows customization or install of extra data.", action="append", default=[], - choices=["variation", "rnaseq", "smallrna", "gemini", "vep", "dbnsfp", "dbscsnv", "battenberg", "kraken", "ericscript", "gnomad"]) + choices=["variation", "rnaseq", "smallrna", "gemini", "vep", "dbnsfp", "dbscsnv", "battenberg", "kraken", "ericscript", "gnomad", "topmed"]) parser.add_argument("--genomes", help="Genomes to download", action="append", default=[], choices=SUPPORTED_GENOMES) parser.add_argument("--aligners", help="Aligner indexes to download",
Add TOPMEd as a data target.
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,13 @@ from setuptools import setup, find_packages import airflow -# To generate install_requires from requirements.txt -# from pip.req import parse_requirements -# reqs = (str(ir.req) for ir in parse_requirements('requirements.txt')) +# Kept manually in sync with airflow.__version__ +version = '0.2.1' setup( name='airflow', description='Programmatically author, schedule and monitor data pipelines', - version=airflow.__version__, + version=version, packages=find_packages(), include_package_data=True, zip_safe=False, @@ -45,6 +44,5 @@ setup( author_email='maximebeauchemin@gmail.com', url='https://github.com/mistercrunch/Airflow', download_url=( - 'https://github.com/mistercrunch/Airflow/tarball/' + - airflow.__version__), + 'https://github.com/mistercrunch/Airflow/tarball/' + version), )
Importing airflow in setup.py wan't a good idea, rolling back
diff --git a/lib/link.js b/lib/link.js index <HASH>..<HASH> 100644 --- a/lib/link.js +++ b/lib/link.js @@ -1,4 +1,4 @@ -import React, { Component, Children } from 'react' +import React, { Component, Children, PropTypes } from 'react' import Router from './router' export default class Link extends Component { @@ -7,6 +7,13 @@ export default class Link extends Component { this.linkClicked = this.linkClicked.bind(this) } + static propTypes = { + children: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.element + ]).isRequired + } + linkClicked (e) { if (e.target.nodeName === 'A' && (e.metaKey || e.ctrlKey || e.shiftKey || (e.nativeEvent && e.nativeEvent.which === 2))) {
Add warning for multiple children in Link (#<I>) * Add warning for multiple children in Link * Add space after if * Use proptype validation
diff --git a/Twig/Menu.php b/Twig/Menu.php index <HASH>..<HASH> 100755 --- a/Twig/Menu.php +++ b/Twig/Menu.php @@ -88,12 +88,12 @@ class Menu extends \Twig_Extension { } } - if (!in_array($sClassName, $this->aClassesLoaded)) { + if (!in_array($menu, $this->aClassesLoaded)) { /** * @var AbstractMenu $oMenu */ $oMenu = new $sClassName($this->router, $this->autorizationChecker, $this->aNamespaces); - $this->aClassesLoaded[] = $sClassName; + $this->aClassesLoaded[] = $menu; if ($oMenu->getUrl() != $routeActuelle) { $sContenu .= $oMenu->getLink(); }
Issue #3: Correction bug doublon menu
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationAsyncClient.java b/sdk/appconfiguration/azure-data-appconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationAsyncClient.java index <HASH>..<HASH> 100644 --- a/sdk/appconfiguration/azure-data-appconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationAsyncClient.java +++ b/sdk/appconfiguration/azure-data-appconfiguration/src/main/java/com/azure/data/appconfiguration/ConfigurationAsyncClient.java @@ -56,7 +56,7 @@ public final class ConfigurationAsyncClient { private static final String ETAG_ANY = "*"; private final String serviceEndpoint; private final ConfigurationService service; - private final String apiVersion = ConfigurationServiceVersion.getLatest().getVersion(); + private final String apiVersion; /** * Creates a ConfigurationAsyncClient that sends requests to the configuration service at {@code serviceEndpoint}. @@ -68,6 +68,7 @@ public final class ConfigurationAsyncClient { ConfigurationAsyncClient(String serviceEndpoint, HttpPipeline pipeline, ConfigurationServiceVersion version) { this.service = RestProxy.create(ConfigurationService.class, pipeline); this.serviceEndpoint = serviceEndpoint; + this.apiVersion = version.getVersion(); } /**
Use service version provided in constructor (#<I>)
diff --git a/src/Object/Product/Product.php b/src/Object/Product/Product.php index <HASH>..<HASH> 100644 --- a/src/Object/Product/Product.php +++ b/src/Object/Product/Product.php @@ -971,7 +971,7 @@ class Product extends AbstractObject implements * * @return bool */ - protected function isValid() + public function isValid() { $validator = new ValidationHelper($this); try {
Change isValid to be public
diff --git a/spring-social-twitter/src/main/java/org/springframework/social/twitter/connect/TwitterServiceApiAdapter.java b/spring-social-twitter/src/main/java/org/springframework/social/twitter/connect/TwitterServiceApiAdapter.java index <HASH>..<HASH> 100644 --- a/spring-social-twitter/src/main/java/org/springframework/social/twitter/connect/TwitterServiceApiAdapter.java +++ b/spring-social-twitter/src/main/java/org/springframework/social/twitter/connect/TwitterServiceApiAdapter.java @@ -16,8 +16,8 @@ package org.springframework.social.twitter.connect; import org.springframework.social.BadCredentialsException; +import org.springframework.social.connect.ServiceApiAdapter; import org.springframework.social.connect.ServiceProviderUser; -import org.springframework.social.connect.spi.ServiceApiAdapter; import org.springframework.social.twitter.TwitterApi; import org.springframework.social.twitter.types.TwitterProfile;
moved service api adapter to root package to avoid tangle
diff --git a/lib/valanga/music_search.rb b/lib/valanga/music_search.rb index <HASH>..<HASH> 100644 --- a/lib/valanga/music_search.rb +++ b/lib/valanga/music_search.rb @@ -20,8 +20,8 @@ module Valanga end def search(music_name) - if url = pages[music_name] - return create_music(url) + if music_id = pages[music_name] + return create_music(info_url(music_id)) end page_sessions do |session| @@ -32,7 +32,7 @@ module Valanga pages[music_name] = music_id(session) - return create_music(info_url(src)) + return create_music(info_url(pages[music_name])) rescue Capybara::ElementNotFound # if link is not found, go next page. end @@ -66,8 +66,8 @@ module Valanga end end - def info_url(src) - "http://p.eagate.573.jp/game/reflec/groovin/p/music/#{src}" + def info_url(music_id) + "http://p.eagate.573.jp/game/reflec/groovin/p/music/m_info.html?id=#{music_id}" end def music_url(page: nil, sorttype: nil, sort: nil)
`#info_url` receive `music_id` and build url