content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Text
Text
replace github -> github (russian)
e85a60515ee64b195770aa71eab352a5543c2231
<ide><path>curriculum/challenges/russian/06-information-security-and-quality-assurance/advanced-node-and-express/authentication-strategies.russian.md <ide> localeTitle: Стратегии аутентификации <ide> --- <ide> <ide> ## Description <del><section id="description"> Напомним, что этот проект строится на следующем стартово...
40
PHP
PHP
move redirects handling to the client
bcd94078eb85843b24292a6b0bdf752b725310ff
<ide><path>src/Http/Client.php <ide> use Cake\Http\Client\CookieCollection; <ide> use Cake\Http\Client\Request; <ide> use Cake\Utility\Hash; <add>use Zend\Diactoros\Uri; <ide> <ide> /** <ide> * The end user interface for doing HTTP requests. <ide> protected function _mergeOptions($options) <ide> * @return \Cake\...
2
Javascript
Javascript
return a number from sort compare function
4cadb68dfe9b43672b8a2358a0ccfa67baba0621
<ide><path>examples/blog-starter/lib/api.js <ide> export function getAllPosts(fields = []) { <ide> const posts = slugs <ide> .map((slug) => getPostBySlug(slug, fields)) <ide> // sort posts by date in descending order <del> .sort((post1, post2) => (post1.date > post2.date ? '-1' : '1')) <add> .sort((post...
1
PHP
PHP
normalize order of types in return tags
d52aebcde3becf801f2ae5fa995acedad6db8b22
<ide><path>src/Console/CommandCollection.php <ide> public function has(string $name): bool <ide> * Get the target for a command. <ide> * <ide> * @param string $name The named shell. <del> * @return string|\Cake\Console\Shell|\Cake\Console\CommandInterface Either the command class or an instance. <add...
11
Text
Text
add changelogs for punycode
c5a4edb64fafd7534d433b58b4a8748effa40014
<ide><path>doc/api/punycode.md <ide> # Punycode <add><!-- YAML <add>changes: <add> - version: v7.0.0 <add> pr-url: https://github.com/nodejs/node/pull/7941 <add> description: Accessing this module will now emit a deprecation warning. <add>--> <ide> <ide> > Stability: 0 - Deprecated <ide>
1
PHP
PHP
change method order
65cf2fd5e8f9334831bb3ccb3e12549a80faba7f
<ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php <ide> protected function clearLoginAttempts(Request $request) <ide> ); <ide> } <ide> <del> /** <del> * Fire an event when a lockout occurs. <del> * <del> * @param \Illuminate\Http\Request $request <del> * @return void <del> ...
1
Javascript
Javascript
enable optimization.sideeffects by default
21337fe49cecd2719c7a7e1d4a085366231c282c
<ide><path>lib/WebpackOptionsDefaulter.js <ide> class WebpackOptionsDefaulter extends OptionsDefaulter { <ide> if (options.mode === "development") return "named"; <ide> return "natural"; <ide> }); <del> this.set("optimization.sideEffects", "make", options => <del> isProductionLikeMode(options) <del> ); <add...
2
Javascript
Javascript
fix hydration bug with nested suspense boundaries
606f76b6e4763581ecf742144ee82756902674ff
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js <ide> describe('ReactDOMServerPartialHydration', () => { <ide> let div = container.getElementsByTagName('div')[0]; <ide> expect(ref.current).toBe(div); <ide> }); <add> <add> it('can client render nested boundaries', a...
2
Text
Text
fix the 404 status url
5fa33f3d07f8595a188f6fe04d6168a6ede1e721
<ide><path>docs/LinuxWindowsSupport.md <ide> On Windows the packager won't be started automatically when you run `react-nativ <ide> cd MyAwesomeApp <ide> react-native start <ide> <del>If you hit a `ERROR Watcher took too long to load` on Windows, try increasing the timeout in [this file](https://github.com/fa...
1
Javascript
Javascript
replace concatenation with template literals
651fc55b6e35da544f3547f762a2076571336ac8
<ide><path>test/async-hooks/test-signalwrap.js <ide> assert.strictEqual(typeof signal1.triggerAsyncId, 'number'); <ide> checkInvocations(signal1, { init: 1 }, 'when SIGUSR2 handler is set up'); <ide> <ide> let count = 0; <del>exec('kill -USR2 ' + process.pid); <add>exec(`kill -USR2 ${process.pid}`); <ide> <ide> let s...
1
Text
Text
improve crypto.randomuuid() text
15e47ed10de98e705e861a2946b8a737a772e8ab
<ide><path>doc/api/crypto.md <ide> added: REPLACEME <ide> <ide> * `options` {Object} <ide> * `disableEntropyCache` {boolean} By default, to improve performance, <del> Node.js will pre-emptively generate and persistently cache enough <add> Node.js generates and caches enough <ide> random data to generate up...
1
Text
Text
add airflow 2.0.0 to requirements table
d3ddfd1d79ada0805ed3dd9789702a3e117127f9
<ide><path>README.md <ide> Airflow is not a streaming solution, but it is often used to process real-time d <ide> <ide> Apache Airflow is tested with: <ide> <del>| | Master version (2.0.0dev) | Stable version (1.10.14) | <del>| ------------ | ------------------------- | ------------------------ | <del>| ...
1
Python
Python
fix current_app fallback in groupresult.restore()
973bb1875f24e33d08ecbc0abd07b477ab7e7693
<ide><path>celery/result.py <ide> def children(self): <ide> @classmethod <ide> def restore(cls, id, backend=None, app=None): <ide> """Restore previously saved group result.""" <del> app = app or cls.app <del> backend = backend or (app.backend if app else current_app.backend) <add> a...
2
Javascript
Javascript
add subviewstyle prop to navigationheader
1dc82a9e5f27339c352e171a5d1c760d90b04440
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationHeader.js <ide> type Props = NavigationSceneRendererProps & { <ide> renderRightComponent: NavigationSceneRenderer, <ide> renderTitleComponent: NavigationSceneRenderer, <ide> style?: any; <add> subviewStyle?: any; <ide> viewProps?: any; <ide...
1
Text
Text
remove entry for reverted commit [ci skip]
b6618c6ceed4fcb55eb646d8ff263eb7e8e69512
<ide><path>guides/source/5_0_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> button on submit to prevent double submits. <ide> ([Pull Request](https://github.com/rails/rails/pull/21135)) <ide> <del>* Downcase model name in form submit tags rather than humanize....
1
Python
Python
add softsign in numpy backend
bf0f25f79a368aecc79515be6a7f20a87de2c436
<ide><path>keras/backend/numpy_backend.py <ide> def softplus(x): <ide> return np.log(1. + np.exp(x)) <ide> <ide> <add>def softsign(x): <add> return x / (1 + np.abs(x)) <add> <add> <ide> def elu(x, alpha=1.): <ide> return x * (x > 0) + alpha * (np.exp(x) - 1.) * (x < 0) <ide> <ide><path>keras/backend/tenso...
3
Java
Java
add mockserverwebexchange and toexchange shortcuts
41c413a7489f4e3d612b1133328eb0fe2fe80e92
<ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java <ide> protected MultiValueMap<String, HttpCookie> initCookies() { <ide> return this.cookies; <ide> } <ide> <add> <add> /** <add> * Shortcut to wrap the request with a {@code MockServerWebExchange}. <add> ...
5
Javascript
Javascript
reintroduce guid’s for simplehandlebarsview
abf800a73c3850a021b5b3887aa7189a5bd77211
<ide><path>packages/ember-handlebars/lib/views/handlebars_bound_view.js <ide> var viewStates = states; <ide> <ide> import _MetamorphView from "ember-handlebars/views/metamorph_view"; <ide> import { handlebarsGet } from "ember-handlebars/ext"; <add>import { uuid } from "ember-metal/utils"; <ide> <ide> function SimpleH...
1
Ruby
Ruby
exclude #saving? from api docs
35d3923ea0c51b3a628e913e3b35f85124de8ac8
<ide><path>activerecord/lib/active_record/autosave_association.rb <ide> def changed_for_autosave? <ide> <ide> # Returns whether or not this record is already being saved outside of the <ide> # current autosave callback <del> def saving? <add> def saving? #:nodoc: <ide> @saving <ide> end <ide>
1
Text
Text
fix broken link
5bd1b22d9eb8e3fc7607298ffd7ec9e6e69c5b81
<ide><path>guides/source/webpacker.md <ide> INFO. It's possible to install frameworks not included in this list. These are b <ide> |TypeScript |`rails webpacker:install:typescript`|Sets up Typescript for your project using Babel's TypeScript support| <ide> |Vue |`rails webpacker:install:vue` ...
1
Javascript
Javascript
fix typo in comments in module.js
26047c39c89ff40bfbab5e02e8186dab2d2832af
<ide><path>lib/module.js <ide> if (process.platform === 'win32') { <ide> // The path segment separator check ('\' and '/') was used to get <ide> // node_modules path for every path segment. <ide> // Use colon as an extra condition since we can get node_modules <del> // path for dirver root like '...
1
Text
Text
use code markup/markdown in headers
75ab328b681ef0194361fe2ef7b3d8a8c7c1b5ef
<ide><path>doc/api/domain.md <ide> function handleRequest(req, res) { <ide> } <ide> ``` <ide> <del>## Additions to Error objects <add>## Additions to `Error` objects <ide> <ide> <!-- type=misc --> <ide> <ide> serverDomain.run(() => { <ide> }); <ide> ``` <ide> <del>## domain.create() <add>## `domain.create()` <ide> ...
1
PHP
PHP
fix bug in belongs to many pagination
58e50d57478b1ae12dfb916758fe994cb7df0210
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function first($columns = array('*')) <ide> */ <ide> public function get($columns = array('*')) <ide> { <del> // If we actually found models we will also eager load any relationships that <del> // have been specified as needing t...
2
Javascript
Javascript
avoid boolean coercion for meta value
e1df71dc5a28777e86def60b1404b26c8095cc88
<ide><path>packages/ember-metal/lib/alias.js <ide> export class AliasedProperty extends Descriptor { <ide> } <ide> <ide> teardown(obj, keyName, meta) { <del> if (meta && meta.peekWatching(keyName)) { <add> if (meta.peekWatching(keyName)) { <ide> removeDependentKeys(this, obj, keyName, meta); <ide> ...
11
Ruby
Ruby
add a check for library_type
65af5eba9cc43a98a904ed7686c6111e8f3c4ce6
<ide><path>scripts/react_native_pods.rb <ide> def use_react_native_codegen!(spec, options={}) <ide> library_type = options[:library_type] <ide> <ide> if library_type <add> if !codegen_config[library_type] <add> raise "[Codegen] invalid library_type: #{library_type}. Check your podspec to make sure it's set...
1
Ruby
Ruby
add --rc description on the command line
3a5b38bc3d998bc85a79146b9b93a2bb3ace5ec4
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def self.add_shared_options_for(name) <ide> class_option :skip_test_unit, type: :boolean, aliases: '-T', default: false, <ide> desc: 'Skip Test::Unit files' <ide> <add> class_option :rc, ...
1
Ruby
Ruby
use delete_if instead of each; delete(key)
22f592401444a83b7b2d3c2165ac666d69955d08
<ide><path>actionpack/lib/action_dispatch/journey/formatter.rb <ide> def extract_parameterized_parts(route, options, recall, parameterize = nil) <ide> !options.key?(part) || (options[part] || recall[part]).nil? <ide> } | route.required_parts <ide> <del> parameterized_parts.each do |bad_k...
1
Ruby
Ruby
find gcc when unlinked
a79bc02620d736b5370adfa4543f2928f165112e
<ide><path>Library/Homebrew/os/mac.rb <ide> def gcc_40_build_version <ide> <ide> def gcc_42_build_version <ide> @gcc_42_build_version ||= <del> if (path = locate("gcc-4.2")) && path.realpath.basename.to_s !~ /^llvm/ <del> %x{#{path} --version}[/build (\d{4,})/, 1].to_i <add> begin <add...
1
Javascript
Javascript
use strict mode and fix violators
23e19c08b10732d5736340760b2cf906dc5cd914
<ide><path>fonts.js <ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / <ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <ide> <add>"use strict"; <add> <ide> /** <ide> * Maximum file size of the font. <ide> */ <ide> var Type1Parser = function() { <ide> thi...
5
Python
Python
add test from issue
b4e10f096f8c2c345de74a8713afd8cadc7930a9
<ide><path>numpy/core/tests/test_memmap.py <ide> def test_mmap_offset_greater_than_allocation_granularity(self): <ide> offset = mmap.ALLOCATIONGRANULARITY + 1 <ide> fp = memmap(self.tmpfp, shape=size, mode='w+', offset=offset) <ide> assert_(fp.offset == offset) <add> <add> def test_no_shape(s...
1
Javascript
Javascript
add componentwillreceiveprops setstate test
e17086e5df626d915be122f9c319cee2e184e9eb
<ide><path>src/core/__tests__/ReactUpdates-test.js <ide> describe('ReactUpdates', function() { <ide> expect(a.state.x).toBe(1); <ide> expect(a.getDOMNode().textContent).toBe('A1'); <ide> }); <add> <add> it('calls componentWillReceiveProps setState callback properly', function() { <add> var callbackCount =...
1
PHP
PHP
add back array set on get
0f4bcc0340a82fc9ed8592f608037c86d47de369
<ide><path>src/Illuminate/Routing/Router.php <ide> public function __construct(Dispatcher $events, Container $container = null) <ide> */ <ide> public function get($uri, $action) <ide> { <del> return $this->addRoute('GET', $uri, $action); <add> return $this->addRoute(['GET', 'HEAD'], $uri, $action); <ide> } <ide>...
1
Ruby
Ruby
pull output buffer conditional up
ccfa01c36e79013881ffdb7ebe397cec733d15b2
<ide><path>actionview/lib/action_view/template.rb <ide> def supports_streaming? <ide> # This method is instrumented as "!render_template.action_view". Notice that <ide> # we use a bang in this instrumentation because you don't want to <ide> # consume this in production. This is only slow if it's being liste...
2
Text
Text
remove classes from an element with jquery.
46c426393163e8a3734e7ddaed1b41b04f77d7e2
<ide><path>guide/english/certifications/front-end-libraries/jquery/remove-classes-from-an-element-with-jquery/index.md <ide> title: Remove Classes from an Element with jQuery <ide> --- <ide> ## Remove Classes from an Element with jQuery <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/ma...
1
Ruby
Ruby
add some meta-assertions for the custom assertions
ef4d3342728ad29a8ecf0f4eebf39e4c91aaabee
<ide><path>activesupport/test/share_lock_test.rb <ide> def test_exclusive_ordering <ide> end <ide> <ide> private <del> SUFFICIENT_TIMEOUT = 0.2 <ide> <del> def assert_threads_stuck_but_releasable_by_latch(threads, latch) <del> assert_threads_stuck threads <del> latch.count_down <del> assert_threads_not...
1
Ruby
Ruby
fix more generator tests
60547391c91a1968fa75d673f707a4b50d3d61c4
<ide><path>railties/test/generators/namespaced_generators_test.rb <ide> def test_scaffold_on_invoke <ide> assert_file "test/unit/helpers/test_app/product_lines_helper_test.rb" <ide> <ide> # Stylesheets <del> assert_file "public/stylesheets/scaffold.css" <add> assert_file "app/assets/stylesheets/scaffold....
1
Python
Python
add execution lines to unit test
9083dd088df93663bba51459222adf610a011847
<ide><path>tests/auto/test_regularizers.py <ide> def test_A_reg(self): <ide> model = create_model(activity_reg=reg) <ide> model.compile(loss='categorical_crossentropy', optimizer='rmsprop') <ide> model.fit(X_train, Y_train, batch_size=batch_size, nb_epoch=nb_epoch, verbose=0) <del> ...
1
Python
Python
add is_local to celerykubernetesexecutor
d133ec75cf55eeddfbbb6b498b9135d99ba1ea0c
<ide><path>airflow/executors/celery_kubernetes_executor.py <ide> class CeleryKubernetesExecutor(LoggingMixin): <ide> <ide> KUBERNETES_QUEUE = conf.get("celery_kubernetes_executor", "kubernetes_queue") <ide> <add> is_local: bool = False <add> <ide> def __init__(self, celery_executor: CeleryExecutor, kuberne...
2
Ruby
Ruby
update helpers for rubocop v1 api
f81e89193e51459f7ec0ff02ddf3b8529f2411f8
<ide><path>Library/Homebrew/rubocops/checksum.rb <ide> def audit_sha256(checksum) <ide> return if checksum.nil? <ide> <ide> if regex_match_group(checksum, /^$/) <del> @offense_source_range = @offensive_node.source_range <ide> problem "sha256 is empty" <ide> return...
6
Text
Text
remove archived link from readme.md
96583e269419676d0d2aa1783a47a99ebdfd70d4
<ide><path>README.md <ide> If you would love to have Apache Airflow stickers, t-shirt etc. then check out <ide> <ide> - [Documentation](https://airflow.apache.org/docs/stable/) <ide> - [Chat](https://s.apache.org/airflow-slack) <del>- [More](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Links)
1
Python
Python
add ud_train and ud_evaluate cli commands
3478ea76d162f5b69c2051820d9c23638fb1fd52
<ide><path>spacy/cli/conll17_ud_eval.py <add>#!/usr/bin/env python <add> <add># CoNLL 2017 UD Parsing evaluation script. <add># <add># Compatible with Python 2.7 and 3.2+, can be used either as a module <add># or a standalone executable. <add># <add># Copyright 2017 Institute of Formal and Applied Linguistics (UFAL), <...
2
PHP
PHP
fix failing test
bf41ee7b9f74f513989a2f938fab9cfcabbc0c8c
<ide><path>tests/TestCase/Core/FunctionsTest.php <ide> public function testEnv() <ide> */ <ide> public function testDeprecationWarning() <ide> { <add> error_reporting(E_ALL); <ide> deprecationWarning('This is going away'); <ide> } <ide> }
1
Ruby
Ruby
use concise method for both header and headers
278bba05236c0a2ca62fa686ae99a42dc8b20fcb
<ide><path>Library/Homebrew/download_strategy.rb <ide> def _curl_args <ide> <ide> args += ["--header", meta.fetch(:header)] if meta.key?(:header) <ide> <del> meta.fetch(:headers).each { |h| args += ["--header", h.strip] } if meta.key?(:headers) <add> args += [meta.fetch(:header), *meta.fetch(:headers)].comp...
1
Python
Python
fix build on platforms requiring _signbit.c
08c5c5dfcc9bffc04c6c8eeea701f9ed6b0c8863
<ide><path>numpy/core/setup.py <ide> def generate_api(ext, build_dir): <ide> generate_numpy_api = generate_api_func('generate_numpy_api') <ide> generate_ufunc_api = generate_api_func('generate_ufunc_api') <ide> <add> config.add_include_dirs(join(local_dir, "src")) <ide> # Multiarray version: this functi...
1
PHP
PHP
fix typo in docblock
3bf0ee51fa59a71bba16ba91e3bce45c88af6f5a
<ide><path>src/Illuminate/Database/Console/DbCommand.php <ide> class DbCommand extends Command <ide> * <ide> * @var string <ide> */ <del> protected $description = 'Open the database CLI'; <add> protected $description = 'Drop into the database CLI.'; <ide> <ide> /** <ide> * Execute the con...
1
Python
Python
add actors_manager component
ee83630e15fb8447c5217fdf3559138cd00216b0
<ide><path>celery/app/defaults.py <ide> def __repr__(self): <ide> 'FORCE_EXECV': Option(True, type='bool'), <ide> 'HIJACK_ROOT_LOGGER': Option(True, type='bool'), <ide> 'CONSUMER': Option(type='string'), <add> 'ACTORS_MANAGER':Option('celery.worker.actorsbootstrap.ActorsManager'), <ide> ...
1
Mixed
Text
add missing and fix incorrect version defaults
8f9ec10f3eb2f56c5efcac8116963421bad008d4
<ide><path>guides/source/configuring.md <ide> Below are the default values associated with each target version. In cases of co <ide> <ide> - [`config.action_controller.allow_deprecated_parameters_hash_equality`](#config-action-controller-allow-deprecated-parameters-hash-equality): `false` <ide> - [`config.action_dispa...
2
Javascript
Javascript
fix parallaxmap shader crash
1736aa73baaeae99e778fcf2d44de3d1f1ab8959
<ide><path>examples/js/shaders/ParallaxShader.js <ide> THREE.ParallaxShader = { <ide> "float heightFromTexture = texture2D( bumpMap, currentTextureCoords ).r;", <ide> <ide> // while ( heightFromTexture > currentLayerHeight ) <del> "for ( int i = 0; i == 0; i += 0 ) {", <add> // Infinite loops are not wel...
1
Javascript
Javascript
add uswitch app to showcase
55920c244445862fb5dcb6d539bb82f9694d8741
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/cn/app/tong-xing-wang/id914254459?mt=8', <ide> author: 'Ho Yin Tsun Eugene', <ide> }, <add> { <add> name: 'uSwitch - Energy switching app', <add> icon: 'https://lh3.googleusercontent.com/NpkGlwFWdj7...
1
Java
Java
fix memory leak for jaxb2xmlencoder
611019b73ca1f8edc83d5a2961267655002c3ab7
<ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlEncoder.java <ide> import org.springframework.core.codec.Hints; <ide> import org.springframework.core.io.buffer.DataBuffer; <ide> import org.springframework.core.io.buffer.DataBufferFactory; <add>import org.springframework.core.io.buffer.Dat...
2
Java
Java
remove static view configs from bridge mode
79ae50f3e9a674ec1b64d3a817943b303a56d9c5
<ide><path>ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java <ide> public class ReactFeatureFlags { <ide> /** This feature flag enables logs for Fabric */ <ide> public static boolean enableFabricLogs = false; <ide> <del> /** Enables Static ViewConfig in RN Android native code. */ <del> ...
3
Javascript
Javascript
throw ret value from wait() only if it's there
3311122ccb63787288516df7f81cb9e52560efc0
<ide><path>src/events.js <ide> node.Promise.prototype.wait = function () { <ide> }) <ide> .block(); <ide> <del> if (had_error) throw ret; <add> if (had_error) { <add> if (ret) { <add> throw ret; <add> } else { <add> throw new Error("Promise completed with error (No arguments given.)"); <a...
1
Text
Text
update docs on using onactivityresult (again)
9ac9ec90c3d4136e52c044d086c1a3f45378555a
<ide><path>docs/NativeModulesAndroid.md <ide> public void onActivityResult( <ide> We will implement a simple image picker to demonstrate this. The image picker will expose the method `pickImage` to JavaScript, which will return the path of the image when called. <ide> <ide> ```java <del>public class ImagePickerModule ...
1
PHP
PHP
fix regression in session handling
0124feee8c6711cd9e1004988ab7a16d687a1aa5
<ide><path>src/Http/Session.php <ide> public function renew() <ide> */ <ide> protected function _timedOut() <ide> { <del> $time = (int)$this->read('Config.time'); <add> $time = $this->read('Config.time'); <ide> $result = false; <ide> <ide> $checkTime = $time !== null && $this...
1
Java
Java
fix broken test
0ca5afd8e469321230cae7004f75c1a955737aa6
<ide><path>spring-context/src/test/java/org/springframework/scheduling/concurrent/ThreadPoolExecutorFactoryBeanTests.java <ide> public void defaultExecutor() throws Exception { <ide> public static class ExecutorConfig { <ide> <ide> @Bean <del> public ThreadPoolExecutorFactoryBean executorFactory() { <add> public ...
1
Python
Python
add a test for ma.minimum.reduce with axis keyword
e2efced9bdfc773f5aca2487f12ab1cb2bd11833
<ide><path>numpy/ma/tests/test_core.py <ide> def test_minmax_reduce(self): <ide> b = np.maximum.reduce(a) <ide> assert_equal(b, 3) <ide> <add> def test_minmax_reduce_axis(self): <add> # Test np.min/maximum.reduce along an axis for 2D array <add> import numpy as np <add> data = [...
1
Javascript
Javascript
respect assert.doesnotthrow message
c1d82ac2ff15594840e2a1b9531b506ae067ed27
<ide><path>lib/assert.js <ide> function _throws(shouldThrow, block, expected, message) { <ide> fail(actual, expected, 'Missing expected exception' + message); <ide> } <ide> <del> if (!shouldThrow && expectedException(actual, expected)) { <add> const userProvidedMessage = typeof message === 'string'; <add> con...
2
PHP
PHP
throw exceptions when routes result in an error
a9ba33dcd5772fdba89dbd644fc90899cacb354d
<ide><path>src/Routing/Error/MissingRouteException.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * Redistributions of files must retain t...
4
Javascript
Javascript
fix a typo in the @deprecated spec
345c01c81b35409c907bee7f70335b3c6f55bcb8
<ide><path>docs/spec/ngdocSpec.js <ide> describe('ngdoc', function(){ <ide> }); <ide> }); <ide> <del> describe('@depricated', function() { <del> it('should parse @depricated', function() { <add> describe('@deprecated', function() { <add> it('should parse @deprecated', function() { <ide> ...
1
Javascript
Javascript
fix generatedmessage property
0b3242c3ce0ff2cdf9c740f45f3755a683073c32
<ide><path>lib/assert.js <ide> function expectedException(actual, expected, message, fn) { <ide> if (expected.test(str)) <ide> return; <ide> <del> throw new AssertionError({ <add> if (!message) { <add> generatedMessage = true; <add> message = 'The input did not match the regular e...
1
Text
Text
correct russian description of malloc
8bf9bd319ebe657ac58952cdfa3f78be4cb81830
<ide><path>guide/russian/c/malloc/index.md <ide> --- <ide> title: malloc <del>localeTitle: таНос <add>localeTitle: malloc <ide> --- <ide> # malloc в C <ide> <del>malloc () - это библиотечная функция, которая позволяет C динамически выделять память из кучи. Куча - это область памяти, где что-то хранится. <add>malloc() ...
1
Java
Java
support square brackets [] around named parameter
86eda279c82b79c7888558e7a2524db44c7ee108
<ide><path>spring-r2dbc/src/main/java/org/springframework/r2dbc/core/NamedParameterUtils.java <ide> * @author Thomas Risberg <ide> * @author Juergen Hoeller <ide> * @author Mark Paluch <add> * @author Anton Naydenov <ide> * @since 5.3 <ide> */ <ide> abstract class NamedParameterUtils { <ide> abstract class NamedPa...
2
PHP
PHP
fix nested wheredoesnthave()
456eefe5bde4b6a99c41928411e4de073a9a6880
<ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php <ide> protected function hasNested($relations, $operator = '>=', $count = 1, $boolean <ide> { <ide> $relations = explode('.', $relations); <ide> <add> $doesntHave = $operator === '<' && $count === 1; <add> <add> if ...
3
Go
Go
remove job from ps api
1bfa80bdd9ac05b01867492d2e6dda668aa7715c
<ide><path>api/client/ps.go <ide> func (cli *DockerCli) CmdPs(args ...string) error { <ide> <ide> fmt.Fprintf(w, "%s\t%s\t%s\t%s ago\t%s\t%s\t%s\t", ID, image, command, <ide> units.HumanDuration(time.Now().UTC().Sub(time.Unix(int64(container.Created), 0))), <del> container.Status, api.NewDisplayablePorts(contai...
6
Javascript
Javascript
improve readability of the code
edc586f911b0b5bd1c6471b417add4d2e1820758
<ide><path>src/ng/directive/ngBind.js <ide> var ngBindTemplateDirective = ['$interpolate', function($interpolate) { <ide> var ngBindHtmlDirective = ['$sce', '$parse', function($sce, $parse) { <ide> return { <ide> restrict: 'A', <del> compile: function (tElement, tAttrs) { <add> compile: function ngBindCompi...
1
Text
Text
add contributor agreement for @enerrio
c7926f72eb67cccf6b8a47a222dd4813fa801f5f
<ide><path>.github/contributors/enerrio.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <a...
1
Javascript
Javascript
move functions to error code
5a0e37925027f415412fb5f46e33f1e9d16eddf9
<ide><path>lib/internal/errors.js <ide> function isStackOverflowError(err) { <ide> err.message === maxStack_ErrorMessage; <ide> } <ide> <add>function oneOf(expected, thing) { <add> assert(typeof thing === 'string', '`thing` has to be of type string'); <add> if (Array.isArray(expected)) { <add> const len ...
1
Text
Text
fix a small typo
8b881df9b1f3c8fa7c36dd5b2fb3e7235f6d4654
<ide><path>docs/sources/reference/builder.md <ide> Docker client, refer to [*Share Directories via Volumes*](/userguide/dockervolum <ide> documentation. <ide> <ide> > **Note**: <del>> The list is parsed a JSON array, which means that <add>> The list is parsed as a JSON array, which means that <ide> > you must use doub...
1
PHP
PHP
add eloquent collection loadmorph()
43676756ba8eb51fe63030fbc6c00239369f6e31
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function load($relations) <ide> return $this; <ide> } <ide> <add> /** <add> * Load a set of relationships onto the mixed relationship collection. <add> * <add> * @param string $relation <add> * @param array $relat...
4
Text
Text
add link anchor [ci skip]
5c46edbf0d92a5a51bf6a435bce403060ce9a472
<ide><path>website/docs/usage/training.md <ide> The default score weights are defined by each pipeline component via the <ide> components are weighted equally. If a score weight is set to `null`, it will be <ide> excluded from the logs and the score won't be weighted. <ide> <del><Accordion title="Understanding the tra...
1
PHP
PHP
fix issue with `/0` as a path
0fd5153658dc974b424856d2e027ba5f5e1f93db
<ide><path>src/Http/ServerRequest.php <ide> protected function _setConfig($config) <ide> if (strpos($config['url'], '?') !== false) { <ide> list($config['url'], $querystr) = explode('?', $config['url']); <ide> } <del> if ($config['url']) { <add> if (strlen($config['url'])) { <i...
1
Javascript
Javascript
fix radious sphere on pinch
331a19ccc3518a2ab46357d7af0ecbb0b0375c98
<ide><path>src/renderers/webxr/WebXRHandController.js <del>import { Object3D } from '../../core/Object3D.js'; <del>import { SphereBufferGeometry } from '../../geometries/SphereGeometry.js'; <del>import { MeshStandardMaterial } from '../../materials/MeshStandardMaterial.js'; <del>import { Mesh } from '../../objects/Mesh...
1
Java
Java
use jetty again in sseintegrationtests
3ab21741f9926ee59b64e147de59c077e55b3dca
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/result/method/annotation/SseIntegrationTests.java <ide> import org.springframework.http.codec.SseEvent; <ide> import org.springframework.http.server.reactive.AbstractHttpHandlerIntegrationTests; <ide> import org.springframework.http.server.re...
1
Ruby
Ruby
yield absolute paths from find_formula
bdee729a41fbaec0607f26749cc09730792ec77e
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> if tap_dir.directory? <ide> result = "" <ide> if query <del> tap_dir.find_formula do |child| <del> basename = child.basename(".rb").to_s <add> tap_dir.find_formula do |file| <add> basename = fi...
5
Go
Go
check ipt options before looking for ip6t
af7236f85a3477b37518aed7eb8dbc8e2b595d59
<ide><path>libnetwork/iptables/iptables.go <ide> func detectIptables() { <ide> return <ide> } <ide> iptablesPath = path <del> path, err = exec.LookPath("ip6tables") <del> if err != nil { <del> return <del> } <del> ip6tablesPath = path <add> <ide> supportsXlock = exec.Command(iptablesPath, "--wait", "-L", "-n").Ru...
1
Javascript
Javascript
modify warning message
caa7829aac01256a1f01dfda73f7d0a5c0371064
<ide><path>Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js <ide> const AccessibilityInfo = { <ide> */ <ide> get fetch(): () => Promise<boolean> { <ide> console.warn( <del> 'AccessibilityInfo.fetch is deprecated, call Accessibility.isScreenReaderEnabled instead', <add> 'Accessibili...
2
Text
Text
fix a typo in the contributing guide
22ac598f6e762606c370f60867bef5a47e3ba810
<ide><path>docs/how-to-open-a-pull-request.md <ide> You can select a scope from [this list of labels](https://github.com/freeCodeCam <ide> <ide> Keep it short (less than 30 characters) and simple, you can add more information in the PR description box and comments. <ide> <del>Some examples of good PRs titles would be...
1
Python
Python
fix removal of features
5a63467a981166363dd50500c97206cf86e36bdb
<ide><path>libcloud/drivers/linode.py <ide> from libcloud.base import ConnectionKey, Response <ide> from libcloud.base import NodeDriver, NodeSize, Node, NodeLocation <ide> from libcloud.base import NodeAuthPassword, NodeAuthSSHKey <del>from libcloud.base import NodeImage, Features <add>from libcloud.base import NodeIm...
1
PHP
PHP
escape button title by default
1d2237f947db71ce3393a82b4bf91681b6f56e5f
<ide><path>src/View/Helper/FormHelper.php <ide> public function file(string $fieldName, array $options = []): string <ide> * ### Options: <ide> * <ide> * - `type` - Value for "type" attribute of button. Defaults to "submit". <del> * - `escapeTitle` - HTML entity encode the title of the button. Defaul...
4
Text
Text
fix typo in api doc of url.format(urlobject)
29423b49c78f7880fa07f52447ce17c2c4aff5bc
<ide><path>doc/api/url.md <ide> changes: <ide> The `url.format()` method returns a formatted URL string derived from <ide> `urlObject`. <ide> <del>If `urlObject` is not an object or a string, `url.parse()` will throw a <add>If `urlObject` is not an object or a string, `url.format()` will throw a <ide> [`TypeError`][]....
1
Javascript
Javascript
fix lint errors
7534fbbeb7fd0cdcfb3a42faa4d311fda4d49608
<ide><path>src/compile-cache.js <ide> function writeCachedJavascript (relativeCachePath, code) { <ide> } <ide> <ide> var INLINE_SOURCE_MAP_REGEXP = /\/\/[#@]\s*sourceMappingURL=([^'"\n]+)\s*$/mg <del>let snapshotSourceMap = null <ide> <ide> exports.install = function (resourcesPath, nodeRequire) { <ide> sourceMapSu...
1
Javascript
Javascript
add component invocation from handlebars tests
19024da35c4eac10f25685b02cfe4d68ca515e2c
<ide><path>packages/ember-handlebars/tests/views/component_test.js <add>import EmberView from "ember-views/views/view"; <add>import Container from 'container/container'; <add>import run from "ember-metal/run_loop"; <add>import jQuery from "ember-views/system/jquery"; <add>import EmberHandlebars from 'ember-handlebars-c...
1
Ruby
Ruby
drop go_resource recommendation
8fd18eab2133aeb33fc0f42f9707f69da64d0f8d
<ide><path>Library/Homebrew/rubocops/text_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> end <ide> <ide> find_method_with_args(body_node, :system, "go", "get") do <del> problem "Formulae should not use `go get`. If non-vendored resources are requi...
1
Go
Go
add defer file.close to avoid potential fd leak
0ead624473b6bddc232b46bc7c76ab4f9c743ff5
<ide><path>api/client/image/build.go <ide> func runBuild(dockerCli *client.DockerCli, options buildOptions) error { <ide> if err != nil && !os.IsNotExist(err) { <ide> return err <ide> } <add> defer f.Close() <ide> <ide> var excludes []string <ide> if err == nil { <ide><path>builder/dockerfile/internals.go ...
25
Ruby
Ruby
fix typos [ci skip]
e5e3daf7e2cafbfd6d41eae29752d0a0e4429052
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def checkout_and_verify(c) <ide> # All Active Record models use this handler to determine the connection pool that they <ide> # should use. <ide> # <del> # The ConnectionHandler class is not coupled with the A...
1
Text
Text
update code sample in performance measurement docs
e3aeb2f768e683103f3dbbbbb60dc2af61d9700f
<ide><path>docs/advanced-features/measuring-performance.md <ide> To measure any of the supported metrics, you will need to create a [custom <ide> App](/docs/advanced-features/custom-app.md) component and define a `reportWebVitals` function: <ide> <ide> ```js <del>import App from 'next/app' <del> <del>export default My...
1
Javascript
Javascript
replace imagecanvas by scratchcanvas
c9c24ee5c3158538c224ffa921e9933cde7c9d0f
<ide><path>pdf.js <ide> var Encodings = { <ide> } <ide> }; <ide> <del>function ImageCanvas(width, height) { <del> var tmpCanvas = this.canvas = document.createElement("canvas"); <del> tmpCanvas.width = width; <del> tmpCanvas.height = height; <add>function ScratchCanvas(width, height) { <add> var canvas =...
1
PHP
PHP
fix missing deprecation docs
8851207e7310836823d7f95357ebbf55d6e6cfa0
<ide><path>src/Core/Plugin.php <ide> class Plugin <ide> * @param array $config configuration options for the plugin <ide> * @throws \Cake\Core\Exception\MissingPluginException if the folder for the plugin to be loaded is not found <ide> * @return void <del> * @deprecated 3.7 This method will be remov...
1
Ruby
Ruby
use a hash instead of nested arrays
33f1c3164b1c6a9ef2d3de0e7cb139b259808bad
<ide><path>Library/Homebrew/cmd/commands.rb <ide> def commands <ide> return <ide> end <ide> <del> first = true <add> prepend_separator = false <ide> <del> [["Built-in commands", Commands.internal_commands], <del> ["Built-in developer commands", Commands.internal_developer_commands], <del> [...
1
Python
Python
specify constraints of method in docstring
281dadc5fbe8c49df12125dec66040dd55d69e49
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'): <ide> <ide> - If 'sort', will use a sort-based approach. <ide> - If 'dictionary', will use a key-dictionary approach similar <del> to a radix sort. <add> to a radix sort. Th...
1
Javascript
Javascript
remove mipmaps serialization
a89ed40a1e72a9179844fad9db3ad93bc1ba9374
<ide><path>src/loaders/ObjectLoader.js <ide> Object.assign( ObjectLoader.prototype, { <ide> if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, TEXTURE_FILTER ); <ide> if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, TEXTURE_FILTER ); <ide...
2
Text
Text
update v1.x readme to reflect release status
407eb846d0459bb3cdd4383716a256f882951761
<ide><path>README.md <ide> <ide> *Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org) <ide> <add>## v2.0 Development <add>The next generation and release of Chart.js has been well under way this year and we are very close to releasing some amazing new features including, but not limite...
1
Python
Python
add xfail test for . improve test for add label
444a3abfe5e69bf5e5f0aeda665408f27c5eb63e
<ide><path>spacy/tests/parser/test_add_label.py <ide> from spacy.gold import GoldParse <ide> from spacy.vocab import Vocab <ide> from spacy.tokens import Doc <del>from spacy.pipeline import DependencyParser <add>from spacy.pipeline import DependencyParser, EntityRecognizer <add>from spacy.util import fix_random_seed <i...
1
Python
Python
move validation `branch_task_ids` into `skipmixin`
baf2f3fc329d5b4029d9e17defb84cefcd9c490a
<ide><path>airflow/models/skipmixin.py <ide> import warnings <ide> from typing import TYPE_CHECKING, Iterable, Sequence <ide> <del>from airflow.exceptions import RemovedInAirflow3Warning <add>from airflow.exceptions import AirflowException, RemovedInAirflow3Warning <ide> from airflow.models.taskinstance import TaskIns...
4
PHP
PHP
fix cs errors
f63f6be017b9b2246d80d5047be9830b7b955965
<ide><path>src/Validation/Validation.php <ide> public static function uploadedFile($file, $options = []) <ide> * @param array $value The array representing a date or datetime. <ide> * @return string <ide> */ <del> protected static function _getDateString($value) { <add> protected static function _g...
2
Ruby
Ruby
add extraterm to github_prerelease_allowlist
c26f1f436ec8a863c2aa7ed6448882e654d8b6fc
<ide><path>Library/Homebrew/utils/shared_audits.rb <ide> def github_release_data(user, repo, tag) <ide> GITHUB_PRERELEASE_ALLOWLIST = { <ide> "amd-power-gadget" => :all, <ide> "elm-format" => "0.8.3", <add> "extraterm" => :all, <ide> "freetube" => :all, <ide> "gitless" ...
1
Python
Python
fix style issues in core.py
0272587c2903d6a0c9bb0b1466db2a01aee36a96
<ide><path>keras/layers/core.py <ide> def _get_noise_shape(self, x): <ide> elif self.dim_ordering == 'tf': <ide> noise_shape = (input_shape[0], 1, 1, input_shape[3]) <ide> else: <del> raise Exception('Invalid dim_ordering: ' + self.dim_ordering) <add> raise ValueError('...
1
Text
Text
fix doc on getting the home directory
1f9d8b129f13cca8249b115c0f791de858353b21
<ide><path>CONTRIBUTING.md <ide> For more information on how to work with Atom's official packages, see <ide> * Class methods and properties (methods starting with a `@`) <ide> * Instance methods and properties <ide> * Avoid platform-dependent code: <del> * Use `require('atom').fs.getHomeDirectory()` to get ...
1
Text
Text
update readme to reflect new releasing strategy
d0aa60818e15e5bfd148412b3ee5a35617c68c6e
<ide><path>official/README.md <ide> # TensorFlow Official Models <ide> <del>The TensorFlow official models are a collection of example models that use TensorFlow's high-level APIs. They are intended to be well-maintained, tested, and kept up to date with the latest stable TensorFlow API. They should also be reasonably...
1
Javascript
Javascript
remove node-tap lookalike
d3c668cead3d5baff03d795755e2ae1906408580
<ide><path>test/parallel/test-stream2-basic.js <ide> TestWriter.prototype.end = function(c) { <ide> this.emit('end', this.received); <ide> }; <ide> <del>//////// <del> <del>// tiny node-tap lookalike. <del>const tests = []; <del>let count = 0; <del> <del>function test(name, fn) { <del> count++; <del> tests.push([n...
6