content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
PHP
PHP
add "default" key for form schema fields
efef4985571e708e26700b72ba1f02448af81220
<ide><path>src/Form/Schema.php <ide> class Schema <ide> 'type' => null, <ide> 'length' => null, <ide> 'precision' => null, <add> 'default' => null, <ide> ]; <ide> <ide> /** <ide><path>tests/TestCase/Form/SchemaTest.php <ide> public function testAddingFields() <ide> <ide> ...
2
Python
Python
use 2to3 on py3k
c3b78b89523fd118c832c9bedb0edc948e083bd1
<ide><path>celery/app/amqp.py <ide> <ide> """ <ide> from datetime import datetime, timedelta <del>from UserDict import UserDict <del> <ide> <ide> from celery import routes <ide> from celery import signals <ide> from celery.utils import gen_unique_id, textindent <add>from celery.utils.compat import UserDict <ide> <id...
13
Python
Python
set genericforeignkey fields on object before save
0a0e4f22e72badd1d8700a2b253cb27450a5319f
<ide><path>rest_framework/serializers.py <ide> import inspect <ide> import types <ide> from decimal import Decimal <add>from django.contrib.contenttypes.generic import GenericForeignKey <ide> from django.core.paginator import Page <ide> from django.db import models <ide> from django.forms import widgets <ide> def resto...
1
Go
Go
remove uses of pkg/urlutil.istransporturl()
c2ca3e1118d88bdcddc5206afc26b1125e0b5575
<ide><path>daemon/logger/syslog/syslog.go <ide> import ( <ide> "time" <ide> <ide> syslog "github.com/RackSec/srslog" <del> <ide> "github.com/docker/docker/daemon/logger" <ide> "github.com/docker/docker/daemon/logger/loggerutils" <del> "github.com/docker/docker/pkg/urlutil" <ide> "github.com/docker/go-connections/...
3
Ruby
Ruby
remove unused argument
b03faffcc10ab7d174c8164d28739e71f9c9ce97
<ide><path>Library/Homebrew/utils.rb <ide> def initialize(error) <ide> end <ide> end <ide> <del> def open url, headers={}, &block <add> def open(url, &block) <ide> # This is a no-op if the user is opting out of using the GitHub API. <ide> return if ENV['HOMEBREW_NO_GITHUB_API'] <ide> <ide> require...
1
Java
Java
fix debughooktest as per direction from @abersnaze
68983965c9f742f88bd626ad30dc71f7684c648c
<ide><path>rxjava-contrib/rxjava-debug/src/test/java/rx/debug/DebugHookTest.java <ide> public void onError(Throwable e) { <ide> public void onNext(Integer t) { <ide> } <ide> }); <del> verify(events, times(6)).call(subscribe()); <add> verify(events, atLeast(3)).call(subscrib...
1
Go
Go
add tarsum calculation during v2 pull operation
213e3d116642431adbe634d39740eddc5a81e063
<ide><path>graph/pull.go <ide> import ( <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/engine" <ide> "github.com/docker/docker/image" <add> "github.com/docker/docker/pkg/tarsum" <ide> "github.com/docker/docker/registry" <ide> "github.com/docker/docker/utils" <ide> "github.com/docker/libtru...
6
Javascript
Javascript
fix branding violation addmanagedpathsplugin
edc7c8fcd59aa0f60019f6d9d52a7d80e2f2001e
<ide><path>lib/cache/AddManagedPathsPlugin.js <ide> class AddManagedPathsPlugin { <ide> } <ide> <ide> /** <del> * @param {Compiler} compiler Webpack compiler <add> * @param {Compiler} compiler webpack compiler <ide> * @returns {void} <ide> */ <ide> apply(compiler) {
1
Javascript
Javascript
convert var to es6 const
c49dcb319b22ec5084384fe279e91a88108b10e9
<ide><path>benchmark/arrays/var-int.js <ide> 'use strict'; <del>var common = require('../common.js'); <add>const common = require('../common.js'); <ide> <del>var types = [ <del> 'Array', <del> 'Buffer', <del> 'Int8Array', <del> 'Uint8Array', <del> 'Int16Array', <del> 'Uint16Array', <del> 'Int32Array', <del> 'U...
3
Javascript
Javascript
pass polyfillmodulenames into packager
e53046b9ec1e04e9c808cd17e36136ec11b1f6fb
<ide><path>local-cli/server/runServer.js <ide> function getPackagerServer(args, config) { <ide> getTransformOptions: config.getTransformOptions, <ide> hasteImpl: config.hasteImpl, <ide> platforms: defaultPlatforms.concat(args.platforms), <add> polyfillModuleNames: config.getPolyfillModuleNames(), <ide> ...
2
Python
Python
implement get_image function for softlayer
32d54fd4f98ed441f224ffc9b03588e88d587558
<ide><path>libcloud/compute/drivers/softlayer.py <ide> crypto = False <ide> <ide> from libcloud.common.softlayer import SoftLayerConnection, SoftLayerException <add>from libcloud.common.types import LibcloudError <ide> from libcloud.compute.types import Provider, NodeState <ide> from libcloud.compute.base import N...
1
Python
Python
handle an empty document
742ccaa2cf186e64a03a7b1fd9076374f67aace1
<ide><path>keras/preprocessing/sequence.py <ide> def pad_sequences(sequences, maxlen=None, dtype='int32', padding='pre', truncati <ide> <ide> x = (np.ones((nb_samples, maxlen)) * value).astype(dtype) <ide> for idx, s in enumerate(sequences): <add> if len(s) == 0: <add> continue # empty list w...
1
Javascript
Javascript
add support for custom attributes
06f002b161f61079933d482668440d8649fd84fc
<ide><path>src/ngSanitize/filter/linky.js <ide> * <ide> * @param {string} text Input text. <ide> * @param {string} target Window (_blank|_self|_parent|_top) or named frame to open links in. <add> * @param {object|function(url)} [attributes] Add custom attributes to the link element. <add> * <add> * Can be one of:...
2
Javascript
Javascript
improve error handling in parsekeyencoding
3afa5d7ba8d7b25ff3acda303c20e41230342e18
<ide><path>lib/internal/crypto/keys.js <ide> function isStringOrBuffer(val) { <ide> } <ide> <ide> function parseKeyEncoding(enc, keyType, isPublic, objName) { <add> if (enc === null || typeof enc !== 'object') <add> throw new ERR_INVALID_ARG_TYPE('options', 'object', enc); <add> <ide> const isInput = keyType ===...
2
Text
Text
add contributor agreement
833c66c9b2af1a7d255911921a6e24d4e2ef675d
<ide><path>.github/contributors/bdewilde.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <...
1
Javascript
Javascript
kill the build if the cdn version was not found
29f19f91fb5a542100e3eae4fbe06d64c70f920c
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> NG_VERSION.cdn = versionInfo.cdnVersion; <ide> var dist = 'angular-'+ NG_VERSION.full; <ide> <add> if (versionInfo.cdnVersion == null) { <add> throw new Error('Unable to read CDN version, are you offline or has the CDN not been properly pus...
1
Java
Java
restore timeout on the test
60656e53c955e70bacd773f540c151b4aa36c188
<ide><path>src/test/java/rx/internal/operators/OperatorRetryTest.java <ide> public Observable<String> call(GroupedObservable<String, String> t1) { <ide> inOrder.verify(observer, times(1)).onCompleted(); <ide> inOrder.verifyNoMoreInteractions(); <ide> } <del> @Test/*(timeout = 3000)*/ <add> @Te...
1
Text
Text
add information about html form submit
009baf06fa9f1ffb948d5a384d01bae1a12d3150
<ide><path>guide/english/html/html-forms/index.md <ide> A form will take input from the site visitor and then will post it to a back-end <ide> The HTML `<form>` tag is used to create an HTML form and it has the following syntax − <ide> <ide> ``` html <del> <form action = "Script URL" method = "POST"> <del> ...
1
Javascript
Javascript
remove trailing whitespace from about.js
c3cb9e39beeecb7191c6fc8724091436b010a119
<ide><path>server/boot/about.js <ide> function getCertCount(userCount, cert) { <ide> } <ide> <ide> function getAllThreeCertsCount(userCount) { <del> return userCount({ <del> isFrontEndCert: true, <del> isDataVisCert: true, <del> isBackEndCert: true <add> return userCount({ <add> isFrontEndCert: true,...
1
Python
Python
handle msvc v10 in _msvcrver_to_fullver
24523565b5dbb23d6de0591ef2a4c1d014722c5d
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def _build_import_library_x86(): <ide> if sys.platform == 'win32': <ide> try: <ide> import msvcrt <del> if hasattr(msvcrt, "CRT_ASSEMBLY_VERSION"): <del> _MSVCRVER_TO_FULLVER['90'] = msvcrt.CRT_ASSEMBLY_VERSION <del> else: <del> ...
1
Javascript
Javascript
tell jquery not to execute when getting script
7592131e0869d82b258c0d4f7657f1e700d05fbd
<ide><path>client/commonFramework/init.js <ide> window.common = (function(global) { <ide> <ide> common.getScriptContent$ = function getScriptContent$(script) { <ide> return Observable.create(function(observer) { <del> const jqXHR = $.get(script) <add> const jqXHR = $.get(script, null, null, 'text') <id...
1
Javascript
Javascript
add resolve dependencies to compilation
a2601eb5c8a68a4674c43b1796ac5d3a87828d74
<ide><path>lib/container/OverridablesPlugin.js <ide> <ide> const ModuleNotFoundError = require("../ModuleNotFoundError"); <ide> const RuntimeGlobals = require("../RuntimeGlobals"); <add>const { <add> toConstantDependency, <add> evaluateToString <add>} = require("../javascript/JavascriptParserHelpers"); <add>const Lazy...
1
Javascript
Javascript
replace link to old label
1c12812d1a218f505ccfcd4d958f88ab895ed83e
<ide><path>website/src/templates/universe.js <ide> const UniverseContent = ({ content = [], categories, theme, pageContext, mdxComp <ide> The Universe database is open-source and collected in a simple JSON file. <ide> For more details on the formats and available fields, ...
1
Text
Text
es6 getters + setters tests
49f6875db51057160861a2489648d459698db6c9
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object.md <ide> Getters and setters are important because they hide internal implementation deta <ide> ## Instructions <ide> <section id='instructions'> <ide> Use the <code>class</co...
1
Go
Go
remove obsolete comment
8706c5124a09ba4ad49ca2eb009bdcaec98b7637
<ide><path>container/monitor.go <ide> func (m *containerMonitor) Close() error { <ide> // Cleanup networking and mounts <ide> m.supervisor.Cleanup(m.container) <ide> <del> // FIXME: here is race condition between two RUN instructions in Dockerfile <del> // because they share same runconfig and change image. Must be ...
1
Ruby
Ruby
move array test files under array
00979fdb2c00de4e124a7c939b9024f57b4a835e
<ide><path>activesupport/test/core_ext/array/access_test.rb <add>require 'abstract_unit' <add>require 'active_support/core_ext/array' <add> <add>class AccessTest < ActiveSupport::TestCase <add> def test_from <add> assert_equal %w( a b c d ), %w( a b c d ).from(0) <add> assert_equal %w( c d ), %w( a b c d ).from(...
7
Ruby
Ruby
extract helper from stray file checks
6a020239d14d5a5d8a8853f8d619b0d4b6b1b57a
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_macgpg2 <ide> end unless File.exist? '/usr/local/MacGPG2/share/gnupg/VERSION' <ide> end <ide> <del>def check_for_stray_dylibs <del> unbrewed_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f } <add>def __check_stray...
1
Javascript
Javascript
ignore mocks in packager
84a681cea9217a1a2621064dd1cee9f9179fb2dd
<ide><path>Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js <ide> * LICENSE file in the root directory of this source tree. An additional grant <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <del> * @providesModule MessageQueueTestModule <ide> */ <ide> 'use stric...
1
Javascript
Javascript
pass proxylogger to params
2297881f91724390adb18c648f57a669bcc529d5
<ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js <ide> const testWorker = new WorkerExecutor('test-evaluator'); <ide> const testTimeout = 5000; <ide> <ide> function* ExecuteChallengeSaga() { <add> const consoleProxy = yield channel(); <ide> try { <ide> const { js, bonfire, backend } = ...
1
Python
Python
fix wrong masked median for some special cases
2144aa713b607a5f0592525d9b36adca332e9d51
<ide><path>numpy/lib/tests/test_nanfunctions.py <ide> def test_float_special(self): <ide> a = np.array([[inf, inf], [inf, inf]]) <ide> assert_equal(np.nanmedian(a, axis=1), inf) <ide> <add> a = np.array([[inf, 7, -inf, -9], <add> [-10, np.nan,...
3
Python
Python
remove injecting of `keras_preprocessing`
064f2d3f446a384abd1ebdd9ded8ac47dad9b4fc
<ide><path>keras/preprocessing/__init__.py <ide> # limitations under the License. <ide> # ============================================================================== <ide> """Provides keras data preprocessing utils to pre-process tf.data.Datasets before they are fed to the model.""" <del># pylint: disable=g-import-n...
1
Java
Java
add support for custom androidviews
1fabd8604836f54764852bafdac41dd55a84b0ed
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java <ide> public ThemedReactContext getThemedContext() { <ide> return Assertions.assertNotNull(mThemedContext); <ide> } <ide> <del> protected void setThemedContext(ThemedReactContext themedContext) { <add> public void setThemed...
3
Ruby
Ruby
add docs to collectionassociation#many?
3c91c8127050c7abbe091c19052f9813a62b1af7
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def any? <ide> end <ide> end <ide> <del> # Returns true if the collection has more than 1 record. Equivalent to collection.size > 1. <add> # Returns true if the collection has more than 1 record. <add> #...
1
Ruby
Ruby
improve handling of --version/-v option
233a38ac9542db8eff93ffbcb305694da875bb69
<ide><path>Library/brew.rb <ide> $:.unshift(HOMEBREW_LIBRARY_PATH.to_s) <ide> require "global" <ide> <del>if ARGV.first == "--version" <del> puts Homebrew.homebrew_version_string <add>if ARGV == %w[--version] || ARGV == %w[-v] <add> puts "Homebrew #{Homebrew.homebrew_version_string}" <ide> exit 0 <ide> elsif ARGV....
1
Go
Go
remove useless wait in run
a5b765a769736171d05692aff3abdf3f02dfe5be
<ide><path>commands.go <ide> func CmdRun(args ...string) error { <ide> if err != nil { <ide> return err <ide> } <del> var status int <add> <ide> if config.AttachStdin || config.AttachStdout || config.AttachStderr { <ide> if err := hijack("POST", "/containers/"+out.Id+"/attach?"+v.Encode(), config.Tty); err != ni...
1
Go
Go
modify test to include /dev/shm sharing
457aeaa2e1bdbb75c5b3bcedacde460920965c2f
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunModeIpcHost(c *check.C) { <ide> func (s *DockerSuite) TestRunModeIpcContainer(c *check.C) { <ide> testRequires(c, SameHostDaemon) <ide> <del> out, _ := dockerCmd(c, "run", "-d", "busybox", "top") <add> out, _ := dockerCmd(c, "run", "...
1
Text
Text
add readme file for token dropping bert
cdccf02cda475c5e6a505e0ac3730e5e933b44bc
<ide><path>official/projects/token_dropping/README.md <add># Token Dropping for Efficient BERT Pretraining <add> <add>The token dropping method aims to accelerate the pretraining of transformer <add>models such as BERT without degrading its performance on downstream tasks. In <add>particular, we drop unimportant tokens...
1
PHP
PHP
apply fixes from styleci
4d66ce89c8865ecec0e079f41bb9ea98ce7f7255
<ide><path>src/Illuminate/Queue/WorkerOptions.php <ide> class WorkerOptions <ide> * @param bool $stopWhenEmpty <ide> * @return void <ide> */ <del> public function __construct($name= 'default', $backoff = 0, $memory = 128, $timeout = 60, $sleep = 3, $maxTries = 1, $force = false, $stopWhenEmpty = fal...
1
Ruby
Ruby
add docs for eager_laod and preload
91c8d91536b1f41f0c4518e67b4bf31b1ef4f109
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def includes!(*args) <ide> self <ide> end <ide> <add> # Forces eager loading by performing a LEFT OUTER JOIN on +args+: <add> # <add> # User.eager_load(:posts) <add> # => SELECT "users"."id" AS t0_r0, "users"."name" AS ...
1
Python
Python
use correct separator
7ecfe7d20f8708a1dada5761cdc02905b0e370e5
<ide><path>scripts/ci/wheel_factory.py <ide> req_file = open(args.file, 'r') <ide> <ide> for req in requirements.parse(req_file): <del> print "Checking " + args.wheeldir + os.path.pathsep + req.name + "*.whl" <del> if not glob.glob(args.wheeldir + os.path.pathsep + req.name + "*.whl"): <add> print "Checking "...
1
Javascript
Javascript
convert the find controller to es6 syntax
9a95d91b923a0622ec9ab3a6bcd58021e6922f42
<ide><path>web/pdf_find_bar.js <ide> * limitations under the License. <ide> */ <ide> <del>import { FindStates } from './pdf_find_controller'; <add>import { FindState } from './pdf_find_controller'; <ide> import { NullL10n } from './ui_utils'; <ide> <ide> /** <ide> class PDFFindBar { <ide> var status = ''; <ide>...
2
Python
Python
reduce logger verbosity
d47cfee815f6a7ac42638d631dd76ac65601fecd
<ide><path>airflow/jobs.py <ide> def _execute(self): <ide> <ide> # Mark the task as not ready to run <ide> elif ti.state in (State.NONE, State.UPSTREAM_FAILED): <del> self.logger.debug('Added {} to not_ready'.format(ti)) <ide> not_ready.add(key) <i...
2
Python
Python
fix strtobool conversion tests on python 2
e9ede4086f547e812b0ee5f8e5ae2fc1175cb9de
<ide><path>t/unit/utils/test_serialization.py <ide> def test_default_table(self, s, b): <ide> <ide> def test_unknown_value(self): <ide> with pytest.raises(TypeError, <del> match="Cannot coerce 'foo' to type bool"): <add> # todo replace below when dropping...
1
Python
Python
fix tf error for separableconv1d when strides > 1
fb1887d132a8ce8548ff53d868a6ba531cd63b34
<ide><path>keras/backend/tensorflow_backend.py <ide> def separable_conv1d(x, depthwise_kernel, pointwise_kernel, strides=1, <ide> padding = _preprocess_padding(padding) <ide> if tf_data_format == 'NHWC': <ide> spatial_start_dim = 1 <del> strides = (1, 1) + strides + (1,) <add> strides = (1...
2
Ruby
Ruby
remove unused `hstorepair` constant
e68cd6fe964a0ccb3072f37491c8942fa72834c0
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/hstore.rb <ide> def changed_in_place?(raw_old_value, new_value) <ide> end <ide> <ide> private <del> HstorePair = begin <del> quoted_string = /"([^"\\]*(?:\\.[^"\\]*)*)"/ <del> /#{quoted...
1
Text
Text
fix wrong function arguments in the buffer.md
6050bbe60a9c9f0b95bda8fe5718209b4eb0028a
<ide><path>doc/api/buffer.md <ide> console.log(buf.lastIndexOf('buffer', 4)); <ide> const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2'); <ide> <ide> // Prints: 6 <del>console.log(utf16Buffer.lastIndexOf('\u03a3', null, 'ucs2')); <add>console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'ucs2'...
1
Java
Java
remove response content-type before error handling
e47f7ef7b51b8197d4c9b41c3a5b33e7cb62ef45
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerAdapter.java <ide> import org.springframework.context.ApplicationContextAware; <ide> import org.springframework.context.ConfigurableApplicationContext; <ide> import org.springframework.core.ReactiveAda...
2
Ruby
Ruby
fix some typos found in activemodel
233737706cfe1a9b0d50140ca5c814a070b4b1be
<ide><path>activemodel/test/cases/callbacks_test.rb <ide> class Violin2 < Violin <ide> test "after_create callbacks with both callbacks declared in one line" do <ide> assert_equal ["callback1", "callback2"], Violin1.new.create.history <ide> end <del> test "after_create callbacks with both callbacks declared in...
3
Python
Python
fix compute_accuracy() in mnist_siamese_graph.py
bd5d6162f1a6815588e8e9f48bc92201aa7e0ce4
<ide><path>examples/mnist_siamese_graph.py <ide> def create_base_network(input_dim): <ide> def compute_accuracy(predictions, labels): <ide> '''Compute classification accuracy with a fixed threshold on distances. <ide> ''' <del> return labels[predictions.ravel() < 0.5].mean() <add> preds = predictions.rave...
1
Mixed
Ruby
fix bug with presence validation of associations
25262bc280e8c9c0e875315958f82230b67cbf35
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Fix bug with presence validation of associations. Would incorrectly add duplicated errors <add> when the association was blank. Bug introduced in 1fab518c6a75dac5773654646eb724a59741bc13. <add> <add> *Scott Willson* <add> <...
3
Java
Java
fix resourcehttprequesthandler empty location log
bc5246938d07820305167e581e7a8ece23ed265e
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"...
1
Python
Python
implement list_volumes for digitalocean
71eb9565e1092dcf4468ee88692745868c3f2d44
<ide><path>libcloud/compute/drivers/digitalocean.py <ide> from libcloud.compute.types import Provider, NodeState <ide> from libcloud.compute.base import NodeImage, NodeSize, NodeLocation, KeyPair <ide> from libcloud.compute.base import Node, NodeDriver <add>from libcloud.compute.base import StorageVolume <ide> <ide> _...
1
PHP
PHP
change "login" text to "log in"
cbddb27c7e63eb1942efcdd95c8bd5bdf5be940f
<ide><path>resources/views/welcome.blade.php <ide> @auth <ide> <a href="{{ url('/home') }}" class="text-sm text-gray-700 underline">Home</a> <ide> @else <del> <a href="{{ route('login') }}" class="text-sm text-gray-700 underline">Log...
1
Text
Text
remove redundant line in docs
cd7a59c404e78da7b7378b9048e4238719a8a57e
<ide><path>docs/templates/activations.md <ide> You can also pass an element-wise TensorFlow/Theano/CNTK function as an activati <ide> from keras import backend as K <ide> <ide> model.add(Dense(64, activation=K.tanh)) <del>model.add(Activation(K.tanh)) <ide> ``` <ide> <ide> ## Available activations
1
PHP
PHP
fix mailable->priority()
3ef58e60e27baf5bac0a43cb95560f33a156bae9
<ide><path>src/Illuminate/Mail/Mailable.php <ide> public function locale($locale) <ide> public function priority($level = 3) <ide> { <ide> $this->callbacks[] = function ($message) use ($level) { <del> $message->setPriority($level); <add> $message->priority($level); <ide> };...
2
Python
Python
add ent_id constant
62655fd36fd13a4bcad3cfd09b853126fa2b5a27
<ide><path>spacy/language_data/util.py <ide> <ide> <ide> PRON_LEMMA = "-PRON-" <add>ENT_ID = "ent_id" <ide> <ide> <ide> def update_exc(exc, additions):
1
PHP
PHP
fix issue with scripts_for_layout compatibility
9cdf8042bf3a55cc5269eb77db4248254f035356
<ide><path>lib/Cake/View/View.php <ide> public function renderLayout($content, $layout = null) { <ide> $this->getEventManager()->dispatch(new CakeEvent('View.beforeLayout', $this, array($layoutFileName))); <ide> <ide> $scripts = implode("\n\t", $this->_scripts); <del> $scripts .= $this->get('meta') . $this->get('...
1
Text
Text
fix some typos
f1a19fa8c08a9b68d3a7014f9800cadf40fc150f
<ide><path>contrib/vagrant-docker/README.md <ide> script <ide> end script <ide> ``` <ide> <del>Once that's done, you need to set up a SSH tunnel between your host machine and the vagrant machine that's running Docker. This can be done by running the following command in a host terminal: <add>Once that's done, you need...
5
Ruby
Ruby
fix super calls
e8143e5de7726a4ba4c1fd5e82d4b3ab5f5dff9a
<ide><path>Library/Homebrew/cask/exceptions.rb <ide> class CaskError < RuntimeError; end <ide> <ide> class MultipleCaskErrors < CaskError <ide> def initialize(errors) <del> super <add> super() <ide> <ide> @errors = errors <ide> end <ide> class CaskQuarantineError < CaskError <ide> attr_r...
1
Javascript
Javascript
add support for serializing circular values
9cecf3c4a427725b42e066c6ca6bd93399b8dcd9
<ide><path>lib/serialization/ObjectMiddleware.js <ide> class ObjectMiddleware extends SerializerMiddleware { <ide> throw e; <ide> } <ide> }, <add> setCircularReference(ref) { <add> addReferenceable(ref); <add> }, <ide> snapshot() { <ide> return { <ide> length: result.length, <ide> class O...
1
Ruby
Ruby
upgrade virtualenv to 16.3.0
80d8d441a288f1a77633d981380e6657f0ff8231
<ide><path>Library/Homebrew/language/python_virtualenv_constants.rb <ide> PYTHON_VIRTUALENV_URL = <del> "https://github.com/pypa/virtualenv/archive/16.2.0.tar.gz".freeze <add> "https://files.pythonhosted.org/packages/8b/f4" \ <add> "/360aa656ddb0f4168aeaa1057d8784b95d1ce12f34332c1cf52420b6db4e" \ <add> "/virtualenv...
1
PHP
PHP
apply fixes from styleci
1d0fbe64e75ebedd3410f279fc120ab9281e17d0
<ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php <ide> use Illuminate\Queue\Console\ListFailedCommand as ListFailedQueueCommand; <ide> use Illuminate\Queue\Console\FlushFailedCommand as FlushFailedQueueCommand; <ide> use Illuminate\Queue\Console\ForgetFailedCommand as ForgetFailedQueueCommand; ...
1
Ruby
Ruby
add shfmt exit status to `brew style`
966189d07db604c953855e97c97377006e4ce8dd
<ide><path>Library/Homebrew/style.rb <ide> def check_style_impl(files, output_type, <ide> run_shellcheck(shell_files, output_type) <ide> end <ide> <del> run_shfmt(shell_files, fix: fix) if ruby_files.none? || shell_files.any? <add> shfmt_result = if ruby_files.any? && shell_files.none? <add> ...
1
Python
Python
fix assert_array_equal_spec for complex types
74bca4fa9262d365eda8f59932c0d5bc86582f4b
<ide><path>numpy/core/tests/test_umath_complex.py <ide> def assert_equal_spec(x, y): <ide> xi = np.imag(x) <ide> yi = np.imag(y) <ide> <del> if not _are_equal(xr, xi) and _are_equal(yr, yi): <add> if not (_are_equal(xr, yr) and _are_equal(xi, yi)): <ide> raise AssertionError("...
1
PHP
PHP
take a different approach for invalid option error
846eff66414c4e2b1527c3aaf18c268269d8045c
<ide><path>src/Console/CommandCollection.php <ide> public function autoDiscover(): array <ide> } <ide> <ide> /** <del> * Find suggested command names based on $needle <add> * Get the list of available command names. <ide> * <del> * Used to generate suggested commands when a <del> * command...
8
Javascript
Javascript
replace string concatenation with template
01eddd97f733148b70d753129c612ef09db3493b
<ide><path>test/parallel/test-icu-data-dir.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const os = require('os'); <ide> if (!(common.hasIntl && common.hasSmallICU)) <ide> common.skip('missing Intl'); <ide> <ide> const { spawnSync } = require('child_process'); <ide> <ide> const expected = <...
1
PHP
PHP
remove invalid @deprecated annoation
5688676398bbe8c30c6aa5b02725688a813523cb
<ide><path>src/Database/QueryCompiler.php <ide> class QueryCompiler <ide> * The list of query clauses to traverse for generating an UPDATE statement <ide> * <ide> * @var array<string> <del> * @deprecated Not used. <ide> */ <ide> protected $_updateParts = ['with', 'update', 'set', 'where', 'e...
1
Text
Text
fix typo in fs.md
d6397afbac475316d50b1b147c89879f5f4dbd72
<ide><path>doc/api/fs.md <ide> added: v10.0.0 <ide> * Returns: {Promise} <ide> <ide> Reads the contents of a directory then resolves the `Promise` with an array <del>of the names of the files in the directory excludiing `'.'` and `'..'`. <add>of the names of the files in the directory excluding `'.'` and `'..'`. <ide>...
1
PHP
PHP
add wherecolumn clause
853300b13201f98b8149acb3992554af25e2232c
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function where($column, $operator = null, $value = null, $boolean = 'and' <ide> * <ide> * @param array $column <ide> * @param string $boolean <add> * @param string $method <ide> * @return $this <ide> */ <del> protect...
3
Javascript
Javascript
add forgotten clippath wrapper in getmarkupwrap
3b10a7b0386bf6787e6da58fea696f7a9d6f802c
<ide><path>src/vendor/core/getMarkupWrap.js <ide> var markupWrap = { <ide> 'th': trWrap, <ide> <ide> 'circle': svgWrap, <add> 'clipPath': svgWrap, <ide> 'defs': svgWrap, <ide> 'ellipse': svgWrap, <ide> 'g': svgWrap,
1
Text
Text
remove lemma from exception examples [ci skip]
25b2b3ff4527f1fba5a2df0756cbe4f843b469a7
<ide><path>website/docs/api/tokenizer.md <ide> and examples. <ide> > #### Example <ide> > <ide> > ```python <del>> from spacy.attrs import ORTH, LEMMA <del>> case = [{ORTH: "do"}, {ORTH: "n't", LEMMA: "not"}] <add>> from spacy.attrs import ORTH, NORM <add>> case = [{ORTH: "do"}, {ORTH: "n't", NORM: "not"}] <ide> > toke...
3
Text
Text
allow code on new lines for camper-cafe
54a15c65894d815c28ef941e1200653f4a13a84d
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-002.md <ide> assert(code.match(/<\/title>/i)); <ide> Your `<title>` element should be nested in your `<head>` element. <ide> <ide> ```js <del>assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/i)); ...
1
Java
Java
remove reflection from contentdispositiontests
d927d31e135bcbc8b4a69ac3b3b3aab354d1670b
<ide><path>spring-web/src/main/java/org/springframework/http/ContentDisposition.java <ide> public String toString() { <ide> } <ide> else { <ide> sb.append("; filename*="); <del> sb.append(encodeHeaderFieldParam(this.filename, this.charset)); <add> sb.append(encodeFilename(this.filename, this.charset)); ...
2
PHP
PHP
add notifyvia method
4e7d69f90e5bdf4e1336566a53b33ca48d85e1bb
<ide><path>src/Illuminate/Notifications/RoutesNotifications.php <ide> public function notify($instance) <ide> } <ide> } <ide> <add> /** <add> * Send the given notification via the given channels. <add> * <add> * @param array|string $channels <add> * @param mixed $instance <add> *...
1
PHP
PHP
trigger a deprecation warning
9438e57de8bfcf60d1e802c979ec7c40295efa33
<ide><path>src/ORM/Table.php <ide> public function hasBehavior($name) <ide> */ <ide> public function association($name) <ide> { <add> deprecationWarning('Use Table::getAssociation() instead.'); <add> <ide> return $this->getAssociation($name); <ide> } <ide>
1
PHP
PHP
fix cs errors
d809b1480e352be58cb045238b3ef40ebce3cf18
<ide><path>lib/Cake/Model/Behavior/TreeBehavior.php <ide> protected function _recoverByParentId(Model $Model, $counter = 1, $parentId = nu <ide> $hasChildren = (bool)$children; <ide> <ide> if (!is_null($parentId)) { <del> if($hasChildren) { <add> if ($hasChildren) { <ide> $Model->updateAll( <ide> arra...
6
Ruby
Ruby
fix whitespace errors
b7a9890d7765a0a6edc1161f58304386266bdf2e
<ide><path>activerecord/test/cases/connection_pool_test.rb <ide> def test_checkout_behaviour <ide> assert_not_nil connection <ide> end <ide> end <del> <add> <ide> threads.each {|t| t.join} <del> <add> <ide> Thread.new do <ide> threads.each do |t| <...
1
Python
Python
manage catch error on old psutil version
17d6318ed5ee94d43819c69d61d4ef1d0ffa1522
<ide><path>glances/processes.py <ide> <ide> import psutil <ide> <add># Workaround for old PsUtil version <add>if hasattr(psutil, 'WindowsError'): <add> PsUtilWindowsError = psutil.WindowsError <add>else: <add> PsUtilWindowsError = None <add> <ide> <ide> def is_kernel_thread(proc): <ide> """Return True if p...
1
Javascript
Javascript
update modal.js to fix
6a83ac3af62308e4c286ca169f4834b6d2c3fadd
<ide><path>Libraries/Modal/Modal.js <ide> class Modal extends React.Component { <ide> */ <ide> visible: PropTypes.bool, <ide> /** <del> * The `onRequestClose` prop allows passing a function that will be called once the modal has been dismissed. <del> * <del> * _On the Android platform, this is ...
1
PHP
PHP
add env variable
7eb03cdb06259269db02404080d946f52a433825
<ide><path>src/Illuminate/Foundation/Console/ServeCommand.php <ide> protected function startProcess() <ide> return [$key => $value]; <ide> } <ide> <del> return $key === 'APP_ENV' <add> return in_array($key, ['APP_ENV', 'LARAVEL_SAIL']) <ide> ? [$key...
1
PHP
PHP
remove unused code.
73c64077b223181d7c47ff6358e3df71af183ec8
<ide><path>src/Illuminate/Notifications/ChannelManager.php <ide> public function deliverVia($channels) <ide> { <ide> $this->defaultChannels = (array) $channels; <ide> } <del> <del> /** <del> * Build a new channel notification from the given object. <del> * <del> * @param mixed $notifiab...
1
Ruby
Ruby
include bad value in invalid-option error message
094f6f47ddcb3cabc30ed935a4be4cf855c94e73
<ide><path>Library/Homebrew/software_spec.rb <ide> def option(name, description = "") <ide> puts "Symbols are reserved for future use, please pass a string instead" <ide> name = name.to_s <ide> end <add> unless String === name <add> raise ArgumentError, "option name must be string or s...
1
Text
Text
update theme docs
3ae5213ebf6ea2de459287117bf327e3d7875080
<ide><path>docs/creating-a-theme.md <ide> a few things before starting: <ide> ## Creating a Minimal Syntax Theme <ide> <ide> 1. Open the Command Palette (`cmd-p`) <del>1. Search for `Package Generator: Generate Theme` and select it. <del>1. Choose a name for the folder which will contain your theme. <add>1. Search for...
1
Go
Go
update core calls to network drivers
c712e74b45005e0f38297d254fb606aa18606d11
<ide><path>config.go <ide> import ( <ide> "net" <ide> ) <ide> <add>const ( <add> DefaultNetworkMtu = 1500 <add> DisableNetworkBridge = "none" <add>) <add> <ide> // FIXME: separate runtime configuration from http api configuration <ide> type DaemonConfig struct { <ide> Pidfile string <ide> type...
5
Ruby
Ruby
improve mysql2 mismatched foreign keys reporting
df5023a541b1c329dcbfe9811e6e853957d3472e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def build_statement_pool <ide> end <ide> <ide> def mismatched_foreign_key(message, sql:, binds:) <add> foreign_key_pat = <add> /Referencing column '(\w+)' and referenced/i =~ message ? $1 :...
2
Text
Text
fix wrong condition for an app rejection
45cb6753b536aa54383836201cdd74fe63937c12
<ide><path>docs/Acceptable-Casks.md <ide> Common reasons to reject a cask entirely: <ide> + The author has [specifically asked us not to include it](https://github.com/Homebrew/homebrew-cask/pull/5342). <ide> + App requires [SIP to be disabled](https://github.com/Homebrew/homebrew-cask/pull/41890) to be installed and/o...
1
Javascript
Javascript
simplify agent initialization
f19a576f6c73d21064699c8cc81a26ac5139a88b
<ide><path>lib/_http_agent.js <ide> function Agent(options) { <ide> return; <ide> } <ide> <del> let freeSockets = this.freeSockets[name]; <del> const freeLen = freeSockets ? freeSockets.length : 0; <add> const freeSockets = this.freeSockets[name] || []; <add> const freeLen = freeSockets.length; <...
1
Go
Go
fix a failed test
1d9973c0d4c51362e8c5b38e585a025c90baf085
<ide><path>integration-cli/docker_cli_run_unix_test.go <ide> func (s *DockerSuite) TestRunOOMExitCode(c *check.C) { <ide> errChan := make(chan error) <ide> go func() { <ide> defer close(errChan) <del> out, exitCode, _ := dockerCmdWithError("run", "-m", "4MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x;...
1
PHP
PHP
add test for options with 0 value
b20f6e132d06968bc33a0f30dbb23d94a3ae51b4
<ide><path>lib/Cake/Test/Case/Console/ConsoleOptionParserTest.php <ide> public function testAddOptionLong() { <ide> $this->assertEquals(array('test' => 'value', 'help' => false), $result[0], 'Long parameter did not parse out'); <ide> } <ide> <add>/** <add> * test adding an option with a zero value <add> * <add> * @...
1
Javascript
Javascript
make variables and checks stricter
1d6b729cea909769ac0bcb3aa68f5fe567c4ffb7
<ide><path>lib/console.js <ide> function Console(stdout, stderr, ignoreErrors = true) { <ide> Object.defineProperty(this, '_stdout', prop); <ide> prop.value = stderr; <ide> Object.defineProperty(this, '_stderr', prop); <del> prop.value = ignoreErrors; <add> prop.value = Boolean(ignoreErrors); <ide> Object.def...
1
Go
Go
fix stale sandbox from store problem
670302e66b25061be8e7317d07c6507a167faecb
<ide><path>libnetwork/controller.go <ide> type NetworkController interface { <ide> // SandboxByID returns the Sandbox which has the passed id. If not found, a types.NotFoundError is returned. <ide> SandboxByID(id string) (Sandbox, error) <ide> <add> // SandboxDestroy destroys a sandbox given a container ID <add> San...
3
PHP
PHP
simplify some model code
b99066ddd92315872192946b5deb7162bdc64ab3
<ide><path>lib/Cake/Model/Model.php <ide> public function deconstruct($field, $data) { <ide> <ide> $type = $this->getColumnType($field); <ide> <del> if (in_array($type, array('datetime', 'timestamp', 'date', 'time'))) { <del> $useNewDate = (isset($data['year']) || isset($data['month']) || <del> isset($data['d...
1
Ruby
Ruby
ensure writability, handle errors
a8527f4c16d7df419f6539fd583302635ec98a4a
<ide><path>Library/Homebrew/formula.rb <ide> def time <ide> end <ide> end <ide> <add> # Replaces a universal binary with its native slice. <add> # <add> # If called with no parameters, does this with all compatible <add> # universal binaries in a {Formula}'s {Keg}. <ide> sig { params(targets: T.nilable(T.a...
1
PHP
PHP
fix bug in router parameter parsing
c47a30fca631de586f2862f4f5d10a88aca18f21
<ide><path>laravel/routing/router.php <ide> protected function match($destination, $keys, $callback) <ide> { <ide> foreach (explode(', ', $keys) as $key) <ide> { <del> if (preg_match('#^'.$this->wildcards($key).'$#', $destination)) <add> if (preg_match('#^'.$this->wildcards($key).'$#', $destination, $parameter...
1
Text
Text
add xadillax to collaborators
56441ff774baa7f3f2ab25691a753d6f701a2b6c
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Daijiro Wachi** &lt;daijiro.wachi@gmail.com&gt; (he/him) <ide> * [whitlockjc](https://github.com/whitlockjc) - <ide> **Jeremy Whitlock** &lt;jwhitlock@apache.org&gt; <add>* [XadillaX](https://github.com/XadillaX) - <add...
1
Python
Python
allow longs as well as ints to satisfy win64
da3677060f54b6ac39db93728b4e9948adeeae6c
<ide><path>numpy/lib/format.py <ide> def read_array_header_1_0(fp): <ide> <ide> # Sanity-check the values. <ide> if (not isinstance(d['shape'], tuple) or <del> not numpy.all([isinstance(x, int) for x in d['shape']])): <add> not numpy.all([isinstance(x, (int,long)) for x in d['shape']])): <ide> ...
1
Go
Go
add missing sandboxes routes
72eb02d807bd582fb40e13514c05a6a78544513b
<ide><path>libnetwork/cmd/dnet/dnet.go <ide> func (d *dnetConnection) dnetDaemon() error { <ide> post.Methods("GET", "PUT", "POST", "DELETE").HandlerFunc(httpHandler) <ide> post = r.PathPrefix("/services").Subrouter() <ide> post.Methods("GET", "PUT", "POST", "DELETE").HandlerFunc(httpHandler) <add> post = r.PathPref...
1
Javascript
Javascript
remove references to last arguments to a fn call
e61eae1b1f2351c51bcfe4142749a4e68a2806ff
<ide><path>src/ng/parse.js <ide> Parser.prototype = { <ide> ? fn.apply(context, args) <ide> : fn(args[0], args[1], args[2], args[3], args[4]); <ide> <add> if (args) { <add> // Free-up the memory (arguments of the last function call). <add> args.length = 0; <add> } <add> ...
1
Javascript
Javascript
implement stricter weekday parsing
a8a7abfaa80f13f132827527d2c119249c84aaf6
<ide><path>src/lib/units/day-of-week.js <ide> addRegexToken('dd', matchWord); <ide> addRegexToken('ddd', matchWord); <ide> addRegexToken('dddd', matchWord); <ide> <del>addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config) { <del> var weekday = config._locale.weekdaysParse(input); <add>addWeekPa...
2
Python
Python
deprecate request.json property
61097c47a35ad8883c77fc49b93c1314f7819464
<ide><path>flask/wrappers.py <ide> def json(self): <ide> <ide> The :meth:`get_json` method should be used instead. <ide> """ <del> # XXX: deprecate property <add> from warnings import warn <add> warn(DeprecationWarning('json is deprecated. ' <add> 'U...
1