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
use esm config file for rollup
e798defcde01bdda13f8ae0a8149859b4c7ce57d
<add><path>rollup.config.js <del><path>rollup.config.cjs <del>const cleanup = require('rollup-plugin-cleanup'); <del>const json = require('@rollup/plugin-json'); <del>const resolve = require('@rollup/plugin-node-resolve').default; <del>const terser = require('rollup-plugin-terser').terser; <del>const pkg = require('./p...
1
Python
Python
patch jinja2 for python 3.10 compat
24c403cfaf8bdbcd8b19037531c8998709d2b949
<ide><path>tools/inspector_protocol/jinja2/tests.py <ide> """ <ide> import operator <ide> import re <del>from collections import Mapping <add>from collections.abc import Mapping <ide> from jinja2.runtime import Undefined <ide> from jinja2._compat import text_type, string_types, integer_types <ide> import decimal
1
PHP
PHP
apply fixes from styleci
b6a17a13790dd357061ab569b95a1dea9f4c4d06
<ide><path>src/Illuminate/Support/Collection.php <ide> public function every($key, $operator = null, $value = null) <ide> */ <ide> public function except($keys) <ide> { <del> if ($keys instanceof Collection) { <add> if ($keys instanceof self) { <ide> $keys = $keys->keys()->all(); ...
1
Mixed
Text
remove getreducer from public api
5144bbecd49a31394b8cabc002d2fffaf12227e3
<ide><path>docs/Glossary.md <ide> type Store = { <ide> dispatch: Dispatch; <ide> getState: () => State; <ide> subscribe: (listener: () => void) => () => void; <del> getReducer: () => Reducer; <ide> replaceReducer: (reducer: Reducer) => void; <ide> }; <ide> ``` <ide> There should only be a single store in a Red...
5
Javascript
Javascript
pass index to function predicate
46343c603db6192daf5303b92eb664749326c7e6
<ide><path>src/ng/filter/filter.js <ide> * property of the object. That's equivalent to the simple substring match with a `string` <ide> * as described above. <ide> * <del> * - `function(value)`: A predicate function can be used to write arbitrary filters. The function is <del> * called for each elemen...
2
Javascript
Javascript
remove imported constant flatshading
3d6694b1e90bdb4eaea0cf7d53601dff2e482888
<ide><path>src/renderers/WebGLRenderer.js <del>import { REVISION, MaxEquation, MinEquation, RGB_ETC1_Format, RGBA_PVRTC_2BPPV1_Format, RGBA_PVRTC_4BPPV1_Format, RGB_PVRTC_2BPPV1_Format, RGB_PVRTC_4BPPV1_Format, RGBA_S3TC_DXT5_Format, RGBA_S3TC_DXT3_Format, RGBA_S3TC_DXT1_Format, RGB_S3TC_DXT1_Format, SrcAlphaSaturateFa...
1
PHP
PHP
apply fixes from styleci
03e550fe04f395a59ac40ef683450c6c5a30842d
<ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php <ide> use Illuminate\Foundation\Console\EventMakeCommand; <ide> use Illuminate\Foundation\Console\ModelMakeCommand; <ide> use Illuminate\Foundation\Console\RouteListCommand; <add>use Illuminate\Foundation\Console\ViewCacheCommand; <ide> use Illum...
1
Ruby
Ruby
explain the purpose
4cef27aacffb2ce5aada0c7199e9eb8787291baf
<ide><path>lib/action_cable/connection/tagged_logger_proxy.rb <ide> module ActionCable <ide> module Connection <add> # Allows the use of per-connection tags against the server logger. This wouldn't work using the tradional <add> # ActiveSupport::TaggedLogging-enhanced Rails.logger, as that logger will reset the...
1
Ruby
Ruby
fix comment about layout folders lookup
2562404624bc7d314d05842f4e238aa145b5c78f
<ide><path>actionpack/lib/abstract_controller/layouts.rb <ide> module AbstractController <ide> # layout "weblog_standard" <ide> # end <ide> # <del> # If no directory is specified for the template name, the template will by default be looked for in <tt>app/views/layouts/</tt>. <del> # Otherwise, it will be...
1
Java
Java
remove repetitive scheduler overloads
1531e21caae02ba295cab5875f59dc3c56910f3f
<ide><path>rxjava-core/src/main/java/rx/Scheduler.java <ide> public <T> Subscription schedule(T state, Func2<Scheduler, T, Subscription> acti <ide> } <ide> } <ide> <del> /** <del> * Schedules a cancelable action to be executed. <del> * <del> * @param action <del> * Action to ...
3
Javascript
Javascript
add hook for desc for willwatch and didunwatch
bf5f24cc9ab8c5e6817e970114124e7a78467fd1
<ide><path>packages/ember-metal/lib/watching.js <ide> Ember.watch = function(obj, keyName) { <ide> if (!watching[keyName]) { <ide> watching[keyName] = 1; <ide> if (isKeyName(keyName)) { <add> desc = m.descs[keyName]; <add> if (desc && desc.willWatch) { desc.willWatch(obj, keyName); } <add> <ide> ...
1
PHP
PHP
use a defined time in test diffforhumans
051a23928fbbd273e29edbd13c2944c767cd8ea8
<ide><path>tests/TestCase/I18n/TimeTest.php <ide> public function testDiffForHumans($class) <ide> */ <ide> public function testDiffForHumansAbsolute($class) <ide> { <add> $class::setTestNow(new $class('2015-12-12 10:10:10')); <ide> $time = new $class('2014-04-20 10:10:10'); <ide> $th...
1
Javascript
Javascript
support url inputs in create-clientrequest
8450d1129273e19bd68b8dc9b0102eb69ee02de1
<ide><path>benchmark/http/create-clientrequest.js <ide> <ide> const common = require('../common.js'); <ide> const ClientRequest = require('http').ClientRequest; <del> <add>const types = Object.keys(common.urls) <add> .filter((i) => common.urls[i] <add> .startsWith('http://')); <ide> const bench = common.createBenchm...
2
Text
Text
add rails in credits section
2379014f15505ba991507661ee413e9a605e6687
<ide><path>docs/topics/credits.md <ide> Continuous integration testing is managed with [Travis CI][travis-ci]. <ide> <ide> The [live sandbox][sandbox] is hosted on [Heroku]. <ide> <del>Various inspiration taken from the [Piston], [Tastypie] and [Dagny] projects. <add>Various inspiration taken from the [Rails], [Pisto...
1
Python
Python
show warnings if there's nothing to auto-fill
34bda91695dc49f3bbd41eb3840fb8dfc7b4cf4d
<ide><path>spacy/cli/init_config.py <ide> def fill_config( <ide> nlp, _ = util.load_model_from_config(config, auto_fill=True) <ide> except ValueError as e: <ide> msg.fail(str(e), exits=1) <del> msg.good("Auto-filled config with all values") <add> before = config.to_str(...
1
Javascript
Javascript
check all locales for bad expanded tokens
2dc2997869a11cc492665304702a214b475979ea
<ide><path>src/test/moment/format.js <ide> test('full expanded format is returned from abbreviated formats', function (asse <ide> } <ide> } <ide> <del> var locales = ''; <del> <del> locales += 'af ar-ma ar-sa ar-tn ar az be bg bn bo br bs'; <del> locales += 'ca cs cv cy da de-at de el en-au en-ca ...
1
Text
Text
fix typo in the explanation print() to printf()
29757050ef010bfffb9c2bf09274e5c564df3002
<ide><path>guide/english/c/arrays/index.md <ide> int crr[100] = {3}; <ide> ``` <ide> If you do this, then the first element is going to be `3`, but the rest of them is going to be `0`. <ide> <add>```C <add>int drr[10] = {0}; <add>``` <add>If you want to create an array with all the elements as `0`. <add> <ide> ```C <...
1
Go
Go
move stats api types into api/types package
7fed7d7eb4d7766d9342821f2667d160c5f958eb
<ide><path>api/client/commands.go <ide> import ( <ide> <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/api" <del> "github.com/docker/docker/api/stats" <add> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/autogen/dockerversion" <ide> "github.com/docker/docker/engine" <id...
4
Go
Go
return error for lxc-conf when using native driver
bfdf07ac98e1a425892b787cf224109d5925a798
<ide><path>execdriver/native/driver.go <ide> func NewDriver(root string) (*driver, error) { <ide> } <ide> <ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) { <add> if err := d.validateCommand(c); err != nil { <add> return -1, err <add> } <i...
1
Javascript
Javascript
reduce buffer size in buffer-creation test
d51f4f31be2c36f5fb8a8ca8e17597178313d1ae
<ide><path>test/sequential/test-buffer-creation-regression.js <ide> const acceptableOOMErrors = [ <ide> 'Invalid array buffer length' <ide> ]; <ide> <del>const size = 8589934592; /* 1 << 33 */ <del>const offset = 4294967296; /* 1 << 32 */ <ide> const length = 1000; <add>const offset = 4294967296; /* 1 << 32 */ <add>...
1
Java
Java
add extra logging in fabricuimanager
87e1734217a7860ac81a1f255cad96d47ea1798d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> public void synchronouslyUpdateViewOnUIThread(int reactTag, @NonNull ReadableMap <ide> try { <ide> ReactMarker.logFabricMarker( <ide> ReactMarkerConstants.FABRIC_UPDATE_UI_MAIN_THREAD_START, null, commitNumber...
1
Javascript
Javascript
remove unused argument in assertion
1284fa20094310bb859fd60f95c259c77d8277ae
<ide><path>test/addons-napi/test_async/test-loop.js <ide> const iterations = 500; <ide> <ide> let x = 0; <ide> const workDone = common.mustCall((status) => { <del> assert.strictEqual(status, 0, 'Work completed successfully'); <add> assert.strictEqual(status, 0); <ide> if (++x < iterations) { <ide> setImmediate...
1
PHP
PHP
fix singularization of 'foes'
e649a0516e59fbfa8c04ae38c91974ebe1c5af0a
<ide><path>lib/Cake/Test/Case/Utility/InflectorTest.php <ide> public function testInflectingSingulars() { <ide> $this->assertEquals(Inflector::singularize('curves'), 'curve'); <ide> $this->assertEquals(Inflector::singularize('cafes'), 'cafe'); <ide> $this->assertEquals(Inflector::singularize('roofs'), 'roof'); <a...
2
Mixed
Python
blacken our code
f97af65579c78686d812da2e8c42c3a6d1258169
<ide><path>DIRECTORY.md <ide> * [Bfs](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs.py) <ide> * [Bfs Shortest Path](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs_shortest_path.py) <ide> * [Bidirectional A Star](https://github.com/TheAlgorithms/Python/blob/master/graphs/bidirectio...
3
PHP
PHP
fix more usage of deprecated driver() method
d3a93bff7d0f469e4f6b9b3ee84895e5cb0f3bc6
<ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php <ide> protected function _createTables($connection) <ide> SQL; <ide> $connection->execute($table); <ide> <del> if ($connection->driver()->supportsNativeJson()) { <add> if ($connection->getDriver()->supportsNativeJson()) { <ide> ...
1
PHP
PHP
fix the fatal error that has started showing up
a366a3c0ce222dd76d81214eac3a109da4fe3e96
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testAddContextProviderInvalid() <ide> public function contextSelectionProvider() <ide> { <ide> $entity = new Article(); <del> $collection = $this->getMockBuilder('Cake\Collection\Collection') <del> ->setMeth...
1
PHP
PHP
add proper release method for sqsjob
f192375993d9fc269474b28d4d3034a9480ffb1f
<ide><path>src/Illuminate/Queue/Jobs/SqsJob.php <ide> public function release($delay = 0) <ide> { <ide> parent::release($delay); <ide> <del> // SQS job releases are handled by the server configuration... <add> $this->sqs->changeMessageVisibility(array( <add> 'QueueUrl' => $this->queue, <add> 'Receipt...
2
Text
Text
improve assert documentation
06ab6f2f13981babe71f3a9fe577bebc3c7cb5ac
<ide><path>doc/api/assert.md <ide> assert.deepEqual(obj1, obj4); <ide> If the values are not equal, an `AssertionError` is thrown with a `message` <ide> property set equal to the value of the `message` parameter. If the `message` <ide> parameter is undefined, a default error message is assigned. If the `message` <del>p...
1
Javascript
Javascript
add footer on learn home
421bbdefbeb0f0938482d82a79ac3e36f550fba2
<ide><path>client/utils/gatsby/layoutSelector.js <ide> export default function layoutSelector({ element, props }) { <ide> if (/^\/guide(\/.*)*/.test(pathname)) { <ide> console.log('Hitting guide for some reason. Need a redirect.'); <ide> } <del> if (/^\/learn(\/.*)*/.test(pathname)) { <add> if ( <add> /^\/...
1
Ruby
Ruby
remove reliance of bottle dsl on eoclass
64457b2315088fa8396801d04872b4da443d8961
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_regex <ide> <ide> def old_bottle_regex <ide> /(-bottle\.tar\.gz)$/ <del>end <ide>\ No newline at end of file <add>end <add> <add>def bottle_base_url <add> "https://downloads.sf.net/project/machomebrew/Bottles/" <add>end <ide><path>Library/Homebrew/cmd/bottle.r...
3
Text
Text
prevent some redirections
3ffbbd3eef7a54faf745ae9f9fbc16acb1dd9232
<ide><path>doc/api/async_hooks.md <ide> never be called. <ide> [`destroy` callback]: #async_hooks_destroy_asyncid <ide> [`init` callback]: #async_hooks_init_asyncid_type_triggerasyncid_resource <ide> [Hook Callbacks]: #async_hooks_hook_callbacks <del>[PromiseHooks]: https://docs.google.com/document/d/1rda3yKGHimKIhg5Ye...
14
Javascript
Javascript
add failure test for dns.resolvexxx
c4ab861a494eea9c18698fbf955025ca265b0b92
<ide><path>test/internet/test-dns.js <ide> TEST(function test_resolveMx(done) { <ide> checkWrap(req); <ide> }); <ide> <add>TEST(function test_resolveMx_failure(done) { <add> var req = dns.resolveMx('something.invalid', function(err, result) { <add> assert.ok(err instanceof Error); <add> assert.strictEqual(err...
1
Javascript
Javascript
remove redundant setup in specs
0d2801812757739afb41ae698c151a6e410c5585
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', function () { <ide> return [item, blockDecoration] <ide> } <ide> <add> beforeEach(async function () { <add> wrapperNode.style.height = 9 * lineHeightInPixels + 'px' <add> component.measureDimensions() <add> ...
1
Text
Text
add missing word
cf749356db98b1dfd8ad089e6899cd5d9eeb0aae
<ide><path>docs/recipes/UsageWithTypescript.md <ide> function exampleAPI() { <ide> } <ide> ``` <ide> <del>It is highly recommended to use action creators in your dispatch since we can reuse the work that has been to type check these functions. <add>It is highly recommended to use action creators in your dispatch since...
1
Ruby
Ruby
use ofail to set homebrew.failed
f5e1557154dab1720c8ddf1c48598ebe70205359
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def doctor <ide> methods.each do |method| <ide> $stderr.puts Formatter.headline("Checking #{method}", color: :magenta) if args.debug? <ide> unless checks.respond_to?(method) <del> Homebrew.failed = true <del> puts "No check available by the n...
4
Ruby
Ruby
fix broken sentence
53d87d3b58845b8778e214e2b4e4632029d24b07
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_access_prefix_directories <ide> by Homebrew. If a formula tries to write a file to this directory, the <ide> install will fail during the link step. <ide> <del> You should change the ownership and permissions of these directories. <...
1
Javascript
Javascript
remove duplicated assertisobject
a7c13cf53daa7ca024f46f70322bba5cc13f4a40
<ide><path>lib/internal/http2/core.js <ide> Object.defineProperty(connect, promisify.custom, { <ide> }); <ide> <ide> function createSecureServer(options, handler) { <del> assertIsObject(options, 'options'); <ide> return new Http2SecureServer(options, handler); <ide> } <ide> <ide> function createServer(options, han...
1
Javascript
Javascript
increase polling threshold for publish-prereleases
d56947eb2c2a0d1599975b90a353b06b58c0e00c
<ide><path>scripts/release/publish-using-ci-workflow.js <ide> function sleep(ms) { <ide> <ide> async function getPublishWorkflowID(pipelineID) { <ide> // Since we just created the pipeline in a POST request, the server may 404. <del> // Try up to three times before giving up. <del> for (let i = 0; i < 3; i++) { <a...
1
PHP
PHP
simplify tests for env() with defaults
4bc0f2d4c7c436937fc087e4576e06020c72df1c
<ide><path>tests/TestCase/Core/FunctionsTest.php <ide> class FunctionsTest extends TestCase <ide> public function testEnv() <ide> { <ide> $_ENV['DOES_NOT_EXIST'] = null; <del> $actual = env('DOES_NOT_EXIST'); <del> $this->assertNull($actual); <del> $actual = env('DOES_NOT_EXIST', 'd...
2
PHP
PHP
throw exception if transliteration fails
15bfe2b714fbb90e4c9cdb55da486f9afff1d519
<ide><path>src/Utility/Text.php <ide> */ <ide> namespace Cake\Utility; <ide> <add>use Cake\Core\Exception\Exception; <ide> use InvalidArgumentException; <ide> use Transliterator; <ide> <ide> public static function transliterate(string $string, $transliterator = null): st <ide> $transliterator = static::$...
1
Java
Java
ensure redirectmodel is initialized
582864802e49f0cc47575be00194e4194d7b1dc5
<ide><path>spring-web/src/main/java/org/springframework/web/method/support/ModelAndViewContainer.java <ide> public ModelMap getModel() { <ide> return this.defaultModel; <ide> } <ide> else { <del> return (this.redirectModel != null) ? this.redirectModel : new ModelMap(); <add> if (this.redirectModel == null) ...
3
Javascript
Javascript
remove obsolete todo
d1871a22c0e7069d03f6b87f829e02ee1c874643
<ide><path>lib/internal/cluster/shared_handle.js <ide> function SharedHandle(key, address, port, addressType, fd, flags) { <ide> this.handle = null; <ide> this.errno = 0; <ide> <del> // FIXME(bnoordhuis) Polymorphic return type for lack of a better solution. <ide> var rval; <del> <ide> if (addressType === 'ud...
1
Javascript
Javascript
add regression test for
d9425733931d86b41cbe0cb7f7f9940af4cbe8a5
<ide><path>test/parallel/test-stdio-pipe-stderr.js <add>'use strict'; <add>require('../common'); <add>const tmpdir = require('../common/tmpdir'); <add>const assert = require('assert'); <add>const fs = require('fs'); <add>const join = require('path').join; <add>const spawn = require('child_process').spawnSync; <add> <ad...
1
PHP
PHP
fix bug surrounding cookie session driver
affcad0948ecc263ab572b858c618a23c4adf5b9
<ide><path>laravel/session/drivers/driver.php <ide> public function id() <ide> { <ide> $session = array(); <ide> <add> // If the driver is an instance of the Cookie driver, we are able to <add> // just return any string since the Cookie driver has no real idea <add> // of a server side persisted session with an ...
1
Go
Go
move exposed ports from endpoint to sandbox
1638fbdf279b1646ee0d50387b3ed291bbc3ac45
<ide><path>libnetwork/api/api.go <ide> func (sc *sandboxCreate) parseOptions() []libnetwork.SandboxOption { <ide> setFctList = append(setFctList, libnetwork.OptionExtraHost(e.Name, e.Address)) <ide> } <ide> } <add> if sc.ExposedPorts != nil { <add> setFctList = append(setFctList, libnetwork.OptionExposedPorts(sc...
21
Python
Python
enable syntax iterator and lemma lookup
bbc75da38d4b3d7e65f992c18be0d55983f74d49
<ide><path>spacy/lang/id/__init__.py <ide> from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH <ide> from .norm_exceptions import NORM_EXCEPTIONS <add>from .lemmatizer import LOOKUP <ide> from .lex_attrs import LEX_...
1
Text
Text
update pull request template with checklist
294f6ddf89df61482ae86c4858e67ced2a97b567
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <del>## FreeCodeCamp Pull Request template <del>Please, go through these steps before you submit a PR. <add><!-- FreeCodeCamp Pull Request Template --> <add> <add><!-- IMPORTANT Please review https://github.com/FreeCodeCamp/FreeCodeCamp/blob/staging/CONTRIBUTING.md for detail...
1
Javascript
Javascript
remove `require('buffer')` from 4 test files
befede64f14858ffea4e8d6f93700be07e0f85fc
<ide><path>test/parallel/test-stream-uint8array.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> const assert = require('assert'); <del>const Buffer = require('buffer').Buffer; <ide> <ide> const { Readable, Writable } = require('stream'); <ide> <ide><path>test/parallel/test-stream2-finish-pipe....
4
Python
Python
fix tree construction on windows
712b7421ba6490e14acb9bde4a33b99fc643089d
<ide><path>glances/core/glances_processes.py <ide> def buildTree(process_dict, sort_key, hide_kernel_threads): <ide> tree_root = ProcessTreeNode(root=True) <ide> nodes_to_add_last = collections.deque() <ide> <del> # first pass: build tree structure <add> # first pass: add nodes whose pare...
1
Javascript
Javascript
replace object.entries with object.keys
3abe9bfebf05b3c52fb7edd4cb190c42a55e3755
<ide><path>src/core/core.controller.js <ide> function mergeScaleConfig(config, options) { <ide> <ide> // First figure out first scale id's per axis. <ide> // Note: for now, axis is determined from first letter of scale id! <del> Object.entries(configScales).forEach(([id, scale]) => { <add> Object.keys(configScales)....
1
Text
Text
remove broken link from progressive-render example
e8a9472bcd1a402f7d5925e4cac6774ebb62c2ec
<ide><path>examples/progressive-render/README.md <ide> This example features: <ide> <ide> * An app with a component that must only be rendered in the client <ide> * A loading component that will be displayed before rendering the client-only component <del> <del>**Example**: https://progressive-render-raceuevkqw.now.sh...
1
Java
Java
consider original headers in pattern-based removal
e694cc16c72a5304e031ff144de340ebb72b93df
<ide><path>spring-context/src/main/java/org/springframework/messaging/support/MessageHeaderAccessor.java <ide> public void removeHeaders(String... headerPatterns) { <ide> for (String pattern : headerPatterns) { <ide> if (StringUtils.hasLength(pattern)){ <ide> if (pattern.contains("*")){ <del> for (String h...
1
Javascript
Javascript
escape key closes findbar
7cace5f160b7ce8d78a6d8386a64ab90a1c516d5
<ide><path>web/viewer.js <ide> var PDFFindBar = { <ide> self.dispatchEvent(''); <ide> }); <ide> <del> // TODO: Add keybindings CMD-G etc. to go to prev/ <del> // next match when the findField is selected. <del> <del> this.findField.addEventListener('keydown', function(evt) { <add> this.bar.addEve...
1
Text
Text
add note about json/jsonb serialization changes
835246e622dc0431af3cb951db22ef78876006af
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> When using Ruby 2.4, you can preserve the timezone of the receiver when calling <ide> <ide> ActiveSupport.to_time_preserves_timezone = false <ide> <add>### Changes with JSON/JSONB serialization <add> <add>In Rails 5.0, how JSON/JSONB attributes are seriali...
1
PHP
PHP
fix php 5.4 syntax in test
35936d69b95e0294754ddcb0c657b8a2091c6ac8
<ide><path>tests/Routing/RoutingUrlGeneratorTest.php <ide> public function testWellFormedUrlIsReturnedUnchanged() <ide> public function testUrlGeneratorUsesCurrentSchemeIfNoneSpecified() <ide> { <ide> $router = new Router; <del> $router->get('/', ['as' => 'home', function() {}]); <add> $router->get('/', array('as...
1
Text
Text
improve readability of contributing.md
db97dac86dd1b3023d87e6093ae0bcecdf4afd78
<ide><path>CONTRIBUTING.md <ide> If you have a question, check Stack Overflow using <ide> [this list of tags](https://spring.io/questions), organized by Spring project. <ide> Find an existing discussion, or start a new one if necessary. <ide> <del>If you suspect an issue, perform a search in the <add>If you find an is...
1
Text
Text
add the text "types of computer cpu" to article
2de561ef12d3ba493ba74bc74e8c714e9f1b71e1
<ide><path>guide/english/computer-hardware/cpu/index.md <ide> title: CPU <ide> --- <ide> <ide> ## CPU <del> <ide> The Central Processing Unit (CPU) serves as the "brain" of a computer, allowing it to perform essential computational tasks. <ide> <ide> CPUs are integrated circuits, which are complex circuits embedded o...
1
Ruby
Ruby
do this in a saner way
5b75c73df6ff868136831084b5e016f125e8a981
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_unlinked_but_not_keg_only <ide> if not rack.directory? <ide> true <ide> elsif not (HOMEBREW_REPOSITORY/"Library/LinkedKegs"/rack.basename).directory? <del> Formula.factory(rack.basename.to_s).keg_only? rescue nil <add> begin <add> ...
2
Javascript
Javascript
fix tshirt version 2 not submitting properly bug
5b5b37adff62b0582fd5d8535b54e6b5f751ee2e
<ide><path>server/boot/user.js <ide> module.exports = function(app) { <ide> router.get('/account/unlink/:provider', getOauthUnlink); <ide> router.get('/account', getAccount); <ide> router.get('/vote1', vote1); <del> router.get('/vote2', vote1); <add> router.get('/vote2', vote2); <ide> // Ensure this is the la...
1
Python
Python
attempt workaround for pylint bug on travis ci
20014e6f640d023660af3d14b38c159b6494bfb3
<ide><path>libcloud/common/dimensiondata.py <ide> """ <ide> from base64 import b64encode <ide> from time import sleep <del>from distutils.version import LooseVersion <add> <add>from distutils.version import LooseVersion # pylint: disable=import-error <ide> from libcloud.utils.py3 import httplib <ide> from libcloud.uti...
1
Text
Text
improve changelog entry [ci skip]
cf15e027b9699c29e01e7c91296a84f378c1c2f0
<ide><path>activerecord/CHANGELOG.md <del>* Improve the default select when from is used. <add>* Improve the default select when `from` is used. <ide> <ide> Previously, if you did something like Topic.from(:temp_topics), it <ide> would generate SQL like: <ide> <del> SELECT topics.* FROM temp_topics; ...
1
Javascript
Javascript
use emptyobject for `dictionary(null)`
8c8fe83d45d08ae38ad0a73dc5576455abb31030
<ide><path>packages/ember-application/tests/system/dependency_injection/default_resolver_test.js <ide> QUnit.test('knownForType returns each item for a given type found', function() { <ide> <ide> let found = registry.resolver.knownForType('helper'); <ide> <del> deepEqual(found, { <del> 'helper:foo-bar': true, <...
2
Javascript
Javascript
add some flow types to inputvaluetracking
e06b335588beade38ac834c9f2453554ffcc9140
<ide><path>src/renderers/dom/fiber/ReactDOMFiberComponent.js <ide> var ReactDOMFiberComponent = { <ide> props = ReactDOMFiberInput.getHostProps(domElement, rawProps); <ide> // TODO: Make sure we check if this is still unmounted or do any clean <ide> // up necessary since we never stop tracking a...
2
PHP
PHP
add missing docblock
e6a430b486490e908115052771c020b921254b63
<ide><path>src/Illuminate/Mail/Mailable.php <ide> public function replyTo($address, $name = null) <ide> * <ide> * @param object|array|string $address <ide> * @param string|null $name <add> * @param string $property <ide> * @return $this <ide> */ <ide> protected function setAddress...
1
Ruby
Ruby
fix 1.9.2 failures
54b09e17d4527bb4e5508d7dcb286040c3e3ea3f
<ide><path>actionpack/test/template/template_test.rb <ide> def my_buffer <ide> end <ide> end <ide> <del> def new_template(body = "<%= hello %>", handler = ERBHandler, details = {}) <del> ActionView::Template.new(body, "hello template", ERBHandler, {:virtual_path => "hello"}) <add> def new_template(body = "<...
1
Python
Python
update tim_sort.py (#972)
e58a5e68424df74a4c7b30df04162c775044405c
<ide><path>sorts/tim_sort.py <del>from __future__ import print_function <ide> def binary_search(lst, item, start, end): <ide> if start == end: <del> if lst[start] > item: <del> return start <del> else: <del> return start + 1 <add> return start if lst[start] > item else sta...
1
Python
Python
remove a few unused imports from test files
d920a80bbda99562b50ff5296ebcdb2c81e8e8d5
<ide><path>numpy/random/tests/test_generator_mt19937.py <ide> import pytest <ide> <ide> import numpy as np <del>from numpy.dual import cholesky, eigh, svd <ide> from numpy.linalg import LinAlgError <ide> from numpy.testing import ( <ide> assert_, assert_raises, assert_equal, assert_allclose, <ide><path>numpy/rando...
3
Text
Text
fix minor typo
4b0744b1191622722c0cd24e9b4d46286e5e9c79
<ide><path>docs/sources/faq.md <ide> Linux: <ide> - Ubuntu 12.04, 13.04 et al <ide> - Fedora 19/20+ <ide> - RHEL 6.5+ <del> - Centos 6+ <add> - CentOS 6+ <ide> - Gentoo <ide> - ArchLinux <ide> - openSUSE 12.3+ <ide><path>docs/sources/installation/centos.md <ide> start or restart `firewalld` after Docker, ...
2
PHP
PHP
add iscallable helper
8c16891c6e7a4738d63788f4447614056ab5136e
<ide><path>src/Illuminate/Support/Reflector.php <ide> namespace Illuminate\Support; <ide> <ide> use ReflectionClass; <add>use ReflectionMethod; <ide> use ReflectionNamedType; <ide> <ide> class Reflector <ide> { <add> /** <add> * This is a PHP 7.4 compatible implementation of is_callable. <add> * <add> ...
2
Go
Go
enable testhistory* cli tests
15c32f39a94bb389087389e03ae4e2429dc851a0
<ide><path>integration-cli/docker_cli_history_test.go <ide> import ( <ide> // This is a heisen-test. Because the created timestamp of images and the behavior of <ide> // sort is not predictable it doesn't always fail. <ide> func (s *DockerSuite) TestBuildHistory(c *check.C) { <del> testRequires(c, DaemonIsLinux) <ide>...
1
Python
Python
add time stamps for wav2vec2 with lm
e064f081504ef935a0fef30d5ce7dce4c58bd38b
<ide><path>src/transformers/models/wav2vec2/tokenization_wav2vec2.py <ide> Whether or not to print more information and warnings. <ide> """ <ide> <add>ListOfDict = List[Dict[str, Union[int, str]]] <add> <ide> <ide> @dataclass <ide> class Wav2Vec2CTCTokenizerOutput(ModelOutput): <ide> class Wav2Vec2CTC...
4
Go
Go
fix duplicate layers in exported tar
41bf7de73be5d35f40aca9eb68064aa3e8bb9a54
<ide><path>image/tarexport/save.go <ide> type saveSession struct { <ide> outDir string <ide> images map[image.ID]*imageDescriptor <ide> savedLayers map[string]struct{} <add> diffIDPaths map[layer.DiffID]string // cache every diffID blob to avoid duplicates <ide> } <ide> <ide> func (l *tarexporter) Save(na...
1
Javascript
Javascript
increase test timeout to prevent flakiness
41ac1921920b736f812cc03f6df98ff169d32c07
<ide><path>test/parallel/test-repl.js <ide> function event(ee, expected) { <ide> const data = inspect(expected, { compact: false }); <ide> const msg = `The REPL did not reply as expected for:\n\n${data}`; <ide> reject(new Error(msg)); <del> }, common.platformTimeout(500)); <add> }, common.platfo...
1
Javascript
Javascript
fix typo in sample code
d1f70f64ded363d3f38008522c211f689b94aacc
<ide><path>Libraries/CustomComponents/ListView/ListView.js <ide> var SCROLLVIEW_REF = 'listviewscroll'; <ide> * <ide> * ``` <ide> * getInitialState: function() { <del> * var ds = new ListViewDataSource({rowHasChanged: (r1, r2) => r1 !== r2}); <add> * var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r...
1
Javascript
Javascript
convert doctype and names
2e641ac49f121a6e2cc70bd3879930b44a8a7710
<ide><path>src/Angular.js <ide> /** <ide> * @ngdoc module <ide> * @name ng <add> * @module ng <ide> * @description <ide> * <ide> * # ng (core module) <ide> function encodeUriQuery(val, pctEncodeSpaces) { <ide> <ide> /** <ide> * @ngdoc directive <del> * @name ng.directive:ngApp <add> * @name ngApp <ide> * @modu...
67
Python
Python
add noise_shape and seed to dropout layer api
8c0c3774e6cf88704f685784f8baba9694220d4d
<ide><path>keras/layers/core.py <ide> class Dropout(Layer): <ide> <ide> # Arguments <ide> p: float between 0 and 1. Fraction of the input units to drop. <add> noise_shape: 1D integer tensor representing the shape of the <add> binary dropout mask that will be multiplied with the input. <ad...
2
Javascript
Javascript
fix typo for unpatchcanplaytype
e2a1cac13613ab17833b38a8248d062d952c9027
<ide><path>test/unit/media.html5.js <ide> test('should re-link the player if the tech is moved', function(){ <ide> <ide> test('patchCanPlayType and unpatchCanPlayType are available on Html5 object', function() { <ide> ok(vjs.Html5.patchCanPlayType, 'patchCanPlayType is available'); <del> ok(vjs.Html5.unatchCanPlayT...
1
Text
Text
update examples in documentation
f75f70a60d2c5edb0b4b2dc9ceeedd776ee28324
<ide><path>docs/templates/examples.md <ide> <ide> Here are a few examples to get you started! <ide> <add>In the examples folder, you will also find example models for real datasets: <add> <add>- CIFAR10 small images classification: Convolutional Neural Network (CNN) with realtime data augmentation <add>- IMDB movie r...
1
Java
Java
remove qetqueryparams from serverhttprequest
71dbd7bc1f4ac49dcdc1222174906d6db1ee378c
<ide><path>spring-web/src/main/java/org/springframework/http/server/ServerHttpRequest.java <ide> <ide> import org.springframework.http.HttpInputMessage; <ide> import org.springframework.http.HttpRequest; <del>import org.springframework.util.MultiValueMap; <ide> <ide> /** <ide> * Represents a server-side HTTP request...
6
Text
Text
move files between servers
6807d7a8b2d1d0cba92505c8d9233de4097ed85a
<ide><path>guide/english/ssh/moving-files-between-servers/index.md <add>--- <add>title: Moving files between servers <add>--- <add> <add>## Moving file from local computer to remote server <add> <add>* First add public key of remote server to known hosts <add>* The command to copy files from local computer to remote s...
1
Javascript
Javascript
remove hack for `atob` and `btoa` wpt tests
48dbec8b60ecc9728c82371ec1e99ff8348fde1f
<ide><path>test/wpt/test-atob.js <ide> const { WPTRunner } = require('../common/wpt'); <ide> <ide> const runner = new WPTRunner('html/webappapis/atob'); <ide> <del>// Needed to access to DOMException. <del>runner.setFlags(['--expose-internals']); <del> <del>// Set a script that will be executed in the worker before r...
1
Python
Python
fix handling of error description [ci skip]
d7ad65a9bbfd09395de933ec38cac2d258e1a94b
<ide><path>spacy/cli/_util.py <ide> def show_validation_error( <ide> yield <ide> except ConfigValidationError as e: <ide> title = title if title is not None else e.title <add> if e.desc: <add> desc = f"{e.desc}" if not desc else f"{e.desc}\n\n{desc}" <ide> # Re-generate a n...
1
Javascript
Javascript
remove navigator.geolocation, use geolocation
45bd2b514b581716ffb9e5fffe7500acb119cee8
<ide><path>Libraries/Core/InitializeCore.js <ide> require('setUpRegeneratorRuntime'); <ide> require('setUpTimers'); <ide> require('setUpXHR'); <ide> require('setUpAlert'); <del>require('setUpGeolocation'); <add>require('setUpNavigator'); <ide> require('setUpBatchedBridge'); <ide> require('setUpSegmentFetcher'); <ide> i...
4
Python
Python
prepare 1.0.4 pypi release
62053e68e2895f990295bae4bda3e671767849fb
<ide><path>keras/__init__.py <ide> from . import optimizers <ide> from . import regularizers <ide> <del>__version__ = '1.0.3' <add>__version__ = '1.0.4' <ide><path>setup.py <ide> <ide> <ide> setup(name='Keras', <del> version='1.0.3', <add> version='1.0.4', <ide> description='Deep Learning for Python'...
2
Text
Text
put content in project euler stub
cc0b071aca66759da7bcf94c5ecb9882f04cf4ea
<ide><path>packages/learn/src/introductions/coding-interview-prep/project-euler/index.md <ide> superBlock: Coding Interview Prep <ide> --- <ide> ## Introduction to the Project Euler Problems <ide> <del>This introduction is a stub <add>[Project Euler](https://projecteuler.net/) (pronounced Oiler) is a series of challen...
1
Text
Text
add protocol information
e3afefd2a2d7d3e49bde8c6d6036630d7af85908
<ide><path>guide/english/c/basic-networking/index.md <ide> But, how will it arrive at the apartment? Every apartment has there own unique a <ide> ## Basics of Socket Programming <ide> <ide> Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a pa...
1
Ruby
Ruby
avoid some false positives
049a453b460a5580991e5ca0f8c77fcd1f86eea1
<ide><path>Library/Homebrew/os/mac/linkage_checker.rb <ide> def check_undeclared_deps <ide> end <ide> extraneous_deps = declared_dep_names.reject do |full_name| <ide> name = full_name.split("/").last <del> @brewed_dylibs.keys.map { |x| x.split("/").last }.include? name <add> Formula[name].bin.di...
1
Ruby
Ruby
skip another array is_a check
6eeb76f0411e3d7d78b903601e15a7c7b61ed88b
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> def polymorphic_url(record_or_hash_or_array, options = {}) <ide> if record_or_hash_or_array.first.is_a?(ActionDispatch::Routing::RoutesProxy) <ide> recipient = record_or_hash_or_array.shift <ide> end <del> ...
1
Text
Text
update build paths in docs
665f80483ee27c6460784733c114f724dacdc675
<ide><path>docs/contributing/how-to-contribute.md <ide> We recommend running `npm test` (or its variations above) to make sure you don't <ide> <ide> First, run `npm run build`. This will produce pre-built bundles in `build` folder, as well as prepare npm packages inside `build/packages`. <ide> <del>The easiest way to...
1
PHP
PHP
fix types for logengineregistry
4f4283c6377880f6cdba75dedd62107eda452be4
<ide><path>src/Log/LogEngineRegistry.php <ide> <ide> use Cake\Core\App; <ide> use Cake\Core\ObjectRegistry; <del>use Cake\Log\Engine\BaseLog; <add>use Psr\Log\LoggerInterface; <ide> use RuntimeException; <ide> <ide> /** <ide> * Registry of loaded log engines <ide> * <del> * @extends \Cake\Core\ObjectRegistry<\Cake\...
1
PHP
PHP
add licence header
e769f3796f10ecf707bfbda1c27373d2ca240a76
<ide><path>src/Datasource/RulesAwareTrait.php <ide> <?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, pl...
1
Javascript
Javascript
fix permanent deoptimizations
e8a429075f0af46a91131a4a64bdb559e4979cf5
<ide><path>lib/fs.js <ide> function getOptions(options, defaultOptions) { <ide> } <ide> <ide> function copyObject(source) { <del> const target = {}; <del> for (const key in source) <add> var target = {}; <add> for (var key in source) <ide> target[key] = source[key]; <ide> return target; <ide> } <ide> fs.exis...
1
Text
Text
start new api v1.17 docs
800a8e896e810019b625ad0161c4fc4a04c26845
<ide><path>docs/sources/reference/api/docker_remote_api.md <ide> page_keywords: API, Docker, rcli, REST, documentation <ide> Client applications need to take this into account to ensure <ide> they will not break when talking to newer Docker daemons. <ide> <del>The current version of the API is v1.16 <add>The cur...
3
Text
Text
add automation requirement to rule #3
25577e93b1ca4ae46b810dd690e21208c341bc30
<ide><path>docs/rfcs/001-updateable-bundled-packages.md <ide> Any package that opts into this behavior must adhere to these rules: <ide> <ide> 3. **Atom's `package.json` *must* stay up to date with the latest supported version of the package** in the `master` and Beta release branches. This ensures that the user alwa...
1
Ruby
Ruby
fix rubocop warnings
784e804fc23bbfa83a0104bb138f4802f8397d8a
<ide><path>Library/Homebrew/requirements/ruby_requirement.rb <ide> class RubyRequirement < Requirement <ide> default_formula "ruby" <ide> <ide> def initialize(tags) <del> @version = tags.shift if /(\d\.)+\d/ === tags.first <add> @version = tags.shift if /(\d\.)+\d/ =~ tags.first <ide> raise "RubyRequirem...
1
Text
Text
fix typo in doc/api/process.md
37699070cc3aea7c2a0b8b764c8314a301e977fa
<ide><path>doc/api/process.md <ide> These behaviours are partly for historical reasons, as changing them would <ide> create backwards incompatibility, but they are also expected by some users. <ide> <ide> Synchronous writes avoid problems such as output written with `console.log()` or <del>`console.write()` being unex...
1
Javascript
Javascript
accept promise as element type
5031ebf6beddf88cac15f4d2c9e91f8dbb91d59d
<ide><path>packages/react-dom/src/test-utils/ReactTestUtils.js <ide> import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflection'; <ide> import * as ReactInstanceMap from 'shared/ReactInstanceMap'; <ide> import { <ide> ClassComponent, <add> ClassComponentLazy, <ide> FunctionalComponent, <add> Functio...
24
Text
Text
add import statement to visibilityfilter example
03cb88a7ae698545bd8bc960992949e94a484a59
<ide><path>docs/basics/Reducers.md <ide> function todoApp(state = initialState, action) { <ide> Now let's handle `SET_VISIBILITY_FILTER`. All it needs to do is to change `visibilityFilter` on the state. Easy: <ide> <ide> ```js <add>import { <add> SET_VISIBILITY_FILTER, <add> VisibilityFilters <add>} from './actions'...
1
PHP
PHP
fix function signature to match php's function
611d173f04d5db5ee71b312e55480d3b56bada65
<ide><path>tests/TestCase/Http/server_mocks.php <ide> */ <ide> namespace Cake\Http; <ide> <del>function headers_sent() <add>function headers_sent(&$file = null, &$line = null) <ide> { <ide> return $GLOBALS['mockedHeadersSent'] ?? true; <ide> }
1
Javascript
Javascript
ignore lifecycle events outside batches
abe9a0ce94145d286c251ac66c7e17ea2ae879ad
<ide><path>src/isomorphic/ReactDebugTool.js <ide> var ReactDebugTool = { <ide> onBeginLifeCycleTimer(debugID, timerType) { <ide> emitEvent('onBeginLifeCycleTimer', debugID, timerType); <ide> if (__DEV__) { <del> if (isProfiling) { <add> if (isProfiling && currentFlushNesting > 0) { <ide> war...
1