content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
fix eval return value
f9fe037088d66b2ad4bab5bd299be1e78065d776
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> } <ide> <ide> function defaultEval(code, context, file, cb) { <del> var err, result, script, wrappedErr; <del> var wrappedCmd = false; <del> var awaitPromise = false; <del> var input = code; <add> let result, script, wrappedErr; <add> ...
1
Go
Go
set pdeathsig for containerd on sigkill
d4559313d5b0284bf2544d83e6431873c06f8349
<ide><path>libcontainerd/remote_linux.go <ide> func (r *remote) runContainerdDaemon() error { <ide> // redirect containerd logs to docker logs <ide> cmd.Stdout = os.Stdout <ide> cmd.Stderr = os.Stderr <del> cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true} <add> cmd.SysProcAttr = &syscall.SysProcAttr{Setsid: true...
1
PHP
PHP
add missing declarations for enabling strict types
b15c96b36eabe66d2c2d7707d130fc96501ef9b0
<ide><path>src/Console/ConsoleInput.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide><path>src/Console/ConsoleInputArgument.php <ide> <?php <add>declare...
26
Ruby
Ruby
add missing require for `float#to_d`
6a1b7985602c5bfab4c8875ca9bf0d598e063a65
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> # frozen_string_literal: true <ide> <add>require "bigdecimal/util" <add> <ide> module ActiveModel <ide> module Validations <ide> class NumericalityValidator < EachValidator # :nodoc:
1
PHP
PHP
add events to migrations
dc4ee4d34ff174c95b748ccfef271effe1b370d2
<ide><path>src/Illuminate/Database/MigrationServiceProvider.php <ide> protected function registerMigrator() <ide> $this->app->singleton('migrator', function ($app) { <ide> $repository = $app['migration.repository']; <ide> <del> return new Migrator($repository, $app['db'], $app['files']);...
2
Javascript
Javascript
throw error when setstate's arguments are bad
5b43a2e6d734d7a84b2335c87282eddd7cf3776a
<ide><path>src/core/ReactCompositeComponent.js <ide> var ReactCompositeComponentMixin = { <ide> * @protected <ide> */ <ide> setState: function(partialState, callback) { <add> invariant( <add> typeof partialState === 'object' || partialState == null, <add> 'setState(...): takes an object of state va...
1
Javascript
Javascript
expose raycaster in drag control
00434467a99a50ef9beeaa15ebb5c743bbb9e197
<ide><path>examples/js/controls/DragControls.js <ide> <ide> } <ide> <add> function getRaycaster() { <add> <add> return _raycaster; <add> <add> } <add> <ide> function onPointerMove( event ) { <ide> <ide> if ( scope.enabled === false ) return; <ide><path>examples/jsm/controls/DragControls.js <ide> cla...
2
Javascript
Javascript
fix typo in resolutionrequest
cf627fbdac4246c528626a54a970f6d5f120b4f2
<ide><path>packager/src/node-haste/DependencyGraph/ResolutionResponse.js <ide> <ide> 'use strict'; <ide> <del>import Module from '../Module'; <del> <ide> import type {Options as TransformOptions} from '../../JSTransformer/worker/worker'; <add>import type Module from '../Module'; <ide> <ide> const NO_OPTIONS = {}; <i...
1
PHP
PHP
desugar the shell helper interface
3a7a1d0a58eafa8a6615e1ad0946d7d031669e33
<ide><path>src/Console/ConsoleIo.php <ide> public function helper($name, array $settings = []) <ide> $name = ucfirst($name); <ide> return $this->_helpers->load($name, $settings); <ide> } <del> <del> /** <del> * Convenience wrapper around helper() <del> * <del> * @param string $method ...
6
Javascript
Javascript
remove getttyfd() from common module
ddf3655f2bd2199fa187c56c0bcee419b5a1e1f0
<ide><path>test/common/index.js <ide> exports.crashOnUnhandledRejection = function() { <ide> (err) => process.nextTick(() => { throw err; })); <ide> }; <ide> <del>exports.getTTYfd = function getTTYfd() { <del> const tty = require('tty'); <del> let tty_fd = 0; <del> if (!tty.isatty(tty_fd)) tty_fd++; <d...
2
Python
Python
add tests for constants
36ea64728586003b6a70ea9ff2c2e021481b8fc5
<ide><path>numpy/core/tests/test_umath.py <ide> def tearDown(self): <ide> np.seterr(**self.olderr) <ide> <ide> <add>class TestConstants(TestCase): <add> def test_pi(self): <add> assert_allclose(ncu.pi, 3.141592653589793, 1e-15) <add> <add> <add> def test_e(self): <add> assert_allclose(ncu....
1
Ruby
Ruby
add missing require for zlib
c16a70a4e61f881016749243fea91716552bcf6b
<ide><path>activerecord/lib/active_record/migration.rb <ide> require "set" <add>require "zlib" <ide> require "active_support/core_ext/module/attribute_accessors" <ide> require "active_support/core_ext/regexp" <ide>
1
Text
Text
fix initializer name [ci skip]
3db6ca9d0447bbd50ffaaf11d462c982b2a1d871
<ide><path>guides/source/configuring.md <ide> Below is a comprehensive list of all the initializers found in Rails in the orde <ide> <ide> * `finisher_hook`: Provides a hook for after the initialization of process of the application is complete, as well as running all the `config.after_initialize` blocks for the appli...
1
Python
Python
increase batchsize from 1 to 6
0f83aff166b3ba5d0fdddc2015a5fe95826a4d2b
<ide><path>research/ptn/train_ptn.py <ide> 'Input images dimension (pixels) - width & height.') <ide> flags.DEFINE_integer('vox_size', 32, 'Voxel prediction dimension.') <ide> flags.DEFINE_integer('step_size', 24, 'Steps to take in rotation to fetch viewpoints.') <del>flags.DEFINE_integer('batch_si...
1
Text
Text
add a changelog entry for and a6de6f5 [ci skip]
49f74fbc4d0d4986c417e7e5dd10292370b78599
<ide><path>railties/CHANGELOG.md <add>* Deprecate different default for `log_level` in production. <add> <add> *Godfrey Chan*, *Matthew Draper* <add> <ide> * Generated `.gitignore` excludes the whole `log/` directory, not only <ide> `*.log` files. <ide>
1
PHP
PHP
remove cache.disable from configure
7cf790174a15d9716bb41eae707edb89e56864a9
<ide><path>App/Config/cache.php <ide> * Turn off all caching application-wide. <ide> * <ide> */ <del> //Configure::write('Cache.disable', true); <add> // Cache::disable(); <ide> <ide> /** <ide> * Enable cache checking. <ide><path>lib/Cake/Cache/Cache.php <ide> */ <ide> class Cache { <ide> <add>/** <add> * Flag f...
19
Text
Text
fix extra char in readme cms-sanity
098d77c3163fe9792e8367f51d2a7f1a323910e3
<ide><path>examples/cms-sanity/README.md <ide> Once you have access to [the environment variables you'll need](#step-4-set-up-e <ide> - [Agility CMS](/examples/cms-agilitycms) <ide> - [Cosmic](/examples/cms-cosmic) <ide> - [ButterCMS](/examples/cms-buttercms) <del>- [Storyblok](/examples/cms-storyblok)f <add>- [Storybl...
1
Javascript
Javascript
add ref comment to test-regress-gh-814_2
8598ab8976c0a6ace6eea0857aa093c0e95c6eec
<ide><path>test/pummel/test-regress-GH-814_2.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <add>// Refs: https://github.com/nodejs/node-v0.x-archive/issues/814 <add> <ide> 'use strict'; <ide> // Flags: --expose_gc <ide>
1
PHP
PHP
resolve customer connectors out of the container
5e125b1290749373358ff8c1efe260f88b2e0a59
<ide><path>tests/Database/DatabaseConnectionFactoryTest.php <ide> public function testIfDriverIsntSetExceptionIsThrown() <ide> public function testExceptionIsThrownOnUnsupportedDriver() <ide> { <ide> $factory = new Illuminate\Database\Connectors\ConnectionFactory($container = m::mock('Illuminate\Container\Container...
1
PHP
PHP
update docblock
300c66f08d030f242ba4c719bddd63e1d7f5a200
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> class Handler implements ExceptionHandlerContract <ide> /** <ide> * A list of the exception types that are not reported. <ide> * <del> * @var string[] <add> * @var array<int, class-string<\Throwable>> <ide> */ <ide> protect...
1
Java
Java
prevent memory leaks with @configuration beans
c8061393fbe3aa20bb51606c60d01a772d3df536
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassEnhancer.java <ide> package org.springframework.context.annotation; <ide> <ide> import java.lang.reflect.Method; <del>import java.util.ArrayList; <del>import java.util.List; <ide> <ide> import org.apache.commons.logging.L...
1
Ruby
Ruby
fix intermittent test failures
a95a554c7e6e787c443f025eeede50f130df5863
<ide><path>activerecord/test/cases/migration_test.rb <ide> def test_internal_metadata_stores_environment <ide> old_path = ActiveRecord::Migrator.migrations_paths <ide> ActiveRecord::Migrator.migrations_paths = migrations_path <ide> <add> ActiveRecord::Migrator.up(migrations_path) <ide> assert_equ...
1
Javascript
Javascript
fix typo in link-to docs
4e6d37642ecc3eec83cdf0426820c6cc7693fe9b
<ide><path>packages/ember-routing/lib/helpers/link_to.js <ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) { <ide> To override this option for your entire application, see <ide> "Overriding Application-wide Defaults". <ide> <del> ### Disabling the `link-to` heper <add> ### Disabling the `li...
1
Javascript
Javascript
upgrade commonschunkplugin to es6
29bf3e72f34ced8a9e858940537acd0f7ed3d11b
<ide><path>lib/optimize/CommonsChunkPlugin.js <ide> class CommonsChunkPlugin { <ide> const minSize = this.minSize; <ide> const ident = this.ident; <ide> compiler.plugin("this-compilation", (compilation) => { <del> compilation.plugin(["optimize-chunks", "optimize-extracted-chunks"], function(chunks) { <add> co...
1
PHP
PHP
remove config cache
056cca40af72c26ab2320398935dfcfd4d62d59d
<ide><path>src/Illuminate/Config/Repository.php <ide> class Repository implements ArrayAccess, ConfigContract { <ide> */ <ide> protected $items = []; <ide> <del> /** <del> * The cache of configuration items. <del> * <del> * @var array <del> */ <del> protected $cache = []; <del> <ide> /** <ide> * Create a new...
1
Python
Python
fix lint issues
e3a45ebe83952c073a3b815e10c3711abba7a6b1
<ide><path>libcloud/storage/drivers/cloudfiles.py <ide> def __init__(self, user_id, key, secure=True, <ide> self.use_internal_url = use_internal_url <ide> <ide> def _get_endpoint_key(self): <del> endpoint_key = INTERNAL_ENDPOINT_KEY if self.use_internal_url else PUBLIC_ENDPOINT_KEY <add> if s...
1
Ruby
Ruby
add some missing dependencies
1a2946a6d9b1dbcf3a4c77654693d73f9b11bde1
<ide><path>actionpack/lib/action_controller/testing/process.rb <add>require 'action_dispatch' <ide> require 'rack/session/abstract/id' <ide> require 'active_support/core_ext/object/conversions' <ide> <ide><path>actionpack/lib/action_view.rb <ide> def self.load_all! <ide> autoload :Base, 'action_view/bas...
3
Python
Python
fix gaussiannoise imports
9a649d2b27c11323183da27e099bb032567624eb
<ide><path>keras/layers/noise.py <ide> from __future__ import absolute_import <ide> from .core import srng, MaskedLayer <ide> import theano <add>import theano.tensor as T <ide> <ide> class GaussianNoise(MaskedLayer): <ide> ''' <ide> def get_output(self, train): <ide> X = self.get_input(train) <ide> ...
1
Javascript
Javascript
fix jslint warnings
33af12abd0e1f1ac54bf4f8776e1dca69a5c2a95
<ide><path>src/canvas.js <ide> var CanvasExtraState = (function canvasExtraState() { <ide> this.wordSpacing = 0; <ide> this.textHScale = 1; <ide> // Color spaces <del> this.fillColorSpace = new DeviceGrayCS; <add> this.fillColorSpace = new DeviceGrayCS(); <ide> this.fillColorSpaceObj = null; <del>...
2
Python
Python
add missing lex_attr_getters (resolves )
4a0a692875ffcdc15ca94512a8c2c9774505d361
<ide><path>spacy/lang/ko/__init__.py <ide> <ide> from .stop_words import STOP_WORDS <ide> from .tag_map import TAG_MAP <add>from .lex_attrs import LEX_ATTRS <ide> from ...language import Language <ide> from ...tokens import Doc <ide> from ...compat import copy_reg <ide> def detailed_tokens(self, text: str) -> Dict[str...
4
Javascript
Javascript
fix worker message, better error handling
7f3d5ae6d3e82b3a14129b219a210e794a927188
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> // a Stream in the main thread. <ide> if (translated.file) <ide> translated.file = translated.file.getBytes(); <add> if (translated.properties.file) { <add> ...
2
Text
Text
integrate breeze2 documentation together
7e185ef4ef15fe8f2c0b97f6eafcd1c74ac72d44
<ide><path>dev/breeze/doc/BREEZE.md <del><!-- <del> Licensed to the Apache Software Foundation (ASF) under one <del> or more contributor license agreements. See the NOTICE file <del> distributed with this work for additional information <del> regarding copyright ownership. The ASF licenses this file <del> to you unde...
2
Ruby
Ruby
fix differing rails_to_json arity
6e3e00219b6910ec39b84844c845e0e237ff15a6
<ide><path>activerecord/lib/active_record/serializers/json_serializer.rb <ide> def to_json(options = {}) <ide> end <ide> end <ide> <del> # For compatibility with ActiveSupport::JSON.encode <del> alias rails_to_json to_json <del> <ide> def from_json(json) <ide> self.attributes = ActiveSupport:...
2
PHP
PHP
add withoutmix and withmix test helpers
f32662a0f6bce153c8c714a155ae2ea3504a4c59
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php <ide> namespace Illuminate\Foundation\Testing\Concerns; <ide> <ide> use Closure; <add>use Illuminate\Foundation\Mix; <ide> use Mockery; <ide> <ide> trait InteractsWithContainer <ide> { <add> /** <add> * The original Laravel Mix ha...
2
Python
Python
fix exception causes in build_ext.py
5bc194706cc8bd6419b5780bedb52c2e8a08d2df
<ide><path>numpy/distutils/command/build_ext.py <ide> def finalize_options(self): <ide> if self.parallel: <ide> try: <ide> self.parallel = int(self.parallel) <del> except ValueError: <del> raise ValueError("--parallel/-j argument must be an integer") <add> ...
1
Ruby
Ruby
preserve trailers when signing off commit
ee9c335b513cb49a9e853d2f5ff316e2933bc8bd
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def setup_git_environment! <ide> <ide> def signoff!(pr, path: ".") <ide> message = Utils.popen_read "git", "-C", path, "log", "-1", "--pretty=%B" <add> subject = message.lines.first.strip <add> <add> # Skip the subject and separate lines that look like t...
1
Ruby
Ruby
fix json encoding
30a3b6b4fc56390eec762c879644c95cd09622b0
<ide><path>activesupport/lib/active_support/json/encoding.rb <add># encoding: binary <ide> require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/module/delegation' <ide> require 'active_support/core_ext/object/instance_variables' <ide> def escape_html_entities_in_json=(value) <ide> ...
1
Java
Java
fix lint error/warnings
d2fc19f4aa94888b7c3d3f4a5fb621bf96a1aff9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java <ide> import java.util.Set; <ide> import java.util.concurrent.CopyOnWriteArraySet; <ide> <add>import android.annotation.SuppressLint; <ide> import android.app.Service; <ide> import android.content.BroadcastReceiver; <ide> import androi...
11
PHP
PHP
fix cs errors
e4105017919f4d5d4219a3115841e04fe0c42285
<ide><path>lib/Cake/Model/Datasource/Database/Mysql.php <ide> public function alterSchema($compare, $table = null) { <ide> if (isset($col['after'])) { <ide> $alter .= ' AFTER ' . $this->name($col['after']); <ide> } <del> $colList[] = $alter; <add> $colList[] = $alter; <ide> ...
6
Javascript
Javascript
make workspace inspection methods location-aware
238ce1d8cd45a577ad07772ecaf965b5241bc84f
<ide><path>src/workspace.js <ide> module.exports = class Workspace extends Model { <ide> // subscription or that is added at some later time. <ide> // <ide> // Returns a {Disposable} on which `.dispose()` can be called to unsubscribe. <del> observePaneItems (callback) { return this.paneContainer.observePane...
1
Python
Python
create testcasemixin and added it to all the tests
9d5acc63057ce20bfc2d4f887622cadaaab33885
<ide><path>test/__init__.py <ide> from cStringIO import StringIO <ide> from urllib2 import urlparse <ide> from cgi import parse_qs <add>from libcloud.base import Node <add>from libcloud.types import NodeState <add>import unittest <ide> <ide> class multipleresponse(object): <ide> """ <ide> def _example_fail(self, m...
7
PHP
PHP
fix error in static analysis build
22bc2936bcc7ba56c61decb5a31131ebc0fd67a6
<ide><path>tests/bootstrap.php <ide> session_id('cli'); <ide> <ide> // Create test database schema <del>$schema = new SchemaGenerator(env('FIXTURE_SCHEMA_METADATA'), 'test'); <add>$schema = new SchemaGenerator(env('FIXTURE_SCHEMA_METADATA', ''), 'test'); <ide> $schema->reload();
1
Ruby
Ruby
give advice when github api requests fail
e5ba52bf5c64ddab07aa76edbb05b46a0c7f7a0d
<ide><path>Library/Homebrew/utils.rb <ide> def open url, headers={}, &block <ide> Kernel.open(url, default_headers.merge(headers), &block) <ide> rescue OpenURI::HTTPError => e <ide> if e.io.meta['x-ratelimit-remaining'].to_i <= 0 <del> raise "GitHub #{Utils::JSON.load(e.io.read)['message']}" <add> r...
1
Java
Java
fix empty body writing in encoderhttpmessagewriter
280da61d5c9594e6541725ea67af9dda1a5943a7
<ide><path>spring-web/src/main/java/org/springframework/http/codec/EncoderHttpMessageWriter.java <ide> * @author Arjen Poutsma <ide> * @author Sebastien Deleuze <ide> * @author Rossen Stoyanchev <add> * @author Brian Clozel <ide> * @since 5.0 <ide> * @param <T> the type of objects in the input stream <ide> */ <id...
2
Text
Text
add better explanation to check `docs` locally.
57b0fab69295057ac20566d89d648b8cecfdc81e
<ide><path>docs/README.md <ide> Once you have setup `sphinx`, you can build the documentation by running the fol <ide> make html <ide> ``` <ide> <add>A folder called ``_build/html`` should have been created. You can now open the file ``_build/html/index.html`` in your browser. <add> <ide> --- <ide> **NOTE** <ide>
1
Javascript
Javascript
use yargs version
f0b809a2ec1aac09097afe1842e9df37c91669ca
<ide><path>src/main-process/main.js <ide> const path = require('path'); <ide> const fs = require('fs-plus'); <ide> const CSON = require('season'); <ide> const yargs = require('yargs'); <del>const electron = require('electron'); <add>const { app } = require('electron'); <add> <add>const version = ` <add>Atom : ${app....
1
Python
Python
correct an issue with docker client
0d634d01139df1df130eef9d682d28fc3dd59100
<ide><path>glances/plugins/glances_docker.py <ide> def reset(self): <ide> @GlancesPlugin._log_result_decorator <ide> def update(self): <ide> """Update Docker stats using the input method.""" <add> global docker_tag <add> <ide> # Reset stats <ide> self.reset() <ide> <ide> ...
1
Javascript
Javascript
fix typo in dev-build-watcher.js
78b17351fb9265dc80329d3e331022f6ebc7d0ff
<ide><path>packages/next/client/dev/dev-build-watcher.js <ide> export default function initializeBuildWatcher(toggleCallback) { <ide> case 'built': <ide> case 'sync': <ide> isBuilding = false <del> // Wait for the fade out transtion to complete <add> // Wait for the fade out transition...
1
PHP
PHP
pass the parameters to the scope
289e8c6589664c9856a4d0997b43c590c815b848
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function __call($method, $parameters) <ide> { <ide> if (method_exists($this->model, $scope = 'scope'.ucfirst($method))) <ide> { <del> $this->model->$scope($this); <add> call_user_func_array(array($this->model, $scope), $parameters); <ide> }...
1
Mixed
Javascript
update garbage collection in server rendering docs
87ffe3bf2bdc5eb77bacef242a3b20fd14709df0
<ide><path>docs/usage/ServerRendering.md <ide> import { Provider } from 'react-redux' <ide> import App from './containers/App' <ide> import counterApp from './reducers' <ide> <del>// Grab the state from a global variable injected into the server-generated HTML <del>const preloadedState = window.__PRELOADED_STATE__ <ad...
2
Python
Python
remove unused temp errors
dfbed07d3b824aaa5e5619c6a67179cfffe244b3
<ide><path>spacy/errors.py <ide> class Errors(object): <ide> <ide> @add_codes <ide> class TempErrors(object): <del> T001 = ("Max length currently 10 for phrase matching") <del> T002 = ("Pattern length ({doc_len}) >= phrase_matcher.max_length " <del> "({max_len}). Length can be set on initialization, u...
1
Mixed
Python
fix a bug causing mis-alignments
456bf47f5184127510e39aaef7135a8ed979bc86
<ide><path>.github/contributors/hiroshi-matsuda-rit.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 o...
2
Text
Text
fix typo in docs
900e1062ba57331f6c44535bace125e10a0e8bf1
<ide><path>docs/01-Chart-Configuration.md <ide> hoverBorderWidth | Number | 1 | Default stroke width when hovered <ide> <ide> #### Rectangle Configuration <ide> <del>Rectangle elements are used to represent the bars in a bar chart. The global rectangle options are stored in `Chart.defaults.global.elements.rectange`. ...
1
Javascript
Javascript
move namespace stuff off of ember
c6f70be7c456eeb7b08aab30b39e48a344f0d8e2
<ide><path>packages/ember-application/lib/system/application.js <ide> @module ember <ide> @submodule ember-application <ide> */ <del>import Ember from 'ember-metal'; // Ember.libraries, Ember.BOOTED, Ember.testing <add>import Ember from 'ember-metal'; // Ember.libraries, Ember.testing <ide> import { ENV } from 'ember-e...
7
Python
Python
add chroot detection
bdeb5a0939b889674f3591ace697e9e99bd423c1
<ide><path>setup.py <ide> <ide> from setuptools import setup <ide> <add>is_chroot = os.stat('/').st_ino != 2 <add> <ide> <ide> def get_data_files(): <ide> data_files = [ <ide> def get_data_files(): <ide> ('share/man/man1', ['man/glances.1']) <ide> ] <ide> <del> if os.name == 'posix' and os.getuid...
1
Java
Java
make unpackingjsbundleloader.prepare a public api
c612c615449b8645976429ad1c0661a4f6e56115
<ide><path>ReactAndroid/src/main/java/com/facebook/react/cxxbridge/UnpackingJSBundleLoader.java <ide> public class UnpackingJSBundleLoader extends JSBundleLoader { <ide> private final boolean mFinishOnBackgroundThread; <ide> private final @Nullable Runnable mOnUnpackedCallback; <ide> <add> /** <add> * True if p...
1
Python
Python
fix squashed migration loading ordering issue
db4527e3c0486c46356e3d625931369e8b3bec19
<ide><path>django/db/migrations/loader.py <ide> def build_graph(self): <ide> # the usage pattern here is to delete things after a while. <ide> del normal[replaced] <ide> for child_key in reverse_dependencies.get(replaced, set()): <add> if child_...
1
Text
Text
add arabic translation for bash-rm
d5a9e8e6f378142d6b2f7939949c028f75f62449
<ide><path>guide/arabic/bash/bash-rm/index.md <add>--- <add>title: Bash rm <add>localeTitle: باش rm <add>--- <add> <add>## ايعاز باش: rm (حذف) <add> <add>**حذف ملف او مجلد** <add> <add>مثال: <add> <add>`rm hello`. <add> <add>بعض الخيارات الاكثر استخداما: <add>- `r` حذف جميع الملفات والمجلدات داخل مجلد. <add>- `f` الحذف...
1
Java
Java
use try-with-resource to close resources
f8ff4e42b91ec7098d6979e72b8c88601f476d5b
<ide><path>spring-core/src/main/java/org/springframework/core/io/support/PropertiesLoaderUtils.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * ...
3
Text
Text
update modelcard of bert-base-german-cased
34b4b5a9ede96fd523b7f806ada7b0a630f66fdd
<ide><path>model_cards/bert-base-german-cased-README.md <ide> --- <ide> language: german <del>thumbnail: https://thumb.tildacdn.com/tild3162-6462-4566-b663-376630376138/-/format/webp/Screenshot_from_2020.png <add>thumbnail: https://static.tildacdn.com/tild6438-3730-4164-b266-613634323466/german_bert.png <ide> --- <ide>...
1
PHP
PHP
add all() to the config contract
7937238d6313a9e87ec57adfff5383d1204d8e7b
<ide><path>src/Illuminate/Contracts/Config/Repository.php <ide> public function prepend($key, $value); <ide> * @return void <ide> */ <ide> public function push($key, $value); <add> <add> /** <add> * Get all of the configuration items for the application. <add> * <add> * @return array <add> ...
1
Javascript
Javascript
fix linter errors
a186428571a568895566a0e93672d68fdd96858c
<ide><path>spec/tree-sitter-language-mode-spec.js <ide> describe('TreeSitterLanguageMode', () => { <ide> }); <ide> <ide> it('reports scopes from shallower layers when they are at the start or end of an injection', async () => { <del> await atom.packages.activatePackage('language-javascript') <add> ...
1
Ruby
Ruby
separate primary key from column type
d25e4076ba2061baf7b96784c9b4df4256ce736e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> class IndexDefinition < Struct.new(:table, :name, :unique, :columns, :lengths, : <ide> # are typically created by methods in TableDefinition, and added to the <ide> # +columns+ attribute of said TableDefinition ob...
1
PHP
PHP
add 2 testcases to 3 cases of aftermarshal
6b278ed7f5e7fae7ec9e9f2d84e93ef41568ca1d
<ide><path>tests/TestCase/ORM/MarshallerTest.php <ide> function ($e, $data) { <ide> $this->assertEquals(1, $entity->tags[1]->_joinData->modified_by); <ide> } <ide> <add> /** <add> * Test Model.afterMarshal event. <add> * <add> * @return void <add> */ <add> public function testAfterMar...
1
Javascript
Javascript
allow 0 as the value of a tag
6b11eeb9ca71f110c3881050c41eaa039347f0eb
<ide><path>packages/ember-views/lib/system/render_buffer.js <ide> Ember._RenderBuffer.prototype = <ide> this.elementAttributes = null; <ide> } <ide> <del> if (value) { <add> if (value || typeof value === 'number') { <ide> buffer.push(' value="' + this._escapeAttribute(value) + '"'); <ide> <ide> ...
2
Javascript
Javascript
add foodstand to rn showcase
d760544652af8aaee5aa06a3976e4e6f5bec9a8c
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/fast-paper/id1001174614', <ide> author: 'Liubomyr Mykhalchenko (@liubko)', <ide> }, <add> { <add> name: 'Foodstand', <add> icon: 'http://a3.mzstatic.com/us/r30/Purple69/v4/33/c1/3b/33c13b88-8...
1
Javascript
Javascript
remove superfluous check on atom_home
db57479bf92474bf9bfb832c70a2c5c947238e8d
<ide><path>static/index.js <ide> console.error('Unhandled promise rejection %o with error: %o', promise, error) <ide> }) <ide> <del> // Ensure ATOM_HOME is always set before anything else is required <del> setupAtomHome() <del> <ide> // Normalize to make sure drive letter case is consiste...
1
Python
Python
add test cases for pretty printing xml responses
c3674f3284fa8877247a0ccb69d2996d57c99b3c
<ide><path>libcloud/test/test_logging_connection.py <ide> from libcloud.http import LibcloudConnection <ide> from libcloud.utils.loggingconnection import LoggingConnection <ide> <del>EXPECTED_DATA = """ <add>EXPECTED_DATA_JSON = """ <ide> HTTP/1.1 200 OK <ide> Content-Type: application/json <ide> <ide> {"foo": "bar!"...
1
Python
Python
fix typos in modeling_auto
a34a9896ac2a4a33ff9cd805c76eed914c8d8965
<ide><path>src/transformers/modeling_auto.py <ide> def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): <ide> - the model is loaded by suppling a local directory as ``pretrained_model_name_or_path`` and a configuration JSON file named `config.json` is found in the directory. <...
1
Ruby
Ruby
add test for sha1
b2e12c4517e36a8efa8d5cceac7b256d9cad7f6b
<ide><path>Library/Homebrew/unittest.rb <ide> def initialize <ide> end <ide> end <ide> <del>class TestBallValidMd5 <TestBall <del> @md5='71aa838a9e4050d1876a295a9e62cbe6' <del>end <del> <del>class TestBallInvalidMd5 <TestBall <del> @md5='61aa838a9e4050d1876a295a9e62cbe6' <del>end <del> <ide> class TestBadVersion <...
1
Ruby
Ruby
fix merge error when equality lhs is non-attribute
b127d86c1823d60a29191ecc3c21c97ee3ac502c
<ide><path>activerecord/lib/active_record/relation/merger.rb <ide> def merged_wheres <ide> merged_wheres = relation.where_values + values[:where] <ide> <ide> unless relation.where_values.empty? <del> # Remove duplicates, last one wins. <add> # Remove duplicate ARel attributes....
2
Python
Python
add rest role to templates named in some view docs
24dec9edaac7849c7831ff0ee4245b6637a9639e
<ide><path>django/contrib/comments/views/moderation.py <ide> def flag(request, comment_id, next=None): <ide> """ <ide> Flags a comment. Confirmation on GET, action on POST. <ide> <del> Templates: `comments/flag.html`, <add> Templates: :template:`comments/flag.html`, <ide> Context: <ide> comme...
4
Javascript
Javascript
test non-buffer/string with zlib
9826a79f54f83cf67c258ffbe34bfca121394f35
<ide><path>test/parallel/test-zlib-not-string-or-buffer.js <add>'use strict'; <add> <add>// Check the error condition testing for passing something other than a string <add>// or buffer. <add> <add>require('../common'); <add>const assert = require('assert'); <add>const zlib = require('zlib'); <add> <add>const expected ...
1
Python
Python
fix casting for the array api concat() and stack()
310929d12967cb0e8e6615466ff9b9f62fc899b6
<ide><path>numpy/array_api/_manipulation_functions.py <ide> def concat(arrays: Union[Tuple[Array, ...], List[Array]], /, *, axis: Optional[i <ide> <ide> See its docstring for more information. <ide> """ <add> # Note: Casting rules here are different from the np.concatenate default <add> # (no for scalars...
1
Javascript
Javascript
add string.prototype.includes polyfill
2f73ad0241453fac379925a8c48426c5125ed2eb
<ide><path>packager/react-packager/src/Resolver/polyfills/String.prototype.es6.js <ide> if (!String.prototype.repeat) { <ide> return result; <ide> }; <ide> } <add> <add>if (!String.prototype.includes) { <add> String.prototype.includes = function(search, start) { <add> 'use strict'; <add> if (typeof start !...
1
Python
Python
fix spelling bug
b855af5976ffd4750b7964502b13552338e97b52
<ide><path>libcloud/storage/providers.py <ide> ('libcloud.storage.drivers.s3', 'S3USGovWestStorageDriver'), <ide> Provider.S3_CN_NORTH: <ide> ('libcloud.storage.drivers.s3', 'S3CNNorthStorageDriver'), <del> Provider.S3_CN_NORTHQWEST: <add> Provider.S3_CN_NORTHWEST: <ide> ('libcloud.storage.drivers...
1
PHP
PHP
apply fixes from styleci
003c4cb6d91b32af79ac1721bf191d24cf27504e
<ide><path>src/Illuminate/Http/RedirectResponse.php <ide> protected function parseErrors($provider) <ide> */ <ide> public function getOriginalContent() <ide> { <del> return; <ide> } <ide> <ide> /**
1
Text
Text
add v3.8.0-beta.1 to changelog
2648bec5bbcbae51b09376cb386aad364bd2e429
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.8.0-beta.1 (January 7, 2019) <add> <add>- [#17143](https://github.com/emberjs/ember.js/pull/17143) / [#17375](https://github.com/emberjs/ember.js/pull/17375) [FEATURE] Implement Element Modifier Manager RFC (see [emberjs/rfcs#0373](https://github.com/em...
1
Python
Python
remove assumptions about rtl name, for mingw
9a4691fd4e66a29441c5e5fd582a2c7e1eedb557
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> from distutils.errors import (DistutilsExecError, CompileError, <ide> UnknownFileError) <ide> from numpy.distutils.misc_util import (msvc_runtime_library, <add> msvc_runtime_version, <add> ...
1
Text
Text
update crypto examples to not use deprecated api
97309030effe5d01f1f99197b1f581f4e4d36091
<ide><path>doc/api/crypto.md <ide> Example: Using `Cipher` objects as streams: <ide> <ide> ```js <ide> const crypto = require('crypto'); <del>const cipher = crypto.createCipher('aes192', 'a password'); <add> <add>const algorithm = 'aes-192-cbc'; <add>const password = 'Password used to generate key'; <add>// Key length...
1
Python
Python
implement basic nvidia stats in plugin
df3e80875b743dabbb48d7614fd30b719d979483
<ide><path>glances/plugins/glances_nvidia.py <ide> <ide> """NVIDIA plugin.""" <ide> <add>from glances.logger import logger <ide> from glances.plugins.glances_plugin import GlancesPlugin <ide> <ide> try: <ide> from pynvml import * <ide> except ImportError: <ide> logger.info("Could not import pynvml. NVIDIA s...
1
Ruby
Ruby
improve error messages
1babfb679d1ff94acc778a0588418ae2ae6f3f74
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> elsif new_tag && new_revision <ide> false <ide> elsif !hash_type <del> odie "#{formula}: no tag/revision specified!" <add> odie "#{formula}: no --tag=/--revision= arguments specified!" <ide> elsif !new_url...
1
Python
Python
fix object leak in lrucache
db1dd44ef45e822122b0d50be6ecc6cb502d8798
<ide><path>celery/tests/utilities/test_datastructures.py <ide> def test_expires(self): <ide> x[i] = i <ide> self.assertListEqual(x.keys(), list(slots[limit:])) <ide> <add> def test_update_expires(self): <add> limit = 100 <add> x = LRUCache(limit=limit) <add> slots = list(xra...
2
Javascript
Javascript
build fb rn targets only in experimental mode
4b0cdf29a89d5199690a6aa64b362670d9bf9669
<ide><path>scripts/rollup/build.js <ide> async function buildEverything() { <ide> [bundle, NODE_PROFILING], <ide> [bundle, RN_OSS_DEV], <ide> [bundle, RN_OSS_PROD], <del> [bundle, RN_OSS_PROFILING], <del> [bundle, RN_FB_DEV], <del> [bundle, RN_FB_PROD], <del> [bundle, RN_FB_PROFILI...
1
PHP
PHP
apply fixes from styleci
6e90f9af9ed752f346c0bdba9cd0ea16ee13d6a8
<ide><path>src/Illuminate/Testing/ParallelRunner.php <ide> protected function createApplication() <ide> <ide> return call_user_func($applicationResolver); <ide> } <del>} <ide>\ No newline at end of file <add>}
1
Text
Text
add note about gs(s)p imports
f0ff77ed88b78b0186231e2c7ef50f7d7903919c
<ide><path>docs/basic-features/data-fetching.md <ide> The `context` parameter is an object containing the following keys: <ide> - `preview` is `true` if the page is in the preview mode and `false` otherwise. See the [Preview Mode documentation](/docs/advanced-features/preview-mode.md). <ide> - `previewData` contains th...
1
PHP
PHP
add date_equals validation message
5052ab1fd7df20e4b643b3208b7b15472b8d6468
<ide><path>resources/lang/en/validation.php <ide> 'boolean' => 'The :attribute field must be true or false.', <ide> 'confirmed' => 'The :attribute confirmation does not match.', <ide> 'date' => 'The :attribute is not a valid date.', <add> 'date_equals' => 'The :attribute must be a date equal to :date.', ...
1
Java
Java
fix refreshcontrol race condition
8fbce3099dca2340eaa614e9a90bb89a4a386bb9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java <ide> */ <ide> public class ReactSwipeRefreshLayout extends SwipeRefreshLayout { <ide> <add> private boolean mRefreshing = false; <add> <ide> public ReactSwipeRefreshLayout(ReactContext reactContext) { <ide> ...
2
Python
Python
use small english model as default
2f0db1dd365c23e3c35ad0e80767cf9106b18a62
<ide><path>spacy/about.py <ide> __docs__ = 'https://spacy.io/docs/usage' <ide> __download_url__ = 'https://github.com/explosion/spacy-models/releases/download' <ide> __compatibility__ = 'https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json?token=ANAt54fi5zcUtnwGhMLw2klWwcAyHkZGks5Y0nw1wA%3...
1
Ruby
Ruby
remove extra collect call
cf0e44c771319bcd8ec0038f8502fe0baa5fa738
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def association_primary_key(klass = nil) <ide> # # => [:tag, :tags] <ide> # <ide> def source_reflection_names <del> (options[:source] ? [options[:source]] : [name.to_s.singularize, name]).collect { |n| n }.uniq <add> (option...
1
Javascript
Javascript
add missing exports.badname
24fe112ec5558e929724e27c3e6e7f2b5337643f
<ide><path>lib/dns.js <ide> exports.NOTIMP = 'ENOTIMP'; <ide> exports.REFUSED = 'EREFUSED'; <ide> exports.BADQUERY = 'EBADQUERY'; <ide> exports.ADNAME = 'EADNAME'; <add>exports.BADNAME = 'EBADNAME'; <ide> exports.BADFAMILY = 'EBADFAMILY'; <ide> exports.BADRESP = 'EBADRESP'; <ide> exports.CONNREFUSED = 'ECONNREFUSED';
1
Python
Python
fix broken lambda scoping in python 2
9c9ee244115bb53758d01e373e5525d4ee66ca83
<ide><path>spacy/language.py <ide> def to_bytes(self, disable=[]): <ide> continue <ide> if not hasattr(proc, 'to_bytes'): <ide> continue <del> serializers[i] = lambda: proc.to_bytes(vocab=False) <add> serializers[i] = lambda proc=proc: proc.to_bytes(voca...
1
Text
Text
fix spelling, `erb` -> `erb` [ci skip]
2449258dc46cf43a2b2d093e89aabda586646c05
<ide><path>guides/source/layouts_and_rendering.md <ide> The lookup order for a `admin/products#index` action will be: <ide> * `app/views/admin/` <ide> * `app/views/application/` <ide> <del>This makes `app/views/application/` a great place for your shared partials, which can then be rendered in your ERb as such: <add>T...
1
Javascript
Javascript
add an ontimeout handler to all requests
262acc6f1e0f71a3a8b786e3c421b2e645799ea0
<ide><path>src/ajax/xhr.js <ide> jQuery.ajaxTransport( function( options ) { <ide> return function() { <ide> if ( callback ) { <ide> callback = errorCallback = xhr.onload = <del> xhr.onerror = xhr.onabort = xhr.onreadystatechange = null; <add> xhr.onerror = xhr.onabort = xhr.ontimeout = ...
2
Ruby
Ruby
fix github packages for linux
a631377fd21f4dfc645b8d0c2d0311c7e4016301
<ide><path>Library/Homebrew/github_packages.rb <ide> def upload_bottle(user, token, skopeo, bottle_hash) <ide> image_tag = "#{org_prefix}/#{package_name}:#{version_rebuild}" <ide> puts <ide> system_command!(skopeo, verbose: true, print_stdout: true, args: [ <del> "copy", "--dest-creds=#{user}:#{token}"...
1
Javascript
Javascript
add tests for behaviour mentioned in
a0453a7b84425a02f33cfaa5eedbea5d8fd0a343
<ide><path>test/integration/basic/pages/nav/querystring.js <add>import React from 'react' <add>import Link from 'next/link' <add> <add>export default class AsyncProps extends React.Component { <add> static async getInitialProps ({ query: { id = 0 } }) { <add> return { id } <add> } <add> <add> render () { <add> ...
2
Python
Python
raise error when using amp on non-cuda device
55bcd0cb5909fdbd1b9e1c1123dcfe972f123db9
<ide><path>src/transformers/training_args.py <ide> def __post_init__(self): <ide> if self.run_name is None: <ide> self.run_name = self.output_dir <ide> <add> if self.device.type != "cuda" and self.fp16: <add> raise ValueError("AMP (`--fp16`) can only be used on CUDA devices.") <ad...
1
Mixed
Ruby
add instance_accessor option to class_attribute
e4569b50d1d20f52633a3fe036014acd5117fa73
<ide><path>actionpack/lib/abstract_controller/layouts.rb <ide> module Layouts <ide> include Rendering <ide> <ide> included do <del> class_attribute :_layout, :_layout_conditions, <del> :instance_reader => false, :instance_writer => false <add> class_attribute :_layout, :_layout_conditions, :in...
4
Python
Python
clarify the effect of rcond in numpy.linalg.lstsq
3cb6927d0457e800364c26c6022d01e7fd8f2660
<ide><path>numpy/linalg/linalg.py <ide> def lstsq(a, b, rcond=-1): <ide> of `b`. <ide> rcond : float, optional <ide> Cut-off ratio for small singular values of `a`. <del> Singular values are set to zero if they are smaller than `rcond` <del> times the largest singular value of `a`. <ad...
1
Javascript
Javascript
add feature test for document.createevent
1206d8d2eb5ee1ae26d41be877d0cfb788528ff0
<ide><path>src/shared/utils/ReactErrorUtils.js <ide> if (__DEV__) { <ide> * real browser event. <ide> */ <ide> if (typeof window !== 'undefined' && <del> typeof window.dispatchEvent === 'function') { <add> typeof window.dispatchEvent === 'function' && <add> typeof document !== 'undefined' && <add...
1