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
Javascript
Javascript
fix unintentional deprecation warning
2243d79f74a0b9b4c2711fcf6ab47a747e737812
<ide><path>lib/internal/async_hooks.js <ide> function useDomainTrampoline(fn) { <ide> } <ide> <ide> function callbackTrampoline(asyncId, cb, ...args) { <del> if (asyncId && hasHooks(kBefore)) <add> if (asyncId !== 0 && hasHooks(kBefore)) <ide> emitBeforeNative(asyncId); <ide> <ide> let result; <del> if (type...
6
Text
Text
use short links
e63a2ee8de12f0f938f6a95cdb9763dbe0187b4a
<ide><path>docs/Acceptable-Formulae.md <ide> <ide> Some formulae should not go in <ide> [homebrew/core](https://github.com/Homebrew/homebrew-core). But there are <del>additional [Interesting Taps and Forks](Interesting-Taps-and-Forks.md) and anyone can start their <add>additional [Interesting Taps and Forks](Interesti...
20
Python
Python
update document for valueerror
b7f930f81bcc363eac8fc91d4bc390f2974e76f6
<ide><path>keras/models.py <ide> def compile(self, optimizer, loss, <ide> <ide> # Raises <ide> ValueError: In case of invalid arguments for <add> `optimizer`, `loss`, `metrics` or `sample_weight_mode`. <ide> <ide> # Example <ide> ```python
1
Javascript
Javascript
use serialization api instead of objectmiddleware
f05af4a4a718c7fa7f0709c6464ede2b49990bfe
<ide><path>lib/ContextModule.js <ide> const { <ide> keepOriginalOrder <ide> } = require("./util/comparators"); <ide> const { compareModulesById } = require("./util/comparators"); <del>const contextify = require("./util/identifier").contextify; <del>const makeUnserializable = require("./util/makeUnserializable"); <add>...
6
Ruby
Ruby
add a regression test for scoped `format` params
d61e3c79dc85a5ae86ed00fc9352a5d1d84c0f3f
<ide><path>actionpack/test/dispatch/mapper_test.rb <ide> def test_blows_up_without_via <ide> end <ide> end <ide> <add> def test_scoped_formatted <add> fakeset = FakeSet.new <add> mapper = Mapper.new fakeset <add> mapper.scope(format: true) do <add> mapper.get '/foo', :t...
1
Javascript
Javascript
minimize glactivetexture calls
fa6899ae485cda3f5fceef325acf8bb2d9fc592f
<ide><path>src/renderers/webgl/WebGLState.js <ide> function WebGLState( gl, extensions, capabilities ) { <ide> <ide> } <ide> <del> function bindTexture( webglType, webglTexture ) { <add> function bindTexture( webglType, webglTexture, webglSlot ) { <ide> <del> if ( currentTextureSlot === null ) { <add> if ( webglS...
2
Text
Text
add redux-logger to recommended middleware
0bbad0937977e04751535bac6493d8776c73a799
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> * [redux-promise](https://github.com/acdlite/redux-promise) — [FSA](https://github.com/acdlite/flux-standard-action)-compliant promise middleware <ide> * [redux-rx](https://github.com/ac...
1
Ruby
Ruby
move bottle.rb logic from test-bot to brew bottle
5d0f868f060c086cc53c81ef6a63ac93e24ae1b4
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def status_upcase <ide> end <ide> <ide> def command_short <del> @command.gsub(/(brew|--force|--verbose|--build-bottle) /, '').strip.squeeze ' ' <add> @command.gsub(/(brew|--force|--verbose|--build-bottle|--rb) /, '').strip.squeeze ' ' <ide> end <i...
3
Ruby
Ruby
move default middleware stack into initializer
1f7270057596592946a877cd029d95760ba3e5ee
<ide><path>actionpack/lib/action_controller/dispatch/dispatcher.rb <ide> class Dispatcher <ide> self.router = Routing::Routes <ide> <ide> cattr_accessor :middleware <del> self.middleware = ActionDispatch::MiddlewareStack.new do |middleware| <del> middlewares = File.join(File.dirname(__FILE__), "middlew...
8
Python
Python
fix the wrong docstring for adamw
727f1f3106312ca53b5c09f77087dafaaa25da0a
<ide><path>keras/optimizers/optimizer_experimental/adamw.py <ide> class AdamW(optimizer.Optimizer): <ide> <ide> Notes: <ide> <del> The default value of 1e-7 for epsilon might not be a good default in <del> general. For example, when training an Inception network on ImageNet a <del> current good choice is...
1
Text
Text
add compatibility/interop technical value
700612fdb4e1bbd2241aece8bd7c1f49a077dde7
<ide><path>doc/guides/technical-values.md <ide> collaboration. <ide> * Priority 2 - Stability <ide> * Priority 3 - Operational qualities <ide> * Priority 4 - Node.js maintainer experience <del>* Priority 5 - Up to date Technology and APIs <add>* Priority 5 - Up to date technology and APIs <ide> <ide> ## Value descript...
1
Ruby
Ruby
extract annotations using a parser for ruby files
514ef0b8a5d929f2389fe75ae9ec928ec9644360
<ide><path>railties/lib/rails/source_annotation_extractor.rb <ide> # frozen_string_literal: true <ide> <add>require "ripper" <add> <ide> module Rails <ide> # Implements the logic behind <tt>Rails::Command::NotesCommand</tt>. See <tt>rails notes --help</tt> for usage information. <ide> # <ide> module Rails <ide> ...
2
Ruby
Ruby
enable sandbox on test-bot
a380ec636eb02e1412ee6657449b9a159182c9da
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def test_bot <ide> end <ide> <ide> ENV["HOMEBREW_DEVELOPER"] = "1" <add> ENV["HOMEBREW_SANDBOX"] = "1" <ide> ENV["HOMEBREW_NO_EMOJI"] = "1" <ide> if ARGV.include?("--ci-master") || ARGV.include?("--ci-pr") \ <ide> || ARGV.include?("--ci-testin...
1
Python
Python
add batch normalization to the generator, etc
97acd91baf198d059628b22d172e9078dcde8831
<ide><path>examples/mnist_acgan.py <ide> from keras.datasets import mnist <ide> from keras import layers <ide> from keras.layers import Input, Dense, Reshape, Flatten, Embedding, Dropout <add>from keras.layers import BatchNormalization <ide> from keras.layers.advanced_activations import LeakyReLU <ide> from keras.layer...
1
PHP
PHP
fix failing test in app
1bc4562f3a52c8241c0921c9af3cedb530c159ec
<ide><path>lib/Cake/Config/config.php <ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) <ide> */ <ide> $versionFile = file(CAKE . 'VERSION.txt'); <del>return $config['Cake.version'] = trim(array_pop($versionFile)); <add>$config['Cake.version'] = trim(array_pop($versionFile)); <ad...
1
Javascript
Javascript
update factory in bootstrap.js
72e6dbebaa5a794651feffa2727a13bd4961ef8c
<ide><path>extensions/firefox/bootstrap.js <ide> let Ci = Components.interfaces; <ide> let Cm = Components.manager; <ide> let Cu = Components.utils; <ide> <add>Cu.import('resource://gre/modules/XPCOMUtils.jsm'); <ide> Cu.import('resource://gre/modules/Services.jsm'); <ide> <ide> function getBoolPref(pref, def) { <ide...
1
Ruby
Ruby
create extended os formula specs
01c5bc48d250025241ccbbbb476a50df2856ca8e
<ide><path>Library/Homebrew/test/formula_spec.rb <ide> def reset_outdated_kegs <ide> end <ide> end <ide> end <del> <del> describe "#uses_from_macos" do <del> context 'on Linux' do <del> before do <del> allow(OS).to receive(:mac?).and_return(false) <del> end <del> <del> it "acts lik...
3
PHP
PHP
remove unused import
4ef784d9d1f025e7c0417e9c02057c6e972c9b76
<ide><path>src/Console/CommandCollection.php <ide> use ArrayIterator; <ide> use Cake\Console\CommandScanner; <ide> use Cake\Console\Shell; <del>use Cake\Log\Log; <ide> use Countable; <ide> use InvalidArgumentException; <ide> use IteratorAggregate;
1
PHP
PHP
remove duplicate test
65ac8132b3a6518ec267d29312a36d25961d7b6d
<ide><path>tests/TestCase/Routing/Route/RouteTest.php <ide> public function testMatchWithPatterns() <ide> $result = $route->match(['plugin' => null, 'controller' => 'posts', 'action' => 'view', 'id' => 9]); <ide> $this->assertSame('/posts/view/9', $result); <ide> <del> $result = $route->match(['...
1
Javascript
Javascript
add inspector to builtinlibs
71578198e30344140c237ec36fb706419c398440
<ide><path>lib/internal/module.js <ide> const builtinLibs = [ <ide> 'stream', 'string_decoder', 'tls', 'tty', 'url', 'util', 'v8', 'vm', 'zlib' <ide> ]; <ide> <add>if (typeof process.binding('inspector').connect === 'function') { <add> builtinLibs.push('inspector'); <add> builtinLibs.sort(); <add>} <add> <ide> fun...
1
Javascript
Javascript
fix referenceerror in check-coverage.js
a3e1703aebcbf1b8d7618ada1d69c18c9fafe1a0
<ide><path>test/e2e/check-coverage.js <ide> const S = fs.readdirSync( './examples/screenshots' ) <ide> <ide> // files.js <ide> const F = []; <del>eval( fs.readFileSync( './examples/files.js' ).toString() ); <del>for ( var key in files ) { <add>// To expose files variable to out of eval scope, we need var statement, no...
1
Python
Python
improve initialization for hidden layers
6ef72864fa23199a837e9197db8005f059255cce
<ide><path>spacy/_ml.py <ide> def init_weights(model): <ide> size=tokvecs.size).reshape(tokvecs.shape) <ide> <ide> def predict(ids, tokvecs): <del> hiddens = model(tokvecs) # (b, f, o, p) <del> vector = model.ops.allocate((hiddens.shape[0], model.nO, model.nP)) <del> ...
1
Javascript
Javascript
add deprecation warning for viewpagerandroid
77300ca91c17d371f6ba04230b8c2e8f5cd99ab8
<ide><path>Libraries/react-native/react-native-implementation.js <ide> module.exports = { <ide> return require('View'); <ide> }, <ide> get ViewPagerAndroid() { <add> warnOnce( <add> 'viewpager-moved', <add> 'ViewPagerAndroid has been extracted from react-native core and will be removed in a future ...
1
Ruby
Ruby
remove debug code
f636ab75f15c2013373131f3d50e1aa26930b2cb
<ide><path>activerecord/test/cases/schema_dumper_test.rb <ide> def test_types_line_up <ide> end <ide> end.compact <ide> <del> if lengths.uniq.length != 1 <del> p lengths.uniq.length <del> puts column_set <del> end <del> <ide> assert_equal 1, lengths.uniq.length <ide> end...
1
PHP
PHP
add tests for singletoninstance
c655e6fc7dd07805b1f7cc3a95c53fcc2bbfb40b
<ide><path>tests/Foundation/Testing/Concerns/InteractsWithContainerTest.php <ide> public function testWithMixRestoresOriginalHandlerAndReturnsInstance() <ide> $this->assertSame($handler, resolve(Mix::class)); <ide> $this->assertSame($this, $instance); <ide> } <add> <add> public function testSingl...
1
Ruby
Ruby
add test for legacy prefix quoting
6e7731aeff1195a55a88ce88dc44d0ac870f31aa
<ide><path>Library/Homebrew/test/formula_test.rb <ide> def test_formula_names <ide> end <ide> end <ide> <del>class CommentedTemplateCode <Test::Unit::TestCase <add>class WellKnownCodeIssues <Test::Unit::TestCase <ide> def test_for_commented_out_cmake <ide> Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do...
1
Javascript
Javascript
fix doc api
d1848b4f26766701693fcfd1a1e1e85341d53e97
<ide><path>packages/ember-runtime/lib/system/array_proxy.js <ide> var get = Ember.get, set = Ember.set; <ide> A simple example of usage: <ide> <ide> var pets = ['dog', 'cat', 'fish']; <del> var arrayProxy = Ember.ArrayProxy.create({ content: Ember.A(pets) }); <add> var ap = Ember.ArrayProxy.create({ ...
1
Text
Text
fix json format of plugin
2d24dbe896b33ab2b450ace457b0e266b27dfd74
<ide><path>docs/extend/plugin_api.md <ide> This is the JSON format for a plugin: <ide> "InsecureSkipVerify": false, <ide> "CAFile": "/usr/shared/docker/certs/example-ca.pem", <ide> "CertFile": "/usr/shared/docker/certs/example-cert.pem", <del> "KeyFile": "/usr/shared/docker/certs/example-key.pem", <add> ...
1
PHP
PHP
implement mulitple paginators
ed233e7167f2b693c90fa30fbba0d1ba58d3ec6d
<ide><path>src/Controller/Component/PaginatorComponent.php <ide> use Cake\Datasource\QueryInterface; <ide> use Cake\Datasource\RepositoryInterface; <ide> use Cake\Network\Exception\NotFoundException; <add>use Cake\Utility\Hash; <ide> <ide> /** <ide> * This component is used to handle automatic model data pagination. ...
3
Java
Java
fix bug in compositeexception.getrootcause
621b8cda977605f91b8620a6e4e34f6c1cc89455
<ide><path>src/main/java/io/reactivex/exceptions/CompositeException.java <ide> public int size() { <ide> */ <ide> /*private */Throwable getRootCause(Throwable e) { <ide> Throwable root = e.getCause(); <del> if (root == null || cause == root) { <add> if (root == null || e == root) { <ide> ...
2
Python
Python
add option to change default username and realm
f60c8b7d24c84cbaa2f13e3e7bd631530da83c91
<ide><path>glances/main.py <ide> def init_args(self): <ide> help='define a client/server username') <ide> parser.add_argument('--password', action='store_true', default=False, dest='password_prompt', <ide> help='define a client/server password') <add> ...
2
Python
Python
add parseerror (removing immediateresponse)
26831df88e80feb815aeb3a2b8a7c275a71732e4
<ide><path>djangorestframework/exceptions.py <add>class ParseError(Exception): <add> def __init__(self, detail): <add> self.detail = detail <ide><path>djangorestframework/parsers.py <ide> from django.http.multipartparser import MultiPartParser as DjangoMultiPartParser <ide> from django.http.multipartparser im...
3
Ruby
Ruby
remove more delegate methods
7d897abeccb8533d770ac1d0768eca20ec2f3971
<ide><path>activerecord/lib/active_record/associations/association_scope.rb <ide> module Associations <ide> class AssociationScope #:nodoc: <ide> attr_reader :association, :alias_tracker <ide> <del> delegate :klass, :owner, :reflection, :to => :association <del> delegate :chain, :scope_chain, :opti...
1
Text
Text
use consistent term
14ffde2d8c67065a24930e0ac0844099cbc2cfa8
<ide><path>docs/sources/introduction/understanding-docker.md <ide> Docker uses a client-server architecture. The Docker *client* talks to the <ide> Docker *daemon*, which does the heavy lifting of building, running, and <ide> distributing your Docker containers. Both the Docker client and the daemon *can* <ide> run on ...
1
Ruby
Ruby
fix default headers in test responses
f6e293ec54f02f83cdb37502bea117f66f87bcae
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def closed? <ide> # The underlying body, as a streamable object. <ide> attr_reader :stream <ide> <del> def initialize(status = 200, header = {}, body = []) <add> def initialize(status = 200, header = {}, body = [], default_headers: self.cla...
5
Python
Python
reflect asanyarray behaviour in block
e787a9fe538156308430e0fc4692fa3bc8ff5f92
<ide><path>numpy/core/shape_base.py <ide> def _block(arrays, depth=0): <ide> list_ndim = list_ndims[0] <ide> arr_ndim = max(arr.ndim for arr in arrs) <ide> ndim = max(list_ndim, arr_ndim) <del> arrs = [_nx.array(a, ndmin=ndim) for a in arrs] <add> arrs = [array(a, ndmin=ndim, copy=...
1
Python
Python
remove unused var
eb9fdd04fceac322af92bd196293390270653ccd
<ide><path>rest_framework/tests/serializer.py <ide> class Meta: <ide> model = AMOAFModel <ide> <ide> self.serializer_class = AMOAFSerializer <del> self.objects = AMOAFModel.objects <ide> self.fields_attributes = { <ide> 'char_field': [ <ide> ('max_leng...
1
Python
Python
optimize 2.3.0 pre-upgrade check queries
8e3d6c30e2409f56f9e4a55fe16769d23f5e3012
<ide><path>airflow/utils/db.py <ide> def _task_instance_exists(session, source_table, dag_run, task_instance): <ide> """ <ide> if 'run_id' not in task_instance.c: <ide> # db is < 2.2.0 <del> source_to_ti_join_cond = and_( <add> where_clause = and_( <ide> source_table.c.dag_id =...
1
Ruby
Ruby
reset schema cache after test
cf0fcbe7f6fd52b3455af99b61ef2c40e6a0062e
<ide><path>activerecord/test/cases/primary_keys_test.rb <ide> def test_any_type_primary_key <ide> assert_not column.null <ide> assert_equal :string, column.type <ide> assert_equal 42, column.limit <add> ensure <add> Barcode.reset_column_information <ide> end <ide> <ide> test "schema dump primary ke...
1
Javascript
Javascript
move module.index and index2 into modulegraph
42167db4affe764aa0d9a0e6c19e46bd4e24ca8b
<ide><path>lib/Compilation.js <ide> class Compilation { <ide> for (const module of this.modules) { <ide> module.unseal(); <ide> } <add> this.moduleGraph.removeAllModuleAttributes(); <ide> } <ide> <ide> /** <ide> class Compilation { <ide> // eachother and Blocks with Chunks. It stops traversing when all m...
8
Javascript
Javascript
udpate scrollto example
e974798656eb811036970b72f064dc8a9d10b229
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ScrollView = React.createClass({ <ide> * <ide> * Example: <ide> * <del> * `scrollTo({x: 0; y: 0; animated: true})` <add> * `scrollTo({x: 0, y: 0, animated: true})` <ide> * <ide> * Note: The weird function signature is due to the fac...
1
PHP
PHP
change redirect when authenticated
223191a9b01d779d238e2cca5e49a83c2cb550ef
<ide><path>app/Http/Middleware/RedirectIfAuthenticated.php <ide> public function __construct(Guard $auth) <ide> public function handle($request, Closure $next) <ide> { <ide> if ($this->auth->check()) { <del> return redirect('/home'); <add> return redirect('/'); <ide> } <ide...
1
Python
Python
update ibm sbc driver create_node docstring
b3df3c37ad6aad4807d62977c4f5154787389415
<ide><path>libcloud/compute/drivers/ibm_sbc.py <ide> def create_node(self, **kwargs): <ide> <ide> See L{NodeDriver.create_node} for more keyword args. <ide> <add> @keyword auth Name of the pubkey to use. When constructing <add> C{NodeAuthSSHKey} instance, 'pubkey' argument mu...
1
Python
Python
fix small pep8 problem
e295f616ec2cfee9c24b22d4be1a605a93d9544d
<ide><path>rest_framework/tests/pagination.py <ide> def test_get_paginated_root_view(self): <ide> self.assertEquals(response.data['next'], None) <ide> self.assertNotEquals(response.data['previous'], None) <ide> <add> <ide> class IntegrationTestPaginationAndFiltering(TestCase): <ide> <ide> def setU...
1
Python
Python
fix example_datasets dag names
e6838c92df6904e8f8f33951108f09ed5c590c72
<ide><path>airflow/example_dags/example_datasets.py <ide> <ide> Turn on all the dags. <ide> <del>DAG example_dataset_dag1 should run because it's on a schedule. <add>DAG dataset_produces_1 should run because it's on a schedule. <ide> <del>After example_dataset_dag1 runs, example_dataset_dag3_req_dag1 should be trigg...
1
Text
Text
fix a tiny typo [ci skip]
de0c705516cf8f15f70b47e35e4117bb9d4d537c
<ide><path>guides/source/configuring.md <ide> Using Initializer Files <ide> <ide> After loading the framework and any gems in your application, Rails turns to loading initializers. An initializer is any Ruby file stored under `config/initializers` in your application. You can use initializers to hold configuration set...
1
Ruby
Ruby
add new cpus to test
48f772c58527b13a09fd790eceb472513363542e
<ide><path>Library/Homebrew/test/hardware/cpu_spec.rb <ide> :amd_k10, <ide> :amd_k12, <ide> :arm, <add> :arm_blizzard_avalanche, <ide> :arm_firestorm_icestorm, <ide> :arm_hurricane_zephyr, <ide> :arm_lightning_thunder, <ide> :broadwell, <ide> :bulld...
1
Javascript
Javascript
add plane unittests
97951a622ae7931728775f6fc5f9c29c2bf5b89c
<ide><path>src/math/Plane.js <ide> function Plane( normal, constant ) { <ide> <ide> Object.assign( Plane.prototype, { <ide> <add> isPlane: true, <add> <ide> set: function ( normal, constant ) { <ide> <ide> this.normal.copy( normal ); <ide><path>test/unit/src/math/Plane.tests.js <ide> import { Plane } from '../../...
2
Text
Text
fix broken contributing link in line 16
fec32bbbaced5ef109916d2965f003a61f169aad
<ide><path>docs/i18n-languages/portuguese/how-to-work-on-coding-challenges.md <ide> Você pode fazer mudanças sem ter nada rodando em seu sistema local. <ide> <ide> Depois que encontrar o arquivo que deseja modificar pela interface do GitHub, clique no ícone de lápis para começar a editar. Isto ira criar um fork do pro...
1
Python
Python
add s3 links for dilbert (+fix small typo)
906581ae3c29939d62c23be43b280a24f0381898
<ide><path>pytorch_transformers/modeling_dilbert.py <ide> <ide> <ide> DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP = { <del> 'dilbert-base-uncased': None, # TODO(Victor) <add> 'dilbert-base-uncased': "https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-pytorch_model.bin" <ide> } <ide> <ide> DILBER...
1
Python
Python
fix regression in sqlthresholdcheckoperator
87d83a1ae334951c6958689f3bb0cc09f6fc647b
<ide><path>airflow/operators/sql.py <ide> def __init__( <ide> <ide> def execute(self, context=None): <ide> hook = self.get_db_hook() <del> result = hook.get_first(self.sql)[0][0] <add> result = hook.get_first(self.sql)[0] <ide> <ide> if isinstance(self.min_threshold, float): <ide> ...
2
Text
Text
add theme frameworks to wp guide
42c0da6090c6cc8e5fade3fdf21f11eeb8447a3f
<ide><path>guide/english/wordpress/theme-frameworks/index.md <add>--- <add>title: WordPress Theme Frameworks <add>--- <add> <add># WordPress Theme Frameworks <add> <add>Starting a WordPress theme from scratch and be a time consuming and intimidating process for newer developers. Ensuring that you have covered every asp...
1
Javascript
Javascript
improve vm test coverage
82f6b0c25baaf581abbc30ceb9bb39da21b06a5a
<ide><path>test/parallel/test-vm-basic.js <ide> const vm = require('vm'); <ide> global <ide> ); <ide> <add> // Test compileFunction produceCachedData option <add> const result = vm.compileFunction('console.log("Hello, World!")', [], { <add> produceCachedData: true, <add> }); <add> <add> assert.ok(result.c...
1
PHP
PHP
add patterns to routeis method
315f43b55c3f9cb7f33e0b421493b519e117fc8b
<ide><path>src/Illuminate/Http/Request.php <ide> public function is() <ide> } <ide> <ide> /** <del> * Check if the route name matches the given string. <add> * Determine if the route name matches a pattern. <ide> * <del> * @param string $name <ide> * @return bool <ide> */ <del> ...
2
Python
Python
set version to 2.0.17.dev0
d4fa9af56f78315295a2bc265120146b2bc0b3bf
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.16' <add>__version__ = '2.0.17.dev0' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https:/...
1
Ruby
Ruby
remove duplicate checks
30fd4f3fe5d13f4fce9ba273580073327e17cf35
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_for_broken_symlinks <ide> EOS <ide> end <ide> <del> def __check_subdir_access(base) <del> target = HOMEBREW_PREFIX+base <del> return unless target.exist? <del> <del> cant_read = [] <del> target.find do |d| <del> ...
2
Go
Go
use object literal for stats
115b37b8f7fc5d4b674fdf76eea5790f0e4a64b7
<ide><path>daemon/daemon_unix.go <ide> func (daemon *Daemon) statsV1(s *types.StatsJSON, stats *statsV1.Metrics) (*type <ide> } <ide> <ide> if stats.Memory != nil { <del> raw := make(map[string]uint64) <del> raw["cache"] = stats.Memory.Cache <del> raw["rss"] = stats.Memory.RSS <del> raw["rss_huge"] = stats.Memor...
1
Javascript
Javascript
use marker id as highlight key
927648d318b17d6aa0e163be289d59968805df73
<ide><path>src/text-editor-component.js <ide> class TextEditorComponent { <ide> this.addLineDecorationToRender(type, decoration, screenRange, reversed) <ide> break <ide> case 'highlight': <del> this.addHighlightDecorationToMeasure(decoration, screenRange) <add> this.addHigh...
1
Javascript
Javascript
fix documentation in sproutcore-views
dc09141f4bb0c5f81774b142efacb46162b82ca1
<ide><path>lib/sproutcore-views/lib/system/application.js <ide> require("sproutcore-views/system/event_dispatcher"); <ide> <ide> /** <add> @class <add> <ide> An SC.Application instance serves as the namespace in which you define your <ide> application's classes. You can also override the configuration of your <id...
5
Go
Go
protect cap access in driver()
b82101c4cc1615ae355a3e5c5383c7b2042e5be8
<ide><path>libnetwork/network.go <ide> func (n *network) driver(load bool) (driverapi.Driver, error) { <ide> <ide> c := n.getController() <ide> n.Lock() <del> n.scope = cap.DataScope <add> // If load is not required, driver, cap and err may all be nil <add> if cap != nil { <add> n.scope = cap.DataScope <add> } <ide...
1
Text
Text
fix typo in usagewithreact docs
72c11c97552581c8c0ff041a1c52d37735fe2641
<ide><path>docs/basics/UsageWithReact.md <ide> Finished reading the article? Let's recount their differences: <ide> </tbody> <ide> </table> <ide> <del>Most of the components we'll write will be presentational, but we'll need to generate a few container components to connect them to the Redux store. This and the de...
1
Javascript
Javascript
add a test to check typeof transformation
0d89a4540378808391cbb9f530e5b5656c3ed302
<ide><path>test/cases/parsing/issue-7318/index.js <add>const type = require("./typeof"); <add> <add>it("should not output invalid code", () => { <add> expect(type).toBe("number"); <add>}); <ide><path>test/cases/parsing/issue-7318/typeof.js <add>typeof 1 <add>module.exports = "number"
2
PHP
PHP
expand unit tests and fix issue with notempty()
1d5220916ef71f26c0d5be3af4892752ec3118f6
<ide><path>src/Validation/Validator.php <ide> public function allowEmpty($field, $mode = true) { <ide> * @return Validator this instance <ide> */ <ide> public function notEmpty($field, $message = null, $mode = false) { <add> if ($mode === 'create' || $mode === 'update') { <add> $mode = $mode === 'create' ? 'updat...
2
Python
Python
fix batchnorm momentum in resnetrs
738faf7537f35fd169c7c3aa974d7251cce35adf
<ide><path>keras/applications/resnet_rs.py <ide> def apply(inputs): <ide> <ide> <ide> def STEM( <del> bn_momentum: float = 0.0, <add> bn_momentum: float = 0.99, <ide> bn_epsilon: float = 1e-5, <ide> activation: str = "relu", <ide> name=None, <ide> def BottleneckBlock( <ide> filters: int, <ide> ...
1
PHP
PHP
add update + join support
d31a75055c6ff7b5633af2a9971cc47ae4f9067e
<ide><path>lib/Cake/Database/Query.php <ide> protected function _traverseDelete(callable $visitor) { <ide> * @return void <ide> */ <ide> protected function _traverseUpdate(callable $visitor) { <del> $parts = ['update', 'set', 'where']; <add> $parts = ['update', 'join', 'set', 'where']; <ide> foreach ($parts as $...
2
Text
Text
add link to thunk page in info boxes
c0991c60a51927e73d73ff03b40c9fd3a56d9890
<ide><path>docs/tutorials/essentials/part-5-async-logic.md <ide> store.dispatch(logAndAdd(5)) <ide> <ide> Thunks are typically written in "slice" files. `createSlice` itself does not have any special support for defining thunks, so you should write them as separate functions in the same slice file. That way, they have...
2
Ruby
Ruby
use kwargs instead of xhr method. refs
37b36a48b9956afebb030bdffdf42e0e20f92aff
<ide><path>actionview/test/actionpack/controller/render_test.rb <ide> def test_accessing_local_assigns_in_inline_template <ide> end <ide> <ide> def test_should_implicitly_render_html_template_from_xhr_request <del> xhr :get, :render_implicit_html_template_from_xhr_request <add> get :render_implicit_html_temp...
1
Javascript
Javascript
call setnativeview anytime node changes
1b1b26a099cc2f213bb270bfc0e56a202e618638
<ide><path>Libraries/Animated/useAnimatedProps.js <ide> export default function useAnimatedProps<TProps: {...}, TInstance>( <ide> ): [ReducedProps<TProps>, CallbackRef<TInstance | null>] { <ide> const [, scheduleUpdate] = useReducer<number, void>(count => count + 1, 0); <ide> const onUpdateRef = useRef<?() => void>...
1
Ruby
Ruby
handle more exceptions
f9fda0ffcccccd40dce72f01be8239e2b66266c4
<ide><path>Library/Homebrew/formula.rb <ide> def self.installed <ide> @installed ||= racks.flat_map do |rack| <ide> begin <ide> Formulary.from_rack(rack) <del> rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError <add> rescue <ide> [] <ide> ...
1
Text
Text
add nodejitsu deployment instructions
0494710b52e2048adda0f4558cc206b29c8c2fd4
<ide><path>README.md <ide> Add this to `package.json`, after *name* and *version*. This is necessary becaus <ide> - And you are done! (Not quite as simple as Heroku, huh?) <ide> <ide> <img src="https://www.nodejitsu.com/img/media/nodejitsu-transparent.png" width="200"> <add>- To install **jitsu**, open a terminal and ...
1
Java
Java
fix visibility of defaultsockjsschedulercontainer
67b7c16bc0b5e9f21d38173676d52db4541a997f
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketConfigurationSupport.java <ide> private ThreadPoolTaskScheduler initDefaultSockJsScheduler() { <ide> } <ide> <ide> <del> private static class DefaultSockJsSchedulerContainer implements InitializingBean, DisposableBean...
1
PHP
PHP
fix bug in redirect
b625ebdcf316bbae9eb752246a066693ba00490f
<ide><path>laravel/redirect.php <ide> public function with($key, $value) <ide> */ <ide> public static function __callStatic($method, $parameters) <ide> { <del> $parameters = (isset($parameters[0])) ? $parameters[0] : array(); <del> <ide> $status = (isset($parameters[1])) ? $parameters[1] : 302; <add> <add> $p...
1
Javascript
Javascript
remove extra quotes in example
00815db8ef1a54e331b301ee3604d47e75c49d46
<ide><path>src/ng/directive/ngModelOptions.js <ide> defaultModelOptions = new ModelOptions({ <ide> * <ide> * The `ngModelOptions` settings are found by evaluating the value of the attribute directive as <ide> * an AngularJS expression. This expression should evaluate to an object, whose properties contain <del> * th...
1
Text
Text
add example to apparmor docs
80d63e2e112c75b1cc492ce52bdc0c61ef3c234c
<ide><path>docs/security/apparmor.md <ide> Docker automatically loads container profiles. The Docker binary installs <ide> a `docker-default` profile in the `/etc/apparmor.d/docker` file. This profile <ide> is used on containers, _not_ on the Docker Daemon. <ide> <del>A profile for the Docker Engine Daemon exists but ...
1
Java
Java
prevent instantiation of annotatedelementutils
28e402bc762369cdbea7accf0eb2c5e16818fe14
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java <ide> * @see AnnotationUtils <ide> * @see BridgeMethodResolver <ide> */ <del>public class AnnotatedElementUtils { <add>public abstract class AnnotatedElementUtils { <ide> <ide> /** <ide> * {@code null} constant us...
1
Javascript
Javascript
remove extraneous "dx" attribute
e5ae048b613f98b96ae8e6c7493516c6d1d07512
<ide><path>examples/tree/tree-radial.js <ide> d3.json("../data/flare.json", function(json) { <ide> .attr("r", 4.5); <ide> <ide> node.append("text") <del> .attr("dx", function(d) { return d.x < 180 ? 8 : -8; }) <ide> .attr("dy", ".31em") <ide> .attr("text-anchor", function(d) { return d.x < 180...
1
Javascript
Javascript
replace smart-quotes with regular quotes
fd6e5e3f31f374de7be7c80acaa766a14cb753db
<ide><path>gdocs.js <ide> function download(name, url) { <ide> // strip out all text annotations <ide> data = data.replace(/\[\w{1,3}\]/mg, ''); <ide> <add> // fix smart-quotes <add> data = data.replace(/[“”]/g, '"'); <add> data = data.replace(/[‘’]/g, "'"); <add> <add> <ide> ...
3
PHP
PHP
use strict types for helperregistry
8aa666d89f2896e56ac1edec153d455211195fae
<ide><path>src/View/HelperRegistry.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> public function __construct(View $view) <ide> * @throws \Cake\...
1
PHP
PHP
add an authorizable contract
b1c79a9a8478b8950d1d23ffbea7eaba3dfc1d2e
<ide><path>src/Illuminate/Contracts/Auth/Access/Authorizable.php <add><?php <add> <add>namespace Illuminate\Contracts\Auth\Access; <add> <add>interface Authorizable <add>{ <add> /** <add> * Determine if the entity has a given ability. <add> * <add> * @param string $ability <add> * @param array|mix...
1
Text
Text
add missing introduced_in comments
97ba69f91543f89d389a4f3fef57c5c6c734df34
<ide><path>doc/api/async_hooks.md <ide> # Async Hooks <ide> <add><!--introduced_in=v8.1.0--> <add> <ide> > Stability: 1 - Experimental <ide> <ide> The `async_hooks` module provides an API to register callbacks tracking the <ide><path>doc/api/deprecations.md <ide> # Deprecated APIs <ide> <add><!--introduced_in=v7.7.0...
9
Python
Python
add regression test for ticket #608
5db434d7e1bb1ed11a505c5e7ce8ee7392704211
<ide><path>numpy/core/tests/test_regression.py <ide> def check_flat_byteorder(self, level=rlevel): <ide> def check_uint64_from_negative(self, level=rlevel) : <ide> assert_equal(np.uint64(-2), np.uint64(18446744073709551614)) <ide> <add> def check_sign_bit(self, level=rlevel): <add> x = np.array([...
1
Javascript
Javascript
assign external user points when validated
238657d3560d411b80b470f255e54ea3421ec73e
<ide><path>server/middlewares/jwt-authorization.js <ide> export default () => function authorizeByJWT(req, res, next) { <ide> return User.findById(userId) <ide> .then(user => { <ide> if (user) { <add> user.points = user.progressTimestamps.length; <ide> req.user = user; <ide> ...
1
PHP
PHP
remove a param
4ed0f54e3eb01cc8fa17ec74711154e440b01e29
<ide><path>lib/Cake/Routing/Route/Route.php <ide> public function match($url, $context = array()) { <ide> } <ide> } <ide> } <del> return $this->_writeUrl($url, $pass, $hostOptions, $query); <add> $url += $hostOptions; <add> return $this->_writeUrl($url, $pass, $query); <ide> } <ide> <ide> /** <ide> public...
1
PHP
PHP
disable the cache when running schema commands
f1da6b4cbc9f918a9a94147518db25908399a130
<ide><path>lib/Cake/Console/Command/SchemaShell.php <ide> public function startup() { <ide> $this->out('Cake Schema Shell'); <ide> $this->hr(); <ide> <add> Configure::write('Cache.disable', 1); <add> <ide> $name = $path = $connection = $plugin = null; <ide> if (!empty($this->params['name'])) { <ide> $name ...
1
Python
Python
add `output` property to mappedoperator
1ed014647e7293d342d9d1c2706343a68f003655
<ide><path>airflow/example_dags/example_xcom.py <ide> """Example DAG demonstrating the usage of XComs.""" <ide> import pendulum <ide> <del>from airflow import DAG <add>from airflow import DAG, XComArg <ide> from airflow.decorators import task <ide> from airflow.operators.bash import BashOperator <ide> <ide> def pull_...
45
Python
Python
update error messages in keras/utils/vis_utils.py
fdadb494d5a22e3e6d9caf82e4e337e6c7d7aada
<ide><path>keras/utils/vis_utils.py <ide> def get_layer_index_bound_by_layer_name(model, layer_names): <ide> lower_index.append(idx) <ide> if re.match(layer_names[1], layer.name): <ide> upper_index.append(idx) <del> if len(lower_index) == 0 or len(upper_index) == 0: <del> raise ValueError('Passed la...
1
Javascript
Javascript
use iso weekyear for html5_fmt.week
3147fbc486209f0b479dc0b29672d4c2ef39cf43
<ide><path>src/moment.js <ide> moment.HTML5_FMT = { <ide> TIME: 'HH:mm', // <input type="time" /> <ide> TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" /> <ide> TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" ...
2
Python
Python
update version for paver script
71c4ff95ca381756cda98bcbb0ac7f11c212d600
<ide><path>pavement.py <ide> DOC_BLD_LATEX = DOC_BLD / "latex" <ide> <ide> # Source of the release notes <del>RELEASE = 'doc/release/1.3.0-notes.rst' <add>RELEASE = 'doc/release/1.4.0-notes.rst' <ide> <ide> # Start/end of the log (from git) <del>LOG_START = 'tags/1.2.0' <add>LOG_START = 'svn/tags/1.3.0' <ide> LOG_END...
1
Mixed
Text
fix comment about swap limit of docker update
603bc69b2c3c00714c18e6ddc65bf53c2f1a079d
<ide><path>api/client/update.go <ide> func (cli *DockerCli) CmdUpdate(args ...string) error { <ide> flCPUShares := cmd.Int64([]string{"#c", "-cpu-shares"}, 0, "CPU shares (relative weight)") <ide> flMemoryString := cmd.String([]string{"m", "-memory"}, "", "Memory limit") <ide> flMemoryReservation := cmd.String([]str...
3
Javascript
Javascript
fix typos in tests
6f3e26c40436f69e9d4bfb4ea518c89bf3b7219a
<ide><path>test/ngResource/resourceSpec.js <ide> describe("resource", function() { <ide> }); <ide> <ide> <del> it('should ignore slashes of undefinend parameters', function() { <add> it('should ignore slashes of undefined parameters', function() { <ide> var R = $resource('/Path/:a/:b/:c'); <ide> <ide> $h...
1
Javascript
Javascript
create mock doc objects correctly
d4493fda2c4c2ff1fdfc264bfb479741abc781c7
<ide><path>docs/spec/ngdocSpec.js <ide> describe('ngdoc', function() { <ide> function property(name) { <ide> return function(obj) {return obj[name];}; <ide> } <del> function noop() {} <del> function doc(type, name){ <del> return { <del> id: name, <del> ...
1
Ruby
Ruby
fix indentation in code example of delegation
665322eaab7246a961ff6a90cdceaf63c277d8d1
<ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb <ide> class Module <ide> # no matter whether +nil+ responds to the delegated method. You can get a <ide> # +nil+ instead with the +:allow_nil+ option. <ide> # <del> # class Foo <del> # attr_accessor :bar <del> # def initialize(bar...
1
Java
Java
fix scan/reduce/collect factory ambiguity
c63c76b5df000686be73d8fd0bbde210c85bee9b
<ide><path>src/main/java/rx/Observable.java <ide> public final <R> Observable<R> cast(final Class<R> klass) { <ide> * <dd>{@code collect} does not operate by default on a particular {@link Scheduler}.</dd> <ide> * </dl> <ide> * <del> * @param state <add> * @param stateFactory <ide> * ...
3
Javascript
Javascript
fix legend and title layout options update
f0c6b3f8342e2406c250329336037a7f7004284e
<ide><path>src/core/core.layoutService.js <ide> module.exports = function(Chart) { <ide> * Register a box to a chart. <ide> * A box is simply a reference to an object that requires layout. eg. Scales, Legend, Title. <ide> * @param {Chart} chart - the chart to use <del> * @param {ILayoutItem} layoutItem - the...
5
Ruby
Ruby
make consistent code style
fc062f6601f6dba5a449d2e7008840bba6cb02e6
<ide><path>lib/active_job/queue_adapters/sneakers_adapter.rb <ide> class JobWrapper <ide> <ide> self.from_queue("queue", {}) <ide> <del> def work(*args) <del> job_name = args.shift <del> job_name.new.perform *Parameters.deserialize(args) <add> def work(job, *args) <add> ...
2
Python
Python
fix flake8 errors
580d83ff127f330470867c009c7c6b17847f4287
<ide><path>numpy/core/tests/test_casting_unittests.py <ide> def test_object_casts_NULL_None_equivalence(self, dtype): <ide> else: <ide> assert_array_equal(expected, arr_NULLs.astype(dtype)) <ide> <del> <ide> def test_float_to_bool(self): <ide> # test case corresponding to gh-19514 <ide>...
1
Javascript
Javascript
remove redundant icon assets and links
784de367a1815860f1ce025bb375142e881c4435
<ide><path>client/src/head/favicons.js <del>import React from 'react'; <del> <del>const favicons = [ <del> <link <del> href='/assets/apple-touch-icon.png' <del> key='/assets/apple-touch-icon.png' <del> rel='apple-touch-icon' <del> sizes='180x180' <del> />, <del> <link <del> href='/assets/favicon-32x32...
2
Ruby
Ruby
find vim on the path
98e5bd8198cc3ac42173eb755b0780e477e36a1c
<ide><path>Library/Homebrew/utils.rb <ide> def which_editor <ide> return 'mate' if which "mate" <ide> # Find BBEdit / TextWrangler <ide> return 'edit' if which "edit" <del> # Default to vim <add> # Find vim <add> return 'vim' if which "vim" <add> # Default to standard vim <ide> return '/usr/bin/vim' <ide> e...
1
Javascript
Javascript
hoist regexp literal
a19ceb5a4706daef5792d08a076d3bb8fc27258a
<ide><path>lib/ExternalModuleFactoryPlugin.js <ide> "use strict"; <ide> <ide> const ExternalModule = require("./ExternalModule"); <add>const UNSPECIFIED_EXTERNAL_TYPE_REGEXP = /^[a-z0-9]+ /; <ide> <ide> class ExternalModuleFactoryPlugin { <ide> constructor(type, externals) { <ide> class ExternalModuleFactoryPlugin {...
1
Javascript
Javascript
use data directly in pdfdoc
2094c291698b2745ddab06dc627bb99d05b8ed0e
<ide><path>pdf.js <ide> var Catalog = (function catalogCatalog() { <ide> })(); <ide> <ide> var PDFDoc = (function pdfDoc() { <del> function constructor(stream) { <add> function constructor(data) { <add> var stream = new Stream(data); <ide> assertWellFormed(stream.length > 0, 'stream must have data'); <ide> ...
4