content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add missing documentation for static ip options | ee14232647085ce2faf7167959728977d36e5503 | <ide><path>docs/reference/api/docker_remote_api_v1.22.md
<ide> Content-Type: application/json
<ide>
<ide> {
<ide> "Container":"3613f73ba0e4",
<del> "endpoint_config": {
<add> "EndpointConfig": {
<ide> "test_nw": {
<ide> "IPv4Address":"172.24.56.89",
<ide> "IPv6Address":"2001:db8::5689"
<ide><pa... | 8 |
Python | Python | set version to v2.3.3 | ce18fc6588ff6f1a45e0e5aed4f1e23e2efa1bcb | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.3.3.dev0"
<add>__version__ = "2.3.3"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod... | 1 |
PHP | PHP | remove unused tests constant | e5cbf95bb225587db39296b3493903dc20f8beb6 | <ide><path>tests/bootstrap.php
<ide> // Point app constants to the test app.
<ide> define('APP', TEST_APP . 'TestApp' . DS);
<ide> define('WWW_ROOT', TEST_APP . 'webroot' . DS);
<del>define('TESTS', TEST_APP . 'tests' . DS);
<ide> define('CONFIG', TEST_APP . 'config' . DS);
<ide>
<ide> //@codingStandardsIgnoreStart | 1 |
Javascript | Javascript | initialize update queue object on mount | 7bf40e1cfdb780788700a41bf30163fdb8d105a3 | <ide><path>packages/react-noop-renderer/src/createReactNoop.js
<ide> function createReactNoop(reconciler: Function, useMutation: boolean) {
<ide>
<ide> function logUpdateQueue(updateQueue: UpdateQueue<mixed>, depth) {
<ide> log(' '.repeat(depth + 1) + 'QUEUED UPDATES');
<del> const firstUpdate = ... | 8 |
Ruby | Ruby | remove deprecate #update_all usage | 2f0c8c52e66f1a2a3d1c00efc207f227124e96c2 | <ide><path>activerecord/lib/active_record/counter_cache.rb
<ide> def update_counters(id, counters)
<ide> "#{quoted_column} = COALESCE(#{quoted_column}, 0) #{operator} #{value.abs}"
<ide> end
<ide>
<del> update_all(updates.join(', '), primary_key => id)
<add> where(primary_key => id).update_all ... | 4 |
Javascript | Javascript | add test case of passthrough | 63e889a256de8576875a8367923d87c704332980 | <ide><path>test/parallel/test-stream2-transform.js
<ide> test('object passthrough', function(t) {
<ide> t.end();
<ide> });
<ide>
<add>test('passthrough constructor', function(t) {
<add> const pt = PassThrough();
<add>
<add> assert(pt instanceof PassThrough);
<add>
<add> t.end();
<add>});
<add>
<ide> test('simple ... | 1 |
PHP | PHP | allow higher order groupby | 87838b56581bca1d5bc52f6d38de8bf1d52ace11 | <ide><path>src/Illuminate/Support/Collection.php
<ide> class Collection implements ArrayAccess, Arrayable, Countable, IteratorAggregate
<ide> * @var array
<ide> */
<ide> protected static $proxies = [
<del> 'average', 'avg', 'contains', 'each', 'every', 'filter', 'first', 'flatMap', 'keyBy',
<del> ... | 2 |
Javascript | Javascript | remove some unnecessary next ticks | ab755484a8a5113cb6d74f8e8ae5a26c44ae4582 | <ide><path>lib/internal/http2/core.js
<ide> function onSettings() {
<ide> session[kUpdateTimer]();
<ide> debug(`Http2Session ${sessionName(session[kType])}: new settings received`);
<ide> session[kRemoteSettings] = undefined;
<del> process.nextTick(emit, session, 'remoteSettings', session.remoteSettings);
<add> ... | 1 |
Javascript | Javascript | fix counter example | e621c79639d4ca661196024c04ed63aaf0c0fd0a | <ide><path>examples/counter/containers/App.js
<ide> import React from 'react';
<ide> import CounterApp from './CounterApp';
<del>import { createStore } from 'redux';
<add>import { createStore, applyMiddleware } from 'redux';
<ide> import { Provider } from 'redux/react';
<ide> import * as reducers from '../reducers';
<i... | 1 |
PHP | PHP | add error binder | a9bddfc0e0573aa2b6d9d553126e9bf0af064e7b | <ide><path>app/Providers/AppServiceProvider.php
<ide> class AppServiceProvider extends ServiceProvider {
<ide> 'Illuminate\Cookie\Middleware\Queue',
<ide> 'Illuminate\Session\Middleware\Reader',
<ide> 'Illuminate\Session\Middleware\Writer',
<add> 'Illuminate\View\Middleware\ErrorBinder',
<ide> ];
<ide>
<ide> ... | 1 |
PHP | PHP | fix union queries with order by bindings | 7d2c2c4d8b0fcf533ca6df68ad5ecc921e424e94 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> class Builder
<ide> 'having' => [],
<ide> 'order' => [],
<ide> 'union' => [],
<add> 'unionOrder' => [],
<ide> ];
<ide>
<ide> /**
<ide> public function orderBy($column, $direction = 'asc')
<ide>
<ide> $colum... | 2 |
Text | Text | improve section in constant autoload guide | 3aebff160d10770f828e485f020e1a84d8835d94 | <ide><path>guides/source/constant_autoloading_and_reloading.md
<ide> been triggered in the first place. Thus, Rails assumes a qualified reference and
<ide> considers the file `admin/user.rb` and directory `admin/user` to be the only
<ide> valid options.
<ide>
<del>In practice this works quite well as long as the nesti... | 1 |
Text | Text | add 2.5.1 to changelog.md | bfa224201dea93efa012e6429db505d191a5167a | <ide><path>CHANGELOG.md
<ide> - [#13285](https://github.com/emberjs/ember.js/pull/13285) [BUGFIX] Make `Enumerable#firstObject` read only.
<ide> - [#13289](https://github.com/emberjs/ember.js/pull/13289) [BUGFIX] Make `Enumerable#lastObject` read only.
<ide>
<add>### 2.5.1 (April 21, 2016)
<add>
<add>- [#13310](https:... | 1 |
PHP | PHP | add strict_types to database/schema | 13a498cffd5ab1a858dcb3dd9f32efc842768fc3 | <ide><path>src/Database/Schema/BaseSchema.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Database/Schema/CachedCollection.php
<ide> <?php
<a... | 17 |
Python | Python | replace the todo with a proper bug | c277bcb0417f5c682f945627bd9d78a5763c38cf | <ide><path>keras/dtensor/layout_map.py
<ide> def _create_dvariable(layout_map, object_path, variable):
<ide> Returns:
<ide> A new tf.Variable with correct layout information.
<ide> """
<del> # TODO(scottzhu): Revisit this in future and see if we can just reuse the
<add> # TODO(b/228209108): Revisit this in fu... | 1 |
Javascript | Javascript | update jsm modules | a4e573604cf1694db8f0059798bc97653fd538a6 | <ide><path>examples/jsm/renderers/CSS3DRenderer.js
<ide> var CSS3DObject = function ( element ) {
<ide>
<ide> this.addEventListener( 'removed', function () {
<ide>
<del> if ( this.element.parentNode !== null ) {
<add> this.traverse( function( object ) {
<ide>
<del> this.element.parentNode.removeChild( this.elem... | 1 |
PHP | PHP | remove fallback locale | 227683be9fbddbd646c005face523dadf297a49a | <ide><path>app/config/app.php
<ide>
<ide> 'locale' => 'en',
<ide>
<del> /*
<del> |--------------------------------------------------------------------------
<del> | Application Fallback Locale
<del> |--------------------------------------------------------------------------
<del> |
<del> | The fallback locale determ... | 1 |
Mixed | Text | add support for 'docker cp' to write to stdout | f3d96e81e9c2a738ec577b814092f8953932de3a | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> }
<ide>
<ide> func (cli *DockerCli) CmdCp(args ...string) error {
<del> cmd := cli.Subcmd("cp", "CONTAINER:PATH HOSTPATH", "Copy files/folders from the PATH to the HOSTPATH", true)
<add> cmd := cli.Subcmd("cp", "CONTAINE... | 5 |
Python | Python | remove unused testpy code | dc4313c62007c8473331221c501d09fa70fa3478 | <ide><path>test/testpy/__init__.py
<ide> def __init__(self, path, file, arch, mode, context, config, additional=None):
<ide> self.config = config
<ide> self.arch = arch
<ide> self.mode = mode
<del> self.tmpdir = join(dirname(self.config.root), 'tmp')
<ide> if additional is not None:
<ide> self.... | 1 |
Text | Text | update ruby symbols portuguese guide | f1e6fad974b3b9191e41af85a65c0ae76f2199c9 | <ide><path>guide/portuguese/ruby/ruby-symbols/index.md
<ide> localeTitle: Ruby Symbols
<ide> ---
<ide> ## Ruby Symbols
<ide>
<del>Um símbolo se parece com um nome de variável, mas é prefixado com dois pontos. Exemplos -: action,: line\_items Você não tem que pré-declarar um símbolo e é garantido que ele é único. Não h... | 1 |
Ruby | Ruby | allow some forms of gist patches | 192e6e052cd5e0ab47aa53e8b438640efedc3630 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_patches
<ide> Patches.new(f.patches).select { |p| p.external? }.each do |p|
<ide> case p.url
<ide> when %r[raw\.github\.com], %r[gist\.github\.com/raw]
<del> problem "Using raw GitHub URLs is not recommended:\n#{p.url}"
<add> unless ... | 1 |
Javascript | Javascript | add emberall to showcase | a5083a3cd5f463a94f4e4bd382a768c2f960b841 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> icon: 'http://a4.mzstatic.com/us/r30/Purple60/v4/1a/42/5b/1a425b56-848a-91f5-8078-9f5473c9021f/icon350x350.png',
<ide> link: 'https://itunes.apple.com/us/app/clapit/id1062124740?mt=8',
<ide> author: 'Refined Edge Solutions, LLC'
<del> ... | 1 |
Javascript | Javascript | remove outdated code | 268aa2d46f9ca88f0d57621e59c1128f6c0241a5 | <ide><path>examples/jsm/shaders/MMDToonShader.js
<ide> void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in Geometric
<ide>
<ide> #define RE_Direct RE_Direct_BlinnPhong
<ide> #define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong
<del>
<del>#define Material_LightProbeLOD( material ) (0)
<ide> `... | 5 |
Javascript | Javascript | increase coverage for fs.promises.truncate | e5a3579a50a7095c337da25054c9c610a3484779 | <ide><path>test/parallel/test-fs-promises-file-handle-truncate.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const path = require('path');
<add>const { open, readFile } = require('fs').promises;
<add>const tmpdir = require('../common/tmpdir');
<add>
<a... | 2 |
Go | Go | add implementation for lookupcontainerid | 0969e192f2aa23e3d54087eb37540503cadb1e99 | <ide><path>libnetwork/client/client_test.go
<ide> func setupMockHTTPCallback() {
<ide> rsp = string(mockServiceListJSON)
<ide> } else if strings.HasSuffix(path, "services/"+mockServiceID) {
<ide> rsp = string(mockServiceJSON)
<add> } else if strings.Contains(path, "containers") {
<add> return nopCloser{... | 2 |
PHP | PHP | update xcache tests | b4df11028bee38dc718172813e07c586f94c95fb | <ide><path>lib/Cake/Test/TestCase/Cache/Engine/XcacheEngineTest.php
<ide> <?php
<ide> /**
<del> * XcacheEngineTest file
<del> *
<del> * PHP 5
<del> *
<del> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<add> * CakePHP(tm) <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> *... | 1 |
Python | Python | fix the decode call | 8ec2140730f6306e652d3b9197a013da3f98f12f | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def create_node(self, **kwargs):
<ide>
<ide> if 'ex_userdata' in kwargs:
<ide> params['UserData'] = base64.b64encode(b(kwargs['ex_userdata'])) \
<del> .decode('utf8')
<add> .... | 1 |
Text | Text | fix example usage | f40384972bf92bc2c4f2e5b0a626ec5efb1df64c | <ide><path>guide/english/bash/bash-chmod/index.md
<ide> title: Bash chmod
<ide>
<ide> **Change the permissions of a File/Directory**, for example `chmod u+x hello.py`. (Gives the user the permission to execute the file)
<ide>
<add>### Usage
<add>
<add>**Change the permissions of a File/Directory**
<add>
<add>```bash... | 1 |
PHP | PHP | use keyby instead of flatmap | 0f66352eb394e5f7ca10cd937bddef2898c49170 | <ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php
<ide> protected function getResultsByType($type)
<ide> */
<ide> protected function getEagerLoadsForInstance(Model $instance)
<ide> {
<del> $eagers = BaseCollection::make($this->query->getEagerLoads());
<add> $relations = BaseCo... | 1 |
PHP | PHP | change fallbacks to accept a route class | 5af6464a49204f873aeac52024d295787809822a | <ide><path>src/Routing/RouteBuilder.php
<ide> public function scope($path, $params, $callback = null) {
<ide> *
<ide> * This is a shortcut method for connecting fallback routes in a given scope.
<ide> *
<add> * @param string $routeClass the route class to use, uses the default routeClass
<add> * if not specified
<... | 2 |
Text | Text | fix spelling mistakes in classic_to_zeitwerk_howto | 94a029ce98c2e74a6b2874cdb59bb3d07595f7e6 | <ide><path>guides/source/classic_to_zeitwerk_howto.md
<ide> config.autoloader = :classic # DELETE THIS LINE
<ide>
<ide> As noted, just delete the override, `zeitwerk` mode is the default.
<ide>
<del>On the other hand, if the application is loading old framework defaults you need to enable `zeitwerk` mode explictly:
<... | 1 |
Ruby | Ruby | add suffix for migrations copied from engines | ed0b1f6eed6d894f9a0f32a226d29337782ada3c | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def copy(destination, sources, options = {})
<ide> end
<ide>
<ide> migration.version = next_migration_number(last ? last.version + 1 : 0).to_i
<del> new_path = File.join(destination, "#{migration.version}_#{migration.name.undersc... | 3 |
Text | Text | add closing section tag | 64286b4f13fa6e0de3d36c53f399eee6ff6b7120 | <ide><path>curriculum/challenges/arabic/01-responsive-web-design/applied-accessibility/add-an-accessible-date-picker.arabic.md
<ide> localeTitle: إضافة منتقي تاريخ يسهل الوصول إليه
<ide> <label for="input1">أدخل تاريخًا:</label>
<ide> <input type="date" id="input1" name="input1">
<ide> ```
<add></section>
<ide>
<ide> ... | 1 |
Text | Text | improve async_hooks snippets | f39a12113a96d8bbc08aac55dec25437a5958dde | <ide><path>doc/api/async_hooks.md
<ide> async_hooks.createHook({
<ide> init(asyncId, type, triggerAsyncId) {
<ide> const eid = async_hooks.executionAsyncId();
<ide> fs.writeSync(
<del> 1, `${type}(${asyncId}): trigger: ${triggerAsyncId} execution: ${eid}\n`);
<add> process.stdout.fd,
<add> `${t... | 1 |
Javascript | Javascript | attach listontimeout function to timerwrap | eb34278dccc85a572b307253983721929b3fb1a8 | <ide><path>lib/timers.js
<ide> function TimersList(msecs, unrefed) {
<ide> if (unrefed === true)
<ide> timer.unref();
<ide> timer.start(msecs);
<del>
<del> timer[kOnTimeout] = listOnTimeout;
<ide> }
<ide>
<del>function listOnTimeout() {
<add>// adds listOnTimeout to the C++ object prototype, as
<add>// V8 wou... | 1 |
PHP | PHP | add config orfail() wrapper | 0209b453dacd59c0584e839f4a352bf0cc13cd0d | <ide><path>src/Core/Configure.php
<ide> public static function version(): string
<ide> * @param string $cacheConfig The cache configuration to save into. Defaults to 'default'
<ide> * @param array|null $data Either an array of data to store, or leave empty to store all values.
<ide> * @return bool Succes... | 7 |
Javascript | Javascript | make terminate() resolve for unref’ed workers | 2833a0d8b7c3f0f5e80059d7a428328c96cbee54 | <ide><path>lib/internal/worker.js
<ide> class Worker extends EventEmitter {
<ide> terminate(callback) {
<ide> debug(`[${threadId}] terminates Worker with ID ${this.threadId}`);
<ide>
<add> this.ref();
<add>
<ide> if (typeof callback === 'function') {
<ide> process.emitWarning(
<ide> 'Passing... | 2 |
PHP | PHP | fix merge conflicts | cc84229a96870027793e11e7e8cf2182fc9fbba1 | <ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
<ide> use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand;
<ide> use Illuminate\Queue\Console\ListenCommand as QueueListenCommand;
<ide> use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand;
<del><<<<<... | 1 |
PHP | PHP | fix types in docblocks | 7de44d754986a44ab817f2af6ecea0df42ad570e | <ide><path>src/Http/MiddlewareQueue.php
<ide> use SeekableIterator;
<ide>
<ide> /**
<del> * Provides methods for creating and manipulating a "queue" of middleware callables.
<add> * Provides methods for creating and manipulating a "queue" of middlewares.
<ide> * This queue is used to process a request and generate re... | 1 |
Java | Java | support utf-16/utf-32 in jackson message converter | b61643b71a04fee5bb74d6bf1b35aae4125afb9e | <ide><path>spring-web/src/main/java/org/springframework/http/converter/json/AbstractJackson2HttpMessageConverter.java
<ide> private Object readJavaType(JavaType javaType, HttpInputMessage inputMessage) th
<ide> ObjectMapper objectMapper = selectObjectMapper(javaType.getRawClass(), contentType);
<ide> Assert.state(o... | 1 |
Java | Java | replace jetty 9 only constant with explicit value | fbf4724d781a30347b3830567417eef0dd803c3b | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/Jetty10RequestUpgradeStrategy.java
<ide>
<ide> import org.aopalliance.intercept.MethodInterceptor;
<ide> import org.aopalliance.intercept.MethodInvocation;
<del>import org.eclipse.jetty.websocket.server.HandshakeRFC6455;
<ide>
<ide>... | 2 |
Python | Python | add inputs vector to calculate metric method | 09a272b02af6fa04f05b3cd7f1f7b32cdf2ab5e4 | <ide><path>src/transformers/trainer.py
<ide> def evaluation_loop(
<ide> losses_host = None
<ide> preds_host = None
<ide> labels_host = None
<add> inputs_host = None
<add>
<ide> # losses/preds/labels on CPU (final containers)
<ide> all_losses = None
<ide> all_preds ... | 3 |
Ruby | Ruby | use safe_constantize where possible | e8987c30d0dc3ae5903a6d3a6e293641759b6fc4 | <ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb
<ide> def inherited(klass)
<ide> # try to find Foo::Bar::User, Foo::User and finally User.
<ide> def _default_wrap_model #:nodoc:
<ide> return nil if self.anonymous?
<del>
<ide> model_name = self.name.sub(/Controller$/, '').... | 3 |
Go | Go | add note about lxc.cap.keep > lxc.cap.drop | 788d66f409ce3a7e464bbb68d909960648f2515c | <ide><path>lxc_template.go
<ide> lxc.mount.entry = {{$realPath}} {{$ROOTFS}}/{{$virtualPath}} none bind,rw 0 0
<ide> {{end}}
<ide>
<ide> # drop linux capabilities (apply mainly to the user root in the container)
<add># (Note: 'lxc.cap.keep' is coming soon and should replace this under the
<add># security prin... | 1 |
Javascript | Javascript | use focusin/focusout for onfocus/onblur | a59f899a1d021b231f8bd830436708294d9022c0 | <ide><path>packages/react-dom/src/__tests__/ReactDOMInput-test.js
<ide> describe('ReactDOMInput', () => {
<ide> // bypass the lazy event attachment system so we won't actually test this.
<ide> dispatchEventOnNode(instance.a, 'input');
<ide> dispatchEventOnNode(instance.a, 'blur');
<add> dispatchEventOnNo... | 11 |
Javascript | Javascript | fix time tests by adding date to sandbox | f69040c9d2b21491e33a9676a68ce20d97787ab4 | <ide><path>test/load.js
<ide> require("./XMLHttpRequest");
<ide> module.exports = function() {
<ide> var files = [].slice.call(arguments).map(function(d) { return "src/" + d; }),
<ide> expression = "d3",
<del> sandbox = null;
<add> sandbox = {Date: Date}; // so we can use deepEqual in tests
<ide>
<id... | 1 |
Javascript | Javascript | remove react suspense from client runtime | d9c6f20023a805604381e7d7a65169dd7ef5cf81 | <ide><path>packages/next/client/index.js
<ide> /* global location */
<del>import React, { Suspense } from 'react'
<add>import React from 'react'
<ide> import ReactDOM from 'react-dom'
<ide> import HeadManager from './head-manager'
<ide> import { createRouter, makePublicRouterInstance } from 'next/router'
<ide> function... | 2 |
Python | Python | add examples to np.char.multiply | 0b7b940ecb436427289093b3becb51f935eb05df | <ide><path>numpy/core/defchararray.py
<ide> def multiply(a, i):
<ide> -------
<ide> out : ndarray
<ide> Output array of str or unicode, depending on input types
<del>
<add>
<add> Examples
<add> --------
<add> >>> a = np.array(["a", "b", "c"])
<add> >>> np.char.multiply(x, 3)
<add> arr... | 1 |
PHP | PHP | make translator parameters like l3 | 37fc266596f17d0e1e55f93f6f4ec404018b0f8a | <ide><path>src/Illuminate/Translation/Translator.php
<ide> public function get($key, $parameters = array(), $locale = null)
<ide> {
<ide> list($namespace, $group, $item) = $this->parseKey($key);
<ide>
<add> $parameters = $this->formatParameters($parameters);
<add>
<ide> // Once we call the "load" method, we will... | 2 |
Javascript | Javascript | fix misleading docs [fixes | 39e9ef7923a549a617854268d7286173e2d0c8e4 | <ide><path>packages/ember-application/lib/system/application.js
<ide> DeprecatedContainer.prototype = {
<ide> If there is any setup required before routing begins, you can implement a
<ide> `ready()` method on your app that will be invoked immediately before routing
<ide> begins.
<del>
<del> To begin routing, yo... | 1 |
PHP | PHP | fix a styling issue | db8419641c6ccdc7d6e4673267027aba92868b53 | <ide><path>tests/Integration/Database/SchemaBuilderTest.php
<ide> namespace Illuminate\Tests\Integration\Database\SchemaTest;
<ide>
<ide> use Doctrine\DBAL\Types\Type;
<del>use Illuminate\Database\Schema\Grammars\SQLiteGrammar;
<ide> use Illuminate\Support\Facades\DB;
<ide> use Illuminate\Support\Facades\Schema;
<ide>... | 1 |
Text | Text | add information for heap snapshot flag | 4fbefc4283592e13d50888d9a1a62bb0c2f3356b | <ide><path>doc/api/cli.md
<ide> reference. Code may break under this flag.
<ide> added: v12.0.0
<ide> -->
<ide>
<add>Enables a signal handler that causes the Node.js process to write a heap dump
<add>when the specified signal is received.
<add>
<add>```console
<add>$ node --heapsnapshot-signal=SIGUSR2 index.js &
<add>... | 1 |
Python | Python | remove mask_val from time_distributed_softmax | 86a9445ffd5a789b359e49057771332138cc2bfe | <ide><path>keras/activations.py
<ide> def softmax(x):
<ide> return T.nnet.softmax(x)
<ide>
<del>def time_distributed_softmax(x, mask_val=default_mask_val):
<add>def time_distributed_softmax(x):
<ide> xshape = x.shape
<ide> X = x.reshape((xshape[0] * xshape[1], xshape[2]))
<ide> return T.nnet.softmax(X)... | 1 |
Ruby | Ruby | remove unused `fork` arg for `rails` | 39f3ab51e9d9c585dd65c09dcfe9a3ece4521c1f | <ide><path>railties/test/isolation/abstract_unit.rb
<ide> def engine(name)
<ide> # stderr:: true to pass STDERR output straight to the "real" STDERR.
<ide> # By default, the STDERR and STDOUT of the process will be
<ide> # combined in the returned string.
<del> # fork:: false to not use fork even whe... | 1 |
Javascript | Javascript | add logical assignment support | aea7ce053d5ca96c5bec45f8910caed67cb42c3b | <ide><path>lib/javascript/JavascriptParser.js
<ide> const StackedMap = require("../util/StackedMap");
<ide> const memorize = require("../util/memorize");
<ide> const BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<ide>
<del>/** @typedef {import("acorn").Options} AcornOptions */
<add>// Todo: revert ... | 4 |
Ruby | Ruby | move migrations into `updatemigrator` module | 516a39f5a471822b0565ae24189cc5389caaf923 | <ide><path>Library/Homebrew/brew.rb
<ide>
<ide> require_relative "global"
<ide>
<add>require "update_migrator"
<add>
<ide> begin
<ide> trap("INT", std_trap) # restore default CTRL-C handler
<ide>
<ide> end
<ide>
<ide> # Migrate LinkedKegs/PinnedKegs if update didn't already do so
<del> migrate_legacy_keg_sym... | 10 |
Text | Text | add alternate way of creating array | cecb7d9adfdac4979a8bb1d31be2a9d34a954691 | <ide><path>guide/english/ruby/ruby-arrays/index.md
<ide> An array represents a list of values. The individual values are often called "el
<ide> my_array = [1, 2, 3, 4, 5]
<ide> ```
<ide>
<add>You can also create an empty array by using the 'new' method in the 'Array' class:
<add>
<add>```ruby
<add>my_array = Array.new... | 1 |
Text | Text | deprecate ios 9 in readme | d1265077d6638bb9219180628caf6ff83f8d6019 | <ide><path>README.md
<ide> React Native is developed and supported by many companies and individual core co
<ide>
<ide> ## 📋 Requirements
<ide>
<del>React Native apps may target iOS 9.0 and Android 4.1 (API 16) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and r... | 1 |
Ruby | Ruby | pass log_rescued_responses as environment config | d6b66ebb6ebd66f6699c3c10f5417f02a2b0129f | <ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
<ide> module ActionDispatch
<ide> # This middleware is responsible for logging exceptions and
<ide> # showing a debugging page in case the request is local.
<ide> class DebugExceptions
<del> cattr_accessor :log_rescued_responses, instance... | 5 |
Ruby | Ruby | pass the template format to the digestor | 1581cab9ff26731ed03a17f7ddec3c85d536988a | <ide><path>actionpack/lib/action_controller/metal/etag_with_template_digest.rb
<ide> def pick_template_for_etag(options)
<ide> end
<ide>
<ide> def lookup_and_digest_template(template)
<del> ActionView::Digestor.digest name: template, finder: lookup_context
<add> ActionView::Digestor.digest na... | 11 |
Javascript | Javascript | simplify wording+improve grammar | 1bd451d0825bdbeb52bcc7d66838909ef7afe3df | <ide><path>src/loader.js
<ide> function setupModuleLoader(window) {
<ide> * All modules (angular core or 3rd party) that should be available to an application must be
<ide> * registered using this mechanism.
<ide> *
<del> * When passed two or more arguments, a new module is created. If passed only o... | 1 |
Ruby | Ruby | grab files in subdirectories too | 34c1a6f850261022ceca4c09faef1e3124bfcf40 | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def noecho_gets
<ide> result
<ide> end
<ide>
<del> def load_logs(dir)
<add> def load_logs(dir, basedir = dir)
<ide> logs = {}
<ide> if dir.exist?
<ide> dir.children.sort.each do |file|
<del> contents = file.size? ? file.read : "empty log"
... | 1 |
Text | Text | fix small grammar mistake | 057aa07ec33e948bb7f63c5f025becce803a14ce | <ide><path>guide/english/ionic/index.md
<ide> Hybrid apps have many benefits over pure native apps, specifically in terms of p
<ide>
<ide> ### Building Hybrid Apps With Ionic
<ide>
<del>Those familiar with web development will find the structure of an Ionic app straightforward. At its core, it’s just a web page runni... | 1 |
Javascript | Javascript | fix vector iterator | 4bc0670689baba3d237f29a690353d09ec600827 | <ide><path>dist/Immutable.dev.js
<ide> var VectorIterator = function VectorIterator(vector, origin, size, level, root,
<ide> stack.rawIndex++;
<ide> return {
<ide> value: [index, value],
<del> done: true
<add> done: false
<ide> };
<ide> ... | 3 |
Text | Text | add multi-zones docs. | 7a1d9c18a39860f5711446595543468bfbdef04e | <ide><path>readme.md
<ide> Next.js is a minimalistic framework for server-rendered React applications.
<ide> - [CDN support with Asset Prefix](#cdn-support-with-asset-prefix)
<ide> - [Production deployment](#production-deployment)
<ide> - [Static HTML export](#static-html-export)
<add>- [Multi Zones](#multi-zones)
<i... | 1 |
PHP | PHP | remove bad default from fixture | e7b77a7b714ca9c82b9bfa39cc148d3439c60b6c | <ide><path>lib/Cake/Test/Fixture/DatatypeFixture.php
<ide> class DatatypeFixture extends TestFixture {
<ide> * @var array
<ide> */
<ide> public $fields = array(
<del> 'id' => ['type' => 'integer', 'null' => false, 'default' => 0],
<add> 'id' => ['type' => 'integer', 'null' => false],
<ide> 'float_field' => ['typ... | 1 |
Java | Java | expose executor name in reactinstancemanager | f71c6b6feb4599954539ab8094234b918f43e12a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public LifecycleState getLifecycleState() {
<ide> return mLifecycleState;
<ide> }
<ide>
<add> public String getJsExecutorName() {
<add> return mJavaScriptExecutorFactory.toString();
<add> }
<add>
<ide> @ThreadConfined... | 2 |
PHP | PHP | support other configuration option for consistency | 7efb6157741da04eedfa077abe283f9f39f89839 | <ide><path>src/Illuminate/Log/LogManager.php
<ide> protected function createMonologDriver(array $config)
<ide> );
<ide> }
<ide>
<add> $with = array_merge($config['with'] ?? [], $config['handler_with'] ?? []);
<add>
<ide> return new Monolog($this->parseChannel($config), [$this->prepar... | 1 |
Javascript | Javascript | add atom target | b5c4d9fd1f6f272327c4f1c8843e8fd8afcf5918 | <ide><path>lib/WebpackOptionsApply.js
<ide> WebpackOptionsApply.prototype.process = function(options, compiler) {
<ide> new LoaderTargetPlugin("node-webkit")
<ide> );
<ide> break;
<add> case "atom":
<add> var JsonpTemplatePlugin = require("./JsonpTemplatePlugin");
<add> var NodeTargetPlugin = require("./... | 1 |
Ruby | Ruby | expose chunked downloads | f66a69076f43617bacfe45961e229268ed15faa7 | <ide><path>lib/active_storage/blob.rb
<ide> def upload(io)
<ide> service.upload(key, io, checksum: checksum)
<ide> end
<ide>
<del> def download
<del> service.download key
<add> def download(&block)
<add> service.download key, &block
<ide> end
<ide>
<ide>
<ide><path>lib/active_storage/service/disk_ser... | 3 |
Text | Text | remove next/future/image ref | 75aab126a28a74e103cc292601993770d32563df | <ide><path>docs/basic-features/image-optimization.md
<ide> If none of the suggested methods works for sizing your images, the `next/image`
<ide>
<ide> ## Styling
<ide>
<del>> Note: Many of the styling issues listed below can be solved with [`next/future/image`](/docs/api-reference/next/future/image.md)
<del>
<ide> St... | 1 |
Python | Python | set version to v2.2.0.dev11 | a4d4c4bfa4d73e9f974d38ea5e9a11ac99728bfa | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev10"
<add>__version__ = "2.2.0.dev11"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) in Python"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion" | 1 |
Javascript | Javascript | use arrow function for lexical `this` | a9387db86737cb6e10d1fe61851bb9072204f776 | <ide><path>lib/_debug_agent.js
<ide> function Agent() {
<ide> this.binding = process._debugAPI;
<ide> assert(this.binding, 'Debugger agent running without bindings!');
<ide>
<del> var self = this;
<del> this.binding.onmessage = function(msg) {
<del> self.clients.forEach(function(client) {
<add> this.binding.... | 1 |
Go | Go | fix registry filepath and location | 81e7d3571be357205fc7ab65012771cadc2a967b | <ide><path>registry/registry.go
<ide> import (
<ide> "net/http/httputil"
<ide> "os"
<ide> "path"
<add> "path/filepath"
<ide> "runtime"
<ide> "strings"
<ide> "time"
<ide> type httpsRequestModifier struct{ tlsConfig *tls.Config }
<ide> // prefer an fsnotify implementation, but that was out of scope of my refactorin... | 1 |
Mixed | Go | add a flag to override the default seccomp profile | b237189e6c8a4f97be59f08c63cdcb1f2f4680a8 | <ide><path>api/server/router/system/system_routes.go
<ide> func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *ht
<ide> if versions.LessThan(httputils.VersionFromContext(ctx), "1.25") {
<ide> // TODO: handle this conversion in engine-api
<ide> type oldInfo struct {
<del> *types.Info
<ad... | 15 |
Javascript | Javascript | add test for title and routechangecomplete | 0a02efbfcc1ff5a8e0be780efee4f3c4ce0c5c85 | <ide><path>test/integration/production/pages/with-title.js
<add>import Head from 'next/head'
<add>
<add>export default () => (
<add> <>
<add> <Head>
<add> <title>hello from title</title>
<add> </Head>
<add> <p id="with-title">hi</p>
<add> </>
<add>)
<ide><path>test/integration/production/test/index.test... | 2 |
Python | Python | add missing verbose opt for evaluate_generator | 416783156c1b07f28131c493a55a93936b5fe163 | <ide><path>keras/engine/training.py
<ide> def generate_arrays_from_file(path):
<ide> def evaluate_generator(self, generator, steps=None,
<ide> max_queue_size=10,
<ide> workers=1,
<del> use_multiprocessing=False):
<add> ... | 2 |
Ruby | Ruby | copy the cache too | 326548770d694fbc5dc4cccc3a293a2d4eabe0b0 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def clone
<ide> def becomes(klass)
<ide> returning klass.new do |became|
<ide> became.instance_variable_set("@attributes", @attributes)
<add> became.instance_variable_set("@attributes_cache", @attributes_cache)
<ide> beca... | 1 |
Python | Python | add some tests for ticket . do some cleanups | ae2ebe1beb13b766c07c25d35cfff90eaf63ca09 | <ide><path>numpy/lib/tests/test_twodim_base.py
<ide> def test_dtype(self):
<ide> assert_array_equal(tri(3,dtype=bool),out.astype(bool))
<ide>
<ide>
<del>def test_mask_indices():
<del> # simple test without offset
<del> iu = mask_indices(3, np.triu)
<del> a = np.arange(9).reshape(3, 3)
<del> yield ... | 1 |
Python | Python | remove session reference | bb78151bdd42df82057e510d516618a4ffc86df0 | <ide><path>airflow/models.py
<ide> def run(
<ide> self.pool = pool or task.pool
<ide> self.test_mode = test_mode
<ide> self.force = force
<del> session = settings.Session()
<del> self.refresh_from_db(session)
<del> session.commit()
<add> self.refresh_from_db()
<ide> ... | 1 |
Java | Java | expose request in webclientresponseexception | 3258ac1ec4159b3fe69cc9daad4ab054b90d0e6c | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> import java.util.LinkedHashMap;
<ide> import java.util.List;
<ide> import java.util.Map;
<add>import java.util.function.BiFunction;
<ide> import java.util.function.Consumer;
<ide> import java.util.functi... | 4 |
Text | Text | change rating to ratings | a68e3ef39d4958b1c5c933e3eb3a3c7799e00d15 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array.english.md
<ide> for(var i=0; i < watchList.length; i++){
<ide>
<ide> // Add your code above this line
<ide>
<del>console.log(JSON.stringify(rating));
<add>cons... | 1 |
Text | Text | add fleek fashion to the list of airflow users | bafd258e66ba2a9711118cd024488fb485e2dc22 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Farfetch](https://github.com/farfetch) [[@davidmarques78](https://github.com/davidmarques78)]
<ide> 1. [Fathom Health](https://www.fathomhealth.co/)
<ide> 1. [Firestone Inventing](https://www.hsmap.com/) [[@zihengCat](https://github.com/zi... | 1 |
Javascript | Javascript | add missing test for [ng-app] bootstrap | 9398040a41d0041f949d5b5219eaaf1074cd5699 | <ide><path>test/AngularSpec.js
<ide> describe('angular', function() {
<ide> return element.getElementById[id] || [];
<ide> },
<ide>
<add>
<add> querySelectorAll: function(arg) {
<add> return element.querySelectorAll[arg] || [];
<add> },
<add>
<add>
<ide> getAttribute: f... | 1 |
Javascript | Javascript | remove obsolete promise filtering | b8c70bd977247fcf0ebaa5df4c76ce4646442cc9 | <ide><path>packages/internal-test-helpers/lib/module-for.js
<ide> export default function moduleFor(description, TestClass, ...mixins) {
<ide> promises.push(instance.afterEach());
<ide> }
<ide>
<del> // this seems odd, but actually saves significant time
<del> // in the test suite
<del> //... | 1 |
Ruby | Ruby | use new syntax | d6e0b7d2bfa41e529c9055c13695afdba50b4a9a | <ide><path>Library/Homebrew/linkage_checker.rb
<ide> def display_items(label, things)
<ide> return if things.empty?
<ide> puts "#{label}:"
<ide> if things.is_a? Hash
<del> things.sort_by { |k, | k.to_s }.each do |list_label, list|
<add> things.sort_by(&:to_s).each do |list_label, list|
<ide> ... | 1 |
PHP | PHP | fix coding standards | 521c293eb182257253e4b073f63f0a95b978a0e0 | <ide><path>lib/Cake/Test/Case/Network/CakeRequestTest.php
<ide> public function testBaseUrlwithModRewriteAlias() {
<ide> */
<ide> public function testBaseUrlWithModRewriteAndIndexPhp() {
<ide> $_SERVER['REQUEST_URI'] = '/cakephp/app/webroot/index.php';
<del> $_SERVER['PHP_SELF'] = '/cakephp/app/webroot/index.php'... | 1 |
Javascript | Javascript | add helpful error message if no filename | 1619a09da25e7a3704101395bcea6790eb159145 | <ide><path>server/utils/getFromDisk$.js
<ide> import { Observable } from 'rx';
<ide> const basePath = process.cwd() + '/seed/challenges/';
<ide>
<ide> export default function getFromDisk$(challenge) {
<add> if (challenge && !challenge.fileName) {
<add> throw new Error(
<add> `Challenge ${challenge.name} has n... | 1 |
Javascript | Javascript | add missing semicolon | 5e53c0cea44d7827e60e51b2dfa1ccb86f1368d6 | <ide><path>fixtures/src/components/fixtures/textareas/index.js
<ide> const TextAreaFixtures = React.createClass({
<ide> return { value: '' };
<ide> },
<ide> onChange(event) {
<del> this.setState({ value: event.target.value })
<add> this.setState({ value: event.target.value });
<ide> },
<ide> render() ... | 1 |
Ruby | Ruby | remove unneeded test | 0906fc67667c618d5a90fc696799d588e8752709 | <ide><path>railties/test/generators/plugin_generator_test.rb
<ide> def test_generation_does_not_run_bundle_install_with_full_and_mountable
<ide> assert_no_file "#{destination_root}/Gemfile.lock"
<ide> end
<ide>
<del> def test_skip_javascript
<del> run_generator [destination_root, "--skip-javascript", "--moun... | 1 |
PHP | PHP | move request to http package | 49722a80c424230df1c3510404d15267f2faac9a | <ide><path>src/Http/ServerRequest.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please see ... | 3 |
Javascript | Javascript | push operations directly to the array | 02a3a2275307389474c11119cef1f13763cfca60 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> // children when Suspense flips to fallback. These Fibers won't have IDs.
<ide> let fibersUnmountedInThisCommitPhase: WeakSet<Fiber> = new WeakSet();
<ide>
<del> // TODO: we could make this layer DEV-only and write directly to pendingOperation... | 1 |
Text | Text | add apiversion to /version for remote api 1.12 | 92f46d233e69a2134ddeaa4843d4b99be00de096 | <ide><path>docs/sources/reference/api/docker_remote_api_v1.12.md
<ide> Show the docker version information
<ide> Content-Type: application/json
<ide>
<ide> {
<add> "ApiVersion":"1.12",
<ide> "Version":"0.2.2",
<ide> "GitCommit":"5a2a5cc+CHANGES",
<ide> ... | 1 |
Python | Python | add separableconv2d layer (tf only) | 47c09d9557a9c4614270912cb39d55d7e7c01268 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def separable_conv2d(x, depthwise_kernel, pointwise_kernel, strides=(1, 1),
<ide> padding = _preprocess_border_mode(border_mode)
<ide> strides = (1,) + strides + (1,)
<ide>
<del> tf.nn.separable_conv2d(x, depthwise_kernel, pointwise_kernel,
<del> ... | 3 |
Python | Python | add bz2 support to loadtxt [patch by ryan may] | 00f70117aed4a20bfa8770560e1759f769ada527 | <ide><path>numpy/lib/io.py
<ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None,
<ide> Parameters
<ide> ----------
<ide> fname : file or string
<del> File or filename to read. If the filename extension is ``.gz``,
<del> the file is first decompressed.
<add> ... | 1 |
Javascript | Javascript | make template in documentation for {{each}} valid | 898d24d11d20bd802809dcee7cedfcbf78655dac | <ide><path>packages/ember-htmlbars/lib/helpers/each.js
<ide> import normalizeSelf from "ember-htmlbars/utils/normalize-self";
<ide> ```javascript
<ide> App.NoPeopleView = Ember.View.extend({
<ide> tagName: 'li',
<del> template: 'No person is available, sorry'
<add> template: '<p>No person is available, so... | 1 |
PHP | PHP | update cache shell to commands | c751690b70b2c8b53b4ed331a6ebefba16130e60 | <ide><path>src/Command/CacheClearAllCommand.php
<add><?php
<add>declare(strict_types=1);
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copy... | 6 |
Ruby | Ruby | use match? where we don't need matchdata | d1ffe59ab5fd6e811833c127d43b32e87b5d7131 | <ide><path>actionpack/lib/action_dispatch/http/mime_negotiation.rb
<ide> def params_readable? # :doc:
<ide>
<ide> def valid_accept_header # :doc:
<ide> (xhr? && (accept.present? || content_mime_type)) ||
<del> (accept.present? && accept !~ BROWSER_LIKE_ACCEPTS)
<add> (accept.pre... | 23 |
Javascript | Javascript | remove unnecessary comments | 56dcecfd09231b18c7cafeb3d2e2c17222d87cb8 | <ide><path>packages/ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js
<ide> class ModelDependentQPTestCase extends QueryParamTestCase {
<ide> assert.equal(this.controller.get('q'), 'lol');
<ide> assert.equal(this.controller.get('z'), 0);
<ide> assert.equal(this.$lin... | 1 |
Javascript | Javascript | add friendly tips about how to exit repl" | 4dbfb096f04c49aaa8349626296193ecff6bf2f6 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide>
<ide> function defaultEval(code, context, file, cb) {
<ide> var err, result, script, wrappedErr;
<del> var isExitCommand = false;
<ide> var wrappedCmd = false;
<ide> var awaitPromise = false;
<ide> var input = code;
<del> var trimme... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.