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
PHP
PHP
fix docblock for return values
9933484ca2ba7638007be888654538b65fd21a20
<ide><path>src/Illuminate/Routing/Router.php <ide> class Router implements HttpKernelInterface, RouteFiltererInterface { <ide> * <ide> * @param \Illuminate\Events\Dispatcher $events <ide> * @param \Illuminate\Container\Container $container <del> * @return void <ide> */ <ide> public function __construct(Di...
1
Ruby
Ruby
remove redundant calls to stringify_keys
1f270e80e61570faafc7cc01c1ed19c1c5359ef3
<ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb <ide> def submit_tag(value = "Save changes", options = {}) <ide> options["data-confirm"] = confirm <ide> end <ide> <del> tag :input, { "type" => "submit", "name" => "commit", "value" => value }.update(options.stringify_keys) <add...
1
Java
Java
simplify determination of sockjs path
2a6c1f75e7f9601d736dfebe5823e7070edf1db5
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractStompEndpointRegistration.java <ide> public StompSockJsServiceRegistration(TaskScheduler defaultTaskScheduler) { <ide> } <ide> <ide> protected SockJsService getSockJsService() { <del> return super.getSockJsService(paths);...
8
Python
Python
fix a bug reported in
ab891db0a0f8bddd1967288984fd60d1a489c7b2
<ide><path>libcloud/storage/drivers/google_storage.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> <add>from typing import Dict <add>from typing import Optional <add> <ide> import copy <ide> import json <ide> <ide> def ex_set_permissions(self...
4
PHP
PHP
fix usage of addparams() across the tests
5f923fffc9fda9565404f31c3dd79c7a8b0b07fc
<ide><path>src/Controller/Component/AuthComponent.php <ide> protected function _unauthenticated(Controller $controller) <ide> if ($auth === false) { <ide> throw new Exception('At least one authenticate object must be available.'); <ide> } <del> $result = $auth->unauthenticated($this->...
9
Javascript
Javascript
add comma to line 319 for readability
212975af9647bfa76011d34df0fe7ee5b0b584d9
<ide><path>src/ng/directive/form.js <ide> function FormController(element, attrs, $scope, $animate, $interpolate) { <ide> * <ide> * # Alias: {@link ng.directive:ngForm `ngForm`} <ide> * <del> * In Angular forms can be nested. This means that the outer form is valid when all of the child <add> * In Angular, forms can...
1
Python
Python
add control for psutil 2.0
80051c81d440f0db8e4f880e820473f496f1a8c6
<ide><path>glances/core/glances_globals.py <ide> psutil_version = tuple([int(num) for num in __psutil_version__.split('.')]) <ide> <ide> # Check PsUtil version <del># !!! Move this check outside the globals script <del># !!! PsUtil is not necessary on client side <del># Note: this is not a mistake: psutil 0.5.1 is det...
1
Ruby
Ruby
add assertion to test_simple_valid_formula
91b67bd41d3a6fa04d5dd438b667d9bcb7e414e9
<ide><path>Library/Homebrew/test/test_cmd_audit.rb <ide> def test_simple_valid_formula <ide> assert ft =~ /\burl\b/, "The formula should match 'url'" <ide> assert_nil ft.line_number(/desc/), "The formula should not match 'desc'" <ide> assert_equal 2, ft.line_number(/\burl\b/) <add> assert ft.include?("Va...
1
Java
Java
remove unnecessary boxing
c5278aa359a1847b8df89da21b01dd48aa097d53
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/standard/Tokenizer.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
1
Javascript
Javascript
fix bug which got introduced by accident
47ec2187776658ad9ee2a9c71a28ddb860bec43a
<ide><path>src/Compiler.js <ide> Compiler.prototype = { <ide> // process markup for text nodes only <ide> eachTextNode(element, function(textNode){ <ide> var text = textNode.text(); <del> foreach(self.textMarkup, function(markup, name){ <add> foreach(self.textMarkup, function(markup){ ...
1
Ruby
Ruby
fix homebrew_cccfg reference
4fe0adf587d8f9cc751fd991ab3370fe3ce9d49a
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def remove_from_cflags(val) <ide> end <ide> <ide> def append_to_cccfg(value) <del> append(HOMEBREW_CCCFG, value, "") <add> append("HOMEBREW_CCCFG", value, "") <ide> end <ide> <ide> def append(keys, value, separator = " ")
1
Java
Java
fix removal of reactshadownode
5347ecfd296cdc882c7c198e6489f7482f27a073
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricReconciler.java <ide> private void manageChildren( <ide> indicesToRemove[indicesToRemoveIndex++] = j; <ide> if (!addedTags.contains(nodeToRemove.getReactTag())) { <ide> tagsToDelete.add(nodeToRemove.getReactTag()); <add> //...
1
Ruby
Ruby
restore sorting of formulae
97e05ae4106bc7315233d9d35f8d02e913378b1a
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def outdated_formulae_casks(args:) <ide> casks = Cask::Caskroom.casks <ide> end <ide> <del> [select_outdated(formulae, args: args), select_outdated(casks, args: args)] <add> [select_outdated(formulae, args: args).sort, select_outdated(casks, args: args)...
1
PHP
PHP
update doc blocks for cakenumber
3c9e79737d8d3f5311d11f128337e3d917a35306
<ide><path>lib/Cake/Utility/CakeNumber.php <ide> protected static function _numberFormat($number, $places = 0, $decimals = '.', $ <ide> * <ide> * ### Options <ide> * <del> * - `before` - The currency symbol to place before whole numbers ie. '$' <del> * - `after` - The currency symbol to place after decimal numbers i...
1
Java
Java
handle absolute uri in reactor request.uri()
203370a810fad77d33c3484dbf9e79242583bf5b
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java <ide> import org.springframework.util.Assert; <ide> import org.springframework.util.LinkedMultiValueMap; <ide> import org.springframework.util.MultiValueMap; <add>import org.springframework.util.StringUtils; <ide>...
1
Text
Text
add 3 new sections to faq.md
09352ad3c2b38609da6d7be5873f40ed6d0e45a0
<ide><path>docs/FAQ.md <ide> <ide> Read our ["How to Contribute to Open Source Guide"](https://github.com/freeCodeCamp/how-to-contribute-to-open-source). It's a comprehensive reference for first-timer-friendly projects. And it includes a lot of open source contribution tips. <ide> <add>### What do I need to know to c...
1
Python
Python
fix typo in glue test example code
45b4d35a0cb916c3d7072c00876ba6cdafb3bcbf
<ide><path>tests/system/providers/amazon/aws/example_glue.py <ide> def glue_cleanup(crawler_name: str, job_name: str, db_name: str) -> None: <ide> # [END howto_operator_glue] <ide> <ide> # GlueJobOperator waits by default, setting as False to test the Sensor below. <del> submit_glue_job.wait_for_completion ...
1
Text
Text
update korean translation to e88c7bf
28261783eda1562cc469684214ea43b053af516a
<ide><path>docs/docs/10.1-animation.ko-KR.md <ide> var TodoList = React.createClass({ <ide> > <ide> > `transitionAppear` prop은 버전 `0.13`에서 `ReactCSSTransitionGroup`에 추가되었습니다. 하위 호환성을 생각해서, 기본 값은 `false`로 설정되어 있습니다. <ide> <add>### 커스텀 클래스 <add> <add>트렌지션의 각 단계에서 커스텀 클래스 이름을 사용할 수도 있습니다. transitionName에 문자열을 넘기는 대신 `ent...
4
Text
Text
add more details to invalid-next-config doc
8b4d9e652e435c1cf8864ebde587c60f615b83e1
<ide><path>errors/invalid-next-config.md <ide> <ide> #### Why This Error Occurred <ide> <del>In your `next.config.js` file you passed invalid options that either are the incorrect type or an unknown field. <add>In your `next.config.js` file you passed invalid options that either are the incorrect type or an unknown f...
1
Text
Text
add v3.8.1 to changelog
aede427fb866a6364caba37f88b5b8bfafdfa113
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.8.1 (April 02, 2019) <add> <add>- [#17684](https://github.com/emberjs/ember.js/pull/17684) [BUGFIX] Enable maximum rerendering limit to be customized. <add>- [#17823](https://github.com/emberjs/ember.js/pull/17823) Update router_js to 6.2.4 <add> <ide> ...
1
Python
Python
improve accuracy of numpy.gradient at edges
332d628744a0670234585053dbe32a3e82e0c4db
<ide><path>numpy/lib/function_base.py <ide> def gradient(f, *varargs): <ide> """ <ide> Return the gradient of an N-dimensional array. <ide> <del> The gradient is computed using central differences in the interior <del> and first differences at the boundaries. The returned gradient hence has <del> the ...
2
Ruby
Ruby
use erb to generate formula template
a56466a4d34b14214f829717d98115574c81913d
<ide><path>Library/Homebrew/brew.h.rb <ide> def check_for_blacklisted_formula names <ide> def __make url, name <ide> require 'formula' <ide> require 'digest' <add> require 'erb' <ide> <del> path = Formula.path name <add> path = Formula.path(name) <ide> raise "#{path} already exists" if path.exist? <ide> <ide...
1
Javascript
Javascript
avoid font lookup by id in showtext
f6eb9cecd39a85db6a3da574a13bef512e97767b
<ide><path>fonts.js <ide> function getUnicodeRangeFor(value) { <ide> var Font = (function() { <ide> var constructor = function font_constructor(name, file, properties) { <ide> this.name = name; <add> this.textMatrix = properties.textMatrix || IDENTITY_MATRIX; <ide> this.encoding = properties.encoding; <ide...
2
PHP
PHP
refactor the arr class to fix a few bugs
81a89604f98a90aa8fe736c0192048f55eeaf6d4
<ide><path>system/arr.php <ide> public static function get($array, $key, $default = null) <ide> */ <ide> public static function set(&$array, $key, $value) <ide> { <add> if (is_null($key)) return $array = $value; <add> <ide> $keys = explode('.', $key); <ide> <ide> while (count($keys) > 1)
1
Python
Python
fix missing output in refguide-check
c6c56447af69766dee562e66494e61981d4e6955
<ide><path>tools/refguide_check.py <ide> def temp_cwd(): <ide> success = False <ide> ns = t.globs <ide> <add> output.seek(0) <ide> return success, output.read() <ide> <ide>
1
PHP
PHP
get month() working with the new widget class
96560ea44384f6b0c81394d2b11d864b8dd3738d
<ide><path>src/View/Helper/FormHelper.php <ide> public function day($fieldName = null, $options = []) { <ide> ); <ide> $options = $off + $options; <ide> <add> if (isset($options['value'])) { <add> $options['val'] = $options['value']; <add> } <add> <ide> // If value is an integer reformat it. <del> if (isset...
2
Javascript
Javascript
fix issues with the new fork plugin
060581b1287ea75d128f8f6b2b7bf494fe5db4fa
<ide><path>scripts/rollup/plugins/use-forks-plugin.js <ide> 'use strict'; <ide> <ide> const path = require('path'); <add>const semver = require('semver'); <add> <add>function resolveRelatively(importee, importer) { <add> if (semver.gte(process.version, '8.9.0')) { <add> return require.resolve(importee, { <add> ...
1
PHP
PHP
add missing return statement
0024fc2228ac4c223fccb3696b170e3c23f74084
<ide><path>src/Illuminate/Mail/Mailable.php <ide> protected function runCallbacks($message) <ide> */ <ide> public function from($address, $name = null) <ide> { <del> $this->setAddress($address, $name, 'from'); <add> return $this->setAddress($address, $name, 'from'); <ide> } <ide> <ide> ...
1
Ruby
Ruby
allow default_timezone to vary between databases
f63545ded0499c5e62f5783e76688bd7020dc220
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/quoting.rb <ide> def unquoted_false <ide> # if the value is a Time responding to usec. <ide> def quoted_date(value) <ide> if value.acts_like?(:time) <del> if ActiveRecord.default_timezone == :utc <add> if defaul...
8
Javascript
Javascript
fix coding style in page_view.js
2cf2eb0dfc64eb462710146f6bcd87413b6bb75a
<ide><path>web/page_view.js <ide> var PageView = function pageView(container, id, scale, <ide> div.style.width = Math.floor(this.viewport.width) + 'px'; <ide> div.style.height = Math.floor(this.viewport.height) + 'px'; <ide> <del> while (div.hasChildNodes()) <add> while (div.hasChildNodes()) { <ide> ...
1
Javascript
Javascript
remove beta flash
c5af46b33f4dca67f880c653773c604e9089eda0
<ide><path>server/server.js <ide> passportConfigurator.init(); <ide> app.use(rxMiddleware()); <ide> <ide> app.use(function(req, res, next) { <del> // add beta warning <del> req.flash('info', { <del> msg: `warning: you are on experimental branch of Free Code Camp: <del> Your progress here may or may not be sa...
1
Ruby
Ruby
add secret token for action mailbox tests
c932850ef27ce2f42e886ca9dfd54f0d4b1518b3
<ide><path>actionmailbox/test/dummy/config/initializers/secret_token.rb <add>Rails.application.config.secret_key_base = "b3c631c314c0bbca50c1b2843150fe33"
1
PHP
PHP
add collection `sliding` method
4be33548469b417bebbdb034562877d29eb9f453
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function shuffle($seed = null) <ide> return new static(Arr::shuffle($this->items, $seed)); <ide> } <ide> <add> /** <add> * Create chunks representing a "sliding window" view of the items in the collection. <add> * <add> * @par...
4
Python
Python
fix nan in full-fp16 label_smoothing eval
e21f89f64c0683f111572b8b9fa38ffff64885f1
<ide><path>src/transformers/trainer_pt_utils.py <ide> def __call__(self, model_output, labels): <ide> # will ignore them in any case. <ide> labels.clamp_min_(0) <ide> nll_loss = log_probs.gather(dim=-1, index=labels) <del> smoothed_loss = log_probs.sum(dim=-1, keepdim=True) <add> #...
1
PHP
PHP
add type to fix conflict with interface
eb5196027e7f33e9fcdcbaeb39f2aca6e5cce862
<ide><path>src/ORM/ResultSet.php <ide> public function unserialize($serialized) <ide> * <ide> * @return int <ide> */ <del> public function count() <add> public function count(): int <ide> { <ide> if ($this->_count !== null) { <ide> return $this->_count;
1
Text
Text
use code markup/markdown in headers
a70c3ab9c1eadf803c91efec4b71f57b6412ce22
<ide><path>doc/api/path.md <ide> example, `path.resolve('c:\\')` can potentially return a different result than <ide> `path.resolve('c:')`. For more information, see <ide> [this MSDN page][MSDN-Rel-Path]. <ide> <del>## path.basename(path\[, ext\]) <add>## `path.basename(path[, ext])` <ide> <!-- YAML <ide> added: v0.1....
1
PHP
PHP
remove fluff from file headers
316992435b281837136221f9acc6d98550f680fe
<ide><path>tests/Fixture/AfterTreeFixture.php <ide> <?php <ide> /** <del> * Short description for after_tree_fixture.php <del> * <del> * Long description for after_tree_fixture.php <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * <ide> * Licensed under The MIT License <ide><path...
43
Javascript
Javascript
remove legacy dom node/ref stuff
538d0b08f2a35c216b1ef65ea7e9e9a04bf82707
<ide><path>src/renderers/dom/shared/ReactDOMComponent.js <ide> var ReactDOMSelect = require('ReactDOMSelect'); <ide> var ReactDOMTextarea = require('ReactDOMTextarea'); <ide> var ReactMultiChild = require('ReactMultiChild'); <ide> var ReactPerf = require('ReactPerf'); <del>var ReactUpdateQueue = require('ReactUpdateQue...
4
Python
Python
add numpy documentation
49c8a35dfaa22b5ca29f9aa05bbe4b89f34e6da0
<ide><path>keras/backend/tensorflow_backend.py <ide> def dtype(x): <ide> >>> K.dtype(kvar) <ide> 'float32_ref' <ide> ``` <add> {{np_implementation}} <ide> """ <ide> return x.dtype.base_dtype.name <ide> <ide> def eval(x): <ide> array([[ 1., 2.], <ide> [ 3., 4.]], ...
1
Javascript
Javascript
simplify vm-module-errors test
3d6533ea02d53a11f550769c70028d00b8d2d391
<ide><path>test/parallel/test-vm-module-errors.js <ide> const assert = require('assert'); <ide> <ide> const { SourceTextModule, createContext } = require('vm'); <ide> <del>async function expectsRejection(fn, settings) { <del> const validateError = common.expectsError(settings); <del> // Retain async context. <del> ...
1
Java
Java
remove test class added by mistake
aef39e8954a3bde51d20eab598741898d5f7eeaa
<ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/client/MyTest.java <del>/* <del> * Copyright 2002-2018 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...
1
Text
Text
add devise example to readme
3816fac41d44e79b2ada7de3289a7525ca45abfd
<ide><path>README.md <ide> Beware that currently the cable server will _not_ auto-reload any changes in the <ide> <ide> We'll get all this abstracted properly when the framework is integrated into Rails. <ide> <add>The WebSocket server doesn't have access to the session, but it has access to the cookies. This can be ...
1
Javascript
Javascript
use the correct ripgrep path on asar packages
0a6a798c10f4a10d3502cd1f3f90bf9e1ba51acb
<ide><path>src/ripgrep-directory-searcher.js <ide> module.exports = class RipgrepDirectorySearcher { <ide> search (directories, regexp, options) { <ide> // Delay the require of vscode-ripgrep to not mess with the snapshot creation. <ide> if (!this.rgPath) { <del> this.rgPath = require('vscode-ripgrep').r...
1
Text
Text
fix small grammatical error
e872bbc4ea0aad28a942bd1664c16d4d7564d6bd
<ide><path>docs/tutorials/essentials/part-8-rtk-query-advanced.md <ide> export const UserPage = ({ match }) => { <ide> <ide> There's a key difference with the memoized selector function we've created here. Normally, [selectors expect the entire Redux `state` as their first argument](../../usage/deriving-data-selectors...
1
Text
Text
fix mismatch description
095cf332fe776e89deb2caf950fe1cc0522eec5d
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-typography-by-building-a-nutrition-label/615f42a021625f656101ef93.md <ide> Your new `span` element should have the `class` attribute set to `right`. <ide> assert(document.querySelector('span')?.classList?.contains('right')); <ide> ``` <ide> <de...
1
Javascript
Javascript
remove log statement
49579d60d7fab4a66000f3d5038fafa69e584667
<ide><path>lib/ModuleNotFoundError.js <ide> <ide> class ModuleNotFoundError extends Error { <ide> constructor(module, err, dependencies) { <del> console.log(module, err, dependencies); <ide> super(); <ide> if(Error.hasOwnProperty("captureStackTrace")) { <ide> Error.captureStackTrace(this, this.constructor);
1
Ruby
Ruby
fix renamed branches with `brew tap --repair`
4bdc11ddc97ccf2c7b822e7485bab65f940a69e9
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def tap <ide> <ide> if args.repair? <ide> Tap.each(&:link_completions_and_manpages) <add> Tap.each(&:fix_remote_configuration) <ide> elsif args.list_pinned? <ide> puts Tap.select(&:pinned?).map(&:name) <ide> elsif args.no_named? <ide><path>Libra...
3
Python
Python
remove double isinstance check in force_unicode
226a3e7e00357a5c055faa5138d8338243c4c2c9
<ide><path>django/utils/encoding.py <ide> def force_unicode(s, encoding='utf-8', strings_only=False, errors='strict'): <ide> # output should be. <ide> s = ' '.join([force_unicode(arg, encoding, strings_only, <ide> errors) for arg in s]) <del> el...
1
Text
Text
fix path on macos link
ab1fb2f217aa94cac98105316c7f164bfb6251bd
<ide><path>docs/README.md <ide> In this directory you can only find very specific build and API level documentat <ide> <ide> Instructions for building Atom on various platforms from source. <ide> <del>* [macOS](./build-instructions/macos.md) <add>* [macOS](./build-instructions/macOS.md) <ide> * [Windows](./build-inst...
1
Javascript
Javascript
replace anonymous function with arrow
fcbff6045e8474c31d6f4ffa23187a0334ec8468
<ide><path>test/parallel/test-pipe-file-to-http.js <ide> tmpdir.refresh(); <ide> const filename = path.join(tmpdir.path || '/tmp', 'big'); <ide> let count = 0; <ide> <del>const server = http.createServer(function(req, res) { <add>const server = http.createServer((req, res) => { <ide> let timeoutId; <ide> assert.st...
1
Text
Text
add link to notebook
3fab17fce810431698782f0725852614ad14af52
<ide><path>notebooks/README.md <ide> You can open any page of the documentation as a notebook in colab (there is a bu <ide> | [How to export model to ONNX](https://github.com/huggingface/notebooks/blob/main/examples/onnx-export.ipynb)| Highlight how to export and run inference workloads through ONNX | <ide> | [How to u...
1
Java
Java
fix exception in antpathmatcher for leading *
63f01c851fe9b0dfc8e3df6c9428b19b471ee99d
<ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java <ide> else if (this.pattern.charAt(pos) == '*') { <ide> this.doubleWildcards++; <ide> pos += 2; <ide> } <del> else if (!this.pattern.substring(pos - 1).equals(".*")) { <add> else if (pos > 0 && !this.pattern....
2
Javascript
Javascript
accept either kind of nan
61935bc167cc2de57c6417bd12493775dc9c1b81
<ide><path>test/simple/test-writedouble.js <ide> function test(clazz) { <ide> <ide> buffer.writeDoubleBE(NaN, 0); <ide> buffer.writeDoubleLE(NaN, 8); <del> ASSERT.equal(0x7F, buffer[0]); <add> // Darwin ia32 does the other kind of NaN. <add> // Compiler bug. No one really cares. <add> ASSERT(0x7F === buffer[0...
2
PHP
PHP
allow 1 second of slip
473d55f091811e8372f83f5f945d9edb58d3b18b
<ide><path>lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php <ide> public function testWrite() { <ide> 'Session' => array( <ide> 'id' => 'foo', <ide> 'data' => 'Some value', <del> 'expires' => time() + (Configure::read('Session.timeout') * 60) <ide> ) <ide> ); <add> $expires = $res...
1
Javascript
Javascript
remove unnecessary line from cubecamera
af91ad963f646d6ad63015a09034424b6f2fdd07
<ide><path>src/cameras/CubeCamera.js <del>import { LinearEncoding, NoToneMapping } from '../constants.js'; <add>import { NoToneMapping } from '../constants.js'; <ide> import { Object3D } from '../core/Object3D.js'; <ide> import { Vector3 } from '../math/Vector3.js'; <ide> import { PerspectiveCamera } from './Perspectiv...
1
Javascript
Javascript
reset goal column on all cursor changes
f60f1692fd7cb8d2733c24d662fe78213d3bc20e
<ide><path>spec/text-editor-spec.js <ide> describe('TextEditor', () => { <ide> }) <ide> }) <ide> }) <add> <add> it("clears the goal column", () => { <add> editor.setText('first\n\nthird') <add> editor.setCursorScreenPosition([0, 3]) <add> editor.moveDown() <add> ...
2
Mixed
Javascript
add e2e tests for array object props
958b7aa9aa793046f28208e9a9ddb0a24f6f28f6
<ide><path>packages/react-native-codegen/buck_tests/java/ArrayPropsNativeComponentViewManager.java <ide> public void setPoints(ViewGroup view, ReadableArray value) {} <ide> <ide> @Override <ide> public void setSizes(ViewGroup view, ReadableArray value) {} <add> <add> @Override <add> public void setObject(ViewGro...
2
Text
Text
add multiprocessing section
c9e1a9ac174abe4c8113518955e56af6ea2c5a8d
<ide><path>website/docs/usage/processing-pipelines.md <ide> have to call `list()` on it first: <ide> <ide> </Infobox> <ide> <add>### Multiprocessing <add> <add>spaCy includes built-in support for multiprocessing with <add>[`nlp.pipe`](/api/language#pipe) using the `n_process` option: <add> <add>```python <add># Multi...
1
Python
Python
use logger.warning instead of logger.warn
cabd4ae5b1a0a764c821aa60299d87061b9d4525
<ide><path>spacy/pipeline/lemmatizer.py <ide> def rule_lemmatize(self, token: Token) -> List[str]: <ide> univ_pos = token.pos_.lower() <ide> if univ_pos in ("", "eol", "space"): <ide> if univ_pos == "": <del> logger.warn(Warnings.W108.format(text=string)) <add> ...
2
Text
Text
fix indentation in changelog [ci skip]
5755f57f3e887df93e11c4b3efb8bf21226744cc
<ide><path>actionpack/CHANGELOG.md <ide> <ide> *Michael J Coyne* <ide> <del>* Use Capybara registered `:puma` server config. <add>* Use Capybara registered `:puma` server config. <ide> <ide> The Capybara registered `:puma` server ensures the puma server is run in process so <ide> connection sharing an...
1
Javascript
Javascript
add spec for appstate
d9930897a8ab80fb49628efb2a08d1e0c4d4fee6
<ide><path>Libraries/AppState/AppState.js <ide> <ide> const EventEmitter = require('../vendor/emitter/EventEmitter'); <ide> const NativeEventEmitter = require('../EventEmitter/NativeEventEmitter'); <del>const NativeModules = require('../BatchedBridge/NativeModules'); <del>const RCTAppState = NativeModules.AppState; <a...
2
Javascript
Javascript
add missing export default on favicon
e903a0c27924b3ac0ee141fc7f1c15945d03e233
<ide><path>glances/outputs/static/js/services/favicon.js <ide> <ide> import Favico from 'favico.js'; <del>// import angular from 'angular'; <ide> <del>angular.module('glancesApp').service('favicoService', favicoService); <add>export default angular.module('glancesApp').service('favicoService', favicoService); <ide> ...
1
Java
Java
fix javadoc link in observables/package-info
53d5a235f63ca143c11571cd538ad927c0f8f3ad
<ide><path>src/main/java/io/reactivex/observables/package-info.java <ide> <ide> /** <ide> * Classes supporting the Observable base reactive class: <del> * {@link io.reactivex.observable.ConnectableObservable} and <del> * {@link io.reactivex.observable.GroupedObservable}. <add> * {@link io.reactivex.observables.Connec...
1
Python
Python
add cli argument for configuring labels
7f5367e0b18a56448dde3c4504278e57e6f4beae
<ide><path>examples/run_ner.py <ide> def set_seed(args): <ide> torch.cuda.manual_seed_all(args.seed) <ide> <ide> <del>def train(args, train_dataset, model, tokenizer, pad_token_label_id): <add>def train(args, train_dataset, model, tokenizer, labels, pad_token_label_id): <ide> """ Train the model """ <ide>...
2
Javascript
Javascript
fix messages and use return to skip tests
80a1cf742599ef52235171e2e32f615b6b611007
<ide><path>test/disabled/tls_server.js <ide> var certPem = fs.readFileSync(common.fixturesDir + '/cert.pem'); <ide> try { <ide> var credentials = crypto.createCredentials({key: keyPem, cert: certPem}); <ide> } catch (e) { <del> console.log('Not compiled with OPENSSL support.'); <del> process.exit(); <add> console....
16
Mixed
Go
set default for unix
fe8fa85074a62241640e5c2d9d2501c354517efc
<ide><path>cliconfig/credentials/default_store_linux.go <add>package credentials <add> <add>const defaultCredentialsStore = "secretservice" <add><path>cliconfig/credentials/default_store_unsupported.go <del><path>cliconfig/credentials/default_store_unix.go <del>// +build !windows,!darwin <add>// +build !windows,!darwin...
3
Javascript
Javascript
improve hotmodulereplacementplugin performance
f2e5c1e9e817cc1bd442f69f0ea8b207a450093f
<ide><path>lib/HotModuleReplacementPlugin.js <ide> const ModuleHotDeclineDependency = require("./dependencies/ModuleHotDeclineDepen <ide> const ConstDependency = require("./dependencies/ConstDependency"); <ide> const NullFactory = require("./NullFactory"); <ide> const ParserHelpers = require("./ParserHelpers"); <del>co...
1
Python
Python
fix tfwav2vec2 specaugment
3886104574635ae111d4e05b1320ce9ac1e44b02
<ide><path>src/transformers/models/wav2vec2/modeling_tf_wav2vec2.py <ide> def _compute_mask_indices( <ide> tf.ones_like(spec_aug_mask_idxs), spec_aug_mask_idxs, spec_aug_mask.shape <ide> ) <ide> <del> return tf.cast(spec_aug_mask, tf.float32) <add> return spec_aug_mask <ide> <ide> <ide> def _expand...
1
Go
Go
add gc loop to clean exec command refs on daemon
5f017bba48e5c763157e1b35a5edea64cc41fc6a
<ide><path>daemon/daemon.go <ide> func NewDaemon(config *Config, registryService *registry.Service) (daemon *Daemo <ide> d.RegistryService = registryService <ide> d.EventsService = eventsService <ide> d.root = config.Root <add> go d.execCommandGC() <ide> <ide> if err := d.restore(); err != nil { <ide> return nil...
2
Ruby
Ruby
remove newlines from start of logs
5e4f82a5f39054b27232fbf0840496ab5ddb06a7
<ide><path>actionmailer/lib/action_mailer/log_subscriber.rb <ide> class LogSubscriber < ActiveSupport::LogSubscriber <ide> def deliver(event) <ide> info do <ide> recipients = Array(event.payload[:to]).join(', ') <del> "\nSent mail to #{recipients} (#{event.duration.round(1)}ms)" <add> "S...
1
Javascript
Javascript
fix typo in test-cli-node-options.js
401a37281e63ef0164e44ce66d2c67f995bcefd1
<ide><path>test/parallel/test-cli-node-options.js <ide> function expect(opt, want) { <ide> assert.ifError(err); <ide> if (!RegExp(want).test(stdout)) { <ide> console.error('For %j, failed to find %j in: <\n%s\n>', <del> opt, expect, stdout); <del> assert(false, `Expected ${expect}`...
1
Ruby
Ruby
add limit flag to reduce response size
ef8af4b0707997d38d3146c45c4cc4c5b2fa3017
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def bump_args <ide> <ide> Display out-of-date brew formulae, the latest version available, and whether a pull request has been opened. <ide> EOS <add> flag "--limit=", <add> description: "Limit number of package results returned." <ide> ...
1
Python
Python
use textwrap.dedent for readability
5b6b1fe2f957e22162233878888e2e3d5454a6a9
<ide><path>numpy/core/code_generators/generate_umath.py <ide> def make_arrays(funcdict): <ide> funclist.append('%s_%s' % (tname, name)) <ide> if t.simd is not None: <ide> for vt in t.simd: <del> code2list.append("""\ <del>#ifdef HAVE_ATTRIBUTE_T...
1
PHP
PHP
fix 0'th index file not being copied to $_files
1110e26483fd0c509b10b096d414ed82004965c0
<ide><path>lib/Cake/Network/CakeRequest.php <ide> protected function _base() { <ide> protected function _processFiles() { <ide> if (isset($_FILES) && is_array($_FILES)) { <ide> foreach ($_FILES as $name => $data) { <del> if ($name != 'data') { <add> if ($name !== 'data') { <ide> $this->params['form'][$...
2
PHP
PHP
provide session defaults
451ab1d6e1b0f3c682f967344922fde6f61228ea
<ide><path>src/Network/Request.php <ide> class Request implements \ArrayAccess { <ide> */ <ide> public static function createFromGlobals() { <ide> list($base, $webroot) = static::_base(); <add> $sessionConfig = (array)Configure::read('Session') + array('defaults' => 'php'); <ide> $config = array( <ide> 'query...
1
Javascript
Javascript
fix regression in webxr
8fb030c04113613b41fc63c3db6b698673494063
<ide><path>src/renderers/webxr/WebXRManager.js <ide> class WebXRManager extends EventDispatcher { <ide> <ide> const glSubImage = glBinding.getViewSubImage( glProjLayer, view ); <ide> <del> gl.bindFramebuffer( gl.FRAMEBUFFER, glFramebuffer ); <add> state.bindXRFramebuffer( glFramebuffer ); <ide> <ide>...
1
Python
Python
update setup.py for asf things
7ccf042c8a7889abf676eaced275e61a8400049e
<ide><path>setup.py <ide> def run(self): <ide> setup(name = 'libcloud', <ide> version = '0.1.1', <ide> description = 'A unified interface into many cloud server providers', <del> author = 'Alex Polvi', <del> author_email = 'polvi@cloudkick.com', <add> author = 'Apache Software Foundation', <a...
1
Java
Java
improve error reporting in scripttemplateview
158028881575fb3f00f96579a04ca52857afa375
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/view/script/ScriptRenderException.java <add>/* <add> * Copyright 2002-2015 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with th...
2
Ruby
Ruby
pass formats to lookup_context
face6042667c38fb8a372fa6f0bbfff88c4470f3
<ide><path>actionview/lib/action_view/layouts.rb <ide> def _write_layout_method # :nodoc: <ide> remove_possible_method(:_layout) <ide> <ide> prefixes = _implied_layout_name =~ /\blayouts/ ? [] : ["layouts"] <del> default_behavior = "lookup_context.find_all('#{_implied_layout_name}', #{prefixe...
2
Javascript
Javascript
add support for standalonemonth in format (`llll`)
e4e30961ca1a271452ac4f2acd49b07ad8df3cf9
<ide><path>src/ng/filter/filters.js <ide> function dateGetter(name, size, offset, trim) { <ide> }; <ide> } <ide> <del>function dateStrGetter(name, shortForm) { <add>function dateStrGetter(name, shortForm, standAlone) { <ide> return function(date, formats) { <ide> var value = date['get' + name](); <del> var ...
2
Go
Go
normalize comment formatting
b95fbe7630190a89b311d10f7030822f369cbf79
<ide><path>pkg/signal/trap.go <ide> func Trap(cleanup func(), logger interface { <ide> DumpStacks("") <ide> logger.Info("Forcing docker daemon shutdown without cleanup on SIGQUIT") <ide> } <del> //for the SIGINT/TERM, and SIGQUIT non-clean shutdown case, exit with 128 + signal # <add> // for the SIG...
1
Java
Java
shortcut handling of bodytoflux(databuffer.class)
0e9ecb6c99471a1efa4deb40149e4ddc48e33b92
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultClientResponse.java <ide> <ide> import org.springframework.core.ParameterizedTypeReference; <ide> import org.springframework.core.codec.Hints; <add>import org.springframework.core.io.buffer.DataBuffer; <ide> import org.spri...
2
Text
Text
fix quotes in stream docs
1d3b49ec881c702151b3ba58ceb3644695072d44
<ide><path>doc/api/stream.md <ide> user programs. <ide> be written. The `chunk` will be a string if the `Writable` was created with <ide> the `decodeStrings` option set to `false` and a string was passed to `write()`. <ide> * `encoding` {string} The character encoding of the `chunk`. If `chunk` is <del> a ...
1
Javascript
Javascript
add devsettings to jest preset
a50f736bb6ade9ea9caae45e41ca4b92f6707b17
<ide><path>jest/setup.js <ide> jest <ide> }; <ide> }, <ide> }, <add> DevSettings: { <add> addMenuItem: jest.fn(), <add> reload: jest.fn(), <add> }, <ide> ImageLoader: { <ide> getSize: jest.fn(url => Promise.resolve({width: 320, height: 240})), <ide> prefetchImage: jest....
1
Text
Text
clarify the validation of present associations
e53d2325d52f42c4646696a4db7af472c3a1ec7b
<ide><path>guides/source/active_record_validations.md <ide> end <ide> <ide> If you want to be sure that an association is present, you'll need to test <ide> whether the associated object itself is present, and not the foreign key used <del>to map the association. <add>to map the association. This way, it is not only c...
1
PHP
PHP
fix php 5.4 syntax
fb9c7c13f4b393f6598f2841d084307167a7e883
<ide><path>src/Illuminate/Database/DatabaseManager.php <ide> protected function prepare(Connection $connection) <ide> // The database connection can also utilize a cache manager instance when cache <ide> // functionality is used on queries, which provides an expressive interface <ide> // to caching both fluent qu...
1
PHP
PHP
remove serializer option for now
95a8f05bb9b6769dfdad58eb550777b59f398b5b
<ide><path>src/Illuminate/Redis/Connectors/PhpRedisConnector.php <ide> protected function createClient(array $config) <ide> $client->setOption(Redis::OPT_READ_TIMEOUT, $config['read_timeout']); <ide> } <ide> <del> if (! empty($config['serializer'])) { <del> $client...
1
Javascript
Javascript
use new animation options in the animation service
e774a893da4f7be405af2926ae74499f2ab0d813
<ide><path>src/Chart.Core.js <ide> redraw: noop, <ide> render: function(duration) { <ide> <del> if (this.options.animation) { <add> if (this.options.animation.duration !== 0) { <ide> var animation = new Chart.Animation(); <del> animation.numSteps = (...
1
Javascript
Javascript
change var to let/const in stream files
4fc13b016a6f1933143c97dea55d0b0443423dce
<ide><path>lib/_stream_readable.js <ide> Readable.prototype.read = function(n) { <ide> // 3. Actually pull the requested chunks out of the buffer and return. <ide> <ide> // if we need a readable event, then we need to do some reading. <del> var doRead = state.needReadable; <add> let doRead = state.needReadable; ...
2
Javascript
Javascript
fix unused find
faea56c549647019911134368d841d9a8da87d91
<ide><path>examples/js/loaders/XLoader.js <ide> THREE.XLoader.prototype = { <ide> getNextSection: function ( _offset, _start, _end ) { <ide> <ide> var scope = this; <del> var find = scope.data.indexOf( "{", _offset ); <ide> return [ scope.data.substr( _offset, _start - _offset ).trim(), scope.data.substr( _start...
1
Javascript
Javascript
fix some strict warnings
76f6398e479a01e46d96572b478c6f2ffc4dd85d
<ide><path>crypto.js <ide> var CipherTransformFactory = (function() { <ide> }; <ide> } <ide> error('Unknown crypto method'); <add> return null; <ide> } <ide> <ide> constructor.prototype = { <ide><path>fonts.js <ide> var FontMeasure = (function FontMeasure() { <ide> <ide> return { <ide> setA...
4
Python
Python
fix import errors
cf60559f2f0fa165b77eacd5fb19c0d2cb8bfee5
<ide><path>research/differential_privacy/__init__.py <add> <ide><path>research/differential_privacy/multiple_teachers/__init__.py <add> <ide><path>research/differential_privacy/multiple_teachers/analysis.py <ide> def main(unused_argv): <ide> counts_mat = np.zeros((n, 10)).astype(np.int32) <ide> for i in range(n...
3
Python
Python
remove comment and get size defsively
57577cf95f67a84983ca67506296dd73edf95612
<ide><path>libcloud/compute/drivers/softlayer.py <ide> def _to_node(self, host, bare_metal=None): <ide> 'password': password, <ide> 'datacenter': host.get('datacenter', {}).get('name', None), <ide> 'image': image, <del> 'size': host.get('typeId'), <add> 'size': ...
1
PHP
PHP
apply fixes from styleci
d750abea34ea179e920294a462ec959decb29acc
<ide><path>tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php <ide> public function testBasicCustomCasting() <ide> public function testGetOriginalWithCastValueObjects() <ide> { <ide> $model = new TestEloquentModelWithCustomCast([ <del> 'address' => new Address('110 Kingsbro...
1
Javascript
Javascript
check end() argument to be > 0
642baf4699c3a973c073403a7f1a4c85e0197e81
<ide><path>benchmark/common.js <ide> Benchmark.prototype.end = function(operations) { <ide> if (typeof operations !== 'number') { <ide> throw new Error('called end() without specifying operation count'); <ide> } <add> if (!process.env.NODEJS_BENCHMARK_ZERO_ALLOWED && operations <= 0) { <add> throw new Error...
2
Python
Python
add encoding declaration
487ce1e20a5cd7d84e05b2e702bbae33aab2fc6f
<ide><path>spacy/de/__init__.py <add># encoding: utf8 <ide> from __future__ import unicode_literals, print_function <ide> <ide> from os import path <ide><path>spacy/en/__init__.py <add># encoding: utf8 <ide> from __future__ import unicode_literals, print_function <ide> <ide> from os import path <ide><path>spacy/es/__...
6
Javascript
Javascript
make enumerable#lastobject readonly
c31c50ee0472894a76e320a4e4f70fc357b3b740
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> export default Mixin.create(Enumerable, { <ide> <ide> lastObject: computed(function() { <ide> return objectAt(this, get(this, 'length') - 1); <del> }), <add> }).readOnly(), <ide> <ide> // optimized version from Enumerable <ide> contains(obj) { <i...
3
Python
Python
fix exception handling for python 3k
12d020070e8c6698500103889f55bd36dfcab374
<ide><path>numpy/ctypeslib.py <ide> def load_library(libname, loader_path): <ide> "with ctypes < 1.0.1") <ide> <ide> ext = os.path.splitext(libname)[1] <del> <ide> if not ext: <ide> # Try to load library with platform-specific name, otherwise <ide> # de...
1
Javascript
Javascript
fix newlines in integration helper test blueprint
b8914d1217ae89df13402e6973395a0c8479048b
<ide><path>blueprints/helper-test/qunit-files/tests/__testType__/helpers/__name__-test.js <del><% if (testType == 'integration') { %> <del>import { moduleForComponent, test } from 'ember-qunit'; <add><% if (testType == 'integration') { %>import { moduleForComponent, test } from 'ember-qunit'; <ide> import hbs from 'htm...
2
Ruby
Ruby
remove builder instances
d0163e99d9affeccb341e12cc7c50b599f129b5c
<ide><path>activerecord/lib/active_record/associations/builder/association.rb <ide> class << self <ide> <ide> VALID_OPTIONS = [:class_name, :class, :foreign_key, :validate] <ide> <del> attr_reader :name, :scope, :options <del> <ide> def self.build(model, name, scope, options, &block) <ide> extension ...
2