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 import for glimmer-runtime -> @glimmer/runtime
061b3ee7e134b740eb1d0f8b02a6f9d14274ca06
<ide><path>packages/ember-glimmer/tests/unit/utils/iterable-test.js <ide> import { moduleFor, TestCase } from 'ember-glimmer/tests/utils/test-case'; <ide> import iterableFor from 'ember-glimmer/utils/iterable'; <ide> import { UpdatableReference } from 'ember-glimmer/utils/references'; <ide> import eachIn from 'ember-gl...
1
PHP
PHP
reduce usage of error_reporting()
4091a9b0420c1bb2c40780c792448c205ffe3a36
<ide><path>tests/TestCase/Database/Schema/TableTest.php <ide> public function testPrimaryKey() <ide> } <ide> <ide> /** <del> * Test the options method. <add> * Test the setOptions/getOptions methods. <ide> * <ide> * @return void <ide> */ <ide> public function testOptions() <ide> */ ...
1
Javascript
Javascript
simplify getvisiblepages() in presentation mode
433397f87787777a2964ddd63f65863378229397
<ide><path>web/viewer.js <ide> var PDFView = { <ide> }, <ide> <ide> getVisiblePages: function pdfViewGetVisiblePages() { <del> if (!this.isPresentationMode) { <del> return this.getVisibleElements(this.container, this.pages, true); <del> } else { <del> // The algorithm in getVisibleElements is broke...
1
Text
Text
add explanation on how to run the samples locally
b78b7c3534eb55e1294679a32dd93cfc74b45f48
<ide><path>docs/getting-started/index.md <ide> Finally, render the chart using our configuration: <ide> It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more. <ide> <ide> All ...
1
Ruby
Ruby
permit head for non-official taps
3f2803110ad983293c79e1d0a73efd032e514a38
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_specs <ide> end <ide> end <ide> <del> if formula.head || formula.devel <add> if @official_tap && (formula.head || formula.devel) <ide> unstable_spec_message = "Formulae should not have a `HEAD` or `devel` spec" <ide> i...
1
Ruby
Ruby
prefer cached_location over tarball_path
0909b12eb907c550a24a7641e29dcb2a8d58fd77
<ide><path>Library/Homebrew/download_strategy.rb <ide> def initialize(name, resource) <ide> super <ide> @mirrors = resource.mirrors.dup <ide> @tarball_path = HOMEBREW_CACHE.join("#{name}-#{resource.version}#{ext}") <del> @temporary_path = Pathname.new("#{tarball_path}.incomplete") <add> @temporary_pat...
1
PHP
PHP
implement fluent json assertions
add249472cd192cabcb4f113ff7915f667394141
<ide><path>src/Illuminate/Testing/Fluent/Assert.php <add><?php <add> <add>namespace Illuminate\Testing\Fluent; <add> <add>use Closure; <add>use Illuminate\Contracts\Support\Arrayable; <add>use Illuminate\Support\Arr; <add>use Illuminate\Support\Traits\Macroable; <add>use Illuminate\Support\Traits\Tappable; <add>use Ill...
9
PHP
PHP
change method order
7d13619e8a6fff8a31ab984e53e87c57358294b9
<ide><path>src/Illuminate/Auth/UserInterface.php <ide> public function getAuthIdentifier(); <ide> */ <ide> public function getAuthPassword(); <ide> <del> /** <del> * Get the column name for the "remember me" token. <del> * <del> * @return string <del> */ <del> public function getRememberTokenName(); <del> <ide>...
1
Ruby
Ruby
put all private method together
53d316c2697e7b001d835da7cb85082ec421ac05
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def mail(headers = {}, &block) <ide> message <ide> end <ide> <del> private <del> <del> def apply_defaults(headers) <del> default_values = self.class.default.map do |key, value| <del> [ <del> key, <del> value.is_a?(Proc)...
1
Python
Python
add missing import
d5f18f83077487011f794444bbdf873b3bca7271
<ide><path>spacy/util.py <ide> import srsly <ide> import catalogue <ide> import sys <add>import warnings <ide> <ide> try: <ide> import jsonschema
1
Javascript
Javascript
specify correct version of npm package
f6d8be8ad3b8cd5a8be058d1c44a8ab1fb5cfffb
<ide><path>src/ngComponentRouter/Router.js <ide> * on Bower or the Google CDN. <ide> * <ide> * ```bash <del> * npm install @angular/router --save <add> * npm install @angular/router@0.2.0 --save <ide> * ``` <ide> * <ide> * Include `angular_1_router.js` in your HTML:
1
Javascript
Javascript
use common.expectserror in tests
d8c896cac5b3e31cbffb3da2c657dd59c83fbfeb
<ide><path>test/parallel/test-buffer-slow.js <ide> const bufferMaxSizeMsg = common.expectsError({ <ide> assert.throws(function() { <ide> SlowBuffer(Infinity); <ide> }, bufferMaxSizeMsg); <del>assert.throws(function() { <add>common.expectsError(function() { <ide> SlowBuffer(-1); <del>}, common.expectsError({ <add>},...
10
Java
Java
use parseint without substring method
804b343cabe8a16a02a714f2f51d4b3815f9f6ff
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/PropertiesBeanDefinitionReader.java <ide> else if (LAZY_INIT_KEY.equals(property)) { <ide> } <ide> else if (property.startsWith(CONSTRUCTOR_ARG_PREFIX)) { <ide> if (property.endsWith(REF_SUFFIX)) { <del> int index = Intege...
13
Javascript
Javascript
restore 1.8.1 ajax crossdomain logic. close gh-944
da3ff3afe4d8421ae4ad04d6653f04ed6d7768e3
<ide><path>src/ajax.js <ide> jQuery.extend({ <ide> <ide> // A cross-domain request is in order when we have a protocol:host:port mismatch <ide> if ( s.crossDomain == null ) { <del> parts = rurl.exec( s.url.toLowerCase() ) || false; <del> s.crossDomain = parts && ( parts.join(":") + ( parts[ 3 ] ? "" : parts[ 1...
2
Python
Python
make test work for python 2.7
40edb65ee751dfe4cf6e04ee59891266d8b14f30
<ide><path>spacy/tests/regression/test_issue1380.py <add>from __future__ import unicode_literals <ide> import pytest <ide> <ide> from ...language import Language
1
Python
Python
clarify relationship between row_stack and vstack
06e413f6a3041ce484901e3a33389028362cd012
<ide><path>numpy/core/shape_base.py <ide> def vstack(tup, *, dtype=None, casting="same_kind"): <ide> and r/g/b channels (third axis). The functions `concatenate`, `stack` and <ide> `block` provide more general stacking and concatenation operations. <ide> <add> ``np.row_stack`` is an alias for `vstack`. They...
1
Ruby
Ruby
use sha1 as the default checksum for new formulae
73d047d3ac4fd2d3b6fc87caf92f9e08b5bcb1e9
<ide><path>Library/Homebrew/cmd/create.rb <ide> def __gets <ide> <ide> class FormulaCreator <ide> attr :url <del> attr :md5 <add> attr :sha1 <ide> attr :name, true <ide> attr :path, true <ide> attr :mode, true <ide> def generate <ide> <ide> unless ARGV.include? "--no-fetch" and version <ide> strat...
1
Javascript
Javascript
add quotation marks to reserved keyword "short"
502bb648ff8e8250d29c65c9690500c6a3b40e92
<ide><path>src/ng/locale.js <ide> function $LocaleProvider(){ <ide> SHORTDAY: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(','), <ide> AMPMS: ['AM','PM'], <ide> medium: 'MMM d, y h:mm:ss a', <del> short: 'M/d/yy h:mm a', <add> 'short': 'M/d/yy h:mm a', <ide> fullDate: 'EEEE, MMMM d,...
1
Text
Text
codify security release commit message
b3be0bf21aab2837d64b33e44a54a80230e50465
<ide><path>doc/releases.md <ide> Notable changes: <ide> * Copy the notable changes list here, reformatted for plain-text <ide> ``` <ide> <add>For security releases, begin the commit message with the phrase <add>`This is a security release.` to allow the <add>[distribution indexer](https://github.com/nodejs/nodejs-dist...
1
Ruby
Ruby
remove dead code
485eec407ae7f9791d120380d637bd43d9177851
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> def build(associations, parent, join_type) <ide> end <ide> end <ide> <del> def build_scalar(reflection, parent, join_type) <del> join_association = build_join_association(reflection, parent, join_type) <del> ...
1
Ruby
Ruby
remove busted tests
05b760d95991c75fbe3be83336d0a4479c66e803
<ide><path>test/server_test.rb <del>require 'test_helper' <del> <del># FIXME: Currently busted. <del># <del># class ServerTest < ActionCableTest <del># class ChatChannel < ActionCable::Channel::Base <del># end <del># <del># class ChatServer < ActionCable::Server::Base <del># register_channels ChatChannel <de...
2
PHP
PHP
allow _ in domain names that email can be sent to
8dea5d8c6a5cb01e9e0e52948c8700f55a7c4d70
<ide><path>src/Mailer/Email.php <ide> class Email implements JsonSerializable, Serializable <ide> * <ide> * @var string <ide> */ <del> const EMAIL_PATTERN = '/^((?:[\p{L}0-9.!#$%&\'*+\/=?^_`{|}~-]+)*@[\p{L}0-9-.]+)$/ui'; <add> const EMAIL_PATTERN = '/^((?:[\p{L}0-9.!#$%&\'*+\/=?^_`{|}~-]+)*@[\p{L}0...
2
Text
Text
fix typo in changelog.md [ci skip]
776384de5068b7bfad7de0b5f49aeccdd5c42d51
<ide><path>activerecord/CHANGELOG.md <del>* Deprecate mismatched collation comparison for uniquness validator. <add>* Deprecate mismatched collation comparison for uniqueness validator. <ide> <ide> Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1. <ide> To continue case se...
1
Ruby
Ruby
add tests for implications
f1bf6c03c3f6585cdcc648ccc387ef933ab9a446
<ide><path>Library/Homebrew/cask/audit.rb <ide> class Audit <ide> <ide> attr_reader :cask, :download <ide> <del> attr_predicate :appcast?, :new_cask?, :strict?, :online? <add> attr_predicate :appcast?, :new_cask?, :strict?, :online?, :token_conflicts? <ide> <ide> def initialize(cask, appcast: nil, down...
2
Javascript
Javascript
allow disabling of default components
94044afe74b9bbbff930eb3bb0024058423be175
<ide><path>src/component.js <ide> _V_.Component = _V_.Class.extend({ <ide> // Loop through components and add them to the player <ide> this.eachProp(options.components, function(name, opts){ <ide> <add> // Allow for disabling default components <add> // e.g. _V_.options.components.posterImage...
1
Ruby
Ruby
simplify project view handling
c6b6fc678e66668b08d31e7a55950768e0e4d687
<ide><path>Library/Homebrew/dev-cmd/edit.rb <ide> def edit <ide> end <ide> <ide> # If no brews are listed, open the project root in an editor. <del> if ARGV.named.empty? <del> editor = File.basename which_editor <del> if ["atom", "subl", "mate"].include?(editor) <del> # If the user is using...
1
Javascript
Javascript
fix prod tests
f4eb13b345afdfea9e0bc041d1aae2426be085e0
<ide><path>packages/@ember/-internals/glimmer/tests/integration/components/link-to/query-params-curly-test.js <ide> moduleFor( <ide> } <ide> <ide> ['@test `(query-params)` must be used in conjunction with `{{link-to}}'](assert) { <del> if (DEBUG) { <del> this.addTemplate( <del> 'index', <d...
3
Javascript
Javascript
add strict equalities in src/display/canvas.js
c1f1f2f0e10f102de2795a5fb32c3b0db7a55b52
<ide><path>src/display/canvas.js <ide> var CanvasGraphics = (function CanvasGraphicsClosure() { <ide> // the current transformation matrix before the fillText/strokeText. <ide> // See https://bugzilla.mozilla.org/show_bug.cgi?id=726227 <ide> var browserFontSize = size >= MIN_FONT_SIZE ? size : MIN_FON...
1
Ruby
Ruby
add config option for `replica`
2fd997c111b3d2921d011d8023314dbfc2dec317
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def initialize(connection, logger = nil, config = {}) # :nodoc: <ide> ) <ide> end <ide> <add> def replica? <add> @config[:replica] || false <add> end <add> <ide> def migrations_paths # :nodoc: <...
1
Javascript
Javascript
make reloads faster for simple file changes
3f504ec147479374757987da6d66c77cb9b4675b
<ide><path>packager/react-packager/src/Bundler/Bundle.js <ide> class Bundle extends BundleBase { <ide> this._addRequireCall(super.getMainModuleId()); <ide> } <ide> <del> super.finalize(); <add> super.finalize(options); <ide> } <ide> <ide> _addRequireCall(moduleId) { <ide><path>packager/react-packa...
6
Java
Java
use initcause to initialize assertionerror
596ecd2a53f119086d406da21f0190a257437743
<ide><path>src/main/java/rx/observers/TestSubscriber.java <ide> public void assertError(Class<? extends Throwable> clazz) { <ide> throw new AssertionError("No errors"); <ide> } else <ide> if (err.size() > 1) { <del> // can't use AssertionError because (message, cause) doesn't exis...
1
Python
Python
add a test for ticket
0713354fa282f096e30886e7617d84ee2938390d
<ide><path>numpy/core/tests/test_regression.py <ide> def test_searchsorted_wrong_dtype(self): <ide> # proper exception. <ide> a = np.array([('a', 1)], dtype='S1, int') <ide> assert_raises(TypeError, np.searchsorted, a, 1.2) <add> # Ticket #2066, similar problem: <add> dtype = np.fo...
1
Text
Text
add introduction sentence for cjs
2dea9ccd8a5e8776b232740fa3fc3af93c335d92
<ide><path>doc/api/modules.md <ide> <ide> <!--name=module--> <ide> <del>In the Node.js module system, each file is treated as a separate module. For <add>CommonJS modules are the original way to package JavaScript code for Node.js. <add>Node.js also supports the [ECMAScript modules][] standard used by browsers <add>a...
1
Javascript
Javascript
add test for profile command of node inspect
887816d8f23830634e3824ed62278b28e956d2c0
<ide><path>test/sequential/test-debugger-profile-command.js <add>'use strict'; <add>const common = require('../common'); <add> <add>common.skipIfInspectorDisabled(); <add> <add>const fixtures = require('../common/fixtures'); <add>const startCLI = require('../common/debugger'); <add> <add>const assert = require('assert'...
1
Text
Text
fix a typo
a10d49b75a8f2d7a2a87d30f340f20a0ffebec3d
<ide><path>curriculum/challenges/english/09-information-security/information-security-projects/port-scanner.md <ide> get_open_ports("www.stackoverflow.com", [79, 82]) <ide> <ide> The function should return a list of open ports in the given range. <ide> <del>The `get_open_ports` function should also take an optional t...
1
Python
Python
fix internal lint errors
7546a9e3d1c51798bd20407ea1749e13b87b0368
<ide><path>official/recommendation/ncf_common.py <ide> def xla_validator(flag_dict): <ide> help=flags_core.help_wrap( <ide> "If True, we use a custom training loop for keras.")) <ide> <add> <ide> def convert_to_softmax_logits(logits): <ide> '''Convert the logits returned by the base model to softmax ...
5
Go
Go
remove unnecessary initerr type
b65e57bed534b00350d091db1894fdff1c4230d5
<ide><path>cli/cli.go <ide> func New(handlers ...Handler) *Cli { <ide> return cli <ide> } <ide> <del>// initErr is an error returned upon initialization of a handler implementing Initializer. <del>type initErr struct{ error } <del> <del>func (err initErr) Error() string { <del> return err.Error() <del>} <add>var errC...
1
Text
Text
fix some typos in roadmap.md
974294600fcbe3d3030a1edbbbf2b927d902e42e
<ide><path>ROADMAP.md <ide> Moby currently only utilizes containerd for basic runtime state management, e.g. <ide> and stopping a container, which is what the pre-containerd 1.0 daemon provided. <ide> Now that containerd is a full-fledged container runtime which supports full <ide> container life-cycle management, we w...
1
Javascript
Javascript
publish local branch and delete
4049c635abd2b6364b739c188f537511c99ccdef
<ide><path>script/lib/update-dependency/check-apm.js <ide> module.exports = async function({ dependencies, packageDependencies }) { <ide> const packages = await Promise.all(promises); <ide> const outdatedPackages = []; <ide> packages.map(dependency => { <del> if (dependency.name) { <add> if (depen...
4
Javascript
Javascript
use alert to make users more aware of errors
159da0de8e515c935d44bea5921fb1c18180776b
<ide><path>editor/js/Loader.js <ide> var Loader = function ( editor ) { <ide> <ide> if ( isGLTF1( contents ) ) { <ide> <del> console.error( 'Import of glTF asset not possible. Only versions >= 2.0 are supported. Please try to upgrade the file to glTF 2.0 using glTF-Pipeline.' ); <add> alert( 'Import of...
1
Text
Text
add missing fields for networksettings
205844875cb848b04fef401d3e7fcc3a8959bba0
<ide><path>docs/reference/api/docker_remote_api_v1.22.md <ide> List containers <ide> }, <ide> "SizeRw": 12288, <ide> "SizeRootFs": 0, <add> "HostConfig": { <add> "NetworkMode": "default" <add> }, <ide> ...
2
Ruby
Ruby
fix retry condition when auto-tapping deps
9b4bb3d9e4b1ea9380595d9f673d86b529f6b297
<ide><path>Library/Homebrew/formula_installer.rb <ide> def prelude <ide> end <ide> <ide> def verify_deps_exist <del> f.recursive_dependencies.map(&:to_formula) <del> rescue TapFormulaUnavailableError => e <del> Homebrew.install_tap(e.user, e.repo) <del> retry <add> begin <add> f.recursive_depende...
1
Text
Text
fix broken link for minitest. [ci skip]
879f3169952a1a37f1ef4b7a8cc6383ac536ef5d
<ide><path>guides/source/testing.md <ide> All the basic assertions such as `assert_equal` defined in `Minitest::Assertions <ide> <ide> Each of these classes include `Minitest::Assertions`, allowing us to use all of the basic assertions in our tests. <ide> <del>NOTE: For more information on `Minitest`, refer to [Minit...
1
Javascript
Javascript
remove console in quaternion
72f72f4dc9c693305e29d5692dfe9ffeed6b5495
<ide><path>test/unit/math/Quaternion.js <ide> function slerpTestSkeleton( doSlerp, maxError ) { <ide> result = doSlerp( [ 0, D, 0, D ], [ 0, -D, 0, D ], 0.5 ); <ide> ok( result.equals( 0, 0, 0, 1 ), "W-Unit from diagonals" ); <ide> ok( isNormal( result ), "Approximately normal (W-Unit)" ); <del> <del> console.log( "...
1
Javascript
Javascript
add layout support to ember.view
4331b5365034565ae1fadffb0a824c9e4967a00d
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.Object.extend( <ide> */ <ide> templateName: null, <ide> <add> /** <add> The name of the layout to lookup if no layout is provided. <add> <add> Ember.View will look for a template with this name in this view's <add> `templates` obj...
2
Text
Text
remove incorrect apostrophe
c09ad1bedc8559b2e6eadf0e5b8f3732af2d9d29
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> ### Master <ide> <ide> * JSON renderer now deals with objects that implement a dict-like interface. <del>* Bugfix: Refine behavior that call's model manager `all()` across nested serializer relati...
1
Text
Text
add documentation about deleting files
b973c259059b92b633388c5c067cd4de37712e53
<ide><path>laravel/documentation/files.md <ide> <ide> - [Reading Files](#get) <ide> - [Writing Files](#put) <add>- [Removing files](#delete) <ide> - [File Uploads](#upload) <ide> - [File Extensions](#ext) <ide> - [Checking File Types](#is) <ide> <ide> File::append('path/to/file', 'appended file content'); <ide> <ad...
1
PHP
PHP
avoid double slash
16228203c1a8338b5aea69f080b3d43dd9407159
<ide><path>src/Routing/RouteBuilder.php <ide> public function prefix($name, $params = [], callable $callback = null) <ide> } <ide> $name = Inflector::underscore($name); <ide> if (isset($params['path'])) { <del> $path = '/' . $params['path']; <add> $path = ($params['path'][0...
2
Javascript
Javascript
rollup more leaf packages
cce1f08a9f8b7a0ecca3574d43be98691d761afe
<ide><path>ember-cli-build.js <ide> const SHOULD_ROLLUP = true; <ide> <ide> module.exports = function(options) { <ide> let tokenizer = simpleHTMLTokenizerES(); <del> let container = emberPkgES('container'); <add> let container = emberPkgES('container', SHOULD_ROLLUP, ['ember-debug', 'ember-utils', 'ember-environme...
12
Javascript
Javascript
set isintransaction to false even if close throws
17f602f9245e7dc38b2dc1528f2fe9f5324b9b8e
<ide><path>src/utils/Transaction.js <ide> var Mixin = { <ide> } finally { <ide> var memberEnd = Date.now(); <ide> this.methodInvocationTime += (memberEnd - memberStart); <del> if (errorThrown) { <del> // If `method` throws, prefer to show that stack trace over any thrown <del> // by i...
2
Javascript
Javascript
add regex check in test-vm-is-context
bc05436a891da91211c9bbcff08d43133558a1d6
<ide><path>test/parallel/test-vm-is-context.js <ide> const vm = require('vm'); <ide> <ide> assert.throws(function() { <ide> vm.isContext('string is not supported'); <del>}, TypeError); <add>}, /^TypeError: sandbox must be an object$/); <ide> <ide> assert.strictEqual(vm.isContext({}), false); <ide> assert.strictEqua...
1
Javascript
Javascript
improve progress display for persistent caching
1d76d0797180eed0bf41ed4375684e4af690d447
<ide><path>lib/Compilation.js <ide> class Compilation { <ide> failedModule: new SyncHook(["module", "error"]), <ide> /** @type {SyncHook<[Module]>} */ <ide> succeedModule: new SyncHook(["module"]), <add> /** @type {SyncHook<[Module]>} */ <add> stillValidModule: new SyncHook(["module"]), <ide> <ide> /**...
2
Go
Go
use filepath.join() to make path cross-platform
05e18429cf50afbc40456a6f4eff1cfd6f1da707
<ide><path>integration/volume/volume_test.go <ide> package volume <ide> <ide> import ( <ide> "context" <del> "fmt" <add> "path/filepath" <ide> "strings" <ide> "testing" <ide> "time" <ide> func TestVolumesCreateAndList(t *testing.T) { <ide> Driver: "local", <ide> Scope: "local", <ide> Name: nam...
1
PHP
PHP
remove unused view tests
f12df3e2061707720671327ef67decd364b0184e
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> protected function getFiles() <ide> { <ide> return m::mock('Illuminate\Filesystem\Filesystem'); <ide> } <del> <del> public function testGetTagsProvider() <del> { <del> return [ <del> ['{{', '}}'], <del> ['{{{', '}}}...
1
Javascript
Javascript
fix lint issues
b98313f17626c95050c19b620acd1eb750d64641
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegration-test.js <ide> let ReactDOMServer; <ide> let ReactTestUtils; <ide> <ide> const stream = require('stream'); <del>const ReactFeatureFlags = require('shared/ReactFeatureFlags'); <ide> <ide> const TEXT_NODE_TYPE = 3; <ide> <ide><path>packages/react-dom...
4
Javascript
Javascript
improve test coverage of dns/promises
0f31d2993b9dfc24937511ee9024d4127f588aef
<ide><path>test/parallel/test-dns.js <ide> dns.lookup('', { <ide> await dnsPromises.lookup('', { <ide> hints: dns.ADDRCONFIG | dns.V4MAPPED | dns.ALL <ide> }); <add> await dnsPromises.lookup('', { verbatim: true }); <ide> })().then(common.mustCall()); <ide> <ide> {
1
Ruby
Ruby
add append_lines method
ff4d16deebaabc374f4dae2786bd01e2865875a4
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def write(content, *open_args) <ide> open("w", *open_args) { |f| f.write(content) } <ide> end <ide> <add> # Only appends to a file that is already created. <add> def append_lines(content, *open_args) <add> raise "Cannot append file that doesn't exist: #{s...
1
PHP
PHP
fix cs error
99c018a8c9698bce23da22b7b7646b049a3282e5
<ide><path>tests/TestCase/Validation/ValidationRuleTest.php <ide> public function testCallableOn() <ide> * <ide> * @return void <ide> */ <del> public function testGet() { <add> public function testGet() <add> { <ide> $Rule = new ValidationRule(['rule' => 'myTestRule', 'message' => 'foo']...
1
Ruby
Ruby
remove the old initializer file
d0965892456e0ec76f9cb95a151d3b8e11622e36
<ide><path>railties/lib/rails/initializer_old.rb <del>require 'logger' <del>require 'set' <del>require 'pathname' <del> <del>$LOAD_PATH.unshift File.dirname(__FILE__) <del>require 'railties_path' <del>require 'rails/version' <del>require 'rails/gem_dependency' <del>require 'rails/rack' <del> <del>RAILS_ENV = (ENV['RAIL...
1
PHP
PHP
add tests for self relationships
6f8ad3ca95e5f1037c78adee593bcef5ed3f1ad1
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testOrHasNested() <ide> $this->assertEquals($builder->toSql(), $result); <ide> } <ide> <add> public function testSelfHasNested() <add> { <add> $model = new EloquentBuilderTestModelSelfRelatedStub; <add> <add> ...
2
Javascript
Javascript
allow relative urls in getdocument
af4bd10c705afb76ee497897e6d5d7cda0b33f21
<ide><path>src/api.js <ide> PDFJS.getDocument = function getDocument(source) { <ide> if (!source.url && !source.data) <ide> error('Invalid parameter array, need either .data or .url'); <ide> <add> // copy/use all keys as is except 'url' -- full path is required <add> var params = {}; <add> for (var key in sou...
3
PHP
PHP
add doc blocks
fad7c83e1159b73723fbc0b53bb11d3b157c3920
<ide><path>src/Console/Shell.php <ide> protected function _stop($status = 0) <ide> exit($status); <ide> } <ide> <add> /** <add> * Returns an array that can be used to describe the internal state of this <add> * object. <add> * <add> * @return array <add> */ <ide> public function ...
3
PHP
PHP
add checked helper
84d433d7d7acd44cce5d9f0b7562439346e6fe19
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithRedis.php <ide> public function setUpRedis() <ide> */ <ide> public function tearDownRedis() <ide> { <del> $this->redis['phpredis']->connection()->flushdb(); <add> if (isset($this->redis['phpredis'])) { <add> $this->...
3
Mixed
Text
improve docs for when using head or similar flags
bd0533448718bbf323e58070fc711d662c54b855
<ide><path>Library/Contributions/manpages/brew.1.md <ide> Note that these flags should only appear after a command. <ide> A few formulae provide a test method. `brew test <formula>` runs this <ide> test method. There is no standard output or return code, but it should <ide> generally indicate to the user if...
2
Javascript
Javascript
improve flaky test-listen-fd-ebadf.js
1d8789188fa156d5eb75c155f6c648c2bd96b842
<ide><path>test/parallel/test-listen-fd-ebadf.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add> <ide> const assert = require('assert'); <add>const fs = require('fs'); <ide> const net = require('net'); <ide> <ide> net.createServer(common.mustNotCall()).listen({ fd: 2 }) <ide> .on('error',...
1
PHP
PHP
implement method support
46dd880e745421afb5e5f3a703096c3346e56b0f
<ide><path>src/Illuminate/Queue/Queue.php <ide> protected function createObjectPayload($job, $queue) <ide> 'displayName' => $this->getDisplayName($job), <ide> 'job' => 'Illuminate\Queue\CallQueuedHandler@call', <ide> 'maxTries' => $job->tries ?? null, <del> 'delay' => $job...
2
Ruby
Ruby
support version format
eec8cc6a12b6676e8a8da3a7cced4547d8bd3c8b
<ide><path>Library/Homebrew/test/test_versions.rb <ide> def test_apache_version_style <ide> assert_version_detected '1.2.0-rc2', 'http://www.apache.org/dyn/closer.cgi?path=/cassandra/1.2.0/apache-cassandra-1.2.0-rc2-bin.tar.gz' <ide> end <ide> <add> def test_jpeg_style <add> assert_version_detected '8d', 'ht...
2
Java
Java
fix minor javadoc typos
39c236baa8c3f189cc422f2814443fd9652876fb
<ide><path>spring-jms/src/main/java/org/springframework/jms/listener/endpoint/JmsMessageEndpointFactory.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); ...
2
Java
Java
refine check for multiple subscribers
7a5f8e03bc53ad78f76be82ecdd5fc8b8e86797a
<ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java <ide> import org.springframework.http.HttpHeaders; <ide> import org.springframework.http.HttpStatus; <ide> import org.springframework.http.ResponseCookie; <del>import org.springframework.util.Assert; <ide> import...
2
Text
Text
fix incorrect changelog headings [ci skip]
8a714c4d804d2502c4b1bdfccb3e9175c4add7b8
<ide><path>actionmailer/CHANGELOG.md <del>## Rails 4.0.0 (unreleased) ## <add>## Rails 3.2.3 (unreleased) ## <ide> <ide> * Upgrade mail version to 2.4.3 *ML* <ide> <ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <del>* Upgrade rack-cache to 1.2. *José Valim* <del> <del>* ActionControl...
3
Javascript
Javascript
remove btoa from domstubs.js
3479a19bf08884c08e353385b433380ad0ff5e49
<ide><path>examples/node/domstubs.js <ide> function xmlEncode(s){ <ide> return buf; <ide> } <ide> <del>function btoa(chars) { <del> var digits = <del> 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; <del> var buffer = ''; <del> var i, n; <del> for (i = 0, n = chars.length; i < n; i += 3...
1
Java
Java
set a size of the root view before running test
0bbfe79623c97d349586266885b5af58137d771f
<ide><path>ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java <ide> public void testPropsApplied() { <ide> UIManagerModule uiManager = getUIManagerModule(); <ide> <ide> ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application); <add> rootView.setLayoutParams(ne...
1
Ruby
Ruby
correct the dedup code
23c5558f37c2c55807e7603415214f2b4b7b22c1
<ide><path>actionpack/lib/action_dispatch/journey/scanner.rb <ide> def next_token <ide> end <ide> <ide> private <del> <add> <ide> # takes advantage of String @- deduping capabilities in Ruby 2.5 upwards <ide> # see: https://bugs.ruby-lang.org/issues/13077 <ide> def dedup_scan(...
1
PHP
PHP
add $localkey to morphtomany relation
c0f425cd5838d9b00c10c51137e99a88b5f28c93
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphToMany.php <ide> class MorphToMany extends BelongsToMany <ide> * @param string $table <ide> * @param string $foreignKey <ide> * @param string $relatedKey <del> * @param string $localKey <ide> * @param string $parentKey <add> ...
1
Ruby
Ruby
add missing test cases for asset_path
21208d2ab0ab98426069dfc0c86f5dd1a2876b8c
<ide><path>actionview/test/template/asset_tag_helper_test.rb <ide> def url_for(*args) <ide> end <ide> <ide> AssetPathToTag = { <add> %(asset_path("")) => %(), <add> %(asset_path(" ")) => %(), <ide> %(asset_path("foo")) => %(/foo), <ide> %(asset_path("style.css")) =>...
1
Javascript
Javascript
update snapshot path exclusions
ebc824abd17e04814cefe170cf5701476a7c165f
<ide><path>script/lib/generate-startup-snapshot.js <ide> module.exports = function (packagedAppPath) { <ide> modulePath.endsWith('.node') || <ide> coreModules.has(modulePath) || <ide> (relativePath.startsWith(path.join('..', 'src')) && relativePath.endsWith('-element.js')) || <add> relati...
1
Javascript
Javascript
use ember.$ in the tests
635de93a9329f3f3fbf53473542b266805f81cc6
<ide><path>packages/ember-views/tests/system/render_buffer_test.js <ide> test("properly handles old IE's zero-scope bug", function() { <ide> buffer.push('<script></script>foo'); <ide> <ide> var element = buffer.element(); <del> ok($(element).html().match(/script/i), "should have script tag"); <del> ok(!$(element...
1
Python
Python
remove some tests to see build status changes
7a2adc46337d786c1ba91521783fddc19fed9f0c
<ide><path>spacy/tests/regression/test_issue1769.py <ide> from ...lang.en.lex_attrs import like_num as en_like_num <ide> from ...lang.fr.lex_attrs import like_num as fr_like_num <ide> from ...lang.id.lex_attrs import like_num as id_like_num <del>from ...lang.nl.lex_attrs import like_num as nl_like_num <del>from ...lang...
1
Python
Python
add missing feature extractors
33b7c9a8aaa9b94dd67549be8755e3f051bacee9
<ide><path>src/transformers/models/auto/feature_extraction_auto.py <ide> ("speech_to_text", "Speech2TextFeatureExtractor"), <ide> ("vit", "ViTFeatureExtractor"), <ide> ("wav2vec2", "Wav2Vec2FeatureExtractor"), <add> ("detr", "DetrFeatureExtractor"), <add> ("layoutlmv2", "LayoutLMv2...
1
Text
Text
add resources for version control
8324537a4646caa9cf69448ecf6473a0c7d5284d
<ide><path>guide/english/working-in-tech/code-reviews/index.md <ide> title: Code Reviews <ide> --- <ide> ## Code Reviews <add> <ide> Code Reviews exist in order to improve the quality of the code in a software project and are common practice for many software development teams. <ide> Code reviews involve team members l...
1
Go
Go
fix nat integration tests
4f4209788378e580247d4baff65ae5b58afac4ba
<ide><path>integration-cli/docker_cli_nat_test.go <ide> package main <ide> <ide> import ( <ide> "fmt" <add> "io/ioutil" <ide> "net" <ide> "os/exec" <ide> "strings" <ide> <ide> "github.com/go-check/check" <ide> ) <ide> <del>func startServerContainer(c *check.C, proto string, port int) string { <del> pStr := fmt....
1
Javascript
Javascript
fix invalid write after end error
f7f0a6aa5d25a7221afb3ff7543fad019413110d
<ide><path>lib/net.js <ide> const { <ide> NumberParseInt, <ide> ObjectDefineProperty, <ide> ObjectSetPrototypeOf, <add> ReflectApply, <ide> Symbol, <ide> } = primordials; <ide> <ide> function afterShutdown() { <ide> // of the other side sending a FIN. The standard 'write after end' <ide> // is overly vague, ...
3
Python
Python
remove unnecessary check
c44376c613333cce36e830eb846b4cdcecabaf6c
<ide><path>rest_framework/fields.py <ide> def __init__(self, protocol='both', unpack_ipv4=False, **kwargs): <ide> self.validators.extend(validators) <ide> <ide> def to_internal_value(self, data): <del> if data == '' and self.allow_blank: <del> return '' <del> data = data.strip() <d...
1
Python
Python
prepare 2.2.4 release
1931e2186843ad3ca2507a3b16cb09a7a3db5285
<ide><path>keras/__init__.py <ide> from .models import Model <ide> from .models import Sequential <ide> <del>__version__ = '2.2.3' <add>__version__ = '2.2.4' <ide><path>setup.py <ide> ''' <ide> <ide> setup(name='Keras', <del> version='2.2.3', <add> version='2.2.4', <ide> description='Deep Learning for...
2
Java
Java
apply padding to rcttext
d9ed1a84c5862f16d0e22fddb5e9a5ca2716af0b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java <ide> <ide> import com.facebook.csslayout.CSSNode; <ide> import com.facebook.csslayout.MeasureOutput; <add>import com.facebook.csslayout.Spacing; <ide> import com.facebook.fbui.widget.text.staticlayouthelper.StaticLayoutHelper; <ide> import com...
1
Python
Python
fix init-model for npz vectors
dee8bdb900d32b0aa72da4809ffe4e0e751ece0d
<ide><path>spacy/cli/init_model.py <ide> def init_model(lang, output_dir, freqs_loc=None, clusters_loc=None, jsonl_loc=No <ide> if freqs_loc is not None and not freqs_loc.exists(): <ide> prints(freqs_loc, title=Messages.M037, exits=1) <ide> lex_attrs = read_attrs_from_deprecated(freqs_loc, c...
1
Javascript
Javascript
make querystring.parse() even faster
5e3ca981556c305830553d006b76d5dcaaf49276
<ide><path>lib/querystring.js <ide> QueryString.parse = QueryString.decode = function(qs, sep, eq, options) { <ide> return obj; <ide> } <ide> <add> var regexp = /\+/g; <ide> qs = qs.split(sep); <ide> <ide> // maxKeys <= 0 means that we should not limit keys count <ide> if (maxKeys > 0) { <ide> qs = q...
1
Text
Text
fix broken link to github pr helper
7a91d7fa7e9e5156c728288e6ec66512fb70a693
<ide><path>CONTRIBUTING.md <ide> We track Pull Requests by attaching labels and assigning to milestones. For som <ide> does not provide a good UI for managing labels on Pull Requests (unlike Issues). We have developed <ide> a simple Chrome Extension that enables you to view (and manage if you have permission) the lab...
1
Text
Text
add maclover7 to collaborators
9ec78101fad90e6469677598b6bc3e8196d1b17f
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Luigi Pinca** &lt;luigipinca@gmail.com&gt; (he/him) <ide> * [lucamaraschi](https://github.com/lucamaraschi) - <ide> **Luca Maraschi** &lt;luca.maraschi@gmail.com&gt; (he/him) <add>* [maclover7](https://github.com/ma...
1
Go
Go
remove unused functions
c546894aefbd661adc73ba3cf952d38f94627924
<ide><path>pkg/ioutils/fmt.go <del>package ioutils <del> <del>import ( <del> "fmt" <del> "io" <del>) <del> <del>// FprintfIfNotEmpty prints the string value if it's not empty <del>func FprintfIfNotEmpty(w io.Writer, format, value string) (int, error) { <del> if value != "" { <del> return fmt.Fprintf(w, format, value) ...
2
Java
Java
introduce failing tests for httpheaders
e187a42bfca79b75548cdf6dd5c46298ccfa8134
<ide><path>spring-web/src/test/java/org/springframework/http/HttpHeadersTests.java <ide> import java.util.TimeZone; <ide> <ide> import org.hamcrest.Matchers; <add>import org.junit.Ignore; <ide> import org.junit.Test; <ide> <ide> import static org.hamcrest.Matchers.*; <ide> public void bearerAuth() { <ide> assertEqu...
1
Text
Text
fix typo in engine dashboard
3ae3df73408167d242731ac163d8dec96df5fa30
<ide><path>object_detection/g3doc/running_on_cloud.md <ide> training checkpoints and events will be written to and <ide> Google Cloud Storage. <ide> <ide> Users can monitor the progress of their training job on the [ML Engine <del>Dasboard](https://pantheon.corp.google.com/mlengine/jobs). <add>Dashboard](https://panth...
1
Text
Text
add third party packages
df2d9034c2a5a07dc3aa5455db892ee94cbed467
<ide><path>docs/api-guide/filtering.md <ide> For example, you might need to restrict users to only being able to see objects <ide> <ide> We could achieve the same behavior by overriding `get_queryset()` on the views, but using a filter backend allows you to more easily add this restriction to multiple views, or to app...
2
Text
Text
remove extra closing parenthesis
f1cb4ea8674cd09397d1e7837b529a4a0a4cd4aa
<ide><path>docs/basic-features/data-fetching.md <ide> If `fallback` is `true`, then the behavior of `getStaticProps` changes: <ide> In the “fallback” version of a page: <ide> <ide> - The page’s props will be empty. <del>- Using the [router](/docs/api-reference/next/router.md)), you can detect if the fallback is being ...
1
Javascript
Javascript
add a (failing on glimmer) test for
40fe91a21e39cca4e042278628abf8813b8365f8
<ide><path>packages/ember-glimmer/tests/integration/syntax/each-test.js <ide> class SingleEachTest extends AbstractEachTest { <ide> this.assertText('No Thing bar'); <ide> } <ide> <add> ['@test content that are not initially present updates correctly GH#13983']() { <add> // The root cause of this bug is that ...
1
Text
Text
fix broken link in automated build doc
8e66e627d701101e583c31fba419b0ae8cf2fb89
<ide><path>docs/userguide/dockerrepos.md <ide> build and, in a few minutes, you should see your new Automated Build on the [Doc <ide> Registry. It will stay in sync with your GitHub and Bitbucket repository until you <ide> deactivate the Automated Build. <ide> <del>If you want to see the status of your Automated Build...
1
Python
Python
fix model download
9b75d872b08fe66a5a5c0a8534e36c0e252d3089
<ide><path>spacy/en/download.py <ide> import shutil <ide> <ide> import plac <del>from sputnik import Sputnik <add>import sputnik <add> <add>from .. import about <ide> <ide> <ide> def migrate(path): <ide> def link(package, path): <ide> force=("Force overwrite", "flag", "f", bool), <ide> ) <ide> def main(data_size...
2
PHP
PHP
add methods for unloading and retrieving behaviors
80edbe48ed9d65e9decc9fcfdf5f28321be2b31c
<ide><path>src/ORM/Table.php <ide> public function addBehavior($name, array $options = []) { <ide> $this->_behaviors->load($name, $options); <ide> } <ide> <add>/** <add> * Removes a behavior. <add> * <add> * Removes a behavior from this table's behavior collection. <add> * <add> * Example: <add> * <add> * Unload a ...
2
Text
Text
fix worker example to receive message
42be4c3befbb619b335816eecbe459faa4194531
<ide><path>doc/api/worker_threads.md <ide> added: v10.5.0 <ide> * `transferList` {Object[]} <ide> <ide> Send a message to the worker that will be received via <del>[`require('worker_threads').on('message')`][]. <add>[`require('worker_threads').parentPort.on('message')`][]. <ide> See [`port.postMessage()`][] for more d...
1
Javascript
Javascript
add unhandled rejection guard
ef49f55e9376cdc2ef99f3e4cd3021d3a253a1c9
<ide><path>test/addons-napi/test_promise/test.js <ide> const common = require('../../common'); <ide> const assert = require('assert'); <ide> const test_promise = require(`./build/${common.buildType}/test_promise`); <ide> <add>common.crashOnUnhandledRejection(); <add> <ide> // A resolution <ide> { <ide> const expecte...
1