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 tintcolor prop platform in image
d3e5a96b1535e37f26faf7752ea0b724eb090744
<ide><path>Libraries/Image/ImageStylePropTypes.js <ide> var ImageStylePropTypes = { <ide> overflow: ReactPropTypes.oneOf(['visible', 'hidden']), <ide> <ide> /** <del> * iOS-Specific style to "tint" an image. <ide> * Changes the color of all the non-transparent pixels to the tintColor. <del> * @platform ios ...
1
Go
Go
fix race when reading exit status
a290f5d04cda8186eba93531b6f09bda8052717f
<ide><path>container/container.go <ide> type Container struct { <ide> Driver string <ide> OS string <ide> // MountLabel contains the options for the 'mount' command <del> MountLabel string <del> ProcessLabel string <del> RestartCount int <del> HasBeenStartedBefor...
3
Python
Python
add a try_output_compile in numpy.distutils
66c792b0e2c3ba68e844e92770f312074ed9bc4a
<ide><path>numpy/distutils/ccompiler.py <ide> def CCompiler_spawn(self, cmd, display=None): <ide> else: <ide> msg = '' <ide> raise DistutilsExecError('Command "%s" failed with exit status %d%s' % (cmd, s, msg)) <add> if hasattr(self, 'config_output'): <add> self.config_output += o ...
2
Javascript
Javascript
fix exports from es6ing of ember-application
fa94f3cb0a64aaebeff1b7ddd232b2f9406861b9
<ide><path>packages/ember/lib/main.js <add>// ensure that minispade loads the following modules first <ide> require('ember-metal'); <ide> require('ember-runtime'); <ide> require('ember-handlebars-compiler'); <ide> require('ember-routing'); <ide> require('ember-application'); <ide> require('ember-extension-support'); <i...
2
Javascript
Javascript
fix skin+morph and timescale
fbf78109160127c66a124e829b59ca702f73fecf
<ide><path>examples/js/loaders/sea3d/SEA3DLoader.js <ide> THREE.SEA3D.Animator.prototype.getTimeScale = function() { <ide> <ide> THREE.SEA3D.Animator.prototype.updateTimeScale = function() { <ide> <del> this.currentAnimationAction.setEffectiveTimeScale( this.timeScale * ( this.currentAnimation ? this.currentAnimation...
1
Ruby
Ruby
simplify spec helper
b9de5c04908bbbe2e2c30fff57b1301e17082202
<ide><path>Library/Homebrew/cask/spec/spec_helper.rb <ide> # pretend that the caskroom/cask Tap is installed <ide> FileUtils.ln_s Pathname.new(ENV["HOMEBREW_LIBRARY"]).join("Taps", "caskroom", "homebrew-cask"), Tap.fetch("caskroom", "cask").path <ide> <add>HOMEBREW_CASK_DIRS = [ <add> :appdir, <add> :caskroom, <add>...
1
Ruby
Ruby
use raw block to return tty to proper state
c88f4c064556b867ec1a3460ab9f8820453cef18
<ide><path>Library/Homebrew/sandbox.rb <ide> def exec(*args) <ide> command = [SANDBOX_EXEC, "-f", seatbelt.path, *args] <ide> # Start sandbox in a pseudoterminal to prevent access of the parent terminal. <ide> T.unsafe(PTY).spawn(*command) do |r, w, pid| <del> # Set the PTY's window size to mat...
1
PHP
PHP
fix argument order passing to url generator
6c3e34b7e64b4757c827d10323f55c1a4f4b0ced
<ide><path>src/Illuminate/Routing/Redirector.php <ide> public function back($status = 302, $headers = array()) <ide> */ <ide> public function to($path, $status = 302, $headers = array(), $secure = false) <ide> { <del> $path = $this->generator->to($path, $secure); <add> $path = $this->generator->to($path, array(),...
1
Ruby
Ruby
fix dummy app for inclusion in rails
4f8be04f4e51c10fcaa0efd8eb004ea7860f1a56
<ide><path>activestorage/test/dummy/config/application.rb <ide> require "action_controller/railtie" <ide> require "action_view/railtie" <ide> require "sprockets/railtie" <add>require "active_storage/engine" <ide> #require "action_mailer/railtie" <ide> #require "rails/test_unit/railtie" <ide> #require "action_cable/engi...
1
Javascript
Javascript
add tests for err_http2_frame_error
e30876121aa8db0317d22c368e4de08df0ba87d5
<ide><path>test/parallel/test-internal-errors.js <ide> assert.strictEqual( <ide> errors.message('ERR_HTTP2_HEADER_REQUIRED', ['test']), <ide> 'The test header is required'); <ide> <add>// Test ERR_HTTP2_FRAME_ERROR <add>assert.strictEqual( <add> errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar', 'baz']), <add...
1
PHP
PHP
add various optional helpers
06de9b2beb9e3c13758d93cee86a1657545cb435
<ide><path>src/Illuminate/Http/Resources/Json/Resource.php <ide> public function withResponse($request, $response) <ide> * @param mixed $value <ide> * @return \Illuminate\Http\Resources\MissingValue|mixed <ide> */ <del> protected function when($condition, $value) <add> protected function when($co...
5
Javascript
Javascript
fix typo in eventdata property
6ec775e0cd799464ab675e7243e08fdba957b1b7
<ide><path>src/ngScenario/browserTrigger.js <ide> evnt = createTouchEvent(element, eventType, x, y); <ide> } else if (/key/.test(eventType)) { <ide> evnt = window.document.createEvent('Events'); <del> evnt.initEvent(eventType, eventData.bubbles, eventData.canceable); <add> evnt.initEvent(event...
1
Text
Text
improve the testing guide [ci skip]
577a6378ba4e2c38f38220c8537ea586997de3ed
<ide><path>guides/source/testing.md <ide> Here's a sample YAML fixture file: <ide> ```yaml <ide> # lo & behold! I am a YAML comment! <ide> david: <del> name: David Heinemeier Hansson <del> birthday: 1979-10-15 <del> profession: Systems development <add> name: David Heinemeier Hansson <add> birthday: 1979-10-15 <add> ...
1
Ruby
Ruby
use parser to parse args
56fb2cb67c728f73a1f018eb0da26644ff2ea3c8
<ide><path>Library/Homebrew/dev-cmd/edit.rb <ide> #: Open <formula> in the editor. <ide> <ide> require "formula" <add>require "cli_parser" <ide> <ide> module Homebrew <ide> module_function <ide> <ide> def edit <add> args = Homebrew::CLI::Parser.new do <add> switch "--force" <add> end.parse <add> <i...
1
Python
Python
fix backwards compatibility further
7c8b71d2012d56888f21b24c4844a6838dc3e4b1
<ide><path>airflow/providers/cncf/kubernetes/backcompat/backwards_compat_converters.py <ide> <ide> from typing import List <ide> <del>from kubernetes.client import models as k8s <add>from kubernetes.client import ApiClient, models as k8s <ide> <ide> from airflow.exceptions import AirflowException <ide> from airflow....
4
Text
Text
convert some backticks to apo's
205bd91fcab30292ac5f246ce9bdbb045ad1023f
<ide><path>docs/sources/reference/run.md <ide> the container you might have an HTTP service listening on port 80 (and so you <ide> 42800. <ide> <ide> To help a new client container reach the server container's internal port <del>operator `--expose``d by the operator or `EXPOSE``d by the developer, the <add>operator `-...
1
Ruby
Ruby
fix deprecation warning in tests
12f08acbacf823041dae27afd1a1a1458bb1e3fa
<ide><path>actionpack/test/dispatch/session/mem_cache_store_test.rb <ide> def with_test_route_set <ide> <ide> @app = self.class.build_app(set) do |middleware| <ide> middleware.use ActionDispatch::Session::MemCacheStore, :key => '_session_id', :namespace => "mem_cache_store_test:#{SecureRandom.hex(10)...
3
Python
Python
remove unwanted code
0b54046ff8bbb60f0ec0ecbc1b6215be6bc1b2d9
<ide><path>src/transformers/models/deberta_v2/modeling_deberta_v2.py <ide> def disentangled_attention_bias(self, query_layer, key_layer, relative_pos, rel_ <ide> r_pos = relative_pos <ide> <ide> p2c_pos = torch.clamp(-r_pos + att_span, 0, att_span * 2 - 1) <del> if query_layer.si...
1
Text
Text
modify the arrangement of text
11d4b464d372bd9318eaa218c34fe6fdf4c6d8da
<ide><path>guide/chinese/agile/rapid-application-development/index.md <ide> localeTitle: 快速应用开发 <ide> <ide> 快速应用程序开发(RAD)被设计为对传统软件开发方法问题的反应,特别是长时间开发的问题。它还解决了与开发过程中需求变化相关的问题。 <ide> <del>RAD的主要原则如下: 1)增量发展。这是RAD处理不断变化的需求的主要手段。只有当用户看到并体验使用中的系统时,才会出现一些要求。要求从未被视为完整 - 由于环境的变化,它们会随着时间的推移而发展。 RAD流程从一个高级的,非特定的需求列表开始,这些需求在开发过程...
1
Text
Text
add reference for == and != operators
1744836d9cb9e08b380f0b9b6a5548f179fdd361
<ide><path>doc/api/assert.md <ide> more on color support in terminal environments, read the tty <ide> <ide> ## Legacy assertion mode <ide> <del>Legacy assertion mode uses the `==` operator in: <add>Legacy assertion mode uses the [`==` operator][] in: <ide> <ide> * [`assert.deepEqual()`][] <ide> * [`assert.equal()`][...
1
Javascript
Javascript
fix duplicate array creation
f649588c9c4926bb613c27142397ff6d81925f66
<ide><path>src/objects/InstancedMesh.js <ide> InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), { <ide> _instanceWorldMatrix.multiplyMatrices( matrixWorld, _instanceLocalMatrix ); <ide> <ide> <del> //The agent mesh represents this single instance <add> //The mesh represents this single ...
1
Python
Python
fix flaky test
b91854ea9d9764ab670b7cccdcec40ae964195be
<ide><path>tests/test_model_saving.py <ide> def test_sequential_model_saving(): <ide> <ide> new_model = load_model(fname) <ide> out2 = new_model.predict(x) <del> assert_allclose(out, out2) <add> assert_allclose(out, out2, atol=1e-05) <ide> <ide> # test that new updates are the same with both models ...
1
Ruby
Ruby
improve otool failure handling
56e82c941efa6827a6095630bebbdcc5ad631ff7
<ide><path>Library/Homebrew/mach.rb <ide> def initialize(path) <ide> def parse_otool_L_output <ide> ENV["HOMEBREW_MACH_O_FILE"] = path.expand_path.to_s <ide> libs = `#{MacOS.locate("otool")} -L "$HOMEBREW_MACH_O_FILE"`.split("\n") <del> return nil, [] if libs.empty? <add> unless $?.success? <a...
1
Ruby
Ruby
resolve warnings by instantizing @attrubtes as nil
3d87d01dad08f0ff84d38b1211ba8de0364e0efb
<ide><path>activerecord/test/cases/attribute_methods_test.rb <ide> def test_respond_to_with_allocated_object <ide> # by inspecting it. <ide> def test_allocated_object_can_be_inspected <ide> topic = Topic.allocate <add> topic.instance_eval { @attributes = nil } <ide> assert_nothing_raised { topic.inspect ...
1
Go
Go
add missing parserepositorytag
c84d74df8c17f50c8ca7f5027ade4db8360f5ed3
<ide><path>server.go <ide> func (srv *Server) deleteImage(img *Image, repoName, tag string) ([]APIRmi, erro <ide> //If delete by id, see if the id belong only to one repository <ide> if strings.Contains(img.ID, repoName) && tag == "" { <ide> for _, repoAndTag := range srv.runtime.repositories.ByID()[img.ID] { <del>...
1
Javascript
Javascript
remove explicit call to `waitforangular()`
26acedde7c59cc15f156ba32d141a8be3cac46bc
<ide><path>test/e2e/tests/angular-already-loadedSpec.js <ide> describe('App where angular is loaded more than once', function() { <ide> beforeEach(function() { <del> loadFixture('angular-already-loaded').andWaitForAngular(); <add> loadFixture('angular-already-loaded'); <ide> }); <ide> <ide> it('should have...
5
Mixed
Ruby
fix incorrect caching of case-insensitivity
b39050e8d574b814d3580688276e933a3d08aca8
<ide><path>activerecord/CHANGELOG.md <add>* Fix redundant updates to the column insensitivity cache <add> <add> Fixed redundant queries checking column capability for insensitive <add> comparison. <add> <add> *Phil Pirozhkov* <add> <ide> * Allow disabling methods generated by `ActiveRecord.enum`. <ide> <i...
3
Javascript
Javascript
fix linter error
7d2aeeee226319d49b9bd5ae03931a69d02fdf08
<ide><path>src/renderers/webgl/WebGLCapabilities.js <ide> function WebGLCapabilities( gl, extensions, parameters ) { <ide> var maxSamples = isWebGL2 ? gl.getParameter( gl.MAX_SAMPLES ) : 0; <ide> <ide> var multiviewExt = extensions.get( 'OVR_multiview2' ); <del> var multiview = isWebGL2 && ( !! multiviewExt ) && !gl...
1
Text
Text
fix the link to the docs
5eb8f818dfe1b517517f83f447f3970d70c7c5d8
<ide><path>README.md <ide> Airflow <ide> ==== <ide> Airflow is a system to programmaticaly author, schedule and monitor data pipelines. <ide> <del>[Documentation](https://readthedocs.org/dashboard/flux-data-pipelines/) <add>[Documentation](http://airflow.readthedocs.org/en/latest/)
1
Javascript
Javascript
replace common.fixturesdir with commonfixtures
03550a5c18f77d4c956e11b2e5b982572c57d92e
<ide><path>test/parallel/test-tls-net-connect-prefer-path.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> <ide> // This tests that both tls and net will ignore host and port if path is <ide> // provided. <ide> function mkServer(lib, tcp, cb) ...
1
Javascript
Javascript
set correct type in contextdependency
724987a8a7d47c45125c75889f23bd6d4bde51f1
<ide><path>lib/dependencies/ContextDependency.js <ide> class ContextDependency extends Dependency { <ide> super(); <ide> this.options = options; <ide> this.userRequest = this.options.request; <add> /** @type {false | string} */ <ide> this.critical = false; <ide> this.hadGlobalOrStickyRegExp = false; <ide> ...
1
Go
Go
fix minor vet warnings
7a20a270bc7ce34c9a6f7cc9eebb38c0bb332b7f
<ide><path>daemon/discovery_test.go <ide> func TestModifiedDiscoverySettings(t *testing.T) { <ide> for _, c := range cases { <ide> got := modifiedDiscoverySettings(c.current, c.modified.ClusterStore, c.modified.ClusterAdvertise, c.modified.ClusterOpts) <ide> if c.expected != got { <del> t.Fatalf("expected %v, go...
3
Javascript
Javascript
fix arguments order in test-fs-write-buffer
52c548b05d294765f0d2f0e39a9e5552fb007b2f
<ide><path>test/parallel/test-fs-write-buffer.js <ide> tmpdir.refresh(); <ide> const cb = common.mustCall((err, written) => { <ide> assert.ifError(err); <ide> <del> assert.strictEqual(2, written); <add> assert.strictEqual(written, 2); <ide> fs.closeSync(fd); <ide> <ide> const found = f...
1
Text
Text
fix broken links
005aa45c32ca3bf48e0acc8d36c43ccc97507380
<ide><path>docs/samples/area/line-stacked.md <ide> module.exports = { <ide> <ide> ## Docs <ide> * [Area](../../charts/area.html) <del> * [Filling modes](../../charts/area.htmll#filling-modes) <add> * [Filling modes](../../charts/area.html#filling-modes) <ide> * [Line](../../charts/line.html) <ide> * [Data structures...
2
Ruby
Ruby
try blacklist for unknown formula names
b163ed03e9b7406ceefd88033943ff28d0ff7ebd
<ide><path>Library/Homebrew/cmd/info.rb <ide> require 'tab' <ide> require 'keg' <ide> require 'caveats' <add>require 'blacklist' <ide> <ide> module Homebrew extend self <ide> def info <ide> def print_info <ide> elsif valid_url ARGV[0] <ide> info_formula Formula.factory(ARGV.shift) <ide> else <del> ...
1
Javascript
Javascript
improve readability of normalizeencoding
34bf31ea8a027f8d43958ec6d79ecedc3a8188d4
<ide><path>benchmark/util/normalize-encoding.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add>const assert = require('assert'); <add> <add>const groupedInputs = { <add> group_common: ['undefined', 'utf8', 'utf-8', 'base64', 'binary', 'latin1'], <add> group_upper: ['UTF-8', 'UTF8', 'UCS2',...
2
Ruby
Ruby
clarify error message
775c2fd245c5a2eb9976885778ff91d7b6c66b35
<ide><path>Library/Homebrew/livecheck/strategy/page_match.rb <ide> def self.match?(url) <ide> def self.page_matches(url, regex, &block) <ide> page = Strategy.page_contents(url) <ide> <add> odebug "Page Contents", page <add> <ide> if block <ide> data = { page: page } <id...
1
Ruby
Ruby
improve deprecation message
aca4c82d95721df874ae8ed5da2a476fdec42f11
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb <ide> def kwarg_request?(*args) <ide> def non_kwarg_request_warning <ide> ActiveSupport::Deprecation.warn(<<-MSG.strip_heredoc) <ide> ActionDispatch::Integration::TestCase HTTP request methods will accept only <del> ...
1
Text
Text
update the way of using module dimensions
331fb61376b8e4775ca3d247fc2435901fa2cf76
<ide><path>docs/Animations.md <ide> make them customizable, React Native exposes a <ide> [NavigatorSceneConfigs](https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/NavigatorSceneConfigs.js) API. <ide> <ide> ```javascript <del>var SCREEN_WIDTH = require('Dimensions').get('window')...
1
Text
Text
fix terms and add installation commands
34093dc3c32a786618ade6a9933d8964a87a7e9a
<ide><path>guide/portuguese/apache/index.md <ide> localeTitle: Apache <ide> --- <ide> ## Apache <ide> <del>O Apache HTTP Server, comumente conhecido como Apache, é um servidor web de plataforma cruzada gratuito e de código aberto, lançado sob os termos da [Apache License 2.0](https://en.wikipedia.org/wiki/Apache_Licen...
1
Ruby
Ruby
initialize cxxstdlib set lazily
c1366b111f866a2a4e03ce606b52f93b1de10fdb
<ide><path>Library/Homebrew/formula.rb <ide> class Formula <ide> <ide> attr_accessor :local_bottle_path <ide> <del> # Flag for marking whether this formula needs C++ standard library <del> # compatibility check <del> attr_reader :cxxstdlib <del> <ide> # Homebrew determines the name <ide> def initialize name=...
1
Javascript
Javascript
fix debug_info env var
2e4b6a08085f5aee3df81e88af84848160073ef4
<ide><path>test/setupTestFramework.js <ide> if (process.env.DEBUG_INFO) { <ide> } <ide> }; <ide> }; <del> const env = jasmine.getEnv(); <del> env.it = addDebugInfo(env.it); <add> // eslint-disable-next-line no-global-assign <add> it = addDebugInfo(it); <ide> } <ide> <ide> // Workaround for a memory leak in wabt
1
Javascript
Javascript
fix linting issues
fea53502585c5b42d1b6f3a60f23ce0670e326a9
<ide><path>packages/welcome/lib/sunsetting-view.js <ide> export default class SunsettingView { <ide> this.props = props; <ide> etch.initialize(this); <ide> <del> this.element.addEventListener('click', (event) => { <add> this.element.addEventListener('click', event => { <ide> const link = event.targ...
3
Go
Go
move maxtime init() back to chtimes code
247f90c82e0846ec108a4abab51af93fa14b86a1
<ide><path>pkg/system/chtimes.go <ide> package system // import "github.com/docker/docker/pkg/system" <ide> <ide> import ( <ide> "os" <add> "syscall" <ide> "time" <add> "unsafe" <ide> ) <ide> <add>// Used by Chtimes <add>var maxTime time.Time <add> <add>func init() { <add> if unsafe.Sizeof(syscall.Timespec{}.Nsec) ...
2
Ruby
Ruby
improve secret_token deprecation message
219e831d15b10eef43a7a65262bd0938e6baaabb
<ide><path>railties/lib/rails/application.rb <ide> def key_generator <ide> def env_config <ide> @env_config ||= begin <ide> if config.secret_key_base.nil? <del> ActiveSupport::Deprecation.warn "You didn't set config.secret_key_base. " + <del> "This should be used instead of the old...
1
Text
Text
fix example link
fd937afcf5de381e9e015faacf0df9a2be12a744
<ide><path>threejs/lessons/threejs-scenegraph.md <ide> One thing to notice is we set the `renderOrder` of the `AxesHelper` <ide> to 2 and for the `GridHelper` to 1 so that the axes get drawn after the grid. <ide> Otherwise the grid might overwrite the axes. <ide> <del>{{{example url="../threejs-scenegraph-sun-earth-mo...
1
Javascript
Javascript
update deprecation errors
f230e45183f21278258cd47245f6f8ad7ef774bc
<ide><path>src/node.js <ide> <ide> // deprecation errors <ide> <add>GLOBAL.__module = function () { <add> throw new Error("'__module' has been renamed to 'module'"); <add>}; <add> <ide> GLOBAL.include = function () { <del> throw new Error("include() has been removed. Use process.mixin(process, require(file)) to get...
1
Python
Python
add examples for isdigit and str_len
65eb581a3bd4b5e0ee390606e20dc4b6f8597b34
<ide><path>numpy/core/defchararray.py <ide> def str_len(a): <ide> See Also <ide> -------- <ide> builtins.len <add> <add> Examples <add> -------- <add> >>> a = np.array(['Grace Hopper Conference', 'Open Source Day']) <add> >>> np.char.str_len(a) <add> array([23, 15]) <add> >>> a = np.array(...
1
PHP
PHP
pass delete method through eloquent query
4822f847c2cd2ba0342a9090eb704e33e2942ad5
<ide><path>laravel/database/eloquent/query.php <ide> class Query { <ide> */ <ide> public $passthru = array( <ide> 'lists', 'only', 'insert', 'insert_get_id', 'update', 'increment', <del> 'decrement', 'count', 'min', 'max', 'avg', 'sum', <add> 'delete', 'decrement', 'count', 'min', 'max', 'avg', 'sum', <ide> ); ...
1
Text
Text
remove accidental conflict diff
a8e090df04c9574aee9990f82715841aa797e220
<ide><path>docs/tutorial/quickstart.md <ide> Because we're using viewsets instead of views, we can automatically generate the <ide> <ide> Again, if we need more control over the API URLs we can simply drop down to using regular class based views, and writing the URL conf explicitly. <ide> <del><<<<<<< HEAD <del>Note ...
1
PHP
PHP
highlight the discovered package name
ee051fb44425a5cbf363f640b6dd33f492d90940
<ide><path>src/Illuminate/Foundation/Console/PackageDiscoverCommand.php <ide> public function handle(PackageManifest $manifest) <ide> $manifest->build(); <ide> <ide> foreach (array_keys($manifest->manifest) as $package) { <del> $this->line("<info>Discovered Package:</info> {$package}"); <add...
1
PHP
PHP
update phpdoc comments to match signature
d2da49c113f995bce6ed64ac765ca3ab3fa6236c
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HidesAttributes.php <ide> public function makeHidden($attributes) <ide> /** <ide> * Make the given, typically visible, attributes hidden if the given truth test passes. <ide> * <del> * @param bool|Closure $truthTest <add> * @param bool|Closur...
11
Ruby
Ruby
fix table comment dumping
0780c444dbf9793fdffaa631fa929d77f109e24f
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb <ide> def new_column(*args) # :nodoc: <ide> end <ide> <ide> def table_options(table_name) # :nodoc: <del> { comment: table_comment(table_name) } <add> if comment = table_comment(table_name) <...
3
Ruby
Ruby
compare addresses case-insensitively
015c33f4cd6758e2c7d43f82ff5da93bac5cf3e3
<ide><path>lib/action_mailbox/router/route.rb <ide> def initialize(address, to:) <ide> def match?(inbound_email) <ide> case address <ide> when String <del> recipients_from(inbound_email.mail).include?(address) <add> recipients_from(inbound_email.mail).any? { |recipient| address.casecmp?(recipient) }...
2
Text
Text
remove outstanding yaml comment
b3c3e0115f1c0341f0c34265f88aadb148f49e64
<ide><path>doc/api/buffer.md <ide> This is the size (in bytes) of pre-allocated internal `Buffer` instances used <ide> for pooling. This value may be modified. <ide> <ide> ### `buf[index]` <del><!-- YAML <del>type: property <del>name: [index] <del>--> <ide> <ide> * `index` {integer} <ide>
1
PHP
PHP
use new fromshellcommandline method
e2e3dffbe0b3062620b7f6fd1e25f04e4f461909
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> protected function runCommandInForeground(Container $container) <ide> { <ide> $this->callBeforeCallbacks($container); <ide> <del> (new Process( <del> $this->buildCommand(), base_path(), null, null, null <del> ))->run(); <...
1
Javascript
Javascript
remove couple of spaces
a8b38b0e6b66edab2993e7a517ac37968dc1de92
<ide><path>src/manipulation.js <ide> jQuery.fn.extend({ <ide> }, <ide> <ide> before: function() { <del> return this.domManip( arguments, false, function( elem ) { <add> return this.domManip(arguments, false, function( elem ) { <ide> if ( this.parentNode ) { <ide> this.parentNode.insertBefore( elem, this ); ...
1
PHP
PHP
fix a styling issue
7c0d0f6baea9c89255e5da5a7df5ec0a0c5d9b82
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> public function registerCustomDBALType($class, $name, $type) <ide> if (! $this->connection->isDoctrineAvailable()) { <ide> return; <ide> } <del> <add> <ide> if (! Type::hasType($name)) { <ide> Type::addTy...
1
Javascript
Javascript
add unit tests to flattenstyle
c6492111476859778248cabe707da804e32275dc
<ide><path>Libraries/StyleSheet/__tests__/flattenStyle-test.js <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional gran...
1
Javascript
Javascript
improve spliceone perf
b04d0921aeaa70521dea5fcb27256c686157eb87
<ide><path>benchmark/util/splice-one.js <add>'use strict'; <add> <add>const common = require('../common'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [1e7], <add> pos: ['start', 'middle', 'end'], <add> size: [10, 100, 500], <add>}, { flags: ['--expose-internals'] }); <add> <add>function main({ ...
3
Python
Python
return empty dict if pod json encoding fails
fe5e689adfe3b2f9bcc37d3975ae1aea9b55e28a
<ide><path>airflow/utils/json.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> <add>import logging <ide> from datetime import date, datetime <ide> from decimal import Decimal <ide> <ide> <ide> # Dates and JSON encoding/decoding <ide> <add>log = logging.getLogger(__...
1
Java
Java
fix malformed html in cglib javadoc
d6f73994c2385c98b9d70853f684866861364d80
<ide><path>spring-core/src/main/java/org/springframework/cglib/core/GeneratorStrategy.java <ide> package org.springframework.cglib.core; <ide> <ide> /** <del> * The <code>GeneratorStrategy</code. is responsible for taking a <add> * The <code>GeneratorStrategy</code> is responsible for taking a <ide> * {@link ClassGen...
2
Javascript
Javascript
remove unnecessary assignments
082cc8d6d8f5c7c797e58cefeb475b783c730635
<ide><path>test/internet/test-dns-txt-sigsegv.js <ide> 'use strict'; <del>var common = require('../common'); <add>require('../common'); <ide> var assert = require('assert'); <ide> var dns = require('dns'); <ide> <ide><path>test/internet/test-dns.js <ide> 'use strict'; <del>var common = require('../common'); <add>requi...
300
Python
Python
add value to "namespaceid" of query
20847fdbf8ecd3be394d24d47ce151c26d018ea1
<ide><path>airflow/providers/google/cloud/example_dags/example_datastore.py <ide> <ide> # [START how_to_query_def] <ide> QUERY = { <del> "partitionId": {"projectId": GCP_PROJECT_ID, "namespaceId": ""}, <add> "partitionId": {"projectId": GCP_PROJECT_ID, "namespaceId": "query"}, <ide> "read...
1
Ruby
Ruby
add group documentation
d7a2309fe39d3807c1c97de116b23d6bb2c08d79
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def select!(value) <ide> self <ide> end <ide> <add> # Allows to specify a group attribute: <add> # <add> # User.group(:name) <add> # => SELECT "users".* FROM "users" GROUP BY name <add> # <add> # Returns an array ...
1
Python
Python
specify nccl as the all reduce algorithm
325dd7612a10a73364d334b7513dd65c7e98eb50
<ide><path>official/resnet/keras/keras_imagenet_main.py <ide> def run(flags_obj): <ide> strategy = distribution_utils.get_distribution_strategy( <ide> distribution_strategy=flags_obj.distribution_strategy, <ide> num_gpus=flags_obj.num_gpus, <del> num_workers=distribution_utils.configure_cluster()) <a...
1
Javascript
Javascript
add regression test for
e0e6b9c036abde428d3130738604fd5abb67aa8f
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js <ide> describe('ReactDOMServerPartialHydration', () => { <ide> expect(ref.current).not.toBe(null); <ide> }); <ide> <add> // @gate experimental <add> it('regression test: does not overfire non-bubbling browser events', a...
1
Python
Python
improve tests for timedistributed
b8c59acd779aede1c07782b2b174a344f242891e
<ide><path>tests/keras/layers/test_wrappers.py <ide> def test_TimeDistributed(): <ide> model = Sequential() <ide> model.add(wrappers.TimeDistributed(core.Dense(2), input_shape=(3, 4))) <ide> model.add(core.Activation('relu')) <del> <ide> model.compile(optimizer='rmsprop', loss='mse') <ide> model.fit...
1
Ruby
Ruby
use a when clause for the class check
9de32e0d70351998172e0d4888189bffb23849eb
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> def skip_forgery_protection(options = {}) <ide> <ide> private <ide> def protection_method_class(name) <del> return name if name.is_a?(Class) <del> <ide> case name <ide> when :null_session <i...
1
PHP
PHP
preserve translation data in result formatter
00b30d095a4ed7eed7a42ad202495db4ee3c955e
<ide><path>src/ORM/Behavior/TranslateBehavior.php <ide> public function groupTranslations($results) <ide> return $row; <ide> } <ide> $translations = (array)$row->get('_i18n'); <add> if (empty($translations) && $row->get('_translations')) { <add> return $...
2
Python
Python
add support for none activations
b35b9433642ddb65081adaf4f08e06f667ee7115
<ide><path>keras/activations.py <ide> def linear(x): <ide> <ide> from .utils.generic_utils import get_from_module <ide> def get(identifier): <add> if identifier is None: <add> return linear <ide> return get_from_module(identifier, globals(), 'activation function')
1
PHP
PHP
fix a number of failing tests
25c91c41e0d6b93d9dca5ef5569959e6171a4d74
<ide><path>lib/Cake/Test/TestApp/Controller/AbstractController.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * Redistributions of ...
6
Ruby
Ruby
remove bitdefender diagnostic check
b6f9b7d3e05ebf983df6f6a190ca3e594d3fbbb3
<ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb <ide> def check_for_iconv <ide> end <ide> end <ide> <del> def check_for_bitdefender <del> if !Pathname("/Library/Bitdefender/AVP/EndpointSecurityforMac.app").exist? && <del> !Pathname("/Library/Bitdefender/AVP/BDLDaemon").exist...
1
Python
Python
remove leading space from namignizer code
74ae822126350c3699ff64becb8555eb019a0371
<ide><path>namignizer/names.py <ide> def namignator(checkpoint_path, config): <ide> print(map(lambda x: chr(x + 96), name)) <ide> <ide> <del> if __name__ == "__main__": <del> train("data/SmallNames.txt", "model/namignizer", SmallConfig) <add>if __name__ == "__main__": <add> train("data/SmallNames.txt",...
1
Javascript
Javascript
fix snapshotexample in rn-tester
5fa3807c343c97280044ff632289b78031efc53c
<ide><path>packages/rn-tester/js/examples/Snapshot/SnapshotExample.js <ide> class ScreenshotExample extends React.Component<{...}, $FlowFixMeState> { <ide> <ide> render() { <ide> return ( <del> <View> <add> <View style={style.container}> <ide> <Text onPress={this.takeScreenshot} style={style.bu...
1
Javascript
Javascript
add setup function for the event module
2c0b9027de841a437baf7b9c85262f196b9cb09e
<ide><path>test/unit/event.js <del>module("event", { teardown: moduleTeardown }); <add>module( "event", { <add> setup: function() { <add> document.body.focus(); <add> }, <add> teardown: moduleTeardown <add>}); <ide> <ide> test("null or undefined handler", function() { <ide> expect(2); <ide> test( "Check order of foc...
1
Python
Python
update broadcasting documentation
294ee03d31b11ca1eceb8ae7a4c330b4f6ef213b
<ide><path>numpy/doc/broadcasting.py <ide> 2) one of them is 1 <ide> <ide> If these conditions are not met, a <del>``ValueError: frames are not aligned`` exception is thrown, indicating that <del>the arrays have incompatible shapes. The size of the resulting array <del>is the maximum size along each dimension of the i...
1
Python
Python
handle ioerror exception if no /etc/os-release
4f7773e3a8c5846e84e700ecd7aa29c6eed3f0ba
<ide><path>glances/plugins/glances_system.py <ide> def _linux_os_release(self): <ide> for key in keys: <ide> if line.startswith(key): <ide> ashtray[key] = line.strip().split('=')[1][1:-1] <del> except OSError: <add> except (OSError, I...
1
Javascript
Javascript
show incorrect value on test failure
09c152e9b40ea9809c455073e1e615e4af5e1d63
<ide><path>test/async-hooks/test-promise.promise-before-init-hooks.js <ide> hooks.enable(); <ide> p.then(function afterresolution(val) { <ide> assert.strictEqual(val, 5); <ide> const as = hooks.activitiesOfTypes('PROMISE'); <del> assert.strictEqual(as.length, 1, 'one activity'); <add> assert.strictEqual(as.length...
1
Python
Python
call convert_to_tensor on all hashing inputs
4bce69b55845b399263021fe46c8d8110f24d96d
<ide><path>keras/layers/preprocessing/hashing.py <ide> from keras.engine import base_preprocessing_layer <ide> from keras.layers.preprocessing import preprocessing_utils as utils <ide> from keras.utils import layer_utils <del>import numpy as np <ide> import tensorflow.compat.v2 as tf <ide> from tensorflow.python.util.t...
2
Python
Python
reuse _validate_axis in np.gradient
efa1bd2c0de6cd9c07b410002f2e1c0bae8cf385
<ide><path>numpy/lib/function_base.py <ide> def gradient(f, *varargs, **kwargs): <ide> axes = kwargs.pop('axis', None) <ide> if axes is None: <ide> axes = tuple(range(N)) <del> # check axes to have correct type and no duplicate entries <del> if isinstance(axes, int): <del> axes = (axes,) <d...
2
PHP
PHP
remove double spaces
372deaf5b606969efea696cda733121b82fc9eac
<ide><path>src/Illuminate/Routing/RouteRegistrar.php <ide> * @method \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware) <ide> * @method \Illuminate\Routing\RouteRegistrar name(string $value) <ide> * @method \Illuminate\Routing\RouteRegistrar namespace(string|null $value) <del> * @method \Il...
3
Java
Java
fix failing test
b1aebb2c0cd65d7aeaa153465a7797412b222747
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketNamespaceUtils.java <ide> import org.springframework.web.socket.sockjs.transport.handler.DefaultSockJsService; <ide> import org.springframework.web.socket.sockjs.transport.handler.WebSocketTransportHandler; <ide> <add>import java....
3
Text
Text
point security to hackerone
20ad7f9cf6e69196b224f95e9fce4b8af8a6d284
<ide><path>README.md <ide> We explicitly welcome contributions from people who have never contributed to op <ide> A good starting point for contributing is running `brew audit --strict`with some of the packages you use (e.g. `brew audit --strict wget` if you use `wget`) and then read through the warnings, try to fix th...
1
Javascript
Javascript
fix typo in comment (noticable→noticeable)
2cfd73c4d02cfe4c745a1862ef4a9c44e8a41da4
<ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js <ide> function finishConcurrentRender(root, exitStatus, lanes) { <ide> if (!shouldForceFlushFallbacksInDEV()) { <ide> // This is not a transition, but we did trigger an avoided state. <ide> // Schedule a placeholder to display afte...
2
Ruby
Ruby
introduce default_headers config
2a290f7f7cdf775491eda05b3690be6d96cd9bf6
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> class Response <ide> LOCATION = "Location".freeze <ide> <ide> cattr_accessor(:default_charset) { "utf-8" } <add> cattr_accessor(:default_headers) <ide> <ide> include Rack::Response::Helpers <ide> include ActionDispatch::Http::Cach...
3
Javascript
Javascript
add constants to test-framework-detector
fb1f3e665cd9690784b8112434cc44e1ffd71b71
<ide><path>blueprints/test-framework-detector.js <ide> module.exports = function (blueprint) { <ide> <ide> blueprint.filesPath = function () { <ide> let type; <add> const qunitRfcVersion = 'qunit-rfc-232'; <add> const mochaRfcVersion = 'mocha-rfc-232'; <add> const mochaVersion = 'mocha-0.12'; <ide> <id...
1
Ruby
Ruby
allow preloads on instance dependent associations
b3d77575c5f37ef92f54e54d2432c465caaf2a2e
<ide><path>activerecord/lib/active_record/associations/preloader/association.rb <ide> def load_records_in_batch(loaders) <ide> <ide> attr_reader :klass <ide> <del> def initialize(klass, owners, reflection, preload_scope, associate_by_default = true) <add> def initialize(klass, owners, reflection...
6
Ruby
Ruby
allow eg. `brew --env libxml2`
fb8c7e0aafdd487533cce6853fe845346d97c87c
<ide><path>Library/Homebrew/cmd/--env.rb <ide> <ide> module Homebrew extend self <ide> def __env <add> if superenv? <add> ENV.deps = ARGV.formulae.map(&:name) unless ARGV.named.empty? <add> end <ide> ENV.setup_build_environment <ide> ENV.universal_binary if ARGV.build_universal? <ide> if $stdo...
1
Javascript
Javascript
remove imagestore js files from rn open source
8e16a60faa6a70c9b5131aa2a4bc388bf342a15e
<ide><path>Libraries/Image/ImageStore.js <del>/** <del> * Copyright (c) Facebook, Inc. and its affiliates. <del> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <del> * <del> * @flow <del> * @format <del> */ <del>'use strict'; <de...
3
Text
Text
fix missing line highlight in tutorial
05562a0b095293077f1fad56d075e537ca787553
<ide><path>docs/docs/tutorial.md <ide> var CommentForm = React.createClass({ <ide> <ide> Let's make the form interactive. When the user submits the form, we should clear it, submit a request to the server, and refresh the list of comments. To start, let's listen for the form's submit event and clear it. <ide> <del>``...
1
Ruby
Ruby
raise correct exception now journey is integrated
db06d128262b49c8b02e153cf95eb46f4eff364b
<ide><path>actionpack/lib/action_dispatch/journey/formatter.rb <add>require 'action_controller/metal/exceptions' <add> <ide> module ActionDispatch <ide> module Journey <ide> # The Formatter class is used for formatting URLs. For example, parameters <ide> def generate(type, name, options, recall = {}, parameterize...
3
Javascript
Javascript
fix displayname in reactperf.getinclusive() output
82e363c46477cc1c3b37a5dd94a1e8d92d6598ce
<ide><path>src/isomorphic/ReactPerf.js <ide> function getInclusive(flushHistory = getFlushHistory()) { <ide> function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) { <ide> var {displayName, ownerID} = treeSnapshot[instanceID]; <ide> var owner = treeSnapshot[ownerID]; <del> var key = `${owner...
1
Text
Text
update fast refresh doc
e18f74fe2de0672e372aa6425b6b6313a23b91fa
<ide><path>docs/basic-features/fast-refresh.md <ide> screen! <ide> <ide> Sometimes, this can lead to unexpected results. For example, even a `useEffect` <ide> with an empty array of dependencies would still re-run once during Fast Refresh. <del>However, writing code resilient to occasional re-running of `useEffect` is...
1
Ruby
Ruby
add `path` method to `caskroom` and `cache`
3d423b0587d54029cc60616d506318425c22e7a4
<ide><path>Library/Homebrew/cask/lib/hbc/cache.rb <ide> module Hbc <ide> module Cache <ide> module_function <ide> <add> def path <add> @path ||= HOMEBREW_CACHE.join("Cask") <add> end <add> <ide> def ensure_cache_exists <del> return if Hbc.cache.exist? <add> return if path.exist? <ide> <...
13
Text
Text
add dcard to the list of companies using airflow
f37c36093f79b714b5be3b546f6c7f5658cfaf1a
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [DataSprints](https://datasprints.com/) [[@lopesdiego12](https://github.com/lopesdiego12) & [@rafaelsantanaep](https://github.com/rafaelsantanaep)] <ide> 1. [Datatonic](https://datatonic.com/) [[@teamdatatonic](https://github.com/teamdatato...
1
Ruby
Ruby
delegate all finders to relation
52ec4311f5bf8b596612f297da0b3be8e284b038
<ide><path>activerecord/lib/active_record/base.rb <ide> def colorize_logging(*args) <ide> end <ide> alias :colorize_logging= :colorize_logging <ide> <del> # Find operates with four different retrieval approaches: <del> # <del> # * Find by id - This can either be a specific id (1), a list of ...
4
Java
Java
improve performance of stringutils.deleteany()
e1951a098b6e732a5919e60dcd48375426ab801b
<ide><path>spring-core/src/main/java/org/springframework/util/StringUtils.java <ide> public static String deleteAny(String inString, @Nullable String charsToDelete) <ide> return inString; <ide> } <ide> <del> StringBuilder sb = new StringBuilder(inString.length()); <add> int lastCharIndex = 0; <add> char[] resu...
2
Ruby
Ruby
extract more mutations to the caller
49d50b9d80957e53a72ba8ffa1dd51f1247610b5
<ide><path>activerecord/lib/active_record/associations/builder/association.rb <ide> def self.build(model, name, scope, options, &block) <ide> raise ArgumentError, "association names must be a Symbol" unless name.kind_of?(Symbol) <ide> <ide> builder = new(model, name, scope, options, &block) <add> refl...
2
Python
Python
remove progress indicator from movielens download
ff9ab90b0ef1e093c8f348fc9ac5d5f73bc521e4
<ide><path>official/datasets/movielens.py <ide> def _download_and_clean(dataset, data_dir): <ide> temp_dir = tempfile.mkdtemp() <ide> try: <ide> zip_path = os.path.join(temp_dir, "{}.zip".format(dataset)) <del> def _progress(count, block_size, total_size): <del> sys.stdout.write("\r>> Downloading {} {:....
1