content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
fix typo in set_callback docs. [ci skip]
fc4b37c4fbbb0258f4572105cc9477b7a7bbff2e
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def __update_callbacks(name) #:nodoc: <ide> # <ide> # set_callback :save, :before_meth <ide> # <del> # The callback can specified as a symbol naming an instance method; as a <add> # The callback can be specified as a symbol nam...
1
Java
Java
make spacing.release() public
1eddd01063d6fbc50d96ed8ae5be509ba58067ef
<ide><path>ReactAndroid/src/main/java/com/facebook/csslayout/Spacing.java <ide> public float getRaw(int spacingType) { <ide> * Resets the spacing instance to its default state. This method is meant to be used when <ide> * recycling {@link Spacing} instances. <ide> */ <del> void reset() { <add> public void re...
1
Javascript
Javascript
use new style of passing watch options
fd4c0042ed0a57212a0b89f93ea1afae73022516
<ide><path>bin/convert-argv.js <ide> var path = require("path"); <ide> var fs = require("fs"); <ide> fs.existsSync = fs.existsSync || path.existsSync; <ide> var resolve = require("enhanced-resolve"); <del>var interpret = require('interpret'); <add>var interpret = require("interpret"); <ide> <ide> module.exports = func...
2
Text
Text
remove redundant empty lines
a3bd06a5e6cf07854dd757dd97c5a0292f8ea0a3
<ide><path>doc/api/addons.md <ide> Addon developers are recommended to use to keep compatibility between past and <ide> future releases of V8 and Node.js. See the `nan` [examples][] for an <ide> illustration of how it can be used. <ide> <del> <ide> ## N-API <ide> <ide> > Stability: 1 - Experimental <ide> built using ...
26
Text
Text
fix errors in performance hooks doc
38f48100eb60539346a74fd9c7f85e8c22257d76
<ide><path>doc/api/perf_hooks.md <ide> added: v16.7.0 <ide> * `name` {string} <ide> <ide> If `name` is not provided, removes all `PerformanceMeasure` objects from the <del>Performance Timeline. If `name` is provided, removes only the named mark. <add>Performance Timeline. If `name` is provided, removes only the named ...
1
Text
Text
clarify event.istrusted text
2af43f65055de2817eb7907d3a3d3b3a3de127f5
<ide><path>doc/api/events.md <ide> This is not used in Node.js and is provided purely for completeness. <ide> added: v14.5.0 <ide> --> <ide> <del>* Type: {boolean} True for Node.js internal events, false otherwise. <add>* Type: {boolean} <ide> <del>Currently only `AbortSignal`s' `"abort"` event is fired with `isTrust...
1
Javascript
Javascript
stop deep linking `reactproptypes`
7263c349c7af47d1aa603aa80f8a7a9239c5f807
<ide><path>Libraries/CameraRoll/CameraRoll.js <ide> */ <ide> 'use strict'; <ide> <del>var ReactPropTypes = require('react/lib/ReactPropTypes'); <add>var ReactPropTypes = require('React').PropTypes <ide> var RCTCameraRollManager = require('NativeModules').CameraRollManager; <ide> <ide> var createStrictShapeTypeChecke...
29
Javascript
Javascript
remove unnecessary reflective dereferencing
3fbb25e25cc9bd1ddad8efab9f43749735e53454
<ide><path>src/ngAnimate/animate.js <ide> angular.module('ngAnimate', ['ng']) <ide> function cancelAnimations(animations) { <ide> var isCancelledFlag = true; <ide> forEach(animations, function(animation) { <del> if(!animations['beforeComplete']) { <add> if(!animations.beforeCompl...
1
Javascript
Javascript
convert `registry` to es6 class
d7d40fcc3a8fa4be3310bcff0c6d14eac084a422
<ide><path>packages/container/lib/registry.js <ide> const VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/; <ide> @class Registry <ide> @since 1.11.0 <ide> */ <del>export default function Registry(options = {}) { <del> this.fallback = options.fallback || null; <add>export default class Registry { <add> constructor(options ...
1
Text
Text
remove outdated info in cypress/gitpod
0823b45f5dc961fb4f236decd361d88691760d5c
<ide><path>docs/how-to-add-cypress-tests.md <ide> To run tests against production builds, replace `dev` with `prd` below. <ide> <ide> ## Cypress-GitPod Setup <ide> <del>### 1. Ensure you are on the _Feature Preview_ of GitPod _as of 01/02/2021_ <del> <del>- Go to [GitPod Docs - Feature Preview](https://www.gitpod.io/...
1
Text
Text
explain what the virtual size means
498f208ade18dffb7362adc37c1f11b1bff187da
<ide><path>docs/sources/reference/commandline/cli.md <ide> decrease disk usage, and speed up `docker build` by <ide> allowing each step to be cached. These intermediate layers are not shown <ide> by default. <ide> <add>The `VIRTUAL SIZE` is the cumulative space taken up by the image and all <add>its parent images. Thi...
1
Python
Python
return custom error in nlp.initialize
39de3602e0321eb2dbcfce032a8d4734162ee69d
<ide><path>spacy/errors.py <ide> class Errors: <ide> E880 = ("The 'wandb' library could not be found - did you install it? " <ide> "Alternatively, specify the 'ConsoleLogger' in the 'training.logger' " <ide> "config section, instead of the 'WandbLogger'.") <add> E884 = ("The pipeline coul...
2
PHP
PHP
fix lint error
3d473576c7d3630fb522c4bd0825193246356178
<ide><path>src/Mailer/Email.php <ide> public function headerCharset($charset = null) <ide> * @param string|null $encoding Encoding set. <ide> * @return $this <ide> */ <del> public function setTransferEncoding($encoding) { <add> public function setTransferEncoding($encoding) <add> { <ide> ...
2
Javascript
Javascript
add welcome message
fe963149f6b2b4af7ace402851dc3dfed64ca2d5
<ide><path>lib/internal/main/repl.js <ide> const { <ide> evalScript <ide> } = require('internal/process/execution'); <ide> <add>const console = require('internal/console/global'); <add> <ide> prepareMainThreadExecution(); <ide> <ide> // --entry-type flag not supported in REPL <ide> if (require('internal/options').g...
9
Ruby
Ruby
use 1.9 hash style in docs/comments [ci skip]
5a69fe724e50377f13dc107733b765a53fc0c799
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def require(key) <ide> # You may declare that the parameter should be an array of permitted scalars <ide> # by mapping it to an empty array: <ide> # <del> # params.permit(:tags => []) <add> # params.permit(tags: []) <ide>...
1
Python
Python
add support for atlas > 3.9.33
dd0732e4bda8f4379b17ea479bcecc876ab50ce6
<ide><path>numpy/distutils/system_info.py <ide> atlas_blas_info <ide> atlas_blas_threads_info <ide> lapack_atlas_info <add> lapack_atlas_threads_info <add> atlas_3_10_info <add> atlas_3_10_threads_info <add> atlas_3_10_blas_info, <add> atlas_3_10_blas_threads_info, <add> lapack_atlas_3_10_info <add> lapack...
1
Python
Python
resolve mypy issue in athena example dag
a9b7dd69008710f1e5b188e4f8bc2d09a5136776
<ide><path>airflow/providers/amazon/aws/example_dags/example_athena.py <ide> def read_results_from_s3(query_execution_id): <ide> remove_sample_data_from_s3 = remove_sample_data_from_s3() <ide> <ide> ( <del> add_sample_data_to_s3 <add> add_sample_data_to_s3 # type: ignore <ide> >> create_...
1
Ruby
Ruby
use more https in urls and updated some lost links
fc2818b7a54dadcf0c35965ef1f07219da3fc4a7
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> Installing TeX from source is weird and gross, requires a lot of patches, <ide> and only builds 32-bit (and thus can't use Homebrew deps on Snow Leopard.) <ide> <del> We recommend using a MacTeX distribution: http://www.tug.org/macte...
13
Python
Python
update failure message
06b5318a09b6173ea281f47f3d7eb584168f4e4e
<ide><path>numpy/ma/tests/test_core.py <ide> def test_varstd(self): <ide> mX[:, k].compressed().std()) <ide> <ide> @dec.knownfailureif(sys.platform=='win32' and sys.version_info < (3, 6), <del> msg='Fails on Python < 3.6') <add> msg='Fai...
1
Javascript
Javascript
remove unused deps
541bedd1a9692208deae0cd2a93171e87fb7d1ba
<ide><path>src/directive/ngController.js <ide> </doc:scenario> <ide> </doc:example> <ide> */ <del>var ngControllerDirective = ['$controller', '$window', function($controller, $window) { <add>var ngControllerDirective = [function() { <ide> return { <ide> scope: true, <ide> controller: '@' <del> } <ad...
1
Javascript
Javascript
add "mustcall" for test-net-buffersize
7cbbd51479a9637694ab14e985880758ee24c656
<ide><path>test/parallel/test-net-buffersize.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const assert = require('assert'); <ide> const net = require('net'); <ide> <ide> const server = net.createServer(function(...
1
Javascript
Javascript
add some new (failing) tests for component bugs
a668299bc8dcc922617718d9dc4b63152413cef2
<ide><path>packages/ember-htmlbars/tests/integration/component_invocation_test.js <ide> if (isEnabled('ember-htmlbars-component-generation')) { <ide> equal(view.$('div').attr('class'), 'inner-class new-outer ember-view', 'the classes are merged'); <ide> }); <ide> <del> QUnit.test('non-block with class replaced ...
1
Javascript
Javascript
use setimmediate() in test of stream2
99277952b4881fbb65d9a7dc03fc9a3c5cc0290e
<ide><path>test/parallel/test-stream2-push.js <ide> function end() { <ide> source.emit('end'); <ide> assert(!reading); <ide> writer.end(stream.read()); <del> setTimeout(function() { <add> setImmediate(function() { <ide> assert(ended); <ide> }); <ide> }
1
Javascript
Javascript
set ng-valid/ng-invalid correctly
08bfea183a850b29da270eac47f80b598cbe600f
<ide><path>src/directive/input.js <ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', 'ngModel', '$e <ide> <ide> if (isValid) { <ide> if ($error[validationErrorKey]) invalidCount--; <del> $error[validationErrorKey] = false; <del> toggleValidCss(isValid); <ide> if (!invalid...
2
Javascript
Javascript
add usenativedriver toggle ui
63e0f7d76765e6e711b47dc64b04a6065193cab1
<ide><path>packages/rn-tester/js/components/RNTConfigurationBlock.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <add> * @flow str...
10
Javascript
Javascript
use empty object
714f0b8b7d4c95d18b561845493cc031d182eec7
<ide><path>packages/ember-metal/lib/meta.js <ide> <ide> import isEnabled from 'ember-metal/features'; <ide> import { protoMethods as listenerMethods } from 'ember-metal/meta_listeners'; <add>import EmptyObject from 'ember-metal/empty_object'; <ide> <ide> /** <ide> @module ember-metal <ide> function ownMap(name, Meta)...
1
Javascript
Javascript
fix negative zoomscale in rtl
82b268f884c2b46cb1ef55d97839614ba22a3460
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<Props, State> { <ide> this._hasWarned.perf = true; <ide> } <ide> <del> // e.nativeEvent.zoomScale is -1 in RTL so take absolute <del> const zoomScale = Math.abs(e.nativeEvent.zoomScale); <add> const...
1
Text
Text
improve example formatting
574013f8dad86b5a01b25a19a8eb9abed8da6f87
<ide><path>docs/usage/WritingTests.md <ide> Because most of the Redux code you write are functions, and many of them are pur <ide> <ide> Our general advice for testing an app using Redux is: <ide> <del>- **Prefer writing integration tests with everything working together**. For a React app using Redux, render a `<Pro...
1
Javascript
Javascript
remove unreachable code
9b0246b179694d2d13298c8ff6c701b806e68aa6
<ide><path>lib/timers.js <ide> exports.setTimeout = function(callback, after) { <ide> var ontimeout = callback; <ide> switch (length) { <ide> // fast cases <del> case 0: <ide> case 1: <ide> case 2: <ide> break; <ide> exports.setInterval = function(callback, repeat) { <ide> var length = argume...
1
Mixed
Javascript
add stream utilities to `filehandle`
026bd82e3083e426bc8613be8b2285a3edd92336
<ide><path>doc/api/fs.md <ide> try { <ide> } <ide> ``` <ide> <add>#### `filehandle.createReadStream([options])` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `options` {Object} <add> * `encoding` {string} **Default:** `null` <add> * `autoClose` {boolean} **Default:** `true` <add> * `emitClose` {boolean...
3
Python
Python
fix one more issue related to build dir
f0e69ab361b29daae801aa514c78d2097412691a
<ide><path>numpy/distutils/command/scons.py <ide> def get_scons_local_path(): <ide> from numscons import get_scons_path <ide> return get_scons_path() <ide> <del>def get_distutils_libdir(cmd, sconscript_path): <add>def get_distutils_libdir(cmd, pkg): <ide> """Returns the path where distutils install librari...
1
PHP
PHP
add tests for belongsto and null property values
9dfe876de0fed2c35019b52f1a8f174878d3fa37
<ide><path>tests/TestCase/ORM/Association/BelongsToTest.php <ide> */ <ide> class BelongsToTest extends \Cake\TestSuite\TestCase { <ide> <add>/** <add> * Fixtures to use. <add> * <add> * @var array <add> */ <add> public $fixtures = ['core.article', 'core.comment']; <add> <add>/** <add> * Don't autoload fixtures as mos...
1
Python
Python
set version to 2.1.0a6.dev1
246538be2e55a48a674ba3ff66025205ba3de020
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy-nightly" <del>__version__ = "2.1.0a6.dev0" <add>__version__ = "2.1.0a6.dev1" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI"
1
Javascript
Javascript
remove picker from modal example
b22a6d6e9d9e4bd28fbd3b63c7c90d86a5f99a1e
<ide><path>packages/rn-tester/js/components/RNTOption.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <add> * @flow strict-local <a...
4
Javascript
Javascript
add flow types for `platform.select` [5/5]
deb2a94568a4b62812cc538960fa1b25e4344dfa
<ide><path>Libraries/Utilities/Platform.android.js <ide> <ide> const NativeModules = require('NativeModules'); <ide> <add>export type PlatformSelectSpec<A, D> = { <add> android?: A, <add> default?: D, <add>}; <add> <ide> const Platform = { <ide> OS: 'android', <ide> get Version() { <ide> const Platform = { <ide...
3
Python
Python
fix inconsistencies in generate_specials.py
85485f5c2ba9bc19356c1940ee4304f0c44517c6
<ide><path>lang_data/en/generate_specials.py <ide> "are": {"L": "be", "pos": "VBP", "number": 2}, <ide> "ca": {"L": "can", "pos": "MD"}, <ide> "can": {"L": "can", "pos": "MD"}, <del> "could": {"pos": "MD"}, # no lemma for could? <add> "co...
1
Go
Go
fix flaky test testrunattachfailednoleak in
1a9f5f4c69451c580595d67844f41937b3293069
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunAttachFailedNoLeak(c *check.C) { <ide> <ide> runSleepingContainer(c, "--name=test", "-p", "8000:8000") <ide> <add> // Wait until container is fully up and running <add> c.Assert(waitRun("test"), check.IsNil) <add> <ide> out, _, err...
1
Javascript
Javascript
fix macedonian locale
3467900690dcb0e22cdf51c4ea293c8b3d563158
<ide><path>src/locale/mk.js <ide> export default moment.defineLocale('mk', { <ide> calendar : { <ide> sameDay : '[Денес во] LT', <ide> nextDay : '[Утре во] LT', <del> nextWeek : 'dddd [во] LT', <add> nextWeek : '[Во] dddd [во] LT', <ide> lastDay : '[Вчера во] LT', <ide> ...
1
Python
Python
fix linting errors in in1d tests
179d1575ebdf850add391db87da6b1f4d3209e3c
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, _slow_integer=None): <ide> ar2_range = ar2_max - ar2_min <ide> <ide> # Optimal performance is for approximately <del> # log10(size) > (log10(range) - 2.27) / 0.927, see discuss...
2
Python
Python
save config file
744295636116eac1c0b84e23e9b3cab90886a45d
<ide><path>pytorch_transformers/modeling_utils.py <ide> def __init__(self, **kwargs): <ide> self.output_hidden_states = kwargs.pop('output_hidden_states', False) <ide> self.torchscript = kwargs.pop('torchscript', False) <ide> <add> def save_pretrained(self, save_directory): <add> """ Save a c...
1
Javascript
Javascript
add missing types on chunk related classes
de41d1fe8bb2c379c4bd558f7ee23977bf7511b5
<ide><path>lib/Chunk.js <ide> const SortableSet = require("./util/SortableSet"); <ide> const { compareModulesById } = require("./util/comparators"); <ide> <ide> /** @typedef {import("webpack-sources").Source} Source */ <add>/** @typedef {import("./ChunkGraph").ChunkFilterPredicate} ChunkFilterPredicate */ <add>/** @ty...
5
Ruby
Ruby
add missing require
05f29e7463e793ec3c77d5b1b1d2264a44887810
<ide><path>Library/Contributions/cmds/brew-pull.rb <ide> # Optionally, installs it too. <ide> <ide> require 'utils' <add>require 'formula' <ide> <ide> def tap arg <ide> match = arg.match(%r[homebrew-(\w+)/])
1
Javascript
Javascript
clarify doc for "args" in $broadcast and $emit
caed2dfe4feeac5d19ecea2dbb1456b7fde21e6d
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * onto the {@link ng.$exceptionHandler $exceptionHandler} service. <ide> * <ide> * @param {string} name Event name to emit. <del> * @param {...*} args Optional set of arguments which will be passed onto the event listen...
1
Text
Text
improve function parameter descriptions
ac570899607b9dab4f139e684f5fe4784af1af01
<ide><path>doc/api/buffer.md <ide> deprecated: v6.0.0 <ide> <ide> Stability: 0 - Deprecated: Use [`Buffer.from(array)`] instead. <ide> <del>* `array` {Array} <add>* `array` {Array} An array of bytes to copy from <ide> <ide> Allocates a new `Buffer` using an `array` of octets. <ide> <ide> deprecated: v6.0.0 <ide...
1
Ruby
Ruby
remove unused variable
9cd95bc0b7ff44fd13894e17318cb33abbdea280
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def tap_args <ide> <ide> def private_tap?(user, repo) <ide> GitHub.private_repo?(user, "homebrew-#{repo}") <del> rescue GitHub::HTTPNotFoundError => e <add> rescue GitHub::HTTPNotFoundError <ide> true <ide> rescue GitHub::Error <ide> false
1
PHP
PHP
use new route syntax
99bb07502c18ce73d64970e3237fec6152527bd9
<ide><path>routes/api.php <ide> | <ide> */ <ide> <del>Route::get('/user', function (Request $request) { <add>Route::middleware('auth:api')->get('/user', function (Request $request) { <ide> return $request->user(); <del>})->middleware('auth:api'); <add>});
1
Javascript
Javascript
remove unnecessary `resolvemodulesource()` call
b1f34f0cf75dac6a869dffff1a4a463a14f8b7f1
<ide><path>broccoli/transforms/inject-node-globals.js <ide> function injectNodeGlobals({ types: t }) { <ide> <ide> if (requireId || moduleId) { <ide> let specifiers = []; <del> let source = t.stringLiteral(this.file.resolveModuleSource('node-module')); <add> let source = t.s...
1
Ruby
Ruby
fix links in csp documentation [ci-skip]
0b851183e0f88267a5bcd9431437397122a498bd
<ide><path>actionpack/lib/action_dispatch/http/content_security_policy.rb <ide> <ide> module ActionDispatch # :nodoc: <ide> # Allows configuring a <del> # {Content-Security-Policy}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) <add> # {Content-Security-Policy}[https://developer...
1
Go
Go
move "image_history" to graph/history.go
55235e121eb2924488508f70b8f30e0e9905d85e
<ide><path>graph/history.go <add>package graph <add> <add>import ( <add> "strings" <add> <add> "github.com/docker/docker/engine" <add> "github.com/docker/docker/image" <add>) <add> <add>func (s *TagStore) CmdHistory(job *engine.Job) engine.Status { <add> if n := len(job.Args); n != 1 { <add> return job.Errorf("Usage: ...
4
Ruby
Ruby
fix response_body warning in ac
70c3e825fc184c7267d226c7b365af4db17f58b7
<ide><path>actionpack/lib/abstract_controller/base.rb <ide> def process(action) <ide> raise ActionNotFound, "The action '#{action}' could not be found" <ide> end <ide> <add> @_response_body = nil <add> <ide> process_action(action_name) <ide> end <ide>
1
PHP
PHP
apply fixes from styleci
d35e24c409598c231371369dabc8cdc8c92a11d6
<ide><path>src/Illuminate/Foundation/Console/ExceptionMakeCommand.php <ide> protected function getStub() <ide> return $this->option('report') <ide> ? __DIR__.'/stubs/exception-report.stub' <ide> : __DIR__.'/stubs/exception.stub'; <del> <ide> } <ide> <ide> /**
1
Go
Go
use strconv instead of fmt.sprintf
7fbf321c2a1628e149ebe6838c9809d4c52cf37d
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> import ( <ide> "os/exec" <ide> "path" <ide> "path/filepath" <add> "strconv" <ide> "strings" <ide> "sync" <ide> <ide> func (a *Driver) Status() [][2]string { <ide> return [][2]string{ <ide> {"Root Dir", a.rootPath()}, <ide> {"Backing Filesystem", backingFs}, <d...
4
Text
Text
add v4.0.1 to changelog
7e411fd2205af318492a948a23ed3cc4da99aacb
<ide><path>CHANGELOG.md <ide> - [#18269](https://github.com/emberjs/ember.js/pull/18269) [BUGFIX] Fix for when query params are using a nested value <ide> - [#19787](https://github.com/emberjs/ember.js/pull/19787) Setup basic infrastructure to ensure destroyables destroyed <ide> <add>### v4.0.1 (December 1, 2021) <add...
1
Javascript
Javascript
add vm context global proxy benchmark
b3531bf735afcd87db718095681d04ef8269f70f
<ide><path>benchmark/vm/context-global-proxy.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [100000], <add>}); <add> <add>const vm = require('vm'); <add>const script = new vm.Script(` <add> globalThis.foo++; <add>`); <add>const...
1
Python
Python
replace calls to unittest.testcase.fail
88cbd3d857db84cf820a6210fde14814f1d1d92b
<ide><path>numpy/core/tests/test_defchararray.py <ide> from numpy.core.multiarray import _vec_string <ide> from numpy.testing import ( <ide> assert_, assert_equal, assert_array_equal, assert_raises, <del> suppress_warnings, <add> assert_raises_regex, suppress_warnings, <ide> ) <ide> <ide> kw_unicode_true...
10
PHP
PHP
update routelistcommand.php
b71144ac57865b7e4a53fb23c7a901fc28362cbe
<ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php <ide> protected function getOptions() <ide> ['path', null, InputOption::VALUE_OPTIONAL, 'Only show routes matching the given path pattern'], <ide> ['except-path', null, InputOption::VALUE_OPTIONAL, 'Do not display the routes match...
1
Python
Python
fix autotokenizer with subfolder passed
fb1c8db78a35d3e1f77410b6a5e5845b04d91e30
<ide><path>src/transformers/models/auto/tokenization_auto.py <ide> def get_tokenizer_config( <ide> use_auth_token: Optional[Union[bool, str]] = None, <ide> revision: Optional[str] = None, <ide> local_files_only: bool = False, <add> subfolder: str = "", <ide> **kwargs, <ide> ): <ide> """ <ide> def...
1
Python
Python
set version to v3.0.0a4
743f7fb73aaceec752bfd74fe903b9c12e69f8c6
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a3" <add>__version__ = "3.0.0a4" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp...
1
Python
Python
fix dimention misspellings.
4670b57ce984dae754a7664629b1ade2cdcfe9ca
<ide><path>src/transformers/models/gpt_neo/modeling_gpt_neo.py <ide> def _get_block_length_and_num_blocks(seq_length, window_size): <ide> def _look_back(tensor, block_length, window_size, pad_value=0, is_key_value=True): <ide> """ <ide> Used to implement attention between consecutive blocks. This me...
2
Python
Python
decrease memory usage of lstm text gen example
be22591e326028b5642b1b7d2cecb58137dcb921
<ide><path>examples/lstm_text_generation.py <ide> print('nb sequences:', len(sentences)) <ide> <ide> print('Vectorization...') <del>X = np.zeros((len(sentences), maxlen, len(chars))) <del>y = np.zeros((len(sentences), len(chars))) <add>X = np.zeros((len(sentences), maxlen, len(chars)), dtype=np.bool) <add>y = np.zeros...
1
Javascript
Javascript
remove filter pills from example page
5cf4ab8dd28b5a336d7af29d295ede51f0d19587
<ide><path>packages/rn-tester/js/components/RNTesterExampleList.js <ide> const RNTesterExampleList: React$AbstractComponent<any, void> = React.memo( <ide> page="components_page" <ide> sections={sections} <ide> filter={filter} <add> hideFilterPills={true} <ide> render={({...
1
Text
Text
rearrange v1.5.1 to be right below v1.5.2
3e9015019f3918db444bf0bdf557361d6a9781df
<ide><path>CHANGELOG.md <ide> <a name="1.5.2"></a> <ide> # 1.5.2 differential-recovery (2016-03-18) <ide> <del>This release reverts a breaking change that accidentally made it into the 1.5.1 release. See [fee7bac3](https://github.com/angular/angular.js/commit/fee7bac392db24b6006d6a57ba71526f3afa102c) for more info. <a...
1
Javascript
Javascript
return the setter values instead of this
796aff2146d0573f4240bec294201b33ab9a9ad9
<ide><path>packages/ember-metal/lib/set_properties.js <ide> import keys from "ember-metal/keys"; <ide> @method setProperties <ide> @param obj <ide> @param {Object} properties <del> @return obj <add> @return properties <ide> @public <ide> */ <ide> export default function setProperties(obj, properties) { <del> ...
2
Text
Text
add v3.4.0-beta.1 to changelog
1cbd034ce0c7f0c26970b9923d17b51c00c9ea53
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.4.0-beta.1 (July 16, 2018) <add> <add>- [#16773](https://github.com/emberjs/ember.js/pull/16773) [FEATURE] Custom component manager (see [emberjs/rfcs#213](https://github.com/emberjs/rfcs/blob/master/text/0213-custom-components.md) for more details) <ad...
1
Go
Go
fix the lookup method
5e6355d1828441fe6d5ff4cd814825e05213b2c9
<ide><path>registry.go <ide> func (graph *Graph) getRemoteHistory(imgId string, authConfig *auth.AuthConfig) <ide> <ide> // Check if an image exists in the Registry <ide> func (graph *Graph) LookupRemoteImage(imgId string, authConfig *auth.AuthConfig) bool { <del> client := &http.Client{} <add> rt := &http.Transport{P...
1
PHP
PHP
fix typeerror on php 8
fb875af10e533faef59200d3e8ee5758d614a6be
<ide><path>src/Utility/Text.php <ide> public static function insert(string $str, array $data, array $options = []): st <ide> /** @var array<string, mixed> $dataReplacements */ <ide> $dataReplacements = array_combine($hashKeys, array_values($data)); <ide> foreach ($dataReplacements as $tmpHash =>...
1
PHP
PHP
add test coverage
cea3c049780b12a9af57f9d33ef02ec5316c7b32
<ide><path>tests/TestCase/Core/FunctionsTest.php <ide> public function testEnv() <ide> $_ENV['ZERO'] = '0'; <ide> $this->assertSame('0', env('ZERO')); <ide> $this->assertSame('0', env('ZERO', '1')); <add> <add> $this->assertSame('', env('DOCUMENT_ROOT')); <add> $this->assertSame('v...
3
Text
Text
add es6 code example in util.md
9a91ffbbdeca0f82e496c5f6b095c863ca778c8a
<ide><path>doc/api/util.md <ide> stream.on('data', (data) => { <ide> stream.write('It works!'); // Received data: "It works!" <ide> ``` <ide> <add>ES6 example using `class` and `extends` <add> <add>```js <add>const util = require('util'); <add>const EventEmitter = require('events'); <add> <add>class MyStream extends E...
1
Python
Python
fix crash when python interpreter not on path.
e4ab5a8608553787154d2e5c4916c00a582c47ba
<ide><path>official/recommendation/popen_helper.py <ide> """Helper file for running the async data generation process in OSS.""" <ide> <ide> import os <del>import six <add>import sys <ide> <ide> <del>_PYTHON = "python3" if six.PY3 else "python2" <add>_PYTHON = sys.executable <add>if not _PYTHON: <add> raise Runtime...
1
PHP
PHP
tokenize bug for a single enclosed item, closes
6f64efb3424d83e98ae4073cf90723686d11eb4a
<ide><path>cake/libs/string.php <ide> function tokenize($data, $separator = ',', $leftBound = '(', $rightBound = ')') <ide> } <ide> if ($data{$tmpOffset} == $leftBound) { <ide> $depth++; <del> } <del> if ($data{$tmpOffset} == $rightBound) { <add> } elseif ($data{$tmpOffset} == $rightBound) { <ide>...
2
Java
Java
add error customizer for react native android
0c234c90a2b831eb0f3e054de17fa26a4cee7934
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerImpl.java <ide> import android.hardware.SensorManager; <ide> import android.net.Uri; <ide> import android.os.AsyncTask; <add>import android.util.Pair; <ide> import android.widget.Toast; <ide> import com.facebook.common.logging.FLog; <i...
4
Java
Java
improve cors handling
d27b5d0ab6e8b91a77e272ad57ae83c7d81d810b
<ide><path>spring-web/src/main/java/org/springframework/web/cors/CorsUtils.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this...
20
Javascript
Javascript
convert root to hoc and add root decorator
e0a00cdba5e5946549293278006f5e014aa8a5a6
<ide><path>examples/counter/App.js <ide> import { increment, decrement } from './actions/CounterActions'; <ide> import counterStore from './stores/counterStore'; <ide> import Counter from './Counter'; <ide> <del>@Root <del>export default class App extends Component { <add>export default class CounterApp extends Compon...
6
Javascript
Javascript
fix code style
6bf1339341e99672c37e8b2ba0257d6f47634ec7
<ide><path>src/objects/InstancedMesh.js <ide> InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), { <ide> }, <ide> <ide> // updateMorphTargets: function () { <del> // <add> // <ide> // } <ide> <ide> } );
1
Javascript
Javascript
remove unused path from normalmodulefactory
ce5e3e1e8d90c1c8309421b7a89aa7c3ede98ac2
<ide><path>lib/NormalModuleFactory.js <ide> Author Tobias Koppers @sokra <ide> */ <ide> var async = require("async"); <del>var path = require("path"); <ide> var Tapable = require("tapable"); <ide> var NormalModule = require("./NormalModule"); <ide> var RawModule = require("./RawModule");
1
Javascript
Javascript
remove lodash dependency
7003366e99ba6b7be80444f70d35abb915634a01
<ide><path>resources/js/app.js <ide> Vue.component('example-component', require('./components/ExampleComponent.vue')) <ide> // const files = require.context('./', true, /\.vue$/i) <ide> <ide> // files.keys().map(key => { <del>// return Vue.component(_.last(key.split('/')).split('.')[0], files(key)) <add>// ret...
1
Go
Go
fix use of bufio.scanner.err
745ed9686b7bf09399aa013236b8112e63722dfe
<ide><path>pkg/idtools/idtools.go <ide> func parseSubidFile(path, username string) (ranges, error) { <ide> <ide> s := bufio.NewScanner(subidFile) <ide> for s.Scan() { <del> if err := s.Err(); err != nil { <del> return rangeList, err <del> } <del> <ide> text := strings.TrimSpace(s.Text()) <ide> if text == "" ...
1
Text
Text
add missing permission import in viewsets
ed7f3c55f7647b19ce2358ebce861a0cee8944d5
<ide><path>docs/tutorial/6-viewsets-and-routers.md <ide> Next we're going to replace the `SnippetList`, `SnippetDetail` and `SnippetHighl <ide> <ide> from rest_framework.decorators import action <ide> from rest_framework.response import Response <add> from rest_framework import permissions <ide> <ide> ...
1
Ruby
Ruby
apply suggestions from code review
3dcfc7e26e663f8378d48aa6a6d48541aea31d9d
<ide><path>Library/Homebrew/tap.rb <ide> def link_completions_and_manpages <ide> end <ide> <ide> def fix_remote_configuration(requested_remote: nil, quiet: false) <del> unless requested_remote.nil? <add> if requested_remote.present? <ide> path.cd do <ide> safe_system "git", "remote", "set-url",...
1
Text
Text
add changelog entry for [ci skip]
7765ee0e4714b82150e525f9fee80f5b23e91662
<ide><path>railties/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <del>* Added notice message for destroy action in scaffold generator <add>* Add notice message for destroy action in scaffold generator. <ide> <ide> *Rahul P. Chaudhari* <ide> <del>* Add --rc option to support the load of a custom ...
1
Javascript
Javascript
apply pr comments
1159e247d0c99611b538a3291b52409c6007878c
<ide><path>src/lib/units/year.js <ide> import toInt from '../utils/to-int'; <ide> <ide> addFormatToken('Y', 0, 0, function () { <ide> var y = this.year(); <del> if (y < 0) { <del> return y; <del> } else if (y <= 9999) { <del> return y; <del> } else { <del> // force plus for longer yea...
2
Javascript
Javascript
add pointer events to text view config
01492296d2643e8d8440b08a629a94a2d7905c9a
<ide><path>Libraries/Text/TextNativeComponent.js <ide> * @format <ide> */ <ide> <del>import ReactNativeViewAttributes from '../Components/View/ReactNativeViewAttributes'; <ide> import UIManager from '../ReactNative/UIManager'; <ide> import {type HostComponent} from '../Renderer/shims/ReactNativeTypes'; <ide> import ...
1
Javascript
Javascript
remove extra shallow copy
77b9ce57e209c82b43d39caa50dc301f00a8abdb
<ide><path>lib/child_process.js <ide> function spawnSync(file, args, options) { <ide> maxBuffer: MAX_BUFFER, <ide> ...opts.options <ide> }; <del> options = opts.options = Object.assign(defaults, opts.options); <add> options = opts.options = defaults; <ide> <ide> debug('spawnSync', opts.args, options); <i...
1
Go
Go
add systemd implementation of cgroups
6c7835050e53b733181ddfca6152c358fd625400
<ide><path>pkg/cgroups/apply_nosystemd.go <add>// +build !linux <add> <add>package cgroups <add> <add>import ( <add> "fmt" <add>) <add> <add>func useSystemd() bool { <add> return false <add>} <add> <add>func systemdApply(c *Cgroup, pid int) (ActiveCgroup, error) { <add> return nil, fmt.Errorf("Systemd not supported") <...
4
Go
Go
update code for latest engine-api
7534f17261d0bb74557ca2f7cd893d5b7b531d49
<ide><path>api/client/cli.go <ide> func NewDockerCli(in io.ReadCloser, out, err io.Writer, clientFlags *cli.ClientF <ide> } <ide> customHeaders["User-Agent"] = clientUserAgent() <ide> <del> verStr := api.DefaultVersion.String() <add> verStr := api.DefaultVersion <ide> if tmpStr := os.Getenv("DOCKER_API_VERSION...
20
Python
Python
add tap diagnostic message for retried tests
41519fd1a4041e46c42d94c303fcb13fa2fc9344
<ide><path>tools/test.py <ide> def RunSingle(self, parallel, thread_id): <ide> sys.platform == 'sunos5' and <ide> 'ECONNREFUSED' in output.output.stderr): <ide> output = case.Run() <add> output.diagnostic.append('ECONNREFUSED received, test retried') <ide> case.duratio...
1
Python
Python
add the ability to combine methodviews
516ce59f95a3b5d2fffbcde8abfdf1951e748361
<ide><path>flask/views.py <ide> def view(*args, **kwargs): <ide> return view <ide> <ide> <add>def get_methods(cls): <add> return getattr(cls, 'methods', []) or [] <add> <add> <ide> class MethodViewType(type): <ide> <ide> def __new__(cls, name, bases, d): <ide> rv = type.__new__(cls, name, base...
2
Python
Python
fix typo in example code
d07db28f52b4faf6769d6b7b454c950ec02dc641
<ide><path>examples/run_classifier.py <ide> def convert_examples_to_features(examples, label_list, max_seq_length, <ide> # sequence or the second sequence. The embedding vectors for `type=0` and <ide> # `type=1` were learned during pre-training and are added to the wordpiece <ide> # embedding ve...
1
Javascript
Javascript
improve some assertion messages
5de4da062376ef955677d435d721cbeb8712e9eb
<ide><path>packages/ember-handlebars/lib/helpers/collection.js <ide> Ember.Handlebars.registerHelper('collection', function(path, options) { <ide> // Otherwise, just default to the standard class. <ide> var collectionClass; <ide> collectionClass = path ? getPath(this, path, options) : Ember.CollectionView; <del> ...
2
Text
Text
add missing options allowed in node_options
7f812c5d8ba357d5c4942c18b3d6d3d653c4e194
<ide><path>doc/api/cli.md <ide> In case an option value happens to contain a space (for example a path listed in <ide> ``` <ide> <ide> Node.js options that are allowed are: <del>- `--report-directory` <del>- `--report-filename` <del>- `--report-on-fatalerror` <del>- `--report-on-signal` <del>- `--report-signal` <del>-...
1
Text
Text
add releases note about the `#to_s` deprecation
16e010bae40b2f971b252f0f12b875c78be849cb
<ide><path>guides/source/7_0_release_notes.md <ide> Please refer to the [Changelog][active-support] for detailed changes. <ide> <ide> ### Deprecations <ide> <add>* Deprecate passing a format to `#to_s` in favor of `#to_formatted_s` in `Array`, `Range`, `Date`, `DateTime`, `Time`, <add> `BigDecimal`, `Float` and,...
1
Ruby
Ruby
use hgpath instead of "hg" to fix --head hg builds
913ff483f0223f9423798c379375b7972de45f7c
<ide><path>Library/Homebrew/download_strategy.rb <ide> def stage <ide> end <ide> <ide> def source_modified_time <del> Time.parse Utils.popen_read("hg", "tip", "--template", "{date|isodate}", "-R", cached_location.to_s) <add> Time.parse Utils.popen_read(hgpath, "tip", "--template", "{date|isodate}", "-R", cac...
1
Javascript
Javascript
clarify documentation on error status codes
74db36ee94addab519a7198bd987b44228309d59
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * }). <ide> * error(function(data, status, headers, config) { <ide> * // called asynchronously if an error occurs <del> * // or server returns response with status <del> * // code outside of the <200, 400) ...
1
Go
Go
define a context per request
27c76522dea91ec585f0b5f0ae1fec8c255b7b22
<ide><path>api/server/image.go <ide> func (s *Server) postImagesCreate(ctx context.Context, w http.ResponseWriter, r <ide> OutStream: output, <ide> } <ide> <del> err = s.daemon.Repositories(ctx).Pull(ctx, image, tag, imagePullConfig) <add> err = s.daemon.Repositories().Pull(ctx, image, tag, imagePullConfig) <...
17
Text
Text
fix typo in hmac.paramnames default
802ceea905848fea64a4d0630ebff1e949dc3707
<ide><path>doc/api/webcrypto.md <ide> added: v15.0.0 <ide> added: v15.0.0 <ide> --> <ide> <del>* Type: {string} Must be `'HMAC`. <add>* Type: {string} Must be `'HMAC'`. <ide> <ide> ### Class: `Pbkdf2ImportParams` <ide> <!-- YAML
1
Javascript
Javascript
reduce unmanaged parallelism in domain test
a1652324cd8cc77a1964286fa49900d89755ab0d
<ide><path>test/common.js <ide> exports.hasIPv6 = Object.keys(ifaces).some(function(name) { <ide> }); <ide> }); <ide> <add>/* <add> * Check that when running a test with <add> * `$node --abort-on-uncaught-exception $file child` <add> * the process aborts. <add> */ <add>exports.childShouldThrowAndAbort = function() {...
12
Python
Python
add l1 penalty option to parser
35124b144a4b25f8377fcbbf0ab32fbffc3320eb
<ide><path>bin/parser/train.py <ide> def score_model(scorer, nlp, raw_text, annot_tuples, verbose=False): <ide> <ide> def train(Language, train_data, dev_data, model_dir, tagger_cfg, parser_cfg, entity_cfg, <ide> n_iter=15, seed=0, gold_preproc=False, n_sents=0, corruption_level=0): <del> print("Itn.\tP.Los...
1
Javascript
Javascript
increase robustness with primordials
098eac7f272f5e720c9aff8b232501928a88b82a
<ide><path>lib/internal/util/inspect.js <ide> const { <ide> ArrayIsArray, <ide> ArrayPrototypeFilter, <ide> ArrayPrototypeForEach, <add> ArrayPrototypeIncludes, <add> ArrayPrototypeIndexOf, <add> ArrayPrototypeJoin, <add> ArrayPrototypeMap, <ide> ArrayPrototypePop, <ide> ArrayPrototypePush, <ide> ArrayP...
1
Javascript
Javascript
use the typed array view instead of the buffer
16a1c38c1fd5f3c91af9e3d33e975fba3e2f8316
<ide><path>web/viewer.js <ide> var PDFView = { <ide> <ide> this.pdfDocument.getData().then( <ide> function getDataSuccess(data) { <del> var blob = PDFJS.createBlob(data.buffer, 'application/pdf'); <add> var blob = PDFJS.createBlob(data, 'application/pdf'); <ide> downloadManager.download...
1
Ruby
Ruby
add parse method to share deserialization logic
39882c49dcb099d764788b00c64e629003235d63
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def initialize(parent_jar) <ide> end <ide> <ide> def [](name) <del> @parent_jar[name.to_s] <add> if data = @parent_jar[name.to_s] <add> parse name, data <add> end <ide> end <ide> <ide> def []=(n...
1