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
PHP
PHP
add table options to mysql
2b90e7dbc75cccae5f7b1fc76eba57bf6fcbe049
<ide><path>lib/Cake/Database/Schema/MysqlSchema.php <ide> public function dropTableSql(Table $table) { <ide> */ <ide> public function createTableSql(Table $table, $columns, $constraints, $indexes) { <ide> $content = implode(",\n", array_merge($columns, $constraints, $indexes)); <del> return [sprintf("CREATE TABLE ...
2
Python
Python
remove layer creation
237a543595c68ba2bc2bbdb64c11e4a811879b21
<ide><path>official/nlp/modeling/layers/on_device_embedding_test.py <ide> def test_one_hot_layer_invocation_with_mixed_precision(self): <ide> output = model.predict(input_data) <ide> self.assertEqual(tf.float16, output.dtype) <ide> <del> def test_use_scale_layer_creation(self): <del> vocab_size = 31 <del> ...
1
Python
Python
fix incorrect env_variables keyword
3c806ff32d48e5b7a40b92500969a0597106d7db
<ide><path>dev/breeze/src/airflow_breeze/utils/docker_command_utils.py <ide> def get_env_variables_for_docker_commands(params: Union[ShellParams, BuildCiPara <ide> # Set constant defaults if not defined <ide> for variable in DOCKER_VARIABLE_CONSTANTS: <ide> constant_param_value = DOCKER_VARIABLE_CONSTAN...
1
Javascript
Javascript
move setupallowedflags() into per_thread.js
36f483b79b56db9da62c15db4bb3293032ac2073
<ide><path>lib/internal/bootstrap/node.js <ide> <ide> perf.markMilestone(NODE_PERFORMANCE_MILESTONE_BOOTSTRAP_COMPLETE); <ide> <del> setupAllowedFlags(); <add> perThreadSetup.setupAllowedFlags(); <ide> <ide> startExecution(); <ide> } <ide> new vm.Script(source, { displayErrors: true, filename });...
2
Javascript
Javascript
add custom redirect back
aa62fdbfe98f872785f792108c6d55582da7e12d
<ide><path>api-server/server/boot/authentication.js <ide> module.exports = function enableAuthentication(app) { <ide> } else { <ide> api.get( <ide> '/signin', <add> (req, res, next) => { <add> if (req && req.query && req.query.returnTo) { <add> req.query.returnTo = `${homeLocation}/${re...
9
Mixed
Text
fix docker start help message
3c37f88aff42c1d900d18d1a8c81fc857e650d44
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdStart(args ...string) error { <ide> cErr chan error <ide> tty bool <ide> <del> cmd = cli.Subcmd("start", "CONTAINER [CONTAINER...]", "Restart a stopped container", true) <add> cmd = cli.Subcmd("start", "CONTAINER [CONTAINER...]", "Star...
3
PHP
PHP
fix incorrect doc blocks
54e960669353122023d99482f40817ba2cd4367c
<ide><path>Cake/ORM/Association/BelongsToMany.php <ide> public function attachTo(Query $query, array $options = []) { <ide> /** <ide> * Get the relationship type. <ide> * <del> * @return string MANY_TO_ONE <add> * @return string <ide> */ <ide> public function type() { <ide> return self::MANY_TO_MANY; <ide><path>C...
2
Javascript
Javascript
preserve existing defaults
fde84f272acf441fbfb8d51931c2484e1d34c805
<ide><path>src/core/core.typedRegistry.js <ide> export default class TypedRegistry { <ide> return scope; <ide> } <ide> <del> if (Object.keys(defaults.get(scope)).length) { <del> throw new Error('Can not register "' + id + '", because "defaults.' + scope + '" would collide with existing defaults'); <del> } <de...
2
Text
Text
update pr-url for dep0022 eol
17e3f3be763cb440bb315911f3e926044ddb128c
<ide><path>doc/api/deprecations.md <ide> The `Server.listenFD()` method was deprecated and removed. Please use <ide> <!-- YAML <ide> changes: <ide> - version: REPLACEME <del> pr-url: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/31169 <ide> description: End-of-Life. <ide> - version: v7.0.0 <...
1
PHP
PHP
add tests to dispatchshell
baf4147d6757b1c1d7de2d4d706d92c23a822142
<ide><path>tests/TestCase/Console/ShellTest.php <ide> public function testDispatchShellArgsParser() <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add> /** <add> * test calling a shell that dispatch another one <add> * <add> * @return void <add> */ <add> public function...
2
Python
Python
add check for methods
68a1acf41586bb65538af84ce9c74ec5e0872750
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'): <ide> integer_arrays = (np.issubdtype(ar1.dtype, np.integer) and <ide> np.issubdtype(ar2.dtype, np.integer)) <ide> <add> if method not in ['auto', 'sort', 'dictionary']: <add> ...
1
Python
Python
update dutch language data
90f6ff12c95d54a6f90adf6374d0d1b1ccd0fd1b
<ide><path>spacy/nl/language_data.py <ide> <ide> <ide> #TODO Make tokenizer excpetions for Dutch <del>TOKENIZER_EXCEPTIONS = { <del> "''": [ <del> { <del> "F": "''" <del> } <del> ], <del> "'S": [ <del> { <del> "F": "'S", <del> "L": "es" <del> } <de...
1
Ruby
Ruby
add cvsrequirement and subversionrequirement
baa3d187d63d5a9bb17fd4dbc052a899b597c2b8
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def resource_dep(spec, tags) <ide> elsif strategy <= BazaarDownloadStrategy <ide> Dependency.new("bazaar", tags) <ide> elsif strategy <= CVSDownloadStrategy <del> Dependency.new("cvs", tags) if MacOS.version >= :mavericks || !MacOS::Xcode.prov...
4
Ruby
Ruby
ignore validation errors
1fecd418e4e93a0bb7c92496746ba75f1d80acd8
<ide><path>Library/Homebrew/cmd/versions.rb <ide> def text_from_sha sha <ide> end <ide> <ide> IGNORED_EXCEPTIONS = [SyntaxError, TypeError, NameError, <del> ArgumentError, FormulaSpecificationError] <add> ArgumentError, FormulaSpecificationError, <add> ...
1
Go
Go
remove deprecated pkg/mount
97a235196ef097d7ac53a7c7bb342b1409383779
<ide><path>pkg/mount/deprecated.go <del>package mount // import "github.com/docker/docker/pkg/mount" <del> <del>// Deprecated: this package is not maintained and will be removed. <del>// Use github.com/moby/sys/mount and github.com/moby/sys/mountinfo instead. <del> <del>import ( <del> "github.com/moby/sys/mountinfo" <d...
3
Mixed
Ruby
show helpful messages on invalid param. encodings
3f81b3753ffdca8617422e518e1fddd581f5a712
<ide><path>actionpack/CHANGELOG.md <add>* Show helpful message in `BadRequest` exceptions due to invalid path <add> parameter encodings. <add> <add> Fixes #21923. <add> <add> *Agis Anastasopoulos* <add> <ide> * Deprecate `config.static_cache_control` in favor of <ide> `config.public_file_server.headers...
4
Python
Python
fix qa pipeline on windows
28c77ddf3bd39f3e528f41d94a67b88ad967173a
<ide><path>src/transformers/pipelines.py <ide> def __call__(self, *args, **kwargs): <ide> with torch.no_grad(): <ide> # Retrieve the score for the context tokens only (removing question tokens) <ide> fw_args = {k: torch.tensor(v, device=self.device) fo...
1
Ruby
Ruby
push master with tags
b33203604efbc4aead76233fe8c7a39e537b7b1b
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def run <ide> <ide> remote = "git@github.com:BrewTestBot/homebrew.git" <ide> tag = pr ? "pr-#{pr}" : "testing-#{number}" <del> safe_system "git push --force #{remote} :refs/tags/#{tag}" <add> safe_system "git push --force #{remote} master:master :refs/t...
1
PHP
PHP
add setvalidators method
cbe3b38bd9e7bd2935691eacccbd1df249ecb1c1
<ide><path>src/Illuminate/Routing/Route.php <ide> public static function getValidators() <ide> ); <ide> } <ide> <add> /** <add> * Set the route validators. <add> * <add> * @param array $validators <add> * <add> * @return void <add> */ <add> public static function setValidators($valida...
1
Text
Text
add note for image responsive layout
09baca03ad4cfba9706e5ed0f8ee5118c0040d24
<ide><path>docs/api-reference/next/image.md <ide> but maintain the original dimensions for larger viewports. <ide> <ide> When `responsive`, the image will scale the dimensions down for smaller <ide> viewports and scale up for larger viewports. <add>Note: the responsive layout may not work correctly if the parent eleme...
1
Python
Python
change string to f-string
54d8c9f50228da85f79755e2891a368e572425ad
<ide><path>numpy/tests/test_public_api.py <ide> def test_all_modules_are_expected(): <ide> modnames.append(modname) <ide> <ide> if modnames: <del> raise AssertionError("Found unexpected modules: {}".format(modnames)) <add> raise AssertionError(f'Found unexpected modules: {modnames}') <ide...
1
Python
Python
standardize creation of bytestrings in dtype tests
f723325b6f36868dfa483ff777e0447c229ffc42
<ide><path>numpy/core/tests/test_dtype.py <ide> def test_dtype_from_bytes(self): <ide> assert_dtype_equal(np.dtype(b'f'), np.dtype('float32')) <ide> <ide> # Bytes with non-ascii values raise errors <del> assert_raises(TypeError, np.dtype, bytes([255])) <add> assert_raises(TypeError, np.dt...
1
PHP
PHP
fix undefined variable
59a77e609756bec6d970e75a0500ae52e6fe685e
<ide><path>src/Illuminate/Cache/RedisTaggedCache.php <ide> public function increment($key, $value = 1) <ide> */ <ide> public function decrement($key, $value = 1) <ide> { <del> $this->pushStandardKeys($s->tags->getNamespace(), $key); <add> $this->pushStandardKeys($this->tags->getNamespace(), $...
1
Java
Java
add onbackpressurebuffer with capacity
1d15fea659d5f84bd666b164f3bf6ebcbb91327d
<ide><path>src/main/java/rx/Observable.java <ide> import java.util.*; <ide> import java.util.concurrent.*; <ide> <add>import rx.annotations.Beta; <ide> import rx.annotations.Experimental; <ide> import rx.exceptions.*; <ide> import rx.functions.*; <ide> public final Observable<T> onBackpressureBuffer() { <ide> ...
3
Javascript
Javascript
bind events in scatter chart
42e2c237d4e17db68929e47c9146ba023dca69ad
<ide><path>src/Chart.Scatter.js <ide> name: "Scatter", <ide> defaults: defaultConfig, <ide> initialize: function() { <add> <add> // Events <add> helpers.bindEvents(this, this.options.events, this.events); <add> <ide> //Custom Point Defaults <ide> hel...
1
Mixed
Text
add a specific config for the update command
a4f6920731c6af27a7e89c3da8d0e6fd309de90a
<ide><path>api/server/router/container/container_routes.go <ide> package container <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "io" <ide> "net/http" <ide> func (s *containerRouter) postContainerUpdate(ctx context.Context, w http.Respon <ide> return err <ide> } <ide> <del> _, hostConfig, _, err ...
3
Javascript
Javascript
add test for view controller changes
6a6824860686ec8f18adc0fa739258f92df14cec
<ide><path>packages/ember-views/tests/views/view/controller_test.js <ide> QUnit.test('controller property should be inherited from nearest ancestor with c <ide> grandchild.destroy(); <ide> }); <ide> }); <add> <add>QUnit.test('controller changes are passed to descendants', function() { <add> var grandparent = Con...
1
Text
Text
change typo on step 76
3edc38e05402e85f3b4eb6ff7f4a7c677793052e
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f46fc57528aa1c4b5ea7c2e.md <ide> dashedName: step-76 <ide> <ide> # --description-- <ide> <del>Changing the `bottom-margin` to `5px` looks great. However, now the space between the `Cinnamon Roll` menu item an...
1
PHP
PHP
fix code style
e336ecac583c6607a3719c362dc3a745e3fd7c0a
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function qualifyColumn($column) <ide> * @param array|mixed $columns <ide> * @return array <ide> */ <del> public function qualifyColumns($columns) <add> public function qualifyColumns($columns) <ide> { <ide> $columns =...
1
PHP
PHP
use a callback in findorcreate instead of an array
1f0eb1e800a72d06d64670e48b6fd637cb191f3e
<ide><path>src/ORM/Table.php <ide> public function get($primaryKey, $options = []) { <ide> * the $defaults. When a new entity is created, it will be saved. <ide> * <ide> * @param array $search The criteria to find existing records by. <del> * @param array $defaults The array of defaults to patch into <del> * the n...
2
Javascript
Javascript
remove unnecessary comma in convolutionshader
67986fe8f2892733300066fc1bcbbbf767486106
<ide><path>examples/js/shaders/ConvolutionShader.js <ide> THREE.ConvolutionShader = { <ide> defines: { <ide> <ide> "KERNEL_SIZE_FLOAT": "25.0", <del> "KERNEL_SIZE_INT": "25", <add> "KERNEL_SIZE_INT": "25" <ide> <ide> }, <ide>
1
Go
Go
implement fallback operation for driver.diff()
e82f8c1661f3fa18e4dc6ca3aebe4dcc46e8961b
<ide><path>container.go <ide> func (container *Container) ExportRw() (archive.Archive, error) { <ide> if container.runtime == nil { <ide> return nil, fmt.Errorf("Can't load storage driver for unregistered container %s", container.ID) <ide> } <del> return container.runtime.driver.Diff(container.ID) <add> <add> retur...
5
Javascript
Javascript
disable an element directive test on ie8
726e0c246bfbece82fcf606493e64b97d3e6e711
<ide><path>test/ng/directive/ngRepeatSpec.js <ide> describe('ngRepeat', function() { <ide> })); <ide> <ide> <del> it('should work when placed on a root element of element directive with ASYNC replaced template', <del> inject(function($templateCache, $compile, $rootScope) { <del> $compileProvider.di...
1
Javascript
Javascript
make public certs always viewable
2785875941f83847269eb062ba07701f0c4b5d44
<ide><path>api-server/server/middlewares/request-authorization.js <ide> import { wrapHandledError } from '../utils/create-handled-error'; <ide> const apiProxyRE = /^\/internal\/|^\/external\//; <ide> const newsShortLinksRE = /^\/internal\/n\/|^\/internal\/p\?/; <ide> const loopbackAPIPathRE = /^\/internal\/api\//; <add...
1
Javascript
Javascript
add node_unique_id value to err message
0662ebeef99b9ce233b0c683e762e8c76ce69785
<ide><path>test/parallel/test-cluster-basic.js <ide> const assert = require('assert'); <ide> const cluster = require('cluster'); <ide> <ide> assert.strictEqual('NODE_UNIQUE_ID' in process.env, false, <del> 'NODE_UNIQUE_ID should be removed on startup'); <add> `NODE_UNIQUE_ID (${proc...
1
Text
Text
use oxford comma
da74c312e65e5cccabdae26b2867cc1074ec88a4
<ide><path>README.md <ide> or packaging just about any resource or asset. <ide> <ide> **TL;DR** <ide> <del>* Bundles [ES Modules](http://www.2ality.com/2014/09/es6-modules-final.html), [CommonJS](http://wiki.commonjs.org/) and [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules (even combined). <add>* Bundles ...
1
Go
Go
remove unused haswin32ksupport()
be463cbd6c7a3eaec327016490345e7e2724e234
<ide><path>pkg/system/syscall_windows.go <ide> import ( <ide> "unsafe" <ide> <ide> "github.com/sirupsen/logrus" <del> "golang.org/x/sys/windows" <ide> ) <ide> <ide> const ( <ide> // Deprecated: use github.com/docker/pkg/idtools.SeTakeOwnershipPrivilege <ide> SeTakeOwnershipPrivilege = "SeTakeOwnershipPrivilege" <...
2
Javascript
Javascript
use const where applicable in usestrictplugin
1d3265445c891336f0ef5a537ac6adb01169f862
<ide><path>lib/UseStrictPlugin.js <ide> class UseStrictPlugin { <ide> apply(compiler) { <ide> compiler.plugin("compilation", (compilation, params) => { <ide> params.normalModuleFactory.plugin("parser", (parser) => { <del> let parserInstance = parser; <add> const parserInstance = parser; <ide> parser.plu...
1
PHP
PHP
use method instead of property for config
b3098bddfb78a5fdb753b276986511cc1180d365
<ide><path>tests/test_app/Plugin/TestPlugin/src/Model/Table/TestPluginCommentsTable.php <ide> */ <ide> class TestPluginCommentsTable extends Table { <ide> <del> protected $_table = 'test_plugin_comments'; <add> public function initialize(array $config) { <add> $this->table('test_plugin_comments'); <add> } <ide> <id...
1
PHP
PHP
remove unneeded code
d9be4bfe0367a8e07eed4931bdabf135292abb1b
<ide><path>src/Illuminate/Queue/Jobs/JobName.php <ide> public static function resolve($name, $payload) <ide> return $payload['displayName']; <ide> } <ide> <del> if ($name === 'Illuminate\Queue\CallQueuedHandler@call') { <del> return Arr::get($payload, 'data.commandName', $name); <...
1
Javascript
Javascript
add function support to the `domain` property
8fc521cb028ffaec6b1a0fd2af9df4105d169511
<ide><path>d3.chart.js <ide> d3.chart.boxplot = function() { <ide> <ide> // Compute the new x-scale. <ide> var x1 = d3.scale.linear() <del> .domain(domain || [min, max]) <add> .domain(domain ? domain.call(this, d, i) : [min, max]) <ide> .range([height, 0]); <ide> <ide> //...
3
Javascript
Javascript
allow context menu when controls are disabled
d45a042cf962e9b1aa9441810ba118647b48aacb
<ide><path>examples/js/controls/OrbitControls.js <ide> THREE.OrbitControls = function ( object, domElement ) { <ide> <ide> function onContextMenu( event ) { <ide> <add> if ( scope.enabled === false ) return; <add> <ide> event.preventDefault(); <ide> <ide> }
1
Ruby
Ruby
pass the env hash into the builderror constructor
a607c71123ff42fe7060f8c49a12a247c13104a6
<ide><path>Library/Homebrew/exceptions.rb <ide> def message <ide> class BuildError < Homebrew::InstallationError <ide> attr_reader :command, :env <ide> <del> def initialize formula, cmd, args <add> def initialize(formula, cmd, args, env) <ide> @command = cmd <del> @env = ENV.to_hash <add> @env = env <ide...
2
Javascript
Javascript
remove unneeded `override_container_key`
9ee5e9cb327b716fe7b83c6daa1a6d215c79f1cc
<ide><path>packages/ember-runtime/lib/system/object.js <ide> import Observable from '../mixins/observable'; <ide> import { assert } from 'ember-debug'; <ide> import { DEBUG } from 'ember-env-flags'; <ide> <del>let OVERRIDE_CONTAINER_KEY = symbol('OVERRIDE_CONTAINER_KEY'); <ide> let OVERRIDE_OWNER = symbol('OVERRIDE_OW...
1
Text
Text
fix title for v0.8.23 release
50be39792af00c2d1e2ce74bc50f5e561a8681a2
<ide><path>doc/blog/release/v0.8.23.md <ide> date: Mon Apr 8 17:32:26 PDT 2013 <ide> version: 0.8.23 <ide> category: release <del>title: Node v0.8.23 (Stable) <del>slug: node-v0-8-23-stable <add>title: Node v0.8.23 (Legacy) <add>slug: node-v0-8-23-legacy <ide> <del>2013.04.09, Version 0.8.23 (maintenance) <add>2013.0...
1
Python
Python
remove order_by from autofilterset
ab213cbc41114ec9417630d5298546102a706b96
<ide><path>rest_framework/filters.py <ide> class AutoFilterSet(self.default_filter_set): <ide> class Meta: <ide> model = queryset.model <ide> fields = filter_fields <del> order_by = True <ide> return AutoFilterSet <ide> <ide> ...
1
Python
Python
get language name first if no model path exists
5610fdcc064877174f383654b615c1c97b2ff96d
<ide><path>spacy/__init__.py <ide> def load(name, **overrides): <ide> model_name = resolve_model_name(name) <ide> model_path = data_path / model_name <ide> if not model_path.exists(): <add> lang_name = util.get_lang_class(name).lang <ide> model_path = None <ide> ...
1
Text
Text
use consistent new lines
6924dac6cef7a0eae661903a17b1d35e22166c27
<ide><path>doc/guides/maintaining-V8.md <ide> Original commit message: <ide> Refs: https://github.com/v8/v8/commit/a51f429772d1e796744244128c9feeab4c26a854 <ide> PR-URL: https://github.com/nodejs/node/pull/7833 <ide> ``` <add> <ide> * Open a PR against the `v6.x-staging` branch in the Node.js repo. Launch the <ide> n...
5
Ruby
Ruby
fix "uninitialized constant envconfig" errors
9f296aa6ac308a32f4602de4421fd2a0f561c103
<ide><path>Library/Homebrew/bintray.rb <ide> def open_api(url, *extra_curl_args, auth: true) <ide> args = extra_curl_args <ide> <ide> if auth <del> raise UsageError, "HOMEBREW_BINTRAY_USER is unset." unless (user = EnvConfig.bintray_user) <del> raise UsageError, "HOMEBREW_BINTRAY_KEY is unset." unles...
1
Python
Python
add tests of nextafter around 0
78df10f58d8963829865515f98695f04a1f76e00
<ide><path>numpy/core/tests/test_umath.py <ide> def test_nextafterf(): <ide> def test_nextafterl(): <ide> return _test_nextafter(np.longdouble) <ide> <add>def test_nextafter_0(): <add> for t, direction in itertools.product(np.sctypes['float'], (1, -1)): <add> tiny = np.finfo(t).tiny <add> assert_(...
1
Text
Text
add readline.emitkeypressevents note
ac3477971fda14db00dedec6ac752b6da8a07bf8
<ide><path>doc/api/readline.md <ide> autocompletion is disabled when copy-pasted input is detected. <ide> <ide> If the `stream` is a [TTY][], then it must be in raw mode. <ide> <add>*Note*: This is automatically called by any readline instance on its `input` <add>if the `input` is a terminal. Closing the `readline` i...
1
Javascript
Javascript
put legacy _handle accessors on prototypes
e83d7e8d88e48cb17a6517f0a85d6bc1480c9f3f
<ide><path>lib/internal/crypto/cipher.js <ide> function getUIntOption(options, key) { <ide> function createCipherBase(cipher, credential, options, decipher, iv) { <ide> const authTagLength = getUIntOption(options, 'authTagLength'); <ide> <del> legacyNativeHandle(this, new CipherBase(decipher)); <add> this[kHandle]...
5
Python
Python
use six.moves.range instead of range
b2fc63b3fcd1cd7732b732d07b108cec64bf75de
<ide><path>lm_1b/lm_1b_eval.py <ide> """ <ide> import os <ide> import sys <add>import six <ide> <ide> import numpy as np <ide> import tensorflow as tf <ide> def _SampleModel(prefix_words, vocab): <ide> <ide> prefix = [vocab.word_to_id(w) for w in prefix_words.split()] <ide> prefix_char_ids = [vocab.word_to_char_i...
1
Java
Java
fix checkstyle violations
f2a541511185dd960852d15b87fd18524dfc312b
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/AutowireUtils.java <ide> else if (arg instanceof TypedStringValue) { <ide> * {@code null}) <ide> * @param parameterIndex the index of the parameter in the constructor or method <ide> * that declares the parameter <del> * @see #resolv...
1
Python
Python
fix activity regularization in rnns
f9202817f3e2f65c83910015552da88969b44dbc
<ide><path>keras/__init__.py <ide> from __future__ import absolute_import <add> <add>from . import activations <add>from . import applications <ide> from . import backend <ide> from . import datasets <ide> from . import engine <ide><path>keras/layers/recurrent.py <ide> def __init__(self, units, <ide> self.kerne...
4
Text
Text
update documentation for compose/swarm/network
fe1f210c42ba2978bd00450d2e91b23f040b8e5e
<ide><path>experimental/compose_swarm_networking.md <ide> You’ll also need a [Docker Hub](https://hub.docker.com/account/signup/) accoun <ide> <ide> Set the `DIGITALOCEAN_ACCESS_TOKEN` environment variable to a valid Digital Ocean API token, which you can generate in the [API panel](https://cloud.digitalocean.com/sett...
1
PHP
PHP
fix missing class errors
962fe7c571ae7b7c38a95a796cb1d97bec65422c
<ide><path>lib/Cake/Test/Case/Controller/ComponentCollectionTest.php <ide> * @since CakePHP(tm) v 2.0 <ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) <ide> */ <del> <add>App::uses('CakeResponse', 'Network'); <ide> App::uses('CookieComponent', 'Controller/Component'); <...
2
Mixed
Ruby
add note regarding "trix-content" class
e0d57541ab9daae14eab6da82175b4a3160d1ed3
<ide><path>actiontext/app/helpers/action_text/tag_helper.rb <ide> module TagHelper <ide> # that Trix will write to on changes, so the content will be sent on form submissions. <ide> # <ide> # ==== Options <del> # * <tt>:class</tt> - Defaults to "trix-content" which ensures default styling is applied. <ad...
2
PHP
PHP
add missing tests
e1e9772b6685ff1d0258282ebc70d57a38bcab7b
<ide><path>src/Console/Command/Task/ModelTask.php <ide> public function execute() { <ide> if (empty($this->args)) { <ide> $this->out(__d('cake_console', 'Choose a model to bake from the following:')); <ide> foreach ($this->listAll() as $table) { <del> $this->out('- ' . $table); <add> $this->out('- ' . $th...
2
Javascript
Javascript
make `rsvpafter` a private randomized queue name
c345bfc40317d6d4e93c73ff34f42c431d379c5f
<ide><path>packages/ember-metal/lib/run_loop.js <add>import { privatize as P } from 'container'; <ide> import { assert, deprecate, isTesting } from 'ember-debug'; <ide> import { <ide> onErrorTarget <ide> const backburner = new Backburner( <ide> <ide> // used to re-throw unhandled RSVP rejection errors specifical...
2
Text
Text
add clarification of routing to a dynamic route
d0c57cf6b3473c2a280ab03059a24f20555e9d3f
<ide><path>docs/routing/dynamic-routes.md <ide> The `query` objects are as follows: <ide> - `pages/post/[pid].js` - Will match `/post/1`, `/post/abc`, etc. But not `/post/create` <ide> - `pages/post/[...slug].js` - Will match `/post/1/2`, `/post/a/b/c`, etc. But not `/post/create`, `/post/abc` <ide> - Pages that ar...
1
Ruby
Ruby
show upgradeable dependents during dry run
bcdb0c769888dc1af4b4074fd237e98478779880
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> Cleanup.install_formula_clean!(f) <ide> end <ide> <del> Upgrade.check_installed_dependents(args: args) <add> Upgrade.check_installed_dependents(installed_formulae, args: args) <ide> <ide> Homebrew.messages.display_messages(display_...
4
Mixed
Javascript
convert tooltip to a plugin
5aaff3a1aa38ad8f807d676d26dbac933c8f2d6e
<ide><path>docs/configuration/tooltip.md <ide> Example: <ide> ```javascript <ide> /** <ide> * Custom positioner <del> * @function Chart.Tooltip.positioners.custom <add> * @function Tooltip.positioners.custom <ide> * @param elements {Chart.Element[]} the tooltip elements <ide> * @param eventPosition {Point} the posit...
9
Python
Python
prevent etxtbsy errors
110e499fe7dc65429a2fade29fe1573c35d97059
<ide><path>tools/install.py <ide> def try_copy(path, dst): <ide> source_path, target_path = mkpaths(path, dst) <ide> print 'installing %s' % target_path <ide> try_mkdir_r(os.path.dirname(target_path)) <add> try_unlink(target_path) # prevent ETXTBSY errors <ide> return shutil.copy2(source_path, target_path) <id...
1
Ruby
Ruby
remove the compiler gcc-4.3
13816a56875225b65812817d548aec161d2395d9
<ide><path>Library/Homebrew/compilers.rb <ide> # @private <ide> module CompilerConstants <del> GNU_GCC_VERSIONS = %w[4.3 4.4 4.5 4.6 4.7 4.8 4.9 5 6 7 8].freeze <del> GNU_GCC_REGEXP = /^gcc-(4\.[3-9]|[5-8])$/ <add> GNU_GCC_VERSIONS = %w[4.4 4.5 4.6 4.7 4.8 4.9 5 6 7 8].freeze <add> GNU_GCC_REGEXP = /^gcc-(4\.[4-9]|...
1
Ruby
Ruby
feature detect based on ruby version
239f5606308a6ba11c6a591694eadc7920d4c4d1
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def query(path, details, formats) <ide> } <ide> end <ide> <del> if File.const_defined? :FNM_EXTGLOB <add> if RUBY_VERSION >= '2.2.0' <ide> def find_template_paths(query) <ide> Dir[query].reject { |filename| <ide> F...
1
Text
Text
update examples for fs.access()
b4ca3a4dba8226ef380db20b8395fdb5cbffee19
<ide><path>doc/api/fs.md <ide> no effect on Windows (will behave like `fs.constants.F_OK`). <ide> <ide> The final argument, `callback`, is a callback function that is invoked with <ide> a possible error argument. If any of the accessibility checks fail, the error <del>argument will be an `Error` object. The following ...
1
Go
Go
add integration test for pulling a manifest list
ad6c1b76497c4b39953b5af28f83a21a2eb36bf7
<ide><path>integration-cli/docker_cli_pull_local_test.go <ide> package main <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <add> "io/ioutil" <add> "os" <ide> "os/exec" <add> "path/filepath" <add> "runtime" <ide> "strings" <ide> <add> "github.com/docker/distribution" <add> "github.com/docker/distribution/di...
1
PHP
PHP
add facade blocks
9ed157fbba83ff8925b01ee7de7c836ca97cd15c
<ide><path>src/Illuminate/Support/Facades/Storage.php <ide> * @method static array allDirectories(string|null $directory = null) <ide> * @method static bool makeDirectory(string $path) <ide> * @method static bool deleteDirectory(string $directory) <add> * @method static string url(string $path) <add> * @method stati...
1
Javascript
Javascript
add switch test component and more testids
d1f09f7390a89a951299b718e860ef0fdd3b8de9
<ide><path>packages/rn-tester/js/examples/Switch/SwitchExample.js <ide> class ColorSwitchExample extends React.Component<{...}, $FlowFixMeState> { <ide> return ( <ide> <View> <ide> <Switch <add> testID="initial-false-switch" <ide> onValueChange={value => this.setState({colorFalseSwi...
1
Text
Text
add active model info to 5.1 release notes
87367703b35bddf9b63cc96ced90a75e214e5a77
<ide><path>guides/source/5_1_release_notes.md <ide> Please refer to the [Changelog][active-model] for detailed changes. <ide> <ide> ### Removals <ide> <del>### Deprecations <add>* Removed deprecated methods in `ActiveModel::Errors`. <add> ([commit](https://github.com/rails/rails/commit/9de6457ab0767ebab7f2c8bc58...
1
Python
Python
improve performance of np.full (gh-16644)
14d3173931cd958495bf592e0078213a6a66ab1d
<ide><path>numpy/core/numeric.py <ide> def full(shape, fill_value, dtype=None, order='C'): <ide> <ide> """ <ide> if dtype is None: <del> dtype = array(fill_value).dtype <add> fill_value = asarray(fill_value) <add> dtype = fill_value.dtype <ide> a = empty(shape, dtype, order) <ide> ...
2
Ruby
Ruby
revert a writer for `bindparam#value`
b691c2147565cd3e7c4574e01a00ded55317df8d
<ide><path>activerecord/lib/arel/nodes/bind_param.rb <ide> module Arel # :nodoc: all <ide> module Nodes <ide> class BindParam < Node <del> attr_accessor :value <add> attr_reader :value <ide> <ide> def initialize(value) <ide> @value = value
1
Ruby
Ruby
update upsert_all documentation [ci skip]
8049fa19fb0c0a390061ca9420d4495efd24249b
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def upsert(attributes, returning: nil, unique_by: nil) <ide> # <ide> # ==== Examples <ide> # <del> # # Given a Unique Index on books.isbn and the following record: <add> # # Given a unique index on <tt>books.isbn</tt> and the...
1
Java
Java
remove cookie support from serverhttprequest
4c0490a070f1b70755384472a13a6bca9e210ca1
<ide><path>spring-web/src/main/java/org/springframework/http/Cookie.java <del>/* <del> * Copyright 2002-2013 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> * You may obtain a c...
5
PHP
PHP
remove comment bloat from route\finder
0767fa50276240047a1747163b2368afb0250a95
<ide><path>system/route/finder.php <ide> public static function find($name) <ide> return static::$names[$name]; <ide> } <ide> <del> // We haven't located the route before, so we'll need to iterate through each <del> // route to find the matching name. <ide> $arrayIterator = new \RecursiveArrayIterator(static:...
1
Javascript
Javascript
remove unused variables
03e9f84933fe610b04b107cf1f83d17485e8906e
<ide><path>lib/_http_client.js <ide> var parsers = common.parsers; <ide> var freeParser = common.freeParser; <ide> var debug = common.debug; <ide> <del>var IncomingMessage = require('_http_incoming').IncomingMessage; <ide> var OutgoingMessage = require('_http_outgoing').OutgoingMessage; <ide> <ide> var Agent = requir...
11
Ruby
Ruby
fix typo at form_helper docs [ci skip]
724db9eb6236eb21051d85438b62e452765ee291
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def default_form_builder <ide> # end <ide> # <ide> # The above code creates a new method +div_radio_button+ which wraps a div <del> # around the a new radio button. Note that when options are passed in, you <del> # must called +obj...
1
Javascript
Javascript
add securepair for handling of a ssl/tls stream
1128c0bf67221b3b3d6ba729ee212648521c226d
<ide><path>lib/crypto.js <ide> exports.createVerify = function(algorithm) { <ide> }; <ide> <ide> exports.RootCaCerts = RootCaCerts; <add> <add>var securepair = require('securepair'); <add>exports.createPair = securepair.createSecurePair; <ide><path>lib/securepair.js <add>var util = require('util'); <add>var events = r...
2
Javascript
Javascript
prevent the error callback from being called twice
813b5e78b0624e42bb2649694cd694f5c793d563
<ide><path>src/core.js <ide> function getPdf(arg, callback) { <ide> if ('progress' in params) <ide> xhr.onprogress = params.progress || undefined; <ide> <del> if ('error' in params) <add> var calledErrorBack = false; <add> <add> if ('error' in params && !calledErrorBack) { <add> calledErrorBack = true; <id...
1
Javascript
Javascript
add fast path for simple url parsing
4b59db008cec1bfcca2783f4b27c630c9c3fdd73
<ide><path>lib/url.js <ide> function Url() { <ide> var protocolPattern = /^([a-z0-9.+-]+:)/i, <ide> portPattern = /:[0-9]*$/, <ide> <add> // Special case for a simple path URL <add> simplePathPattern = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, <add> <ide> // RFC 2396: characters reserved for delimiting URLs....
1
Python
Python
fix apveyor tests
93d826e74ca9e056d211af920998da17f63eee92
<ide><path>t/unit/utils/test_sysinfo.py <ide> import os <del>import posix <add>import importlib <ide> <ide> import pytest <ide> <ide> from celery.utils.sysinfo import df, load_average <ide> <add>try: <add> posix = importlib.import_module('posix') <add>except Exception: <add> posix = None <add> <ide> <ide> @py...
1
Java
Java
use set.of() for constant sets where appropriate
917c41fd52f655fc4a7c4448e1164afd7e77d21a
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java <ide> /* <del> * Copyright 2002-2021 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License");...
12
Python
Python
remove unnecessary copy of convolve inputs
8724ed764fbcab88b4962aeda23c84fba972ac4b
<ide><path>numpy/core/numeric.py <ide> def convolve(a,v,mode='full'): <ide> array([ 2.5]) <ide> <ide> """ <del> a, v = array(a, ndmin=1), array(v, ndmin=1) <add> a, v = array(a, copy=False, ndmin=1), array(v, copy=False, ndmin=1) <ide> if (len(v) > len(a)): <ide> a, v = v, a <ide> if len(...
2
Mixed
Javascript
support some and every
5badf46f2a9363e6762900e18d4f85541738f738
<ide><path>doc/api/stream.md <ide> import { Resolver } from 'dns/promises'; <ide> await Readable.from([1, 2, 3, 4]).toArray(); // [1, 2, 3, 4] <ide> <ide> // Make dns queries concurrently using .map and collect <del>// the results into an aray using toArray <add>// the results into an array using toArray <ide> const d...
3
Ruby
Ruby
add current ruby globals
d39280bdf7aca09ea7c6d9acf927bd95b6d1e499
<ide><path>Library/Homebrew/extend/fileutils.rb <ide> def copy_metadata(path) <ide> end <ide> end <ide> <del> RUBY_BIN = '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin' <del> <ide> def rake *args <del> system "#{RUBY_BIN}/rake", *args <add> system RUBY_BIN/'rake', *args <ide> end <ide...
3
PHP
PHP
fix return type
916f0d64df114f368a334451ec931bc5b886bca6
<ide><path>src/Datasource/ModelAwareTrait.php <ide> protected function _setModelClass($name) <ide> * <ide> * @param string|null $modelClass Name of model class to load. Defaults to $this->modelClass <ide> * @param string|null $modelType The type of repository to load. Defaults to the modelType() value. <...
1
Javascript
Javascript
remove extra semicolons
0ec093cd410b8797b02055a445d650f72fd16796
<ide><path>lib/_debugger.js <ide> Client.prototype.mirrorObject = function(handle, depth, cb) { <ide> }); <ide> cb(null, mirror); <ide> } <del> }; <add> } <ide> }); <ide> return; <ide> } else if (handle.type === 'function') { <ide> function Interface(stdin, stdout, args) ...
24
Java
Java
add reference counting for undertowdatabuffer
cdd346222c1325ff0197159bc4e2ac5e7568a9e3
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/UndertowServerHttpRequest.java <ide> import java.net.URISyntaxException; <ide> import java.nio.ByteBuffer; <ide> import java.nio.charset.Charset; <add>import java.util.concurrent.atomic.AtomicInteger; <ide> import java.util.function.IntPredica...
1
Javascript
Javascript
remove `inherits()` usage
dcc82b37b631d636e0fefc8272c357ec4a7d6df2
<ide><path>lib/_http_agent.js <ide> function Agent(options) { <ide> } <ide> }); <ide> } <del> <del>util.inherits(Agent, EventEmitter); <add>Object.setPrototypeOf(Agent.prototype, EventEmitter.prototype); <ide> <ide> Agent.defaultMaxSockets = Infinity; <ide> <ide><path>lib/_http_client.js <ide> function ClientRe...
26
Javascript
Javascript
use const where applicable in defineplugin
bb5184bf494b468ab10833dae047dbcf3df5e9a9
<ide><path>lib/DefinePlugin.js <ide> class DefinePlugin { <ide> } <ide> <ide> apply(compiler) { <del> let definitions = this.definitions; <add> const definitions = this.definitions; <ide> compiler.plugin("compilation", (compilation, params) => { <ide> compilation.dependencyFactories.set(ConstDependency, new N...
1
Mixed
Text
use https for the homepage
93441743794a3d44f90bc53438ca31add960f757
<ide><path>Library/Homebrew/global.rb <ide> <ide> HOMEBREW_PRODUCT = ENV["HOMEBREW_PRODUCT"] <ide> HOMEBREW_VERSION = ENV["HOMEBREW_VERSION"] <del>HOMEBREW_WWW = "http://brew.sh".freeze <add>HOMEBREW_WWW = "https://brew.sh".freeze <ide> <ide> require "config" <ide> <ide><path>README.md <ide> # Homebrew <del>Features...
3
Ruby
Ruby
fix edge case handling in `check_binary_arches`
c7badb1e5413052def6fdade669fe6da55689222
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_binary_arches(formula) <ide> mismatches_expected = formula.tap.blank? || tap_audit_exception(:mismatched_binary_allowlist, formula.name) <ide> return if compatible_universal_binaries.empty? && mismatches_expected <ide> <add> return if univ...
1
Ruby
Ruby
remove unused require
416d85b65e4f49f7e86f24c56bc1ec7441e90f2c
<ide><path>actionpack/lib/action_controller/metal/implicit_render.rb <del>require "active_support/core_ext/string/strip" <del> <ide> module ActionController <ide> # Handles implicit rendering for a controller action that does not <ide> # explicitly respond with +render+, +respond_to+, +redirect+, or +head+. <ide><p...
8
Python
Python
support config overrides via environment variables
5497acf49aef93a1d6d451da11cc9f3d2841b345
<ide><path>spacy/cli/_util.py <ide> from contextlib import contextmanager <ide> from thinc.config import Config, ConfigValidationError <ide> from configparser import InterpolationError <add>import os <ide> <ide> from ..schemas import ProjectConfigSchema, validate <del>from ..util import import_file, run_command, make_...
2
Ruby
Ruby
fix cache extension for github tarballs
924f92300fb6221bfd7bed20b0571db7a3b8f71b
<ide><path>Library/Homebrew/download_strategy.rb <ide> def chdir <ide> <ide> def ext <ide> # GitHub uses odd URLs for zip files, so check for those <del> rx=%r[http://(www\.)?github\.com/.*/(zip|tar)ball/] <add> rx=%r[https?://(www\.)?github\.com/.*/(zip|tar)ball/] <ide> if rx.match @url <ide> if...
1
Python
Python
fix first axis dim validation in multi-input model
32b10a8832bd0a0f3ae9e362ef9a77ee8b9b739c
<ide><path>keras/engine/training.py <ide> def standardize_input_data(data, names, shapes=None, check_batch_dim=True, <ide> # check shapes compatibility <ide> if shapes: <ide> for i in range(len(names)): <del> if not i and not check_batch_dim: <del> # skip the first axis <del> ...
1
PHP
PHP
remove test code
be61e3e3c86f69cb7713d3af54396c8ee2fa931f
<ide><path>tests/Notifications/NotificationSlackChannelTest.php <ide> public function testSmsIsSentViaNexmo() <ide> $http = Mockery::mock('GuzzleHttp\Client') <ide> ); <ide> <del> // $http->shouldReceive('post')->andReturnUsing(function (...$args) { <del> // dd($args); <del> ...
1
Javascript
Javascript
remove return type from constructor
1f8c0c88609c655541d525ed1f9e5e37255fbac7
<ide><path>Libraries/Events/EventPolyfill.js <ide> class EventPolyfill implements IEvent { <ide> // data with the other in sync. <ide> _syntheticEvent: mixed; <ide> <del> constructor(type: string, eventInitDict?: Event$Init): void { <add> constructor(type: string, eventInitDict?: Event$Init) { <ide> this.typ...
1
Go
Go
fix a deadlock in cmdstream
58befe3081726ef74ea09198cd9488fb42c51f51
<ide><path>archive.go <ide> func CmdStream(cmd *exec.Cmd) (io.Reader, error) { <ide> return nil, err <ide> } <ide> pipeR, pipeW := io.Pipe() <add> errChan := make(chan []byte) <ide> go func() { <del> _, err := io.Copy(pipeW, stdout) <del> if err != nil { <del> pipeW.CloseWithError(err) <del> } <ide> errText...
2