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
Text
Text
add changelog entry for
da2c6eff74fda1636446ea1566ee4f8ac9300a50
<ide><path>activerecord/CHANGELOG.md <add>* Don't check type when using `if_not_exists` on `add_column`. <add> <add> Previously, if a migration called `add_column` with the `if_not_exists` option set to true <add> the `column_exists?` check would look for a column with the same name and type as the migration. <...
1
Text
Text
change the instruction text
79f937ea1d9190a40475113e2b7ecbfd6be730d2
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f8604682407e0d017bbf7f.md <ide> dashedName: step-25 <ide> <ide> # --description-- <ide> <del>For the terms and conditions, add an `input` with a `type` of `checkbox` to the third `label` element. Al...
1
Ruby
Ruby
remove base.delete as it's same as relation#delete
223e2a2709cbd0013d51b024bb4e0f950586c125
<ide><path>activerecord/lib/active_record/base.rb <ide> def colorize_logging(*args) <ide> end <ide> alias :colorize_logging= :colorize_logging <ide> <del> delegate :find, :first, :last, :all, :destroy_all, :exists?, :to => :scoped <add> delegate :find, :first, :last, :all, :destroy_all, :exists?,...
2
Javascript
Javascript
improve explanation of modules
d8e4093b5a75de2aa8d0ffb0aa5b2cdc252b8d2f
<ide><path>src/loader.js <ide> function setupModuleLoader(window) { <ide> * <ide> * # Module <ide> * <del> * A module is a collection of services, directives, filters, and configuration information. <add> * A module is a collection of services, directives, controllers, filters, and configuration ...
1
PHP
PHP
add handlerstats method for http client
b57b61c01ea2a5666a5a2242117fa1d3db89ef63
<ide><path>src/Illuminate/Http/Client/Response.php <ide> public function effectiveUri() <ide> return $this->transferStats->getEffectiveUri(); <ide> } <ide> <add> /** <add> * Get the handler stats of the response. <add> * <add> * @return \Psr\Http\Message\UriInterface <add> */ <add> pu...
1
Javascript
Javascript
fix typo in error message
7a4dc0b17eec8a1a103f64845262b4ca9e418a3f
<ide><path>lib/webpack.js <ide> function webpack(options, callback) { <ide> })); <ide> } else if(typeof options === "object") { <ide> if(!options.entry && !options.plugins) { <del> throw new Error("Passed 'options' object don't look like a valid webpack configuration"); <add> throw new Error("Passed 'options' ...
1
Python
Python
fix kaiser for m=1
ced34d27a8eef42e0f963afa4989e2383fc3ca77
<ide><path>numpy/lib/function_base.py <ide> def kaiser(M,beta): <ide> <ide> """ <ide> from numpy.dual import i0 <add> if M == 1: <add> return np.array([1.]) <ide> n = arange(0,M) <ide> alpha = (M-1)/2.0 <ide> return i0(beta * sqrt(1-((n-alpha)/alpha)**2.0))/i0(float(beta)) <ide><path>nump...
2
Javascript
Javascript
fix e2e tests on jenkins
5fe823948f3af9d6ef34bb42112d87d4d7ae360f
<ide><path>protractor-jenkins-conf.js <ide> exports.config = { <ide> <ide> browser.addMockModule('disableNgAnimate', disableNgAnimate); <ide> <del> require('jasmine-reporters'); <del> jasmine.getEnv().addReporter( <del> new jasmine.JUnitXmlReporter('test_out/docs-e2e-' + exports.config.capabilities.bro...
1
Python
Python
correct a bug on unitary tests
ffcea930793eaf707af4f6a75a545a11fe043943
<ide><path>glances/unitest.py <ide> import unittest <ide> import glances <ide> import multiprocessing <add>import time <ide> <ide> class TestGlancesStat(unittest.TestCase): <ide> <ide> def setUp(self): <del> self.stats = glances.glancesStats() <add> self.stats = glances.GlancesStats() <add> ...
1
PHP
PHP
add deprecation warning
9af8e608e43803d3ea38c72b972236fe8d648646
<ide><path>src/Http/Exception/RedirectException.php <ide> public function __construct(string $target, int $code = 302, array $headers = [] <ide> */ <ide> public function addHeaders(array $headers) <ide> { <add> deprecationWarning('RedirectException::addHeaders() is deprecated, use setHeaders() inste...
1
Go
Go
set default seccomp profile
947293a28084cb5ee2e10e4d128c6e2b9d9da89d
<ide><path>daemon/execdriver/native/create.go <ide> func (d *Driver) createContainer(c *execdriver.Command, hooks execdriver.Hooks) <ide> if err := d.setCapabilities(container, c); err != nil { <ide> return nil, err <ide> } <add> <add> if c.SeccompProfile == "" { <add> container.Seccomp = getDefaultSeccompPro...
5
Ruby
Ruby
use long shfmt arguments
bf34f2106554de49a8d64a0fc17edfb045c29f06
<ide><path>Library/Homebrew/style.rb <ide> def run_shfmt(files, fix: false) <ide> files.delete(HOMEBREW_REPOSITORY/"completions/bash/brew") <ide> files.delete(HOMEBREW_REPOSITORY/"Dockerfile") <ide> <del> # shfmt options: <del> # -i 2 : indent by 2 spaces <del> # -ci : indent sw...
1
Python
Python
allow reversed iteration over sorteddict
c3fabb282d429de931ef10c91cee55700578eb86
<ide><path>django/utils/datastructures.py <ide> def __delitem__(self, key): <ide> def __iter__(self): <ide> return iter(self.keyOrder) <ide> <add> def __reversed__(self): <add> return reversed(self.keyOrder) <add> <ide> def pop(self, k, *args): <ide> result = super(SortedDict, self).p...
1
PHP
PHP
fix bug in validate
9f5050bab13d40f62a2c1db9c98c659bf1bd25c7
<ide><path>src/Illuminate/Auth/TokenGuard.php <ide> public function id() <ide> */ <ide> public function validate(array $credentials = []) <ide> { <del> if (! is_null($token)) { <del> $credentials = [$this->storageKey => $credentials[$this->inputKey]]; <add> $credentials = [$this->s...
1
Javascript
Javascript
improve quaternion closure performance
563060ae23cc8602b84588e89a49a5c17428fc6c
<ide><path>src/math/Quaternion.js <ide> Object.assign( Quaternion.prototype, { <ide> <ide> // assumes direction vectors vFrom and vTo are normalized <ide> <del> var v1, r; <add> var v1 = new Vector3(); <add> var r; <ide> <ide> var EPS = 0.000001; <ide>
1
Python
Python
require model for test_is_properties
a42fbcf946864ecebcf82b426f5a9e077305ccab
<ide><path>spacy/tests/tokens/test_token_api.py <ide> def test_str_builtin(EN): <ide> assert str(tokens[1]) == u'two' <ide> <ide> <add>@pytest.mark.models <ide> def test_is_properties(EN): <ide> Hi, comma, my, email, is_, addr = EN(u'Hi, my email is test@me.com') <ide> assert Hi.is_title
1
Javascript
Javascript
move internal functions to bottom of vector file
ea6fa3596637c9ea9a16c987fd4a2ff69def092f
<ide><path>dist/Immutable.dev.js <ide> VectorPrototype.cursor = Map.prototype.cursor; <ide> VectorPrototype.withMutations = Map.prototype.withMutations; <ide> VectorPrototype.asMutable = Map.prototype.asMutable; <ide> VectorPrototype.asImmutable = Map.prototype.asImmutable; <del>function makeVector(origin, size, level,...
2
Python
Python
move cupy and cudastream to compat
abf0188b0a45624d97c839d3aedba8521b184315
<ide><path>spacy/compat.py <ide> except ImportError: <ide> import copyreg as copy_reg <ide> <add>try: <add> from cupy.cuda.stream import Stream as CudaStream <add>except ImportError: <add> CudaStream = None <add> <add>try: <add> import cupy <add>except ImportError: <add> cupy = None <add> <add> <ide> p...
2
Text
Text
fix docker stack link
93ed4b35fa6b35a24a79e3e4f9cfaea29982e7a4
<ide><path>experimental/README.md <ide> to build a Docker binary with the experimental features enabled: <ide> <ide> * [External graphdriver plugins](plugins_graphdriver.md) <ide> * [Macvlan and Ipvlan Network Drivers](vlan-networks.md) <del> * [Docker stacks](docker-stacks.md) <add> * [Docker Stacks and Distributed...
1
Text
Text
fix inverted definition of controlled component
8011112cc1db52f48c85b01875c3449bbe9e0805
<ide><path>docs/docs/07-forms.md <ide> In this example, we are accepting the value provided by the user and updating th <ide> <ide> This would accept user input and truncate the value to the first 140 characters. <ide> <del>A **Controlled** component maintains its own internal state; the component renders purely base...
1
Javascript
Javascript
correct the portable path location on windows
9648d8b82fdb06cfaf3f8dcc14e910d06c742eb1
<ide><path>src/atom-paths.js <ide> const hasWriteAccess = (dir) => { <ide> const getAppDirectory = () => { <ide> switch (process.platform) { <ide> case 'darwin': <del> return path.join(process.execPath.substring(0, process.execPath.indexOf('.app')), '..') <add> return process.execPath.substring(0, proce...
1
Text
Text
fix some recent nits
008a1f6e8c99fb1889e25f1864d35ef71411b721
<ide><path>doc/api/events.md <ide> The `Promise` will resolve with an array of all the arguments emitted to the <ide> given event. <ide> <ide> This method is intentionally generic and works with the web platform <del>[EventTarget](WHATWG-EventTarget) interface, which has no special <add>[EventTarget][WHATWG-EventTarge...
4
Go
Go
add unit test for multiple attach / restart
0ebdca5e6144b0176a4b161cb1bd40efc0dc7efe
<ide><path>container_test.go <ide> func TestIdFormat(t *testing.T) { <ide> } <ide> } <ide> <add>func TestMultipleAttachRestart(t *testing.T) { <add> runtime, err := newTestRuntime() <add> if err != nil { <add> t.Fatal(err) <add> } <add> defer nuke(runtime) <add> container, err := runtime.Create( <add> &Config{ <add...
1
PHP
PHP
raise error when no mocks are found
21ffbdf2f403c10b0bbb4b9edefbab2459d22739
<ide><path>src/Http/Client/Adapter/Mock.php <ide> namespace Cake\Http\Client\Adapter; <ide> <ide> use Cake\Http\Client\AdapterInterface; <add>use Cake\Http\Client\Exception\MissingResponseException; <ide> use Cake\Http\Client\Response; <ide> use Closure; <ide> use InvalidArgumentException; <ide> * <ide> * This adapt...
3
Ruby
Ruby
fix the build
b079f7a334137400085e19ec1b3ffc95fd53fc4c
<ide><path>actionpack/lib/action_dispatch/http/cache.rb <ide> def not_modified?(modified_at) <ide> end <ide> <ide> def etag_matches?(etag) <add> etag = etag.gsub(/^\"|\"$/, "") <ide> if_none_match_etags.include?(etag) <ide> end <ide>
1
PHP
PHP
update exception message
37df839aed3dc6f0c29a6a433c090e5678b4d265
<ide><path>src/Utility/Security.php <ide> public static function constantEquals($original, $compare): bool <ide> public static function getSalt(): string <ide> { <ide> if (static::$_salt === null) { <del> throw new RuntimeException('Salt not set. Use Security::setSalt() to set one, ideally in...
1
PHP
PHP
apply fixes from styleci
f5f900b2bac0b14c4256dcf8beb28f0450531bd5
<ide><path>tests/Console/ConsoleEventSchedulerTest.php <ide> use Illuminate\Console\Command; <ide> use PHPUnit\Framework\TestCase; <ide> use Illuminate\Container\Container; <del>use Illuminate\Config\Repository as Config; <ide> use Illuminate\Console\Scheduling\Schedule; <ide> use Illuminate\Console\Scheduling\EventMut...
1
Javascript
Javascript
add support for skinnedmesh and bone object types
f8aedef34c3d98441585211d03d25a45504c9ec3
<ide><path>src/loaders/ObjectLoader.js <ide> Object.assign( ObjectLoader.prototype, { <ide> <ide> break; <ide> <add> case 'SkinnedMesh': <add> <add> var geometry = getGeometry( data.geometry ); <add> var material = getMaterial( data.material ); <add> <add> object = new SkinnedMesh( geometry, mater...
1
Ruby
Ruby
add missing require
b5384d91a4e761023602d7eeb2ad92be0fe44815
<ide><path>activesupport/lib/active_support/per_thread_registry.rb <add>require 'active_support/core_ext/module/delegation' <add> <ide> module ActiveSupport <ide> # This module is used to encapsulate access to thread local variables. <ide> #
1
Ruby
Ruby
remove unnecessary db call when replacing
774160b9ad6908435bf3485e7ac98633deff76c6
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def replace(other_array) <ide> if owner.new_record? <ide> replace_records(other_array, original_target) <ide> else <del> transaction { replace_records(other_array, original_target) } <add> ...
2
Text
Text
move code example right after colon
099a0f08801257c945235c3cb5d13cff109f7e55
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> end <ide> If the action is not being used in a public API and you are free to change the <ide> HTTP method, you can update your route to use `patch` instead of `put`: <ide> <del>`PUT` requests to `/users/:id` in Rails 4 get routed to `update` as they are <del>t...
1
PHP
PHP
add resource missing option
62925b64310bb796dff479aea4acc55a1620d470
<ide><path>src/Illuminate/Routing/PendingResourceRegistration.php <ide> public function shallow($shallow = true) <ide> return $this; <ide> } <ide> <add> /** <add> * Define the callable that should be invoked on a missing model exception. <add> * <add> * @param $callback <add> * @return $...
3
PHP
PHP
apply suggestions from code review
efd6020d9f89c6278f624c2e9ae0b00beea7a6f6
<ide><path>src/Error/ErrorTrap.php <ide> class ErrorTrap <ide> * See the `Error` key in you `config/app.php` <ide> * for details on the keys and their values. <ide> * <del> * @var array <add> * @var array<string, mixed> <ide> */ <ide> protected $_defaultConfig = [ <ide> 'errorLev...
1
Text
Text
add docs for x-nextjs-cache header
a0924fc7c763797b2927b4c3cb0f321ead49e645
<ide><path>docs/api-reference/data-fetching/get-static-props.md <ide> export async function getStaticProps() { <ide> <ide> Learn more about [Incremental Static Regeneration](/docs/basic-features/data-fetching/incremental-static-regeneration.md) <ide> <add>The cache status of a page leveraging ISR can be determined by...
2
Text
Text
change events --since to fit rfc3339nano
d619b5594ba136ab285b93128bbe8fe246678488
<ide><path>docs/sources/reference/commandline/cli.md <ide> You'll need two shells for this example. <ide> 2014-05-10T17:42:14.999999999Z07:00 7805c1d35632: (from redis:2.8) die <ide> 2014-09-03T17:42:14.999999999Z07:00 7805c1d35632: (from redis:2.8) stop <ide> <del> $ sudo docker events --since '2013-09-03 ...
1
Javascript
Javascript
fix issue #233
a982beb5c4ec50932c312626f44488d0ee85abec
<ide><path>packages/ember-handlebars/lib/views/metamorph_view.js <ide> var DOMManager = { <ide> remove: function(view) { <ide> var morph = view.morph; <ide> if (morph.isRemoved()) { return; } <add> set(view, 'element', null); <add> set(view, 'lastInsert', null); <ide> morph.remove(); <ide> }, <ide...
8
Python
Python
improve error message when reading vectors
0ddb152be0f1876e0f80d7f9b6ee3473b9c7eb2c
<ide><path>spacy/cli/init_model.py <ide> <ide> from ._messages import Messages <ide> from ..vectors import Vectors <del>from ..errors import Warnings, user_warning <add>from ..errors import Errors, Warnings, user_warning <ide> from ..util import prints, ensure_path, get_lang_class <ide> <ide> try: <ide> def read_vect...
2
Go
Go
fix race in stats cli and native driver
77280a87b70d3b2b629cd30ea93464287f346fa1
<ide><path>api/client/stats.go <ide> func (s *containerStats) Collect(cli *DockerCli, streamStats bool) { <ide> } <ide> stream, _, err := cli.call("GET", "/containers/"+s.Name+"/stats?"+v.Encode(), nil, nil) <ide> if err != nil { <add> s.mu.Lock() <ide> s.err = err <add> s.mu.Unlock() <ide> return <ide> } <id...
2
Ruby
Ruby
fix method signature
126d2133ab824072f526bc88830a5b9948247bfb
<ide><path>Library/Homebrew/patch.rb <ide> require 'erb' <ide> <ide> class Patch <del> def self.create(strip, io=nil, &block) <del> case strip ||= :p1 <add> def self.create(strip, io, &block) <add> case strip <ide> when :DATA, IO, StringIO <ide> IOPatch.new(strip, :p1) <ide> when String <ide><pat...
2
Text
Text
remove logo, add cake website link to description
2b1a11f2b0fb6d48163e2846607d9971f6e3dd22
<ide><path>README.md <ide> [![Code Consistency](http://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/grade.svg)](http://squizlabs.github.io/PHP_CodeSniffer/analysis/cakephp/cakephp/) <ide> [![Total Downloads](https://img.shields.io/packagist/dt/cakephp/cakephp.svg?style=flat-square)](https://packagist.or...
1
Go
Go
address some displaying issues in docker info
8ad9438edeab44c8f424113bc96fa12d76e4fdc6
<ide><path>api/client/system/info.go <ide> func runInfo(dockerCli *client.DockerCli) error { <ide> fmt.Fprintf(dockerCli.Out(), " ClusterID: %s\n", info.Swarm.Cluster.ID) <ide> fmt.Fprintf(dockerCli.Out(), " Managers: %d\n", info.Swarm.Managers) <ide> fmt.Fprintf(dockerCli.Out(), " Nodes: %d\n", info.Swarm.Nod...
1
Javascript
Javascript
enforce 20s timeout for all unit tests
df2a22ee6149595b212ef7dca73535a853969f7b
<ide><path>test/data/testrunner.js <del>jQuery.noConflict(); // Allow the test to run with other libs or jQuery's. <add>/** <add> * Allow the test suite to run with other libs or jQuery's. <add> */ <add>jQuery.noConflict(); <ide> <del>// jQuery-specific QUnit.reset <add>/** <add> * QUnit hooks <add> */ <ide> (function...
1
Javascript
Javascript
update http2 for new stream api
b07f2e25f414dde014528705ddbc0823d1aeb89f
<ide><path>benchmark/http_simple.js <ide> path = require("path"); <ide> <del>libDir = path.join(path.dirname(__filename), "../lib"); <del>require.paths.unshift(libDir); <del> <del>var puts = require("sys").puts; <del>http = require("http"); <add>var puts = require("../lib/sys").puts; <add>http = require("../lib/http2"...
2
Javascript
Javascript
eliminate port collision
4a3928e125bb1ab7242e8134f911b6c71551bd75
<add><path>test/sequential/test-cluster-net-listen-ipv6only-rr.js <del><path>test/parallel/test-cluster-net-listen-ipv6only-rr.js <ide> if (cluster.isMaster) { <ide> workers.set(i, worker); <ide> } <ide> } else { <add> // As the cluster member has the potential to grab any port <add> // from the environment, th...
1
Javascript
Javascript
add merge strategy for facebook so far
2f1e39433462ee3d5f900dbd023e99535791c049
<ide><path>config/passport.js <ide> passport.use(new LocalStrategy({ usernameField: 'email' }, function(email, passw <ide> }); <ide> })); <ide> <add>/** <add> * Sign in with Facebook. <add> * <add> * Possible authentication states: <add> * <add> * 1. User is logged in. <add> * a. Already signed in with Facebook be...
1
Python
Python
fix a argument order bug and use keyword args
3f4e92457bf9b40b6626bf9777832557b97e9767
<ide><path>libcloud/storage/drivers/backblaze_b2.py <ide> def upload_object(self, file_path, container, object_name, extra=None, <ide> iterator = read_in_chunks(iterator=iterator) <ide> data = exhaust_iterator(iterator=iterator) <ide> <del> obj = self._perform_upload(data, container, obj...
1
Ruby
Ruby
convert bash test to spec
f531e63949683a7bf33ec96014901e3c6d5eaf61
<ide><path>Library/Homebrew/test/bash_spec.rb <add>require "open3" <add> <add>RSpec::Matchers.define :have_valid_bash_syntax do <add> match do |file| <add> stdout, stderr, status = Open3.capture3("/bin/bash", "-n", file) <add> <add> @actual = [file, stderr] <add> <add> stdout.empty? && status.success? <add> ...
2
PHP
PHP
add missing 'after_commit' attribute
5cfd28df2d550c4d63417ba54f31c96887cd345b
<ide><path>config/queue.php <ide> 'table' => 'jobs', <ide> 'queue' => 'default', <ide> 'retry_after' => 90, <add> 'after_commit' => false, <ide> ], <ide> <ide> 'beanstalkd' => [ <ide> 'queue' => 'default', <ide> 'retry_after' => 90,...
1
Go
Go
fix internal macvlan network to work in swarm
b0bce9159ea9209decf5a1350fb4762b44441cc6
<ide><path>libnetwork/drivers/macvlan/macvlan_network.go <ide> func parseNetworkOptions(id string, option options.Generic) (*configuration, err <ide> return nil, err <ide> } <ide> } <del> // setting the parent to "" will trigger an isolated network dummy parent link <ide> if val, ok := option[netlabel.Internal];...
1
Javascript
Javascript
remove redundant initial of hasownproperty
2c9fef32db5c9a342a1a60c34217ffc9ae087fbb
<ide><path>packages/react-dom/src/client/ReactDOMComponent.js <ide> import { <ide> } from '../events/EventRegistry'; <ide> <ide> import {canUseDOM} from 'shared/ExecutionEnvironment'; <add>import hasOwnProperty from 'shared/hasOwnProperty'; <ide> <ide> import { <ide> getValueForAttribute, <ide> export function crea...
15
PHP
PHP
add additional information about complex type data
f150d161907910c2ab0679cececc917f32e01e34
<ide><path>src/View/Input/MultiCheckbox.php <ide> <ide> use Cake\Utility\Inflector; <ide> <add>/** <add> * Input widget class for generating multiple checkboxes. <add> * <add> */ <ide> class MultiCheckbox { <ide> <add>/** <add> * Template instance to use. <add> * <add> * @var Cake\View\StringTemplate <add> */ <ide> ...
1
Ruby
Ruby
use appropriate type for `rc` option
92dae5dfda9b72e748bb00f38603e8fda403089a
<ide><path>railties/lib/rails/commands/plugin/plugin_command.rb <ide> def self.banner(*) # :nodoc: <ide> "#{executable} new [options]" <ide> end <ide> <del> class_option :rc, type: :boolean, default: File.join("~", ".railsrc"), <add> class_option :rc, type: :string, default: File.join("~", ".ra...
1
Javascript
Javascript
add readonly prop to textinput component
de75a7a22eebbe6b7106377bdd697a2d779b91b0
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> export type Props = $ReadOnly<{| <ide> */ <ide> placeholderTextColor?: ?ColorValue, <ide> <add> /** `readOnly` works like the `readonly` attribute in HTML. <add> * If `true`, text is not editable. The default value is `false`. <add> * See https:/...
3
Python
Python
add html5lib to setup.py to fix six error (see )
002ee80ddf1e3616e9d957abbdab76180d45aa27
<ide><path>setup.py <ide> def setup_package(): <ide> 'thinc>=6.10.1,<6.11.0', <ide> 'plac<1.0.0,>=0.9.6', <ide> 'six', <add> 'html5lib==1.0b8', <ide> 'pathlib', <ide> 'ujson>=1.35', <ide> 'dill>=0.2,<0.3',
1
PHP
PHP
fix issues with treebehavior and nested deletes
d70730d72200862806209a133b43a2f099e0fa8c
<ide><path>lib/Cake/Model/Behavior/TreeBehavior.php <ide> class TreeBehavior extends ModelBehavior { <ide> * <ide> * @var array <ide> */ <del> protected $_deletedRow = null; <add> protected $_deletedRow = array(); <ide> <ide> /** <ide> * Initiate Tree behavior <ide> public function beforeDelete(Model $Model, $casc...
1
Java
Java
avoid exceptions when evaluating validation hints
e7cbe23771a18f959d351c56018ece490320796f
<ide><path>spring-context/src/main/java/org/springframework/validation/annotation/ValidationAnnotationUtils.java <add>/* <add> * Copyright 2002-2021 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with...
5
Text
Text
add forgotten changelog entry for
bfc8ffa2327ac6e3949507e71dba04dd3a6c9131
<ide><path>activerecord/CHANGELOG.md <add>* Handle single quotes in PostgreSQL default column values. <add> Fixes #10881. <add> <add> *Dylan Markow* <add> <ide> * Log the sql that is actually sent to the database. <ide> <ide> If I have a query that produces sql
1
PHP
PHP
fix strict typing errors
e2b8505cda8f766a12f1b435d0f31b65cb976c9c
<ide><path>src/Console/ConsoleInputArgument.php <ide> public function xml(SimpleXMLElement $parent): SimpleXMLElement <ide> $option = $parent->addChild('argument'); <ide> $option->addAttribute('name', $this->_name); <ide> $option->addAttribute('help', $this->_help); <del> $option->addAttr...
11
Javascript
Javascript
remove unused legacy shims
32b6244772dc68f9b92fcaee008accb2ed36678e
<ide><path>vendor/ember/shims.js <del>(function() { <del>/* globals define, Ember, jQuery */ <del> <del> function processEmberShims() { <del> var shims = { <del> 'ember': { <del> 'default': Ember <del> }, <del> 'ember-application': { <del> 'default': Ember.Application <del> }, <del...
1
PHP
PHP
apply fixes from styleci
4b736f75f533e53f677dff52efd80fa5088a39b6
<ide><path>src/Illuminate/Routing/RouteAction.php <ide> public static function parse($uri, $action) <ide> if (is_callable($action)) { <ide> return ! is_array($action) ? ['uses' => $action] : [ <ide> 'uses' => $action[0].'@'.$action[1], <del> 'controller' => $action[0]....
1
Text
Text
remove incorrect "readonly" example
244d9c337034b0db030c05189ca8eb2323d92c61
<ide><path>docs/userguide/dockervolumes.md <ide> This will create a new volume inside a container at `/webapp`. <ide> > You can also use the `VOLUME` instruction in a `Dockerfile` to add one or <ide> > more new volumes to any container created from that image. <ide> <del>Docker volumes default to mount in read-write m...
1
Javascript
Javascript
prevent infinite loop in mesh.raycast().
595987ef5c783603ad93ee39551906a67eb24a8a
<ide><path>src/objects/Mesh.js <ide> class Mesh extends Object3D { <ide> const groupMaterial = material[ group.materialIndex ]; <ide> <ide> const start = Math.max( group.start, drawRange.start ); <del> const end = Math.min( ( group.start + group.count ), ( drawRange.start + drawRange.count ) ); <add> ...
1
Mixed
Python
add xception model to keras.applications
94ee8e15704d76fb3ef06a91c2c9c72aa07678e9
<ide><path>docs/templates/applications.md <ide> Weights are downloaded automatically when instantiating a model. They are stored <ide> <ide> ### Models for image classification with weights trained on ImageNet: <ide> <add>- [Xception](#xception) <ide> - [VGG16](#vgg16) <ide> - [VGG19](#vgg19) <ide> - [ResNet50](#resn...
4
Python
Python
add update_exc util function
66c7348cda2e0e52839564556f62d3a776164474
<ide><path>spacy/util.py <ide> def compile_infix_regex(entries): <ide> return re.compile(expression) <ide> <ide> <add>def update_exc(exc, additions): <add> overlap = set(exc.keys()).intersection(set(additions)) <add> assert not overlap, overlap <add> exc.update(additions) <add> <add> <ide> def normalize_...
1
Javascript
Javascript
show % change rather than % difference
035aa6b4cefc0b1d5bab8ffdcb5c63593ef8d190
<ide><path>benchmark/compare.js <ide> function compare() { <ide> var n0 = res[nodes[0]]; <ide> var n1 = res[nodes[1]]; <ide> <del> var pct = ((n0 - n1) / ((n0 + n1) / 2) * 100).toFixed(2); <add> var pct = ((n0 - n1) / n1 * 100).toFixed(2); <ide> <ide> var g = n0 > n1 ? green : ''; <ide> var r = ...
1
PHP
PHP
fix tests that were failing becuase of icu changes
853b691a52a6653d6b8c2c3589fe29c622cfa94b
<ide><path>tests/TestCase/I18n/NumberTest.php <ide> public function testCurrency() <ide> <ide> $options = ['locale' => 'fr_FR', 'pattern' => 'EUR #,###.00']; <ide> $result = $this->Number->currency($value, 'EUR', $options); <del> $expected = 'EUR 100 100 100,00'; <del> $this->assertEquals...
1
Ruby
Ruby
use parser to parse args
74baf04ad3b0111cace6701caeb5939ef8161bf7
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> require "net/https" <ide> require "utils" <ide> require "json" <add>require "cli_parser" <ide> require "formula" <ide> require "formulary" <ide> require "tap" <ide> module GitHub <ide> module_function <ide> <ide> # Return the corresponding test-bot user name for th...
1
Python
Python
fix default bool in argparser
c9486fd0f515c38b0a525ceb5348c4b8bf2d4d9c
<ide><path>src/transformers/hf_argparser.py <ide> def _add_dataclass_arguments(self, dtype: DataClassType): <ide> # Hack because type=bool in argparse does not behave as we want. <ide> kwargs["type"] = string_to_bool <ide> if field.type is bool or (field.default is not No...
2
Python
Python
make top numpy __init__ importable from python3
26e1d7f4739e39ee16f73685bbcefdac03ae4866
<ide><path>numpy/__init__.py <ide> <ide> if __NUMPY_SETUP__: <ide> import sys as _sys <del> print >> _sys.stderr, 'Running from numpy source directory.' <add> _sys.stderr.write('Running from numpy source directory.') <ide> del _sys <ide> else: <ide> try: <ide> from numpy.__config__ import sho...
1
Ruby
Ruby
remove redundant current_branch
d802b3755a6df6a9c1081061017d1d995c34771a
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def pr_pull <ide> _, user, repo, pr = *url_match <ide> odie "Not a GitHub pull request: #{arg}" unless pr <ide> <del> current_branch = Utils::Git.current_branch(tap.path) <add> current_branch = tap.path.git_branch <ide> origin_branch = Ut...
2
Mixed
Ruby
raise irreversiblemigration if no column given
3771e4d51122e1ec22728029bae00f121d5d4e3b
<ide><path>activerecord/CHANGELOG.md <add>* While removing index if column option is missing then raise IrreversibleMigration exception. <add> <add> Following code should raise `IrreversibleMigration`. But the code was <add> failing since options is an array and not a hash. <add> <add> def change <add> ...
3
Go
Go
move "image_delete" to daemon/image_delete.go
7a5e3df1625df24d52e2c863706076c59803cff8
<ide><path>daemon/daemon.go <ide> type Daemon struct { <ide> func (daemon *Daemon) Install(eng *engine.Engine) error { <ide> // FIXME: rename "delete" to "rm" for consistency with the CLI command <ide> // FIXME: rename ContainerDestroy to ContainerRm for consistency with the CLI command <add> // FIXME: remove ImageDe...
4
Mixed
Go
add reference filter and deprecated filter param…
820b809e70df8b9c7af00256182c48d935972a5c
<ide><path>api/server/router/image/backend.go <ide> import ( <ide> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/api/types/backend" <add> "github.com/docker/docker/api/types/filters" <ide> "github.com/docker/docker/api/types/registry" <ide> "golang.org/x/net/context" <ide> ) <ide> type...
10
Javascript
Javascript
make .bind() always asynchronous
332fea5ac1816e498030109c4211bca24a7fa667
<ide><path>lib/dgram.js <ide> function isIP(address) { <ide> <ide> <ide> function lookup(address, family, callback) { <del> // implicit 'bind before send' needs to run on the same tick <del> var matchedFamily = isIP(address); <del> if (matchedFamily) <del> return callback(null, address, matchedFamily); <del> <i...
1
Ruby
Ruby
use real basename for output
398845891938879f3df3772102903827b4e76b17
<ide><path>Library/Homebrew/download_strategy.rb <ide> class AbstractDownloadStrategy <ide> <ide> module Pourable <ide> def stage <del> ohai "Pouring #{cached_location.basename}" <add> ohai "Pouring #{basename}" <ide> super <ide> end <ide> end <ide> def clear_cache <ide> end <ide> <ide> ...
1
Ruby
Ruby
improve `supported_repos` array syntax
63a1a078b9b101fd5654ffcdf099632f3f258851
<ide><path>Library/Homebrew/dev-cmd/contributions.rb <ide> module Homebrew <ide> <ide> module_function <ide> <del> SUPPORTED_REPOS = ( <del> %w[brew core cask] + <del> OFFICIAL_CMD_TAPS.keys.map { |t| t.delete_prefix("homebrew/") } + <del> OFFICIAL_CASK_TAPS <del> ).freeze <add> SUPPORTED_REPOS ...
1
Javascript
Javascript
add meridiemhour to locales that need it
274e83ca00c74d0b48b04dadf503978cbce9ade5
<ide><path>locale/hi.js <ide> }, <ide> // Hindi notation for meridiems are quite fuzzy in practice. While there exists <ide> // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. <del> meridiemParse: /रात|सुबह|दोपहर|शाम|रात/, <del> isPM: function (input) { <del>...
16
Java
Java
add flux<part> serverwebexchange.getparts()
11c7907a596d97585699440538b478d6e0c7edcc
<ide><path>spring-web/src/main/java/org/springframework/web/server/ServerWebExchange.java <ide> import java.util.function.Consumer; <ide> import java.util.function.Function; <ide> <add>import reactor.core.publisher.Flux; <ide> import reactor.core.publisher.Mono; <ide> <ide> import org.springframework.context.Applicat...
3
Ruby
Ruby
use any? instead of !empty?
af64ac4e5ce8406137d5520fa88e8f652ab703e9
<ide><path>activemodel/lib/active_model/dirty.rb <ide> module Dirty <ide> # person.name = 'bob' <ide> # person.changed? # => true <ide> def changed? <del> !changed_attributes.empty? <add> changed_attributes.any? <ide> end <ide> <ide> # List of attributes with unsaved changes.
1
PHP
PHP
use swift_transportexception for mailgun & ses
1563361e1a4f786e2ddfc24914d579639782893d
<ide><path>src/Illuminate/Mail/Transport/MailgunTransport.php <ide> namespace Illuminate\Mail\Transport; <ide> <ide> use GuzzleHttp\ClientInterface; <add>use GuzzleHttp\Exception\GuzzleException; <ide> use Swift_Mime_SimpleMessage; <add>use Swift_TransportException; <ide> <ide> class MailgunTransport extends Transpor...
2
Java
Java
make confclasspostpro ordered.highest_precedence
b78dcc59fe0a2f9937c65df1134cc87e0350cb9b
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassPostProcessor.java <ide> * @since 3.0 <ide> */ <ide> public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPostProcessor, <del> ResourceLoaderAware, BeanClassLoaderAware, EnvironmentAware, Applica...
1
Text
Text
change solaris tag to smartos
e8c9f6f0be14c36c54ad2b6d6196d901d71faf18
<ide><path>doc/onboarding-extras.md <ide> Please use these when possible / appropriate <ide> ### Other Labels <ide> <ide> * Operating system labels <del> * `os x`, `windows`, `solaris`, `aix` <add> * `os x`, `windows`, `smartos`, `aix` <ide> * No linux, linux is the implied default <ide> * Architecture labels <ide...
1
Text
Text
fix typos in asset_pipeline.md [ci skip]
90eb3746b289e79f38252f01ae127bc99085a9b9
<ide><path>guides/source/asset_pipeline.md <ide> assets. <ide> ### Serving GZipped version of assets <ide> <ide> By default, gzipped version of compiled assets will be generated, along <del>with the non-gzipped version of assets. Gzipped assets help reduce, the transmission of <del>date over the wire. You can config...
1
PHP
PHP
add exception message to test
6eb6bea622890afb2b62372e775f054115243abf
<ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php <ide> public function testSameSourceTargetJunction() <ide> ]); <ide> <ide> $this->expectException(InvalidArgumentException::class); <add> $this->expectExceptionMessage('The `This` association on `Articles` cannot target the same tab...
1
Javascript
Javascript
use warning() over console.error() direct call
dd1b7afc14056c1d1415a8eed0781365360ba646
<ide><path>packages/react-dom/src/events/ReactDOMEventListener.js <ide> var ReactGenericBatching = require('events/ReactGenericBatching'); <ide> var ReactErrorUtils = require('shared/ReactErrorUtils'); <ide> var ReactFiberTreeReflection = require('shared/ReactFiberTreeReflection'); <ide> var ReactTypeOfWork = require('...
1
Text
Text
fix missing dash
3363f26a42e5743540218d3ea46cda160ea4b560
<ide><path>examples/with-dotenv/README.md <ide> Execute [`create-next-app`](https://github.com/segmentio/create-next-app) with [ <ide> ```bash <ide> npx create-next-app --example with-dotenv with-dotenv-app <ide> # or <del>yarn create next-app --example with-dotenv with-dotenv-app <add>yarn create-next-app --example wi...
1
Text
Text
fix few typos in readme.
63877ae8499b8bc8152ec38246c4cbdf876b50be
<ide><path>README.md <ide> Flowable.range(1, 10) <ide> .blockingSubscribe(System.out::println); <ide> ``` <ide> <del>Practically, paralellism in RxJava means running independent flows and merging their results back into a single flow. The operator `flatMap` does this by first mapping each number from 1 to 10 into it...
1
PHP
PHP
fix inflector use in wincacheengine, xcacheengine
6488669eb2eb52001d5303acdd6789328af4add2
<ide><path>src/Cache/Engine/WincacheEngine.php <ide> namespace Cake\Cache\Engine; <ide> <ide> use Cake\Cache\CacheEngine; <add>use Cake\Utility\Inflector; <ide> <ide> /** <ide> * Wincache storage engine for cache <ide><path>src/Cache/Engine/XcacheEngine.php <ide> namespace Cake\Cache\Engine; <ide> <ide> use Cake\Ca...
2
Python
Python
fix unbound error
f3d661de6676125bc765e286c5dd89e3e10ad82d
<ide><path>flask/app.py <ide> def __init__(self, import_name, static_path=None, static_url_path=None, <ide> #: def to_python(self, value): <ide> #: return value.split(',') <ide> #: def to_url(self, values): <del> #: return ','.join(BaseConverter.to_url(...
1
Java
Java
add space before cookie attributes
6e71828a351ae31dec6bb0621266e4cef6e4a42f
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java <ide> private String getCookieHeader(Cookie cookie) { <ide> StringBuilder buf = new StringBuilder(); <ide> buf.append(cookie.getName()).append('=').append(cookie.getValue() == null ? "" : cookie.getValue()); <ide> if (S...
5
Text
Text
remove period from within links
102ee601ff8245831b931288c4b47bf0ba47fc66
<ide><path>guides/source/security.md <ide> Additional Resources <ide> <ide> The security landscape shifts and it is important to keep up to date, because missing a new vulnerability can be catastrophic. You can find additional resources about (Rails) security here: <ide> <del>* Subscribe to the Rails security [mailin...
1
Go
Go
use runtime spec modifier for metrics plugin hook
426e610e43179d58b29c496bc79a53f410a4b1e1
<ide><path>daemon/metrics.go <ide> package daemon <ide> <ide> import ( <del> "path/filepath" <ide> "sync" <ide> <del> "github.com/docker/docker/pkg/mount" <ide> "github.com/docker/docker/pkg/plugingetter" <ide> metrics "github.com/docker/go-metrics" <ide> "github.com/pkg/errors" <ide> func (d *Daemon) cleanupMetr...
6
Javascript
Javascript
fix style issues in core and scales
bddd4cd94bbb2fa40d36029433069fa7950fd3ef
<ide><path>src/core/core.helpers.js <ide> module.exports = function(Chart) { <ide> return objClone; <ide> }; <ide> helpers.extend = function(base) { <del> var setFn = function(value, key) { base[key] = value; }; <add> var setFn = function(value, key) { <add> base[key] = value; <add> }; <ide> for (var i = 1, ...
9
PHP
PHP
update savemany parameter hint
4219f0ac29615626be29940a6e20f047cb8204b9
<ide><path>src/Illuminate/Database/Eloquent/Relations/HasOneOrMany.php <ide> public function save(Model $model) <ide> /** <ide> * Attach a collection of models to the parent instance. <ide> * <del> * @param \Illuminate\Database\Eloquent\Collection|array $models <del> * @return \Illuminate\Databa...
1
PHP
PHP
refactor the mail fake to not be really stupid
b1d8f813d13960096493f3adc3bc32ace66ba2e6
<ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php <ide> public function assertSent($mailable, $callback = null) <ide> ); <ide> } <ide> <del> /** <del> * Assert if a mailable was sent based on a truth-test callback. <del> * <del> * @param mixed $users <del> * @param string ...
2
Go
Go
use condition variable to wake stats collector
e75e6b0e31428c00047bc814746aff4b4c7c90ad
<ide><path>daemon/stats/collector.go <ide> import ( <ide> // Collector manages and provides container resource stats <ide> type Collector struct { <ide> m sync.Mutex <add> cond *sync.Cond <ide> supervisor supervisor <ide> interval time.Duration <ide> publishers map[*container.Container]*pubsub.Publ...
1
Python
Python
preserve array order in np.delete
ed527cd7b28a76c8ecb2bd0e32a74a03767916bb
<ide><path>numpy/lib/function_base.py <ide> def delete(arr, obj, axis=None): <ide> if wrap: <ide> return wrap(arr) <ide> else: <del> return arr.copy() <add> return arr.copy(order=arrorder) <ide> <ide> slobj = [slice(None)]*ndim <ide> N = arr.shape[axis] <ide> d...
2
PHP
PHP
move the paths used into options
442d889f99a11fe4a28f43dd2d35ac77a9fb41b1
<ide><path>lib/Cake/Model/Model.php <ide> protected function _findThreaded($state, $query, $results = array()) { <ide> return $query; <ide> } elseif ($state === 'after') { <ide> return Set::nest($results, array( <del> 'alias' => $this->alias, <del> 'primaryKey' => $this->primaryKey...
2
Go
Go
dump request when daemon is set to debug
37dbe075196d638d6bd417716deaf067247ee966
<ide><path>api/server/middleware.go <ide> package server <ide> <ide> import ( <add> "bytes" <add> "encoding/json" <add> "io/ioutil" <ide> "net/http" <ide> "runtime" <ide> "strings" <ide> func (s *Server) loggingMiddleware(handler httputils.APIFunc) httputils.APIFunc <ide> } <ide> } <ide> <add>// debugRequestMiddl...
1
Python
Python
use python 3 syntax for super() where possible
4c62e53f28a15d4766548cbe1eaff2cfbe8b877a
<ide><path>keras/api/tests/api_compatibility_test.py <ide> def _FilterGoldenProtoDict(golden_proto_dict, omit_golden_symbols_map): <ide> class ApiCompatibilityTest(tf.test.TestCase): <ide> <ide> def __init__(self, *args, **kwargs): <del> super(ApiCompatibilityTest, self).__init__(*args, **kwargs) <add> super()...
260