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
Go
Go
add more overlay tests and benchmarks
246e99303195b6ce4c357ceb5925990aa1890288
<ide><path>daemon/graphdriver/overlay/overlay.go <ide> import ( <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/docker/docker/pkg/archive" <del> "github.com/docker/docker/pkg/chrootarchive" <ide> "github.com/docker/docker/pkg/idtools" <ide> <ide> "github.com/docker/docker/pkg/mount" <i...
2
Javascript
Javascript
fix socket reuse with agent
3e02636bcbf59517e25ad5dd2ebb954d5de95b81
<ide><path>lib/_http_agent.js <ide> Agent.prototype.addRequest = function addRequest(req, options, port/*legacy*/, <ide> var socket = this.freeSockets[name].shift(); <ide> // Assign the handle a new asyncId and run any init() hooks. <ide> socket._handle.asyncReset(); <add> socket[async_id_symbol] = socke...
2
Javascript
Javascript
remove redundant code in _defertoconnect
79d2c4e1bf13f81af62d6eb2228bb988f709b1f9
<ide><path>lib/_http_client.js <ide> ClientRequest.prototype._deferToConnect = function(method, arguments_, cb) { <ide> // in the future (when a socket gets assigned out of the pool and is <ide> // eventually writable). <ide> var self = this; <add> <add> function callSocketMethod() { <add> if (method) <add> ...
1
PHP
PHP
apply fixes from styleci
c2d60b5ac186af29219549daf0806b4c9cdc4a21
<ide><path>src/Illuminate/Support/Stringable.php <ide> public function basename($suffix = '') <ide> { <ide> return new static(basename($this->value, $suffix)); <ide> } <del> <add> <ide> /** <ide> * Get the basename of the class path. <ide> * <ide><path>tests/Support/SupportStringableTe...
2
Javascript
Javascript
fix ie8 bug during unitless css props creation
123ed1f4425230aa336a7ea616064e8cdbd9dfd9
<ide><path>src/browser/dom/CSSProperty.js <ide> function prefixKey(prefix, key) { <ide> * of vendor prefixes. <ide> */ <ide> var prefixes = ['Webkit', 'ms', 'Moz', 'O']; <del>for (var k in isUnitlessNumber) { <add> <add>// Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an <add>// infinite l...
1
Python
Python
kill the demon spawn
cca75e788485e8a2a1c44a445c6aba0fb2dfaf56
<ide><path>examples/run_squad.py <ide> def evaluate(args, model, tokenizer, prefix=""): <ide> eval_feature = features[example_index.item()] <ide> unique_id = int(eval_feature.unique_id) <ide> <del> result = SquadResult([to_list(output[i]) for output in outputs] + [unique_id]) <add> ...
2
PHP
PHP
clarify doc block
0d518a1d426406dcc926b54e0c526efa54410068
<ide><path>src/View/Helper/FormHelper.php <ide> public function allInputs(array $fields = [], array $options = []) { <ide> } <ide> <ide> /** <del> * Generate a set of inputs for `$fields` <add> * Generate a set of inputs for `$fields` wrapped in a fieldset element. <ide> * <ide> * You can customize individual input...
1
Text
Text
remove coverage badge from readme
0d5e4c7e096c640419ea0aadb0d09bb9e9a7ddc8
<ide><path>README.md <del># [React](https://reactjs.org/) &middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![Coverage Status](ht...
1
Javascript
Javascript
fix typo in prefer-primordials.js
0dce87e2790cd9a1c3d6874fdb85c2b09d2d2dfb
<ide><path>tools/eslint-rules/prefer-primordials.js <ide> /** <ide> * @fileoverview We shouldn't use global built-in object for security and <del> * performance reason. This linter rule reports replacable codes <add> * performance reason. This linter rule reports replaceable codes <ide> * ...
1
Python
Python
fix test_f2py so it runs correctly in runtests.py
6a871df50947c4ebda79a966fba09b5336e1e061
<ide><path>numpy/tests/test_scripts.py <ide> def test_f2py(): <ide> assert_equal(stdout.strip(), asbytes('2')) <ide> success = True <ide> break <del> except OSError: <add> except: <ide> pass <ide> assert_(success, "Warning: ne...
1
Python
Python
ignore typeerror at interpreter shutdown
b78b84a90e77c1a19da8ab0d950aa3ca27752b41
<ide><path>celery/utils/threads.py <ide> def run(self): <ide> self.on_crash("%r crashed: %r", self.name, exc, exc_info=True) <ide> # exiting by normal means does not work here, so force exit. <ide> os._exit(1) <add> try: <add> self._is_stopped.set() <add...
1
Java
Java
expose reactinstancemanager from reactrootview
dc16150bae19683a5e8338faa7e004b83a9cdb3c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java <ide> public void setRootViewTag(int rootViewTag) { <ide> mRootViewTag = rootViewTag; <ide> } <ide> <add> @Nullable <add> public ReactInstanceManager getReactInstanceManager() { <add> return mReactInstanceManager; <add> } <add> <id...
1
Ruby
Ruby
clear the correct query cache
fa7efca553e325b2aabb087a4eddf4560c356094
<ide><path>activerecord/lib/active_record/query_cache.rb <ide> def self.run <ide> enabled = connection.query_cache_enabled <ide> connection.enable_query_cache! <ide> <del> enabled <add> [connection, enabled] <ide> end <ide> <del> def self.complete(enabled) <del> ActiveRecord::B...
2
Text
Text
add 2.13.3 to changelog.md
5291c74d5ec0125161e8b7c72d7c6b0688efb4b2
<ide><path>CHANGELOG.md <ide> - [#15178](https://github.com/emberjs/ember.js/pull/15178) Refactor route to lookup controller for QPs. <ide> - [#15129](https://github.com/emberjs/ember.js/pull/15129) Fix access to service:-document in ember-engines <ide> <add>### 2.13.3 (May 31, 2017) <add> <add>- [#15284](https://gith...
1
Go
Go
fix a race condition in bufreader
d52451bcf887790df5a6a7cbbc7305747535eb11
<ide><path>utils.go <ide> func (r *bufReader) drain() { <ide> buf := make([]byte, 1024) <ide> for { <ide> n, err := r.reader.Read(buf) <add> r.l.Lock() <ide> if err != nil { <ide> r.err = err <ide> } else { <ide> r.buf.Write(buf[0:n]) <ide> } <del> r.l.Lock() <ide> r.wait.Signal() <ide> r.l.Unlock...
1
Ruby
Ruby
enhance docs for update_attribute [ci-skip]
40847a7831a2bccaeb04b796c5534418d8b3c334
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def becomes!(klass) <ide> # <ide> # This method raises an +ActiveRecord::ActiveRecordError+ if the <ide> # attribute is marked as readonly. <add> # <add> # See also +update_column+. <ide> def update_attribute(name, value) <ide> ...
1
PHP
PHP
update welcome view
5396be6ef26aebe99c1c5ac6ec944c349d13f371
<ide><path>resources/views/welcome.blade.php <ide> </div> <ide> <ide> <div class="ml-4 text-center text-sm text-gray-500 sm:text-right sm:ml-0"> <del> Build v{{ Illuminate\Foundation\Application::VERSION }} <add> Laravel v{{ Illumina...
1
PHP
PHP
add flag for select type of create controller
7971ecc1dd607f4b1ca16c2a4eb08ba05e64c0c6
<ide><path>src/Illuminate/Foundation/Console/ModelMakeCommand.php <ide> public function fire() <ide> <ide> if ($this->option('controller')) { <ide> $controller = Str::studly(class_basename($this->argument('name'))); <del> <del> $this->call('make:controller', ['name' => "{$con...
1
Go
Go
remove commonunixconfig type
9d9679975fad96a28b7c296df3975432f32701ba
<ide><path>daemon/config/config_common_unix.go <del>// +build linux freebsd <del> <del>package config // import "github.com/docker/docker/daemon/config" <del> <del>import ( <del> "github.com/docker/docker/api/types" <del>) <del> <del>// CommonUnixConfig defines configuration of a docker daemon that is <del>// common ac...
4
Ruby
Ruby
move habtm translation to a builder class
0091808a081e85d4f44631984fa8a54ddf345868
<ide><path>activerecord/lib/active_record/associations.rb <ide> module Builder #:nodoc: <ide> autoload :HasOne, 'active_record/associations/builder/has_one' <ide> autoload :HasMany, 'active_record/associations/builder/has_many' <ide> autoload :HasAndBelongsToMany, 'active_reco...
2
PHP
PHP
remove useless $app argument
babce912cb57699094f35c42cb133dffedb95675
<ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php <ide> protected function registerAppNameCommand() <ide> */ <ide> protected function registerChangesCommand() <ide> { <del> $this->app->bindShared('command.changes', function($app) <add> $this->app->bindShared('command.changes', function() <...
1
Python
Python
fix gpu usage in language
2713041571f9a594ad27ba428283f69e8c2c55dd
<ide><path>spacy/language.py <ide> from contextlib import contextmanager <ide> import dill <ide> <add>import numpy <add>from thinc.neural import Model <add>from thinc.neural.ops import NumpyOps, CupyOps <add> <ide> from .tokenizer import Tokenizer <ide> from .vocab import Vocab <ide> from .tagger import Tagger <ide> d...
1
Ruby
Ruby
fix spelling in hasoneassociationstest
a0b8ac3eb240cf0ad5a72ac9da1f11c8990ff646
<ide><path>activerecord/test/cases/associations/has_one_associations_test.rb <ide> def test_has_one_with_touch_option_on_empty_update <ide> class SpecialBook < ActiveRecord::Base <ide> self.table_name = "books" <ide> belongs_to :author, class_name: "SpecialAuthor" <del> has_one :subscription, class_name: "...
1
Python
Python
add a flag to specify distribution strategies.
79b57a3f6ffbfba181b904f3c571d7acc45ed494
<ide><path>official/keras_application_models/benchmark_main.py <ide> def run_keras_model_benchmark(_): <ide> # Use distribution strategy <ide> if FLAGS.dist_strat: <ide> distribution = distribution_utils.get_distribution_strategy( <add> distribution_strategy=FLAGS.distribution_strategy, <ide> num...
11
PHP
PHP
fix inconsistent storage of salt value
7ebde9d83be4336fd87321f560e71f07802379f6
<ide><path>tests/TestCase/Auth/DigestAuthenticateTest.php <ide> <ide> use Cake\Auth\DigestAuthenticate; <ide> use Cake\Controller\ComponentRegistry; <del>use Cake\Core\Configure; <ide> use Cake\Http\Exception\UnauthorizedException; <ide> use Cake\Http\Response; <ide> use Cake\Http\ServerRequest; <ide> use Cake\I18n\Ti...
1
Javascript
Javascript
remove use of this._readablestate
90ddb46d522c37d2bc2eb68a6e0c9d52f9fbba42
<ide><path>lib/crypto.js <ide> Hash.prototype._transform = function(chunk, encoding, callback) { <ide> }; <ide> <ide> Hash.prototype._flush = function(callback) { <del> var encoding = this._readableState.encoding || 'buffer'; <del> this.push(this._handle.digest(encoding), encoding); <add> this.push(this._handle.dig...
1
Javascript
Javascript
use standard naming convention for location
35af16591ee00ac74568a9a1ebc859b04bf02658
<ide><path>packages/ember-routing/lib/location/api.js <ide> export default { <ide> @since 1.4.0 <ide> */ <ide> _getHash: function () { <del> return getHash(this._location || this.location); <add> return getHash(this.location); <ide> } <ide> };
1
PHP
PHP
remove outdated information
2937ee514a54b1f5ff3f1f7d9f6dcf183b5b1954
<ide><path>src/Error/ErrorHandler.php <ide> public function __construct($options = []) <ide> * <ide> * Template method of BaseErrorHandler. <ide> * <del> * Only when debug > 2 will a formatted error be displayed. <del> * <ide> * @param array $error An array of error data. <ide> * @param...
1
Python
Python
add repeat to datasets.
ae86bfd9ed457514662c04c4f10f7aaf536d85ea
<ide><path>official/keras_application_models/dataset.py <ide> def __init__(self, batch_size): <ide> y_train = tf.keras.utils.to_categorical(y_train, self.num_classes) <ide> y_test = tf.keras.utils.to_categorical(y_test, self.num_classes) <ide> self.train_dataset = tf.data.Dataset.from_tensor_slices( <del> ...
1
Text
Text
add note to upgrade guide
509b43ba80e467128ef120a6a2b9548a48bd6adf
<ide><path>upgrade.md <ide> - Remove call to `redirectIfTrailingSlash` in `bootstrap/start.php` file. <ide> - Edit `app/config/app.php`; in `aliases` change `'Controller' => 'Illuminate\Routing\Controllers\Controller',` <ide> to use `Illuminate\Routing\Controller` <add>- If you are overriding missingMethod in your co...
1
Javascript
Javascript
fix merge issue
dde6bda9516b95649f00ad6b406fcd6cfd911090
<ide><path>test/Stats.test.js <ide> Object { <ide> ], <ide> "emitted": true, <ide> "name": "entryB.js", <del> "size": 2035, <add> "size": 2170, <ide> }, <ide> ], <ide> "assetsByChunkName": Object {
1
Python
Python
add an extrace evaluate check
b791677cfe67997158be74b1196380f4e115a89b
<ide><path>keras/engine/training_test.py <ide> def test_metric_state_reset_between_test_on_batch_and_evaluate(self): <ide> x_test = np.random.random((10, 4)) <ide> y_test = np.random.random((10, 1)) <ide> loss, acc = model.test_on_batch(x_test[:2],y_test[:2]) <del> model.evaluate(x_test, y_test) <add> ...
1
Text
Text
remove old comments about suppressing warnings
9cc4dadb0b38ae1f686e16aebee97fc633fc6347
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> You can invoke `test_jdbcmysql`, `test_jdbcsqlite3` or `test_jdbcpostgresql` als <ide> <ide> The test suite runs with warnings enabled. Ideally, Ruby on Rails should issue no warnings, but there may be a few, as well as some from third-party libraries. Pl...
1
Text
Text
move changelog entry to the top
2dc0918718c49e9e59bef47025f9bb465e44ddb7
<ide><path>actionview/CHANGELOG.md <del>* Changed partial rendering with a collection to allow collections which <del> implement `to_a`. <del> <del> Extracting the collection option had an optimization to avoid unnecessary <del> queries of ActiveRecord Relations by calling `#to_ary` on the given <del> col...
1
Python
Python
add a comment about the _normalize_two_args trick
c5580134c71b68c0bd24104a6393e3cea9cb25ce
<ide><path>numpy/_array_api/_array_object.py <ide> def _normalize_two_args(x1, x2): <ide> broadcasting, so the resulting shape is the same, but this prevents NumPy <ide> from not promoting the dtype. <ide> """ <add> # Another option would be to use signature=(x1.dtype, x2.dtype, None), <a...
1
Python
Python
fix warning in _obtain_input_shape
3f9c0a30ab6a024c9b6fbd83f4ae9119c93718b9
<ide><path>keras/applications/imagenet_utils.py <ide> def _obtain_input_shape(input_shape, <ide> """ <ide> if weights != 'imagenet' and input_shape is not None and len(input_shape) == 3: <ide> if data_format == 'channels_first': <del> if input_shape[0] != 3 or input_shape[0] != 1: <add> ...
1
Python
Python
fix invalid type annotation
ef16c53859b578c6fb3c817d141fea7a9c9aca8e
<ide><path>libcloud/common/types.py <ide> def tostring(cls, value): <ide> <ide> @classmethod <ide> def fromstring(cls, value): <del> # type: (str) -> str <add> # type: (str) -> Optional[str] <ide> """Return the state object attribute that matches the string <ide> :param str value:...
1
Javascript
Javascript
convert vertex colors to linear from srgb
98f64b0030da65117057190fb871c6be9baab811
<ide><path>examples/jsm/loaders/OBJLoader.js <ide> import { <ide> MeshPhongMaterial, <ide> Points, <ide> PointsMaterial, <del> Vector3 <add> Vector3, <add> Color <ide> } from 'three'; <ide> <ide> // o object_name | g group_name <ide> const _vC = new Vector3(); <ide> const _ab = new Vector3(); <ide> const _cb = new ...
1
Javascript
Javascript
remove unnecessary `typeof` checks
6d3e2628809b94b334551344b4f1fe1c79c16e5b
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js <ide> function commitDetachRef(current: Fiber) { <ide> // deletion, so don't let them throw. Host-originating errors should <ide> // interrupt deletion, so it's okay <ide> function commitUnmount(current: Fiber): void { <del> if (typeof onCommitUnmount ==...
3
Javascript
Javascript
change logic for `platformsupportsupdates
8307fb84265509bcaaed99f9c6b8b452f9a56bfb
<ide><path>src/auto-update-manager.js <ide> export default class AutoUpdateManager { <ide> } <ide> <ide> platformSupportsUpdates () { <del> return this.getReleaseChannel() == 'stable' && (this.getPlatform() === 'darwin' || this.getPlatform() === 'win32') <add> return this.getReleaseChannel() !== 'dev' && thi...
1
Java
Java
ensure mutable headers for jetty webflux request
b732ff349509d2b174978c71fe522ee6aa6b57a8
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/JettyHeadersAdapter.java <ide> */ <ide> class JettyHeadersAdapter implements MultiValueMap<String, String> { <ide> <del> private final HttpFields headers; <add> private final HttpFields.Mutable headers; <ide> <ide> <del> JettyHeadersAdapte...
2
Javascript
Javascript
make tls test more rigorous
3c29adb84fac00dfc16c51725e4832789610c6a7
<ide><path>test/parallel/test-tls-connect-no-host.js <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const tls = require('tls'); <del> <ide> const assert = require('assert'); <ide> <ide> const cert = fixtures.readSync('test_cert.pem'); <ide> const key = fixtures.readSync('test_key.pem'...
1
PHP
PHP
update typehints for log/
ff7aeceb7a52e77232412317e67e0091fe5b7e13
<ide><path>src/Log/Engine/FileLog.php <ide> public function __construct(array $config = []) <ide> * @param array $context Additional information about the logged message <ide> * @return void <ide> */ <del> public function log($level, $message, array $context = []) <add> public function log($level, ...
3
Java
Java
fix textinput crash in non-fabric
030d2c1931fb9ff97f682343914503a1c359e1c4
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java <ide> public FabricViewStateManager getFabricViewStateManager() { <ide> */ <ide> private void updateCachedSpannable(boolean resetStyles) { <ide> // Noops in non-Fabric <del> if (getFabricViewStateManager() == null) {...
1
Javascript
Javascript
fix default `into` for nested routes
bf3f851ecbe3a22963975d5f3f2cb4505ed40c6f
<ide><path>packages/ember-application/lib/system/application.js <ide> Ember.Application.reopenClass({ <ide> buildContainer: function(namespace) { <ide> var container = new Ember.Container(); <ide> Ember.Container.defaultContainer = container; <del> var ApplicationView = Ember.View.extend(); <ide> <ide> ...
4
Text
Text
remove capistrano from asset pipeline guide
730046e66722cc2ad667c60e2d1b948a0c317936
<ide><path>guides/source/asset_pipeline.md <ide> The command is: <ide> $ RAILS_ENV=production rails assets:precompile <ide> ``` <ide> <del>Capistrano (v2.15.1 and above) includes a recipe to handle this in deployment. <del>Add the following line to `Capfile`: <del> <del>```ruby <del># Capistrano version 2 <del>load 'd...
1
Go
Go
fix path issues in docker cp tests
c5b312dcf5efa4f91dee59f4b701ea7a26a6d41e
<ide><path>integration-cli/docker_cli_cp_test.go <ide> import ( <ide> "io/ioutil" <ide> "os" <ide> "os/exec" <add> "path" <ide> "path/filepath" <ide> "testing" <ide> ) <ide> func TestCpGarbagePath(t *testing.T) { <ide> tmpname := filepath.Join(tmpdir, cpTestName) <ide> defer os.RemoveAll(tmpdir) <ide> <del> pat...
1
Javascript
Javascript
remove uuid from bufferattribute etc
366450a2e98642a1bb8362eee4dcc9ae9743b27c
<ide><path>src/core/BufferAttribute.js <ide> import { Vector4 } from '../math/Vector4.js'; <ide> import { Vector3 } from '../math/Vector3.js'; <ide> import { Vector2 } from '../math/Vector2.js'; <ide> import { Color } from '../math/Color.js'; <del>import { _Math } from '../math/Math.js'; <ide> <ide> /** <ide> * @auth...
3
Go
Go
fix errors when no body
ab0d0a28a8085255558b5ee7be978d667f44def9
<ide><path>commands.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> if err != nil { <ide> return err <ide> } <del> return fmt.Errorf("error: %s", body) <add> if len(body) == 0 { <add> return fmt.Errorf("Error: %s", http.StatusText(resp.StatusCode)) <add> } <add> return fmt.Errorf("Err...
1
PHP
PHP
apply fixes from styleci
6e0fb37ca7d432e95d1386bdb1dab56b9b36ffd7
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithExceptionHandling.php <ide> protected function withoutExceptionHandling(array $except = []) <ide> $this->originalExceptionHandler = app(ExceptionHandler::class); <ide> } <ide> <del> $this->app->instance(ExceptionHandler::clas...
1
Ruby
Ruby
match the controller and path names defensively
c00e7aa919624e4f26a6bc0a924892a87dbd91c0
<ide><path>actionpack/lib/action_dispatch/routing/inspector.rb <ide> def action <ide> end <ide> <ide> def internal? <del> controller =~ %r{^rails/info|^rails/welcome} || path =~ %r{^#{Rails.application.config.assets.prefix}} <add> controller =~ %r{\Arails/(info|welcome)} || path =~ %r{\A#{Rai...
1
Go
Go
return proper exit code on builder panic
385f1174ff6905243c51d97d641d815a520229ff
<ide><path>cli/command/image/build.go <ide> func runBuild(dockerCli *command.DockerCli, options buildOptions) error { <ide> } <ide> return cli.StatusError{Status: jerr.Message, StatusCode: jerr.Code} <ide> } <add> return err <ide> } <ide> <ide> // Windows: show error message about modified file permissions ...
1
Ruby
Ruby
add missing files
62ac3279e87c1c9a9bf669d1cc98b660d06b7667
<ide><path>activesupport/lib/active_support/core_ext/date_time/conversions.rb <add>module ActiveSupport #:nodoc: <add> module CoreExtensions #:nodoc: <add> module DateTime #:nodoc: <add> # Getting datetimes in different convenient string representations and other objects <add> module Conversions <add> ...
2
Ruby
Ruby
fix typo in `allow_failure` argument [ci skip]
116e2c67f5ca4518f2db80b761cc3d5f4993b12a
<ide><path>railties/test/isolation/abstract_unit.rb <ide> def engine(name) <ide> <ide> # Invoke a bin/rails command inside the app <ide> # <del> # allow_failures:: true to return normally if the command exits with <add> # allow_failure:: true to return normally if the command exits with <ide> # a n...
1
Ruby
Ruby
remove duplicate part from deprecation warning
63316b7b74107345def7bddf719125f309d734eb
<ide><path>activerecord/lib/active_record/database_configurations/database_config.rb <ide> class DatabaseConfigurations <ide> # as this is the parent class for the types of database configuration objects. <ide> class DatabaseConfig # :nodoc: <ide> attr_reader :env_name, :name, :spec_name <del> deprec...
2
Python
Python
move np.testing.dec tests to test_deprecations.py
b05294c169438d4e230374f0e9677682d84c0094
<ide><path>numpy/core/tests/test_deprecations.py <ide> <ide> import numpy as np <ide> from numpy.testing import ( <del> assert_raises, assert_warns, assert_, assert_array_equal <add> assert_raises, assert_warns, assert_, assert_array_equal, SkipTest, KnownFailureException <ide> ) <ide> <ide> from numpy.core...
2
Ruby
Ruby
move some exceptions
0225f07ebadad87d3286c65ae705e5c78e34cb20
<ide><path>Library/Homebrew/exceptions.rb <add>class UsageError <RuntimeError; end <add>class FormulaUnspecifiedError <UsageError; end <add>class KegUnspecifiedError <UsageError; end <ide> <del>class NotAKegError < RuntimeError <add>class MultipleVersionsInstalledError <RuntimeError <add> attr :name <add> <add> def ...
2
PHP
PHP
update phpdocs for querybuilder
250b25d6404a6b3c8f933bae63f6d194188f863f
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> class Builder <ide> /** <ide> * The database connection instance. <ide> * <del> * @var \Illuminate\Database\Connection <add> * @var \Illuminate\Database\ConnectionInterface <ide> */ <ide> public $connection; <ide> <ide> public fu...
1
Ruby
Ruby
optimize logger.debug calling
99c98c80348d37109ec672801f36c79014e5d3bf
<ide><path>actioncable/lib/action_cable/server/broadcasting.rb <ide> def initialize(server, broadcasting, coder:) <ide> end <ide> <ide> def broadcast(message) <del> server.logger.debug "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect}" <add> server.logger.debu...
1
Javascript
Javascript
pass object from array as value to _fallback
d2d5f49953c130253c06621476e0eecdff4544d0
<ide><path>src/helpers/helpers.config.js <ide> function resolveFallback(fallback, prop, value) { <ide> const getScope = (key, parent) => key === true ? parent <ide> : typeof key === 'string' ? resolveObjectKey(parent, key) : undefined; <ide> <del>function addScopes(set, parentScopes, key, parentFallback) { <add>func...
2
Text
Text
use svg instead of png to get better image quality
c3139dcc1d485bc71bbc10929529dba2ec0a5a3e
<ide><path>README.md <ide> ![Video.js logo](https://i.cloudup.com/C3nAUZ-l4c.png) <ide> <del># [Video.js - HTML5 Video Player](http://videojs.com) [![Build Status](https://travis-ci.org/videojs/video.js.png?branch=master)](https://travis-ci.org/videojs/video.js) <add># [Video.js - HTML5 Video Player](http://videojs.c...
1
PHP
PHP
improve error message
f71bb0414e9f198720b5572abc89d86cfc910b72
<ide><path>src/Http/ServerRequest.php <ide> public function __call($name, $params) <ide> <ide> return $this->is(...$params); <ide> } <del> throw new BadMethodCallException(sprintf('Method %s does not exist', $name)); <add> throw new BadMethodCallException(sprintf('Method "%s()" does n...
1
Go
Go
fix absolute checks
49c1b51ae22e54edc2e13f3195583e47b987fc15
<ide><path>api/client/cp.go <ide> import ( <ide> Cli "github.com/docker/docker/cli" <ide> "github.com/docker/docker/pkg/archive" <ide> flag "github.com/docker/docker/pkg/mflag" <add> "github.com/docker/docker/pkg/system" <ide> ) <ide> <ide> type copyDirection int <ide> func (cli *DockerCli) CmdCp(args ...string) er...
5
PHP
PHP
fix bug in core script
98ea9ac41f26164eef39ee4d36da11658220e117
<ide><path>laravel/core.php <ide> | <ide> */ <ide> <del>if ( ! is_null($environment)) <add>if (isset($environment)) <ide> { <ide> Request::set_env($environment); <ide> }
1
Python
Python
resolve pr comments
dfce40969141eb037e8af3ed64e490a876386bf5
<ide><path>examples/run_summarization_finetuning.py <ide> """ Finetuning seq2seq models for sequence generation.""" <ide> <ide> import argparse <del>from collections import deque <add>import functools <ide> import logging <ide> import os <del>import pickle <ide> import random <ide> import sys <ide> <ide> from torch.o...
7
Python
Python
fix failure to return monic polynomials from roots
0739b6b0379deecac18811af27966d4515c2ff7c
<ide><path>numpy/polynomial/polytemplate.py <ide> def fromroots(roots, domain=$domain, window=$domain) : <ide> ---------- <ide> roots : array_like <ide> List of roots. <add> domain : {array_like, None}, optional <add> Domain for the resulting instance of $name. If none the ...
2
Python
Python
remove warning when scikit-learn isn't available
5565dcdd354f24a118befebb8673bf58dc2f0f51
<ide><path>src/transformers/data/metrics/__init__.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> <del>import logging <del> <del> <del>logger = logging.getLogger(__name__) <del> <ide> try: <ide> from scipy.stats import pearsonr, spearmanr ...
1
Javascript
Javascript
remove pipe if the dest emits error
49ea653363da50c76a099839b4af555cec1d06c8
<ide><path>lib/_stream_readable.js <ide> Readable.prototype.pipe = function(dest, pipeOpts) { <ide> ondrain(); <ide> }); <ide> <add> // if the dest has an error, then stop piping into it. <add> // however, don't suppress the throwing behavior for this. <add> dest.once('error', function(er) { <add> src.un...
2
Javascript
Javascript
check gruntfile and tasks for code style
85d4c0133b5369b54bc9c4250989214bb2d45700
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> } <ide> }, <ide> jscs: { <del> src: "src/**/*.js" <add> src: "src/**/*.js", <add> gruntfile: "Gruntfile.js", <add> tasks: "build/tasks/*.js" <ide> }, <ide> testswarm: { <ide> tests: "ajax attributes callbacks core css data de...
1
Python
Python
handle invalid date parsing in webserver views.
9e25bc211f6f7bba1aff133d21fe3865dabda53d
<ide><path>airflow/www/views.py <ide> def get_date_time_num_runs_dag_runs_form_data(www_request, session, dag): <ide> """Get Execution Data, Base Date & Number of runs from a Request""" <ide> date_time = www_request.args.get('execution_date') <ide> if date_time: <del> date_time = timezone.parse(date_...
2
PHP
PHP
adjust interface contracts as per implementation
eab2d42381f8347014c618e325072753517beaaa
<ide><path>src/Database/Query.php <ide> public function type(): string <ide> * $expression = $query->newExpr('Table.column = Table2.column'); // Return a raw SQL expression <ide> * ``` <ide> * <del> * @param mixed $rawExpression A string, array or anything you want wrapped in an expression object <ad...
2
Javascript
Javascript
fix typo in virtualizedlist-test.js
8b1b7f71267831d2ad50730607ef4c4a57cd651e
<ide><path>Libraries/Lists/__tests__/VirtualizedList-test.js <ide> describe('VirtualizedList', () => { <ide> // Silence the React error boundary warning; we expect an uncaught error. <ide> const consoleError = console.error; <ide> jest.spyOn(console, 'error').mockImplementation(message => { <del> if (m...
1
Text
Text
use adjective "too" instead of "to"
7f37074c33f7425150f23ecea25f13f6b15abb65
<ide><path>docs/_posts/2014-10-17-community-roundup-23.md <ide> Yahoo is converting Yahoo Mail to React and Flux and in the process, they open s <ide> > <ide> > - There should be only one channel for all state changes: The Dispatcher. This makes debugging easy because it just requires a single console.log in the dispat...
1
Python
Python
add a test case for paramikosshclient
941b812342dd9bff1ff010d20b46f7d94ed4b3ff
<ide><path>test/compute/test_ssh_client.py <add># -*- coding: utf-8 -*- <add># Licensed to the Apache Software Foundation (ASF) under one or more§ <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licens...
1
PHP
PHP
allow multiple attributes on sometimes
52dfddaaea7de0be0ad79a0a515c88a7397b083a
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function sometimes($attribute, $rules, $callback) <ide> { <ide> $payload = new Fluent(array_merge($this->data, $this->files)); <ide> <del> if (call_user_func($callback, $payload)) $this->mergeRules($attribute, $rules); <add> if (call_user_func($callb...
1
Javascript
Javascript
remove string literal from assertions
92de0eb4197c951703aeb4759a3ef9c6897c10ee
<ide><path>test/parallel/test-crypto-sign-verify.js <ide> common.expectsError( <ide> .update('Test') <ide> .update('123') <ide> .verify(certPem, s1, 'base64'); <del> assert.strictEqual(verified, true, 'sign and verify (base 64)'); <add> assert...
1
Javascript
Javascript
clarify what tests verify
08aed3ead1af861efc605ffb716bf6e96d7f71fd
<ide><path>test/createStore.spec.js <ide> describe('createStore', () => { <ide> expect(listenerC.calls.length).toBe(2) <ide> }) <ide> <del> it('removes listeners NOT immediately when unsubscribe is called', () => { <add> it('delays unsubscribe until the end of current dispatch', () => { <ide> const store =...
1
Python
Python
set version to v3.3.0.dev0
d56b1400d2899bc85ab8108e2dbf2e4885c4e6ce
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.2.2" <add>__version__ = "3.3.0.dev0" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility....
1
PHP
PHP
fix phpcs and psalm errors
e8f353c8f39ea9bd9660ca22733f6e884853c0de
<ide><path>src/TestSuite/TestCase.php <ide> use Cake\TestSuite\Constraint\EventFired; <ide> use Cake\TestSuite\Constraint\EventFiredWith; <ide> use Cake\Utility\Inflector; <add>use LogicException; <ide> use PHPUnit\Framework\TestCase as BaseTestCase; <ide> use ReflectionClass; <ide> use ReflectionException; <ide> publi...
1
Javascript
Javascript
return zeros for disconnected/hidden elements
40dcc767640c41a4387a343f1ef53ac57ed631c5
<ide><path>src/offset.js <ide> jQuery.offset = { <ide> elem.style.position = "relative"; <ide> } <ide> <del> curOffset = curElem.offset() || { top: 0, left: 0 }; <add> curOffset = curElem.offset(); <ide> curCSSTop = jQuery.css( elem, "top" ); <ide> curCSSLeft = jQuery.css( elem, "left" ); <ide> calculateP...
2
Javascript
Javascript
improve error message for module_not_found
a02e3e2d5f1f96f3c408270d45935afdd5d1fffc
<ide><path>lib/internal/modules/cjs/loader.js <ide> Module._resolveFilename = function(request, parent, isMain, options) { <ide> cursor = cursor.parent) { <ide> requireStack.push(cursor.filename || cursor.id); <ide> } <add> let message = `Cannot find module '${request}'`; <add> if (requireStack.le...
8
Python
Python
update jax version and re-enable some tests
b25b92ac4ffb8b66fb517f8888cbdc37075a9fd7
<ide><path>setup.py <ide> "importlib_metadata", <ide> "ipadic>=1.0.0,<2.0", <ide> "isort>=5.5.4", <del> "jax>=0.2.8", <add> "jax>=0.2.8,!=0.3.2", <ide> "jaxlib>=0.1.65", <ide> "jieba", <ide> "nltk", <ide><path>src/transformers/dependency_versions_table.py <ide> "importlib_metadata": "i...
3
Javascript
Javascript
add env to failure message
28e6cab52e65e3d9cb672db6ea51193622f7883b
<ide><path>test/parallel/test-child-process-default-options.js <ide> child.stdout.on('data', function(chunk) { <ide> <ide> process.on('exit', function() { <ide> assert.ok(response.includes('HELLO=WORLD'), <del> 'spawn did not use process.env as default'); <add> 'spawn did not use process.env as...
1
Text
Text
assign missing deprecation code
76ba9503a2aa1e2f4a304c4d2c60756cfa7ee09e
<ide><path>doc/api/deprecations.md <ide> written twice. This introduces a race condition between threads, and is a <ide> potential security vulnerability. There is no safe, cross-platform alternative <ide> API. <ide> <del><a id="DEP0XXX"></a> <del>### DEP0XXX: Use `request.destroy()` instead of `request.abort()` <add>...
1
PHP
PHP
update docblocks for eloquent model
a50c1d0fc8a1d403cacad370cb74c9cf5d15a0f5
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public static function getGlobalScope($scope) <ide> /** <ide> * Get the global scopes for this class instance. <ide> * <del> * @return array <add> * @return \Illuminate\Database\Eloquent\ScopeInterface[] <ide> */ <ide> public function getGlobalScopes...
1
PHP
PHP
remove attribute filling from pivot model
a73812999ad2bcb5926cbdd296c723d9635e304c
<ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php <ide> public static function fromAttributes(Model $parent, $attributes, $table, $exist <ide> */ <ide> public static function fromRawAttributes(Model $parent, $attributes, $table, $exists = false) <ide> { <del> $instance = static::fromAt...
2
Python
Python
fix oss tests
1a3ff04f9d7ea826c0c4c176423d8586ae20f65f
<ide><path>libcloud/test/storage/test_oss.py <ide> from libcloud.storage.drivers.oss import OSSStorageDriver <ide> from libcloud.storage.drivers.oss import CHUNK_SIZE <ide> from libcloud.storage.drivers.dummy import DummyIterator <del>from libcloud.test import MockHttp, generate_random_data # pylint: disable-msg=E0611...
1
Ruby
Ruby
update shallowing logic
bec303de86f9cef21a79ebea55da59dfa57fbdbb
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def tap <ide> else <ide> full_clone = if args.full? <ide> true <del> elsif args.shallow?.nil? <del> !ENV["CI"] <add> elsif !args.shallow? <add> ENV["CI"].blank? <ide> else <ide> !args.shallow? <ide> end
1
Text
Text
add mit license badge to readme
ede79f818e491a43ada3705314024021aed23d7c
<ide><path>README.md <ide> <ide> [![Build Status](https://travis-ci.org/fchollet/keras.svg?branch=master)](https://travis-ci.org/fchollet/keras) <ide> [![PyPI version](https://badge.fury.io/py/keras.svg)](https://badge.fury.io/py/keras) <add>[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAg...
1
PHP
PHP
throw exception if flash key value is not an array
293a6279740e6dbcb57b983e9f0b9bd40a294765
<ide><path>src/View/Helper/FlashHelper.php <ide> class FlashHelper extends Helper { <ide> * @param string $key The [Flash.]key you are rendering in the view. <ide> * @param array $options Additional options to use for the creation of this flash message. <ide> * Supports the 'params', and 'element' keys that are u...
2
Ruby
Ruby
remove array.wrap calls in activesupport
b33bd077fab8e249ba3ddfb7e656c34243c05a1d
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> require 'active_support/concern' <ide> require 'active_support/descendants_tracker' <del>require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/class/attribute' <ide> require 'active_support/core_ext/kernel/reporting' <ide> requ...
6
Python
Python
add type hints for searches/ternary_search.py
7df91e681a7270d9ff10e504abe81df5bdd34776
<ide><path>searches/ternary_search.py <ide> Space Complexity : O(1) <ide> """ <ide> import sys <add>from typing import List <ide> <ide> # This is the precision for this function which can be altered. <ide> # It is recommended for users to keep this number greater than or equal to 10. <ide> precision = 10 <ide> <ide> ...
1
PHP
PHP
add beanstalk queue block_for config key
2588b254a0ee43c2cd318905694a548a343aafe3
<ide><path>config/queue.php <ide> 'host' => 'localhost', <ide> 'queue' => 'default', <ide> 'retry_after' => 90, <add> 'block_for' => 0, <ide> ], <ide> <ide> 'sqs' => [
1
Text
Text
include router.aspath caveats in docs
5b893663fdb3658de4e8ce2bb5966fbfe4e905ef
<ide><path>docs/advanced-features/automatic-static-optimization.md <ide> And if you add `getServerSideProps` to the page, it will then be JavaScript, lik <ide> <ide> - If you have a [custom `App`](/docs/advanced-features/custom-app.md) with `getInitialProps` then this optimization will be turned off in pages without [...
2
PHP
PHP
remove function aliases
ce8aff793ef96c3383054209ef2b7f07174f354f
<ide><path>src/Mailer/Mailer.php <ide> public function getName() <ide> static::$name = str_replace( <ide> 'Mailer', <ide> '', <del> join('', array_slice(explode('\\', get_class($this)), -1)) <add> implode('', array_slice(explode('\\', get_class($...
1
Java
Java
call super.onactivityresult in reactactivity
29249e19bd9cb4de8cb5b00edcd17f2c49d0d02c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java <ide> protected void onDestroy() { <ide> <ide> @Override <ide> public void onActivityResult(int requestCode, int resultCode, Intent data) { <add> super.onActivityResult(requestCode, resultCode, data); <ide> mDelegate.onActivityResul...
1
Text
Text
fix incorrect spelling of bcrypt
94635dcc0bb155dbeabff6e2f01360af52629100
<ide><path>curriculum/challenges/chinese/06-information-security-and-quality-assurance/information-security-with-helmetjs/understand-bcrypt-hashes.chinese.md <ide> localeTitle: 了解BCrypt Hashes <ide> <ide> ```yml <ide> tests: <del> - text: BCyrpt是一个依赖 <add> - text: BCrypt是一个依赖 <ide> testString: 'getUserInput => $...
4
Go
Go
fix issue with missing fields for `ps` template
b4ab4530841417305bcaa0b0d25d172bfbf3956a
<ide><path>cli/command/container/list.go <ide> func newListCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> type preProcessor struct { <ide> types.Container <ide> opts *types.ContainerListOptions <add> <add> // Fields that need to exist so the template doesn't error out <add> // These are needed since the...
2
Go
Go
fix permission detection for aufs
1a0347ff1dd1035066b5faf86db0587491b5d638
<ide><path>integration-cli/docker_cli_save_load_test.go <ide> func TestSaveMultipleNames(t *testing.T) { <ide> // Issue #6722 #5892 ensure directories are included in changes <ide> func TestSaveDirectoryPermissions(t *testing.T) { <ide> layerEntries := []string{"opt/", "opt/a/", "opt/a/b/", "opt/a/b/c"} <add> layerEnt...
1
Python
Python
remove unused code
b197ba91d7bd3c390b67cd67da2eb381b25a22b2
<ide><path>keras/layers/local.py <ide> def compute_output_shape(self, input_shape): <ide> return (input_shape[0], rows, cols, self.filters) <ide> <ide> def call(self, inputs): <del> _, _, filters = self.kernel_shape <del> <ide> output = K.local_conv2d(inputs, <ide> ...
1