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
Ruby
Ruby
add lost log messages about template rendering
cdda7defa0a37ff776ca961c8eeae347a46dd59b
<ide><path>actionpack/lib/action_controller/base.rb <ide> def reset_session #:doc: <ide> <ide> private <ide> def render_for_file(template_path, status = nil, layout = nil, locals = {}) #:nodoc: <del> logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger <ide> ren...
2
Text
Text
fix eslint-plugin readme.md
4a97791341c6c8fb58ee38f399d8ec8952aa2ba6
<ide><path>packages/eslint-plugin-react-native-community/README.md <ide> # eslint-plugin-react-native-community <ide> <del>This plugin is intended to be used in `@react-native-community/eslint-plugin`. You probably want to install that package instead. <add>This plugin is intended to be used in [`@react-native-communi...
1
PHP
PHP
apply fixes from styleci
3baf47598da6cfdefda6625c713e79f0ff2c29a5
<ide><path>src/Illuminate/Database/Eloquent/Relations/HasOne.php <ide> public function match(array $models, Collection $results, $relation) <ide> */ <ide> public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) <ide> { <del> if($this->isOneOfMany()) { <add> ...
3
Go
Go
remove canaccess(), and move to daemon
69f72417f444c2e0589767019e697a161bb912a9
<ide><path>daemon/daemon_unix.go <ide> import ( <ide> "strconv" <ide> "strings" <ide> "sync" <add> "syscall" <ide> "time" <ide> <ide> "github.com/containerd/cgroups" <ide> func setupDaemonRoot(config *config.Config, rootDir string, remappedRoot idtools <ide> if dirPath == "/" { <ide> break <ide> } <del>...
3
Go
Go
remove dead code looking for non-existent err msg
d351aef8afc5a215668248652aad52856949eaa0
<ide><path>api/client/inspect.go <ide> func (cli *DockerCli) CmdInspect(args ...string) error { <ide> for _, name := range cmd.Args() { <ide> obj, _, err := readBody(cli.call("GET", "/containers/"+name+"/json", nil, nil)) <ide> if err != nil { <del> if strings.Contains(err.Error(), "Too many") { <del> fmt.Fpr...
1
Javascript
Javascript
add hidestack testcase
a5bf0a2fbcbbf5434ff672309819a5385569fda6
<ide><path>test/cases/compile/error-hide-stack/errors.js <add>module.exports = [ <add> [/Module build failed: Message\nStack/] <add>]; <ide>\ No newline at end of file <ide><path>test/cases/compile/error-hide-stack/index.js <add>it("should hide stack in details", function() { <add> (function f() { <add> require("./loa...
3
Javascript
Javascript
add test for mounting into a document fragment
5f93ee6f6ce068228b01516c021c9054b627bf11
<ide><path>src/renderers/dom/fiber/__tests__/ReactDOMFiber-test.js <ide> describe('ReactDOMFiber', () => { <ide> expect(actualDocument).toBe(iframeDocument); <ide> expect(iframeContainer.appendChild).toHaveBeenCalledTimes(1); <ide> }); <add> <add> it('should mount into a document fragment', () => { <add> ...
1
PHP
PHP
add new `conjoin()` method to collection
5b6ba5acb3961b809148fca234f0285d4cb22891
<ide><path>src/Illuminate/Support/Collection.php <ide> public function collapse() <ide> return new static(Arr::collapse($this->items)); <ide> } <ide> <add> /** <add> * Conjoin all values of a collection with those of another, regardless of keys. <add> * <add> * @param \Traversable $source ...
2
Mixed
Text
update nel docs after latest refactor
40276fd3be231be6969f8c51889c13e77a726fa8
<ide><path>spacy/ml/models/entity_linker.py <add>from pathlib import Path <ide> from typing import Optional, Callable, Iterable <ide> from thinc.api import chain, clone, list2ragged, reduce_mean, residual <ide> from thinc.api import Model, Maxout, Linear <ide> def build_nel_encoder(tok2vec: Model, nO: Optional[int] = N...
3
PHP
PHP
fix cs error
929c38c5ff9e705fd5b85ca1ad5cd9986c4d4308
<ide><path>src/Datasource/EntityTrait.php <ide> public function set($field, $value = null, array $options = []) <ide> $options += ['setter' => true, 'guard' => $guard]; <ide> <ide> foreach ($field as $name => $value) { <del> $name = (string) $name; <add> $name = (string)$name; <id...
2
Python
Python
add parametrize for interpolation methods
2faf8edd635c8c700a3f5215cc747e268541b6bc
<ide><path>numpy/lib/tests/test_function_base.py <ide> def test_linear_nan_1D(self, dtype): <ide> np.testing.assert_equal(res, np.NAN) <ide> np.testing.assert_equal(res.dtype, arr.dtype) <ide> <del> TYPE_CODES = np.typecodes["AllInteger"] + np.typecodes["AllFloat"] + "O" <del> <del> @pytest.mark....
1
Text
Text
add sudo for related command
f7fe2f0992126d45802a376b6da760d4e2b8607c
<ide><path>docs/userguide/storagedriver/imagesandcontainers.md <ide> single 8GB general purpose SSD EBS volume. The Docker data directory <ide> centos latest c8a648134623 4 weeks ago 196.6 MB <ide> ubuntu 15.04 c8be1ac8145a 7 weeks ago ...
1
PHP
PHP
fix a typo
79d214c720ab9c84e2388fb87d351933008fdc8e
<ide><path>tests/TestCase/Validation/ValidationTest.php <ide> public function testUploadedFilePsr7($expected, $options) <ide> } <ide> <ide> /** <del> * Test the compareFields method with eual result. <add> * Test the compareFields method with equal result. <ide> * <ide> * @return void <ide> ...
1
Ruby
Ruby
make close message detection more precise
da3c9a1e167ec4f1d819bae0296e4567c3425078
<ide><path>Library/Homebrew/cmd/pull.rb <ide> def pull <ide> end <ide> <ide> # If this is a pull request, append a close message. <del> unless message.include? 'Closes #' <add> unless message.include? "Closes ##{issue}." <ide> message += "\nCloses ##{issue}." <ide> saf...
1
Text
Text
update laracasts videos stats in readme
230bb3a7403bd6a0c3933d75a10af93a34df7007
<ide><path>README.md <ide> Laravel is accessible, yet powerful, providing tools needed for large, robust ap <ide> <ide> Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The [Laravel documentation](https://laravel.com/docs) is thorough, comple...
1
Javascript
Javascript
move linkto docs to helper instead of linkview
174bc158d79148dea5445db75c7ca785fd2cca6b
<ide><path>packages/ember-routing/lib/helpers/link_to.js <ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) { <ide> return ret.concat(resolvedPaths(linkView.parameters)); <ide> } <ide> <add> /** <add> @class LinkView <add> @namespace Ember <add> @extends Ember.View <add> **/ <add> var LinkVi...
1
Javascript
Javascript
use inheritance for iterators in `iterable`
662e76dfe834dafa1a8c519896438bfcd5e723ab
<ide><path>packages/ember-glimmer/lib/utils/iterable.js <ide> function identity(item) { <ide> function ensureUniqueKey(seen, key) { <ide> let seenCount = seen[key]; <ide> <del> if (seenCount) { <add> if (seenCount > 0) { <ide> seen[key]++; <ide> return `${key}${ITERATOR_KEY_GUID}${seenCount}`; <ide> } el...
1
Python
Python
fix import order
4f40714169c2c676fd76be596c3dd543bad06c84
<ide><path>tests/test_authentication.py <ide> <ide> from django.conf.urls import include, url <ide> from django.contrib.auth.models import User <add>from django.db import models <ide> from django.http import HttpResponse <ide> from django.test import TestCase <ide> from django.utils import six <del>from django.db impo...
1
PHP
PHP
fix validation tests one more time
de53feb07e431077d5b78548fddc9919ef5ab09c
<ide><path>laravel/tests/cases/validator.test.php <ide> public function testTheDateFormatRule() <ide> $rules = array('date' => 'date_format:j-M-Y'); <ide> $this->assertTrue(Validator::make($input, $rules)->valid()); <ide> <del> $input['date'] = '2009-02-15 15:16:17'; <del> $rules['date'] = 'date_format:Y-m-d H\\...
1
PHP
PHP
param_str
3771406f049e0bb766152b56af1384e0ec6be574
<ide><path>src/Illuminate/Database/Connection.php <ide> public function bindValues($statement, $bindings) <ide> foreach ($bindings as $key => $value) { <ide> $statement->bindValue( <ide> is_string($key) ? $key : $key + 1, $value, <del> filter_var($value, FILTER_VALIDAT...
1
Python
Python
add mongo projections to hook and transfer
987575787d82abf5b4e68b669fdb3bcab08965e6
<ide><path>airflow/providers/amazon/aws/transfers/mongo_to_s3.py <ide> class MongoToS3Operator(BaseOperator): <ide> :type mongo_collection: str <ide> :param mongo_query: query to execute. A list including a dict of the query <ide> :type mongo_query: Union[list, dict] <add> :param mongo_projection: option...
4
Python
Python
use simpler dict.get() rather than try/except
b7edd463139a02ccad268bc6c9f8a17d02641421
<ide><path>rest_framework/fields.py <ide> def to_internal_value(self, data): <ide> except KeyError: <ide> self.fail('invalid_choice', input=data) <ide> <del> def representation_value(self, value): <del> try: <del> return self.choice_strings_to_values[six.text_type(value)] <del>...
1
Javascript
Javascript
fix the total size of roundedboxbuffergeometry
3e231ef9008bce4ad1a7629ee674e39a83a2cc1e
<ide><path>examples/jsm/geometries/RoundedBoxBufferGeometry.js <ide> class RoundedBoxBufferGeometry extends BoxBufferGeometry { <ide> for ( let i = 0, j = 0; i < positions.length; i += 3, j += 2 ) { <ide> <ide> position.fromArray( positions, i ); <del> normal.copy( position ).normalize(); <del> <del> position...
1
Go
Go
prevent breakout in applylayer
31d1d733037b22591e2dd2edfe6c4d2d4b8086cc
<ide><path>pkg/archive/diff.go <ide> import ( <ide> // ApplyLayer parses a diff in the standard layer format from `layer`, and <ide> // applies it to the directory `dest`. <ide> func ApplyLayer(dest string, layer ArchiveReader) error { <add> dest = filepath.Clean(dest) <add> <ide> // We need to be able to set any perm...
1
Javascript
Javascript
remove the use of util.isfunction
7fa03b54c88f930d24f2f0e2ceb0e94dc5a6ad77
<ide><path>lib/inspector.js <ide> if (!hasInspector) <ide> <ide> const EventEmitter = require('events'); <ide> const { validateString } = require('internal/validators'); <del>const util = require('util'); <ide> const { isMainThread } = require('worker_threads'); <ide> <ide> const { <ide> class Session extends EventEm...
1
PHP
PHP
implement remaining tests for dispatcherfilter
3c86c3feb2826f078a6423e7596c02db99e6a14b
<ide><path>src/Routing/DispatcherFilter.php <ide> * event listener with the ability to alter the request or response as needed before it is handled <ide> * by a controller or after the response body has already been built. <ide> * <del> * ### Limiting middleware to specific paths <add> * ### Limiting filters to spec...
2
Text
Text
add a tip to use switch
e4b4ad532f358d634b7b2582afe823f4f1f60c82
<ide><path>share/doc/homebrew/Tips-N'-Tricks.md <ide> This can be useful if a package can't build against the version of something you <ide> <ide> And of course, you can simply `brew link $FORMULA` again afterwards! <ide> <add>## Activate a previously installed version of a formula <add> <add>```sh <add>brew info $FO...
1
Javascript
Javascript
fix typo in test
158809db1195e6082b71b134a56f30ffe2aa7e11
<ide><path>packages/ember-metal/tests/accessors/get_test.js <ide> test('warn on attempts to get a property path of undefined', function() { <ide> }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/); <ide> }); <ide> <del>test('warn on attemps to get a falsy property', function() { <add>test('warn o...
1
Text
Text
add introduce about cli options
bc51428bf8311f307ef38085d4567d4ba3be3cb0
<ide><path>doc/guides/writing-and-running-benchmarks.md <ide> The `compare.js` tool will then produce a csv file with the benchmark results. <ide> $ node benchmark/compare.js --old ./node-master --new ./node-pr-5134 string_decoder > compare-pr-5134.csv <ide> ``` <ide> <add>*Tips: there are some useful options of `benc...
1
Go
Go
use json.encoder for container.todisk
cf02b369e077022335f01b2f78ebd759129de82a
<ide><path>daemon/container.go <ide> func (container *Container) fromDisk() error { <ide> } <ide> <ide> func (container *Container) toDisk() error { <del> data, err := json.Marshal(container) <add> pth, err := container.jsonPath() <ide> if err != nil { <ide> return err <ide> } <ide> <del> pth, err := container.js...
1
Javascript
Javascript
reduce extra rendering in navigationcard
bb39a2e9da7ba2d89c9d5e55cc6d730a56edd7c0
<ide><path>Examples/UIExplorer/UIExplorerExampleList.js <ide> /** <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 this source tree. An additional grant <add...
2
PHP
PHP
convert fqcns to use statements
a60e844de0d580d85e86e2a2da6937e4e5d111c9
<ide><path>src/Shell/CacheShell.php <ide> namespace Cake\Shell; <ide> <ide> use Cake\Cache\Cache; <add>use Cake\Cache\Engine\ApcEngine; <add>use Cake\Cache\Engine\WincacheEngine; <ide> use Cake\Console\Shell; <ide> use Cake\Core\Configure; <ide> <ide> public function clear($prefix = null) <ide> try { <ide> ...
1
PHP
PHP
add support for ltree
89b316851eeba4c9e2ea19c87d928b96696f3259
<ide><path>src/Illuminate/Database/Console/DatabaseInspectionCommand.php <ide> abstract class DatabaseInspectionCommand extends Command <ide> 'geometry' => 'string', <ide> 'geomcollection' => 'string', <ide> 'linestring' => 'string', <add> 'ltree' => 'string', <ide> 'multilinestri...
1
Text
Text
fix ie8 tests for videojs_no_dynamic_style. closes
3070e738f1c63044eae24d78847466d5ece4010f
<ide><path>CHANGELOG.md <ide> CHANGELOG <ide> * @ricardosiri68 changed the relative sass paths ([view](https://github.com/videojs/video.js/pull/3147)) <ide> * @gkatsev added an option to keep the tooltips inside the player bounds ([view](https://github.com/videojs/video.js/pull/3149)) <ide> * @defli added currentWidth ...
1
Python
Python
remove unused variables in examples
81422c4e6d213767dc075f20049e8fd201675029
<ide><path>examples/contrib/run_openai_gpt.py <ide> AdamW, <ide> OpenAIGPTDoubleHeadsModel, <ide> OpenAIGPTTokenizer, <del> cached_path, <ide> get_linear_schedule_with_warmup, <ide> ) <ide> <ide> <del>ROCSTORIES_URL = "https://s3.amazonaws.com/datasets.huggingface.co/ROCStories.tar.gz" <del> <ide> ...
4
PHP
PHP
remove unneeded variable assignments
334bcc1571640cf33e1354ee6e72223d4f0302ab
<ide><path>src/Cache/Engine/FileEngine.php <ide> protected function _clearDirectory(string $path): void <ide> <ide> if ($file->isFile()) { <ide> $filePath = $file->getRealPath(); <del> $file = null; <add> unset($file); <ide> <ide> // phpcs:disa...
17
Mixed
Javascript
make use of "cannot" consistent
9f22fda6466e835f4fb56552c4d3a9d98eb1c1d7
<ide><path>doc/api/errors.md <ide> To fix the error, open an issue at https://github.com/nodejs/node/issues. <ide> <a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a> <ide> ### `ERR_INCOMPATIBLE_OPTION_PAIR` <ide> <del>An option pair is incompatible with each other and can not be used at the same <add>An option pair is incompat...
4
Javascript
Javascript
add test for exec() known issue
c96457403eef895a5541429404207c1985df240f
<ide><path>test/known_issues/test-child-process-exec-stdout-data-string.js <add>'use strict'; <add>// Refs: https://github.com/nodejs/node/issues/7342 <add>const common = require('../common'); <add>const assert = require('assert'); <add>const exec = require('child_process').exec; <add> <add>const expectedCalls = 2; <ad...
1
Ruby
Ruby
use non-raising finder
fcc47bcfccc7578aa0414710eecdad006085a911
<ide><path>activesupport/lib/active_support/current_attributes.rb <ide> module ActiveSupport <ide> # <ide> # private <ide> # def authenticate <del> # if authenticated_user = User.find(cookies.signed[:user_id]) <add> # if authenticated_user = User.find_by(id: cookies.signed[:user_id]) <...
1
Text
Text
correct typos in back end development and apis
a481b9525cdeec478647915cb7ff94de560e468e
<ide><path>curriculum/challenges/english/05-back-end-development-and-apis/mongodb-and-mongoose/create-a-model.md <ide> dashedName: create-a-model <ide> <ide> **C**RUD Part I - CREATE <ide> <del>First of all we need a Schema. Each schema maps to a MongoDB collection. It defines the shape of the documents within that c...
1
Python
Python
fix torch to tf translation
a2c8e516c2fb55cf37844d434ae04b5abcfbc81b
<ide><path>src/transformers/modeling_tf_utils.py <ide> def generate( <ide> <ide> # create attention mask if necessary <ide> # TODO (PVP): this should later be handled by the forward fn() in each model in the future see PR 3140 <del> if (attention_mask is None) and (pad_token_id is not None) and ...
1
Javascript
Javascript
add vibration module mock
79529a1c77e7e1b174fdbe8103a2199c9ac924ff
<ide><path>jest/setup.js <ide> jest <ide> '../Libraries/Utilities/verifyComponentAttributeEquivalence', <ide> () => function () {}, <ide> ) <add> .mock('../Libraries/Vibration/Vibration', () => ({ <add> vibrate: jest.fn(), <add> cancel: jest.fn(), <add> })) <ide> .mock('../Libraries/Components/View/...
1
Ruby
Ruby
remove the patch from the cache after applying it
d706bcf153ca09932b9166a4d664a33aed77d693
<ide><path>Library/Contributions/cmd/brew-pull.rb <ide> def tap arg <ide> rescue ErrorDuringExecution <ide> system 'git', 'am', '--abort' <ide> odie 'Patch failed to apply: aborted.' <add> ensure <add> patchpath.unlink <ide> end <ide> <ide> changed_formulae = []
1
PHP
PHP
remove 2 duplicate routecollection tests.
d25de019447e66fe44376a13dbf09956cdadd354
<ide><path>tests/Routing/RouteCollectionTest.php <ide> public function testRouteCollectionAddReturnsTheRoute() <ide> $this->assertEquals($inputRoute, $outputRoute); <ide> } <ide> <del> public function testRouteCollectionAddRouteChangesCount() <del> { <del> $this->routeCollection->add(new Route...
1
Python
Python
remove legacy axis handling in tf backend
46b691e302e896053c4fd167ca4ec688d957b245
<ide><path>keras/backend/tensorflow_backend.py <ide> def gather(reference, indices): <ide> <ide> # ELEMENT-WISE OPERATIONS <ide> <del>def _normalize_axis(axis, ndim): <del> """Converts negative axes to positive values. <del> <del> # Arguments <del> axis: Integer axis (possibly negative). <del> ndi...
1
PHP
PHP
add deprecation comments (cs related)
9ba194427c9d02edbefbcbc56ef0e02f4b4448af
<ide><path>src/Validation/Validation.php <ide> public static function comparison($check1, $operator, $check2) <ide> switch ($operator) { <ide> case 'isgreater': <ide> deprecationWarning(sprintf($message, $operator, 'COMPARE_GREATER')); <add> // @deprecated 3.6.0 Use Va...
1
Text
Text
include latest version of jquery in tutorial
580f2d829bc306ba1c7cabea8a9299bdbc2a5670
<ide><path>docs/docs/tutorial.md <ide> For this tutorial, we'll use prebuilt JavaScript files on a CDN. Open up your fa <ide> <title>Hello React</title> <ide> <script src="https://fb.me/react-{{site.react_version}}.js"></script> <ide> <script src="https://fb.me/JSXTransformer-{{site.react_version}}.js"></sc...
1
Ruby
Ruby
synchronize the lazy setters in server
16a6603956551703e3bbd06101c568a73bcdaa52
<ide><path>actioncable/lib/action_cable/server/base.rb <add>require 'thread' <add> <ide> module ActionCable <ide> module Server <ide> # A singleton ActionCable::Server instance is available via ActionCable.server. It's used by the rack process that starts the cable server, but <ide> class Base <ide> def sel...
5
Ruby
Ruby
support mysql 5.7 explain
75f453ff4cff8b9652cc8f54ee68f775341148e9
<ide><path>activerecord/test/cases/adapters/mysql2/explain_test.rb <ide> class ExplainTest < ActiveRecord::TestCase <ide> def test_explain_for_one_query <ide> explain = Developer.where(:id => 1).explain <ide> assert_match %(EXPLAIN for: SELECT `developers`.* FROM `developers` WHERE `develop...
1
Python
Python
fix examples in docstring for np.flip
3d5caa2b8cb51851f218283cd2435b00ecce5d16
<ide><path>numpy/lib/function_base.py <ide> def flip(m, axis): <ide> >>> A <ide> array([[[0, 1], <ide> [2, 3]], <del> <ide> [[4, 5], <ide> [6, 7]]]) <ide> <ide> >>> flip(A, 0) <ide> array([[[4, 5], <ide> [6, 7]], <del> <ide> [[0, 1], <ide> ...
1
Javascript
Javascript
remove unused variables
4f14bea2c29fb9c1e1cf48da7f700c963e35f693
<ide><path>test/unit/selector.js <ide> test( "selectors with comma", function() { <ide> equal( fixture.find( "h2 , div p" ).filter( "h2" ).length, 1, "has to find one <h2>" ); <ide> }); <ide> <del>test("child and adjacent", function() { <add>test( "child and adjacent", function() { <ide> expect( 27 ); <ide> <ide> ...
1
Javascript
Javascript
use fs.realpath to get actual project directory
828dac7d6182095bb53e90441c184c46858cbc5a
<ide><path>server/build/webpack.js <ide> import { resolve, join, sep } from 'path' <ide> import { createHash } from 'crypto' <add>import { realpathSync } from 'fs' <ide> import webpack from 'webpack' <ide> import glob from 'glob-promise' <ide> import WriteFilePlugin from 'write-file-webpack-plugin' <ide> const interpol...
1
Ruby
Ruby
fix output of optional dependencies
f5fbb74aaf847c9589af82ceea2f388eae02e0f6
<ide><path>Library/Homebrew/formula.rb <ide> def opt_or_installed_prefix_keg <ide> <ide> # Returns a list of Dependency objects that are required at runtime. <ide> # @private <del> def runtime_dependencies(read_from_tab: true) <add> def runtime_dependencies(read_from_tab: true, undeclared: true) <ide> if rea...
2
Go
Go
fix issues from rebase on master
5e69b3837b26d1d1f7cd8b3c4f5b077ba642bd20
<ide><path>networkdriver/ipallocator/allocator.go <ide> import ( <ide> "errors" <ide> "github.com/dotcloud/docker/networkdriver" <ide> "github.com/dotcloud/docker/pkg/collections" <del> "github.com/dotcloud/docker/pkg/netlink" <ide> "net" <ide> "sync" <ide> ) <ide> <del>type networkSet map[iPNet]*collections.Orde...
1
Ruby
Ruby
set prefer_loading_from_api for fetch
f5696efc1620da3ee3906e6961d71181cb047f4b
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> args = fetch_args.parse <ide> <ide> bucket = if args.deps? <del> args.named.to_formulae_and_casks.flat_map do |formula_or_cask| <add> args.named.to_formulae_and_casks(prefer_loading_from_api: true).flat_map do |formula_or_cask| <ide> ...
1
Javascript
Javascript
refactor the console module to be reusable
025f53c306d91968b292051404aebb8bf2adb458
<ide><path>lib/console.js <ide> <ide> var util = require('util'); <ide> <del>exports.log = function() { <del> process.stdout.write(util.format.apply(this, arguments) + '\n'); <add>function Console(stdout, stderr) { <add> if (!(this instanceof Console)) { <add> return new Console(stdout, stderr); <add> } <add> ...
2
Java
Java
reduce overhead of blocking first/last/single
7a5320f85c7000469e3b997f5810573a3967f0f9
<ide><path>src/main/java/io/reactivex/flowables/BlockingFlowable.java <ide> <ide> import org.reactivestreams.*; <ide> <del>import io.reactivex.Flowable; <ide> import io.reactivex.Optional; <ide> import io.reactivex.disposables.*; <ide> import io.reactivex.functions.Consumer; <ide> public boolean isDisposed() { <ide> ...
8
Mixed
Javascript
extend autoplay option for greater good
e8e4fe27451c8c45bc389ab7b431032ad0938564
<ide><path>docs/guides/faq.md <ide> techs/plugins made available to Video.js. For more information on media formats <ide> <ide> When an array of sources is available, Video.js test each source in the order given. For each source, each tech in the [`techOrder`][techorder] will be checked to see if it can play it whethe...
5
PHP
PHP
add last method
4289e6ccb3ace1beb240390bacb6f0dbca7b2cd7
<ide><path>src/Illuminate/Support/Collection.php <ide> public function first() <ide> return count($this->items) > 0 ? reset($this->items) : null; <ide> } <ide> <add> /** <add> * Get the last item from the collection <add> * <add> * @return mixed|null <add> */ <add> public function last() <add> { <add> return count...
1
Text
Text
add metadata to report docs
f40778e97a1a324a01e266ed82d91c272715a69a
<ide><path>doc/api/report.md <ide> # Diagnostic Report <ide> <add><!--introduced_in=v11.8.0--> <add><!-- type=misc --> <add> <add>> Stability: 1 - Experimental <add> <add><!-- name=report --> <add> <ide> Delivers a JSON-formatted diagnostic summary, written to a file. <ide> <ide> The report is intended for developmen...
1
Javascript
Javascript
add test case
22cd80e73b2ebef3e9526f97fdb7a60e92a7d7c1
<ide><path>test/configCases/plugins/define-plugin/index.js <ide> it("should evaluate composed expressions (issue 5100)", function() { <ide> } else { <ide> require("fail"); <ide> } <del>}) <add>}); <add> <add>it("should follow renamings in var (issue 5215)", function() { <add> var _process$env = process.env, <add> ...
1
PHP
PHP
fix default values as documented
51865846754a1bc0423c4b46a3c054c5779a7b01
<ide><path>src/Network/Session.php <ide> class Session <ide> * <ide> * @var bool <ide> */ <del> protected $_started; <add> protected $_started = false; <ide> <ide> /** <ide> * The time in seconds the session will be valid for <ide> * <ide> * @var int <ide> */ <del> prote...
1
Javascript
Javascript
update example to use a module
f3567b257cb8709ee08250d28981e257bb6672bf
<ide><path>src/ng/window.js <ide> * expression. <ide> * <ide> * @example <del> <example> <add> <example module="windowExample"> <ide> <file name="index.html"> <ide> <script> <del> function Ctrl($scope, $window) { <del> $scope.greeting = 'Hello, World!'; <del> $scope.doGree...
1
Javascript
Javascript
improve performance to instantiate errors
afce91219359654b44df29e6ec1b730e2a73a919
<ide><path>lib/internal/assert/assertion_error.js <ide> class AssertionError extends Error { <ide> stackStartFn <ide> } = options; <ide> <add> const limit = Error.stackTraceLimit; <add> Error.stackTraceLimit = 0; <add> <ide> if (message != null) { <ide> super(String(message)); <ide> } els...
1
PHP
PHP
apply fixes from styleci
f1d20b859edb2b2868871e25bad21541b442b705
<ide><path>src/Illuminate/Session/Store.php <ide> protected function prepareErrorBagForSerialization() <ide> foreach ($this->attributes['errors']->getBags() as $key => $value) { <ide> $errors[$key] = [ <ide> 'format' => $value->getFormat(), <del> 'messages' => $value->...
1
Javascript
Javascript
add type support to maint-template and template
0fcd5e5775d256d7793f3a42063afecbf6b76325
<ide><path>lib/MainTemplate.js <ide> const { <ide> } = require("tapable"); <ide> const Template = require("./Template"); <ide> <add>/** @typedef {import("tapable").Hook} Hook */ <add>/** @typedef {import("webpack-sources").ConcatSource} ConcatSource */ <add> <ide> // require function shortcuts: <ide> // __webpack_requ...
2
Javascript
Javascript
fix recent webxr changes
b63ffffb6bb7f2fde9160d775b25d288926f7cf5
<ide><path>src/renderers/webxr/WebXRManager.js <ide> import { <ide> DepthStencilFormat, <ide> RGBAFormat, <ide> RGBFormat, <add> sRGBEncoding, <ide> UnsignedByteType, <ide> UnsignedShortType, <del> UnsignedInt248Type, <add> UnsignedInt248Type <ide> } from '../../constants.js'; <ide> <ide> class WebXRManager exten...
1
Python
Python
fix sequence bug
4b74fc5418944c9f449eb88ed4b40ada280fa5ca
<ide><path>keras/engine/training.py <ide> def generate_arrays_from_file(path): <ide> val_enqueuer.start(workers=workers, max_queue_size=max_queue_size) <ide> validation_generator = val_enqueuer.get() <ide> else: <del> validation_...
3
Python
Python
put nested_iter tests within a class
e6412f652aac1eebffbab839a554a988ff7e5982
<ide><path>numpy/core/tests/test_nditer.py <ide> def test_iter_no_broadcast(): <ide> assert_raises(ValueError, nditer, [a, b, c], [], <ide> [['readonly'], ['readonly'], ['readonly', 'no_broadcast']]) <ide> <del>def test_iter_nested_iters_basic(): <del> # Test nested iteration basic usage <del>...
1
PHP
PHP
fix each() on belongstomany relationships
19e7b7b931544f89c875b1e94968ce70c7937533
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function chunk($count, callable $callback) <ide> }); <ide> } <ide> <add> /** <add> * Execute a callback over each item while chunking. <add> * <add> * @param callable $callback <add> * @param int $co...
2
Python
Python
add __repr__ for executors
6410f0710613189c2086b4d3af4b26ba543f306a
<ide><path>airflow/executors/base_executor.py <ide> def __init__(self, parallelism: int = PARALLELISM): <ide> self.running: Set[TaskInstanceKey] = set() <ide> self.event_buffer: Dict[TaskInstanceKey, EventBufferValueType] = {} <ide> <add> def __repr__(self): <add> return f"{self.__class__.__n...
1
PHP
PHP
add helper methods for events
638b63a7471d451251b0cd7a3914677d2715575d
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function getScannedRoutesPath() <ide> return $this['path.storage'].'/framework/routes.scanned.php'; <ide> } <ide> <add> /** <add> * Determine if the application events have been scanned. <add> * <add> * @return bool <add> */ <add> public function...
2
Javascript
Javascript
fix 4.0 build errors
362514c10b3b6dd23a9fc7744a59bf342d901179
<ide><path>lib/AbstractMethodError.js <ide> function Message() { <ide> this.stack = undefined; <ide> Error.captureStackTrace(this); <ide> /** @type {RegExpMatchArray} */ <del> const match = this.stack.split("\n")[3].match(CURRENT_METHOD_REGEXP); <add> const match = /** @type {*} */ (this.stack) <add> .split("\n")[3...
7
Python
Python
add missing types
ef7206cd098457aef50aecde813b34f9beb76bc6
<ide><path>libcloud/storage/types.py <ide> class Provider(object): <ide> S3_RGW = "s3_rgw" <ide> S3_RGW_OUTSCALE = "s3_rgw_outscale" <ide> MINIO = "minio" <add> SCALEWAY = "scaleway" <add> SCALEWAY_FR_PAR = "scaleway_fr_par" <add> SCALEWAY_NL_AMS = "scaleway_nl_ams" <add> SCALEWAY_PL_WAW = "scal...
1
Javascript
Javascript
adjust failing assertions
4afbe9103a2a2fee6518ad80c91f8cf80122fc37
<ide><path>packages/@ember/-internals/container/tests/container_test.js <ide> moduleFor( <ide> <ide> assert.throws(() => { <ide> container.lookup('service:foo'); <del> }, /Can not call `.lookup` after the owner has been destroyed/); <add> }, /Cannot call `.lookup` after the owner has been destr...
1
PHP
PHP
fix undefined variable hosts
a2749017ef461dd4f0843bc73c826ce55a5fd63f
<ide><path>src/Illuminate/Database/Connectors/ConnectionFactory.php <ide> protected function createPdoResolver(array $config) <ide> protected function createPdoResolverWithHosts(array $config) <ide> { <ide> return function () use ($config) { <del> foreach (Arr::shuffle($this->parseHosts($conf...
1
Javascript
Javascript
add correct @restrict for all ng directives
d8987c170f98650baecae66ccc272bdbca352f64
<ide><path>src/ng/directive/ngBind.js <ide> /** <ide> * @ngdoc directive <ide> * @name ng.directive:ngBind <add> * @restrict AC <ide> * <ide> * @description <ide> * The `ngBind` attribute tells Angular to replace the text content of the specified HTML element <ide><path>src/ng/directive/ngClass.js <ide> function c...
8
Text
Text
update urls for rpms
24bb36297c1457d71114d678671f77001b6936a5
<ide><path>docs/installation/centos.md <ide> only the package you install differs. There are two packages to choose from: <ide> <td>6.5 and higher</td> <ide> <td> <ide> <p> <del> <a href="https://get.docker.com/rpm/1.7.0/centos-6/RPMS/x86_64/docker-engine-1.7.0-1.el6.x86_64.rpm"> <del> https://get.do...
3
Javascript
Javascript
fix warnings in strict mode
674d6a7d18821fcea8570b70a2454d5a1ab2d4ec
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> }; <ide> <ide> function createOS2Table(properties, override) { <del> var override = override || {}; <add> override = override || { <add> unitsPerEm: 0, <add> yMax: 0, <add> yMin: 0, <add> ascent: 0, <add> descent: 0 <add> ...
4
Javascript
Javascript
set exit code when installation failed
dfc23966282f4323464d8d40bdb12cded7cce35d
<ide><path>bin/webpack.js <ide> if (!webpackCliInstalled) { <ide> .catch(error => { <ide> questionInterface.close(); <ide> console.error(error); <add> process.exitCode = 1; <ide> }); <ide> break; <ide> }
1
Javascript
Javascript
fix a typo
9a13dd78fc6a37e5239fabd428973bdfd5a8f8a0
<ide><path>src/Chart.Core.js <ide> }); <ide> <ide> // If there are no animations queued, manually kickstart a digest, for lack of a better word <del> if(!this.animations.length){ <add> if (this.animations.length) { <ide> helpers.requestAnimFrame(this.startDigest); <ide> } <ide> },
1
Python
Python
update doubly_linked_list.py (#545)
1b19028117c88aaf49803ccd76652b68ead0b7e1
<ide><path>data_structures/linked_list/doubly_linked_list.py <ide> - A linked list is similar to an array, it holds values. However, links in a linked list do not have indexes. <ide> - This is an example of a double ended, doubly linked list. <ide> - Each link references the next link and the previous one. <del>''' <ad...
1
Javascript
Javascript
fix lint errors
56789aea47efa22912034d4f337f14b23be23699
<ide><path>src/util.js <ide> function backtrace() { <ide> try { <ide> throw new Error(); <ide> } catch (e) { <del> return e.stack ? e.stack.split('\n').slice(2).join('\n') : ""; <add> return e.stack ? e.stack.split('\n').slice(2).join('\n') : ''; <ide> } <ide> } <ide> <ide> function error(msg) { <del> ...
1
Ruby
Ruby
use epochs in tabs
f085597cbdabab1138c96b7d928b4ae451a50e5d
<ide><path>Library/Homebrew/formula.rb <ide> def latest_head_prefix <ide> def head_version_outdated?(version, options={}) <ide> tab = Tab.for_keg(prefix(version)) <ide> <add> return true if tab.version_scheme < version_scheme <ide> return true if stable && tab.stable_version && tab.stable_version < stable...
2
Text
Text
improve the contributing to rails guide [skip ci]
5c7b8d9f403897a5fdf2be05518a32c863915d60
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> When you're happy with the code on your computer, you need to commit the changes <ide> $ git commit -a <ide> ``` <ide> <del>At this point, your editor should be fired up and you can write a message for this commit. Well formatted and descriptive commit me...
1
Python
Python
remove lines with no effect
79ec9b8079e926104b444239cc9642cb269492dc
<ide><path>examples/mnist_acgan.py <ide> def build_discriminator(): <ide> loss=['binary_crossentropy', 'sparse_categorical_crossentropy'] <ide> ) <ide> <del> discriminator.trainable = True <del> <ide> # get our mnist data, and force it to be of shape (..., 1, 28, 28) with <ide> # range [-1, 1] <...
1
Text
Text
add talkingheadsattention to readme
85b50c8819ac9c109283a0b25e83367db8d679c9
<ide><path>official/nlp/modeling/layers/README.md <ide> If `from_tensor` and `to_tensor` are the same, then this is self-attention. <ide> * [CachedAttention](attention.py) implements an attention layer with cache used <ide> for auto-agressive decoding. <ide> <add>* [TalkingHeadsAttention](talking_heads_attention.py) i...
1
Python
Python
add final_layer_norm to opt model
abc400b06a8ab26cd438b6e9add3aad082ffc48f
<ide><path>src/transformers/models/opt/configuration_opt.py <ide> def __init__( <ide> ffn_dim=3072, <ide> max_position_embeddings=2048, <ide> do_layer_norm_before=True, <add> _remove_final_layer_norm=False, <ide> word_embed_proj_dim=None, <ide> dropout=0.1, <ide> a...
8
Text
Text
change core_ext cherry picking example
fdabc1757e3d1aa928fb66a04bc015348637274c
<ide><path>guides/source/active_support_core_extensions.md <ide> How to Load Core Extensions <ide> <ide> ### Stand-Alone Active Support <ide> <del>In order to have a near-zero default footprint, Active Support does not load anything by default. It is broken in small pieces so that you can load just what you need, and...
1
Javascript
Javascript
fix jsc crash in dev
d2de60472103e1b3f2fe82ed53cce38db6334af5
<ide><path>Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js <ide> function deepFreezeAndThrowOnMutationInDev(object: Object) { <ide> return; <ide> } <ide> <del> for (var key in object) { <add> var keys = Object.keys(object); <add> <add> for (var i = 0; i < keys.length; i++) { <add> var ...
1
Text
Text
fix example code for css grid article
0a9c8830537df926aa458427c3d18f20605c4261
<ide><path>curriculum/challenges/spanish/01-responsive-web-design/css-grid/add-columns-with-grid-template-columns.spanish.md <ide> localeTitle: Añadir columnas con cuadrícula-plantilla-columnas <ide> --- <ide> <ide> ## Description <del><section id="description"> Simplemente crear un elemento de cuadrícula no te lleva ...
1
PHP
PHP
add parentheses to referenced method name
1a058316cbb4fd4bbe4f15544bc7dcc49cf8cda7
<ide><path>src/Network/Request.php <ide> public function clearDetectorCache() { <ide> } <ide> <ide> /** <del> * Worker for the public is function <add> * Worker for the public is() function <ide> * <ide> * @param string|array $type The type of request you want to check. If an array <ide> * this method will retur...
1
PHP
PHP
fix a number of coding standards errors
7b407f890b2245611990d8a6621a228ede6b13f5
<ide><path>lib/Cake/Test/TestCase/Controller/ComponentRegistryTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Controller; <ide> <del>use Cake\Controller\Component\CookieComponent; <ide> use Cake\Controller\ComponentRegistry; <add>use Cake\Controller\Component\CookieComponent; <ide> use Cake\Controller\Controller...
10
Python
Python
add tile to numpy and move repmat to matlib.py
1ff0cd9948e79eecd2c8ec9ac9aa88c81c6b9dfc
<ide><path>numpy/lib/shape_base.py <ide> __all__ = ['atleast_1d','atleast_2d','atleast_3d','vstack','hstack', <ide> 'column_stack','row_stack', 'dstack','array_split','split','hsplit', <ide> 'vsplit','dsplit','apply_over_axes','expand_dims', <del> 'apply_along_axis', 'repmat', 'kron'] <a...
2
PHP
PHP
add connection support to validator
2f00d46fdb502272644f9c55851df22e99935c9b
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateUnique($attribute, $value, $parameters) <ide> { <ide> $this->requireParameterCount(1, $parameters, 'unique'); <ide> <del> $table = $parameters[0]; <add> list($connection, $table) = $this->parseUniqueTable($parameters[0]); <ide> <...
2
Javascript
Javascript
make cluster tests more time tolerant
2853f9894fcecef5979d7ec2618c79760532253c
<ide><path>test/parallel/test-cluster-master-error.js <ide> if (cluster.isWorker) { <ide> existMaster = !!code; <ide> <ide> // Give the workers time to shut down <del> setTimeout(checkWorkers, 200); <add> var timeout = 200; <add> if (common.isAix) { <add> // AIX needs more time due to default exi...
2
Mixed
Javascript
use new technique to keep 3d and scrolling in sync
914b48a7b76e291c3d1a4f34514f3a9b9243624e
<ide><path>threejs/lessons/resources/threejs-primitives.js <ide> function main() { <ide> return addElem(parent, 'div', className); <ide> } <ide> <del> const renderFuncs = [ <add> const primRenderFuncs = [ <ide> ...[...document.querySelectorAll('[data-primitive]')].map(createPrimitiveDOM), <ide> ...[......
2
Text
Text
fix 404 links in react 18 docs
ae3e55dca471178ef0ceccfd7a6357b09f9a24cf
<ide><path>docs/advanced-features/react-18/overview.md <ide> You can now start using React 18's new APIs like `startTransition` and `Suspense <ide> <ide> Streaming server-rendering (SSR) is an experimental feature in Next.js 12. When enabled, SSR will use the same [Edge Runtime](/docs/api-reference/edge-runtime.md) as...
1
Text
Text
remove unsupported taps
d72bdd7efe7cfc37c7feda735bbe0aa87eb5e912
<ide><path>docs/Interesting-Taps-and-Forks.md <ide> Homebrew has the capability to add (and remove) multiple taps to your local inst <ide> Your taps are Git repositories located at `$(brew --repository)/Library/Taps`. <ide> <ide> ## Unsupported interesting taps <del>* [homebrew-ffmpeg/ffmpeg](https://github.com/home...
1
PHP
PHP
add a space after the comma in the $merge array
c8326460a46e563816ebfe7d9a13c475c2f0be63
<ide><path>lib/Cake/Model/Model.php <ide> public function __construct($id = false, $table = null, $ds = null) { <ide> } <ide> <ide> if (is_subclass_of($this, 'AppModel')) { <del> $merge = array('actsAs','findMethods'); <add> $merge = array('actsAs', 'findMethods'); <ide> $parentClass = get_parent_class($thi...
1