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
add nalathe kerala to showcase
bd99f31358200252e662dbdf6fae26ead8670101
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/in/app/myntra-fashion-shopping-app/id907394059', <ide> author: 'Myntra Designs', <ide> }, <add> { <add> name: 'Nalathe Kerala', <add> icon: 'https://lh3.googleusercontent.com/5N0WYat5WuFbhi5yR2ccdbq...
1
Text
Text
deprecate top-level `this`
300f5ce3461f01daa994a4a4f78546f164d28ca8
<ide><path>doc/api/deprecations.md <ide> Type: Runtime <ide> <ide> The [`crypto.DEFAULT_ENCODING`][] property is deprecated. <ide> <add><a id="DEP00XX"></a> <add>### DEP00XX: Top-level `this` bound to `module.exports` <add> <add>Type: Documentation-only <add> <add>Assigning properties to the top-level `this` as an al...
1
Python
Python
add tests for locally connected layers
ee17ccc3746dbbc8bc20e2bc48ea5dc11ef36f30
<ide><path>tests/keras/layers/test_local.py <ide> import pytest <del>import numpy as np <del>from numpy.testing import assert_allclose <ide> <ide> from keras.utils.test_utils import layer_test <del>from keras import backend as K <ide> from keras.layers import local <ide> <ide> <ide> def test_locallyconnected_2d(): <...
1
Go
Go
run 'gofmt -s -w'
8f3b8f383519452001cc05bf6505e9c301ebe954
<ide><path>engine/http.go <ide> package engine <ide> <ide> import ( <del> "path" <ide> "net/http" <add> "path" <ide> ) <ide> <ide> // ServeHTTP executes a job as specified by the http request `r`, and sends the <ide> func (eng *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) { <ide> jobArgs = []string{} ...
6
PHP
PHP
remove unused use statements
6d13f743f9054293499696ce3f07c568116acdcc
<ide><path>src/Auth/Storage/MemoryStorage.php <ide> */ <ide> namespace Cake\Auth\Storage; <ide> <del>use Cake\Core\InstanceConfigTrait; <del>use Cake\Network\Request; <del> <ide> /** <ide> * Memory based non-persistent storage for authenticated user record. <ide> */ <ide><path>src/Controller/Controller.php <ide> us...
20
Python
Python
improve test coverage for test_common_schema.py
5b683f09c0fffd781111c1a8268ed41b1abfd6e0
<ide><path>tests/api_connexion/schemas/test_common_schema.py <ide> def test_should_deserialize_relative_delta(self): <ide> expected_instance = relativedelta.relativedelta(days=+12) <ide> self.assertEqual(expected_instance, result) <ide> <del> def test_should_serialize_cron_expresssion(self): <add> ...
1
Java
Java
scheduler overload with recursive support
dc7a3f8f575edc28d86daa2039715866059a574d
<ide><path>rxjava-core/src/main/java/rx/Scheduler.java <ide> import org.mockito.Mockito; <ide> <ide> import rx.concurrency.TestScheduler; <add>import rx.subscriptions.CompositeSubscription; <add>import rx.subscriptions.MultipleAssignmentSubscription; <ide> import rx.subscriptions.Subscriptions; <ide> import rx.util.fu...
2
Go
Go
unify both debug logging middlewares
82323294db96e8043244027c262481af6c8f478d
<ide><path>api/server/middleware.go <ide> import ( <ide> // Any function that has the appropriate signature can be register as a middleware. <ide> type middleware func(handler httputils.APIFunc) httputils.APIFunc <ide> <del>// loggingMiddleware logs each request when logging is enabled. <del>func (s *Server) loggingMi...
1
Go
Go
fix race in access closeerr in bytespipe
b32478488ce6d373e44bb8a6c9cb986c773ad48e
<ide><path>pkg/ioutils/bytespipe.go <ide> func (bp *BytesPipe) Read(p []byte) (n int, err error) { <ide> } <ide> bp.wait.Wait() <ide> if bp.bufLen == 0 && bp.closeErr != nil { <add> err := bp.closeErr <ide> bp.mu.Unlock() <del> return 0, bp.closeErr <add> return 0, err <ide> } <ide> } <ide>
1
PHP
PHP
set relation connection on eager loaded morphto
6ead73349126c7eee5fd9702c420915f6a02a889
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php <ide> public function createModelByType($type) <ide> { <ide> $class = Model::getActualClassNameForMorph($type); <ide> <del> return new $class; <add> return tap(new $class, function ($instance) { <add> if (! $instance...
2
Ruby
Ruby
move wkhtmltopdf to the boneyard
79caaf5112f98d6c4b81d968995b501d5ec25520
<ide><path>Library/Homebrew/tap_migrations.rb <ide> 'nlopt' => 'homebrew/science', <ide> 'comparepdf' => 'homebrew/boneyard', <ide> 'colormake' => 'homebrew/headonly', <add> 'wkhtmltopdf' => 'homebrew/boneyard', <ide> }
1
Text
Text
update react package readme
9fdf5899761b3ceaae6ef274365bba35c6428dea
<ide><path>npm-react-core/README.md <ide> without also requiring the JSX transformer. This is especially useful for cases <ide> want to [`browserify`](https://github.com/substack/node-browserify) your module using <ide> `React`. <ide> <add>## The `react` npm package has recently changed! <add> <add>If you're looking f...
1
Python
Python
add sensors plugins
30826905928fe2a712a2e21c209190c3123d154a
<ide><path>glances/core/glances_core.py <ide> print('PsUtil 0.5.1 or higher is needed. Glances cannot start.') <ide> sys.exit(1) <ide> <del>try: <del> # psutil.net_io_counters() only available from psutil >= 1.0.0 <del> psutil.net_io_counters() <del>except Exception: <del> psutil_net_io_counters = Fal...
6
Python
Python
fix old seq2seqtrainer
97b787fb4e59168ca1c9c329884fe24a5292d001
<ide><path>examples/seq2seq/seq2seq_trainer.py <ide> def __init__(self, config=None, data_args=None, *args, **kwargs): <ide> assert isinstance( <ide> self.model, PreTrainedModel <ide> ), f"If no `config` is passed the model to be trained has to be of type `PreTrainedModel`, but i...
1
Python
Python
corret an issue on memory display
2e8276f9403f253b666d63012dadc90a52b6696f
<ide><path>glances/glances.py <ide> def displayMem(self, mem, memswap, proclist, offset_x=0): <ide> # Display extended informations if space is available <ide> y = 0 <ide> if screen_x > self.mem_x + offset_x + memblocksize: <del> # active and inactive (only available f...
1
Javascript
Javascript
add picture element and related attributes
33bd509737d9e86ac93f4f88921b62e52e5f08e9
<ide><path>src/browser/ReactDOM.js <ide> var ReactDOM = mapObject({ <ide> output: false, <ide> p: false, <ide> param: true, <add> picture: false, <ide> pre: false, <ide> progress: false, <ide> q: false, <ide><path>src/browser/ui/dom/HTMLDOMPropertyConfig.js <ide> var HTMLDOMPropertyConfig = { <ide> loo...
2
Mixed
Go
allow swarm init with `--availability=drain`
0f30c644441b3b4150252af1b41db99d4b6e697a
<ide><path>api/types/swarm/swarm.go <ide> type InitRequest struct { <ide> ForceNewCluster bool <ide> Spec Spec <ide> AutoLockManagers bool <add> Availability NodeAvailability <ide> } <ide> <ide> // JoinRequest is the request used to join a swarm. <ide><path>cli/command/swarm/init.go <ide> type init...
5
Javascript
Javascript
consolidate work loops
db8539a47d32772e022689959296798bf59ec0c6
<ide><path>src/renderers/shared/fiber/ReactFiberScheduler.js <ide> module.exports = function<T, P, I, TI, C>(config : HostConfig<T, P, I, TI, C>) { <ide> SynchronousPriority : <ide> LowPriority; <ide> <del> // Whether updates should be batched. Only applies when using sync scheduling. <del> let shouldBatchUp...
4
PHP
PHP
add prohibited validation rule
e464182760dfae06f68347f3f56ec4baec6e0c60
<ide><path>resources/lang/en/validation.php <ide> 'required_with_all' => 'The :attribute field is required when :values are present.', <ide> 'required_without' => 'The :attribute field is required when :values is not present.', <ide> 'required_without_all' => 'The :attribute field is required when none of :...
1
Python
Python
ensure path in save_to_directory
e2299dc389bbf84ee1bd56edc23202ec5f9249e2
<ide><path>spacy/language.py <ide> def save_to_directory(self, path): <ide> 'ner': self.entity.cfg if self.entity else {}, <ide> } <ide> <add> path = util.ensure_path(path) <ide> self.setup_directory(path, **configs) <ide> <ide> strings_loc = path / 'vocab' / 'strings.json'
1
Text
Text
clarify use of script
cd4798415259e932a18b91e883cb76f754067f0a
<ide><path>docs/basic-features/script.md <ide> description: Next.js helps you optimize loading third-party scripts with the bui <ide> <ide> </details> <ide> <del>The Next.js Script component, [`next/script`](/docs/api-reference/next/script.md), is an extension of the HTML `<script>` element. It enables developers to ...
1
Javascript
Javascript
add prerelease flag and find right zip
b1ac2e024914caca1557ccec255db7577a860308
<ide><path>build/gh-release.js <ide> var ghrelease = require('gh-release'); <ide> var currentChangelog = require('./current-changelog.js'); <ide> var safeParse = require('safe-json-parse/tuple'); <ide> var pkg = require('../package.json') <add>var minimist = require('minimist'); <add> <add>var args = minimist(process.a...
1
Javascript
Javascript
fix minor grammatical error in documentation
4447bff97678ebfaa3bf32528f69ab27530736f3
<ide><path>Libraries/CustomComponents/Navigator/Navigator.js <ide> var GESTURE_ACTIONS = [ <ide> * - `replacePrevious(route)` - Replace the previous scene <ide> * - `immediatelyResetRouteStack(routeStack)` - Reset every scene with an <ide> * array of routes <del> * - `popToRoute(route)` - Pop to a particular ...
1
Text
Text
add xcode 6.4
ec4bfee3e72f6fe438455ace35ca2126a7134ba1
<ide><path>share/doc/homebrew/Xcode.md <ide> Tools available for your platform: <ide> 10.7 | 4.6.3 | April 2013 <ide> 10.8 | 5.1.1 | April 2014 <ide> 10.9 | 6.2 | 6.2 <del> 10.10 | 6.3.2 | 6.3.2 <add> 10.10 | 6.4 | 6.4 <ide> <ide> <ide> ## Compiler Version Database <ide> Tools available for your platform: <...
1
Text
Text
add man page
d53d0cf88dbc59b48bc54466b4e736e4062380e7
<ide><path>guide/english/bash/bash-cat/index.md <del>--- <del>title: Bash cat <del>--- <del> <del>## Bash command: cat <del> <del>The bash command `cat` is one of the most frequently used commands in Unix operating systems. It is used to read a file sequentially and print it to the standard output. <del>The command's n...
1
Text
Text
add license information
44878e623faaee327024d1f3b9b0301e6fc0e234
<ide><path>README.md <ide> Who Are You? <ide> ------------ <ide> I'm [Max Howell][mxcl] and I'm a splendid chap. <ide> <add>License <add>------- <add>Code is under the [BSD 2 Clause (NetBSD) license][license]. <ide> <ide> [home]:http://brew.sh <ide> [wiki]:http://wiki.github.com/mxcl/homebrew <ide> [mxcl]:http://twit...
1
Javascript
Javascript
create a tick typedef
428411319a24d2d8e4823a80a07fd3038fcc6dfa
<ide><path>src/core/core.scale.js <ide> import Ticks from './core.ticks'; <ide> <ide> /** <ide> * @typedef { import("./core.controller").default } Chart <add> * @typedef {{value:any, label?:string, major?:boolean}} Tick <ide> */ <ide> <ide> defaults.set('scale', { <ide> defaults.set('scale', { <ide> } <ide> }); <i...
1
PHP
PHP
rewrite request construction
646120a57219f8185f1ec946673ebfccee4e51d1
<ide><path>lib/Cake/Network/Request.php <ide> class Request implements \ArrayAccess { <ide> */ <ide> protected $_input = ''; <ide> <add>/** <add> * Wrapper method to create a new request from PHP superglobals. <add> * <add> * @return Cake\Network\Request <add> */ <add> public static function createFromGlobals() { <a...
2
PHP
PHP
move test classes to their own files
5df3cff39a6a3c1515f78ee6d8bb10f0368a3c1a
<ide><path>tests/Database/DatabaseEloquentIntegrationTest.php <ide> use Illuminate\Database\Eloquent\SoftDeletes; <ide> use Illuminate\Database\Capsule\Manager as DB; <ide> use Illuminate\Pagination\LengthAwarePaginator; <del>use Illuminate\Tests\Integration\Database\Post; <del>use Illuminate\Tests\Integration\Database...
5
Java
Java
improve handling of send failures
b2f31a3c741ddfaad94ffe5da7de762f8e3cc6cb
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> <ide> import org.springframework.messaging.Message; <ide> import org.springframework.messaging.MessageChannel; <add>import org.springframework.messaging.MessageDeliveryException; <ide> import or...
2
Ruby
Ruby
use consistent explicit module inclusion
08c4d8eac302b8f9a6375b937586b79d208e756d
<ide><path>actionpack/test/abstract/abstract_controller_test.rb <ide> class TestBasic < ActiveSupport::TestCase <ide> # Test Render mixin <ide> # ==== <ide> class RenderingController < AbstractController::Base <del> include ::AbstractController::Rendering <add> include AbstractController::Renderin...
3
Text
Text
remove versions template
e514de3eb2bb961822a397e89284fb1c183f2b6c
<ide><path>ISSUE_TEMPLATE.md <ide> <ide> ### Versions <ide> <del>You can get this information from executing `atom --version` and `apm --version` at the command line: <del> <del>* **Atom:** x.y.z <del>* **Electron:** x.y.z <del>* **OS:** OS x.y.z <del>* **APM** <del> * apm x.y.z <del> * npm x.y....
1
Text
Text
add doc for system events and events[fix ]
ea820cae7b70322349fcc96315fda50deec5e0d1
<ide><path>docs/reference/commandline/events.md <ide> keywords: "events, container, report" <ide> --- <ide> <ide> <!-- This file is maintained within the docker/docker Github <del> repository at https://github.com/docker/docker/. Make all <add> repository at https://github.com/moby/moby/. Make all <ide> p...
2
Ruby
Ruby
fix typo in dependenciestesthelpers module name
8778e1c4af499ae42da10c1cc07a4eb2736199ac
<ide><path>activesupport/test/caching_test.rb <ide> require 'logger' <ide> require 'abstract_unit' <ide> require 'active_support/cache' <del>require 'dependecies_test_helpers' <add>require 'dependencies_test_helpers' <ide> <ide> class CacheKeyTest < ActiveSupport::TestCase <ide> def test_entry_legacy_optional_ivars ...
4
Javascript
Javascript
use assigned variable instead of arguments
1c7acd2c843d9f19a0b8ecee48ec48fa617eac5e
<ide><path>lib/events.js <ide> EventEmitter.prototype.setMaxListeners = function(n) { <ide> // non-global reference, for speed. <ide> var PROCESS; <ide> <del>EventEmitter.prototype.emit = function() { <del> var type = arguments[0]; <add>EventEmitter.prototype.emit = function(type) { <ide> // If there is no 'error' ...
1
Go
Go
add "private" flag
fc1169a220196b78b73d5c1874d3c7bdc38d9fe3
<ide><path>pkg/mount/flags_linux.go <ide> func parseOptions(options string) (int, string) { <ide> "nodiratime": {false, syscall.MS_NODIRATIME}, <ide> "bind": {false, syscall.MS_BIND}, <ide> "rbind": {false, syscall.MS_BIND | syscall.MS_REC}, <add> "private": {false, syscall.MS_PRIVATE},...
1
Python
Python
update pytest conf for sudachipy with japanese
fe167fcf7d23ee6c73877a11351984221a9aacd5
<ide><path>spacy/tests/conftest.py <ide> def it_tokenizer(): <ide> <ide> @pytest.fixture(scope="session") <ide> def ja_tokenizer(): <del> pytest.importorskip("fugashi") <add> pytest.importorskip("sudachipy") <ide> return get_lang_class("ja").Defaults.create_tokenizer() <ide> <ide>
1
Go
Go
fix parsing of apparmor pcre syntax
c0f7fdc025da69283eb00d80bf47f4d47eeb0a65
<ide><path>daemon/execdriver/native/apparmor.go <ide> profile {{.Name}} flags=(attach_disconnected,mediate_deleted) { <ide> file, <ide> umount, <ide> <del> deny @{PROC}/{*,**^[0-9*],sys/kernel/shm*} wkx, <add> deny @{PROC}/{*,**^[0-9]*,sys/kernel/shm*} wkx, <ide> deny @{PROC}/sysrq-trigger rwklx, <ide> deny ...
1
Javascript
Javascript
fix jsfiddle integration
669b53ede21d74a7efd05592e7697e473b37e2a0
<ide><path>docs/src/templates/doc_widgets.js <ide> fiddleSrc = fiddleSrc.replace(new RegExp('^\\s{' + stripIndent + '}', 'gm'), ''); <ide> <ide> return '<form class="jsfiddle" method="post" action="' + fiddleUrl + '" target="_blank">' + <del> '<textarea ng:model="css">' + <add> ...
1
PHP
PHP
fix absolute url generation
9f9c103c6f8d54a37d3e5912f5cd1fcff739a850
<ide><path>lib/Cake/bootstrap.php <ide> App::uses('Object', 'Core'); <ide> App::uses('Multibyte', 'I18n'); <ide> <add>App::$bootstrapping = true; <add> <add>Configure::bootstrap(isset($boot) ? $boot : true); <add> <ide> /** <ide> * Full URL prefix <ide> */ <ide> unset($httpHost, $s); <ide> } <ide> <del>App::$boots...
1
Text
Text
add absolute import example
046deab685254b906b13b2c247f6118e864ef44c
<ide><path>docs/advanced-features/module-path-aliases.md <ide> description: Configure module path aliases that allow you to remap certain impor <ide> <ide> # Absolute Imports and Module path aliases <ide> <add><details> <add> <summary><b>Examples</b></summary> <add> <ul> <add> <li><a href="https://github.com/ver...
1
Java
Java
introduce subject as analogue to rx isubject
5b9bca978150a0ec352da38dbd49df7b5d9997f6
<ide><path>rxjava-core/src/main/java/rx/subjects/PublishSubject.java <ide> import rx.util.functions.Action1; <ide> import rx.util.functions.Func1; <ide> <del>public class PublishSubject<T> extends Observable<T> implements Observer<T> { <add>public class PublishSubject<T> extends Subject<T, T> { <ide> public static...
2
Javascript
Javascript
remove hmrclient out of the bundle
179ac1e35930ce1a8e1e21323429932faf906b03
<ide><path>Libraries/JavaScriptAppEngine/Initialization/SourceMapsUtils.js <ide> <ide> 'use strict'; <ide> <del>var HMRClient = require('../../Utilities/HMRClient'); <ide> var Promise = require('Promise'); <ide> var NativeModules = require('NativeModules'); <ide> var SourceMapConsumer = require('SourceMap').SourceMap...
1
Go
Go
handle escapes without swallowing all of them
be49867cab663b5bdcf7804f3d2504f056db9db1
<ide><path>builder/support.go <ide> func (b *Builder) replaceEnv(str string) string { <ide> continue <ide> } <ide> <add> prefix := match[:idx] <ide> stripped := match[idx+2:] <del> str = strings.Replace(str, match, "$"+stripped, -1) <add> str = strings.Replace(str, match, prefix+"$"+stripped, -1) <ide>...
2
Text
Text
fix changelog spacing [ci skip]
4f21ac7e9c3a2a21f7fc9ac0d8a0be0c0c7525a2
<ide><path>actioncable/CHANGELOG.md <del>* Allow channel identifiers with no backslahes/escaping to be accepted <del> by the subscription storer. <add>* Allow channel identifiers with no backslahes/escaping to be accepted <add> by the subscription storer. <ide> <del> *Jon Moss* <add> *Jon Moss* <ide> <ide>...
4
Go
Go
allow mirroring only for the official index
c19962ade10619e5edd8057249566c494d4719bb
<ide><path>graph/pull.go <ide> func (s *TagStore) Pull(image string, tag string, imagePullConfig *ImagePullConf <ide> logName = utils.ImageReference(logName, tag) <ide> } <ide> <del> v2mirrorEndpoint, v2mirrorRepoInfo, err := configureV2Mirror(repoInfo.Index.Mirrors, repoInfo, s.registryService) <del> if err != nil...
1
Go
Go
remove rpc error when shut down daemon
a02ae66d361464cc24bec4fb6aa5778c9d5b8cda
<ide><path>libcontainerd/remote_linux.go <ide> import ( <ide> "golang.org/x/net/context" <ide> "google.golang.org/grpc" <ide> "google.golang.org/grpc/grpclog" <add> "google.golang.org/grpc/transport" <ide> ) <ide> <ide> const ( <ide> const ( <ide> <ide> type remote struct { <ide> sync.RWMutex <del> apiClient co...
1
Javascript
Javascript
remove unused parameters
ba42cedce5c07f53a6dccf1e8b4828e5b61c1298
<ide><path>docs/config/services/getVersion.js <ide> var path = require('canonical-path'); <ide> * Find the current version of the node module <ide> */ <ide> module.exports = function getVersion(readFilesProcessor) { <del> var basePath = readFilesProcessor.basePath; <add> var sourceFolder = path.resolve(readFilesPro...
1
Go
Go
fix ps output
044bdc1b5fc748e98e7baaa7e95ce216cc667323
<ide><path>commands.go <ide> func (cli *DockerCli) CmdPs(args ...string) error { <ide> for _, out := range outs { <ide> if !*quiet { <ide> if *noTrunc { <del> fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s ago\t%s\n", out.Id, out.Image, out.Command, utils.HumanDuration(time.Now().Sub(time.Unix(out.Created, 0))), out.Statu...
1
Ruby
Ruby
add pkgconfig dirs for all deps under superenv
149e65cc8a8858ce1d9c5235a92ed5bfc94dbbbe
<ide><path>Library/Homebrew/superenv.rb <ide> def determine_path <ide> end <ide> <ide> def determine_pkg_config_path <del> paths = deps.map{|dep| "#{HOMEBREW_PREFIX}/opt/#{dep}/lib/pkgconfig" } <del> paths += deps.map{|dep| "#{HOMEBREW_PREFIX}/opt/#{dep}/share/pkgconfig" } <add> paths = all_deps.map{|de...
1
Go
Go
remove more of registry v1 code
7a50fe8a52f4e6fc6a1e6624ca81defc1e69d748
<ide><path>api/server/router/distribution/backend.go <ide> import ( <ide> // Backend is all the methods that need to be implemented <ide> // to provide image specific functionality. <ide> type Backend interface { <del> GetRepository(context.Context, reference.Named, *types.AuthConfig) (distribution.Repository, bool, er...
16
Java
Java
add apply method to webclient.builder
d6c102d1b89b374e637639453d57c97b0f3f42b3
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java <ide> public WebClient.Builder clone() { <ide> return new DefaultWebClientBuilder(this); <ide> } <ide> <add> @Override <add> public WebClient.Builder apply(Consumer<WebClient.Builder> builderConsume...
3
Python
Python
fix typo on rebuild warning message
108ecbe815b3651e1021cc944d29b050b72233ea
<ide><path>dev/breeze/src/airflow_breeze/commands/ci_image_commands.py <ide> def should_we_run_the_build(build_ci_params: BuildCiParams) -> bool: <ide> return True <ide> else: <ide> get_console().print( <del> "\n[warning]This might take a lot of time (more ...
1
Python
Python
fix unboundlocalerror in handle_url_build_error
5da31f8af36012a4f76c3bd0d536ae107e0519b5
<ide><path>flask/app.py <ide> def handle_url_build_error(self, error, endpoint, values): <ide> rv = handler(error, endpoint, values) <ide> if rv is not None: <ide> return rv <del> except BuildError as error: <del> pass <add> except...
2
Javascript
Javascript
improve transform performance
e5dc934ef6f66edade76720dc7592e9e348db49f
<ide><path>benchmark/streams/transform-creation.js <add>'use strict'; <add>var common = require('../common.js'); <add>var Transform = require('stream').Transform; <add>var inherits = require('util').inherits; <add> <add>var bench = common.createBenchmark(main, { <add> n: [1e6] <add>}); <add> <add>function MyTransform(...
2
Javascript
Javascript
name anonymous functions
ef030da818c962af92f9a02d289e7eb7cc8cecd5
<ide><path>lib/assert.js <ide> function _throws(shouldThrow, block, expected, message) { <ide> // 11. Expected to throw an error: <ide> // assert.throws(block, Error_opt, message_opt); <ide> <del>assert.throws = function(block, /*optional*/error, /*optional*/message) { <add>assert.throws = function throws(block, /*opt...
1
Text
Text
adjust listfield & dictfield signature docs
43c7af0bb51ba2110ec075a0ebe17f52dbb08e9c
<ide><path>docs/api-guide/fields.md <ide> Requires either the `Pillow` package or `PIL` package. The `Pillow` package is <ide> <ide> A field class that validates a list of objects. <ide> <del>**Signature**: `ListField(child, min_length=None, max_length=None)` <add>**Signature**: `ListField(child=<A_FIELD_INSTANCE>, ...
1
PHP
PHP
add method to commandname
34b2ed68e2dfe038050d74a28947e1180bb8cb2b
<ide><path>src/Illuminate/Queue/Queue.php <ide> protected function createPayload($job, $data = '', $queue = null) <ide> } elseif (is_object($job)) { <ide> return json_encode([ <ide> 'job' => 'Illuminate\Queue\CallQueuedHandler@call', <del> 'data' => ['commandName' => g...
1
Ruby
Ruby
add test cases for negative position in array#from
3920d64479c8763e1f0a64db872e5f072268cda9
<ide><path>activesupport/lib/active_support/core_ext/array/access.rb <ide> class Array <ide> # %w( a b c d ).from(2) # => ["c", "d"] <ide> # %w( a b c d ).from(10) # => [] <ide> # %w().from(0) # => [] <add> # %w( a b c d ).from(-2) # => ["c", "d"] <add> # %w( a b c ).from(-10) # => [] <ide...
2
Python
Python
add remaining tests for generics
31e9f7dfbba7ad967d7f912e2014d9ad291fca3e
<ide><path>tests/test_generics.py <ide> def get(self, request): <ide> request = factory.get('/') <ide> with pytest.raises(RuntimeError): <ide> view(request).render() <add> <add> <add>class ApiViewsTests(TestCase): <add> <add> def test_create_api_view_post(self): <add> class MockCre...
1
Javascript
Javascript
mark 3 regressions as skipped
0346b9bfe8b5a94480f0027eddf7887f8896b8fb
<ide><path>packages/ember-views/tests/views/collection_test.js <ide> QUnit.test("should render a view for each item in its content array", function() <ide> equal(view.$('div').length, 4); <ide> }); <ide> <del>QUnit.test("should render the emptyView if content array is empty (view class)", function() { <add>QUnit.ski...
1
PHP
PHP
remove manual class loading
0e9a609ef2e5de164862f09415cf497ccbf533db
<ide><path>lib/Cake/Core/App.php <ide> class App { <ide> */ <ide> const RESET = true; <ide> <del>/** <del> * Paths to search for files. <del> * <del> * @var array <del> */ <del> public static $search = array(); <del> <del>/** <del> * Whether or not to return the file that is loaded. <del> * <del> * @var boolean <del...
1
PHP
PHP
allow code highligthing in generated api
eea4bcbb7b65c54b4b12c8270bae9ab4160c520f
<ide><path>src/Auth/DigestAuthenticate.php <ide> * DigestAuthenticate requires a special password hash that conforms to RFC2617. <ide> * You can generate this password using `DigestAuthenticate::password()` <ide> * <del> * `$digestPass = DigestAuthenticate::password($username, $password, env('SERVER_NAME'));` <add> ...
36
Python
Python
fix libcloud connection class
1c5deaf5dc26685a5a5f46f18fef732269029507
<ide><path>libcloud/utils/loggingconnection.py <ide> from pipes import quote as pquote <ide> from xml.dom.minidom import parseString <ide> <del>import sys <ide> import os <ide> <ide> from libcloud.common.base import (LibcloudConnection, <del> HTTPResponse, <ide> ...
1
Text
Text
add rreverser to collaborators
efebd0b79d930c50217caaddf1d245d510937bb0
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [robertkowalski](https://github.com/robertkowalski) - **Robert Kowalski** &lt;rok@kowalski.gd&gt; <ide> * [romankl](https://github.com/romankl) - **Roman Klauke** &lt;romaaan.git@gmail.com&gt; <ide> * [ronkorving](https://gi...
1
Java
Java
fix checkstyle violations
784d72cc56a95a11ed8058dec5a703e4dc8fbbe2
<ide><path>spring-core/src/jmh/java/org/springframework/core/codec/StringDecoderBenchmark.java <ide> public void setup() { <ide> "data:abcdefg-$1-hijklmnop-$1-qrstuvw-$1-xyz-$1\n\n"; <ide> <ide> int eventLength = String.format(eventTemplate, String.format("%05d", 1)).length(); <del> int eventCount = totalSiz...
1
Java
Java
relocate runtime hints to aot package
6936f7e0cb1eae8357f3c700d2c2d33834475ec2
<add><path>spring-core/src/main/java/org/springframework/aot/hint/AbstractTypeReference.java <del><path>spring-core/src/main/java/org/springframework/core/hint/AbstractTypeReference.java <ide> * limitations under the License. <ide> */ <ide> <del>package org.springframework.core.hint; <add>package org.springframework...
29
PHP
PHP
use jsonb type for pgsql wherejsonlength
5e0b273ae3012cbb1e959efe4627f03811b705cd
<ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php <ide> protected function compileJsonLength($column, $operator, $value) <ide> { <ide> $column = str_replace('->>', '->', $this->wrap($column)); <ide> <del> return 'json_array_length(('.$column.')::json) '.$operator.' '.$value; <add...
2
Ruby
Ruby
pass cache key to dependency.expand
22053ca2c3cb1b1a214087f1309def98757387bf
<ide><path>Library/Homebrew/formula_installer.rb <ide> def check_conflicts <ide> # being installed. <ide> def compute_dependencies <ide> @compute_dependencies ||= begin <del> req_map, req_deps = expand_requirements <del> check_requirements(req_map) <del> expand_dependencies(req_deps + formula.dep...
1
Javascript
Javascript
prefix mock scheduler apis with _unstable
4d307de458dfdf25e704cb2ca20b0578bba8998c
<ide><path>packages/create-subscription/src/__tests__/createSubscription-test.internal.js <ide> describe('createSubscription', () => { <ide> ReactNoop.render( <ide> <Subscription source={observable}> <ide> {(value = 'default') => { <del> Scheduler.yieldValue(value); <add> Scheduler.u...
60
Javascript
Javascript
add ability to reset a form to pristine state
733a97adf87bf8f7ec6be22b37c4676cf7b5fc2b
<ide><path>src/ng/directive/form.js <ide> var nullFormCtrl = { <ide> $addControl: noop, <ide> $removeControl: noop, <ide> $setValidity: noop, <del> $setDirty: noop <add> $setDirty: noop, <add> $setPristine: noop <ide> }; <ide> <ide> /** <ide> function FormController(element, attrs) { <ide> var form = this, ...
4
Ruby
Ruby
convert duration to an attr_reader
cfca55949f51bf3970bae7c506807db97dbcf05f
<ide><path>activesupport/lib/active_support/notifications/instrumenter.rb <ide> def unique_id <ide> end <ide> <ide> class Event <del> attr_reader :name, :time, :end, :transaction_id, :payload <add> attr_reader :name, :time, :end, :transaction_id, :payload, :duration <ide> <ide> def initialize(...
1
Javascript
Javascript
fix parentel tech option
eda21b7b2212cf1c9b4d5db10e1ad86a334bb046
<ide><path>src/js/player.js <ide> vjs.Player.prototype.loadTech = function(techName, source){ <ide> }; <ide> <ide> // Grab tech-specific options from player options and add source and parent element to use. <del> var techOptions = vjs.obj.merge({ source: source, parentEl: this.el_ }, this.options_[techName.toLowe...
1
Python
Python
remove unused key in the process list
1292150478c53a5bd29bef5dd4f17b6184fadbb5
<ide><path>glances/processes.py <ide> class GlancesProcesses(object): <ide> def __init__(self, cache_timeout=60): <ide> """Init the class to collect stats about processes.""" <ide> # Add internals caches because psutil do not cache all the stats <del> # See: https://code.google.com/p/psutil/i...
1
PHP
PHP
improve variable naming
dd8ffbd269ce5f0d0f593ed7f0dac23d8671f25e
<ide><path>src/ORM/Association/BelongsToMany.php <ide> protected function _diffLinks( <ide> $assocForeignKey = (array)$belongsTo->getForeignKey(); <ide> <ide> $keys = array_merge($foreignKey, $assocForeignKey); <del> $deletes = $indexed = $present = []; <add> $deletes = $unmatchedEntityKe...
1
Ruby
Ruby
add test for `variable_size_secure_compare`
02bb4c55fdf04ce64bdbf155c66991d80837fe73
<ide><path>activesupport/test/security_utils_test.rb <ide> class SecurityUtilsTest < ActiveSupport::TestCase <ide> def test_secure_compare_should_perform_string_comparison <ide> assert ActiveSupport::SecurityUtils.secure_compare("a", "a") <del> assert !ActiveSupport::SecurityUtils.secure_compare("a", "b") <add...
1
Ruby
Ruby
fix conflicting symlink advice
f6b5c83482b9ebbd390831f41767f9dd9b33162f
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def make_relative_symlink src <ide> # NOTE only system ln -s will create RELATIVE symlinks <ide> quiet_system 'ln', '-s', src.relative_path_from(self.dirname), self.basename <ide> if not $?.success? <del> if self.exist? <add> if symlin...
1
Ruby
Ruby
add macos 12
d7d9a256a13727fee0f802a2f3e22062a6d68774
<ide><path>Library/Homebrew/os/mac/version.rb <ide> class Version < ::Version <ide> extend T::Sig <ide> <ide> SYMBOLS = { <add> monterey: "12" <ide> big_sur: "11", <ide> catalina: "10.15", <ide> mojave: "10.14",
1
Javascript
Javascript
use strict equality in extension check
8d1c00395bc97b91deeddcda97fde80e4d00e614
<ide><path>src/renderers/webgl/WebGLLights.js <ide> function WebGLLights( extensions, capabilities ) { <ide> <ide> // WebGL 1 <ide> <del> if ( extensions.has( 'OES_texture_float_linear' ) == true ) { <add> if ( extensions.has( 'OES_texture_float_linear' ) === true ) { <ide> <ide> state.rectAreaLTC1 = ...
1
PHP
PHP
add logo support to notification email
bc656ad451d99a83432d02b165beb70da51e68c5
<ide><path>src/Illuminate/Notifications/RoutesNotifications.php <ide> public function notify($instance) <ide> ); <ide> <ide> foreach ($notifications as $notification) { <del> $manager->send($notification->application(config('app.name'))); <add> $manager->send($notification->applic...
4
Javascript
Javascript
remove unnecessary whitespace from code frames
03766d6a08b0244ebb142e7ce33f4fd7091af0ae
<ide><path>Libraries/LogBox/UI/AnsiHighlight.js <ide> export default function Ansi({ <ide> text: string, <ide> style: TextStyleProp, <ide> }): React.Node { <add> let commonWhitespaceLength = Infinity; <add> const parsedLines = text.split(/\n/).map(line => <add> ansiToJson(line, { <add> json: true, <add> ...
1
Javascript
Javascript
fix gizmo overall scale hover
57801e6c4693a675c4d96bea86895fe1ba7d3c09
<ide><path>examples/js/controls/TransformControls.js <ide> THREE.TransformControlsGizmo = function () { <ide> [ new THREE.Line( lineGeometry, matLineBlue ), null, [ 0, - Math.PI / 2, 0 ]] <ide> ], <ide> XYZ: [ <del> [ new THREE.Mesh( new THREE.OctahedronBufferGeometry( 0.1, 0 ), matWhiteTransperent ), [ 0, 0, ...
2
Mixed
Python
add nasnet models
dc95ceca57cbfada596a10a72f0cb30e1f2ed53b
<ide><path>docs/templates/applications.md <ide> Weights are downloaded automatically when instantiating a model. They are stored <ide> - [InceptionV3](#inceptionv3) <ide> - [InceptionResNetV2](#inceptionresnetv2) <ide> - [MobileNet](#mobilenet) <add>- [NASNet](#nasnet) <ide> <ide> All of these architectures (except Xc...
4
PHP
PHP
fix lint error
765f072892b0f354215efcf78a383a5552ae5209
<ide><path>src/Database/Schema/MysqlSchema.php <ide> */ <ide> namespace Cake\Database\Schema; <ide> <del>use Cake\Database\Schema\TableSchema; <ide> use Cake\Database\Exception; <add>use Cake\Database\Schema\TableSchema; <ide> <ide> /** <ide> * Schema generation/reflection features for MySQL
1
Text
Text
add missing item in 3.9.1 release notes
c049777dc7d7f6ec36bfd3bc5b5f853c20246997
<ide><path>docs/community/release-notes.md <ide> You can determine your currently installed version using `pip show`: <ide> **Date**: [16th Janurary 2019][3.9.1-milestone] <ide> <ide> * Resolve XSS issue in browsable API. [#6330][gh6330] <add>* Upgrade Bootstrap to 3.4.0 to resolve XSS issue. <ide> * Resolve issues wi...
1
Go
Go
add unit tests
2a303dab8594420b6b7908183a73c5d744b1e66b
<ide><path>api.go <ide> func postContainersStop(srv *Server, w http.ResponseWriter, r *http.Request, var <ide> if err != nil || t < 0 { <ide> t = 10 <ide> } <add> <ide> if vars == nil { <ide> return nil, fmt.Errorf("Missing parameter") <ide> } <ide><path>api_test.go <ide> import ( <ide> "github.com/dotcloud/do...
3
Ruby
Ruby
add `stderr` output to exception
aaddce4743dd67f569703daba27d72b5bbfbfadf
<ide><path>Library/Homebrew/style.rb <ide> def check_style_impl(files, output_type, options = {}) <ide> system(cache_env, "rubocop", "_#{HOMEBREW_RUBOCOP_VERSION}_", *args) <ide> !$CHILD_STATUS.success? <ide> when :json <del> json, _, status = Open3.capture3(cache_env, "rubocop", "_#{HOMEBR...
1
Javascript
Javascript
use type from manifest
56a4af04f5e49c921939d8beca5100a18cfbabc4
<ide><path>lib/DllReferencePlugin.js <ide> class DllReferencePlugin { <ide> manifest = params["dll reference " + manifest]; <ide> } <ide> const name = this.options.name || manifest.name; <del> const sourceType = this.options.sourceType || "var"; <add> const sourceType = this.options.sourceType || (manifes...
1
PHP
PHP
remove redundant code
b8fbd466c29c442a36f4f7481e7890a8b1cdaa83
<ide><path>src/View/Helper/FormHelper.php <ide> protected function _getInput($fieldName, $options) <ide> $opts = $options['options']; <ide> unset($options['options']); <ide> return $this->multicheckbox($fieldName, $opts, $options); <del> case 'url': <del> ...
2
Text
Text
add blurb about implications of abi stability
7033fc771a1832d678cbcd7ec48b848f7acc647c
<ide><path>doc/api/addons.md <ide> set of APIs that are used by the native code. Instead of using the V8 <ide> or [Native Abstractions for Node.js][] APIs, the functions available <ide> in the N-API are used. <ide> <add>Creating and maintaining an addon that benefits from the ABI stability <add>provided by N-API carri...
2
Ruby
Ruby
add more tests for `shared_library`
1d710047a5e4e4ab5e8855f6aa6a3394b386573d
<ide><path>Library/Homebrew/test/os/linux/formula_spec.rb <ide> f = Testball.new <ide> expect(f.shared_library("foobar")).to eq("foobar.so") <ide> expect(f.shared_library("foobar", 2)).to eq("foobar.so.2") <add> expect(f.shared_library("foobar", nil)).to eq("foobar.so") <add> expect(f.shared...
2
Ruby
Ruby
replace space/hyphen in enum scope names
1eb977489645ed99d2791abf4ce8f46571e06901
<ide><path>activerecord/lib/active_record/enum.rb <ide> def enum(definitions) <ide> suffix = "_#{enum_suffix}" <ide> end <ide> <del> value_method_name = "#{prefix}#{label}#{suffix}" <add> method_friendly_label = label.to_s.gsub(/\W+/, "_") <add> value_method_n...
2
Ruby
Ruby
use tap class
44383fecb865014142c8934eacf2c90837a5b57c
<ide><path>Library/Homebrew/cmd/readall.rb <ide> def readall <ide> if ARGV.named.empty? <ide> formulae = Formula.full_names <ide> else <del> user, repo = tap_args <del> user.downcase! <del> repo.downcase! <del> tap = HOMEBREW_LIBRARY/"Taps/#{user}/homebrew-#{repo}" <del> raise "#{...
4
PHP
PHP
fix route caching attempt
90b0167d97e61eb06fce9cfc58527f4e09cd2a5e
<ide><path>src/Illuminate/Routing/CompiledRouteCollection.php <ide> public function mapAttributesToRoutes() <ide> */ <ide> protected function newRoute(array $attributes) <ide> { <del> $baseUri = ltrim(Str::replaceFirst( <del> ltrim($attributes['action']['prefix'] ?? '', '/'), <del> ...
1
Ruby
Ruby
fix jar detection
979e6674cf8684ffbf7fbff7c8e2b70043e8c6af
<ide><path>Library/Homebrew/unpack_strategy.rb <ide> def self.can_extract?(path:, magic_number:) <ide> return false unless ZipUnpackStrategy.can_extract?(path: path, magic_number: magic_number) <ide> <ide> # Check further if the ZIP is a LuaRocks package. <del> out, _, status = Open3.capture3("zipinfo", "-1...
1
Ruby
Ruby
add gcc-5 to compilers support c++11
3649b31765d94cd0e0f0cdfc1acae60951702b9b
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> def cxx11 <ide> if compiler == :clang <ide> append 'CXX', '-std=c++11' <ide> append 'CXX', '-stdlib=libc++' <del> elsif compiler =~ /gcc-4\.(8|9)/ <add> elsif compiler =~ /gcc-(4\.(8|9)|5)/ <ide> append 'CXX', '-std=c++11' <ide> else <i...
2
Ruby
Ruby
remove use of mocha from active model
5a6ae7f7539216931f2b3f4aa53394ac4136c74e
<ide><path>activemodel/test/cases/errors_test.rb <ide> def self.lookup_ancestors <ide> end <ide> end <ide> <add> def setup <add> @mock_generator = MiniTest::Mock.new <add> end <add> <add> def teardown <add> @mock_generator.verify <add> end <add> <ide> def test_delete <ide> errors = ActiveModel::E...
4
Text
Text
change plain text in sample code to be comments
8f20aaf0b9b55983a967c5212c35ebef4419efae
<ide><path>guide/english/css/background-opacity/index.md <ide> You have to add the following CSS property to achieve the transparency levels. <ide> opacity:1; <ide> } <ide> <del>OR <add>/* OR */ <ide> <ide> .class-name { <ide> opacity:1.0; <ide> OR <ide> .class-name { <ide> opacity:0.5; <ide> } <del>Opacity val...
1
Java
Java
add missing check to avoid re-initialization
007bdede4693332eb9fb857085fd87c389c3ebfa
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketConfigurationSupport.java <ide> protected void registerWebSocketHandlers(WebSocketHandlerRegistry registry) { <ide> @Bean <ide> @Nullable <ide> public TaskScheduler defaultSockJsTaskScheduler() { <del> if (initHandle...
1
PHP
PHP
remove locks from file system
89d1b87fde7cc37f6a0ab164ccb4037acde2ac0e
<ide><path>src/Illuminate/Filesystem/Filesystem.php <ide> public function requireOnce($file) <ide> */ <ide> public function put($path, $contents) <ide> { <del> return file_put_contents($path, $contents, LOCK_EX); <add> return file_put_contents($path, $contents); <ide> } <ide> <ide> /** <ide> public function pu...
1