content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix pipeline with dest in objectmode | 05f1df520064475a255d8956f9e1b6f4bf4c8543 | <ide><path>lib/internal/streams/pipeline.js
<ide> function pipeline(...streams) {
<ide> // always returns a stream which can be further
<ide> // composed through `.pipe(stream)`.
<ide>
<del> const pt = new PassThrough();
<add> const pt = new PassThrough({
<add> objectMode: true
<... | 2 |
Python | Python | remove empty line | a54e3c2efe6d388b1cb2fa0bc9fc867165c9025d | <ide><path>spacy/__main__.py
<ide> # coding: utf8
<del>#
<ide> from __future__ import print_function
<ide> # NB! This breaks in plac on Python 2!!
<ide> #from __future__ import unicode_literals, | 1 |
Ruby | Ruby | remove requirement that sql starts with select | 0e77fa57f7ca905f4baf75dba695d6d6ceae03a4 | <ide><path>activerecord/test/cases/annotate_test.rb
<ide> class AnnotateTest < ActiveRecord::TestCase
<ide> def test_annotate_wraps_content_in_an_inline_comment
<ide> quoted_posts_id, quoted_posts = regexp_escape_table_name("posts.id"), regexp_escape_table_name("posts")
<ide>
<del> assert_sql(%r{\ASELECT #{qu... | 1 |
Javascript | Javascript | raise pummel/test-net-throttle write req size | bcb5bdebe7731739daa720c5bcc2728314db0534 | <ide><path>test/pummel/test-net-throttle.js
<ide> var common = require('../common');
<ide> var assert = require('assert');
<ide> var net = require('net');
<ide>
<del>var N = 160 * 1024;
<add>var N = 1024 * 1024;
<ide> var part_N = N / 3;
<ide> var chars_recved = 0;
<ide> var npauses = 0; | 1 |
Javascript | Javascript | fix order-by benchmark | 07849779ba365f371a8caa3b58e23f677cfdc5ad | <ide><path>benchmarks/orderby-bp/app.js
<ide> app.controller('DataController', function DataController($rootScope, $scope) {
<ide> this.rows = [];
<ide> var self = this;
<ide>
<del> $scope.benchmarkType = 'basic';
<add> $scope.benchmarkType = 'baseline';
<ide>
<ide> $scope.rawProperty = function(key) {
<ide> ... | 2 |
Ruby | Ruby | metaprogram the http_x_request_id method | 39837b17097af1b6d225b4e610b309aefd1eb42b | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> class Request < Rack::Request
<ide> include ActionDispatch::Http::FilterParameters
<ide> include ActionDispatch::Http::URL
<ide>
<del> HTTP_X_REQUEST_ID = "HTTP_X_REQUEST_ID".freeze # :nodoc:
<del>
<ide> autoload :Session, 'action_dispatch/... | 1 |
Javascript | Javascript | split input.js into smaller files | 3e42b22b0e9df95994624d45502e612398d2fc1d | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'src/ng/directive/form.js',
<ide> 'src/ng/directive/input.js',
<ide> 'src/ng/directive/ngBind.js',
<add> 'src/ng/directive/ngChange.js',
<ide> 'src/ng/directive/ngClass.js',
<ide> 'src/ng/directive/ngCloak.js',
<ide> 'src/ng/directiv... | 8 |
PHP | PHP | remember() to work with arraystore | 3f62df631e480dd253fb6f2a5dec8cc5fa94ebf6 | <ide><path>src/Illuminate/Cache/ArrayStore.php
<ide>
<ide> namespace Illuminate\Cache;
<ide>
<add>use Illuminate\Support\InteractsWithTime;
<add>
<ide> class ArrayStore extends TaggableStore
<ide> {
<del> use RetrievesMultipleKeys;
<add> use RetrievesMultipleKeys, InteractsWithTime;
<ide>
<ide> /**
<ide> ... | 2 |
Javascript | Javascript | fix conjugate method. see | 38aea0e4fa676a986adf95dea369658e5b9c857f | <ide><path>src/math/Quaternion.js
<ide> Object.assign( Quaternion.prototype, {
<ide>
<ide> inverse: function () {
<ide>
<del> return this.conjugate().normalize();
<add> // quaternion is assumed to have unit length
<add>
<add> return this.conjugate();
<ide>
<ide> },
<ide> | 1 |
Javascript | Javascript | add note on best practices | e819d21fa02f28a64fa8176c132800da2395427e | <ide><path>src/ng/directive/ngInit.js
<ide> * @restrict AC
<ide> *
<ide> * @description
<del> * The `ngInit` directive specifies initialization tasks to be executed
<del> * before the template enters execution mode during bootstrap.
<add> * The `ngInit` directive allows you to evaluate an expression in the
<add> * ... | 1 |
Ruby | Ruby | change inheritance to composition | f9dda1567ea8d5b27bd9d66ac5a8b43dc67a6b7e | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> require 'active_support/deprecation'
<ide>
<ide> module Mime
<del> class Mimes < Array
<del> def symbols
<del> @symbols ||= map(&:to_sym)
<add> class Mimes
<add> include Enumerable
<add>
<add> def initialize
<add> @mimes = []
<add> ... | 2 |
PHP | PHP | add disabled option support | b0e4d7c84c79c68ea7199749c1db3972a2c11869 | <ide><path>Cake/View/Input/SelectBox.php
<ide> public function render($data) {
<ide> $options = $this->_renderOptions($data);
<ide> $name = $data['name'];
<ide> unset($data['name'], $data['options'], $data['empty'], $data['value']);
<add> if (isset($data['disabled']) && is_array($data['disabled'])) {
<add> uns... | 2 |
Mixed | Go | remove deprecated -f flag on docker tag | 4455ec14b87d5ad474c5e11d60907bceb35e9e09 | <ide><path>api/client/tag.go
<ide> import (
<ide>
<ide> Cli "github.com/docker/docker/cli"
<ide> flag "github.com/docker/docker/pkg/mflag"
<del> "github.com/docker/engine-api/types"
<ide> )
<ide>
<ide> // CmdTag tags an image into a repository.
<ide> //
<ide> // Usage: docker tag [OPTIONS] IMAGE[:TAG] [REGISTRYHOST... | 6 |
Go | Go | add support for closewrite() to npipe transport | 59573fb3c6e8e55278c973b9c799db6ed9c0f9c7 | <ide><path>docker/listeners/listeners_windows.go
<ide> func Init(proto, addr, socketGroup string, tlsConfig *tls.Config) (ls []net.List
<ide> sddl += fmt.Sprintf("(A;;GRGW;;;%s)", sid)
<ide> }
<ide> }
<del> l, err := winio.ListenPipe(addr, sddl)
<add> c := winio.PipeConfig{
<add> SecurityDescriptor: sddl,
... | 1 |
Python | Python | fix same issue for convlstm | 6e289d71866b4782dbe752adce1f26ea895f5dd9 | <ide><path>keras/layers/convolutional_recurrent.py
<ide> def build(self, input_shape):
<ide> regularizer=self.bias_regularizer,
<ide> constraint=self.bias_constraint)
<ide> if self.unit_forget_bias:
<del> self.bia... | 1 |
Text | Text | change some heading levels and add rename doc | 580c639265c7f8ce7b960cf588628ce7bed80b23 | <ide><path>docs/apm-rest-api.md
<del>## Atom.io package and update API
<add># Atom.io package and update API
<ide>
<ide> This guide describes the web API used by [apm](https://github.com/atom/apm) and
<ide> Atom. The vast majority of use cases are met by the `apm` command-line tool,
<ide> For calls to the API that req... | 1 |
Javascript | Javascript | add regression test for large write | 1dc8eb4bd34383830d48a704d79a2bc9ec55152f | <ide><path>test/parallel/test-net-bytes-written-large.js
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const net = require('net');
<add>
<add>// Regression test for https://github.com/nodejs/node/issues/19562:
<add>// Writing to a socket first tries to push thr... | 1 |
PHP | PHP | implementend collection nest | 41ddf1a8d53758fd890734031fab25808bc7c3ad | <ide><path>src/Collection/CollectionTrait.php
<ide> namespace Cake\Collection;
<ide>
<ide> use AppendIterator;
<add>use ArrayObject;
<ide> use Cake\Collection\Collection;
<ide> use Cake\Collection\Iterator\ExtractIterator;
<ide> use Cake\Collection\Iterator\FilterIterator;
<ide> public function combine($keyPath, $valu... | 2 |
PHP | PHP | add type hints to view and related classes | f61038f9b73e59f7484a01c90945422d5ef3f598 | <ide><path>src/View/AjaxView.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> class AjaxView extends View
<ide> * @param array $viewOptions View o... | 9 |
Java | Java | contribute introspection hints on registered beans | 332961f833fea5fde7554c60707d4cbea27e56fd | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationsAotContribution.java
<ide> import org.springframework.aot.generate.GenerationContext;
<ide> import org.springframework.aot.generate.MethodReference;
<ide> import org.springframework.aot.generate.MethodReference.ArgumentCodeGene... | 5 |
PHP | PHP | fix cs error | 54d1ad2de2f33699b91160fde90fe1a6ad621824 | <ide><path>src/TestSuite/Constraint/Response/HeaderSet.php
<ide> */
<ide> namespace Cake\TestSuite\Constraint\Response;
<ide>
<del>use Cake\Http\Response;
<del>
<ide> /**
<ide> * HeaderSet
<ide> *
<ide><path>tests/TestCase/Console/CommandTest.php
<ide> public function testExecuteCommandInstanceInvalid()
<ide> ... | 3 |
Text | Text | add rounded image example | aa2a75b867b89089473f8da8dfc78da0e7018ec0 | <ide><path>guide/english/html/tutorials/images-in-html/index.md
<ide> To insert an image you define the source and an alternative text wich is display
<ide>
<ide> `src` - This attribute provides the url to image present either on your desktop/laptop or to be included from some other website. Remember the link provided... | 1 |
PHP | PHP | apply fixes from styleci | 1fbc7cf6e89fe2cf720ecfe26b4912fb1bea2347 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> <?php
<ide>
<del>use Illuminate\Support\Str;
<ide> use Illuminate\Support\HtmlString;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Bus\Dispatcher; | 1 |
Javascript | Javascript | update documentation of objectproxy | 083d80ba00c0012a3d36e932c2ccca1f24bdbfeb | <ide><path>packages/ember-runtime/lib/system/object_proxy.js
<ide> delegateDesc = Ember.computed(delegate).volatile();
<ide> /**
<ide> @class
<ide>
<del> `Ember.ObjectProxy` forwards all properties to a proxied `content`
<del> object.
<add> `Ember.ObjectProxy` forwards all properties not defined by the proxy itse... | 1 |
Javascript | Javascript | focus correct menuitem on keyboard open | 694fe0f787f6b9b4edb06e6c87b91c50a8429237 | <ide><path>src/js/menu/menu.js
<ide> class Menu extends Component {
<ide> */
<ide> focus(item = 0) {
<ide> const children = this.children().slice();
<del> const haveTitle = children.length && children[0].className &&
<del> (/vjs-menu-title/).test(children[0].className);
<add> const haveTitle = child... | 1 |
PHP | PHP | fix condition parsing in mysql specific cases | 0f3d28c6ea968ca07921c5877b18d8e2ca88a620 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> protected function _parseKey($model, $key, $value) {
<ide> }
<ide>
<ide> if (!preg_match($operatorMatch, trim($operator))) {
<del> $operator .= ' =';
<add> $operator .= is_array($value) ? ' IN' : ' =';
<ide> }
<ide> $operator = trim($operator);
<ide... | 2 |
Javascript | Javascript | add test for strictdeepequal | 8793e0de1d93c2d6bb8a859325982ebcfb94d6c6 | <ide><path>test/parallel/test-util-isDeepStrictEqual.js
<ide> utilIsDeepStrict(-0, -0);
<ide> const obj1 = { [symbol1]: 1 };
<ide> const obj2 = { [symbol1]: 1 };
<ide> const obj3 = { [Symbol()]: 1 };
<add> const obj4 = { };
<ide> // Add a non enumerable symbol as well. It is going to be ignored!
<ide> Object... | 1 |
Ruby | Ruby | add mirror method to formula.rb | 9d19506ee9d79d35eec5063ee1e971583fe79460 | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch
<ide> bucket << f
<ide> bucket << f.recursive_deps
<ide> end
<del>
<add>
<ide> bucket = bucket.flatten.uniq
<ide> else
<ide> bucket = ARGV.formulae
<ide> def fetch
<ide> FileUtils.rm_rf where_to if File.exist? w... | 2 |
Text | Text | improve links in buffer docs | cc1318b5ed1ec67ae78afde70d52cbea794e3bad | <ide><path>doc/api/buffer.md
<ide>
<ide> Stability: 2 - Stable
<ide>
<del>Prior to the introduction of `TypedArray` in ECMAScript 2015 (ES6), the
<add>Prior to the introduction of [`TypedArray`] in ECMAScript 2015 (ES6), the
<ide> JavaScript language had no mechanism for reading or manipulating streams
<ide> of b... | 1 |
Text | Text | add docs for news launches | 382717cce4ea5593eb623ba5ef0bd47c534411d1 | <ide><path>docs/how-to-enable-new-languages.md
<ide> Once these are in place, you should be able to run `npm run develop` to view you
<ide>
<ide> > [!ATTENTION]
<ide> > While you may perform translations locally for the purpose of testing, we remind everyone that translations should _not_ be submitted through GitHub a... | 1 |
Javascript | Javascript | remove unused function arguments | e5116b304f67e4989a8ff87fd558eca6363947a5 | <ide><path>lib/internal/quic/util.js
<ide> function validateQuicSocketListenOptions(options = {}) {
<ide> 'function',
<ide> clientHelloHandler);
<ide> }
<del> const transportParams =
<del> validateTransportParams(
<del> options,
<del> NGTCP2_MAX_CIDLEN,
<del> NGTCP2_MIN_CIDLEN);
<add> ... | 1 |
Text | Text | add 2.x notes and links | 8e549a76ea0ff6b44e1dcf08ba733a5fbfc004ed | <ide><path>docs/api-guide/fields.md
<ide> source: fields.py
<ide>
<add>---
<add>
<add>**Note**: This is the documentation for the **version 3.0** of REST framework. Documentation for [version 2.4](http://tomchristie.github.io/rest-framework-2-docs/) is also available.
<add>
<add>---
<add>
<ide> # Serializer fields
<id... | 8 |
Javascript | Javascript | prevent multiple validations on initialization | 0637a2124c4515311a317e0e39926521228fc0af | <ide><path>src/ng/directive/input.js
<ide> function createDateParser(regexp, mapping) {
<ide> }
<ide>
<ide> function createDateInputType(type, regexp, parseDate, format) {
<del> return function dynamicDateInputType(scope, element, attr, ctrl, $sniffer, $browser, $filter) {
<add> return function dynamicDateInputType(... | 7 |
PHP | PHP | fix typos in `prunecommand` | 7a0a7357a20eeddb2c534a1daed9715051eaeaf5 | <ide><path>src/Illuminate/Database/Console/PruneCommand.php
<ide> public function handle(Dispatcher $events)
<ide> return;
<ide> }
<ide>
<del> $prunning = [];
<add> $pruning = [];
<ide>
<del> $events->listen(ModelsPruned::class, function ($event) use (&$prunning) {
<del> ... | 1 |
Javascript | Javascript | use close callback, not process.nexttick | fb3ec32b0ea5e42f6a9a8f0d5f43779f92cfac4a | <ide><path>lib/net.js
<ide> Socket.prototype._destroy = function(exception, cb) {
<ide> if (this._handle) {
<ide> if (this !== process.stderr)
<ide> debug('close handle');
<del> this._handle.close();
<add> var isException = exception ? true : false;
<add> this._handle.close(function() {
<add> ... | 4 |
Text | Text | update info about google analytics | 7292253fe0cae4dc600aa684a9855eece8185d6f | <ide><path>README.md
<ide> Thanks to the awesome folks over at [Fastly][fastly], there's a free, CDN hosted
<ide> ```
<ide>
<ide> > For the latest version of video.js and URLs to use, check out the [Getting Started][getting-started] page on our website.
<del>>
<del>> In the `vjs.zencdn.net` CDN-hosted versions of Vide... | 1 |
PHP | PHP | clarify assoc array in docblock | 498c5f2513f5d5feaf5d92a6d6bcd897bced0da1 | <ide><path>src/TestSuite/Stub/ConsoleOutput.php
<ide> class ConsoleOutput extends ConsoleOutputBase
<ide> /**
<ide> * Buffered messages.
<ide> *
<del> * @var array
<add> * @var array<string>
<ide> */
<ide> protected $_out = [];
<ide>
<ide> public function write($message, int $newlines = ... | 4 |
Javascript | Javascript | add webpack 5 comment | f28bb4e60efd7dc208c2a828dd9f9efc0a04a772 | <ide><path>lib/web/JsonpMainTemplatePlugin.js
<ide> class JsonpMainTemplatePlugin {
<ide> return false;
<ide> };
<ide>
<add> // TODO webpack 5, no adding to .hooks, use WeakMap and static methods
<ide> ["jsonpScript", "linkPreload", "linkPrefetch"].forEach(hook => {
<ide> if (!mainTemplate.hooks[hook]) {
<i... | 1 |
Javascript | Javascript | remove unused variable in hellonavigation example | 78d570511aa3ff04bca88d9abce1b9e90a8d43ba | <ide><path>local-cli/templates/HelloNavigation/components/KeyboardSpacer.js
<ide> import {
<ide> View,
<ide> Keyboard,
<ide> LayoutAnimation,
<del> UIManager,
<ide> } from 'react-native';
<ide>
<ide> type Props = { | 1 |
PHP | PHP | fix broken test | 20dc92291edc7f9b3932a10dc263dfc43c3368ad | <ide><path>lib/Cake/Test/Case/Model/ModelIntegrationTest.php
<ide> public function testCreation() {
<ide> } else {
<ide> $intLength = 11;
<ide> }
<del> foreach (array('collate', 'charset', 'comment') as $type) {
<add> foreach (array('collate', 'charset', 'comment', 'unsigned') as $type) {
<ide> foreach ($re... | 1 |
PHP | PHP | add padding around code blocks | 9d1bc9ff0d19774f42dfd715b7a3c7ce78cc673e | <ide><path>templates/layout/dev_error.php
<ide> margin-left: 10px;
<ide> user-select: none;
<ide> }
<add> .header-title code {
<add> margin: 0 10px;
<add> }
<ide> .header-type {
<ide> display: block;
<ide> font-size: 16px; | 1 |
Ruby | Ruby | add integration test for shorthand rake tests | cc0c392c77548236207f5973269409d676ae7008 | <ide><path>railties/test/application/test_runner_test.rb
<ide> def test_load_fixtures_when_running_test_suites
<ide> end
<ide> end
<ide>
<add> def test_run_with_model
<add> create_model_with_fixture
<add> create_fixture_test 'models', 'user'
<add> assert_match "3 users", run_task(["test mod... | 1 |
Python | Python | fix typo in documentation | e71cbf258c718739d5c57ab8b0b09c882eac6239 | <ide><path>keras/layers/preprocessing/text_vectorization.py
<ide> def adapt(self, data, batch_size=None, steps=None):
<ide> During `adapt()`, the layer will build a vocabulary of all string tokens
<ide> seen in the dataset, sorted by occurance count, with ties broken by sort
<ide> order of the tokens (high ... | 1 |
Text | Text | fix the tutorial against the v3.0 | 9d078be59ca5067d098263b1892740b44f7c41ee | <ide><path>docs/tutorial/1-serialization.md
<ide> The first thing we need to get started on our Web API is to provide a way of ser
<ide>
<ide> class SnippetSerializer(serializers.Serializer):
<ide> pk = serializers.IntegerField(read_only=True)
<del> title = serializers.CharField(required=False,
<add... | 1 |
Javascript | Javascript | check removewatches before calling | 4ad0ca130d66c1563ad7ba7fbf0241b3009f9f06 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> controllerForBindings = controller;
<ide> removeControllerBindingWatches =
<ide> initializeDirectiveBindings(scope, attrs, controller.instance,
<del> ... | 1 |
Javascript | Javascript | remove unused hook | da9d46f1ccc087d45c41e378d54b6261fe7e9d77 | <ide><path>lib/JavascriptParser.js
<ide> class JavascriptParser {
<ide> canRename: new HookMap(() => new SyncBailHook(["initExpression"])),
<ide> /** @type {HookMap<SyncBailHook<[ExpressionNode]>>} */
<ide> rename: new HookMap(() => new SyncBailHook(["initExpression"])),
<del> /** @type {HookMap<SyncBailHook... | 1 |
Python | Python | improve error reporting of azure auth errors | f014989b4b0c93ff0a41fb3777a24eb6ba0e08f7 | <ide><path>libcloud/common/azure_arm.py
<ide> def parse_error(self):
<ide> else:
<ide> return str(b)
<ide>
<add>
<add>class AzureAuthJsonResponse(JsonResponse):
<add> def parse_error(self):
<add> b = self.parse_body()
<add>
<add> if isinstance(b, basestring):
<add> retur... | 1 |
Ruby | Ruby | add some heuristics to https upgrade check | 923c84d4f7c4e0cf09bfb417deb83bff2364c199 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def initialize(formula, options = {})
<ide> @specs = %w[stable devel head].map { |s| formula.send(s) }.compact
<ide> end
<ide>
<del> def self.check_http_content(url, name, user_agents: [:default])
<add> def self.check_http_content(type, url, name, user_agents:... | 1 |
Go | Go | lock state before we modify | d7e2fc898284fe29ed43f7b28eae56e7e052e854 | <ide><path>container.go
<ide> func (container *Container) monitor() {
<ide> }
<ide>
<ide> // Report status back
<add> container.State.Lock()
<ide> container.State.setStopped(exitCode)
<add> container.State.Unlock()
<ide>
<ide> // Release the lock
<ide> close(container.waitLock) | 1 |
Javascript | Javascript | name some anonymous functions | f37e3b143ae9c4de54cdb7e606f83a75cec4ae58 | <ide><path>lib/readline.js
<ide> function Interface(input, output, completer, terminal) {
<ide>
<ide> // Check arity, 2 - for async, 1 for sync
<ide> if (typeof completer === 'function') {
<del> this.completer = completer.length === 2 ? completer : function(v, cb) {
<del> cb(null, completer(v));
<del> }... | 1 |
PHP | PHP | fix lower bound of total pages | 4886b36a2cbfe206bfc61cbb6a54d23853f23812 | <ide><path>src/Controller/Component/PaginatorComponent.php
<ide> public function paginate($object, array $settings = [])
<ide>
<ide> $page = $options['page'];
<ide> $limit = $options['limit'];
<del> $pageCount = (int)ceil($count / $limit);
<add> $pageCount = max((int)ceil($count / $limit)... | 1 |
PHP | PHP | move wrapper content into formatters | 04814831935d3800a01a2fed4736a42943022740 | <ide><path>src/Error/Debug/ConsoleFormatter.php
<ide> public static function environmentMatches(): bool
<ide> }
<ide>
<ide> /**
<del> * Style text with ANSI escape codes.
<del> *
<del> * @param string $style The style name to use.
<del> * @param string $text The text to style.
<del> * @retu... | 6 |
Text | Text | add entry for schema cache dump to changelog.md | 46c12172fe651980438e0b0663e2005cf3132079 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Added the schema cache dump feature.
<add>
<add> `Schema cache dump` feature was implemetend. This feature can dump/load internal state of `SchemaCache` instance
<add> because we want to boot rails more quickly when we have ... | 1 |
PHP | PHP | move clone logic | b0c2459d7e55519d1c61927ab526e489a3a52eaf | <ide><path>src/Illuminate/Foundation/Providers/FormRequestServiceProvider.php
<ide> public function boot()
<ide> });
<ide>
<ide> $this->app->resolving(FormRequest::class, function ($request, $app) {
<del> $this->initializeRequest($request, $app['request']);
<add> $request = FormRe... | 2 |
Text | Text | update collaborator guide | 1b8746fb9558ca15bd7e514ddc9f4fe052768efe | <ide><path>COLLABORATOR_GUIDE.md
<ide> # Node.js Collaborator Guide
<ide>
<del>**Contents**
<add>## Contents
<ide>
<ide> * [Issues and Pull Requests](#issues-and-pull-requests)
<ide> - [Managing Issues and Pull Requests](#managing-issues-and-pull-requests)
<ide> - [Welcoming First-Time Contributors](#welcoming-fi... | 2 |
PHP | PHP | use str class instead of helper function | e68ff0c66aa1b3da2c9a14d86636d582fd73891e | <ide><path>config/database.php
<ide> <?php
<ide>
<add>use Illuminate\Support\Str;
<add>
<ide> return [
<ide>
<ide> /*
<ide>
<ide> 'options' => [
<ide> 'cluster' => env('REDIS_CLUSTER', 'predis'),
<del> 'prefix' => str_slug(env('APP_NAME', 'laravel'), '_').'_database',
<add> ... | 1 |
Python | Python | add template field renderer to livy operator | 0c94eff95071c126f97e5f2a438a754ed29549d0 | <ide><path>airflow/providers/apache/livy/operators/livy.py
<ide> class LivyOperator(BaseOperator):
<ide> """
<ide>
<ide> template_fields: Sequence[str] = ("spark_params",)
<add> template_fields_renderers = {"spark_params": "json"}
<ide>
<ide> def __init__(
<ide> self, | 1 |
Ruby | Ruby | make edge and dev options use edge mysql2 | b023bcf71b685c0088b2b1f79bc52e8797ce3538 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def set_default_accessors!
<ide> end
<ide>
<ide> def database_gemfile_entry
<del> options[:skip_active_record] ? "" : "gem '#{gem_for_database}'"
<add> entry = options[:skip_active_record] ? "" : "gem '#{gem_for_database}'"
<add> ... | 1 |
Text | Text | fix spanish description mixing inline term | 4d3aebb7f797c5852879c66137f96186a94d3a7e | <ide><path>curriculum/challenges/spanish/03-front-end-libraries/bootstrap/use-a-span-to-target-inline-elements.spanish.md
<ide> localeTitle: Use un lapso para apuntar elementos en línea
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Puede utilizar intervalos para crear elementos en línea. ¿Recuer... | 1 |
Go | Go | display usage when no parameter | c105049f7ea5927ec9d7258624391f6a2b43a6a3 | <ide><path>commands.go
<ide> func (srv *Server) CmdRm(stdin io.ReadCloser, stdout io.Writer, args ...string)
<ide> if err := cmd.Parse(args); err != nil {
<ide> return nil
<ide> }
<add> if cmd.NArg() < 1 {
<add> cmd.Usage()
<add> return nil
<add> }
<ide> for _, name := range cmd.Args() {
<ide> container := srv... | 1 |
Python | Python | add sentinels in tokenizer | b4fcd59a5ae8d12102db106d3b03849ef86109bd | <ide><path>transformers/tokenization_t5.py
<ide>
<ide> import logging
<ide> import os
<add>import re
<ide> import six
<ide> from shutil import copyfile
<ide>
<ide> # Mapping from the keyword arguments names of Tokenizer `__init__`
<ide> # to file names for serializing Tokenizer instances
<ide> #######################... | 1 |
Python | Python | fix movinet imports | e5ed74416ac8dcf501cf0ef0d987cd1c3f2921e7 | <ide><path>official/vision/beta/projects/movinet/configs/movinet.py
<ide> from official.modeling import hyperparams
<ide> from official.vision.beta.configs import backbones_3d
<ide> from official.vision.beta.configs import common
<del>from official.vision.beta.configs.google import video_classification
<add>from offici... | 1 |
Ruby | Ruby | generate html not plain text | 1e7f6488f7e4d52c444233ebd95b830b304030b9 | <ide><path>guides/rails_guides/markdown.rb
<ide> def render_page
<ide> @view.content_for(:header_section) { @header }
<ide> @view.content_for(:page_title) { @title }
<ide> @view.content_for(:index_section) { @index }
<del> @view.render(layout: @layout, plain: @body)
<add> @view.ren... | 1 |
Text | Text | encourage https for bottle hosting | d3d1b6f0fe57660d6b3f6cf74e08b75ba5322649 | <ide><path>share/doc/homebrew/Bottles.md
<ide> end
<ide> A full example:
<ide> ```ruby
<ide> bottle do
<del> root_url "http://mikemcquaid.com"
<add> root_url "https://example.com"
<ide> prefix "/opt/homebrew"
<ide> cellar "/opt/homebrew/Cellar"
<ide> revision 4 | 1 |
Python | Python | add metrics hinge, squaredhinge, categoricalhinge | 9cfc0d17ea703e48f60a96e70c871c9faf89e5f5 | <ide><path>keras/metrics.py
<ide> from .losses import hinge
<ide> from .losses import logcosh
<ide> from .losses import squared_hinge
<add>from .losses import categorical_hinge
<ide> from .losses import categorical_crossentropy
<ide> from .losses import sparse_categorical_crossentropy
<ide> from .losses import binary_c... | 2 |
Ruby | Ruby | add missing require | 9773f6e1aab6d4e6e714f1582d18b0fbbd8112f7 | <ide><path>activerecord/lib/active_record/railties/controller_runtime.rb
<ide> require 'active_support/core_ext/module/attr_internal'
<add>require 'active_record/log_subscriber'
<ide>
<ide> module ActiveRecord
<ide> module Railties | 1 |
Python | Python | fix the checkpoint for i-bert | bf0840accc41a16a53ddd4edb9e5b69b536eea91 | <ide><path>src/transformers/models/ibert/modeling_ibert.py
<ide>
<ide> logger = logging.get_logger(__name__)
<ide>
<del>_CHECKPOINT_FOR_DOC = "ibert-roberta-base"
<add>_CHECKPOINT_FOR_DOC = "kssteven/ibert-roberta-base"
<ide> _CONFIG_FOR_DOC = "IBertConfig"
<ide> _TOKENIZER_FOR_DOC = "RobertaTokenizer"
<ide> | 1 |
Java | Java | preserve order of onstatus handlers | 3691c187ef5f296604764014632286663a1ba8aa | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> private static class DefaultResponseSpec implements ResponseSpec {
<ide>
<ide> private static final IntPredicate STATUS_CODE_ERROR = value -> value >= 400;
<ide>
<add> private static final StatusHan... | 2 |
PHP | PHP | add doc block hints | fd10b3ce72de2dd48ba1c69c8475fd4cb98fce2d | <ide><path>src/Illuminate/Console/Scheduling/Event.php
<ide> class Event {
<ide> /**
<ide> * The timezone the date should be evaluated on.
<ide> *
<del> * @var string
<add> * @var \DateTimeZone|string
<ide> */
<ide> protected $timezone;
<ide>
<ide> public function days($days)
<ide> /**
<ide> * Set the tim... | 1 |
PHP | PHP | remove old tests | 0b7974d0724e7a842cee7a19ccb6888e10269a8f | <ide><path>tests/Encryption/EncrypterTest.php
<ide> public function testExceptionThrownWhenPayloadIsInvalid()
<ide> }
<ide>
<ide>
<del> public function testCanStillBeConstructedWithInvalidKeys()
<del> {
<del> $e = new Encrypter(''); // should not throw an exception
<del>
<del> $e = new Encrypter('YourSecretKey!!!'... | 1 |
Text | Text | fix docs for show_detailed_exceptions? | d42f51d6fd1ae67276ee19c26e3129236c8d12aa | <ide><path>guides/source/configuring.md
<ide> application. Accepts a valid week day symbol (e.g. `:monday`).
<ide>
<ide> * `config.colorize_logging` specifies whether or not to use ANSI color codes when logging information. Defaults to `true`.
<ide>
<del>* `config.consider_all_requests_local` is a flag. If `true` the... | 1 |
Text | Text | update russian readme.md | ddc2275a8574dd2b013fb2d9af4584bd4e990c01 | <ide><path>docs/russian/README.md
<ide>
<ide> Этот каталог содержит всю документацию о внесении вклада в freeCodeCamp.org
<ide>
<del>## [Если вы начинающий, сначала прочтите это.](/CONTRIBUTING.md)
<add>## [Если вы начинающий, сначала прочтите это.](/docs/russian/CONTRIBUTING.md)
<ide>
<ide>
<ide> ---
<ide>
<del>#... | 1 |
Javascript | Javascript | accommodate aix by watching file | 275d0b30a0ee9e6e16b9071ebecf5ace4c5caaf5 | <ide><path>test/async-hooks/test-fseventwrap.js
<ide> 'use strict';
<del>
<ide> require('../common');
<add>
<ide> const assert = require('assert');
<ide> const initHooks = require('./init-hooks');
<ide> const tick = require('./tick');
<ide> const fs = require('fs');
<ide> const hooks = initHooks();
<ide>
<ide> hooks.e... | 1 |
Ruby | Ruby | add env.libxml2 and env.x11 for linux | e2c707d8b12fcf8deed952de8b1a181df6652cca | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def set_cpu_flags(flags, default = DEFAULT_FLAGS, map = Hardware::CPU.optimizati
<ide> end
<ide> alias generic_set_cpu_flags set_cpu_flags
<ide>
<add> def x11; end
<add>
<ide> # @private
<ide> def effective_arch
<ide> if ARGV.build_bottle?
<ide><path>Lib... | 3 |
Text | Text | use brew --repository shorthand in cask cookbook | 999a3c66f98273329f40f85048da9f6428b4862d | <ide><path>docs/Cask-Cookbook.md
<ide> There are a few different ways the `appcast` can be determined:
<ide>
<ide> * An appcast can be any URL hosted by the app’s developer that changes every time a new release is out or that contains the version number of the current release (e.g. a download HTML page). Webpages that... | 3 |
Python | Python | add test for ex_enable_static_website method | 358c298eaedf12b2db8e9d08f6367444def49ca4 | <ide><path>test/storage/test_cloudfiles.py
<ide> def test__upload_object_manifest_wrong_hash(self):
<ide> finally:
<ide> self.driver.connection.request = _request
<ide>
<add> def test_ex_enable_static_website(self):
<add> container = Container(name='foo_bar_container', extra={}, driver=se... | 1 |
Text | Text | put description of pr to the end of tmpl | 4bd8b20f20b7decab950ce36a8d7dd34c648da19 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<del>### Description of change
<del>
<del>_Please provide a description of the change here._
<del>
<ide> ### Pull Request check-list
<ide>
<ide> _Please make sure to review and check all of these items:_
<ide> _Please make sure to review and check all of these items:_
<ide> ... | 1 |
Go | Go | change the errors.new() with fmt.errof | b2cf5041cd9a491b40b0a15c152655264f854d6b | <ide><path>fs/store_test.go
<ide> package fs
<ide>
<ide> import (
<del> "errors"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/fake"
<ide> "github.com/dotcloud/docker/future"
<ide> func healthCheck(store *Store) error {
<ide> for _, img := range images {
<ide> // Check for duplicate IDs per path
<ide> if _,... | 2 |
Go | Go | sd_notify ready status when accepting api requests | 97088ebef7c638f8175d7c61934642eeb2c054c4 | <ide><path>api.go
<ide> import (
<ide> "fmt"
<ide> "github.com/dotcloud/docker/archive"
<ide> "github.com/dotcloud/docker/auth"
<add> "github.com/dotcloud/docker/systemd"
<ide> "github.com/dotcloud/docker/utils"
<ide> "github.com/gorilla/mux"
<ide> "io"
<ide> func ServeRequest(srv *Server, apiversion float64, w h... | 2 |
Python | Python | add wine-based bdist_wininst installers | db3320c49ba7f7cd3f7966d34d7b229308ff88e3 | <ide><path>pavement.py
<ide> from paver.easy import options, Bunch, task, needs, dry, sh, call_task
<ide> from paver.setuputils import setup
<ide>
<add># Wine config for win32 builds
<add>WINE_SITE_CFG = ""
<add>WINE_PY25 = "/home/david/.wine/drive_c/Python25/python.exe"
<add>WINE_PY26 = "/home/david/.wine/drive_c/Pyt... | 1 |
Ruby | Ruby | simplify tap formula loading | 757c8ade0ba98d0a1c235df77572780b03998228 | <ide><path>Library/Homebrew/formulary.rb
<ide> def get_formula
<ide>
<ide> # Loads tapped formulae.
<ide> class TapLoader < FormulaLoader
<add> attr_reader :tapped_name
<add>
<ide> def initialize tapped_name
<del> super tapped_name, Pathname.new(tapped_name)
<add> @tapped_name = tapped_name
<add> ... | 1 |
Python | Python | fix entity creation | 0b2d7ae9d6a8e79ba4b2abc4cc7796654dc2fe97 | <ide><path>spacy/language.py
<ide> def Entity(self, vocab):
<ide> if self.path and (self.path / 'ner').exists():
<ide> return Parser.load(self.path / 'ner', vocab, BiluoPushDown)
<ide> else:
<del> return Parser.blank(vocab, BiluoPushdown,
<add> return Parser.blank(vocab... | 1 |
PHP | PHP | unify validation exception formatting. | e73fed36f4091ab0c84ef66d217a2d7d45560b61 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> class Handler implements ExceptionHandlerContract
<ide> protected $container;
<ide>
<ide> /**
<del> * A list of the exception types that should not be reported.
<add> * A list of the exception types that are not reported.
<ide> *
<i... | 4 |
Python | Python | fix typo inside bloom documentation | ced1f1f5db06c83ffe2b2641a434e775cf659b53 | <ide><path>src/transformers/models/bloom/modeling_bloom.py
<ide>
<ide> logger = logging.get_logger(__name__)
<ide>
<del>_CHECKPOINT_FOR_DOC = "bigscience/Bloom"
<add>_CHECKPOINT_FOR_DOC = "bigscience/bloom"
<ide> _CONFIG_FOR_DOC = "BloomConfig"
<ide> _TOKENIZER_FOR_DOC = "BloomTokenizerFast"
<ide> | 1 |
Java | Java | update package structure | 741927664c456bd2ab5f9710ef4758092754457d | <add><path>spring-websocket/src/main/java/org/springframework/websocket/endpoint/StandardSessionAdapter.java
<del><path>spring-websocket/src/main/java/org/springframework/websocket/support/StandardSessionAdapter.java
<ide> * limitations under the License.
<ide> */
<ide>
<del>package org.springframework.websocket.sup... | 10 |
PHP | PHP | add prefix support to resources | 5b7a7889e1a54ef16c149632c2342b344f290eeb | <ide><path>src/Routing/RouteBuilder.php
<ide> public function namePrefix($value = null)
<ide> * - 'actions' - Override the method names used for connecting actions.
<ide> * - 'map' - Additional resource routes that should be connected. If you define 'only' and 'map',
<ide> * make sure that your mapped ... | 3 |
Mixed | Python | add docbin to/from_disk methods and update docs | ef2c67cca52b95b621a2c801db39c69daf9045ea | <ide><path>spacy/gold/corpus.py
<ide> class Corpus:
<ide>
<ide> def __init__(
<ide> self,
<del> path,
<add> path: Union[str, Path],
<ide> *,
<ide> limit: int = 0,
<ide> gold_preproc: bool = False,
<ide> def read_docbin(
<ide> for loc in locs:
<ide> ... | 5 |
Java | Java | allow redirectattributes on exceptionhandlers | 17089d607feb28c5f7689ecdf2eb0a145430f3a9 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
<ide> import org.springframework.web.servlet.ModelAndView;
<ide> import org.springframework.web.servlet.View;
<ide> import org.springframework.web.servlet.handler.AbstractHandlerMethodExce... | 3 |
Text | Text | fix changelog [ci skip] | 49bc29a8fbbc420510578033688c10b4c611e0e2 | <ide><path>actiontext/CHANGELOG.md
<add>* Allow passing in a custom `direct_upload_url` or `blob_url_template` to `rich_text_area_tag`.
<add>
<add> *Lucas Mansur*
<add>
<add>
<ide> ## Rails 7.0.0.alpha2 (September 15, 2021) ##
<ide>
<del>* Allow passing in a custom `direct_upload_url` or `blob_url_template` to ... | 1 |
Javascript | Javascript | support all $http.config actions | af89daf4641f57b92be6c1f3635f5a3237f20c71 | <ide><path>src/ngResource/resource.js
<ide> * the data object (useful for non-GET operations).
<ide> *
<ide> * @param {Object.<Object>=} actions Hash with declaration of custom action that should extend the
<del> * default set of resource actions. The declaration should be created in the following format:
<add> ... | 2 |
PHP | PHP | remove hardcoded view class | 6711eb81b3bcad2d95ad6e5fab583e1b6b91bc07 | <ide><path>src/Network/Email/Email.php
<ide> protected function _renderTemplates($content) {
<ide> } else {
<ide> $viewClass = App::className($viewClass, 'View', 'View');
<ide> }
<del> $viewClass = 'Cake\View\View';
<ide>
<ide> $View = new $viewClass(null);
<ide> $View->viewVars = $this->_viewVars; | 1 |
Text | Text | remove usage of deprecated v8 apis in addons.md | d9ea50ee66b93266f0c8ebe9d98502816e04acf2 | <ide><path>doc/api/addons.md
<ide> void Add(const FunctionCallbackInfo<Value>& args) {
<ide> }
<ide>
<ide> // Perform the operation
<del> double value = args[0]->NumberValue() + args[1]->NumberValue();
<add> double value =
<add> args[0].As<Number>()->Value() + args[1].As<Number>()->Value();
<ide> Local<Nu... | 1 |
Javascript | Javascript | extract dag vertex to its own constructor | e2cad66d95bbdbd6c50bb9d499c5bfee469f6323 | <ide><path>packages/ember-application/lib/system/dag.js
<ide> function visit(vertex, fn, visited, path) {
<ide> function DAG() {
<ide> this.names = [];
<ide> this.vertices = {};
<add>/**
<add> * DAG Vertex
<add> *
<add> * @class Vertex
<add> * @constructor
<add> */
<add>
<add>function Vertex(name) {
<add> this.nam... | 1 |
Javascript | Javascript | simplify own keys retrieval | f2432a47616979780e7ca76a935e5f05c4ee31b5 | <ide><path>lib/internal/safe_globals.js
<ide> 'use strict';
<ide>
<ide> const copyProps = (unsafe, safe) => {
<del> for (const key of [...Object.getOwnPropertyNames(unsafe),
<del> ...Object.getOwnPropertySymbols(unsafe)
<del> ]) {
<add> for (const key of Reflect.ownKeys(unsafe)) {
<ide> if (... | 1 |
Ruby | Ruby | improve serialize api doc [ci-skip] | 29b2a571ad928f4d153754c7d357b788935cb18f | <ide><path>activerecord/lib/active_record/attribute_methods/serialization.rb
<ide> module ClassMethods
<ide> # The serialization format may be YAML, JSON, or any custom format using a
<ide> # custom coder class.
<ide> #
<del> # === Serialization formats
<del> #
<del> # ser... | 1 |
Java | Java | allow overriding invokesuspendingfunction | ff844ed99f90c36dfcfa16086d75665671ab9e97 | <ide><path>spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java
<ide> import java.util.Arrays;
<ide>
<ide> import org.springframework.context.MessageSource;
<add>import org.jetbrains.annotations.NotNull;
<add>import org.reactivestreams.Publisher;
<add>
<ide> import org.springfram... | 1 |
Python | Python | move references to `tf_record_iterator`. | a1eb92b03e945232af274c37cdcb7e03ff99e903 | <ide><path>official/transformer/data_download.py
<ide> def shuffle_records(fname):
<ide> tmp_fname = fname + ".unshuffled"
<ide> tf.gfile.Rename(fname, tmp_fname)
<ide>
<del> reader = tf.python_io.tf_record_iterator(tmp_fname)
<add> reader = tf.compat.v1.io.tf_record_iterator(tmp_fname)
<ide> records = []
<ide... | 1 |
Text | Text | update actionpack changelog | 28595e01283b5c14f20929e782c1fca52ea7a0cc | <ide><path>actionpack/CHANGELOG.md
<add>* Extract source code for the entire exception stack trace for
<add> better debugging and diagnosis.
<add>
<add> *Ryan Dao*
<add>
<ide> * Allows ActionDispatch::Request::LOCALHOST to match any IPv4 127.0.0.0/8
<ide> loopback address.
<ide> | 1 |
Javascript | Javascript | fix race condition in transition tests | 82051284b1c8b0e468ed5c908347d2f15b575cb2 | <ide><path>test/core/transition-test.js
<ide> suite.export(module);
<ide>
<ide> var suite = vows.describe("transition");
<ide>
<add>// Subtransitions
<ide> suite.addBatch({
<del>
<del> // Subtransitions
<ide> "select": require("./transition-test-select"),
<ide> "selectAll": require("./transition-test-selectAll")... | 1 |
Javascript | Javascript | use substitute of isarraybuffer | 176e534a26f26ce613da4d95db1cbdc81d1cae50 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide>
<ide> open: function pdfViewOpen(url, scale, password) {
<ide> var parameters = {password: password};
<del> if (typeof url === 'string') {
<add> if (typeof url === 'string') { // URL
<ide> this.url = url;
<ide> document.title = decodeURICompo... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.