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 --debug-brk; hacky solution
b5b83b210bb9873cd6b5052e5f5d260eb1f9d2f9
<ide><path>lib/module.js <ide> Module.prototype._compile = function (content, filename) { <ide> + "\n});"; <ide> <ide> var compiledWrapper = process.compile(wrapper, filename); <add> if (filename === process.argv[1]) process.checkBreak(); <ide> compiledWrapper.apply(self.exports, [se...
1
Javascript
Javascript
remove unused rctrenderingperf
94d9f00dd681af817a316c648c3da462b08ae0d3
<ide><path>Libraries/Core/InitializeCore.js <ide> if (__DEV__) { <ide> <ide> require('RCTDebugComponentOwnership'); <ide> <del> // In order to use Cmd+P to record/dump perf data, we need to make sure <del> // this module is available in the bundle <del> require('RCTRenderingPerf'); <del> <ide> // Set...
2
PHP
PHP
move empty key detection above starts_with check
8f1a966925e28cf32274727013c7efa72868c96a
<ide><path>src/Illuminate/Encryption/EncryptionServiceProvider.php <ide> public function register() <ide> $this->app->singleton('encrypter', function ($app) { <ide> $config = $app->make('config')->get('app'); <ide> <del> // If the key starts with "base64:", we will need to decode the key...
1
Text
Text
add correct commands for installing and running mo
b96c4d39f52d1c496dfc18947e3e4ec5433250ef
<ide><path>CONTRIBUTING.md <ide> node -v <ide> mongo --version <ide> ``` <ide> <add>To check your MongoDB version on Windows, you have to locate the installation directory. It is probably located at something like `C:\Program Files\MongoDB\Server\3.4\` where 3.4 is your version number. <add> <ide> If your versions are...
1
Text
Text
fix typo in xlnet readme
0ba8a3b0d0139ad94cebf0f4596beae355fa437c
<ide><path>official/nlp/xlnet/README.md <ide> Setup commands: <ide> export SPIECE_DIR=~/cased_spiece/ <ide> export SPIECE_MODEL=${SPIECE_DIR}/cased_spiece.model <ide> export DATASETS_DIR=gs://some_bucket/datasets <del>mkdir -p ${SPIECE_MODEL} <add>mkdir -p ${SPIECE_DIR} <ide> gsutil cp gs://cloud-tpu-checkpoints/xlnet/...
1
PHP
PHP
use more atomic options when creating directories
c666593663bbea6c5ed05abb9986de2d98815669
<ide><path>src/Cache/Engine/FileEngine.php <ide> protected function _setKey($key, $createKey = false) <ide> } <ide> $dir = $this->_config['path'] . $groups; <ide> <del> if (!is_dir($dir)) { <del> mkdir($dir, 0775, true); <del> } <add> // @codingStandardsIgnoreStart <add>...
1
Python
Python
fix a bug with parse_qsl and python 2.5
1446a99ea9ef56354d2f6cea3f1613ac5e1071b0
<ide><path>test/common/test_cloudstack.py <ide> except: <ide> import simplejson as json <ide> <add>try: <add> parse_qsl = urlparse.parse_qsl <add>except AttributeError: <add> import cgi <add> parse_qsl = cgi.parse_qsl <add> <ide> from libcloud.common.cloudstack import CloudStackConnection, CloudStackRespo...
3
PHP
PHP
fix beanstalkd tests
a656d2d8ac3906347ad838b95de5c3d9b2e12066
<ide><path>tests/Queue/QueueBeanstalkdQueueTest.php <ide> public function tearDown() <ide> <ide> public function testPushProperlyPushesJobOntoBeanstalkd() <ide> { <del> $queue = new Illuminate\Queue\BeanstalkdQueue(m::mock('Pheanstalk_Pheanstalk'), 'default'); <add> $queue = new Illuminate\Queue\BeanstalkdQueue(m:...
1
Go
Go
skip dockersuite.testruncapaddchown on lxc
0547b5fb2ac98d67eea3ed56f4afae87dff3079c
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestDevicePermissions(c *check.C) { <ide> } <ide> <ide> func (s *DockerSuite) TestRunCapAddCHOWN(c *check.C) { <add> testRequires(c, NativeExecDriver) <ide> out, _ := dockerCmd(c, "run", "--cap-drop=ALL", "--cap-add=CHOWN", "busybox", "sh",...
1
Go
Go
implement docker system df
8d0dc6902788f36254bde052e867bdea98c4d42e
<ide><path>api/server/router/system/system_routes.go <ide> func (s *systemRouter) getDiskUsage(ctx context.Context, w http.ResponseWriter, <ide> var getContainers, getImages, getVolumes, getBuildCache bool <ide> typeStrs, ok := r.Form["type"] <ide> if versions.LessThan(version, "1.42") || !ok { <del> getContainers,...
3
Java
Java
fix unused import warning
461816735fe7414d5883ec1f013bc3339c69b021
<ide><path>spring-core/src/main/java/org/springframework/core/ResolvableType.java <ide> import org.springframework.util.Assert; <ide> import org.springframework.util.ClassUtils; <ide> import org.springframework.util.ConcurrentReferenceHashMap; <del>import org.springframework.util.ConcurrentReferenceHashMap.ReferenceTyp...
1
Javascript
Javascript
add newline before jsx spread when appropriate
cc9735f8897df40a6c79343cbb6a77123b1df9ad
<ide><path>vendor/fbtransform/transforms/__tests__/react-test.js <ide> describe('react jsx', function() { <ide> '<Component { ... x } y\n' + <ide> '={2 } z />'; <ide> var result = <del> 'React.createElement(Component, Object.assign({}, x , {y: \n' + <add> 'React.createElement(Component, Obje...
2
Ruby
Ruby
create empty zshrc when zsh is shell"
274f21388e3db056069fc176b24e543d666854c6
<ide><path>Library/Homebrew/formula.rb <ide> def stage <ide> @buildpath = Pathname.pwd <ide> env_home = buildpath/".brew_home" <ide> mkdir_p env_home <del> touch env_home/".zshrc" if ENV["SHELL"].include? "zsh" <ide> <ide> old_home, ENV["HOME"] = ENV["HOME"], env_home <ide>
1
Ruby
Ruby
change the version to 7.0.0.alpha
2345b80c0cfa0766875274a9e4e237a09e08b302
<ide><path>lib/arel.rb <ide> require 'arel/nodes' <ide> <ide> module Arel <del> VERSION = '6.0.0' <add> VERSION = '7.0.0.alpha' <ide> <ide> def self.sql raw_sql <ide> Arel::Nodes::SqlLiteral.new raw_sql
1
Go
Go
add unit test to cover changes
027297a60f5f5a70e1e3eb3a68280f64c66bc877
<ide><path>builder/dockerfile/copy_test.go <ide> package dockerfile <ide> <ide> import ( <add> "net/http" <ide> "testing" <ide> <ide> "github.com/gotestyourself/gotestyourself/fs" <ide> func TestIsExistingDirectory(t *testing.T) { <ide> assert.Equal(t, testcase.expected, result, testcase.doc) <ide> } <ide> } <ad...
2
Mixed
Go
add filter by event type and documentation
851fe00c64ffafeb27b12f7b0ed8e41f7720b477
<ide><path>api/client/events.go <ide> func (cli *DockerCli) CmdEvents(args ...string) error { <ide> <ide> // streamEvents decodes prints the incoming events in the provided output. <ide> func streamEvents(input io.Reader, output io.Writer) error { <add> return decodeEvents(input, func(event eventtypes.Message, err err...
11
Javascript
Javascript
add label to pr and log summary
c14f6df47cee14f00539a692803f1d7e3d7a6bb9
<ide><path>script/lib/update-dependency/main.js <ide> const { <ide> runApmInstall, <ide> sleep <ide> } = require('./util'); <del>const { createPR, findPR } = require('./pull-request'); <add>const { createPR, findPR, addLabel } = require('./pull-request'); <ide> module.exports = async function() { <ide> try { <ide...
2
Text
Text
add django-restql to 3rd party packages in docs
5b990d40920fb1a0fc74ecd262e1cc1ac5e5394f
<ide><path>docs/community/third-party-packages.md <ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque <ide> * [drf-flex-fields][drf-flex-fields] - Serializer providing dynamic field expansion and sparse field sets via URL parameters. <ide> * [drf-action-serializer][drf-action-serializ...
1
Ruby
Ruby
add deprecated_option to software_spec
02e10beb7c79f29d5c8a17d89649af344034d541
<ide><path>Library/Homebrew/options.rb <ide> def old_flag <ide> def current_flag <ide> "--#{current}" <ide> end <add> <add> def ==(other) <add> instance_of?(other.class) && old == other.old && current == other.current <add> end <add> alias_method :eql?, :== <ide> end <ide> <ide> class Options <ide><path>...
4
Text
Text
add changelogs for os
ebb2d99a10b82fc8ed23caa2923d7e983e4e58c8
<ide><path>doc/api/os.md <ide> https://en.wikipedia.org/wiki/Uname#Examples for more information. <ide> ## os.tmpdir() <ide> <!-- YAML <ide> added: v0.9.9 <add>changes: <add> - version: v2.0.0 <add> pr-url: https://github.com/nodejs/node/pull/747 <add> description: This function is now cross-platform consistent ...
1
PHP
PHP
add additional tests for array args
35aa70e6bb287392526b34764f1587e0ca27f648
<ide><path>tests/TestCase/I18n/I18nTest.php <ide> public function testBasicTranslateFunction() <ide> I18n::defaultFormatter('sprintf'); <ide> $this->assertEquals('%d is 1 (po translated)', __('%d = 1')); <ide> $this->assertEquals('1 is 1 (po translated)', __('%d = 1', 1)); <add> $this->as...
1
Text
Text
add v3.8.0 to changelog
b71a2a5aea97bed538310faacdfc60540cb6965f
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.8.0-beta.5 (February 11, 2019) <del> <del>- [#17563](https://github.com/emberjs/ember.js/pull/17563) [BUGFIX] Transition.send/trigger call signature <del> <del>### v3.8.0-beta.4 (February 4, 2019) <del> <del>- [#17552](https://github.com/emberjs/ember.j...
1
Java
Java
update uritemplate javadoc
5859649af7180d63f000b42c75a5b557063dca2e
<ide><path>spring-web/src/main/java/org/springframework/web/util/UriTemplate.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use th...
1
PHP
PHP
reduce is_null call
51249415072614aada9f2bb51d9340d687f71a24
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function touchOwners() <ide> { <ide> $this->$relation()->touch(); <ide> <del> if ( ! is_null($this->$relation) && $this->$relation instanceof Model) <add> if ( ! is_null($this->$relation)) <ide> { <del> $this->$relation->touchOwners(); <...
1
Python
Python
add bulk_dump abstract method to dbapihook
aff5d8c8a2370413e29ca8a75e31a89ee3c836d0
<ide><path>airflow/hooks/dbapi_hook.py <ide> def _serialize_cell(cell): <ide> else: <ide> return str(cell) <ide> <add> def bulk_dump(self, table, tmp_file): <add> """ <add> Dumps a database table into a tab-delimited file <add> <add> :param table: The name of the source tabl...
1
Ruby
Ruby
fix typos, update documentation
49542ae88697fd708a76c48f6a8c3bcde4591df2
<ide><path>actionmailer/lib/action_mailer/inline_preview_interceptor.rb <ide> <ide> module ActionMailer <ide> # Implements a mailer preview interceptor that converts image tag src attributes <del> # that use inline cid: style urls to data: style urls so that they are visible <add> # that use inline cid: style URLs...
5
Ruby
Ruby
add destroyed records to the currend transaction
58410b3d566e6b93c7b71c0eec0fc11ec906b68e
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def delete <ide> def destroy <ide> raise ReadOnlyRecord, "#{self.class} is marked as readonly" if readonly? <ide> destroy_associations <add> self.class.connection.add_transaction_record(self) <ide> destroy_row if persisted? <ide> ...
2
PHP
PHP
update doc blocks and expand tests
4f3f90c2c74d4aa91cf1f020f14a1a0d1bbd8a5c
<ide><path>lib/Cake/Database/ConnectionManager.php <ide> use Cake\Error; <ide> <ide> /** <del> * Manages loaded instances of DataSource objects <add> * Manages and loads instances of Connection <ide> * <del> * Provides an interface to loading and creating connection objects. Acts as <add> * Provides an interface to ...
4
Text
Text
remove leftover head from merge
c7af3da371b1252623790451451b45dad0cdf961
<ide><path>CONTRIBUTING.md <del><<<<<<< HEAD <ide> # How to contribute <ide> <ide> CakePHP loves to welcome your contributions. There are several ways to help out:
1
Java
Java
prevent duplicate @import processing
6d8b37d8bbce8c6e6cb4890291469c80742132f7
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassParser.java <ide> package org.springframework.context.annotation; <ide> <ide> import java.io.IOException; <del>import java.lang.annotation.Annotation; <del>import java.util.ArrayList; <add>import java.util.Arrays; <ide> im...
2
Javascript
Javascript
fix coding style in web/text_layer_builder.js
5dcc92430c486c686ca3a53375bda18a12992b34
<ide><path>web/text_layer_builder.js <ide> var TextLayerBuilder = function textLayerBuilder(options) { <ide> this.viewport = options.viewport; <ide> this.isViewerInPresentationMode = options.isViewerInPresentationMode; <ide> <del> if(typeof PDFFindController === 'undefined') { <del> window.PDFFindController ...
1
PHP
PHP
add test for append()
0a9a0de562e90e24815389427b482ec323002822
<ide><path>tests/TestCase/Collection/CollectionTest.php <ide> public function testAppend() <ide> $collection = new Collection(['a' => 1, 'b' => 2]); <ide> $combined = $collection->append(['c' => 3, 'a' => 4]); <ide> $this->assertEquals(['a' => 4, 'b' => 2, 'c' => 3], $combined->toArray()); <add>...
1
Text
Text
improve description and tests description
f06b56f101132583ff7d8ceae370dd7db5c38018
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/align-columns.md <ide> dashedName: align-columns <ide> <ide> # --description-- <ide> <del>Given a text file of many lines, where fields within a line are delineated by a single `$` character, write a program that aligns each column of fiel...
1
Text
Text
add undici to glossary
c977ad6baacaf6442b0d66be2eae1b31da490c87
<ide><path>glossary.md <ide> You may also need to check <https://chromium.googlesource.com/chromiumos/docs/+/ <ide> primarily administrated by Matt Godbolt. <ide> * primordials: Pristine built-ins that are not affected by prototype pollution <ide> and tampering with built-ins. <add>* undici: An alternative HTTP cli...
1
Text
Text
add a contributing.md file for github
2d13b3d50475cef73ba8068cc6477be5f6575f52
<ide><path>CONTRIBUTING.md <add># Pull request guidelines <add> <add>[GitHub pull requests](https://help.github.com/articles/using-pull-requests) are a great way for everyone in the community to contribute to the Laravel codebase. Found a bug? Just fix it in your fork and submit a pull request. This will then be review...
1
PHP
PHP
fix misaligned comment
f8426d333a7a9a2b7489a31bb34d2c1e9f4cfaac
<ide><path>src/Mailer/Transport/SmtpTransport.php <ide> public function __destruct() <ide> try { <ide> $this->disconnect(); <ide> } catch (Exception $e) { <del>// avoid fatal error on script termination <add> // avoid fatal error on script termination <ide> } <ide> } <...
1
Mixed
Go
use explicit format when using secrets
2adbdcdf5a83b45b4e191413d3aa14158535085b
<ide><path>cli/command/service/create.go <ide> func newCreateCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> flags.Var(&opts.mounts, flagMount, "Attach a filesystem mount to the service") <ide> flags.Var(&opts.constraints, flagConstraint, "Placement constraints") <ide> flags.Var(&opts.networks, flagNetw...
9
Text
Text
add experimental documentation for stacks
ae816baa3c36aaec5e3b7c31425b620b4709ab50
<ide><path>experimental/README.md <ide> to build a Docker binary with the experimental features enabled: <ide> <ide> * [External graphdriver plugins](plugins_graphdriver.md) <ide> * [Macvlan and Ipvlan Network Drivers](vlan-networks.md) <del> * The user namespaces feature has graduated from experimental. <add> * [Do...
2
Text
Text
fix typo in packages.md
fda1402b794a1e6738f156e8b9a2d034d65a1afa
<ide><path>doc/api/packages.md <ide> use in Node.js but not the browser: <ide> ``` <ide> <ide> Conditions continue to be matched in order as with flat conditions. If <del>a nested conditional does not have any mapping it will continue checking <add>a nested condition does not have any mapping it will continue checking...
1
Javascript
Javascript
fix typo in test description
9db70d3959f8ff062a9e65029695f55c9c01de29
<ide><path>test/ngRoute/routeSpec.js <ide> describe('$route', function() { <ide> <ide> <ide> describe('events', function() { <del> it('should not fire $routeChangeStart/success during bootstrap (if no route)', function() { <add> it('should not fire $routeChangeStart/Success during bootstrap (if no route)', fu...
1
Text
Text
fix quoting of testflags in devenvironment.md
7aa88a4ff66aa0c256dc15e5e5a4ddda34ed0f46
<ide><path>docs/sources/contributing/devenvironment.md <ide> something like this <ide> If $TESTFLAGS is set in the environment, it is passed as extra arguments <ide> to `go test`. You can use this to select certain tests to run, e.g., <ide> <del> $ TESTFLAGS=`-test.run \^TestBuild\$` make test <add> $ TESTFLAGS=...
1
Text
Text
add guybedford to collaborators
2346c6389f2253b9fc4f29c0e552283ab305f702
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Gibson Fahnestock** &lt;gibfahn@gmail.com&gt; (he/him) <ide> * [gireeshpunathil](https://github.com/gireeshpunathil) - <ide> **Gireesh Punathil** &lt;gpunathi@in.ibm.com&gt; (he/him) <add>* [guybedford](https://gith...
1
Mixed
Javascript
add normalized option
4cc3079e65c47b3f7eabceec19d652937b4ce7da
<ide><path>docs/docs/axes/cartesian/timeseries.md <ide> title: Time Series Axis <ide> --- <ide> <del>The time series scale extends from the time scale and supports all the same options. However, for the time series scale, each data point is spread equidistant. Also, the data indices are expected to be unique, sorted, ...
9
Javascript
Javascript
add os module to repl's built-in lib list
6d75c06e6425f67ec5d4e44b3c440c02ddf0d1d8
<ide><path>lib/repl.js <ide> REPLServer.prototype.complete = function(line) { <ide> // Kind of lame that this needs to be updated manually. <ide> // Intentionally excluding moved modules: posix, utils. <ide> var builtinLibs = ['assert', 'buffer', 'child_process', 'crypto', 'dgram', <del> 'dns',...
1
Mixed
Ruby
provide friendlier access to request variants
9d9cc4777be3787ed3645d704f02e5ba1228be13
<ide><path>actionpack/CHANGELOG.md <add>* Provide friendlier access to request variants. <add> <add> request.variant = :phone <add> request.variant.phone? # true <add> request.variant.tablet? # false <add> <add> request.variant = [:phone, :tablet] <add> request.variant.phone? ...
4
PHP
PHP
implement incomplete tests for i18n\date
cf1a848ad2590aac13e5bc4ac9350c10c34b2bbc
<ide><path>tests/TestCase/I18n/DateTest.php <ide> <ide> use Cake\I18n\Date; <ide> use Cake\TestSuite\TestCase; <add>use DateTimeZone; <ide> <ide> /** <ide> * DateTest class <ide> public function testI18nFormat() <ide> $this->assertEquals($expected, $result, 'Default locale should not be used'); <ide> } <...
1
PHP
PHP
remove old test
4c0db5dd3f76e740c0635260b8f2d446988a33b5
<ide><path>tests/Support/SupportFacadeResponseTest.php <del><?php <del> <del>use Mockery as m; <del>use Illuminate\Support\Facades\Response; <del> <del>class SupportFacadeResponseTest extends PHPUnit_Framework_TestCase { <del> <del> public function tearDown() <del> { <del> m::close(); <del> } <del> <del> <del> public ...
1
Python
Python
restore un-needed axis arguments
ce7a968a7b5cdb328ca1ea222211ad9cd8e506ad
<ide><path>numpy/lib/arraysetops.py <ide> def unique1d( ar1, retindx = False ): <ide> if retindx: <ide> ar = numpy.array(ar1).ravel() <ide> perm = ar.argsort() <del> aux = ar.take(perm,0) <add> aux = ar.take(perm) <ide> flag = ediff1d( aux, 1 ) != 0 <ide> return perm.co...
2
Text
Text
add new style
a1d3f1fbe00aab959fd1751172e9f52355b4ada7
<ide><path>guide/english/bootstrap/modals/index.md <ide> h) `.modal-title` class styles the header of the modal with a proper height. <ide> i) `.modal-body` class styles the body of the modal(dialog/popup).It can have other markups like `<p>,<img>,<video>` etc. <ide> <ide> j) `.modal-footer` class styles the footer of...
1
Javascript
Javascript
fix performance regression
558a884d4132a2e5088833de6e096e32e78d5f2b
<ide><path>lib/buffer.js <ide> const { isArrayBuffer, isSharedArrayBuffer } = process.binding('util'); <ide> const bindingObj = {}; <ide> const internalUtil = require('internal/util'); <ide> <del>class FastBuffer extends Uint8Array {} <add>class FastBuffer extends Uint8Array { <add> constructor(arg1, arg2, arg3) { <a...
1
Javascript
Javascript
remove memory leak from test suite
92ffd07d06b10d77a500c0cbe9b398de4b0bb902
<ide><path>test/cases/context/issue-10969/index.js <del>expect.extend({ <del> toBeValidModuleId(received, moduleIdString) { <del> const pass = typeof received === "number" || received === moduleIdString; <del> if (pass) { <del> return { <del> message: () => `expected ${received} not to be a valid module id`, <de...
1
Text
Text
add missing function to test common doc
b5c8852ab5f44c0bc0e8ead6c3ad4c9fc25daee1
<ide><path>test/README.md <ide> Platform normalizes the `dd` command <ide> <ide> Check if there is more than 1gb of total memory. <ide> <add>### expectsError(code[, type[, message]]) <add>* `code` [&lt;String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) <add> expected error ...
1
Javascript
Javascript
add tests for fadein & fadeout
afe2eec9376ec28685cbafec4685917d6c74f359
<ide><path>test/unit/src/animation/AnimationAction.tests.js <ide> export default QUnit.module( 'Animation', () => { <ide> <ide> } ); <ide> <del> QUnit.todo( "fadeIn", ( assert ) => { <add> QUnit.test( "fadeIn", ( assert ) => { <ide> <del> assert.ok( false, "everything's gonna be alright" ); <add> var {mix...
1
Text
Text
remove duplicated text
5271a69411e93a2b694c84f7f8216f0d91404e07
<ide><path>docs/reference/run.md <ide> The `host-src` can either be an absolute path or a `name` value. If you <ide> supply an absolute path for the `host-dir`, Docker bind-mounts to the path <ide> you specify. If you supply a `name`, Docker creates a named volume by that `name`. <ide> <del>A `name` value must start w...
1
Javascript
Javascript
add emittereventpromise helper
6b92bd041a0203a4380dff938daa1fda00cd87e3
<ide><path>spec/async-spec-helpers.js <ide> /** @babel */ <ide> <add>import until from 'test-until' <add> <ide> export function beforeEach (fn) { <ide> global.beforeEach(function () { <ide> const result = fn() <ide> function waitsForPromise (fn) { <ide> }) <ide> }) <ide> } <add> <add>export function emitte...
1
PHP
PHP
add support for placeholder in log messages
304787dda0102b50de46da927f3c31cb116fd67b
<ide><path>src/Log/Engine/BaseLog.php <ide> namespace Cake\Log\Engine; <ide> <ide> use Cake\Core\InstanceConfigTrait; <add>use JsonSerializable; <ide> use Psr\Log\AbstractLogger; <ide> <ide> /** <ide> public function scopes() <ide> */ <ide> protected function _format(string $message, array $context = []): st...
3
Go
Go
fix time setting for old kernels
75e958bf48a83de5f3f80859aee96f3356d16d4b
<ide><path>image.go <ide> func (image *Image) TarLayer(compression Compression) (Archive, error) { <ide> type TimeUpdate struct { <ide> path string <ide> time []syscall.Timeval <add> mode uint32 <ide> } <ide> <ide> func (image *Image) applyLayer(layer, target string) error { <ide> func (image *Image) applyLayer(laye...
1
Text
Text
add azure gems to readme
8aa742ff52b4d3374f9453b566774e921189c9f7
<ide><path>activestorage/README.md <ide> Variation of image attachment: <ide> 1. Run `rails activestorage:install` to create needed directories, migrations, and configuration. <ide> 2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3. <ide> 3. Optional: Add `gem "google-cloud-storage", "~...
1
Ruby
Ruby
update doc for << method of has_many association
aeced89ca5c3972fb89f8279530847cfb6959f50
<ide><path>activerecord/lib/active_record/associations.rb <ide> module ClassMethods <ide> # Adds one or more objects to the collection by setting their foreign keys to the collection's primary key. <ide> # Note that this operation instantly fires update SQL without waiting for the save or update call on...
1
Text
Text
v2.10.0 changelog [ci skip]
5103e1eb0e6cb19dbe32f3c3bd7d672a08f5331c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.10.0-beta.3 (November 2, 2016) <del> <del>- [#14537](https://github.com/emberjs/ember.js/pull/14537) [BUGFIX] Improve behavior for QPs with undefined values <del>- [#14545](https://github.com/emberjs/ember.js/pull/14545) [BUGFIX] Refactor loading/error s...
1
Javascript
Javascript
change todo to webpack 6
9410954ed14b22238e73138465dd0202fe0f1eaf
<ide><path>lib/Compilation.js <ide> const { arrayToSetDeprecation } = require("./util/deprecation"); <ide> * @property {boolean=} noChunkHash <ide> */ <ide> <del>// TODO webpack 5: remove <add>// TODO webpack 6: remove <ide> const deprecatedNormalModuleLoaderHook = util.deprecate(compilation => { <ide> return requi...
1
Javascript
Javascript
expand frustum.contains() per @alteredq, @gero3
b358c94547ea3948841f433ee0a84879366ee56e
<ide><path>src/math/Frustum.js <ide> THREE.Frustum.prototype = { <ide> <ide> contains: function ( object ) { <ide> <del> var sphere = THREE.Frustum.__s0.copy( object.geometry.boundingSphere ); <del> sphere.transform( object.matrixWorld ); <add> // this method is expanded inlined for performance reasons. <add> va...
1
Text
Text
restore react as name and don't traduce it
a9c4cc9a58033768c85882d4b8cbd51de8537d22
<ide><path>guide/spanish/react/state/index.md <ide> Cuando solo se requiere un número limitado de campos en el objeto de estado, la <ide> <ide> ### Más información <ide> <del>* [Reaccionar - Estado y Ciclo de Vida](https://reactjs.org/docs/state-and-lifecycle.html) <del>* [Reaccionar - Levantando el Estado](https...
1
Java
Java
use recent vibrator android api
aa1d31ebca778e5d1074bf3de07cbd99eadf02d7
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/vibration/VibrationModule.java <ide> <ide> import android.annotation.SuppressLint; <ide> import android.content.Context; <add>import android.os.Build; <add>import android.os.VibrationEffect; <ide> import android.os.Vibrator; <ide> import com.facebook.fbr...
1
Ruby
Ruby
make "lib/node" a real folder
612af6b4fe763346614316f8d7e3b5b1bc69cfda
<ide><path>Library/Homebrew/keg.rb <ide> def link <ide> # lib/language folders also get explicitly created <ide> when 'ghc' then :mkpath <ide> when 'lua' then :mkpath <add> when 'node' then :mkpath <ide> when 'ocaml' then :mkpath <ide> when /^perl5/ then :mkpath <ide> when 'php'...
1
Go
Go
add check for thin_check
58a453f3f06c1daf34544da8aa16bb95e8e18010
<ide><path>daemon/graphdriver/devmapper/device_setup.go <ide> func writeLVMConfig(root string, cfg directLVMConfig) error { <ide> <ide> func setupDirectLVM(cfg directLVMConfig) error { <ide> lvmProfileDir := "/etc/lvm/profile" <add> binaries := []string{"pvcreate", "vgcreate", "lvcreate", "lvconvert", "lvchange", "th...
1
Text
Text
show code necessary to create emoji
ef05278537c9365f25ca051589f85ad2697355fe
<ide><path>CONTRIBUTING.md <ide> in the proper package's repository. <ide> * Use the present tense <ide> * Reference issues and pull requests liberally <ide> * Consider starting the commit message with an applicable emoji: <del> * :lipstick: when improving the format/structure of the code <del> * :racehorse...
1
PHP
PHP
use ternary short-cut
24e5c2f33e70b3f6576d1906adcf058bdc34a5da
<ide><path>src/Illuminate/View/View.php <ide> public function render(Closure $callback = null) <ide> <ide> if ($env->doneRendering()) $env->flushSections(); <ide> <del> return $response !== null ? $response : $contents; <add> return $response ?: $contents; <ide> } <ide> <ide> /**
1
Javascript
Javascript
fix disparity between buffer and the count
34dbc9e4e8725d5ff28be918a2cb608ff0668e16
<ide><path>lib/_stream_writable.js <ide> function clearBuffer(stream, state) { <ide> corkReq.finish = onCorkedFinish.bind(undefined, corkReq, state); <ide> state.corkedRequestsFree = corkReq; <ide> } <add> state.bufferedRequestCount = 0; <ide> } else { <ide> // Slow case, write chunks one-by-on...
2
Text
Text
update the secret command docs
c22821014a8d951d7028f9d2888072c4d9f7c593
<ide><path>docs/api/v1.24.md <ide> image](#create-an-image) section for more details. <ide> "Placement": {}, <ide> "Resources": { <ide> "Limits": { <del> "MemoryBytes": 104857600.0 <add> "MemoryBytes": 104857600 <ide> }, <ide> "Reservations": { <ide> ...
1
Ruby
Ruby
remove openssl expectation
b1caa4c44bc60dc0c7f928aa62d215a2d8626551
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_generic_executables bin <ide> end <ide> <ide> def check_shadowed_headers <del> ["libtool", "subversion", "berkeley-db", "openssl"].each do |formula_name| <add> ["libtool", "subversion", "berkeley-db"].each do |formula_name| <ide> retu...
1
Python
Python
fix inplace case of alignment data generator
d555a0ad0f1191daf8ae83e10933da5556b2510e
<ide><path>numpy/core/tests/test_scalarmath.py <ide> def test_blocked(self): <ide> inp1[...] = np.ones_like(inp1) <ide> inp2[...] = np.zeros_like(inp2) <ide> assert_almost_equal(np.add(inp1, inp2), exp1, err_msg=msg) <del> assert_almost_equal(np.add(inp1, 1...
3
Javascript
Javascript
make date comparison in equals() nan-aware
693e846add5089d0e516604ae4a109e445fd3664
<ide><path>src/Angular.js <ide> function equals(o1, o2) { <ide> return true; <ide> } <ide> } else if (isDate(o1)) { <del> return isDate(o2) && o1.getTime() == o2.getTime(); <add> if (!isDate(o2)) return false; <add> return (isNaN(o1.getTime()) && isNaN(o2.getTime())) || (o1....
2
Javascript
Javascript
remove empty value for boolean attributes in ssr
e0c31137434d7c7df2bc3475cb7682b1d7eecc8b
<ide><path>packages/react-dom/src/__tests__/ReactDOMSelect-test.js <ide> describe('ReactDOMSelect', () => { <ide> </select> <ide> ); <ide> var markup = ReactDOMServer.renderToString(stub); <del> expect(markup).toContain('<option selected="" value="giraffe"'); <del> expect(markup).not.toContain('<opt...
2
Text
Text
add release notes for 1.5.9
d7cc863105f75d4bd67fab3c8c44cf6de6bf6dbc
<ide><path>CHANGELOG.md <add><a name="1.5.9"></a> <add># 1.5.9 timeturning-lockdown (2016-11-24) <add> <add>This is an interim release primarily to publish some security fixes, in particular a modification to <add>ensure that Angular 1 can pass the linter checks for Mozilla add-ons. <add> <add>## Security Fixes <add>- ...
1
Ruby
Ruby
clarify that classes that include datehelper can
762a2f4653a5f7408f4cb6056cd974edd12d8b61
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> module ActionView <ide> module Helpers <ide> # = Action View Date Helpers <ide> # <del> # The Date Helper primarily creates select/option tags for different kinds of dates and date elements. All of the <del> # select-type methods share a...
1
PHP
PHP
add replicating model event
7d24f9183fcd2bb7159470a9454fe74fd88e12f5
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php <ide> public function getObservableEvents() <ide> return array_merge( <ide> [ <ide> 'retrieved', 'creating', 'created', 'updating', 'updated', <del> 'saving', 'saved', 'restoring', 'restored', <add> ...
3
Ruby
Ruby
add option to disable methods on specific date
0f8cb4ba277968fb24bf438468b37466075fd18a
<ide><path>Library/Homebrew/test/utils_test.rb <ide> def test_odeprecated <ide> e = assert_raises(MethodDeprecatedError) do <ide> odeprecated("method", "replacement", <ide> caller: ["#{HOMEBREW_LIBRARY}/Taps/homebrew/homebrew-core/"], <del> die: true) <add> disable: true) <ide> end <...
2
Java
Java
adapt fieldhint to recent graalvm versions
1cb5f0072335cc215e3c6ebc9cde325b5b0f24c1
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/FieldHint.java <del>/* <del> * Copyright 2002-2022 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> * You may ob...
2
Javascript
Javascript
handle sign of `-undefined` consistently
c1eaf3480b9a88e5309ff4931a720f3f62bd7606
<ide><path>src/ng/parse.js <ide> ASTInterpreter.prototype = { <ide> if (isDefined(arg)) { <ide> arg = -arg; <ide> } else { <del> arg = 0; <add> arg = -0; <ide> } <ide> return context ? {value: arg} : arg; <ide> }; <ide><path>test/ng/parseSpec.js <ide> describe('parser',...
2
Javascript
Javascript
use umd in lang/uz.js
2d39f9ccb41a1901e7a2005f4a7cb489bd84d0de
<ide><path>lang/uz.js <ide> // language : uzbek <ide> // author : Sardor Muminov : https://github.com/muminoff <ide> <del>require('../moment').lang('uz', { <del> months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"), <del> monthsShort : "янв_фев_мар_апр_май_июн_июл...
1
Python
Python
handle invalid characters in headers
7ae71deb845e0cbe020a4054ba46ab4bed44d6e3
<ide><path>rest_framework/authentication.py <ide> def authenticate(self, request): <ide> msg = _('Invalid token header. Token string should not contain spaces.') <ide> raise exceptions.AuthenticationFailed(msg) <ide> <del> return self.authenticate_credentials(auth[1]) <add> try: <...
2
Python
Python
fix fast tokenizers too
f1e2e423ab46d65bba98757fba420eecce14ea52
<ide><path>src/transformers/tokenization_gpt2.py <ide> def prepare_for_tokenization(self, text, is_pretokenized=False, **kwargs): <ide> <ide> class GPT2TokenizerFast(PreTrainedTokenizerFast): <ide> """ <del> Constructs a "Fast" GPT-2 BPE tokenizer (backed by HuggingFace's `tokenizers` library). <add> Constru...
2
Ruby
Ruby
fix tests for aws buckets that include a .
b9f0eb24ed6a86aec3881b43e6b0028a306465b2
<ide><path>activestorage/test/controllers/direct_uploads_controller_test.rb <ide> class ActiveStorage::S3DirectUploadsControllerTest < ActionDispatch::Integration <ide> assert_equal 6, details["byte_size"] <ide> assert_equal checksum, details["checksum"] <ide> assert_equal "text/plain", details[...
2
Text
Text
remove repeated definition tag in challenge
1cdd009d7a5072dcd49a09c87279601afcbe4d90
<ide><path>curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/nest-one-array-within-another-array.md <ide> You can also nest arrays within other arrays, like below: <ide> [["Bulls", 23], ["White Sox", 45]] <ide> ``` <ide> <del>This is also called a <dfn>multi-dimensional array<...
1
PHP
PHP
remove hack to access class scope inside closures
e2d3424cc2bfeebda0e546779bf9575f4b883578
<ide><path>tests/Routing/RoutingRouteTest.php <ide> public function testRoutePrefixing() <ide> <ide> public function testRoutePreservingOriginalParametersState() <ide> { <del> $phpunit = $this; <ide> $router = $this->getRouter(); <ide> $router->bind('bar', function ($value) { <ide> ...
1
Java
Java
reject range starting above resource length
bc81fa520e2277b627b8fe9efcb28f3035778968
<ide><path>spring-web/src/main/java/org/springframework/http/HttpRange.java <ide> public ResourceRegion toResourceRegion(Resource resource) { <ide> long contentLength = getLengthFor(resource); <ide> long start = getRangeStart(contentLength); <ide> long end = getRangeEnd(contentLength); <add> Assert.isTrue(start ...
2
Text
Text
update ci requirements for landing pull requests
fbda84ef84010f7b456f526fb447b58a4d07cf7a
<ide><path>doc/guides/collaborator-guide.md <ide> * [Consensus seeking](#consensus-seeking) <ide> * [Waiting for approvals](#waiting-for-approvals) <ide> * [Testing and CI](#testing-and-ci) <del> * [Useful CI jobs](#useful-ci-jobs) <del> * [Starting a CI job](#starting-a-ci-job) <add> * [Useful Jenkins C...
1
Text
Text
add `tox` note
d260f1ec15d5aa3085fa74118382bcf2fd752dca
<ide><path>docs/index.md <ide> Run the tests: <ide> <ide> ./rest_framework/runtests/runtests.py <ide> <add>To run the tests against all supported configurations, first install [the tox testing tool][tox] globally, using `pip install tox`, then simply run `tox`: <add> <add> tox <add> <ide> ## Support <ide> <i...
1
PHP
PHP
add comment to better explain
f534db7388d3a7993daa8584e7d48e4961cb9119
<ide><path>src/Mailer/Transport/SmtpTransport.php <ide> protected function _smtpSend(?string $data, $checkCode = '250'): ?string <ide> } <ide> $response .= $bytes; <ide> } <add> // Catch empty or malformed responses. <ide> if (substr($response, -2) !== ...
1
PHP
PHP
fix fatal error when e_strict is enabled
35e0984bec41b019b1a5e8da9877fe472103ff25
<ide><path>lib/Cake/Core/Configure.php <ide> public static function bootstrap($boot = true) { <ide> self::$_values['Error'], <ide> self::$_values['Exception'] <ide> ); <del> unset($error, $exception); <add> <add> // Preload Debugger + String in case of E_STRICT errors when loading files. <add> if (self...
1
PHP
PHP
change method visibility from public to protected
5ab3f673990dd04ca0174eab299b6c65aa0372ce
<ide><path>src/Mailer/MailerAwareTrait.php <ide> trait MailerAwareTrait <ide> * @return \Cake\Mailer\Mailer <ide> * @throws \Cake\Mailer\Exception\MissingMailerException if undefined mailer class. <ide> */ <del> public function getMailer($name, Email $email = null) <add> protected function getMaile...
4
Python
Python
add some benchmarks for `matmul`
e5b108c8f3fe5d60decb6a43b57c994909c8d3a8
<ide><path>benchmarks/benchmarks/bench_linalg.py <ide> def time_inner_trans_a_a(self): <ide> def time_inner_trans_a_ac(self): <ide> np.inner(self.a, self.ac) <ide> <add> def time_matmul_a_b(self): <add> np.matmul(self.a, self.b) <add> <add> def time_matmul_d_matmul_b_c(self): <add> np.m...
1
Java
Java
add action support
cbd9a3caa39e4829c393b851f41894552db0610d
<ide><path>rxjava-core/src/main/java/rx/subscriptions/BooleanSubscription.java <ide> <ide> import rx.Observable; <ide> import rx.Subscription; <add>import rx.util.functions.Action0; <ide> <ide> /** <ide> * Subscription that can be checked for status such as in a loop inside an {@link Observable} to exit the loop if ...
1
Go
Go
remove exported getter
77ef3a606a228a688bb6a4108af7b34aa3a2aa65
<ide><path>daemon/info.go <ide> func (daemon *Daemon) showPluginsInfo() types.PluginsInfo { <ide> pluginsInfo.Network = append(pluginsInfo.Network, nd) <ide> } <ide> <del> pluginsInfo.Authorization = daemon.GetAuthorizationPluginsList() <add> pluginsInfo.Authorization = daemon.configStore.AuthZPlugins <ide> <ide> ...
1
Javascript
Javascript
remove dependence on es5 shams per
f95747b929d50227fe3fdf2a999b8fecc18cd21f
<ide><path>src/isomorphic/classic/element/ReactElement.js <ide> var ReactElement = function(type, key, ref, self, source, owner, props) { <ide> element._self = self; <ide> element._source = source; <ide> } <del> Object.freeze(element.props); <del> Object.freeze(element); <add> if (Object.freeze...
3
Python
Python
run normal textcat train script with transformers
fbfc418745f3ce7ca807672f8b3afacdd199dbd2
<ide><path>examples/training/pretrain_textcat.py <ide> def train_textcat(nlp, n_texts, n_iter=10): <ide> train_data = list(zip(train_texts, [{"cats": cats} for cats in train_cats])) <ide> <ide> # get names of other pipes to disable them during training <del> other_pipes = [pipe for pipe in nlp.pipe_names if...
8
Text
Text
fix merge conflict in action cable guide [ci skip]
4213825a9ac5111660a7818fff283b9ad659f044
<ide><path>guides/source/action_cable_overview.md <ide> You can change that in `config/database.yml` through the `pool` attribute. <ide> <ide> ## Running standalone cable servers <ide> <del><<<<<<< HEAD <ide> ### In App <ide> <ide> Action Cable can run alongside your Rails application. For example, to <ide> your ser...
1
Ruby
Ruby
fix hash equality
fe3e802c500935f74d403dd7e7f0f740f89d44ba
<ide><path>Library/Homebrew/requirements/x11_dependency.rb <ide> def <=> other <ide> return unless X11Dependency === other <ide> min_version <=> other.min_version <ide> end <add> <add> def eql?(other) <add> super && min_version == other.min_version <add> end <ide> end <ide><path>Library/Homebrew/test/tes...
2
Python
Python
fix casing inconsistency
6d9e820ae674a2388303eedc760602ccbeada147
<ide><path>libcloud/loadbalancer/drivers/dimensiondata.py <ide> def ex_create_virtual_listener(self, <ide> ex_description, <ide> port, <ide> pool, <del> listenerIpAddress=None, <add...
1