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
fix "esperanto" name
6de281391973ad6da8a168cc653f311e4ddc44b1
<ide><path>guides/source/active_job_basics.md <ide> emails asynchronously: <ide> ```ruby <ide> I18n.locale = :eo <ide> <del>UserMailer.welcome(@user).deliver_later # Email will be localized to Esparanto. <add>UserMailer.welcome(@user).deliver_later # Email will be localized to Esperanto. <ide> ``` <ide> <ide>
1
Javascript
Javascript
set timestamps of directories to fake times too
b7bdd38bb61a1f56946935f4f2037e1f2fc6e23d
<ide><path>test/ChangesAndRemovals.test.js <ide> function cleanup(callback) { <ide> } <ide> <ide> function createFiles() { <del> fs.mkdirSync(tempFolderPath); <del> <ide> // Set file timestamps to 5 seconds earlier, <ide> // otherwise the newly-created files will trigger the webpack watch mode to re-compile. <ide> ...
1
Ruby
Ruby
add default formula test
51ca9025a5c094d048d248f5fa0e4bf8990bc421
<ide><path>Library/Homebrew/test/formula_installer_spec.rb <ide> class #{Formulary.class_s(dep_name)} < Formula <ide> it { is_expected.to be false } <ide> end <ide> <add> context "it returns false when requirement is satisfied but default formula is installed" do <add> let(:satisfied?) { true } <add>...
1
Text
Text
update devops guide
ef68676576284162dbd5732677ca889d5db09a62
<ide><path>docs/devops.md <ide> |-| <ide> <!-- do not translate this --> <ide> <del>> ### :warning: THIS GUIDE IS NOT LIVE YET. :warning: <del>> The processes described here will come to effect in the upcoming version of freeCodeCamp.org. <del>> Some parts of the guide are applicable on the beta application. <del> <id...
1
Javascript
Javascript
add missing semicolon in flycontrols
9fbfbf75edf80df1232c3da5a57751d15dce7abe
<ide><path>examples/js/controls/FlyControls.js <ide> THREE.FlyControls = function ( object, domElement ) { <ide> window.removeEventListener( 'keydown', _keydown, false ); <ide> window.removeEventListener( 'keyup', _keyup, false ); <ide> <del> } <add> }; <ide> <ide> var _mousemove = bind( this, this.mousemove ); ...
1
PHP
PHP
fix doc block
ecb87fb8ca524ab5f4ef44fb44408e945ea13a7c
<ide><path>src/Console/Command.php <ide> public function __construct() <ide> * command can be calculated. <ide> * <ide> * @param string $name The name the command uses in the collection. <del> * @return $this; <add> * @return $this <ide> * @throws \InvalidArgumentException <ide> */ <ide...
1
Go
Go
add some push test coverage
dbec2317e503b8a0190102332168f9d0256392b7
<ide><path>integration-cli/docker_cli_push_test.go <ide> package main <ide> import ( <ide> "fmt" <ide> "os/exec" <add> "strings" <ide> "testing" <add> "time" <ide> ) <ide> <del>// these tests need a freshly started empty private docker registry <del> <ide> // pulling an image from the central registry should work <...
3
PHP
PHP
update doc blocks
5f367bc1c9ebaa5401941cc9f379c5d79a428ee8
<ide><path>src/Model/Behavior/TreeBehavior.php <ide> * hierarchical structure. <ide> * <ide> * Tables attaching this behavior are required to have a column referencing the <del> * parent row, and two other numeric columns (lft and rgth) where the implicit <add> * parent row, and two other numeric columns (lft and rg...
1
Text
Text
update changelog to include v2.3.0-beta.2
18041f892dfd9db87b90d8770469df8a2b2b951b
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v2.3.0-beta.2 (November 29, 2015) <add> <add>- [#12626](https://github.com/emberjs/ember.js/pull/12626) [BUGFIX] Fix "rest" style positional params in contextual components when using dot syntax. <add>- [#12627](https://github.com/emberjs/ember.js/pull/126...
1
Javascript
Javascript
add inputmode prop to textinput component
9fac88574e2f8c2f46b7f081273845f833fe1b75
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> export type KeyboardType = <ide> // Android-only <ide> | 'visible-password'; <ide> <add>export type InputMode = <add> | 'none' <add> | 'text' <add> | 'decimal' <add> | 'numeric' <add> | 'tel' <add> | 'search' <add> | 'email' <add> | 'url'; <add> ...
2
Javascript
Javascript
fix syntax error in ie11 from next-server/amp
1cbb5958ec8bd5a6b48d11475b6499d2da8b71a5
<ide><path>packages/next-server/amp.js <del>const { useAmp } = require('./dist/lib/amp') <del>module.exports = { useAmp } <add>const amp = require('./dist/lib/amp') <add>module.exports = { useAmp: amp.useAmp } <ide><path>test/integration/production/pages/some-amp.js <add>import { useAmp } from 'next/amp' <add> <add>if ...
3
Python
Python
fix output_shape too
e21a6a9ebff8659594ecd70e8123252715d6b101
<ide><path>keras/layers/core.py <ide> def output_shape(self): <ide> else: <ide> output_shape_func = marshal.loads(self._output_shape) <ide> output_shape_func = types.FunctionType(output_shape_func, globals()) <del> shape = output_shape_func(self.previous.output_shape) <add> ...
1
PHP
PHP
add test for dumping requests
5434332367c23230be01391b500005879bd6fa93
<ide><path>tests/Http/HttpClientTest.php <ide> use Illuminate\Support\Str; <ide> use OutOfBoundsException; <ide> use PHPUnit\Framework\TestCase; <add>use Symfony\Component\VarDumper\VarDumper; <ide> <ide> class HttpClientTest extends TestCase <ide> { <ide> function (Request $request) { <ide> <ide> $this->fact...
1
Javascript
Javascript
remove unnecessary newline
42d4de9ce02afe300b1e14edf124a278c6a9a154
<ide><path>website/layout/AutodocsLayout.js <ide> var slugify = require('slugify'); <ide> <ide> var styleReferencePattern = /^[^.]+\.propTypes\.style$/; <ide> <del> <ide> var ComponentDoc = React.createClass({ <ide> renderType: function(type) { <ide> if (type.name === 'enum') {
1
Python
Python
add module_spec to new model
126bddd1ba72802a80c4bd629e2afd6c07145275
<ide><path>src/transformers/models/swin/__init__.py <ide> else: <ide> import sys <ide> <del> sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure) <add> sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
1
Go
Go
add swarm get unlock key test for client package
a86023eaa93f18bfefb345a5e13c88156abaa6fa
<ide><path>client/swarm_get_unlock_key_test.go <add>package client <add> <add>import ( <add> "bytes" <add> "encoding/json" <add> "fmt" <add> "io/ioutil" <add> "net/http" <add> "strings" <add> "testing" <add> <add> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/pkg/testutil" <add> "github.com/stret...
1
PHP
PHP
pass options into cascaded deletes
701822cb7e4eb2d77b5e7937f6981e47ddd0295e
<ide><path>Cake/ORM/Association/DependentDeleteTrait.php <ide> public function cascadeDelete(Entity $entity, $options = []) { <ide> <ide> $query = $table->find('all')->where($conditions); <ide> foreach ($query as $related) { <del> $table->delete($related, ['atomic' => false]); <add> $table->delete($related, $o...
2
Mixed
Ruby
mirror direct uploads
d5a2f7ec148726d7547e367d7a968e3b4be9b509
<ide><path>activestorage/CHANGELOG.md <add>* The mirror service supports direct uploads. <add> <add> New files are directly uploaded to the primary service. When a <add> directly-uploaded file is attached to a record, a background job is enqueued <add> to copy it to each secondary service. <add> <add> Configur...
13
Ruby
Ruby
remove unneeded cleanup
e472c35880fc6708be987ecbe768019003b105b6
<ide><path>Library/Homebrew/cask/auditor.rb <del>require "cleanup" <ide> require "cask/download" <ide> <ide> module Cask <ide> def audit_languages(languages) <ide> ohai "Auditing language: #{languages.map { |lang| "'#{lang}'" }.to_sentence}" <ide> MacOS.instance_variable_set(:@languages, languages) <ide> ...
1
Text
Text
simplify path.basename() on posix and windows
16673ae9dc1e748f6ccd2c71df98504f361decdc
<ide><path>doc/api/path.md <ide> on which a Node.js application is running. Specifically, when running on a <ide> Windows operating system, the `path` module will assume that Windows-style <ide> paths are being used. <ide> <del>For example, using the `path.basename()` function with the Windows file path <del>`C:\temp\...
1
Ruby
Ruby
intercept calls to sub! in inreplace blocks
cb69f339b88bf58d7e40e87859e7efd13823eab7
<ide><path>Library/Homebrew/extend/string.rb <ide> def chuzzle; end <ide> <ide> # used by the inreplace function (in utils.rb) <ide> module StringInreplaceExtension <add> def sub! before, after <add> result = super <add> unless result <add> opoo "inreplace: replacement of '#{before}' with '#{after}' failed...
1
Go
Go
remove ensurehomeifiamstatic workaround
155e39187c720ca2f592e1d31705e437c0fa0dc8
<ide><path>daemon/logger/gcplogs/gcplogging.go <ide> func New(info logger.Info) (logger.Logger, error) { <ide> return nil, fmt.Errorf("No project was specified and couldn't read project from the metadata server. Please specify a project") <ide> } <ide> <del> // Issue #29344: gcplogs segfaults (static binary) <del> ...
3
Javascript
Javascript
improve buffer coverage
0536be2ad81fbee1a2c31022c3b624dc49742d62
<ide><path>test/parallel/test-buffer-copy.js <ide> let cntr = 0; <ide> } <ide> } <ide> <add>{ <add> // Floats will be converted to integers via `Math.floor` <add> b.fill(++cntr); <add> c.fill(++cntr); <add> const copied = b.copy(c, 0, 0, 512.5); <add> assert.strictEqual(copied, 512); <add> for (let i = 0; i < ...
2
Javascript
Javascript
remove spammy output in ci
908b4654bf360501868fb9930d4696c5d52f49b6
<ide><path>test/ConfigTestCases.test.js <ide> describe("ConfigTestCases", () => { <ide> // ignored <ide> } <ide> <del> const compilationName = `config/${category.name}/${testName}`; <del> if (process.env.CI) { <del> process.stderr.write(`[COMPILING] ${compilationName}\n`); <del> ...
4
Python
Python
add gpt2 to sequence classification auto model
8fa0c956b34123d1f1406ae96d74c484976d0e3f
<ide><path>src/transformers/modeling_auto.py <ide> FunnelForTokenClassification, <ide> FunnelModel, <ide> ) <del>from .modeling_gpt2 import GPT2LMHeadModel, GPT2Model <add>from .modeling_gpt2 import GPT2ForSequenceClassification, GPT2LMHeadModel, GPT2Model <ide> from .modeling_layoutlm import LayoutLMForMaskedL...
1
Text
Text
add the wiki pages as docs
102700ce2fc0ee749eb7ce3a52b85397b638c07a
<ide><path>docs/Additional-Reading.md <add>(A more complete and up-to-date list of resources can be found at the reactivex.io site: [[http://reactivex.io/tutorials.html]]) <add> <add># Introducing Reactive Programming <add>* [Introduction to Rx](http://www.introtorx.com/): a free, on-line book by Lee Campbell <add>* [T...
38
Javascript
Javascript
replace function.prototype with primordial
607be0c78a6bd33a105d2a690f6e71264016252c
<ide><path>lib/_stream_writable.js <ide> <ide> const { <ide> Array, <add> FunctionPrototype, <ide> ObjectDefineProperty, <ide> ObjectSetPrototypeOf, <ide> Symbol, <ide> ObjectDefineProperty(WritableState.prototype, 'buffer', { <ide> // whose prototype chain only points to Readable. <ide> var realHasInstance; ...
1
PHP
PHP
apply fixes from styleci
e492eaa41b6abc741bdbaec9e22408c14f8c7c07
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php <ide> protected function writeErrorAndDie(InvalidFileException $e) <ide> $output->writeln('The environment file is invalid!'); <ide> $output->writeln($e->getMessage()); <ide> <del> die(1); <add> exit(1); <ide> ...
6
PHP
PHP
reset files on each itteration
6773c57c0c8d59afe63ac9384c67761089cc597e
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> protected function _filesMatchClass($path) { <ide> $paths = $this->_paths; <ide> $this->_paths = array($path); <ide> <add> $this->_files = array(); <ide> $this->_findFiles('php'); <ide> foreach ($this->_files as $file) { <ide> $contents = file_get_...
1
Javascript
Javascript
use declarations from schemas in plugins
1f6b92de3e5d8f2cd2e573de864258755e8f1efd
<ide><path>lib/BannerPlugin.js <ide> const Template = require("./Template"); <ide> const validateOptions = require("schema-utils"); <ide> const schema = require("../schemas/plugins/BannerPlugin.json"); <ide> <add>/** @typedef {import("../declarations/plugins/BannerPlugin").BannerPluginArgument} BannerPluginArgument */...
14
Ruby
Ruby
fix mutable string syntax
5c83729be96a852927fe7c44cd089ce243f01c7f
<ide><path>Library/Homebrew/utils/github.rb <ide> def pretty_ratelimit_reset(reset) <ide> class AuthenticationFailedError < Error <ide> def initialize(github_message) <ide> @github_message = github_message <del> message += "GitHub #{github_message}:" <add> message = +"GitHub #{github_message}:" <i...
1
PHP
PHP
detect infinite recursion when initializing table
4068cb88d82c182a81556fbc40d2a2e7c51d7e28
<ide><path>src/ORM/Locator/TableLocator.php <ide> class TableLocator extends AbstractLocator implements LocatorInterface <ide> */ <ide> protected $instances = []; <ide> <add> /** <add> * List of Table classes being initialized. <add> * <add> * @var array<string, bool> <add> */ <add> prot...
3
Ruby
Ruby
add missing require to strong_parameters.rb
8a410043beea5e1da8afcbb4e75ca2a227e33a48
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> require 'active_support/core_ext/string/filters' <ide> require 'active_support/rescuable' <ide> require 'action_dispatch/http/upload' <add>require 'rack/test' <ide> require 'stringio' <ide> require 'set' <ide>
1
Javascript
Javascript
fix race condition in packager list dependencies
61272e69e935fd96029c922487d1fac0c463c5af
<ide><path>local-cli/dependencies/dependencies.js <ide> function _dependencies(argv, config, resolve, reject) { <ide> outStream.write(modulePath + '\n'); <ide> } <ide> }); <del> writeToFile && outStream.end(); <add> return writeToFile <add> ? Promise.denodeify(outStr...
1
Ruby
Ruby
fix path of annotations.rake [ci skip]
4d90bd02e8603a4061a39fe7985310fdfe61bdb8
<ide><path>railties/lib/rails/source_annotation_extractor.rb <ide> # rake notes <ide> # rake notes:optimize <ide> # <del># and friends. See <tt>rake -T notes</tt> and <tt>railties/lib/tasks/annotations.rake</tt>. <add># and friends. See <tt>rake -T notes</tt> and <tt>railties/lib/rails/tasks/annotations.rake</tt>. ...
1
PHP
PHP
fix spelling mistake
886f7ab114794140128ae47db1c16bb03482e690
<ide><path>src/Illuminate/Database/Eloquent/Concerns/GuardsAttributes.php <ide> public function isFillable($key) <ide> } <ide> <ide> // If the attribute is explicitly listed in the "guarded" array then we can <del> // retunr false immediately. This means this attribute is definitely not <add> ...
1
Javascript
Javascript
respect private browsing in extension
ae7f2e9fcc961bb157bef40c2abb1f699c5d8927
<ide><path>web/viewer.js <ide> var Settings = (function SettingsClosure() { <ide> })(); <ide> var extPrefix = 'extensions.uriloader@pdf.js'; <ide> var isExtension = location.protocol == 'chrome:' && !isLocalStorageEnabled; <add> var inPrivateBrowsing = false; <add> if (isExtension) { <add> var pbs = Componen...
1
PHP
PHP
add additional disabled tests & doc blocks
9bf5c3e6ee8973e970593cd825bb5e517afa56da
<ide><path>tests/TestCase/View/Input/CheckboxTest.php <ide> */ <ide> class CheckboxTest extends TestCase { <ide> <add>/** <add> * setup method. <add> * <add> * @return void <add> */ <ide> public function setUp() { <ide> parent::setUp(); <ide> $templates = [ <ide><path>tests/TestCase/View/Input/MultiCheckboxTest....
4
PHP
PHP
fix additional errors in hidden()
f9d2265332fcef6c52403b0ee54510ee7fd43e8c
<ide><path>src/View/Helper/FormHelper.php <ide> public function hidden($fieldName, $options = array()) { <ide> )); <ide> <ide> if ($secure === true) { <del> $this->_secure(true, null, '' . $options['value']); <add> $this->_secure(true, null, '' . $options['val']); <ide> } <ide> <ide> $options['type'] = 'h...
2
Java
Java
initialize getconstantsforviewmanagers eagerly
62829a7a6973a452ad69a2ba26b95e662a21655b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java <ide> /** <ide> * Copyright (c) Facebook, Inc. and its affiliates. <ide> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <add> * <p>This sou...
1
Text
Text
remove space before colon on config list
d45baa34445379319f5c46f6d13f52e6dd79bc9a
<ide><path>guides/source/configuring.md <ide> text/javascript image/svg+xml application/postscript application/x-shockwave-fla <ide> #### For '7.0', defaults from previous versions below and: <ide> <ide> - `config.action_view.button_to_generates_button_tag`: `true` <del>- `config.action_view.apply_stylesheet_media_def...
1
Python
Python
make expand() error vague so it's not misleading
1394b1a986bf63f6910eaaf7b5d92f24f2623ff4
<ide><path>airflow/models/mappedoperator.py <ide> def _expand(self, **mapped_kwargs: "Mappable") -> "MappedOperator": <ide> from airflow.operators.empty import EmptyOperator <ide> <ide> validate_mapping_kwargs(self.operator_class, "expand", mapped_kwargs) <del> prevent_duplicates(self.kwargs, ma...
1
Java
Java
fix javadoc ambiguity
ac975df448eed9cad620b895f4999a10237df1f0
<ide><path>spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManagerFactoryBean.java <ide> * <ide> * <table> <ide> * <tr> <del> * <td>{@link #setFavorPathExtension favorPathExtension}</td> <del> * <td>{@link PathExtensionContentNegotiationStrategy}</td> <del> * <td>Yes</td> <add> ...
2
PHP
PHP
use interface instead of concrete class
5dfa968f48d48fa6fdd2be93516be9416c5ef972
<ide><path>src/Database/Schema/BaseSchema.php <ide> */ <ide> namespace Cake\Database\Schema; <ide> <del>use Cake\Database\Driver; <add>use Cake\Database\DriverInterface; <ide> use InvalidArgumentException; <ide> <ide> /** <ide> abstract class BaseSchema <ide> /** <ide> * The driver instance being used. <ide...
3
Ruby
Ruby
trim line breaks
e0558dc7c71fd3e2d08eef876a987212c41c4f69
<ide><path>Library/Homebrew/cask/artifact/installer.rb <ide> def install_phase(**) <ide> puts <<~EOS <ide> To complete the installation of Cask #{cask}, you must also <ide> run the installer at: <del> <ide> '#{cask.staged_path.join(path)}' <ide> EOS <ide> ...
5
Mixed
Python
fix json indent parameter. closes
351e0a4a99a6505b01718aa8926b6e466e43dcb0
<ide><path>docs/api-guide/schemas.md <ide> to the Open API ("Swagger") format: <ide> from openapi_codec import OpenAPICodec <ide> <ide> class SwaggerRenderer(renderers.BaseRenderer): <del> media_type = 'application/openapi+json;version=2.0' <add> media_type = 'application/openapi+json' <ide> ...
4
Javascript
Javascript
use timers._unrefactive for internal timeouts
a846d9388cbdf298f17b341d0ed669c1852185a8
<ide><path>lib/net.js <ide> Socket.prototype.listen = function() { <ide> Socket.prototype.setTimeout = function(msecs, callback) { <ide> if (msecs > 0 && !isNaN(msecs) && isFinite(msecs)) { <ide> timers.enroll(this, msecs); <del> timers.active(this); <add> timers._unrefActive(this); <ide> if (callback) ...
2
Python
Python
fix lint issues.
3a97b68c27020016a7e038af52ce803098c70dab
<ide><path>official/transformer/utils/tokenizer.py <ide> def init_from_files( <ide> token_counts, alphabet, target_vocab_size, threshold, min_count, <ide> reserved_tokens) <ide> tf.compat.v1.logging.info("Generated vocabulary with %d subtokens." % <del> len(subtoken_list)) <add> ...
4
Python
Python
fix handling of integer arrays by gradient
0fea57e2c3c890b63c91325f9f9ce07ead74b745
<ide><path>numpy/lib/function_base.py <ide> def gradient(f, *varargs, **kwargs): <ide> # scalar or 1d array for each axis <ide> dx = list(varargs) <ide> for i, distances in enumerate(dx): <del> if np.ndim(distances) == 0: <add> distances = np.asanyarray(distances) <add> ...
2
PHP
PHP
pass the connection to mocked models
c12c03e6c4a8e0f7ab9d4d83b1ab060ce1a2bcee
<ide><path>src/TestSuite/TestCase.php <ide> <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <add>use Cake\Datasource\ConnectionManager; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Inflector; <ide> public function getMockForModel($alias, array $methods = array(), arra...
2
PHP
PHP
create a standalone decimaltype
8b55d9b63aacfab49a03729081fe9674d5b2952b
<ide><path>src/Database/Type.php <ide> class Type implements TypeInterface <ide> 'boolean' => 'Cake\Database\Type\BoolType', <ide> 'date' => 'Cake\Database\Type\DateType', <ide> 'datetime' => 'Cake\Database\Type\DateTimeType', <del> 'decimal' => 'Cake\Database\Type\FloatType', <add> ...
5
Javascript
Javascript
fix a bug with entering tick transition
d3d4ceecbbd020e3552248d8661920f3333f096e
<ide><path>d3.js <ide> d3.svg.axis = function() { <ide> switch (orient) { <ide> case "bottom": { <ide> tickTransform = d3_svg_axisX; <add> subtickEnter.attr("y2", tickMinorSize); <ide> subtickUpdate.attr("x2", 0).attr("y2", tickMinorSize); <add> tickEnter.select("line...
3
Text
Text
add oniguruma to build status doc
13168a2089c1dbce41160635a61b1105be616d1c
<ide><path>docs/build-instructions/build-status.md <ide> | [Fs Plus](https://github.com/atom/fs-plus) | [![macOS Build Status](https://travis-ci.org/atom/fs-plus.svg?branch=master)](https://travis-ci.org/atom/fs-plus) | [![Windows Build Status](https://ci.appveyor.com/api/projects/status/gf2tleqp0hdek3o3/branch/master?...
1
Ruby
Ruby
remove unused captures
0c356109ff5e3b146641de7f1f823fee7c75bb41
<ide><path>activemodel/lib/active_model/attribute_methods.rb <ide> def initialize(options = {}) <ide> end <ide> <ide> @prefix, @suffix = options[:prefix] || '', options[:suffix] || '' <del> @regex = /^(#{Regexp.escape(@prefix)})(.+?)(#{Regexp.escape(@suffix)})$/ <add> @reg...
1
Javascript
Javascript
fix build scripts for latest glimmer
10a2e8b84591c593ccfa79d1c6055054ef93da26
<ide><path>broccoli/packages.js <ide> module.exports.emberPkgES = function _emberPkgES(name, rollup, externs) { <ide> } <ide> <ide> module.exports.glimmerPkgES = function _glimmerPkgES(name, externs = []) { <del> return new Rollup(findLib(name, 'dist/modules'), { <add> return new Rollup(findLib(name, 'dist/modules/e...
2
PHP
PHP
move shouldkill check
8403b34a6de212e5cd98d40333fd84d112fbb9f7
<ide><path>src/Illuminate/Queue/Worker.php <ide> public function daemon($connectionName, $queue, WorkerOptions $options) <ide> <ide> $this->registerTimeoutHandler($job, $options); <ide> <del> if ($this->shouldQuit) { <del> $this->kill(); <del> } <del> <ide> ...
1
Text
Text
add ernie model
d1f74b9aff71a1d5a949b0bc48dbe9894cc6e40b
<ide><path>model_cards/nghuyong/ernie-1.0/README.md <add>--- <add>language: zh <add>--- <add> <add># ERNIE-1.0 <add> <add>## Introduction <add> <add>ERNIE (Enhanced Representation through kNowledge IntEgration) is proposed by Baidu in 2019, <add>which is designed to learn language representation enhanced by knowledge m...
4
Text
Text
fix typo on fs docs
94eb0f907bd4023c4ed4647b38d049be8c1c8826
<ide><path>doc/api/fs.md <ide> Node.js callbacks. `fs.existsSync()` does not use a callback. <ide> <ide> ```js <ide> if (fs.existsSync('/etc/passwd')) { <del> console.log('The file exists.'); <add> console.log('The path exists.'); <ide> } <ide> ``` <ide>
1
Text
Text
update relation to other libraries.md
5cde95d4b8e374ea16fe78a609ced9a799e10b89
<ide><path>docs/Basics/Relation to Other Libraries.md <add>Relation to Other Libraries <add>-------------------------- <add> <add>TODO <add> <add>-------------------------- <add>Next: [The Redux Flow](The Redux Flow.md)
1
PHP
PHP
remove uneeded psalm annotation
85711f6b516013d6dcb85f898bdccb99de19617d
<ide><path>src/ORM/Query.php <ide> public function triggerBeforeFind(): void <ide> if (!$this->_beforeFindFired && $this->_type === 'select') { <ide> $this->_beforeFindFired = true; <ide> <del> /** @var \Cake\Event\EventDispatcherInterface $repository */ <ide> $repository = $...
1
Ruby
Ruby
publish api for `stdenv`
9f9903f80de9f9701ef7dec4b52e0cf93890bc90
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> require "hardware" <ide> require "extend/ENV/shared" <ide> <del># @private <add># @api private <ide> module Stdenv <ide> extend T::Sig <ide>
1
Javascript
Javascript
use correct hook in deprecation message
29c274eec379bc5ec178f4dbe6d9997fac6b0c91
<ide><path>lib/NormalModuleFactory.js <ide> class NormalModuleFactory extends ModuleFactory { <ide> <ide> if (typeof result === "object") <ide> throw new Error( <del> deprecationChangedHookMessage( <del> "resolve", <del> this.hooks.afterResolve <del> ) + <add> deprecationChan...
1
PHP
PHP
update the object cache
a7ec73b52348493ef60df979dc48503571b512b6
<ide><path>lib/Cake/Test/Case/Core/CakePluginTest.php <ide> public function setUp() { <ide> App::build(array( <ide> 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) <ide> ), true); <add> App::objects('plugins', null, false); <ide> } <ide> <ide> /**
1
Text
Text
update changelog entry about rack-cache extract
ab4c079536641e63ca51b6121864a75de7145256
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* The `Rack::Cache` middleware is now disabled by default. To enable it, <add> set `config.action_dispatch.rack_cache = true` and add `gem rack-cache` to your Gemfile. <add> <add> *Guillermo Iguaran* <add> <ide> * `ActionCont...
1
Javascript
Javascript
remove unused variable
5f00c11ac4451b2212000ed293246b40a23a150d
<ide><path>examples/js/loaders/LDrawLoader.js <ide> THREE.LDrawLoader = ( function () { <ide> <ide> }, onProgress, onError ); <ide> <del> function subobjectLoad( url, onLoad, onProgress, onError, subobject ) { <del> <del> var fileLoader = new THREE.FileLoader( scope.manager ); <del> fileLoader.setPath( sco...
1
Javascript
Javascript
fix null node issue in reactcsstransitiongroup
c9eb572a6f6f97c919b2a736803cba61b01559e3
<ide><path>src/addons/transitions/ReactCSSTransitionGroupChild.js <ide> var ReactCSSTransitionGroupChild = React.createClass({ <ide> CSSCore.addClass(node, className); <ide> <ide> // Need to do this to actually trigger a transition. <del> this.queueClass(activeClassName); <add> this.queueClassAndNode(act...
2
Java
Java
add diagram for new takeuntil variant
3fd23c6cb6f282cd03a03f42c4d5e436fc18d11d
<ide><path>src/main/java/rx/Observable.java <ide> public final <E> Observable<T> takeUntil(Observable<? extends E> other) { <ide> * @return an Observable that emits the items from the source Observable so long as each item satisfies the <ide> * condition defined by {@code predicate}, then completes <i...
2
PHP
PHP
improve assertions a bit
c5c3b85d97520a9444265971d60aa7c070f34e6c
<ide><path>tests/TestCase/I18n/DateTest.php <ide> public function testI18nFormat($class) <ide> $result = $time->i18nFormat(\IntlDateFormatter::FULL); <ide> $result = str_replace(' à', '', $result); <ide> $expected = 'jeudi 14 janvier 2010 00:00:00'; <del> $this->assertContains($expected, ...
2
Ruby
Ruby
rearrange build order, ar last
c626be796ce2fd716d72f8d38784eabe7267625e
<ide><path>ci/ci_build.rb <ide> def rake(*tasks) <ide> build_results[:activesupport_isolated] = rake 'test:isolated' <ide> end <ide> <del>rm_f "#{root_dir}/activerecord/debug.log" <del>cd "#{root_dir}/activerecord" do <add>cd "#{root_dir}/railties" do <ide> puts <del> puts "[CruiseControl] Building ActiveRecord w...
1
Javascript
Javascript
increase coverage of _http_outgoing
02ccffb081204c8f9b8b5a2a57354276f5676891
<ide><path>test/parallel/test-http-outgoing-proto.js <ide> assert.strictEqual( <ide> typeof ClientRequest.prototype._implicitHeader, 'function'); <ide> assert.strictEqual( <ide> typeof ServerResponse.prototype._implicitHeader, 'function'); <add> <add>// validateHeader <add>assert.throws(() => { <add> const outgoin...
1
Mixed
Javascript
add final method
ba513d140c22d373ec8828e18ee85e93a7954dc8
<ide><path>doc/api/stream.md <ide> on the type of stream being created, as detailed in the chart below: <ide> <p>[Writable](#stream_class_stream_writable)</p> <ide> </td> <ide> <td> <del> <p><code>[_write][stream-_write]</code>, <code>[_writev][stream-_writev]</code></p> <add> <p><code>[_write][...
8
Ruby
Ruby
add gc metrics for # of runs and total runtime
1e0d2e36cc4b524ca5a4330eeb3e3fd7f5ca0b5e
<ide><path>activesupport/lib/active_support/testing/performance.rb <ide> module Performance <ide> if benchmark = ARGV.include?('--benchmark') # HAX for rake test <ide> { :benchmark => true, <ide> :runs => 10, <del> :metrics => [:process_time, :memory, :objects], <add> ...
1
Text
Text
update pull request and issue templates.
7bb7f0159d95ef708649e8d6d625b162216752ea
<ide><path>.github/ISSUE_TEMPLATE.md <del>Please use one of the provided templates: <add>👉 Please follow one of these issue templates: <ide> - https://github.com/facebook/react-native/issues/new/choose <ide> <add>Note: to keep the backlog clean and actionable, issues may be immediately closed if they do not follow on...
2
Python
Python
fix patience for identical scores
97bcf2ae3a03cf97fd473062c1793e3d18ef2820
<ide><path>spacy/training/loop.py <ide> def train_while_improving( <ide> if is_best_checkpoint is not None: <ide> losses = {} <ide> # Stop if no improvement in `patience` updates (if specified) <del> best_score, best_step = max(results) <add> # Negate step value so that the ear...
1
Python
Python
fix gevent connection leak
b340eefee406b9fada9bfff7c3ea08570fccee06
<ide><path>celery/backends/mongodb.py <ide> def process_cleanup(self): <ide> if self._connection is not None: <ide> # MongoDB connection will be closed automatically when object <ide> # goes out of scope <add> del(self.collection) <add> del(self.database) <ide> ...
1
PHP
PHP
remove unused variables
21619ceef7eb153aafc73f47b0db899c3e7dc071
<ide><path>src/Error/Debug/ConsoleFormatter.php <ide> protected function exportArray(ArrayNode $var, int $indent): string <ide> */ <ide> protected function exportObject($var, int $indent): string <ide> { <del> $out = ''; <ide> $props = []; <ide> <ide> if ($var instanceof ReferenceNo...
2
Text
Text
update task description
0b812c91e312a38db0e38ffd1b638f213fdaeb43
<ide><path>curriculum/challenges/english/03-front-end-libraries/bootstrap/add-elements-within-your-bootstrap-wells.md <ide> dashedName: add-elements-within-your-bootstrap-wells <ide> <ide> Now we're several `div` elements deep on each column of our row. This is as deep as we'll need to go. Now we can add our `button` ...
1
Python
Python
add tests for hermefit with deg specified as list
c65093c96746fd5513a648522e105d7df8e8c912
<ide><path>numpy/polynomial/tests/test_hermite_e.py <ide> def test_hermefit(self): <ide> def f(x): <ide> return x*(x - 1)*(x - 2) <ide> <add> def f2(x): <add> return x**4 + x**2 + 1 <add> <ide> # Test exceptions <ide> assert_raises(ValueError, herme.hermefit, [1], ...
1
Javascript
Javascript
throw a caught error in the default warning module
f1bab136d07a6d50901ee7aa5d7d2267ccb855fb
<ide><path>src/vendor/core/warning.js <ide> if (__DEV__) { <ide> <ide> if (!condition) { <ide> var argIndex = 0; <del> console.warn('Warning: ' + format.replace(/%s/g, () => args[argIndex++])); <add> var message = 'Warning: ' + format.replace(/%s/g, () => args[argIndex++]); <add> console.warn(...
1
Python
Python
remove unnecessary pytest timeout
4f110b644599ac3f62e24e950e87159bc7d0f458
<ide><path>tests/keras/wrappers/scikit_learn_test.py <ide> def test_regression_build_fn(): <ide> assert_regression_works(reg) <ide> <ide> <del>@pytest.mark.timeout(50) <ide> def test_regression_class_build_fn(): <ide> class ClassBuildFnReg(object): <ide>
1
PHP
PHP
return user from loginusingid. fixes
f2e92773aba508201fd736b3e424b856f0f6fcfe
<ide><path>src/Illuminate/Auth/Guard.php <ide> public function loginUsingId($id, $remember = false) <ide> { <ide> $this->session->put($this->getName(), $id); <ide> <del> return $this->login($this->provider->retrieveById($id), $remember); <add> $this->login($user = $this->provider->retrieveById($id), $remember); <...
1
Ruby
Ruby
replace long conditional with guard clauses
7ddc432c9e55ea4a2f3244d95c2d0d3b39fa4e90
<ide><path>Library/Homebrew/python_helper.rb <ide> def python_helper(options={:allowed_major_versions => [2, 3]}, &block) <ide> filtered_python_reqs = [] <ide> while !python_reqs.empty? <ide> py = python_reqs.shift <del> # this is ulgy but Ruby 1.8 has no `uniq! { }` <del> if !filtered_python_reqs.map{ |f...
1
Ruby
Ruby
fix formoptionshelper tests
ca9641f8a7ca1142d0ea99405a079c8699bd443c
<ide><path>actionpack/test/template/form_options_helper_test.rb <ide> def to_s <ide> end <ide> end <ide> <del>ActionView::Helpers::FormOptionsHelper::TimeZone = MockTimeZone <add>ActiveSupport::TimeZone = MockTimeZone <ide> <ide> class FormOptionsHelperTest < ActionView::TestCase <ide> tests ActionView::Helpers::...
1
Python
Python
add cinder support libcloud-874
c4b5cfa6a25e8f9fe373650b60e770c2b9b51235
<ide><path>libcloud/compute/drivers/openstack.py <ide> class OpenStackNetworkConnection(OpenStackBaseConnection): <ide> service_region = 'RegionOne' <ide> <ide> <del>class OpenStackVolumeConnection(OpenStackBaseConnection): <del> service_type = 'volume' <add>class OpenStackVolumeV2Connection(OpenStackBaseConne...
1
Javascript
Javascript
convert canvas thumbnails to png
161def7f4eb337662dcf0ff53218d5579989fc1f
<ide><path>web/pdf_thumbnail_view.js <ide> var PDFThumbnailView = (function PDFThumbnailViewClosure() { <ide> _getPageDrawContext: <ide> function PDFThumbnailView_getPageDrawContext(noCtxScale) { <ide> var canvas = document.createElement('canvas'); <del> canvas.id = this.renderingId; <del> <del> ...
1
Javascript
Javascript
fix usage to display attributes as dash-case
e73bd40e857d88349011ae9d0272a7c5aa2f03ab
<ide><path>docs/src/ngdoc.js <ide> Doc.prototype = { <ide> dom.text(prefix); <ide> dom.text(param.optional ? '[' : ''); <ide> var parts = param.name.split('|'); <del> dom.text(parts[skipSelf ? 0 : 1] || parts[0]); <add> dom.text(dashCase(parts[skipSelf ? 0 : 1] || parts[0...
1
Python
Python
remove gkestartpodoperator when backporting
0f19a930d1a7dec2a96bab0de144829f83cc0626
<ide><path>airflow/providers/google/cloud/example_dags/example_kubernetes_engine_setup.py <add># <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright o...
4
Javascript
Javascript
support basic states inside of routes
8fd57b354c0e46f2f732a1ff1d75a078200a6fb1
<ide><path>packages/ember-routing/lib/routable.js <ide> Ember.Routable = Ember.Mixin.create({ <ide> In general, this will update the browser's URL. <ide> */ <ide> updateRoute: function(manager, location) { <del> if (get(this, 'isLeaf')) { <add> if (get(this, 'isLeafRoute')) { <ide> var path = this.a...
4
Javascript
Javascript
add test for fragement props
bb627228ea97514acb60901c390f420cdd26d21e
<ide><path>packages/react/src/__tests__/ReactElementValidator-test.internal.js <ide> describe('ReactElementValidator', () => { <ide> ); <ide> }); <ide> <add> it('warns for fragments with illegal attributes', () => { <add> class Foo extends React.Component { <add> render() { <add> return React.cre...
1
Python
Python
add hr name in glances system plugin
d902730b5d2356b3b21087a6989cef35904bafdf
<ide><path>glances/core/glances_autodiscover.py <ide> def addService(self, zeroconf, srv_type, srv_name): <ide> new_server_ip = socket.inet_ntoa(info.getAddress()) <ide> new_server_port = info.getPort() <ide> <del> # !!! Only for dev <del> # new_server_name = info.getServe...
4
PHP
PHP
restore changes from 11978
6b80c86224c87b7e2cb05c4b8be4dd3d0e253ea2
<ide><path>src/Error/ExceptionRenderer.php <ide> use Cake\View\Exception\MissingTemplateException; <ide> use Exception; <ide> use PDOException; <add>use Psr\Http\Message\ServerRequestInterface; <ide> <ide> /** <ide> * Exception Renderer. <ide> class ExceptionRenderer implements ExceptionRendererInterface <ide> *...
8
Javascript
Javascript
use .bind when autobinding
f1508c49371dd050c09c1ae39d02fb9a5542e6ef
<ide><path>src/core/ReactCompositeComponent.js <ide> var ReactCompositeComponentMixin = { <ide> */ <ide> _bindAutoBindMethod: function(method) { <ide> var component = this; <del> var boundMethod = function() { <del> return method.apply(component, arguments); <del> }; <add> var boundMethod = metho...
2
Javascript
Javascript
add apiversion to config
36d922fbdadcc357824d20169754e5bb4b950725
<ide><path>examples/cms-sanity/lib/config.js <ide> export const sanityConfig = { <ide> // useCdn == true gives fast, cheap responses using a globally distributed cache. <ide> // Set this to false if your application require the freshest possible <ide> // data always (potentially slightly slower and a bit more exp...
1
PHP
PHP
replace use of removed method
8f7d5f1a1fd0ff6375547c724a8051a43b99276e
<ide><path>src/Http/Client/Request.php <ide> class Request extends Message implements RequestInterface <ide> */ <ide> public function __construct(string $url = '', string $method = self::METHOD_GET, array $headers = [], $data = null) <ide> { <del> $this->validateMethod($method); <del> $this->...
1
Ruby
Ruby
remove unused line
7da314bb0320446c2c88eaf0c92bcaa83938d593
<ide><path>activerecord/test/cases/type/unsigned_integer_test.rb <ide> require "cases/helper" <del>require "models/company" <ide> <ide> module ActiveRecord <ide> module Type
1
Ruby
Ruby
add test case for b13d260
a335e10347e30b885d077cd9e638ee8840ed164a
<ide><path>activerecord/test/cases/associations/eager_test.rb <ide> def test_deep_including_through_habtm <ide> end <ide> end <ide> <add> test "preloading the same association twice works" do <add> Member.create! <add> members = Member.preload(:current_membership).includes(current_membership: :club).all.t...
1
Python
Python
update the pre-existing tests
27d586465760a47cd1754ad07fff813f3517e775
<ide><path>numpy/typing/tests/data/fail/bitwise_ops.py <ide> f8 = np.float64() <ide> <ide> b_ >> f8 # E: No overload variant <del>i8 << f8 # E: incompatible type <add>i8 << f8 # E: No overload variant <ide> i | f8 # E: Unsupported operand types <del>i8 ^ f8 # E: incompatible type <add>i8 ^ f8 # E: No overload va...
7
PHP
PHP
fix eg. code in docblock
6e6250d49feb32a002b91d02322bdcd6dc9ec1e9
<ide><path>src/Validation/Validator.php <ide> public function allowEmpty($field, $when = true) { <ide> * $message = 'This field cannot be empty'; <ide> * $validator->notEmpty('email'); // Email cannot be empty <ide> * $validator->notEmpty('email', $message, 'create'); // Email can be empty on update <del> * $validat...
1
Ruby
Ruby
pull requires out of methods
b87f9b37d6b75f514111098dbb460fdbc8054161
<ide><path>Library/Homebrew/cmd/doctor.rb <del>require 'cmd/missing' <del>require 'version' <add>require "cmd/missing" <add>require "formula" <add>require "keg" <add>require "version" <ide> <ide> class Volumes <ide> def initialize <ide> def check_for_other_package_managers <ide> end <ide> <ide> def check_for_broken...
2
Python
Python
fix empty asctime field in json formatted logs
2aec99c22847594040d28e587ab5e2473eff8c94
<ide><path>airflow/utils/log/json_formatter.py <ide> def __init__(self, fmt=None, datefmt=None, style='%', json_fields=None, extras=N <ide> self.json_fields = json_fields <ide> self.extras = extras <ide> <add> def usesTime(self): <add> return self.json_fields.count('asctime') > 0 <add> <ide> ...
2