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
remove undefined value on init cli command
58732a88b629b40b2d223a76fac46ecee5ae7295
<ide><path>local-cli/cliEntry.js <ide> function printHelpInformation() { <ide> let output = [ <ide> '', <ide> chalk.bold(chalk.cyan(` react-native ${cmdName} ${this.usage()}`)), <del> ` ${this._description}`, <add> this._description ? ` ${this._description}` : '', <ide> '', <ide> ...sourceInf...
1
Text
Text
use em-dashes instead of two minuses in guides
8dabfbebdbdbd3b18e0e869a01602898074ef921
<ide><path>guides/source/action_controller_overview.md <ide> All session stores use a cookie to store a unique ID for each session (you must <ide> <ide> For most stores this ID is used to look up the session data on the server, e.g. in a database table. There is one exception, and that is the default and recommended s...
12
PHP
PHP
add blank lines between test methods
f0789b5b4585076d55793e5563b948380030dfe4
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> public function testCompileSetAndGetThePath() <ide> $this->assertEquals('foo', $compiler->getPath()); <ide> } <ide> <add> <ide> public function testCompileWithPathSetBefore() <ide> { <ide> $compiler = new BladeCompiler($files = $this->getFiles(), __DIR__); <...
1
PHP
PHP
use correct facade
c6f04411f53dc6dc2bd7dcd0259da7226ff6be00
<ide><path>resources/views/welcome.blade.php <ide> @else <ide> <a href="{{ route('login') }}">Login</a> <ide> <del> @if (Request::has('register')) <add> @if (Route::has('register')) <ide> <a href="{{ r...
1
Javascript
Javascript
add test for v8 bug in toupper('ç')
e9b72916790b21daa6d1caac3a9540e8cdadad57
<ide><path>test/parallel/test-intl.js <ide> function haveLocale(loc) { <ide> return locs.indexOf(loc) !== -1; <ide> } <ide> <add>// Always run these. They should always pass, even if the locale <add>// param is ignored. <add>assert.strictEqual('Ç'.toLocaleLowerCase('el'), 'ç'); <add>assert.strictEqual('Ç'.toLocaleLo...
1
Ruby
Ruby
fix rubocop warnings
c45e36ffde1805ec7706fa28895b120909f69de7
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def doctor <ide> end <ide> <ide> out = checks.send(method) <del> unless out.nil? || out.empty? <del> if first_warning <del> $stderr.puts <<-EOS.undent <add> next if out.nil? || out.empty? <add> if first_warning <add> $std...
1
PHP
PHP
use immutable classes by default
ac231e256cf867289cac4c971d142b0d8e3042a8
<ide><path>src/Database/Type/DateTimeType.php <ide> public function __construct($name = null) <ide> { <ide> $this->_name = $name; <ide> <del> $this->useMutable(); <add> $this->useImmutable(); <ide> } <ide> <ide> /** <ide><path>tests/TestCase/Database/QueryTest.php <ide> use Cake\Data...
5
Java
Java
delete unused imports in spring-web
76aa7b1cd96124762750bde93802bb477524a3b6
<ide><path>spring-web/src/main/java/org/springframework/http/codec/HttpMessageReader.java <ide> <ide> import java.util.List; <ide> <del>import org.reactivestreams.Publisher; <ide> import reactor.core.publisher.Flux; <ide> import reactor.core.publisher.Mono; <ide> <ide> import org.springframework.core.ResolvableType;...
4
Go
Go
fix filepath.walk misusage in pkg/directory
cd53ec524410020db312089f2623b1a50f30121e
<ide><path>pkg/directory/directory_test.go <ide> func TestMoveToSubdir(t *testing.T) { <ide> t.Fatalf("Results after migration do not equal list of files: expected: %v, got: %v", filesList, results) <ide> } <ide> } <add> <add>// Test a non-existing directory <add>func TestSizeNonExistingDirectory(t *testing.T) { <ad...
3
Go
Go
remove checks for deprecated flags
b38c71bfe06ddb663aa4919ff9c496c395311985
<ide><path>integration-cli/docker_cli_search_test.go <ide> func (s *DockerSuite) TestSearchCmdOptions(c *check.C) { <ide> assert.Assert(c, strings.Count(outSearchCmdStars, "\n") <= strings.Count(outSearchCmd, "\n"), "Number of images with 10+ stars should be less than that of all images:\noutSearchCmdStars: %s\noutSea...
1
Javascript
Javascript
don’t error when returning an empty fragment
d480782c4162431d06c077ebf8fdf6b8ba7896ef
<ide><path>packages/react-dom/src/__tests__/ReactDOMFiber-test.js <ide> describe('ReactDOMFiber', () => { <ide> expect(firstNode.tagName).toBe('DIV'); <ide> }); <ide> <add> it('renders an empty fragment', () => { <add> const Div = () => <div />; <add> const EmptyFragment = () => <React.Fragment />; <add> ...
2
Text
Text
update changelog [ci skip]
7905f2131547d3e3ab6eb97e4cb96411483f3c16
<ide><path>CHANGELOG.md <ide> - [#17846](https://github.com/emberjs/ember.js/pull/17846) [BUGFIX] Fix issues with template-only components causing errors in subsequent updates. <ide> - [#17870](https://github.com/emberjs/ember.js/pull/17870) / [#17871](https://github.com/emberjs/ember.js/pull/17871) [BUGFIX] Fix issue ...
1
Text
Text
add a bunch of redirects
d885894c6efa6c3eaca5905ddf95457044fdd570
<ide><path>docs/docs/addons-animation.md <ide> layout: docs <ide> category: Add-Ons <ide> prev: addons.html <ide> next: create-fragment.html <add>redirect_from: <add> - "docs/animation-ja-JP.html" <add> - "docs/animation-ko-KR.html" <add> - "docs/animation-zh-CN.html" <ide> --- <ide> <ide> The [`ReactTransitionGrou...
14
Ruby
Ruby
handle unparsed arguments
40432d86f94c52fb7ee5249fbce34c20e18b15ec
<ide><path>Library/Homebrew/cmd/uninstall.rb <ide> def initialize(requireds, dependents) <ide> protected <ide> <ide> def sample_command <del> "brew uninstall --ignore-dependencies #{Homebrew.args.named.join(" ")}" <add> "brew uninstall --ignore-dependencies #{Array(Homebrew.args.named).join(" ")}" <i...
1
Javascript
Javascript
add test for zlib.create*raw()
f6e33ef8bcfd0ccb4c7e95a1ba249f0c8d79ece5
<ide><path>test/parallel/test-zlib-create-raw.js <add>'use strict'; <add> <add>require('../common'); <add>const assert = require('assert'); <add>const zlib = require('zlib'); <add> <add>{ <add> const inflateRaw = zlib.createInflateRaw(); <add> assert(inflateRaw instanceof zlib.InflateRaw); <add>} <add> <add>{ <add> ...
1
Python
Python
adapt onapp tests to the libcloud test framework
b079a012ef7c1908969a3c16e9cc6c7bac53562a
<ide><path>libcloud/compute/drivers/onapp.py <ide> def destroy_node(self, <ide> identifier=node.id) <ide> <ide> self.connection.request(action, params=server_params, method="DELETE") <add> return True <ide> <ide> def list_nodes(self): <ide> """ <ide><path>libcloud/test/compute/t...
2
Text
Text
add example of self-reference in scoped packages
fe4d562dd95fb43961e43ec9b3799660b48e149e
<ide><path>doc/api/packages.md <ide> and in a CommonJS one. For example, this code will also work: <ide> const { something } = require('a-package/foo'); // Loads from ./foo.js. <ide> ``` <ide> <add>Finally, self-referencing also works with scoped packages. For example, this <add>code will also work: <add> <add>```json...
1
Javascript
Javascript
add keystream tests
3a25949b2c0f2e50e348c601185dc2eee043a423
<ide><path>packages/ember-views/tests/streams/key_stream_test.js <add>import { set } from "ember-metal/property_set"; <add>import Stream from "ember-metal/streams/stream"; <add>import KeyStream from "ember-views/streams/key_stream"; <add> <add>var source, object, count; <add> <add>function incrementCount() { <add> cou...
1
Mixed
Ruby
force arel.sql for returning and on_duplicate
4bef82217cd6a63cc10fe7beb16298e935babb5f
<ide><path>activerecord/CHANGELOG.md <del>* Add `update_sql` option to `#upsert_all` to make it possible to use raw SQL to update columns on conflict: <add>* Allow passing SQL as `on_duplicate` value to `#upsert_all` to make it possible to use raw SQL to update columns on conflict: <ide> <ide> ```ruby <ide> ...
4
Javascript
Javascript
add support for unbind()
6b7ddf414de82720bbf547b2fa661bf5fcec7bb6
<ide><path>src/jqLite.js <ide> * - [clone()](http://api.jquery.com/clone/) <ide> * - [css()](http://api.jquery.com/css/) <ide> * - [data()](http://api.jquery.com/data/) <add> * - [eq()](http://api.jquery.com/eq/) <ide> * - [hasClass()](http://api.jquery.com/hasClass/) <ide> * - [parent()](http://api.jquery.com/par...
2
Python
Python
fix crash when calling savetxt on a padded array
efdd3f50bd5a1e58b815ad8f82d896f4e72ae2b5
<ide><path>numpy/lib/npyio.py <ide> def first_write(self, v): <ide> <ide> # Complex dtype -- each field indicates a separate column <ide> else: <del> ncol = len(X.dtype.descr) <add> ncol = len(X.dtype.names) <ide> else: <ide> ncol = X.shape[1] <...
2
Javascript
Javascript
fix typo `handle._reading` => `handle.reading`
755461219d6b60361d1b725833e5356e681d2ca3
<ide><path>lib/_tls_wrap.js <ide> TLSSocket.prototype._wrapHandle = function(handle) { <ide> tls.createSecureContext(); <ide> res = tls_wrap.wrap(handle, context.context, options.isServer); <ide> res._parent = handle; <del> res._reading = handle._reading; <add> res.reading = handle.reading; <ide> ...
1
PHP
PHP
add getname() to view
e828eb16e43b31750b57e009ce8f14bba8de22b7
<ide><path>src/View/View.php <ide> public function __set($name, $value) <ide> 'response' => 'setResponse', <ide> 'subDir' => 'setSubDir', <ide> 'plugin' => 'setPlugin', <del> 'name' => 'setName', <ide> 'elementCache' => 'setElementCache', <ide> ]; <ide>...
2
Ruby
Ruby
move default middleware stack to middlewares.rb
0b22a96b7aa39cb7244d7cee23f3d03b6117b447
<ide><path>actionpack/lib/action_controller/dispatcher.rb <ide> def to_prepare(identifier = nil, &block) <ide> <ide> cattr_accessor :middleware <ide> self.middleware = MiddlewareStack.new do |middleware| <del> middleware.use "ActionController::Lock", :if => lambda { <del> !ActionController::Base.al...
2
PHP
PHP
fix typo in doc block
c11c5c57191e870a07bf1587e313ec7c29d99a0b
<ide><path>lib/Cake/Model/Model.php <ide> class Model extends Object { <ide> * public $validate = array( <ide> * 'login' => array( <ide> * array( <del> * 'role' => 'alphaNumeric', <add> * 'rule' => 'alphaNumeric', <ide> * 'message' => 'Only alphabets and numbers allow...
1
Text
Text
update changelog for 2.11.0
a6f3d6d31b21f116daa32c80a3235d83572a6506
<ide><path>CHANGELOG.md <ide> Changelog <ide> ========= <ide> <add>### 2.11.0 [See full changelog](https://gist.github.com/ichernev/6594bc29719dde6b2f66) <add> <add>* [#2624](https://github.com/moment/moment/pull/2624) Proper handling of invalid moments <add>* [#2634](https://github.com/moment/moment/pull/2634) Fix st...
1
Ruby
Ruby
fix regression on `assert_redirected_to`
7ec665303d125c945f7d59affb904f974143a087
<ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb <ide> def normalize_argument_to_redirection(fragment) <ide> if Regexp === fragment <ide> fragment <ide> else <del> @controller._compute_redirect_to_location(fragment) <add> handle = @controller...
2
Javascript
Javascript
hide youtube suggestions
7ed1d520017a2c92a8b24cc1f021d364d85f0824
<ide><path>client/src/templates/Challenges/video/Show.js <ide> export class Project extends Component { <ide> } <ide> onReady={this.videoIsReady} <ide> opts={{ <del> rel: 0, <add> playerVars: { <add> ...
1
PHP
PHP
add if method
71dfe0f0824412f106b80df8dedd7708e66dfb00
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> <ide> namespace Illuminate\View\Compilers; <ide> <add>use Closure; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> <ide> public function getExtensions() <ide> return $this->extensions; <ide> } <ide> <add> /** <...
2
Text
Text
add link to angular 2 repo
06e96407a916255f3ff6b1505dcdbd77e1c1c210
<ide><path>README.md <ide> piece of cake. Best of all? It makes development fun! <ide> * Contribution guidelines: [CONTRIBUTING.md](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md) <ide> * Dashboard: https://dashboard.angularjs.org <ide> <add>##### Looking for Angular 2 (beta)? Go here: https://githu...
1
Ruby
Ruby
pick better names and add a little documentation
3a0d08163a76427611df0c109a5159daaf5b51bf
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def initialize(connection, logger, connection_parameters, config) <ide> <ide> initialize_type_map <ide> @local_tz = execute('SHOW TIME ZONE', 'SCHEMA').first["TimeZone"] <del> self.use_returning = true <add...
2
PHP
PHP
allow lenient log stacks
8999f5eebadee2433c8ad1ef8837a90de111fcc9
<ide><path>src/Illuminate/Log/LogManager.php <ide> use Monolog\Handler\HandlerInterface; <ide> use Monolog\Handler\RotatingFileHandler; <ide> use Monolog\Handler\SlackWebhookHandler; <add>use Monolog\Handler\WhatFailureGroupHandler; <ide> <ide> class LogManager implements LoggerInterface <ide> { <ide> protected functi...
1
Text
Text
update readme to remove incorrect image link
e00931fbed334dfc043f264ee8312fa11bd16178
<ide><path>README.md <ide> See [CONTRIBUTING.md](https://github.com/emberjs/ember.js/blob/master/CONTRIBUTI <ide> <ide> --- <ide> <del>Cross-browser testing provided by: <del> <del> <del><a href="http://browserstack.com"><img height="70" src="https://p3.zdusercontent.com/attachment/1015988/PWfFdN71Aung2evRkIVQuKJpE?t...
1
Go
Go
add show error when attach to a paused container
de1d611990a80cf4a38ec501469c08c1aeee2d60
<ide><path>api/client/attach.go <ide> func (cli *DockerCli) CmdAttach(args ...string) error { <ide> return fmt.Errorf("You cannot attach to a stopped container, start it first") <ide> } <ide> <add> if c.State.Paused { <add> return fmt.Errorf("You cannot attach to a paused container, unpause it first") <add> } <add...
5
Python
Python
add rollaxis command and fix cross function
972ae975594790108be7bd3661d0d0be007e048c
<ide><path>numpy/core/numeric.py <ide> 'asarray', 'asanyarray', 'ascontiguousarray', 'asfortranarray', <ide> 'isfortran', 'empty_like', 'zeros_like', <ide> 'correlate', 'convolve', 'inner', 'dot', 'outer', 'vdot', <del> 'alterdot', 'restoredot', 'cross', 'tensordot', <add> ...
1
Javascript
Javascript
extract version parsing from release script
cc1e3abb6eb0b48b31ef8aea5ef2880a8bc1e456
<ide><path>scripts/__tests__/version-utils-test.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <add> */ <add> <add>const {parseVer...
3
Javascript
Javascript
append root to atom home value
8fa99a33beaee4c5776f301e227474c7fec60b41
<ide><path>src/compile-cache.js <ide> var cacheDirectory = null <ide> exports.setAtomHomeDirectory = function (atomHome) { <ide> var cacheDir = path.join(atomHome, 'compile-cache') <ide> if (process.env.USER === 'root' && process.env.SUDO_USER && process.env.SUDO_USER !== process.env.USER) { <del> cacheDir = pat...
1
Python
Python
fix initial variable in evaluator.
3b83a1b1ac69d3bb3c2ac55e61878df1fd392768
<ide><path>examples/deep_dream.py <ide> def eval_loss_and_grads(x): <ide> class Evaluator(object): <ide> def __init__(self): <ide> self.loss_value = None <del> self.grads_values = None <add> self.grad_values = None <ide> <ide> def loss(self, x): <ide> assert self.loss_value is Non...
1
Text
Text
fix documentation of the release process
1e97a71a829e698ddac0a5e15fbdec97d35ed2bc
<ide><path>scripts/release/README.md <del># React Release Script <add># React Release Scripts <ide> <del>At a high-level, the release script runs in 2 passes: **build** and **publish**. <del>1. The **build** script does the heavy lifting (eg checking CI, running automated tests, building Rollup bundles) and then print...
1
Python
Python
remove unused export
33e332e67ce7163982806dc5b45a97c6de697486
<ide><path>spacy/lang/en/__init__.py <ide> class English(Language): <ide> Defaults = EnglishDefaults <ide> <ide> <del>__all__ = ['English', 'EnglishDefaults'] <add>__all__ = ['English']
1
Text
Text
add v3.26.0-beta.5 to changelog
e25282f6e854a1c9e4fb318b7aa162542b964804
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.26.0-beta.5 (March 16, 2021) <add> <add>- [#19405](https://github.com/emberjs/ember.js/pull/19405) [BUGFIX] Avoid instantiation errors when `app/router.js` injects the router service. <add> <ide> ### v3.26.0-beta.4 (March 08, 2021) <ide> <ide> - [#1943...
1
PHP
PHP
fix more failing tests
1a6a5f2d268ecaacd662d04b41b4682eef99b002
<ide><path>lib/Cake/Test/TestCase/Console/ConsoleErrorHandlerTest.php <ide> class ConsoleErrorHandlerTest extends TestCase { <ide> */ <ide> public function setUp() { <ide> parent::setUp(); <del> $this->Error = $this->getMock('Cake\Console\ConsoleErrorHandler', array('_stop')); <del> ConsoleErrorHandler::$stderr =...
8
Mixed
Python
add file option to generateschema
f81ca786427db40b648b5bcc0e67044163215457
<ide><path>docs/api-guide/schemas.md <ide> into the commonly used YAML-based OpenAPI format. <ide> If your schema is static, you can use the `generateschema` management command: <ide> <ide> ```bash <del>./manage.py generateschema > openapi-schema.yml <add>./manage.py generateschema --file openapi-schema.yml <ide> ``` ...
3
Javascript
Javascript
react native fixups
2bbdbc704d93356343cf10af3983c12c8ee0b8e1
<ide><path>Examples/UIExplorer/ExampleTypes.js <ide> <ide> export type Example = { <ide> title: string, <add> /* $FlowFixMe(>=0.16.0) */ <ide> render: () => ?ReactElement<any, any, any>, <ide> description?: string, <ide> platform?: string; <ide><path>Libraries/PushNotificationIOS/PushNotificationIOS.js <ide> ...
2
Python
Python
fix backfill crash on task retry or reschedule
1ec63123c4310f2343dcd7c349f90063c401c0d9
<ide><path>airflow/jobs/backfill_job.py <ide> def _update_counters(self, ti_status, session=None): <ide> <ide> for ti in refreshed_tis: <ide> # Here we remake the key by subtracting 1 to match in memory information <del> key = ti.key.reduced <add> reduced_key = ti.key.reduced ...
3
Ruby
Ruby
fix rubocop warnings
ae43b79ca2b4e9ad595fbc70854423e214206102
<ide><path>Library/Homebrew/cmd/missing.rb <ide> def missing <ide> <ide> Diagnostic.missing_deps(ff) do |name, missing| <ide> print "#{name}: " if ff.size > 1 <del> puts "#{missing * " "}" <add> puts (missing * " ").to_s <ide> end <ide> end <ide> end
1
Javascript
Javascript
make reacttransitiongroup work with a null child
c75899f27753c5f67cdbd7b73606fe97bda8ded9
<ide><path>src/addons/transitions/ReactTransitionGroup.js <ide> var ReactTransitionGroup = React.createClass({ <ide> var children = {}; <ide> var childMapping = ReactTransitionKeySet.getChildMapping(sourceChildren); <ide> <add> var prevKeys = this._transitionGroupCurrentKeys; <ide> var currentKeys = Rea...
2
PHP
PHP
adjust all tests to use assertmpttvalues
c461b22559cef212136666018ab871e00d52a8eb
<ide><path>tests/TestCase/ORM/Behavior/TreeBehaviorTest.php <ide> public function testAssertMpttValues() <ide> '15:16 - 8:Link 8' <ide> ]; <ide> $this->assertMpttValues($expected, $table); <add> <add> $table->removeBehavior('Tree'); <add> $table->addBehavior('Tree', ['scope' =...
1
Javascript
Javascript
add dispose method to all controls
8bfe403c00b09093bcf7082888696e371671a789
<ide><path>examples/js/controls/DeviceOrientationControls.js <ide> THREE.DeviceOrientationControls = function ( object ) { <ide> <ide> }; <ide> <add> this.dispose = function () { <add> <add> this.disconnect(); <add> <add> }; <add> <ide> this.connect(); <ide> <ide> }; <ide><path>examples/js/controls/DragControls.j...
11
Ruby
Ruby
run `rails new` using specified prerelease version
218412f6a3b17a13fb59c4633736087ecbcd44ae
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def self.add_shared_options_for(name) <ide> desc: "Show this help message and quit" <ide> end <ide> <del> def initialize(*) <add> def initialize(positional_argv, option_argv, *) <add> @argv = [*...
7
Go
Go
force delete sandbox during sandboxcleanup
a7c52918fd25735a7303556e7a606159fc53228a
<ide><path>libnetwork/controller.go <ide> func (c *controller) NewNetwork(networkType, name string, options ...NetworkOpti <ide> <ide> // Make sure we have a driver available for this network type <ide> // before we allocate anything. <del> if _, err := network.driver(); err != nil { <add> if _, err := network.drive...
7
Ruby
Ruby
duplicate missingenvironmentvariables exception
57d7d4c9dd13fe5c4c17ac29ff7b3b093b03eadf
<ide><path>Library/Homebrew/brew.rb <ide> raise "Homebrew must be run under Ruby 2.3! You're running #{RUBY_VERSION}." <ide> end <ide> <add># Also define here so we can rescue regardless of location. <add>class MissingEnvironmentVariables < RuntimeError; end <add> <ide> begin <ide> require_relative "global" <ide> ...
1
Text
Text
update chart type documentation
33df3a6d73b97a342221ab239aad71bc75f189cc
<ide><path>docs/charts/bar.md <ide> module.exports = { <ide> }; <ide> ``` <ide> <del>## Example Usage <add>## Dataset Properties <ide> <del>```javascript <del>var myBarChart = new Chart(ctx, { <del> type: 'bar', <del> data: data, <del> options: options <del>}); <del>``` <add>Namespaces: <ide> <del>## Datase...
7
PHP
PHP
fix cs errors
9cfd8c707025fca1c267513315b008bd6f30f587
<ide><path>tests/TestCase/Controller/ControllerTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Controller; <ide> <del>use Cake\Controller\Component; <ide> use Cake\Controller\Controller; <ide> use Cake\Core\Configure; <ide> use Cake\Event\EventInterface; <ide><path>tests/TestCase/Error/ExceptionRendererTest.php ...
3
Javascript
Javascript
allow the disabling of navigation gestures
0cf95056303b8690077ae8aa842f4d810bf3cbc9
<ide><path>Examples/UIExplorer/js/NavigationExperimental/NavigationCardStack-NoGesture-example.js <add>/** <add> * Copyright (c) 2013-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 t...
3
Javascript
Javascript
replace basename helper by node's one
26d33424bb916db37c01df94b25d3acdbf0d52da
<ide><path>lib/SourceMapDevToolPlugin.js <ide> const createHash = require("./util/createHash"); <ide> const validateOptions = require("schema-utils"); <ide> const schema = require("../schemas/plugins/SourceMapDevToolPlugin.json"); <ide> <del>const basename = name => { <del> if (!name.includes("/")) return name; <del> ...
1
Javascript
Javascript
add getdescendants to object3d
8a960ad7fda5c87af940bb31b9c571c3cab92be0
<ide><path>src/core/Object3D.js <ide> THREE.Object3D.prototype = { <ide> return undefined; <ide> <ide> }, <add> <add> getDescendants: function (returnValue) { <add> var children = this.children,l = children.length,child; <add> <add> if (returnValue === undefined){ <add> returnValue = []; <add> } <add> <a...
1
Ruby
Ruby
remove appcast checkpoints
c68526ac09261f29bf261b530a5d449544380ecb
<ide><path>Library/Homebrew/cask/lib/hbc/audit.rb <ide> def run! <ide> check_version_and_checksum <ide> check_version <ide> check_sha256 <del> check_appcast <add> check_appcast_checkpoint <ide> check_url <ide> check_generic_artifacts <ide> check_token_conflicts <ide> def ch...
3
PHP
PHP
apply special wrapping logic to notifiable models
e128a9a579eba3a06e9e73040a568b447c091fee
<ide><path>src/Illuminate/Notifications/SendQueuedNotifications.php <ide> <ide> use Illuminate\Bus\Queueable; <ide> use Illuminate\Contracts\Queue\ShouldQueue; <add>use Illuminate\Database\Eloquent\Collection as EloquentCollection; <add>use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Queue\InteractsWithQu...
2
PHP
PHP
remove the "unauthenticated" method
6ed8b3a3e9a454a0959ea8ecd70a166cc3dbf357
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> protected function convertValidationExceptionToResponse(ValidationException $e, <ide> return redirect()->back()->withInput($request->input())->withErrors($errors); <ide> } <ide> <del> /** <del> * Convert an authentication exception in...
1
Ruby
Ruby
add databaseconfig struct and associated methods
1756094b22bf81f15ffdfdb5208075b58c45296f
<ide><path>activerecord/lib/active_record/core.rb <ide> def self.configurations <ide> @@configurations <ide> end <ide> <add> DatabaseConfig = Struct.new(:env_name, :spec_name, :config) # :nodoc <add> <add> # Given an env, spec and config creates DatabaseConfig structs with <add> # each att...
1
Javascript
Javascript
inspect unserializable objects
afd29c9502449121aacba37b253dc39e159aae03
<ide><path>lib/v8.js <ide> const { <ide> } = internalBinding('serdes'); <ide> const assert = require('internal/assert'); <ide> const { copy } = internalBinding('buffer'); <add>const { inspect } = require('internal/util/inspect'); <ide> const { FastBuffer } = require('internal/buffer'); <ide> const { getValidatedPath } ...
2
Text
Text
combine rendered note section
f444937bd888cd8d5020f17bc3a592c9f5fec5b5
<ide><path>docs/docs/accessibility.md <ide> the cancel button (preventing the keyboard user from accidentally activating the <ide> initially triggered the modal. <ide> <ide> >Note: <del> <add>> <ide> >While this is a very important accessibility feature, it is also a technique that should be used judiciously. Use it t...
1
Javascript
Javascript
move custom style
b870cbad0f38235d1bc19efd8f331f85aec34e76
<ide><path>src/util.js <ide> var Util = (function UtilClosure() { <ide> return Util; <ide> })(); <ide> <del>// optimised CSS custom property getter/setter <del>var CustomStyle = (function CustomStyleClosure() { <del> <del> // As noted on: http://www.zachstronaut.com/posts/2009/02/17/ <del> // animate-...
2
Javascript
Javascript
add type definition for scope#$watchcollection
8f329ffb829410e1fd8f86a766929134e736e3e5
<ide><path>closure/angular.js <ide> angular.Module.requires; <ide> * $parent: angular.Scope, <ide> * $root: angular.Scope, <ide> * $watch: function( <del> * (string|Function), (string|Function)=, boolean=):function() <add> * (string|Function), (string|Function)=, boolean=):function(), <add> * $wa...
1
Python
Python
remove unused imports and lint
eef72ed6e4fb0523c2e936e546c6c5b2ea7cfc91
<ide><path>official/transformer/utils/schedule.py <ide> from __future__ import print_function <ide> <ide> import math <del>import time <ide> <ide> import tensorflow as tf <ide> <del>from official.transformer.utils import dataset <del> <ide> <ide> _TRAIN, _EVAL = tf.estimator.ModeKeys.TRAIN, tf.estimator.ModeKeys.EV...
2
Python
Python
remove default value
99842387cbe9a5ba8d38e292d7c3c3ff0df0db51
<ide><path>spacy/language.py <ide> def from_config( <ide> return nlp <ide> <ide> def replace_listeners( <del> self, <del> tok2vec_name: str, <del> pipe_name: str, <del> listeners: Iterable[str] = SimpleFrozenList(), <add> self, tok2vec_name: str, pipe_name: str, listeners...
1
Ruby
Ruby
add support for generating click shell completions
5c7d53476eed5ad93287292e3b7c588d21dbb31d
<ide><path>Library/Homebrew/formula.rb <ide> def extract_macho_slice_from(file, arch = Hardware::CPU.arch) <ide> # @param base_name [String] the base name of the generated completion script. Defaults to the formula name. <ide> # @param shells [Array<Symbol>] the shells to generate completion scripts for. Defaults t...
1
PHP
PHP
remove unused app variables from the tests
ff424f62a1d855c5a4b7c9a5ffa0f9a17b25c551
<ide><path>tests/Foundation/ProviderRepositoryTest.php <ide> public function testLoadManifestReturnsParsedJSON() <ide> $repo = new Illuminate\Foundation\ProviderRepository($files = m::mock('Illuminate\Filesystem\Filesystem'), __DIR__); <ide> $files->shouldReceive('exists')->once()->with(__DIR__.'/services.json')->a...
1
Javascript
Javascript
ignore errors related to fetching
4cbb64521a9a3fbbef9cf741314060ef71f07357
<ide><path>packager/src/lib/GlobalTransformCache.js <ide> class TransformProfileSet { <ide> } <ide> } <ide> <add>class FetchFailedError extends Error { <add> constructor(message) { <add> super(); <add> this.message = message; <add> } <add>} <add> <ide> /** <ide> * For some reason the result stored by the se...
1
Javascript
Javascript
remove reactproptypelocationnames module
bef723e47f09f1136d6a94e4db81fb1ca59cb359
<ide><path>src/isomorphic/classic/__tests__/ReactContextValidator-test.js <ide> describe('ReactContextValidator', () => { <ide> ReactTestUtils.renderIntoDocument(<Component testContext={{bar: 123}} />); <ide> expectDev(console.error.calls.count()).toBe(1); <ide> expectDev(normalizeCodeLocInfo(console.error....
9
Python
Python
update version of this trunk
9821ee7d64ff4bc5ded66fb89dfe02311f29602f
<ide><path>numpy/version.py <del>version='1.0.2' <add>version='1.0.3' <ide> release=False <ide> <ide> if not release:
1
Ruby
Ruby
add special token comparison examples
144a454e3487a75c68759eb5035a8c8ac41082f0
<ide><path>Library/Homebrew/test/version_spec.rb <ide> specify "#to_s" do <ide> expect(described_class.new("foo").to_s).to eq("foo") <ide> end <add> <add> it "can be compared against nil" do <add> expect(described_class.create("2")).to be > nil <add> expect(described_class.create("p194")).to be > nil <ad...
1
Javascript
Javascript
fix stdout=null when stdio=['pipe']
b48684c6f1958930741e2cf34a6a6d5cafa7f478
<ide><path>lib/child_process.js <ide> ChildProcess.prototype.spawn = function(options) { <ide> } <ide> <ide> // At least 3 stdio will be created <del> if (stdio.length < 3) { <del> stdio = stdio.concat(new Array(3 - stdio.length)); <del> } <add> // Don't concat() a new Array() because it would be sparse, and...
2
Ruby
Ruby
handle recommended/optional options better
34930586c342dcf10e36ab3eb0c5388dff708e5f
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_deps <ide> end <ide> <ide> dep.options.reject do |opt| <del> # TODO -- fix for :recommended, should still allow --with-xyz <del> dep_f.build.has_option?(opt.name) <add> next true if dep_f.build.has_option?(opt.name) <add> ...
1
Javascript
Javascript
add an edit button on the docs pages
8fbee6c42b6517ab1b31ca20deb04675776204d3
<ide><path>website/docusaurus.config.js <ide> module.exports = { <ide> docs: { <ide> path: '../docs', <ide> routeBasePath: '/', <del> sidebarPath: require.resolve('./sidebars.js') <add> sidebarPath: require.resolve('./sidebars.js'), <add> editUrl: 'https://github.c...
1
Javascript
Javascript
fix serializing of buffers
7786a6a0ed8add7109d2dbf64a272c7630a25b91
<ide><path>lib/serialization/ObjectMiddleware.js <ide> class ObjectMiddleware extends SerializerMiddleware { <ide> result.push(ESCAPE, ref - currentPos); <ide> return; <ide> } <del> if (typeof item === "object" && item !== null) { <add> if (Buffer.isBuffer(item)) { <add> addReferenceable(item); <add> ...
1
Ruby
Ruby
add a test-case for gh
0a43bf3146f0796fe23da50fa5c40e28b1398139
<ide><path>railties/test/app_rails_loader_test.rb <ide> def expects_exec(exe) <ide> exe = "#{script_dir}/rails" <ide> <ide> test "is not in a Rails application if #{exe} is not found in the current or parent directories" do <del> File.stubs(:exist?).with('bin/rails').returns(false) <del> File.stubs(:...
1
Text
Text
add changelog entries for [ci skip]
5a212939c279e8c5a7dd49fd6766d8cb2fb220f8
<ide><path>actionmailer/CHANGELOG.md <add>* `ActionDispatch::IntegrationTest` includes `ActionMailer::TestHelper` module by default. <add> <add> *Ricardo Díaz* <add> <ide> * Add `perform_deliveries` to a payload of `deliver.action_mailer` notification. <ide> <ide> *Yoshiyuki Kinjo* <ide><path>activejob/CHAN...
2
Javascript
Javascript
add test case for source-map bug
2935d149a4277dfe470dc3ce29ee49a6f01ad318
<ide><path>test/configCases/source-map/sources-array-production/index.js <add>it("should include test.js in SourceMap", function() { <add> var fs = require("fs"); <add> var source = fs.readFileSync(__filename + ".map", "utf-8"); <add> var map = JSON.parse(source); <add> map.sources.should.containEql("webpack:///./test....
3
Python
Python
add validation every epoch
abe9e96afdc49131472fcf64cf626fa8815590ff
<ide><path>official/recommendation/ncf_keras_main.py <ide> def preprocess_train_input(features, labels): <ide> train_input_fn = producer.make_input_fn(is_training=True) <ide> train_input_dataset = train_input_fn(params).map( <ide> preprocess_train_input) <add> train_input_dataset = train_input_dataset.repeat...
1
Text
Text
fix description of n-api exception handlers
8dea6dc2fbd527fdf7deda9be2858ec24c24ac48
<ide><path>doc/api/n-api.md <ide> napi_status napi_get_and_clear_last_exception(napi_env env, <ide> <ide> Returns `napi_ok` if the API succeeded. <ide> <del>This API returns true if an exception is pending. <del> <ide> This API can be called even if there is a pending JavaScript exception. <ide> <ide> #### napi_is_e...
1
PHP
PHP
fix unit tests
e2c84468bdfd07efdefb8013e5b8ff314c2f2daf
<ide><path>tests/Pagination/PaginationBootstrapPresenterTest.php <ide> public function testGetPageRange() <ide> $presenter->setCurrentPage(1); <ide> $content = $presenter->getPageRange(1, 2); <ide> <del> $this->assertEquals('<li class="active"><a href="#">1</a></li><li><a href="http://foo.com?page=2">2</a></li>',...
1
Javascript
Javascript
add a better filename to the dynamic import chunk.
247dd98cf377f4c663b137632244a974cdc7c500
<ide><path>server/build/babel/plugins/handle-import.js <ide> export default () => ({ <ide> visitor: { <ide> CallExpression (path) { <ide> if (path.node.callee.type === TYPE_IMPORT) { <add> const moduleName = path.node.arguments[0].value <add> const name = `${moduleName.replace(/[^\w]/g, '-')}-...
1
PHP
PHP
fix requestaction() not working with middleware
d7d0e22ac639472912c99cf1ccbef445e2b1d0c4
<ide><path>src/Routing/RequestActionTrait.php <ide> use Cake\Network\Request; <ide> use Cake\Network\Response; <ide> use Cake\Network\Session; <add>use Cake\Routing\Filter\ControllerFactoryFilter; <add>use Cake\Routing\Filter\RoutingFilter; <ide> <ide> /** <ide> * Provides the requestAction() method for doing sub-req...
2
Javascript
Javascript
fix typo in server response example
09f8962df2131cad446b207a6ab0551c8acd31d0
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> newCard.name = "Mike Smith"; <ide> newCard.$save(); <ide> // POST: /user/123/card {number:'0123', name:'Mike Smith'} <del> // server returns: {id:789, number:'01234', name: 'Mike Smith'}; <add> // server re...
1
Java
Java
improve clienthttprequestfactory javadoc
09327181c4d07031e4ed8aa7a822c34075de935a
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/client/reactive/ClientHttpRequestFactory.java <ide> <ide> import java.net.URI; <ide> <add>import org.reactivestreams.Publisher; <add> <ide> import org.springframework.http.HttpHeaders; <ide> import org.springframework.http.HttpMethod; <ide> <ide> ...
1
Ruby
Ruby
add missing `macos.release` deprecation
6714acc09809b3548960ee1d29d180e036348391
<ide><path>Library/Homebrew/compat.rb <ide> require "compat/extend/string" <ide> require "compat/gpg" <ide> require "compat/dependable" <add>require "compat/os/mac" <ide><path>Library/Homebrew/compat/os/mac.rb <add>module OS <add> module Mac <add> class << self <add> def release <add> odeprecated "MacOS...
2
Javascript
Javascript
add backwards compatibility to three.audio's .load
bf5d23f461f0ecc5ab18a78469877998085ffa7b
<ide><path>src/audio/Audio.js <ide> THREE.Audio.prototype.getOutput = function() { <ide> <ide> }; <ide> <del>THREE.Audio.prototype.load = function() { <add>THREE.Audio.prototype.load = function( url ) { <ide> <ide> console.warn( 'THREE.Audio: .load has been deprecated. Please use THREE.AudioLoader.' ); <ide> <add>...
1
Ruby
Ruby
add missing tests for memory store of cache
6b0792266b025e57f666b01cc206e78f31c01df4
<ide><path>activesupport/test/caching_test.rb <ide> def with_env(kv) <ide> end <ide> <ide> class CacheStoreSettingTest < ActiveSupport::TestCase <add> def test_memory_store_gets_created_if_no_arguments_passed_to_lookup_store_method <add> store = ActiveSupport::Cache.lookup_store <add> assert_kind_of(ActiveSuppo...
1
Text
Text
add missing punctuation marks and url name
f3ed69374dc8b181bbde497a824b165e31f13457
<ide><path>docs/topics/api-clients.md <ide> First, install the API documentation views. These will include the schema resour <ide> <ide> urlpatterns = [ <ide> ... <del> url(r'^docs/', include_docs_urls(title='My API service')) <add> url(r'^docs/', include_docs_urls(title='My API service'), na...
1
Ruby
Ruby
extract common decompression code to a method
7541f1316422d89b96af763a4c9cce68aff1f4cd
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> tarball_path <ide> end <ide> <add> # gunzip and bunzip2 write the output file in the same directory as the input <add> # file regardless of the current working directory, so we need to write it to <add> # the correct location ourselves. <a...
1
Javascript
Javascript
fix the versions script again
9bfbb16e235767aeb8f50855b38626159fa35278
<ide><path>lib/versions/version-info.js <ide> var getTaggedVersion = function() { <ide> <ide> if ( version && semver.satisfies(version, currentPackage.branchVersion)) { <ide> version.codeName = getCodeName(tag); <del> version.full = version.version + '+' + version.build; <add> version.full = versio...
1
Java
Java
improve charset management in xpathresultmatchers
f9881511637c52836c8a1743fa586113de5cdfd5
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java <ide> public boolean isWriterAccessAllowed() { <ide> return this.writerAccessAllowed; <ide> } <ide> <add> /** <add> * Return whether the character encoding has been set. <add> * <p>If {@code false}, {@link #getCharacter...
5
Text
Text
update some more features of arraylist
03c2ca04f27eb5df66a95b5a2e8759f71a49e026
<ide><path>guide/english/java/arraylist/index.md <ide> Since ArrayList implements *List*, an ArrayList can be created using the followi <ide> <ide> An ArrayList is dynamic, meaning it will grow in size if required and similarly shrink in size if elements are deleted from it. This is what makes it better to use tha...
1
Ruby
Ruby
use utils.popen_read instead of backticks
144453368ed42c13e24143dd4e234795eb67f3cb
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def formula formula_name <ide> end <ide> <ide> test "brew", "uses", canonical_formula_name <del> dependencies = `brew deps #{canonical_formula_name}`.split("\n") <del> dependencies -= `brew list`.split("\n") <add> dependencies = Utils.popen_r...
2
Javascript
Javascript
handle content from loaders
eaaccf9d6c17db39830ab65d73213b03a4861a18
<ide><path>lib/asset/AssetGenerator.js <ide> const encodeDataUri = (encoding, source) => { <ide> return encodedContent; <ide> }; <ide> <add>const decodeDataUriContent = (encoding, content) => { <add> const isBase64 = encoding === "base64"; <add> return isBase64 <add> ? Buffer.from(content, "base64") <add> : Buffer....
1
PHP
PHP
remove dead code
d905965e0086f3220776e81614dfaf2049e516b6
<ide><path>src/Database/Expression/Comparison.php <ide> public function __construct($field, $value, $type, $conjunction) { <ide> if (is_string($type)) { <ide> $this->_type = $type; <ide> } <del> <del> if (is_string($field) && isset($types[$this->_field])) { <del> $this->_type = current($types); <del> } <ide>...
1
Python
Python
use k.cast for compatibility
c6f68f8311c8918276d0a4dbb655c68726ad8da1
<ide><path>keras/layers/recurrent.py <ide> def get_output(self, train=False): <ide> mask = self.get_output_mask(train) <ide> if mask: <ide> # apply mask <del> X *= K.expand_dims(mask).astype(X.dtype) <add> X *= K.cast(K.expand_dims(mask), X.dtype) <ide> mask...
1
Text
Text
remove parentheses [ci skip]
27e5c76a77cbca90836ad4fc3a861d9c47cf8588
<ide><path>guides/source/autoloading_and_reloading_constants.md <ide> How files are autoloaded depends on `eager_load` and `cache_classes` config sett <ide> What is described above are the defaults with a newly generated Rails app. There are multiple ways this can be configured differently (see [Configuring Rails Appli...
1