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 translations to titles and fix typo
7f25b2c7e3a3940c8e0711fb8de571353a126cef
<ide><path>curriculum/challenges/portuguese/03-front-end-libraries/bootstrap/add-elements-within-your-bootstrap-wells.portuguese.md <ide> videoUrl: '' <ide> localeTitle: Adicionar elementos dentro dos seus poços de bootstrap <ide> --- <ide> <del>## Description <del><section id="description"> Agora temos vários element...
1
Ruby
Ruby
avoid extra recursive call in sprockets helpers
381904d26b601c89e2a8496612a7c76db8ae9359
<ide><path>actionpack/lib/sprockets/helpers/rails_helper.rb <ide> def javascript_include_tag(*sources) <ide> sources.collect do |source| <ide> if debug && asset = asset_paths.asset_for(source, 'js') <ide> asset.to_a.map { |dep| <del> javascript_include_tag(dep, options.merge({...
1
PHP
PHP
hasmiddleware
1c2f33316ac8e2ff0d7ff765ef086cd52b04a8fd
<ide><path>src/Illuminate/Foundation/Http/Kernel.php <ide> protected function dispatchToRouter() <ide> */ <ide> public function hasMiddleware($middleware) <ide> { <del> return array_key_exists($middleware, array_flip($this->middleware)); <add> return in_array($middleware, $this->middleware); ...
1
Ruby
Ruby
move argument validation into match
fe12497e4d8ad292ffbcb4486a26b8802c19d65d
<ide><path>activerecord/lib/active_record/dynamic_finder_match.rb <ide> def instantiator? <ide> def bang? <ide> false <ide> end <add> <add> def valid_arguments?(arguments) <add> arguments.size >= @attribute_names.size <add> end <ide> end <ide> <ide> class FindBy < DynamicFinderMatch <ide> ...
3
Go
Go
remove backward compat hack for go < 1.9
cddaa8477786011227677a8a220de0a380387d02
<ide><path>builder/remotecontext/tarsum_test.go <ide> func TestHashFile(t *testing.T) { <ide> t.Fatalf("Hash returned empty sum") <ide> } <ide> <del> expected := "1149ab94af7be6cc1da1335e398f24ee1cf4926b720044d229969dfc248ae7ec" <add> expected := "55dfeb344351ab27f59aa60ebb0ed12025a2f2f4677bf77d26ea7a671274a9ca" <i...
4
PHP
PHP
improve deprecation error
cc269286767a875bc781fe4497764c08614f3586
<ide><path>src/Database/Type.php <ide> public function toPHP($value, Driver $driver) <ide> */ <ide> protected function _basicTypeCast($value) <ide> { <del> deprecationWarning('Type::_basicTypeCast() is deprecated.'); <add> deprecationWarning( <add> 'Using Type::_basicTypeCast() is ...
1
Javascript
Javascript
add regression test for 13557
871e4d0280178ce1ec2955f9b3f71b528077f6fd
<ide><path>test/parallel/test-readline-reopen.js <add>'use strict'; <add> <add>// Regression test for https://github.com/nodejs/node/issues/13557 <add>// Tests that multiple subsequent readline instances can re-use an input stream. <add> <add>const common = require('../common'); <add>const assert = require('assert'); <...
1
Ruby
Ruby
add cairomm@1.14 to allowlist
5d0a4d58c28420864aa248114a54572c694e474d
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def audit_postgresql <ide> openssl@1.1 <ide> python@3.8 <ide> python@3.9 <add> cairomm@1.14 <ide> ].freeze <ide> <ide> def audit_versioned_keg_only
1
Java
Java
fix typos in javadoc comments
db76ba2b792f14ab2a18fb5d226d5ebb2f55a4cb
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final Observable<T> repeat(final long count, Scheduler scheduler) { <ide> * </dl> <ide> * <ide> * @param notificationHandler <del> * recieves an Observable of notifications with which a user can complete or error, aborti...
1
Go
Go
fix bug in getrootresourcepath in previous commit
48907d57ede696c68e210cb93cb405124a49cbd3
<ide><path>daemon/container.go <ide> func (container *Container) WriteHostConfig() error { <ide> <ide> func (container *Container) getResourcePath(path string) (string, error) { <ide> cleanPath := filepath.Join("/", path) <del> fullPath := filepath.Join(container.basefs, cleanPath) <del> <del> result, err := symlink....
1
Text
Text
fix equality expression in ternary operator
9900699d0bf7650914d7f98c953415ffc59c9b01
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator/index.md <ide> Use ternary operator to check for equality. <ide> <ide> ```javascript <ide> function checkEqual(a, b) { <del> return (a = b ? true : false ); <add> return (a == b ? t...
1
Java
Java
ensure undertow 1.1 compatibility
73267d75230dfb90097133017f203ca15ef813db
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/standard/UndertowRequestUpgradeStrategy.java <ide> <ide> package org.springframework.web.socket.server.standard; <ide> <add>import java.lang.reflect.Constructor; <ide> import java.util.Arrays; <ide> import java.util.Collections; <ide> imp...
1
Text
Text
use more consistent formatting for deprecations
975bbbc443c47df777d460fadaada3c6d265b321
<ide><path>doc/api/deprecations.md <ide> Assigning properties to the top-level `this` as an alternative <ide> to `module.exports` is deprecated. Developers should use `exports` <ide> or `module.exports` instead. <ide> <del>### DEP0093: `crypto.fips` is deprecated and replaced. <add>### DEP0093: `crypto.fips` is deprec...
1
Ruby
Ruby
add comment about content-disposition handling
d330e915d13c11a4701c7e9e159a93140cfac7cd
<ide><path>Library/Homebrew/download_strategy.rb <ide> def resolve_url_basename_time_file_size(url) <ide> filename = URI.decode_www_form_component(encoded_filename).encode(encoding) if encoding && encoded_filename <ide> end <ide> <add> # Servers may include '/' in their Content-Disposition filename ...
1
Text
Text
add action cable to readme.md of rails
98087a604c988e2fd906cc7c63b30ea495679a5f
<ide><path>README.md <ide> Active Record, Active Model, Action Pack, and Action View can each be used indep <ide> In addition to them, Rails also comes with Action Mailer ([README](actionmailer/README.rdoc)), a library <ide> to generate and send emails; Active Job ([README](activejob/README.md)), a <ide> framework for ...
1
Javascript
Javascript
flow type and codegen for androidtextinput
ba56fa43f0a89a7f2654d6ba9655356bb975f56d
<ide><path>Libraries/Components/TextInput/AndroidTextInputNativeComponent.js <ide> <ide> 'use strict'; <ide> <add>import type {ViewProps} from '../View/ViewPropTypes'; <add>import type { <add> BubblingEventHandler, <add> DirectEventHandler, <add> Double, <add> Float, <add> Int32, <add>} from 'react-native/Librar...
1
Python
Python
add option to use custom template with js2c.py
fa2d0a117e0882c5f5d9e0e9b596b8628b6b533f
<ide><path>tools/js2c.py <ide> def JS2C(source, target): <ide> def main(): <ide> natives = sys.argv[1] <ide> source_files = sys.argv[2:] <add> if source_files[-2] == '-t': <add> global TEMPLATE <add> TEMPLATE = source_files[-1] <add> source_files = source_files[:-2] <ide> JS2C(source_files, [natives]) <...
1
Go
Go
move getexitcode() to pkg/idtools, and un-export
07b1aa822cc7b371ef5925940d8ea8cfb54de57e
<ide><path>pkg/idtools/idtools_unix.go <ide> import ( <ide> "fmt" <ide> "io" <ide> "os" <add> "os/exec" <ide> "path/filepath" <ide> "strconv" <ide> "sync" <ide> func callGetent(database, key string) (io.Reader, error) { <ide> } <ide> out, err := execCmd(getentCmd, database, key) <ide> if err != nil { <del> ex...
2
Javascript
Javascript
fix jsdocs for multi-line es6-style methods
97aad167a6cfe897469e98f5f0f8e2ea38785bd0
<ide><path>website/jsdocs/jsdocs.js <ide> function sanitizeTypehint(string) { <ide> <ide> /** <ide> * @param {object} node <add> * @param {object} docNode Node used for location/docblock purposes <ide> * @param {object} state <ide> * @param {string} source <ide> * @param {array<object>} commentsForFile <ide> * @...
1
PHP
PHP
remove unneeded unset() call
7e61df8b85f6e0885f9d9708a371692cf3a81eb4
<ide><path>src/Controller/Component/SecurityComponent.php <ide> protected function _validatePost(Controller $controller) { <ide> if (strpos($token, ':')) { <ide> list($token, $locked) = explode(':', $token, 2); <ide> } <del> unset($check['_Token'], $check['_csrfToken']); <add> unset($check['_Token']); <ide> <...
1
Javascript
Javascript
fix a typo
c894470d4122913168dd75f829f1d19c4af696ed
<ide><path>src/ng/compile.js <ide> function directiveNormalize(name) { <ide> * <ide> * <ide> * @param {string} name Normalized element attribute name of the property to modify. The name is <del> * revers translated using the {@link ng.$compile.directive.Attributes#$attr $attr} <add> * reverse-trans...
1
Java
Java
avoid java.util.stream.stream usage in hot paths
862fa557bde6698252c3fbb6f295dbf12461a630
<ide><path>spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may n...
4
Javascript
Javascript
replace common.fixturesdir with fixture
3f5f847ed131799da2e8424bf39acf3be55ad683
<ide><path>test/parallel/test-http2-respond-file-compat.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> const http2 = require('http2'); <del>const path = require('path'); <add>const fixtures = require('../common/fixtures'); <ide> <del>const fname ...
1
PHP
PHP
fix typo in core alias for event dispatcher
f1eb309438f7d19e8a71dcecc0eced5f8b33a7c3
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function registerCoreContainerAliases() <ide> 'cookie' => 'Illuminate\Cookie\CookieJar', <ide> 'encrypter' => 'Illuminate\Encryption\Encrypter', <ide> 'db' => 'Illuminate\Database\DatabaseManager', <del> 'events' ...
1
Ruby
Ruby
extract clusterfuck method for surgery
3b863366947c063e19bac1504274ef22831e37d9
<ide><path>activerecord/lib/active_record/relation/merger.rb <add>module ActiveRecord <add> class Relation <add> class Merger <add> attr_reader :relation, :other <add> <add> def initialize(relation, other) <add> @relation = relation <add> <add> if other.default_scoped? && other.klass != rela...
2
Go
Go
remove unintentional dependency for /tmp/data
d610d3f61cd7483dcab5897c8d4edb54248b45be
<ide><path>integration-cli/docker_cli_volume_test.go <ide> func (s *DockerSuite) TestDuplicateMountpointsForVolumesFromAndBind(c *check.C) <ide> c.Assert(strings.TrimSpace(out), checker.Contains, data1) <ide> c.Assert(strings.TrimSpace(out), checker.Contains, data2) <ide> <add> // /tmp/data is automatically created,...
1
Javascript
Javascript
fix emotion labelformat and sourcemap options
4da09da1a2fa0c7b2d9c558b8072dfdd00a4b369
<ide><path>packages/next/build/swc/options.js <ide> function getEmotionOptions(nextConfig, development) { <ide> return { <ide> enabled: true, <ide> autoLabel, <del> labelFormat: nextConfig?.experimental?.emotion?.labelFormat, <add> labelFormat: nextConfig?.compiler?.emotion?.labelFormat, <ide> sourc...
1
Javascript
Javascript
honor the islinenumberguttervisible option
36f5262f407f3070becef34d28c884433c1ab354
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', () => { <ide> expect(element.offsetHeight).toBeGreaterThan(initialHeight) <ide> }) <ide> <add> it('supports the isLineNumberGutterVisible parameter', () => { <add> const {component, element, editor} = buildComponent({lineNumb...
2
Ruby
Ruby
liberalize picky test
8087d518425597ab1a667878702dd3aaa9def488
<ide><path>actionmailer/test/mail_service_test.rb <ide> def test_return_path_with_create <ide> def test_return_path_with_deliver <ide> ActionMailer::Base.delivery_method = :smtp <ide> TestMailer.deliver_return_path <del> assert_match %r{^Return-Path: another@somewhere.test}, MockSMTP.deliveries[0][0] <add>...
1
Python
Python
fix sort order in connection list on query page
b61dc2fde9f1bb1cad05826a590736d305765a8e
<ide><path>airflow/bin/cli.py <ide> def run(args): <ide> format=settings.LOG_FORMAT) <ide> if not args.pickle: <ide> dagbag = DagBag(subdir) <add> print subdir <add> print dagbag.dags <ide> if args.dag_id not in dagbag.dags: <ide> msg = 'DAG [{0}] could not be found...
2
PHP
PHP
return a lazy collection from query@cursor()
2fea43d024fa0f0faf10059113781942cc03a5ff
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> protected function isNestedUnder($relation, $name) <ide> } <ide> <ide> /** <del> * Get a generator for the given query. <add> * Get a lazy collection for the given query. <ide> * <del> * @return \Generator <add> * @return \Illum...
3
Javascript
Javascript
remove timer from test-http-1.0
6a3d38f00f116cbe51cd006ee558ca773522e6f5
<ide><path>test/parallel/test-http-1.0.js <ide> function test(handler, request_generator, response_validator) { <ide> var client_got_eof = false; <ide> var server_response = ''; <ide> <del> function cleanup() { <del> server.close(); <del> response_validator(server_response, client_got_eof, true); <del> } <...
1
Go
Go
skip some test on remote daemon for e2e run(s)
ef2c2040c22eba8ab6ea1033ad64ba9b0095db9b
<ide><path>integration/build/build_session_test.go <ide> import ( <ide> "testing" <ide> <ide> dclient "github.com/docker/docker/client" <del> "github.com/docker/docker/internal/test/daemon" <ide> "github.com/docker/docker/internal/test/fakecontext" <ide> "github.com/docker/docker/internal/test/request" <ide> "git...
11
Python
Python
support host_name on datadog provider
df84c4ad42b1bbaf352d14973f1f867c89dc0a3b
<ide><path>airflow/providers/datadog/hooks/datadog.py <ide> def __init__(self, datadog_conn_id: str = 'datadog_default') -> None: <ide> conn = self.get_connection(datadog_conn_id) <ide> self.api_key = conn.extra_dejson.get('api_key', None) <ide> self.app_key = conn.extra_dejson.get('app_key', No...
2
Javascript
Javascript
fix bug when transitioning namespaced attributes
037493c2509f8c7b78badef97b410b313a5fe069
<ide><path>d3.js <ide> function d3_transition(groups, id) { <ide> var d3_transitionRemove = {}; <ide> <ide> function d3_transitionNull(d, i, a) { <del> if (a != "") return d3_transitionRemove; <add> return a != "" && d3_transitionRemove; <ide> } <ide> <ide> function d3_transitionTween(b) { <del> return typeof b ==...
6
Ruby
Ruby
remove extraneous whitespace
51df35003c70a093691a3d6d5f29469e7292e19d
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def apply_form_for_options!(record, object, options) #:nodoc: <ide> # unnecessary unless you support browsers without JavaScript. <ide> # * <tt>:local</tt> - Whether to use standard HTTP form submission. <ide> # When set to <tt>tru...
1
Python
Python
allow subclasses of arrays in testing
925774d3227944e80a7a01699131124dd1abfb44
<ide><path>numpy/testing/utils.py <ide> def assert_approx_equal(actual,desired,significant=7,err_msg='',verbose=True): <ide> <ide> def assert_array_compare(comparison, x, y, err_msg='', verbose=True, <ide> header=''): <del> from numpy.core import asarray, isnan, any <del> x = asarray(x) ...
1
Python
Python
fix lstm regularizers
d31fe1ac3495ff29251f65d00ab866bbf98893f2
<ide><path>keras/layers/recurrent.py <ide> def build(self, input_shape): <ide> self.W_regularizer.set_param(self.W) <ide> self.regularizers.append(self.W_regularizer) <ide> if self.U_regularizer: <del> self.W_regularizer.set_param(self.U) <add> self.U_regularizer.se...
1
Ruby
Ruby
add standard version setup
0e9eb11772ec74cc4b27761d4611c73b66063db5
<ide><path>lib/active_storage/gem_version.rb <add>module ActiveStorage <add> # Returns the version of the currently loaded Active Storage as a <tt>Gem::Version</tt> <add> def self.gem_version <add> Gem::Version.new VERSION::STRING <add> end <add> <add> module VERSION <add> MAJOR = 0 <add> MINOR = 1 <add> ...
2
Ruby
Ruby
fix delivery_method usage
d0f088e7f5668cafa5c9d4090fa1f209ce0e554a
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer #:nodoc: <ide> # <ide> # * <tt>delivery_method</tt> - Defines a delivery method. Possible values are <tt>:smtp</tt> (default), <ide> # <tt>:sendmail</tt>, <tt>:test</tt>, and <tt>:file</tt>. Or you may provide a custom delivery method <...
1
Text
Text
use svg instead of png to get better image quality
34a0d6a561d3e18e1aef8e856064dec33740120f
<ide><path>README.md <del># Ember.js [![Build Status](https://secure.travis-ci.org/emberjs/ember.js.png?branch=master)](http://travis-ci.org/emberjs/ember.js) [![Code Climate](https://codeclimate.com/github/emberjs/ember.js.png)](https://codeclimate.com/github/emberjs/ember.js) <add># Ember.js [![Build Status](https://...
1
PHP
PHP
add missing type
02642e5c473cfca984956a09ba58fa39ba9b14bf
<ide><path>src/Database/Statement/SqlserverStatement.php <ide> class SqlserverStatement extends PDOStatement <ide> * <ide> * {@inheritDoc} <ide> */ <del> public function bindValue($column, $value, $type = 'string') <add> public function bindValue($column, $value, $type = 'string'): void <ide> {...
1
Javascript
Javascript
add dynamic injection to reacterrorutils
1c9dcd53d5a5e194afc0d953a3341ad32fe311dc
<ide><path>src/renderers/shared/utils/ReactErrorUtils.js <ide> <ide> 'use strict'; <ide> <add>const invariant = require('invariant'); <add> <ide> let caughtError = null; <ide> <ide> /** <ide> let caughtError = null; <ide> * @param {...*} args Arguments for function <ide> */ <ide> const ReactErrorUtils = { <add> i...
1
Ruby
Ruby
initialize @_virtual_path path ivar
699fb81def8f0d242962a81d2f492c6a8eed4211
<ide><path>actionpack/test/template/template_test.rb <ide> class TestERBTemplate < ActiveSupport::TestCase <ide> class Context <ide> def initialize <ide> @output_buffer = "original" <add> @_virtual_path = nil <ide> end <ide> <ide> def hello
1
Javascript
Javascript
fix bug 2
3c9c090fedcbf6761df7d940cfd2ba3b0ecd4990
<ide><path>src/math/Box3.js <ide> Object.assign( Box3.prototype, { <ide> <ide> } <ide> <del> return ( min <= -plane.constant && max >= -plane.constant ); <add> return ( min <= - plane.constant && max >= - plane.constant ); <ide> <ide> }, <ide>
1
Ruby
Ruby
explain what initializer/config_serializer does
7e21a7d9d4e89feac0cf896ade9ed13e3a51e810
<ide><path>railties/lib/rails/generators/rails/app/templates/config/initializers/cookies_serializer.rb <ide> # Be sure to restart your server when you modify this file. <ide> <add># Specify a serializer for the signed and encrypted cookie jars. <add># Valid options are :json, :marshal, and :hybrid. <ide> Rails.applica...
1
PHP
PHP
fix deprecation warnings in test suite
044a5628b254e72c33dfe9fdb2e1759fd396b84c
<ide><path>tests/test_app/TestApp/Controller/PostsController.php <ide> class PostsController extends AppController <ide> */ <ide> public $components = [ <ide> 'Flash', <del> 'RequestHandler', <add> 'RequestHandler' => [ <add> 'enableBeforeRedirect' => false <add> ], <ide...
2
Python
Python
add regression test for
b62739fbfe18c885a0172c8371b89a4010b086fb
<ide><path>spacy/tests/regression/test_issue1654.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add>from ...language import Language <add>from ...vocab import Vocab <add> <add> <add>@pytest.mark.xfail <add>def test_issue1654(): <add> nlp = Language(Vocab()) <add> ...
1
Python
Python
improve modelserializer.create() error message.
2fab7838ef79c2b9c6f67d930ab2e28aa392f516
<ide><path>rest_framework/serializers.py <ide> def create(self, validated_data): <ide> except TypeError: <ide> tb = traceback.format_exc() <ide> msg = ( <del> 'Got a `TypeError` when calling `%s._default_manager.create()`. ' <add> 'Got a `TypeError` when cal...
2
Mixed
Ruby
add support for postgresql jsonb
99b82fdf03fcf6d6ca8e2d810ba35011723a5267
<ide><path>activerecord/CHANGELOG.md <add>* Add support for Postgresql JSONB <add> <add> Example: <add> <add> create_table :posts do |t| <add> t.jsonb :meta_data <add> end <add> <add> *Philippe Creux*, *Chris Teague* <add> <ide> * `db:purge` with MySQL respects `Rails.env`. <ide> <ide>...
6
Text
Text
add missing meta for createcipheriv
95a35bcf0680367d4d7ae6a8a56f2b0a20f12053
<ide><path>doc/api/crypto.md <ide> vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting <ide> Adversaries][] for details. <ide> <ide> ### crypto.createCipheriv(algorithm, key, iv[, options]) <add><!-- YAML <add>added: v0.1.94 <add>--> <ide> - `algorithm` {string} <ide> - `key` {string | Buf...
1
Javascript
Javascript
fix typo in destroy-test.js
c4d185ddd778effc3f43f7f20f8ff49eb26bb1a8
<ide><path>packages/ember-glimmer/tests/integration/components/destroy-test.js <ide> moduleFor('Component destroy', class extends RenderingTest { <ide> <ide> this.assertText(''); <ide> <del> assert.equal(this.env.destroyedComponents.length, 0, 'enviroment.destroyedComponents should be empty'); <add> assert....
1
Javascript
Javascript
enable mmdloader to support more various models
086eab8ccd0b0d178a3d0817d92132fe1c4dfd64
<ide><path>examples/js/loaders/MMDLoader.js <ide> THREE.MMDLoader.prototype.createMesh = function ( model, texturePath, onProgress <ide> <ide> } <ide> <del> var isSphericalReflectionMapping = params.sphericalReflectionMapping; <ide> var texture = loader.load( fullPath, function ( t ) { <ide> <ide> t.flip...
1
Go
Go
skip further checks for quota in user namespaces
7e35df0e0484118740dbf01e7db9b482a1827ef1
<ide><path>daemon/graphdriver/quota/projectquota.go <ide> import ( <ide> "path/filepath" <ide> "unsafe" <ide> <add> rsystem "github.com/opencontainers/runc/libcontainer/system" <ide> "github.com/sirupsen/logrus" <ide> "golang.org/x/sys/unix" <ide> ) <ide> type Control struct { <ide> // project ids. <ide> // <ide> ...
1
PHP
PHP
ensure empty body for 304 response
4cf876aba76cae25e68b75fc3e362df17d9fde19
<ide><path>src/Routing/Middleware/AssetMiddleware.php <ide> public function __invoke(ServerRequestInterface $request, Response $response, ca <ide> $modifiedTime = $file->getMTime(); <ide> if ($this->isNotModified($request, $file)) { <ide> return $response <add> ->withStringBod...
1
Javascript
Javascript
fix duplicate logic in stream destroy
4d5444981afa7b8579a557be0bf85a79a21a37d5
<ide><path>lib/internal/streams/destroy.js <ide> const { Symbol } = primordials; <ide> const kDestroy = Symbol('kDestroy'); <ide> const kConstruct = Symbol('kConstruct'); <ide> <add>function checkError(err, w, r) { <add> if (err) { <add> // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-6520...
1
Javascript
Javascript
update example to use a module
d35f50ee11af5d20518a62c750753da9c7c7a8dc
<ide><path>src/ng/interval.js <ide> function $IntervalProvider() { <ide> * @returns {promise} A promise which will be notified on each iteration. <ide> * <ide> * @example <del> * <example module="time"> <del> * <file name="index.html"> <del> * <script> <del> * function ...
1
Mixed
PHP
fix tests and cons
fb546f8d67a610381ba5ccea6bf873d75d363805
<ide><path>CHANGELOG.md <ide> ## v5.2.33 (2016-05-25) <ide> <ide> ### Added <del>- Allow query results to be traverse their via cursor ([#13030](https://github.com/laravel/framework/pull/13030)) <add>- Allow query results to be traversed using a cursor ([#13030](https://github.com/laravel/framework/pull/13030)) <ide> ...
12
Go
Go
improve some usages
b622da3cfe211d31df69e72a93ed4fae872aca65
<ide><path>docker/docker.go <ide> func main() { <ide> flDaemon = flag.Bool([]string{"d", "-daemon"}, false, "Enable daemon mode") <ide> flDebug = flag.Bool([]string{"D", "-debug"}, false, "Enable debug mode") <ide> flAutoRestart = flag.Bool([]string{"r", "-restart"}, true, "Restart...
2
Go
Go
add some stdcopy_test (coverage)
2ed4ed50be3a0379d83b9267f62c4c7f665b849f
<ide><path>pkg/stdcopy/stdcopy.go <ide> func (w *StdWriter) Write(buf []byte) (n int, err error) { <ide> // `t` indicates the id of the stream to encapsulate. <ide> // It can be stdcopy.Stdin, stdcopy.Stdout, stdcopy.Stderr. <ide> func NewStdWriter(w io.Writer, t StdType) *StdWriter { <del> if len(t) != StdWriterPrefix...
2
Text
Text
add changelog entry for [ci-skip]
d44e786d216f82584c7752ffee91ef4d5bea14ba
<ide><path>activerecord/CHANGELOG.md <add>* Add new `ActiveRecord::Base::generates_token_for` API. <add> <add> Currently, `signed_id` fulfills the role of generating tokens for e.g. <add> resetting a password. However, signed IDs cannot reflect record state, so <add> if a token is intended to be single-use,...
1
Javascript
Javascript
add req.connection and res.connection
3546106c43c08aed0f3e45f81f82496c9c51f6b9
<ide><path>lib/http.js <ide> var contentLengthExpression = /Content-Length/i; <ide> function IncomingMessage (socket) { <ide> events.EventEmitter.call(this); <ide> <add> // TODO Remove one of these eventually. <ide> this.socket = socket; <add> this.connection = socket; <add> <ide> this.httpVersion = null; <ide...
1
Text
Text
fix the case in title
4fd6515e1e2ec22172882964c0bb4b586461589c
<ide><path>guide/english/javascript/html-dom-innerhtml-property/index.md <ide> --- <del>title: HTML Dom Innerhtml Property <add>title: HTML DOM innerHTML Property <ide> --- <del>## HTML Dom Innerhtml Property <del>The `innerHTML` prop return the HTML content inside a selected element and also let you define a new HTML ...
1
Go
Go
fix a minor typo
07d190a61c60cff2f20186e700abca46f18d35ac
<ide><path>graph/push.go <ide> func (s *TagStore) pushImageToEndpoint(endpoint string, out io.Writer, remoteNam <ide> // wait for all the images that require pushes to be collected into a consumable map. <ide> shouldPush := <-pushes <ide> // finish by pushing any images and tags to the endpoint. The order that the ...
1
PHP
PHP
fix typos and expand docs
4b7ccf10c3b00328184cfa118c5e248552c0ff3f
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> class IntegrationTestCase extends TestCase { <ide> */ <ide> protected $_response; <ide> <add>/** <add> * Session data to use in the next request. <add> * <add> * @var array <add> */ <ide> protected $_session = []; <add> <add>/** <add> * Cookie data to use in th...
1
Javascript
Javascript
ignore unused materials in fbxloader
87fb3a6477e4d99e6168881e62f9f3586ff70403
<ide><path>examples/js/loaders/FBXLoader.js <ide> for ( var nodeID in materialNodes ) { <ide> <ide> var material = parseMaterial( materialNodes[ nodeID ], textureMap, connections ); <del> materialMap.set( parseInt( nodeID ), material ); <add> if ( material !== null ) materialMap.set( parseInt( nodeID ), m...
1
PHP
PHP
prevent block="css" when using inline=false css
22f844c48f3a37948470d0c177d9768fc83a8aaf
<ide><path>lib/Cake/View/Helper/HtmlHelper.php <ide> public function docType($type = 'html5') { <ide> * <ide> * ### Options <ide> * <del> * - `inline` Whether or not the link element should be output inline. Set to false to <add> * - `inline` Whether or not the link element should be output inline. Set to false to ...
1
PHP
PHP
implement proper return types
0ac05201b7b06e368c4336ac5760d76d28da3e55
<ide><path>src/Illuminate/Cache/RedisTaggedCache.php <ide> class RedisTaggedCache extends TaggedCache <ide> * @var string <ide> */ <ide> const REFERENCE_KEY_FOREVER = 'forever_ref'; <add> <ide> /** <ide> * Standard reference key. <ide> * <ide> public function put($key, $value, $ttl = null) <...
2
Ruby
Ruby
fix a button_to documentation example
c2cadd2f6de7e573037856379d95e234805c5477
<ide><path>actionview/lib/action_view/helpers/url_helper.rb <ide> def link_to(name = nil, options = nil, html_options = nil, &block) <ide> # <ide> # <ide> # <%= button_to('Destroy', 'http://www.example.com', <del> # method: "delete", remote: true, data: { confirm: 'Are you sure?', d...
1
Text
Text
add note in "fetching from the server" section
d136d28f55ca1b52fa9cd4250bfd30b4a81136b2
<ide><path>docs/docs/tutorial.ja-JP.md <ide> ReactDOM.render( <ide> <ide> このコンポーネントは自身を再びレンダリングすることになるので、これまでのコンポーネントとは異なります。レスポンスがサーバから返ってくると、送られてきた新しいコメントをコンポーネントがレンダリングすることになります。ですが、その時点までコンポーネントには何もデータがないはずです。 <ide> <add>確認: 上のコードは、このステップではまだ動きません。 <add> <ide> ### Reactive state <ide> <ide> これまで、それぞれのコンポーネントは自身の...
1
Go
Go
fix data races in map access
392b089170dae9271af26ac766be3438892a644a
<ide><path>libnetwork/networkdb/delegate.go <ide> func (nDB *NetworkDB) handleBulkSync(buf []byte) { <ide> } <ide> <ide> var nodeAddr net.IP <add> nDB.RLock() <ide> if node, ok := nDB.nodes[bsm.NodeName]; ok { <ide> nodeAddr = node.Addr <ide> } <add> nDB.RUnlock() <ide> <ide> if err := nDB.bulkSyncNode(bsm.Net...
2
Javascript
Javascript
simplify animationmixer to prevent bugs
ef42280373467e7e0b5f600b84d73ac881a915d0
<ide><path>src/animation/AnimationMixer.js <ide> THREE.AnimationMixer = function( root ) { <ide> this.time = 0; <ide> this.timeScale = 1.0; <ide> this.actions = []; <del> this.propertyBindings = []; <del> this.propertyBindingNamesToIndex = {}; <add> this.propertyBindingMap = {}; <ide> <ide> }; <ide> <ide> THREE.An...
1
Python
Python
add unit test for refresh endpoint
b5296f5bd9883eb77016d9426819241f834587dd
<ide><path>airflow/www/views.py <ide> def gantt(self): <ide> @login_required <ide> @wwwutils.action_logging <ide> def task_instances(self): <del> print request.args <ide> session = settings.Session() <ide> dag_id = request.args.get('dag_id') <ide> dag = dagbag.get_dag(dag_id) ...
2
Javascript
Javascript
add era info in generic locale
4acb0af24c7fb3705a197ca96adc532de4766a7a
<ide><path>i18n/src/converter.js <ide> function convertDatetimeData(dataObj) { <ide> datetimeFormats.AMPMS = dataObj.AMPMS; <ide> datetimeFormats.FIRSTDAYOFWEEK = dataObj.FIRSTDAYOFWEEK; <ide> datetimeFormats.WEEKENDRANGE = dataObj.WEEKENDRANGE; <add> datetimeFormats.ERAS = dataObj.ERAS; <add> datetimeFormats.E...
2
PHP
PHP
pass request to responsable
ef0e37d44182ac5043b5459bb25b1861e8e036df
<ide><path>src/Illuminate/Contracts/Support/Responsable.php <ide> interface Responsable <ide> /** <ide> * Create an HTTP response that represents the object. <ide> * <add> * @param \Illuminate\Http\Request $request <ide> * @return \Illuminate\Http\Response <ide> */ <del> public function...
5
Javascript
Javascript
fix enabletransitiontracing flag
88574c1b8bd4ed187f09a9c91d327784fe50dbe8
<ide><path>packages/react-noop-renderer/src/createReactNoop.js <ide> function createReactNoop(reconciler: Function, useMutation: boolean) { <ide> false, <ide> '', <ide> onRecoverableError, <add> null, <ide> ); <ide> roots.set(rootID, root); <ide> } <ide> func...
5
Javascript
Javascript
ignore babelrc in git-upgrade
b4a8630ea59bbc4a2b384c6e88dc5fd82ee5ee5a
<ide><path>react-native-git-upgrade/cli.js <ide> 'use strict'; <ide> <ide> require('babel-register')({ <add> babelrc: false, <ide> presets: [ <ide> require('babel-preset-es2015-node'), <ide> require('babel-preset-stage-3'),
1
Ruby
Ruby
convert time to string
dba022f3a9f1c0e256ae290ffffd332f7a9fd250
<ide><path>activerecord/test/cases/migration_test.rb <ide> def test_migrator_versions <ide> assert_equal m0_fingerprint, rows[0]["fingerprint"] <ide> assert_equal "valid_people_have_last_names", rows[0]["name"] <ide> rows.each do |row| <del> assert_match(/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/, row["migr...
2
PHP
PHP
fix whitespace and remove duplicate method calls
15c94dee4dbab5a5e1710e980f20b47509e392bb
<ide><path>lib/Cake/Model/Permission.php <ide> public function getAclLink($aro, $aco) { <ide> if (empty($obj['Aro']) || empty($obj['Aco'])) { <ide> return false; <ide> } <add> $aro = Hash::extract($obj, 'Aro.0.' . $this->Aro->alias . '.id'); <add> $aco = Hash::extract($obj, 'Aco.0.' . $this->Aco->alias . '.id'...
2
Javascript
Javascript
get client app to work on edge
cc6e1fdbf45aa467261a53c1bdf3a68486a1601f
<ide><path>client/src/client/frame-runner.js <ide> import jQuery from 'jquery'; <ide> <ide> window.$ = jQuery; <ide> <del>const testId = 'fcc-test-frame'; <del>if (window.frameElement && window.frameElement.id === testId) { <del> document.addEventListener('DOMContentLoaded', initTestFrame); <del>} <del> <del>// For ...
7
Python
Python
replace assertions with valueerror exeptions
fa4abdb3ea8860827e985dcbb59bf72ecb01b9eb
<ide><path>src/transformers/models/wav2vec2/convert_wav2vec2_original_pytorch_checkpoint_to_pytorch.py <ide> def set_recursively(hf_pointer, key, value, full_name, weight_type): <ide> else: <ide> hf_shape = hf_pointer.shape <ide> <del> assert ( <del> hf_shape == value.shape <del> ), f"Shape of...
1
Javascript
Javascript
handle helper paths
0a3cff6f74732213e90664b435dccd4dc8816072
<ide><path>threejs/resources/editor.js <ide> function getSourceBlob(htmlParts) { <ide> g.rootScriptInfo.source = htmlParts.js; <ide> makeBlobURLsForSources(g.rootScriptInfo); <ide> <del> const prefix = dirname(g.url); <add> const dname = dirname(g.url); <add> // HACK! for webgl-2d-vs... those examples are not i...
1
Javascript
Javascript
fix errors in children management
8f2d73d50bf4ce52bdc155db9c9d2da7306eb357
<ide><path>Libraries/Renderer/src/renderers/native/ReactNativeFiber.js <ide> const NativeRenderer = ReactFiberReconciler({ <ide> parentInstance: Instance | Container, <ide> child: Instance | TextInstance, <ide> ): void { <del> <del> const childTag = typeof child === 'number' <del> ? child <del> :...
1
Ruby
Ruby
indicate multiple named args in usage banner
cf654da251fff2d6487abaf6d4736161544a6772
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> module Homebrew <ide> def bottle_args <ide> Homebrew::CLI::Parser.new do <ide> usage_banner <<~EOS <del> `bottle` [<options>] <formula> <add> `bottle` [<options>] <formula> [<formula> ...] <ide> <ide> Generate a bottle (binary packag...
17
Javascript
Javascript
implement accurate moment.duration({from, to})
621d98af101a1d6df7c946c133d555556acbc1ad
<ide><path>moment.js <ide> return (sign ? (forceSign ? '+' : '') : '-') + output; <ide> } <ide> <add> function positiveMomentsDifference(base, other) { <add> var res = {milliseconds: 0, months: 0}; <add> <add> res.months = other.month() - base.month() + <add> (other.year() - bas...
2
PHP
PHP
remove deprecated cookie, csrf components
2cfb801e10ed21502569ce5ab71debb6378dcdcb
<ide><path>src/Controller/Component/CookieComponent.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license info...
8
Ruby
Ruby
redact boost149 from core
3ef1a9241de6ebc611456ae4728b53c8b295202d
<ide><path>Library/Homebrew/tap_migrations.rb <ide> 'blackbox' => 'homebrew/boneyard', <ide> 'libgtextutils' => 'homebrew/science', <ide> 'syslog-ng' => 'homebrew/boneyard', <add> 'librets' => 'homebrew/boneyard', <add> 'drizzle' => 'homebrew/boneyard', <add> 'boost149' => 'homebrew/versions, <ide> }
1
Ruby
Ruby
add patch level to ruby version information
5c099a6f06abe1ab75844c44e9716b8f8d7ecceb
<ide><path>railties/lib/rails/info.rb <ide> def to_html <ide> end <ide> end <ide> <del> # The Ruby version and platform, e.g. "1.8.2 (powerpc-darwin8.2.0)". <del> property 'Ruby version', "#{RUBY_VERSION} (#{RUBY_PLATFORM})" <add> # The Ruby version and platform, e.g. "2.0.0p247 (x86_64-darwin12.4.0...
1
Javascript
Javascript
skip animation on first render
1351ba2632b5011ad6eaddf004a7f0411bea8453
<ide><path>src/ng/animator.js <ide> * <ide> * The `event1` and `event2` attributes refer to the animation events specific to the directive that has been assigned. <ide> * <add> * Keep in mind that, by default, **all** initial animations will be skipped until the first digest cycle has fully <add> * passed. This help...
8
Ruby
Ruby
remove unnecessary explicit return val
f82da9009fe0f862df5ed534d3914a51bf4718f2
<ide><path>Library/Homebrew/utils/update.rb <ide> def display_version_data(outdated_packages) <ide> puts "==============Formatted outdated packages============\n" <ide> <ide> outdated_packages.each do |package_name, package_details| <del> puts "" <del> puts "Formula: #{package_name}" <add> puts ...
2
Javascript
Javascript
remove sha from test expectations
00a55e62877faab053dbbe1178488f7cf8dee466
<ide><path>test/parallel/test-crypto.js <ide> const noCapitals = /^[^A-Z]+$/; <ide> assert(tlsCiphers.every((value) => noCapitals.test(value))); <ide> validateList(tlsCiphers); <ide> <del>// Assert that we have sha and sha1 but not SHA and SHA1. <add>// Assert that we have sha1 and sha256 but not SHA1 and SHA256. <ide...
1
Python
Python
fix typo in naming
0f4dc5d864e2d80396d56067e2fb4479349c5289
<ide><path>src/transformers/models/bart/modeling_tf_bart.py <ide> def call( <ide> past_key_values=outputs.past_key_values, # index 1 of d outputs <ide> decoder_hidden_states=outputs.decoder_hidden_states, # index 2 of d outputs <ide> decoder_attentions=outputs.decoder_attentions, ...
6
Javascript
Javascript
remove unused variable
b6621397085f0d542d2ee79048978ec014c2a970
<ide><path>src/js/media.html5.js <ide> vjs.Html5.canPlaySource = function(srcObj){ <ide> }; <ide> <ide> vjs.Html5.canControlVolume = function(){ <del> var <del> volume = vjs.TEST_VID.volume, <del> volumeOptions = {}; <add> var volume = vjs.TEST_VID.volume; <ide> vjs.TEST_VID.volume = (volume / 2) + 0.1; <i...
1
Text
Text
update changelog.md for 2.8.0
f9a9dca98f028f22c6817983d77b6606994c5a43
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.8.0-beta.5 (August 30, 2016) <add>### 2.8.0 (September 8, 2016) <ide> <add>- [#14229](https://github.com/emberjs/ember.js/pull/14229) [BUGFIX] Fix boot errors with `location: 'auto'` when using IE9. <add>- [#14219](https://github.com/emberjs/ember.js/pu...
1
Ruby
Ruby
allow multiple digits in github version parts
5aa6aefa9664597ae9f004a9e0cb58edd31a2d6e
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def version <ide> end <ide> <ide> # github tarballs, like v1.2.3 <del> %r[github.com/.*/(zip|tar)ball/v?((\d\.)+\d+)$].match to_s <add> %r[github.com/.*/(zip|tar)ball/v?((\d+\.)+\d+)$].match to_s <ide> return $2 if $2 <ide> <ide> # eg. https:/...
1
Text
Text
fix minor typo in how-to-create-and-maintain-a-tap
157a9191e3505d3b2eba1954143875787a7434d1
<ide><path>docs/How-to-Create-and-Maintain-a-Tap.md <ide> If they want to get your tap without installing any formula at the same time, <ide> users can add it with the [`brew tap` command](Taps.md). <ide> <ide> If it’s on GitHub, they can use `brew tap user/repo`, where `user` is your <del>GitHub username and `homebre...
1
Javascript
Javascript
update http tests for econnreset change
862b16420918a56284a794c7de040a7ca5783d6b
<ide><path>test/simple/test-http-conn-reset.js <ide> function onListen() { <ide> }); <ide> req.on('error', function(err) { <ide> assert.equal(err.code, 'ECONNRESET'); <del> assert.equal(err.message, 'socket hang up'); <ide> caughtError = true; <ide> }); <ide> req.end(); <ide><path>test/simple/test-ht...
3
PHP
PHP
make wherein defalut to loose comparison
2f2f293ba232d69a8cb0b5ac81d78878b8d987af
<ide><path>src/Illuminate/Support/Collection.php <ide> protected function operatorForWhere($key, $operator, $value) <ide> * @param bool $strict <ide> * @return static <ide> */ <del> public function whereIn($key, array $values, $strict = true) <add> public function whereIn($key, array $values, $st...
2
Go
Go
remove portbinding.fromstring() as it's unused
7c0d8fa5da077b092310a7d895677ffb54348c93
<ide><path>libnetwork/types/types.go <ide> func (p *PortBinding) String() string { <ide> return ret <ide> } <ide> <del>// FromString reads the PortBinding structure from string s. <del>// String s is a triple of "protocol/containerIP:port/hostIP:port" <del>// containerIP and hostIP can be in dotted decimal ("192.0.2....
2
Javascript
Javascript
replace usage of debug statements in ember-debug
847a7869f552ac480a09530b892b71f40450ec74
<ide><path>packages/ember-debug/lib/deprecate.js <ide> import Ember from 'ember-metal/core'; <ide> import EmberError from 'ember-metal/error'; <ide> import Logger from 'ember-metal/logger'; <add> <ide> import { registerHandler as genericRegisterHandler, invoke } from 'ember-debug/handlers'; <ide> <ide> export function...
4