content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Python | Python | standardize aws redshift naming | 88ea1575079c0e94e1f62df38d6d592b8c827bbd | <ide><path>airflow/providers/amazon/aws/sensors/redshift.py
<ide> # under the License.
<ide> import warnings
<ide>
<del>from airflow.providers.amazon.aws.sensors.redshift_cluster import AwsRedshiftClusterSensor
<add>from airflow.providers.amazon.aws.sensors.redshift_cluster import RedshiftClusterSensor
<add>
<add>AwsR... | 5 |
Go | Go | use --numeric-owner for tar and untar | d7d42ff4feab59ca6566addc20926a27aeaba8ef | <ide><path>archive.go
<ide> func Tar(path string, compression Compression) (io.Reader, error) {
<ide> // Tar creates an archive from the directory at `path`, only including files whose relative
<ide> // paths are included in `filter`. If `filter` is nil, then all files are included.
<ide> func TarFilter(path string, co... | 1 |
Javascript | Javascript | use var instead of const | a355aa803bb47d0725bf17bf39e9a0a8865e981b | <ide><path>src/math/Box3.js
<ide> Object.assign( Box3.prototype, {
<ide> // transform of empty box is an empty box.
<ide> if ( this.isEmpty( ) ) return this;
<ide>
<del> const m = matrix.elements;
<add> var m = matrix.elements;
<ide>
<del> const xax = m[ 0 ] * this.min.x;
<del> const xay = m[ 1 ] * this.min.x... | 1 |
PHP | PHP | remove periods from optimize command | ad98047f612e66f14c279dd64a642c83cdc01787 | <ide><path>src/Illuminate/Foundation/Console/OptimizeCommand.php
<ide> public function __construct(Composer $composer)
<ide> */
<ide> public function fire()
<ide> {
<del> $this->info('Generating optimized class loader...');
<add> $this->info('Generating optimized class loader');
<ide>
<ide> $this->composer->du... | 1 |
Javascript | Javascript | add test for | 3e033ffeb8f69e7f386afc632b107bd60b2cb1ae | <ide><path>packages/ember-old-router/tests/view_test.js
<add>var set = Ember.set, get = Ember.get;
<add>
<add>module("Ember.View - Old Router Functionality", {
<add> setup: function() {
<add> Ember.TEMPLATES = {};
<add> }
<add>});
<add>
<add>test("should load named templates from View.templates", function() {
<add... | 1 |
Javascript | Javascript | ensure reflexivity of deepequal | aae51ecf7d407b2fb56c1f3e1edf91a16940c973 | <ide><path>lib/assert.js
<ide> function objEquiv(a, b) {
<ide> if (a.prototype !== b.prototype) return false;
<ide> //~~~I've managed to break Object.keys through screwy arguments passing.
<ide> // Converting to array solves the problem.
<del> if (isArguments(a)) {
<del> if (!isArguments(b)) {
<del> re... | 2 |
Python | Python | use augmented assignment | d8d13fadc91e3dca0ace8d0f8743911f9f2cb1b8 | <ide><path>airflow/www/views.py
<ide> def gantt(self, session=None):
<ide> end_date = failed_task_instance.end_date or timezone.utcnow()
<ide> start_date = failed_task_instance.start_date or end_date
<ide> if tf_count != 0 and failed_task_instance.task_id == prev_task_id:
<del> ... | 1 |
Text | Text | add security section to readme.md | 8ac50819b69f962c13f9b436e0c7c5488276a6fd | <ide><path>README.md
<ide> Instructions:
<ide> [#io.js on Freenode.net](http://webchat.freenode.net?channels=io.js&uio=d4)
<ide> * [iojs/io.js on Gitter](https://gitter.im/nodejs/io.js)
<ide>
<add>## Security
<ide>
<add>All security bugs in io.js are taken seriously and should be reported by
<add>emailing security@... | 1 |
Ruby | Ruby | add helpers for formula tests | c003e805bea98f6d0be62c0938ccad4f4a7e4ce0 | <ide><path>Library/Homebrew/cmd/test.rb
<ide> module Homebrew
<ide> FailedAssertion = Test::Unit::AssertionFailedError
<ide> end
<ide>
<add> require "formula_assertions"
<add>
<ide> def test
<ide> raise FormulaUnspecifiedError if ARGV.named.empty?
<ide>
<ide> def test
<ide> puts "Testing #{f.name}"... | 2 |
PHP | PHP | remove depecated code from datasource classes | 6ef27d293be14764b1a8f97d85dbba888e6236b6 | <ide><path>src/Datasource/ConnectionInterface.php
<ide> public function disableConstraints(callable $operation);
<ide> * @return bool
<ide> */
<ide> public function logQueries($enable = null);
<del>
<del> /**
<del> * Sets the logger object instance. When called with no arguments
<del> * it retu... | 12 |
Ruby | Ruby | use symbol for `respond_to?` | af56a99a37d93c252392129ab44ee18ea884c447 | <ide><path>Library/Homebrew/dev-cmd/livecheck.rb
<ide> def livecheck
<ide> onoe e
<ide> end
<ide> end.sort_by do |formula_or_cask|
<del> formula_or_cask.respond_to?("token") ? formula_or_cask.token : formula_or_cask.name
<add> formula_or_cask.respond_to?(:token) ? formula_or_cask.token : for... | 1 |
Ruby | Ruby | deduplicate the environment glob in engine paths | f77ec9aa67afd6f28dfbd21970df4f58acf025be | <ide><path>railties/lib/rails/engine/configuration.rb
<ide> def paths
<ide> paths.add "lib/tasks", glob: "**/*.rake"
<ide>
<ide> paths.add "config"
<del> paths.add "config/environments", glob: "#{Rails.env}.rb"
<add> paths.add "config/environments", glob: -"#{Rails.env}.... | 1 |
Java | Java | simplify the generation of inner bean definitions | c541bde513443862e24e372c83f33e8c511d8903 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/generator/BeanParameterGenerator.java
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.Set;
<del>import java.util.function.BiConsumer;
<ide> import java.util.function.Function;
<ide> import java.util.function.Supplier... | 2 |
Python | Python | add note that apisettings is an internal class | 5f3f2ef10636e4083433289ee007e12cd61d8e8b | <ide><path>rest_framework/settings.py
<ide> def import_from_string(val, setting_name):
<ide>
<ide> class APISettings:
<ide> """
<del> A settings object, that allows API settings to be accessed as properties.
<del> For example:
<add> A settings object that allows REST Framework settings to be accessed as
<... | 1 |
Go | Go | fix panic in validate context for build | cd776cdd77239353d8bd17d3e05d66665f381157 | <ide><path>utils/utils.go
<ide> func ValidateContextDirectory(srcPath string, excludes []string) error {
<ide> // skip checking if symlinks point to non-existing files, such symlinks can be useful
<ide> // also skip named pipes, because they hanging on open
<ide> lstat, _ := os.Lstat(filePath)
<del> if lstat.Mod... | 1 |
Javascript | Javascript | add missing semicolon in volumeslice | d8a6ab85bd1016c5628cf00cd5ea174d9b8cfc8f | <ide><path>examples/js/VolumeSlice.js
<ide> THREE.VolumeSlice = function( volume, index, axis ) {
<ide> */
<ide>
<ide>
<del>}
<add>};
<ide>
<ide> THREE.VolumeSlice.prototype = {
<ide>
<ide> THREE.VolumeSlice.prototype = {
<ide>
<ide> }
<ide>
<del>}
<add>}; | 1 |
Text | Text | capitalize first letter in sentence | 387928c2348880c5801b422805a069e7c4910289 | <ide><path>guides/source/routing.md
<ide> resources :user_permissions, controller: 'admin/user_permissions'
<ide>
<ide> This will route to the `Admin::UserPermissions` controller.
<ide>
<del>NOTE: Only the directory notation is supported. specifying the
<add>NOTE: Only the directory notation is supported. Specifying ... | 1 |
Javascript | Javascript | switch assertequal arguments | b8106077b7e24723e275db1dfd1aea887b2764cc | <ide><path>test/fixtures/GH-892-request.js
<ide> var options = {
<ide> };
<ide>
<ide> var req = https.request(options, function(res) {
<del> assert.strictEqual(200, res.statusCode);
<add> assert.strictEqual(res.statusCode, 200);
<ide> gotResponse = true;
<ide> console.error('DONE');
<ide> res.resume(); | 1 |
Text | Text | add callback to setprops docs | 2d66fc45185e98cfe11a824822ce44a90388cdeb | <ide><path>docs/docs/ref-02-component-api.md
<ide> If this component has been mounted into the DOM, this returns the corresponding
<ide> ### setProps
<ide>
<ide> ```javascript
<del>setProps(object nextProps)
<add>setProps(object nextProps[, function callback])
<ide> ```
<ide>
<del>When you're integrating with an exte... | 1 |
Ruby | Ruby | add tests with custom requirements | e9815bf2bd2950b5450f0c3ed3bb7eadd3b4cbb3 | <ide><path>Library/Homebrew/test/install_test.rb
<ide> def test_install_with_invalid_option
<ide> assert_match "testball1: this formula has no --with-fo option so it will be ignored!",
<ide> cmd("install", "testball1", "--with-fo")
<ide> end
<add>
<add> def test_install_with_nonfatal_requirement
<add> s... | 1 |
Text | Text | add react-redux-form to ecosystem | 9c42b70e1a69281b36b02fd1c899a97436a5bb0c | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> ### Components
<ide>
<ide> * [redux-form](https://github.com/erikras/redux-form) — Keep React form state in Redux
<add>* [react-redux-form](https://github.com/davidkpiano/react-redux-fo... | 1 |
PHP | PHP | improve property type | e0e516cd50882bc8de500d164cd7c28eacd64430 | <ide><path>src/Illuminate/Pipeline/Pipeline.php
<ide> class Pipeline implements PipelineContract
<ide> /**
<ide> * The container implementation.
<ide> *
<del> * @var \Illuminate\Contracts\Container\Container
<add> * @var \Illuminate\Contracts\Container\Container|null
<ide> */
<ide> protec... | 1 |
Text | Text | use svg badge | b93ca855c0f99fbf6bd95d576c5667eb5615e102 | <ide><path>README.md
<del>AngularJS [](https://travis-ci.org/angular/angular.js)
<add>AngularJS [](https://travis-ci.org/angular/angular.js)
<ide> =========
<ide>
<ide> ... | 1 |
Python | Python | remove duplicate get_connection in snowflakehook | de9900539c9731325e29fd1bbac37c4bc1363bc4 | <ide><path>airflow/providers/snowflake/hooks/snowflake.py
<ide> def run(self, sql: Union[str, list], autocommit: bool = False, parameters: Optio
<ide> """
<ide> self.query_ids = []
<ide>
<del> with self.get_conn() as conn:
<del> conn = self.get_conn()
<add> with closing(self.ge... | 1 |
Go | Go | rearrange layerstore locking | cbf55b924f05a918c9b95795f6c69aa89d180530 | <ide><path>layer/layer_store.go
<ide> func (ls *layerStore) Register(ts io.Reader, parent ChainID) (Layer, error) {
<ide> ls.layerL.Lock()
<ide> defer ls.layerL.Unlock()
<ide>
<del> if existingLayer := ls.getAndRetainLayer(layer.chainID); existingLayer != nil {
<add> if existingLayer := ls.getWithoutLock(layer.chain... | 3 |
Javascript | Javascript | add freelist deprecation and test | fef87fee1de60c3d5db2652ee2004a6e78d112ff | <ide><path>lib/freelist.js
<ide> 'use strict';
<ide>
<add>const util = require('internal/util');
<add>
<ide> module.exports = require('internal/freelist');
<add>util.printDeprecationMessage('freelist module is deprecated.');
<ide><path>test/parallel/test-freelist.js
<add>'use strict';
<add>
<add>// Flags: --expose-int... | 2 |
Javascript | Javascript | add coverage tests for sourcemapfromdataurl method | eb773217ae6f4b4ea0e906ff1cc492502c32a006 | <ide><path>test/fixtures/source-map/inline-base64-json-error.js
<add>var cov_263bu3eqm8=function(){var path= "./branches.js";var hash="424788076537d051b5bf0e2564aef393124eabc7";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path: ... | 3 |
Ruby | Ruby | fix query cache for multiple connections | aec635dc2fa90a9c286527bf997b3b927f2379d2 | <ide><path>activerecord/lib/active_record/query_cache.rb
<ide> def uncached(&block)
<ide> end
<ide>
<ide> def self.run
<del> ActiveRecord::Base.connection_handler.connection_pool_list.
<del> reject { |p| p.query_cache_enabled }.each { |p| p.enable_query_cache! }
<add> pools = []
<add>
<add> ... | 2 |
Javascript | Javascript | update comments for eventpluginhub.js | c54249c86834c00bc13a1672455c3fb955308c05 | <ide><path>src/renderers/shared/event/EventPluginHub.js
<ide> var EventPluginHub = {
<ide> /**
<ide> * Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent.
<ide> *
<del> * @param {string} id ID of the DOM element.
<add> * @param {object} inst The instance, which is the source of events.... | 1 |
Python | Python | fix characterembed layer | 5ae862857108db67d331ed68e703b034436b9e08 | <ide><path>spacy/ml/_character_embed.py
<add>from typing import List
<ide> from thinc.api import Model
<add>from thinc.types import Floats2d
<add>from ..tokens import Doc
<ide>
<ide>
<del>def CharacterEmbed(nM, nC):
<add>def CharacterEmbed(nM: int, nC: int) -> Model[List[Doc], List[Floats2d]]:
<ide> # nM: Number ... | 1 |
PHP | PHP | add a test class for trait usepusherchannelsnames | cdcb9e28205e1bd9104a79335619652772533f18 | <ide><path>tests/Broadcasting/PusherBroadcasterTest.php
<ide> public function setUp()
<ide> $this->broadcaster = m::mock(PusherBroadcaster::class, [$this->pusher])->makePartial();
<ide> }
<ide>
<del> /**
<del> * @dataProvider channelsProvider
<del> */
<del> public function testChannelNameNorm... | 3 |
Text | Text | improve docs on android native modules | 8d525b95dc0d7762838df9dc29fea25c5a9d1c0e | <ide><path>docs/NativeModulesAndroid.md
<ide> public class UIManagerModule extends ReactContextBaseJavaModule {
<ide>
<ide> promise.resolve(map);
<ide> } catch (IllegalViewOperationException e) {
<del> promise.reject(e.getMessage());
<add> promise.reject(e);
<ide> }
<ide> }
<ide>
<ide> compo... | 1 |
Ruby | Ruby | update the levenshtein distance method in guides | d740b58a26e86c5e02988cdb5990d707365efe3e | <ide><path>guides/rails_guides/levenshtein.rb
<ide> module RailsGuides
<ide> module Levenshtein
<del> # Based on the pseudocode in http://en.wikipedia.org/wiki/Levenshtein_distance
<del> def self.distance(s1, s2)
<del> s = s1.unpack('U*')
<del> t = s2.unpack('U*')
<del> m = s.length
<del> n ... | 1 |
Javascript | Javascript | make dns.promises enumerable | 61e4d89098e63c1dad0b2de7beeed1277abf5af3 | <ide><path>lib/dns.js
<ide> bindDefaultResolver(module.exports, getDefaultResolver());
<ide> Object.defineProperties(module.exports, {
<ide> promises: {
<ide> configurable: true,
<del> enumerable: false,
<add> enumerable: true,
<ide> get() {
<ide> if (promises === null) {
<ide> promises = ... | 1 |
PHP | PHP | allow top level array containing a table name | 59e1cdd78038d73b573fc4f5208cfe46bb050896 | <ide><path>Cake/ORM/Marshaller.php
<ide> public function __construct(Table $table, $safe = false) {
<ide> public function one(array $data, $include = []) {
<ide> $include = Hash::normalize($include);
<ide>
<add> $tableName = $this->_table->alias();
<ide> $entityClass = $this->_table->entityClass();
<del>
<ide> ... | 2 |
Text | Text | fix vm.script createcacheddata example | 047cd618593372f91dada42f29cc9a8e35cda22c | <ide><path>doc/api/vm.md
<ide> Creates a code cache that can be used with the `Script` constructor's
<ide> `cachedData` option. Returns a `Buffer`. This method may be called at any
<ide> time and any number of times.
<ide>
<add>The code cache of the `Script` doesn't contain any JavaScript observable
<add>states. The c... | 1 |
Text | Text | fix heading levels for test runner hooks | 0076c38f76d7467d46343039261d28a7dd4bee75 | <ide><path>doc/api/test.md
<ide> same as [`it([name], { skip: true }[, fn])`][it options].
<ide> Shorthand for marking a test as `TODO`,
<ide> same as [`it([name], { todo: true }[, fn])`][it options].
<ide>
<del>### `before([, fn][, options])`
<add>## `before([, fn][, options])`
<ide>
<ide> <!-- YAML
<ide> added: v18... | 1 |
Javascript | Javascript | add static version of passive subtree tag | 93a0c2830534cfbc4e6be3ecc9c9fc34dee3cfaa | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> import {
<ide> Mutation as MutationSubtreeTag,
<ide> Layout as LayoutSubtreeTag,
<ide> Passive as PassiveSubtreeTag,
<add> PassiveStatic as PassiveStaticSubtreeTag,
<ide> } from './ReactSubtreeTags';
<ide> import {
<ide> NoLanePriority,
<... | 4 |
Ruby | Ruby | require "time" where we depend on time#xmlschema | 74ab4d930d78180e13b5999b6623f2e924339162 | <ide><path>activesupport/lib/active_support/core_ext.rb
<ide> # frozen_string_literal: true
<ide>
<del>Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).each do |path|
<add>Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).sort.each do |path|
<ide> require path
<ide> end
<ide><path>activesupport/lib/active_sup... | 2 |
Ruby | Ruby | remove old setup from as test case | 90745897b991e02e758c635a03062d1bec288300 | <ide><path>activesupport/lib/active_support/test_case.rb
<ide> class TestCase < ::Minitest::Test
<ide>
<ide> alias_method :method_name, :name
<ide>
<del> $tags = {}
<del> def self.for_tag(tag)
<del> yield if $tags[tag]
<del> end
<del>
<ide> include ActiveSupport::Testing::TaggedLogging
<ide> ... | 1 |
Ruby | Ruby | produce good error messages for bad tarballs | 05991dd846ac54b10cd78453b140de8bfb259392 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def compression_type
<ide> when /^\xFD7zXZ\x00/ then :xz
<ide> when /^Rar!/ then :rar
<ide> else
<del> # Assume it is not an archive
<del> nil
<add> # This code so that bad-tarballs and zips produce good error messages
<add> # ... | 1 |
Javascript | Javascript | set nodeintegration to true | 1bc06505d5cccb452724c5628f6288787f16aa44 | <ide><path>src/main-process/atom-window.js
<ide> module.exports = class AtomWindow extends EventEmitter {
<ide> // Disable the `auxclick` feature so that `click` events are triggered in
<ide> // response to a middle-click.
<ide> // (Ref: https://github.com/atom/atom/pull/12696#issuecomment-29049... | 1 |
Python | Python | replace reference to np.swapaxis with np.swapaxes | 0c4f621ad18ce4fbf6740943de59c4e2d5c7841c | <ide><path>numpy/core/numeric.py
<ide> def moveaxis(a, source, destination):
<ide>
<ide> >>> np.transpose(x).shape
<ide> (5, 4, 3)
<del> >>> np.swapaxis(x, 0, -1).shape
<add> >>> np.swapaxes(x, 0, -1).shape
<ide> (5, 4, 3)
<ide> >>> np.moveaxis(x, [0, 1], [-1, -2]).shape
<ide> (5, 4, 3) | 1 |
Text | Text | fix grammatical error in swarm_leave.md | 248b1c23d37e1e32af66583f8d14d9f8742280ef | <ide><path>docs/reference/commandline/swarm_leave.md
<ide> Options:
<ide>
<ide> When you run this command on a worker, that worker leaves the swarm.
<ide>
<del>You can use the `--force` option to on a manager to remove it from the swarm.
<add>You can use the `--force` option on a manager to remove it from the swarm.
... | 1 |
Python | Python | add more info to failure message | 0f4dc765e24caca49eaf74b03ac56894c6f82b80 | <ide><path>numpy/core/__init__.py
<ide>
<ide> IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
<ide>
<del>Importing the multiarray numpy extension module failed. Most
<del>likely you are trying to import a failed build of numpy.
<del>Here is how to proceed:
<del>- If you're working with a numpy git... | 1 |
Ruby | Ruby | create indexes inline in create table for mysql | afa148a4f0ac5e2a446b5fe87881a130e8a24f3d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def column_exists?(table_name, column_name, type = nil, options = {})
<ide> def create_table(table_name, options = {})
<ide> td = create_table_definition table_name, options[:temporary], options[:options], op... | 5 |
PHP | PHP | add loadfactoriesfrom method | 7c116138df46dfa19e48664a6f36f9283d896550 | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide>
<ide> use Illuminate\Console\Application as Artisan;
<ide> use Illuminate\Contracts\Support\DeferrableProvider;
<add>use Illuminate\Database\Eloquent\Factory as ModelFactory;
<ide>
<ide> abstract class ServiceProvider
<ide> {
<ide> protected function loadMig... | 1 |
Python | Python | fix loading from transfo-xl lm model | 1756b5e9568c3f5d754d0fe6d7a39134e3753ab5 | <ide><path>pytorch_pretrained_bert/modeling_transfo_xl.py
<ide> def build_tf_to_pytorch_map(model, config):
<ide> This time I use a map to keep the PyTorch model as identical to the original PyTorch model as possible.
<ide> """
<ide> tf_to_pt_map = {}
<add>
<add> if hasattr(model, 'transformer'):
<ad... | 1 |
Python | Python | fix some spelling errors | 48df7af2089d1f7be8aee646a89d5423b9a9a6b1 | <ide><path>numpy/_array_api/_array_object.py
<ide> def __rxor__(self: Array, other: Union[int, bool, Array], /) -> Array:
<ide> @property
<ide> def dtype(self) -> Dtype:
<ide> """
<del> Array API compatible wrapper for :py:meth:`np.ndaray.dtype <numpy.ndarray.dtype>`.
<add> Array API compa... | 1 |
Ruby | Ruby | use hash#each to avoid a second hash lookup | 8fb838ed1690fb38ea3dfced1827ef5e7683cc3b | <ide><path>activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
<ide> def empty_insert_statement_value
<ide> def select(sql, name = nil) #:nodoc:
<ide> execute(sql, name).map do |row|
<ide> record = {}
<del> row.each_key do |key|
<del> if key.is_a?(S... | 1 |
Go | Go | remove hack for rhel6 kernels | 94334153b5090567f1d8320b0356bfea3ca07cb4 | <ide><path>oci/caps/utils.go
<ide> var capabilityList Capabilities
<ide>
<ide> func init() {
<ide> last := capability.CAP_LAST_CAP
<del> // hack for RHEL6 which has no /proc/sys/kernel/cap_last_cap
<del> if last == capability.Cap(63) {
<del> last = capability.CAP_BLOCK_SUSPEND
<del> }
<ide> for _, cap := range capa... | 1 |
Javascript | Javascript | resolve protocol http, https when not in lowercase | d00bdb9bb8b9b11bce900689c7e28cebd2eb0807 | <ide><path>Libraries/Linking/Linking.js
<ide> class Linking extends NativeEventEmitter {
<ide> * See https://facebook.github.io/react-native/docs/linking.html#openurl
<ide> */
<ide> openURL(url: string): Promise<any> {
<add> // Android Intent requires protocols http and https to be in lowercase.
<add> // ... | 1 |
Python | Python | remove local variable assignment | 1d0a64ccde04d738c2a19305d3a26732af10d095 | <ide><path>libcloud/compute/drivers/linode.py
<ide> def ex_rename_node(self, node, name):
<ide> "LinodeID": node.id,
<ide> "Label": name
<ide> }
<del> data = self.connection.request(API_ROOT, params=params)
<add> self.connection.request(API_ROOT, params=params)
<ide> ... | 1 |
Javascript | Javascript | remove line element from scatter controller | 03e9194be5e899e36ac077d8e33be6921d1eae2a | <ide><path>src/controllers/controller.line.js
<ide> import DatasetController from '../core/core.datasetController';
<ide> import {isNullOrUndef} from '../helpers';
<del>import {_limitValue, isNumber} from '../helpers/helpers.math';
<del>import {_lookupByKey} from '../helpers/helpers.collection';
<add>import {isNumber} ... | 4 |
Text | Text | remove beta statement | 763ff1ae8385784fa9e6d2a9fce207fed90b47b0 | <ide><path>docs/how-to-help-with-video-challenges.md
<ide> # How to help with video challenges
<ide>
<del>Video challenges are a new type of challenge in the freeCodeCamp curriculum. They are currently only in beta and not available yet on freeCodeCamp.org.
<add>Video challenges are a new type of challenge in the free... | 1 |
PHP | PHP | fix some docblocks | 45495066373ff6daa314f6550cab2b3de16f26f7 | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function keyParametersByArgument(array $dependencies, array $parameter
<ide> * Register a new resolving callback.
<ide> *
<ide> * @param string $abstract
<del> * @param \Closure $callback
<add> * @param \Closure|null $callback
<ide> * @... | 5 |
Ruby | Ruby | use foo/bar instead of foo_bar keys for fixtures | e0ef0936193491689724880599ae26a8f5c2b5a6 | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> class Fixtures
<ide>
<ide> @@all_cached_fixtures = Hash.new { |h,k| h[k] = {} }
<ide>
<del> def self.find_table_name(table_name) # :nodoc:
<add> def self.default_fixture_model_name(fixture_name) # :nodoc:
<ide> ActiveRecord::Base.pluralize_ta... | 1 |
PHP | PHP | add asssertion for session errors | dbaf3b10f1daa483a1db840c60ec95337c9a1f6e | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertSessionHasAll(array $bindings)
<ide> return $this;
<ide> }
<ide>
<add> /**
<add> * Assert that the session has the given errors.
<add> *
<add> * @param string|array $keys
<add> * @param mixed $f... | 1 |
Javascript | Javascript | remove some unused variables from src/ | 2e97c0d085d708959c632338ac37a50ddedaad38 | <ide><path>src/core/bidi.js
<ide> var bidi = PDFJS.bidi = (function bidiClosure() {
<ide> }
<ide> }
<ide>
<del> function mirrorGlyphs(c) {
<del> /*
<del> # BidiMirroring-1.txt
<del> 0028; 0029 # LEFT PARENTHESIS
<del> 0029; 0028 # RIGHT PARENTHESIS
<del> 003C; 003E # LESS-THAN SIGN
<del> ... | 17 |
Text | Text | add explanation of raw_text | 229033831aeeb4a78d9ebaa98ebfe1f06d6f9d28 | <ide><path>website/docs/api/data-formats.md
<ide> process that are used when you run [`spacy train`](/api/cli#train).
<ide> | `dropout` | The dropout rate. Defaults to `0.1`. ~~float~~ ... | 1 |
Python | Python | update version number | 33ccf40b76ddae790c34c294a133219e68efb946 | <ide><path>rest_framework/__init__.py
<ide> """
<ide>
<ide> __title__ = 'Django REST framework'
<del>__version__ = '2.4.3'
<add>__version__ = '3.0.0'
<ide> __author__ = 'Tom Christie'
<ide> __license__ = 'BSD 2-Clause'
<ide> __copyright__ = 'Copyright 2011-2014 Tom Christie' | 1 |
Javascript | Javascript | add comment explaining internalgetid | add809be2151a828f6a02fff393ad43b01486b28 | <ide><path>src/core/ReactID.js
<ide> function getID(node) {
<ide> }
<ide>
<ide> function internalGetID(node) {
<add> // If node is something like a window, document, or text node, none of
<add> // which support attributes or a .getAttribute method, gracefully return
<add> // the empty string, as if the attribute we... | 1 |
Ruby | Ruby | add comment to deprecate --env | 1b4993c9ce9c1ba7966819298336c56f6f3b8861 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install_args
<ide> def install
<ide> args = install_args.parse
<ide>
<add> if args.env.present?
<add> # TODO: enable for Homebrew 2.8.0 and use `replacement: false` for 2.9.0.
<add> # odeprecated "brew install --env", "`env :std` in specific formu... | 1 |
Javascript | Javascript | add resolvebyproperty to clevermerge | 67d2e227f42fc2789946dbaf59998cfed9249f82 | <ide><path>lib/ResolverFactory.js
<ide> const Factory = require("enhanced-resolve").ResolverFactory;
<ide> const { HookMap, SyncHook, SyncWaterfallHook } = require("tapable");
<ide> const {
<del> cleverMerge,
<ide> cachedCleverMerge,
<del> removeOperations
<add> removeOperations,
<add> resolveByProperty
<ide> } = requ... | 2 |
Javascript | Javascript | test bad useeffect return value with noop-renderer | 4ce89a58dac5287a2c7fc454e86562297e97a6d9 | <ide><path>packages/react-reconciler/src/__tests__/ReactHooks-test.internal.js
<ide> describe('ReactHooks', () => {
<ide> ReactTestRenderer.create(<App deps={undefined} />);
<ide> });
<ide>
<del> it('assumes useEffect clean-up function is either a function or undefined', () => {
<del> const {useLayoutEffect}... | 2 |
Javascript | Javascript | fix missed hmr events | 520c5a408332c4269bc6251f437c40fd2a1d4954 | <ide><path>packages/next/client/dev/error-overlay/hot-dev-client.js
<ide> import {
<ide> import stripAnsi from 'next/dist/compiled/strip-ansi'
<ide> import { addMessageListener } from './websocket'
<ide> import formatWebpackMessages from './format-webpack-messages'
<add>import Router from 'next/router'
<ide>
<ide> // ... | 1 |
PHP | PHP | remove scalar type | 67a38ba0fa2acfbd1f4af4bf7d462bb4419cc091 | <ide><path>src/Illuminate/Auth/Access/Response.php
<ide> class Response implements Arrayable
<ide> * @param mixed $code
<ide> * @return void
<ide> */
<del> public function __construct(bool $allowed, $message = '', $code = null)
<add> public function __construct($allowed, $message = '', $code = nu... | 1 |
PHP | PHP | use invalidargumentexception for exception | 95763459070fc8cc19c02b85593321828d88c8a0 | <ide><path>src/Routing/RouteBuilder.php
<ide> public static function parseShortString(string $routeString): array
<ide> $#ix';
<ide>
<ide> if (!preg_match($regex, $routeString, $matches)) {
<del> throw new RuntimeException("Could not parse `{$routeString}` route short string.");
<add> ... | 4 |
Go | Go | fix race conditions in overlay network driver | b64997ea82a6094c5d4642a577fa3806afa6e9dd | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> func (d *driver) CreateNetwork(id string, option map[string]interface{}, nInfo d
<ide> n.subnets = append(n.subnets, s)
<ide> }
<ide>
<add> d.Lock()
<add> defer d.Unlock()
<add> if d.networks[n.id] != nil {
<add> return fmt.Errorf("attempt to create overlay... | 1 |
Ruby | Ruby | add support for table aliasing | 752813016ed227ecfbe0bf69c92de2e2c3e7a988 | <ide><path>lib/arel/algebra/relations/utilities/compound.rb
<ide> module Arel
<ide> class Compound < Relation
<ide> attr_reader :relation
<ide> delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
<del> :column_for, :engine, :sources, :locked,
<add> :column_for... | 5 |
Javascript | Javascript | replace duplicate conditions by functions | b404aa56c0e776c9722017ca020f9d04c7aa6de2 | <ide><path>lib/path.js
<ide> function assertPath(path) {
<ide> }
<ide> }
<ide>
<add>function isPathSeparator(code) {
<add> return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
<add>}
<add>
<add>function isWindowsDeviceRoot(code) {
<add> return code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z ||
... | 1 |
Ruby | Ruby | fix some typos | 2c92f5b92fafe036b53cef36428bd8df1bdb99b7 | <ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb
<ide> def delegate(*methods)
<ide> #
<ide> # Reason is twofold: On one hand doing less calls is in general better.
<ide> # On the other hand it could be that the target has side-effects,
<del> # whereas conceptualy, from th... | 2 |
Mixed | Javascript | add `maxarraylength` option to set and map | 71ca6d7d6a3cd3e6e553350abbc40f0a331e964c | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/43576
<add> description: add support for `maxArrayLength` when inspecting `Set` and `Map`.
<ide> - version:
<ide> - v17.... | 3 |
Javascript | Javascript | fix regression in `unpipe()` | 8043ca79c556619741defe929d6a0c4b8e98922c | <ide><path>lib/_stream_readable.js
<ide> Readable.prototype.unpipe = function(dest) {
<ide> if (index === -1)
<ide> return this;
<ide>
<del> state.pipes.splice(i, 1);
<add> state.pipes.splice(index, 1);
<ide> state.pipesCount -= 1;
<ide> if (state.pipesCount === 1)
<ide> state.pipes = state.pipes[0]; | 1 |
Javascript | Javascript | fix free http-parser too early | 3fd13c6426b338196d138b0dc564020daed78bcd | <ide><path>lib/http.js
<ide> ClientRequest.prototype.onSocket = function(socket) {
<ide> socket.destroy();
<ide> }
<ide> freeParser();
<del> } else if (parser.incoming && parser.incoming.complete) {
<add> } else if (parser.incoming && parser.incoming.complete &&
<add> ... | 2 |
Go | Go | make setopts() a method of localvolume | a77b90c35e2ff95fa58aff1cd450db3ccbff36a6 | <ide><path>volume/local/local.go
<ide> func (r *Root) Create(name string, opts map[string]string) (volume.Volume, error
<ide> }
<ide>
<ide> if len(opts) != 0 {
<del> if err = setOpts(v, opts); err != nil {
<add> if err = v.setOpts(opts); err != nil {
<ide> return nil, err
<ide> }
<ide> var b []byte
<ide><pa... | 3 |
Ruby | Ruby | fix safe navigation bug | 3769bcc52338a4381d19443c18386f8261297fd7 | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "oldname" => oldname,
<ide> "aliases" => aliases,
<ide> "versions" => {
<del> "stable" => stable&.version.to_s,
<add> "stable" => stable&.version&.to_s,
<ide> "bottle" => bottle ? true : false,
<del> "devel" =>... | 1 |
PHP | PHP | capitalize sql operators | 144f541a2e109719f142703b61d1d5baa829917d | <ide><path>lib/Cake/Database/Expression/QueryExpression.php
<ide> protected function _parseCondition($field, $value, $types) {
<ide> if (in_array(strtolower(trim($operator)), ['in', 'not in']) || $typeMultiple) {
<ide> $type = $type ?: 'string';
<ide> $type .= $typeMultiple ? null : '[]';
<del> $operator = $o... | 1 |
PHP | PHP | add tests for exception bubble up | da5c182bc89d395b06f6c1279f63672212020731 | <ide><path>tests/TestCase/TestSuite/IntegrationTestCaseTest.php
<ide> public function testPostAndErrorHandling()
<ide> $this->assertResponseContains('<!DOCTYPE html>');
<ide> }
<ide>
<add> /**
<add> * Test that exceptions being thrown are handled correctly.
<add> *
<add> * @return void
<add>... | 2 |
Javascript | Javascript | add a basic integration test for glimmer | b8786badc7dd018487ac131283a4a462fcbd6e49 | <ide><path>packages/ember-application/lib/system/application-instance.js
<ide> import run from 'ember-metal/run_loop';
<ide> import { computed } from 'ember-metal/computed';
<ide> import DOMHelper from 'ember-htmlbars/system/dom-helper';
<ide> import { buildFakeRegistryWithDeprecations } from 'ember-runtime/mixins/regi... | 17 |
Python | Python | add the key to the gpu plugin | 781dfeef0cdeb4b059fa5ba826f7efa318c9082e | <ide><path>glances/plugins/glances_gpu.py
<ide> def get_device_stats(self):
<ide>
<ide> for index, device_handle in enumerate(self.device_handles):
<ide> device_stats = {}
<add> # Dictionnary key is the GPU_ID
<add> device_stats['key'] = self.get_key()
<add> # GPU i... | 1 |
Python | Python | correct error in smart unitest | c4ec6ecb8f64231a9b6897d6010f39d329d81bb0 | <ide><path>unitest.py
<ide> def test_016_hddsmart(self):
<ide> if not is_admin():
<ide> print("INFO: Not admin, SMART list should be empty")
<ide> assert len(stats_grab) == 0
<add> elif stats_grab == {}:
<add> print("INFO: Admin but SMART list is empty")
<add> ... | 1 |
Ruby | Ruby | form encode workflow branch | a6d3e3c47c1e5e346b92721868f45f55379a9295 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def fetch_artifact(user, repo, pr, dir,
<ide> base_url = "#{API_URL}/repos/#{user}/#{repo}"
<ide> pr_payload = open_api("#{base_url}/pulls/#{pr}", scopes: scopes)
<ide> pr_sha = pr_payload["head"]["sha"]
<del> pr_branch = pr_payload["head"]["ref"]
<add> ... | 1 |
Go | Go | pass plugingetter as part of swarm node config | fa784951ba0a29d436c60b7465167b5ef188d084 | <ide><path>daemon/cluster/executor/backend.go
<ide> type Backend interface {
<ide> GetRepository(context.Context, reference.NamedTagged, *types.AuthConfig) (distribution.Repository, bool, error)
<ide> LookupImage(name string) (*types.ImageInspect, error)
<ide> PluginManager() *plugin.Manager
<add> PluginGetter() *pl... | 3 |
Javascript | Javascript | add test for redirecting with too large response | 521444513969a08ec5ef943c41ba0812845ed4f9 | <ide><path>test/unit/adapters/http.js
<ide> describe('supports http with nodejs', function () {
<ide> });
<ide> });
<ide>
<add> it('should support max content length for redirected', function (done) {
<add> var str = Array(100000).join('ж');
<add>
<add> server = http.createServer(function (req, res) {
<ad... | 1 |
Java | Java | keep yaml entries that haven an empty array value | e51330e905473d2f193f667dbf4b93207a6454d3 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java
<ide> else if (value instanceof Collection) {
<ide> // Need a compound key
<ide> @SuppressWarnings("unchecked")
<ide> Collection<Object> collection = (Collection<Object>) value;
<del> int count = 0;
<del> ... | 3 |
Text | Text | improve regex for advanced-node | cd9be3c291f5b4220ace46ce7f59a1b6418c1498 | <ide><path>curriculum/challenges/english/06-quality-assurance/advanced-node-and-express/set-up-passport.md
<ide> Session and session secret should be correctly set up.
<ide> (data) => {
<ide> assert.match(
<ide> data,
<del> /secret:( |)process\.env(\.SESSION_SECRET|\[(?<q>"|')SESSION_SECRET\k<q... | 1 |
Javascript | Javascript | fix incorrect test | d92310050ca7bf0b33825d64e052f9a8809c3e9e | <ide><path>test/data/jquery-1.9.1.js
<ide> jQuery.each( {
<ide> related = event.relatedTarget,
<ide> handleObj = event.handleObj;
<ide>
<del> // For mouseenter/leave call the handler if related is outside the target.
<add> // For mousenter/leave call the handler if related is outside the target.
<ide> /... | 2 |
Ruby | Ruby | call an inspector for inspector | 5fd2fffcf6fc20e47e16924fd703f281b70e35a9 | <ide><path>railties/lib/commands/process/inspector.rb
<ide> require 'optparse'
<ide>
<del>if RUBY_PLATFORM =~ /mswin32/ then abort("Reaper is only for Unix") end
<add>if RUBY_PLATFORM =~ /mswin32/ then abort("Inspector is only for Unix") end
<ide>
<ide> OPTIONS = {
<ide> :pid_path => File.expand_path(RAILS_ROOT + '... | 1 |
Ruby | Ruby | remove unused require `benchmark` | 77b2e46df41574f9fb5f39eca6527c1dfe1cddf9 | <ide><path>activesupport/lib/active_support/cache.rb
<del>require "benchmark"
<ide> require "zlib"
<ide> require "active_support/core_ext/array/extract_options"
<ide> require "active_support/core_ext/array/wrap"
<del>require "active_support/core_ext/benchmark"
<ide> require "active_support/core_ext/module/attribute_acc... | 1 |
Javascript | Javascript | fix 4 lint errors | e1146b64adf3d9408e8679d06136aab6db6978f8 | <ide><path>src/core.js
<ide> function getPdf(arg, callback) {
<ide> params = { url: arg };
<ide>
<ide> var xhr = new XMLHttpRequest();
<del>
<add>
<ide> xhr.open('GET', params.url);
<del>
<add>
<ide> var headers = params.headers;
<ide> if (headers) {
<ide> for (var property in headers) {
<ide> ... | 1 |
Javascript | Javascript | inline transpile call | e6ae7d836dd6a778b2001d67b9459b087f790c39 | <ide><path>build/build.js
<ide> const transpileBabelPaths = require('./lib/transpile-babel-paths')
<ide> const transpileCoffeeScriptPaths = require('./lib/transpile-coffee-script-paths')
<ide>
<del>function transpile () {
<del> transpileBabelPaths()
<del> transpileCoffeeScriptPaths()
<del>}
<del>
<del>transpile()
<a... | 1 |
Javascript | Javascript | use fixture files | e1c25c959c10f716e9ccbaeef4a8e1eaaa509f4e | <ide><path>node-tests/blueprints/helper-test-test.js
<ide> describe('Blueprint: helper-test', function() {
<ide> it('helper-test foo/bar-baz --integration', function() {
<ide> return emberGenerateDestroy(['helper-test', 'foo/bar-baz', '--integration'], _file => {
<ide> expect(_file('tests/integr... | 3 |
Text | Text | add v3.11.0-beta.2 to changelog | 16f9cd2905865c112e05859b6c56e68ac9cf1497 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.11.0-beta.2 (June 3, 2019)
<add>
<add>- [#18064](https://github.com/emberjs/ember.js/pull/18064) [BUGFIX] Fix 'hasAttribute is not a function' when jQuery is disabled
<add>
<ide> ### v3.11.0-beta.1 (May 13, 2019)
<ide>
<ide> - [#17842](https://github.c... | 1 |
Java | Java | fix cyclical package dependency | 70b0b97b54d545118696b6fe279b57044f739e92 | <add><path>spring-web/src/main/java/org/springframework/web/method/ControllerAdviceBean.java
<del><path>spring-web/src/main/java/org/springframework/web/bind/support/ControllerAdviceBean.java
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<... | 4 |
Text | Text | improve release guide | 7688a8bd1fb930cc8ebebeea92de0124fca4223b | <ide><path>doc/releases.md
<ide> were first added in this version. The relevant commits should already include
<ide> `sed -i "s/REPLACEME/$VERSION/g" doc/api/*.md` or
<ide> `perl -pi -e "s/REPLACEME/$VERSION/g" doc/api/*.md`.
<ide>
<add>*Note*: `$VERSION` should be prefixed with a `v`
<add>
<ide> If this release inclu... | 1 |
Mixed | Ruby | include default column limits in schema.rb | 2c76793f087e212ff4c6d835656a9a95c8bfeaa5 | <ide><path>activerecord/CHANGELOG.md
<add>* Include default column limits in schema.rb. Allows defaults to be changed
<add> in the future without affecting old migrations that assumed old defaults.
<add>
<add> *Jeremy Kemper*
<add>
<ide> * MySQL: schema.rb now includes TEXT and BLOB column limits.
<ide>
<ide... | 3 |
Ruby | Ruby | make symbol reference in docs appear as code | 66844ece691d3821de8e6993e31e147df02b4b3b | <ide><path>railties/lib/rails/engine.rb
<ide> module Rails
<ide> # There are some places where an Engine's name is used:
<ide> #
<ide> # * routes: when you mount an Engine with <tt>mount(MyEngine::Engine => '/my_engine')</tt>,
<del> # it's used as default :as option
<add> # it's used as default <tt>:as</tt>... | 1 |
PHP | PHP | parse url key in redis configuration | c88de24605e68de0a411193c99d364d85af0417e | <ide><path>src/Illuminate/Redis/RedisManager.php
<ide> use InvalidArgumentException;
<ide> use Illuminate\Contracts\Redis\Factory;
<ide> use Illuminate\Redis\Connections\Connection;
<add>use Illuminate\Support\ConfigurationUrlParser;
<ide>
<ide> /**
<ide> * @mixin \Illuminate\Redis\Connections\Connection
<ide> public... | 1 |
Text | Text | add syntax highlighting to the bibtex in readme | 976e9afeced6e0e20124a365ae2d100b5b8ef902 | <ide><path>README.md
<ide> for batch in train_data:
<ide> ## Citation
<ide>
<ide> We now have a paper you can cite for the 🤗 Transformers library:
<del>```
<add>```bibtex
<ide> @article{Wolf2019HuggingFacesTS,
<ide> title={HuggingFace's Transformers: State-of-the-art Natural Language Processing},
<ide> author={Th... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.