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
Text
Text
add a note on concurrency and races
b1004a47334a0dd1929e6d50b8f7ff6badc959f4
<ide><path>docs/api-guide/throttling.md <ide> If you need to use a cache other than `'default'`, you can do so by creating a c <ide> <ide> You'll need to remember to also set your custom throttle class in the `'DEFAULT_THROTTLE_CLASSES'` settings key, or using the `throttle_classes` view attribute. <ide> <add>## A no...
1
Javascript
Javascript
add author attribution to csm
8604213c9dd95ed42931b755bffce838f917ccb0
<ide><path>examples/jsm/csm/CSM.js <add>/** <add> * @author vHawk / https://github.com/vHawk/ <add> */ <add> <ide> import { <ide> Vector2, <ide> Vector3, <ide><path>examples/jsm/csm/Frustum.js <add>/** <add> * @author vHawk / https://github.com/vHawk/ <add> */ <add> <ide> import { MathUtils, Vector3 } from '../../../...
5
Python
Python
add serializer handlers for root and parent
885eca59952365f24698b28d9969defc20cc170b
<ide><path>celery/events/state.py <ide> def __init__(self, uuid=None, cluster_state=None, children=None, **kwargs): <ide> ) <ide> self._serializer_handlers = { <ide> 'children': self._serializable_children, <add> 'root': self._serializable_root, <add> 'parent': self._se...
1
Text
Text
fix version history for `"exports"` patterns
dfc00ea0383fe6e0efeaf26c9002217f6a71b661
<ide><path>doc/api/packages.md <ide> analogous to the exports field. <ide> <!-- YAML <ide> added: <ide> - v14.13.0 <del> - v12.19.0 <add> - v12.20.0 <ide> --> <ide> <ide> For packages with a small number of exports or imports, we recommend <ide> added: v12.7.0 <ide> changes: <ide> - version: <ide> - v14.13.0...
1
PHP
PHP
upgrade shell - refactoring
d41475503619936abf93bcae210765c60aac0028
<ide><path>cake/console/shells/upgrade.php <ide> class UpgradeShell extends Shell { <ide> * @return void <ide> */ <ide> function helpers() { <del> if (!empty($this->params['plugin'])) { <del> $this->_paths = array(App::pluginPath($this->params['plugin'])); <del> } else { <del> $this->_paths = array( <del> V...
1
Ruby
Ruby
preheat the table cache in arel
1e9685f15921d1acec65d07a27640aa1c674a29b
<ide><path>activerecord/test/cases/batches_test.rb <ide> class EachTest < ActiveRecord::TestCase <ide> def setup <ide> @posts = Post.order("id asc") <ide> @total = Post.count <add> Post.count('id') # preheat arel's table cache <ide> end <ide> <ide> def test_each_should_excecute_one_query_per_batch
1
Mixed
Ruby
handle client disconnect during live streaming
6a89850dfe1e8c8331fd8482525aa4b9b2530cad
<ide><path>actionpack/CHANGELOG.md <add>* Ensure the controller is always notified as soon as the client disconnects <add> during live streaming, even when the controller is blocked on a write. <add> <add> *Nicholas Jakobsen*, *Matthew Draper* <add> <ide> * Routes specifying 'to:' must be a string that contai...
4
PHP
PHP
change variable name to be descriptive
987c01856afa4a5ad9cfd29fddf6623eff293cdc
<ide><path>lib/Cake/Network/Email/CakeEmail.php <ide> protected function _attachFiles($boundary = null) { <ide> /** <ide> * Read the file contents and return a base64 version of the file contents. <ide> * <del> * @param string $file The file to read. <add> * @param string $path The absolute path to the file to read. ...
1
Text
Text
avoid tautology in readme
53b8133656132b1f899fbf3b8ae6c0c82ae5296b
<ide><path>README.md <ide> contains the latest Carbon (Node.js 8) release. <ide> #### Nightly Releases <ide> <https://nodejs.org/download/nightly/> <ide> <del>Each directory name and filename contains a date (in UTC time) and the commit <add>Each directory name and filename contains a date (in UTC) and the commit <ide...
1
Text
Text
use external url for mlengine link
a5e9d4e55b3796ec0d7d6f3ffebb15a9a8b49c1d
<ide><path>object_detection/g3doc/running_on_cloud.md <ide> training checkpoints and events will be written to and <ide> Google Cloud Storage. <ide> <ide> Users can monitor the progress of their training job on the [ML Engine <del>Dashboard](https://pantheon.corp.google.com/mlengine/jobs). <add>Dashboard](https://cons...
1
Go
Go
fix race in statistics
0eb01bbbee8a2dc22493628da67b80c78ab29a07
<ide><path>libnetwork/sandbox.go <ide> func (sb *sandbox) Labels() map[string]interface{} { <ide> func (sb *sandbox) Statistics() (map[string]*types.InterfaceStatistics, error) { <ide> m := make(map[string]*types.InterfaceStatistics) <ide> <del> if sb.osSbox == nil { <add> sb.Lock() <add> osb := sb.osSbox <add> sb.Un...
1
Java
Java
use collection.removeif() where possible
d3a0a8e0078df5f152d9e5f802683614a0018182
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/AbstractBeanFactoryBasedTargetSourceCreator.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Ve...
7
Text
Text
fix typo ಠ_ಠ
919cef41ebcc09fbbbd4376fb0df9eddf01037a9
<ide><path>README.md <ide> <ide> ## Be forwarned: Atom is pre-alpha software! <ide> <del>## Instalation <add>## Installation <ide> <ide> 1. Get [xcode 4.2](http://itunes.apple.com/us/app/xcode/id448457090?mt=12). <ide>
1
Text
Text
mention fixed freeze
b56f4a129fb3828cde90f6a38ab7b14ac1aaef24
<ide><path>CHANGELOG.md <add>* Fixed: Freeze when editing a RoR class <ide> * Added: meta-N to open a new untitled editor in the current window <ide> <ide> * Fixed: Styling in command logger
1
Text
Text
fix typo in changelog.md
3168d401a765c93f54a09c4708e2e9dfc43916bc
<ide><path>railties/CHANGELOG.md <ide> Example: <ide> <ide> ``` <del> > bin/rails rails --unused <add> > bin/rails routes --unused <ide> <ide> Found 2 unused routes: <ide>
1
Python
Python
set version to v3.1.0.dev0
6b69b8934b483862a3e7d57ace26ae05ce16d053
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.0.6" <add>__version__ = "3.1.0.dev0" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility....
1
Java
Java
fix websocket compatibility with tyrus 1.9 - 1.12
b7e75c5db472d22a619739a55331f5423a510ee7
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/standard/AbstractTyrusRequestUpgradeStrategy.java <ide> public Object createdEndpoint(ServerEndpointRegistration registration, Component <ide> Object sessionListener = accessor.getPropertyValue("sessionListener"); <ide> Object cluster...
1
Ruby
Ruby
remove dead code
cb32f76f271f20a14685580a7be0cb0c72c0aec6
<ide><path>Library/Homebrew/software_spec.rb <ide> def requirements <ide> class HeadSoftwareSpec < SoftwareSpec <ide> def initialize <ide> super <del> @resource.url = url <ide> @resource.version = Version.new('HEAD') <ide> end <ide>
1
PHP
PHP
fix most of the coding standards issues in i18n/
c5be343b72b88d11824cdd85854c08901e4b2cc4
<ide><path>lib/Cake/I18n/I18n.php <ide> class I18n { <ide> 'LC_ALL', 'LC_COLLATE', 'LC_CTYPE', 'LC_MONETARY', 'LC_NUMERIC', 'LC_TIME', 'LC_MESSAGES' <ide> ); <ide> <add> protected $_escape = null; <add> <ide> /** <ide> * Constructor, use I18n::getInstance() to get the i18n translation object. <ide> * <ide> public...
3
Text
Text
remove changelog from readme
52aa5be883e6714538c091f6bcafbb8e7a56a81c
<ide><path>README.md <ide> <ide> **Author:** Tom Christie. [Follow me on Twitter][twitter]. <ide> <del>**Support:** [REST framework discussion group][group]. <add>**Support:** [REST framework group][group], or `#restframework` on freenode IRC. <ide> <ide> [![build-status-image]][travis] <ide> <ide> To run the test...
1
Javascript
Javascript
remove ember global usage when testing onerror
253556651d74fd0bd5c5a50d0abb6bcd20bf9028
<ide><path>packages/ember-testing/lib/index.js <ide> export { default as Test } from './test'; <ide> export { default as Adapter } from './adapters/adapter'; <add>export { setAdapter, getAdapter } from './test/adapter'; <ide> export { default as setupForTesting } from './setup_for_testing'; <ide> export { default as QU...
2
Text
Text
add license, badges and banner
71342cb1aae548f6b496cdd1511dc94ef69df339
<ide><path>README.md <add>![freeCodeCamp Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png) <add> <ide> # freeCodeCamp Curriculum <ide> <ide> [![Build Status](https://travis-ci.org/freeCodeCamp/curriculum.svg?branch=master)](https://travis-ci.org/freeCodeCamp/curriculum) [![npm (scoped)](http...
1
Mixed
Ruby
drop the correct index after reverting a migration
e1d4673102f7c4e58964a6de864402ae9a615688
<ide><path>activerecord/CHANGELOG.md <add>* When inverting add_index use the index name if present instead of <add> the columns. <add> <add> If there are two indices with matching columns and one of them is <add> explicitly named then reverting the migration adding the named one <add> would instead drop t...
4
Go
Go
improve tests on the engine
8e5ab5bfca2a7077f4e85096808c8f309cf692df
<ide><path>engine/engine_test.go <add>package engine <add> <add>import ( <add> "testing" <add>) <add> <add>func TestRegister(t *testing.T) { <add> if err := Register("dummy1", nil); err != nil { <add> t.Fatal(err) <add> } <add> <add> if err := Register("dummy1", nil); err == nil { <add> t.Fatalf("Expecting error, got...
4
Python
Python
fix irnn example
cec7f73bca617ab4321a805f25499d75f13c2672
<ide><path>examples/mnist_irnn.py <ide> ''' <ide> <ide> from __future__ import print_function <del>import numpy as np <del>np.random.seed(1337) # for reproducibility <ide> <ide> from keras.datasets import mnist <ide> from keras.models import Sequential <ide> from keras.layers.core import Dense, Activation <ide> from...
1
Text
Text
update broken link to publish doc
66628e8c5218525efe7043101ccb19bfac0a3633
<ide><path>docs/your-first-package.md <ide> To begin, press `cmd-shift-P` to bring up the [Command <ide> Palette](https://github.com/atom/command-palette). Type "generate package" and <ide> select the "Package Generator: Generate Package" command. Now we need to name <ide> the package. Try to avoid naming your package ...
1
Ruby
Ruby
increase test coverage (closes , ) [josh]
f99e5bba192938ed7e812f1ae82785ad796c636d
<ide><path>activeresource/test/base/custom_methods_test.rb <ide> def setup <ide> mock.get "/people/1/deep.xml", {}, @matz_deep <ide> mock.get "/people/retrieve.xml?name=Matz", {}, @matz_array <ide> mock.get "/people/managers.xml", {}, @matz_array <add> mock.post "/people/hire.xml?name=...
2
Text
Text
add link to sqlite download in sqlite lesson
df8166267b60d43e13abf37144e5166731d5171b
<ide><path>curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/relational-databases-and-sqlite.md <ide> bilibiliIds: <ide> dashedName: relational-databases-and-sqlite <ide> --- <ide> <add># --description-- <add> <add>[Download SQLite](https://www.sqlite.org/download.html) <add>[Dow...
1
Ruby
Ruby
pass the skip_pipeline option in image_submit_tag
ae7a57209d0a2365a6e90684e45d55b7de78101d
<ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb <ide> def button_tag(content_or_options = nil, options = nil, &block) <ide> # # => <input src="/assets/save.png" data-confirm="Are you sure?" type="image" /> <ide> def image_submit_tag(source, options = {}) <ide> options = options.st...
2
Python
Python
ignore nan-warnings in randomized out tests
48623f63f6a564f9b65bdb8f0a26c026b65ea6e8
<ide><path>numpy/lib/tests/test_nanfunctions.py <ide> def test_keepdims(self): <ide> (-3, -1), <ide> ] <ide> ) <add> @pytest.mark.filterwarnings("ignore:All-NaN slice:RuntimeWarning") <ide> def test_keepdims_out(self, axis): <ide> d = np.ones((3, 5, 7, 11)) <ide> # Randoml...
1
Ruby
Ruby
use appropriate type for `test_framework` option
5c421239c3cbbb587a54a18548cf734492f6341a
<ide><path>railties/lib/rails/generators.rb <ide> module Generators <ide> stylesheet_engine: :css, <ide> scaffold_stylesheet: true, <ide> system_tests: nil, <del> test_framework: false, <add> test_framework: nil, <ide> template_engine: :erb <ide> } <ide> }
1
Python
Python
replace double quotes with simple quotes
df85a0ff0b2847295fde06ab5fd6d2bcb217d59e
<ide><path>transformers/modeling_bert.py <ide> class BertLayer(nn.Module): <ide> def __init__(self, config): <ide> super(BertLayer, self).__init__() <ide> self.self_attention = BertAttention(config) <del> if config.get('is_decoder', False): <add> if config.get("is_decoder", False): <id...
1
Python
Python
use tf.float32 instead of "float32"
dfcca061b309082d59d133b3b02f359ac1e591c4
<ide><path>official/transformer/v2/transformer.py <ide> def create_model(params, is_train): <ide> if params["enable_metrics_in_training"]: <ide> logits = metrics.MetricLayer(vocab_size)([logits, targets]) <ide> logits = tf.keras.layers.Lambda(lambda x: x, name="logits", <del> ...
1
Javascript
Javascript
fix a small error in font encoding
a7332d178a53fbc99e5f668f2a71d85a1a4ee82d
<ide><path>pdf.js <ide> var CanvasGraphics = (function() { <ide> } <ide> <ide> var composite = font.composite; <del> var encoding = font.encoding; <ide> var fontSize = current.fontSize; <ide> var charSpacing = current.charSpacing; <ide> var wordSpacing = current.wordSpacing; <ide> va...
1
Python
Python
simplify content_negotiation slightly
5036638d0c8a9f53d865e7b6bfd11b4a5534ba6e
<ide><path>djangorestframework/views.py <ide> def get_renderers(self, format=None): <ide> """ <ide> return [renderer(self) for renderer in self.renderer_classes] <ide> <del> def filter_renderers(self, renderers, format=None): <del> """ <del> If format suffix such as '.json' is supplied...
1
Javascript
Javascript
add missing semicolon in simplehttpserver.js
f787058cee5922066998072f706bd5697df76b45
<ide><path>utils/servers/simplehttpserver.js <ide> http.createServer(handleRequest).listen(port); <ide> <ide> require('dns').lookup(require('os').hostname(), function (err, addr, fam) { <ide> console.log('Running at http://' + addr + ((port === 80) ? '' : ':') + port + '/'); <del>}) <add>}); <ide> <ide> console.lo...
1
Python
Python
add back context_rcnn_lib
1a449bb925115eea0a43d78e7b9af5a3e1f60045
<ide><path>research/object_detection/meta_architectures/context_rcnn_lib.py <ide> from __future__ import print_function <ide> <ide> import tensorflow.compat.v1 as tf <add>import tf_slim as slim <add> <ide> <ide> # The negative value used in padding the invalid weights. <ide> _NEGATIVE_PADDING_VALUE = -100000 <ide> <...
1
Javascript
Javascript
add default to textures
6ee06c715587c498cac381727278adf4da34189c
<ide><path>src/textures/DataTexture2DArray.js <ide> function DataTexture2DArray( data, width, height, depth ) { <ide> <ide> Texture.call( this, null ); <ide> <del> this.image = { data: data, width: width, height: height, depth: depth }; <add> this.image = { data: data || null, width: width || 1, height: height || 1,...
2
Python
Python
fix softlayer tests
8a35031a8f51b7179267b47f530e982f6f60db58
<ide><path>test/compute/test_softlayer.py <ide> def test_list_sizes(self): <ide> class SoftLayerMockHttp(MockHttp): <ide> fixtures = ComputeFileFixtures('softlayer') <ide> <del> def _xmlrpc_v3_SoftLayer_Account_getVirtualGuests( <add> def _xmlrpc_v3__SoftLayer_Account_getVirtualGuests( <ide> self, me...
1
Python
Python
add todo in notes
9115c3ba0a7f2612f5a1ac550d25cc565fb86814
<ide><path>spacy/_matcher2_notes.py <ide> def transition(state, token, matches, nexts): <ide> start = token.i <ide> if is_match: <ide> matches.append((pattern, start, token.i+1)) <del> if keep_state: <del> nexts.append((pattern, i, start)) <ide> if advance_state: <ide> nexts.ap...
1
Ruby
Ruby
remove x11 doctor check
bbcbbcdaa1552ae3c5203c760c2efb7b7137b41c
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_stray_las <ide> s <ide> end <ide> <del>def check_for_x11 <del> unless MacOS::XQuartz.installed? then <<-EOS.undent <del> X11 is not installed. <del> You don't have X11 installed as part of your OS X installation. <del> This is not required for a...
1
PHP
PHP
add @link to file/folder properties
53f7a716ecee064acb7335fd2bfd3d45d15182a1
<ide><path>lib/Cake/Utility/File.php <ide> class File { <ide> * Folder object of the File <ide> * <ide> * @var Folder <add> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::$Folder <ide> */ <ide> public $Folder = null; <ide> <ide> /** <ide> * Filename <ide> * <ide> * @var st...
2
Python
Python
add another test for deployment
50af0714c7bce46df04051af18d6c1ccd6e6a085
<ide><path>test/compute/test_deployment.py <ide> import unittest <ide> <ide> from libcloud.compute.deployment import MultiStepDeployment, Deployment <add>from libcloud.compute.deployment import SSHKeyDeployment <ide> from libcloud.compute.base import Node <ide> from libcloud.compute.types import NodeState <add>from li...
1
Python
Python
fix vectorize to handle scalar return values
e328ecf10f570df8900438ec9e727b3af68c7f84
<ide><path>numpy/lib/function_base.py <ide> def __call__(self, *args): <ide> self.lastcallargs = nargs <ide> <ide> if self.nout == 1: <del> return self.ufunc(*args).astype(self.otypes[0]) <add> ret = self.ufunc(*args) <add> c = self.otypes[0] <add> try: <...
1
Javascript
Javascript
handle more cases with an regexp
bd35396503bd39f89535c67c41d9a3b71b45d173
<ide><path>lib/config/defaults.js <ide> const applyOutputDefaults = ( <ide> "type" in library <ide> ? library.name <ide> : /** @type {LibraryName=} */ (library); <del> const excludePlaceholders = ["[name]"]; <ide> if (Array.isArray(libraryName)) { <del> return libraryName <del> .filter(item => !exclu...
2
Ruby
Ruby
fix build_head? call
cd40af2c5842e83b8dde68dc16ef4e0985b51f52
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def env <ide> def collect_build_flags <ide> build_flags = [] <ide> <del> build_flags << "--HEAD" if build_head? <add> build_flags << "--HEAD" if include?("--HEAD") <ide> build_flags << "--universal" if build_universal? <ide> build_flags << "--build-b...
1
Java
Java
disallow mounting virtual nodes to views
b10474c33320f9ee662192333e9cb0fc42ead349
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatShadowNode.java <ide> protected final void setNodeRegion(NodeRegion nodeRegion) { <ide> } <ide> <ide> /* package */ final void forceMountToView() { <add> if (isVirtual()) { <add> return; <add> } <add> <ide> if (mDrawView == null) { <i...
1
Go
Go
fix stdout and stderr in api client
533bd82e41fee352962cb5ae0a49b9edbdebc25e
<ide><path>api/client/network/remove.go <ide> func runRemove(dockerCli *client.DockerCli, networks []string) error { <ide> status = 1 <ide> continue <ide> } <del> fmt.Fprintf(dockerCli.Err(), "%s\n", name) <add> fmt.Fprintf(dockerCli.Out(), "%s\n", name) <ide> } <ide> <ide> if status != 0 { <ide><path>api/...
5
Text
Text
fix one docs typo
29581a351fe44917266998540ee6fc4d56503f14
<ide><path>docs/GestureResponderSystem.md <ide> If the view is responding, the following handlers can be called: <ide> + `pageX` - The X position of the touch, relative to the root element <ide> + `pageY` - The Y position of the touch, relative to the root element <ide> + `target` - The node id of the el...
1
Javascript
Javascript
resolve process.setgid() error on ubuntu
cc8a33edbc91d5c7c2cadd8f51805b3937f25ead
<ide><path>test/parallel/test-process-uid-gid.js <ide> if (process.getuid() !== 0) { <ide> <ide> // If we are running as super user... <ide> const oldgid = process.getgid(); <del>process.setgid('nobody'); <add>try { <add> process.setgid('nobody'); <add>} catch (err) { <add> if (err.message !== 'setgid group id does ...
1
Java
Java
fix uricomponents.equals() method
5b7969e726edf9080e999730f53f6d449172279d
<ide><path>spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java <ide> * Extension of {@link UriComponents} for hierarchical URIs. <ide> * <ide> * @author Arjen Poutsma <add> * @author Phillip Webb <ide> * @since 3.1.3 <ide> * @see <a href="http://tools.ietf.org/html/rfc3986#section-...
3
Ruby
Ruby
add runtime dependency on libtool
e33c01aab55cf7522596988b09532e941bd3044c
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_deps <ide> when *BUILD_TIME_DEPS <ide> next if dep.build? <ide> next if dep.name == 'autoconf' && f.name =~ /automake/ <del> next if dep.name == 'libtool' && %w{imagemagick libgphoto2 libp11}.any? { |n| f.name == n } <add> next...
1
Text
Text
add missing fat arrow
121f6c2801c3f20be0c66c9e209f5d57044f4839
<ide><path>readme.md <ide> Phases can be imported from `next/constants`: <ide> <ide> ```js <ide> const {PHASE_DEVELOPMENT_SERVER} = require('next/constants') <del>module.exports = (phase, {defaultConfig}){ <add>module.exports = (phase, {defaultConfig}) => { <ide> if(phase === PHASE_DEVELOPMENT_SERVER) { <ide> re...
1
Go
Go
use poll.waiton in authz_plugin_test.go
0492b0997b2fc739a9a6fe6831145297d8149e55
<ide><path>integration/plugin/authz/authz_plugin_test.go <ide> import ( <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docker/pkg/authorization" <ide> "gotest.tools/assert" <add> "gotest.tools/poll" <ide> "gotest.tools/skip" <ide> ) <ide> <ide> func TestAuthZPluginAllowEventStream(t *testing...
1
Python
Python
remove debug statement
aff5117f4695666f1fe9400f159e2a137f806544
<ide><path>src/transformers/tokenization_utils_base.py <ide> def from_pretrained(cls, pretrained_model_name_or_path: Union[str, os.PathLike], <ide> resolved_vocab_files = {} <ide> unresolved_files = [] <ide> for file_id, file_path in vocab_files.items(): <del> print(file_id, file_path...
1
PHP
PHP
rewrited the send method to use cakeemail
5e56f7651000b636e9f60c5246abe087702ce80f
<ide><path>lib/Cake/Controller/Component/EmailComponent.php <ide> <ide> App::uses('Component', 'Controller'); <ide> App::uses('Multibyte', 'I18n'); <add>App::uses('CakeEmail', 'Network'); <ide> <ide> /** <ide> * EmailComponent <ide> public function startup($controller) {} <ide> * @return boolean Success <ide> */ <...
1
PHP
PHP
add method 'hasfailed' to queue job contract
2f01bd8862f8d65e49836a1039f668ee0aeb0e10
<ide><path>src/Illuminate/Contracts/Queue/Job.php <ide> public function isDeletedOrReleased(); <ide> */ <ide> public function attempts(); <ide> <add> /** <add> * Determine if the job has been marked as a failure. <add> * <add> * @return bool <add> */ <add> public function hasFailed(); <a...
2
Text
Text
improve arabic translation
5a4da8fbb2e3efbd928657103b10fd48204c91d9
<ide><path>guide/arabic/react/fragments/index.md <ide> --- <ide> title: Fragments <del>localeTitle: فتات <add>localeTitle: الشظايا <ide> --- <del># فتات <add># الشظايا Fragments <ide> <del>الأجزاء هي طريقة لعرض عناصر متعددة دون استخدام عنصر مجمّع. عند محاولة تقديم عناصر بدون علامة تضمين في JSX ، سترى رسالة الخطأ `Adja...
1
PHP
PHP
fix fixture generation
3a18a0e92f5c8117bd7bcb02a99c6d56ded1dfa6
<ide><path>src/Shell/Task/TestTask.php <ide> protected function _processModel($subject) { <ide> $this->_addFixture($subject->alias()); <ide> foreach ($subject->associations()->keys() as $alias) { <ide> $assoc = $subject->association($alias); <del> $name = $assoc->target()->alias(); <add> $target = $assoc->ta...
2
PHP
PHP
add hasargument and getargument
6a7256bbb2aff963416fd0def8714233fe7ac44b
<ide><path>src/Console/Arguments.php <ide> */ <ide> class Arguments <ide> { <add> /** <add> * Positional argument name map <add> * <add> * @var array <add> */ <add> protected $argNames; <add> <ide> /** <ide> * Positional arguments. <ide> * <ide> class Arguments <ide> * <ide> ...
2
Ruby
Ruby
remove installationerror superclass
081036c81c7f5a8ce96c912fdacf1e1331ddde96
<ide><path>Library/Homebrew/exceptions.rb <ide> def initialize name <ide> end <ide> end <ide> <del>module Homebrew <del> class InstallationError < RuntimeError <del> attr_reader :formula <del> <del> def initialize(formula, message) <del> super message <del> @formula = formula <del> end <del> end...
2
Python
Python
convert tests to pytest style
06afe6b1bf50e1b4bc953c1be7192c0304d96bf6
<ide><path>tests/test_parsers.py <ide> def test_parse(self): <ide> stream = StringIO(self.string) <ide> data = parser.parse(stream) <ide> <del> self.assertEqual(Form(data).is_valid(), True) <add> assert Form(data).is_valid() is True <ide> <ide> <ide> class TestFileUploadParser(TestCase)...
1
PHP
PHP
make default match typehint
dbd7faf11cd1d0f959189466e37fd488e76ae11c
<ide><path>src/View/Input/InputRegistry.php <ide> class InputRegistry { <ide> * @param StringTemplate $templates Templates instance to use. <ide> * @param array $widgets See add() method for more information. <ide> */ <del> public function __construct(StringTemplate $templates, array $widgets = null) { <add> public ...
1
Java
Java
add "mutate" builder to serverwebexchange
c3f22b73646be44d29ae42e0c5dc9531a1a36b31
<ide><path>spring-web/src/main/java/org/springframework/web/server/DefaultServerWebExchangeMutativeBuilder.java <add>/* <add> * Copyright 2002-2016 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with ...
3
Java
Java
increase timeout in integration test
e8d8c3390a0626308b770c5860c11704f5c52e06
<ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java <ide> public void publishEvent(ApplicationEvent event) { <ide> } <ide> <ide> public void expectBrokerAvailabilityEvent(boolean isBrokerAvailable) throws InterruptedException { <del...
1
Text
Text
remove file list
aceb735dbaa7845aeacfdaa62656de558554d8b7
<ide><path>docs/man/README.md <ide> This directory contains the Docker user manual in the Markdown format. <ide> Do *not* edit the man pages in the man1 directory. Instead, amend the <ide> Markdown (*.md) files. <ide> <del># File List <del> <del> docker.md <del> docker-attach.md <del> docker-build.md <del> ...
1
Go
Go
respect auto allocation for --ipv6
83dd2c193a0c5d2f3fd4a050e7e27f048891c1a3
<ide><path>libnetwork/api/api_test.go <ide> func TestCreateDeleteNetwork(t *testing.T) { <ide> } <ide> <ide> dops := GetOpsMap("abc", "") <del> nops := map[string]string{ <del> netlabel.EnableIPv6: "true", <del> } <add> nops := map[string]string{} <ide> nc := networkCreate{Name: "network_1", NetworkType: bridgeNet...
3
Ruby
Ruby
reduce required revision length
632813d9693562af041fd8b98ac459099704a957
<ide><path>Library/Homebrew/rubocops/patches.rb <ide> def patch_problems(patch) <ide> %r{gist\.github\.com/.+/raw}, <ide> %r{gist\.githubusercontent\.com/.+/raw}]) <ide> if regex_match_group(patch, gh_patch_patterns) <del>...
1
Text
Text
add missing methods to api index
fb47694c52d4b7285cdbb80cbe7e42181826cc53
<ide><path>API.md <ide> Geographic projections, shapes and math. <ide> * [*path*.area](https://github.com/d3/d3-geo/blob/master/README.md#path_area) - compute the projected planar area of a given feature. <ide> * [*path*.bounds](https://github.com/d3/d3-geo/blob/master/README.md#path_bounds) - compute the projected pla...
1
Text
Text
move digitalinfinity to emeritus
7eb500b538a5b78650ac9d2a6c5f52353dc4c577
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **David Carlier** &lt;devnexen@gmail.com&gt; <ide> * [devsnek](https://github.com/devsnek) - <ide> **Gus Caplan** &lt;me@gus.host&gt; (he/him) <del>* [digitalinfinity](https://github.com/digitalinfinity) - <del>**Hitesh Ka...
1
Javascript
Javascript
make tests cwd-independent
f1d593cda16dec18d56e76bedb11200d57e74e36
<ide><path>test/doctool/test-doctool-html.js <ide> testData.forEach((item) => { <ide> { <ide> input: preprocessed, <ide> filename: 'foo', <del> template: 'doc/template.html', <add> template: path.resolve(__dirname, '../../doc/template.html'), <ide> nodeVersion: pr...
3
Text
Text
add comment tags to the end of the file
3218e999bd6c06e779cdba51d1a0b9f22a039438
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> - [ ] None of my changes are plagiarized from another source without proper attribution. <ide> - [ ] My article does not contain shortened URLs or affiliate links. <ide> <del>If your pull request closes a GitHub issue, replace the XXXXX below with the issue number. <ad...
1
Ruby
Ruby
remove warning from `video_tag`
c762a24a61a5f54247142d291487206d3187671a
<ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb <ide> def video_tag(*sources) <ide> options = sources.extract_options!.symbolize_keys <ide> public_poster_folder = options.delete(:poster_skip_pipeline) <ide> sources << options <del> multiple_sources_tag_builder("video", s...
1
Javascript
Javascript
fix three.skinnedmesh.clone() bug
9c872b1cab3daed5cb6c564fbe5af836ec22feea
<ide><path>src/objects/SkinnedMesh.js <ide> THREE.SkinnedMesh.prototype = Object.assign( Object.create( THREE.Mesh.prototype <ide> <ide> clone: function() { <ide> <del> return new this.constructor( this.geometry, this.material, this.useVertexTexture ).copy( this ); <add> return new this.constructor( this.geometry,...
1
Python
Python
remove the extra "1"
21aa620b6bd65e8368f86a37e55de8e56fccf917
<ide><path>flask/debughelpers.py <ide> <ide> Various helpers to make the development experience better. <ide> <del>1 :copyright: (c) 2014 by Armin Ronacher. <add> :copyright: (c) 2014 by Armin Ronacher. <ide> :license: BSD, see LICENSE for more details. <ide> """ <ide> from ._compat import implements_to_...
1
PHP
PHP
component method for component aliases
4ab37bb224d7edb21acdf22dcba6ce5272bbfc14
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> public function check($name, ...$parameters) <ide> return call_user_func($this->conditions[$name], ...$parameters); <ide> } <ide> <add> /** <add> * Register a component alias. <add> * <add> * @param string $path <add> * @...
2
Text
Text
update korean transltaion to 58fb322
6a4617a4cde60756531ac7ee808397e096a2ed04
<ide><path>docs/docs/10.1-animation.ko-KR.md <ide> var TodoList = React.createClass({ <ide> ```javascript{3-5} <ide> render: function() { <ide> return ( <del> <ReactCSSTransitionGroup transitionName="example" transitionAppear="true"> <add> <ReactCSSTransitionGroup transitionName="example" transitionAppe...
2
Text
Text
translate 10.4test-utils.md to japanese
75d04862027a323896fe023c6ba68d348b64f760
<ide><path>docs/docs/10.4-test-utils.ja-JP.md <add>--- <add>id: test-utils <add>title: テストユーティリティ <add>permalink: test-utils-ja-JP.html <add>prev: two-way-binding-helpers-ja-JP.html <add>next: clone-with-props-ja-JP.html <add>--- <add> <add>`React.addons.TestUtils` は選んだテストフレームワーク(私たちは[Jest](https://facebook.github.io/j...
1
Python
Python
fix unbound vars in es.syntax_iterators
8df75b229cca93474a8502c7b07ed16e1d575b18
<ide><path>spacy/lang/es/syntax_iterators.py <ide> <ide> def noun_chunks(obj): <ide> doc = obj.doc <del> np_label = doc.vocab.strings['NP'] <add> np_label = doc.vocab.strings.add('NP') <ide> left_labels = ['det', 'fixed', 'neg'] #['nunmod', 'det', 'appos', 'fixed'] <ide> right_labels = ['flat', 'fixe...
1
Ruby
Ruby
fix inreplace string
a8e524d3345271dc350093ed54be008fa436cb0b
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def merge <ide> update_or_add = "update" <ide> if args.keep_old? <ide> mismatches = [] <del> bottle_block_contents = s[/ bottle do(.+?)end\n/m, 1] <add> bottle_block_contents = s.inreplace_string[/ bott...
1
Python
Python
fix oom in config doctest
7ccd6fc47cb95b7a029dbb15375bff999f7fa80f
<ide><path>src/transformers/models/gpt_neox/configuration_gpt_neox.py <ide> class GPTNeoXConfig(PretrainedConfig): <ide> >>> configuration = GPTNeoXConfig() <ide> <ide> >>> # Initializing a model (with random weights) from the gpt-neox-20b style configuration <del> >>> model = GPTNeoXModel(configuration) <a...
1
Mixed
Javascript
expose stream api in movecursor()
795c7482f24c0c2f1b2db8d004b03ea373b6381b
<ide><path>doc/api/readline.md <ide> if (process.stdin.isTTY) <ide> process.stdin.setRawMode(true); <ide> ``` <ide> <del>## readline.moveCursor(stream, dx, dy) <add>## readline.moveCursor(stream, dx, dy[, callback]) <ide> <!-- YAML <ide> added: v0.7.7 <add>changes: <add> - version: REPLACEME <add> pr-url: https:...
3
Java
Java
use bridge methods in reflectivemethodresolver
0b6101478e705f5fff1fa7e1cd2b1159ac60280c
<ide><path>spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java <ide> import static org.junit.Assert.assertTrue; <ide> import static org.junit.Assert.fail; <ide> <del>import java.io.Serializable; <ide> import java.lang.reflect.Field; <ide> import java.lang.reflect.Method; <ide> impor...
2
PHP
PHP
add a test case for extend() before bind()
a9dd69087a5c5a39d02b1306809211e4d230fb66
<ide><path>tests/Container/ContainerTest.php <ide> public function testExtendIsLazyInitialized() <ide> } <ide> <ide> <add> public function testExtendCanBeCalledBeforeBind() <add> { <add> $container = new Container; <add> $container->extend('foo', function($old, $container) <add> { <add> return $old.'bar'; <add>...
1
PHP
PHP
remove pointless code
2d6ee3cdb1c42704bc15a1c08e6fbbab5c08507d
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php <ide> class PaginatorHelperTest extends CakeTestCase { <ide> * @return void <ide> */ <ide> public function setUp() { <add> parent::setUp(); <ide> $controller = null; <ide> $this->View = new View($controller); <ide> $this->Paginator = new Pagina...
1
Ruby
Ruby
use alias nodes to represent table aliases
f528389a5580227f4d173bf4915a98b71befb32e
<ide><path>activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb <ide> def join_target_table(relation, condition) <ide> <ide> def join_has_and_belongs_to_many_to(relation) <ide> join_table = Arel::Table.new( <del> options[:join_table], :engine ...
1
Text
Text
expand docs for using immutable.js with selectors
21b5c51d49288d369b588e038a9f1aacce50b27f
<ide><path>docs/recipes/UsingImmutableJS.md <ide> Do not, however, use Immutable.JS in your dumb components. <ide> <ide> ### Your selectors should return Immutable.JS objects <ide> <del>Always. <add>Always. This practice has several advantages: <add> <add>- It avoids unnecessary rerenders caused by calling `.toJS()` ...
1
Mixed
Javascript
add externs file for closure compiler
9d0a69772c39bfc751ca2000c3b4b3381e51fe93
<ide><path>closure/README.md <add>This file contains externs for use with the Closure compiler (aka JSCompiler). <add>Passing these files to the --externs parameter of a compiler pass allows using <add>type annotations for AngularJS objects. For example, Angular's $scope objects <add>can be annotated as: <add>```js <ad...
2
Ruby
Ruby
wrap everything in class << self
226ea0e9e817a2e449d989d925c36cf6a4cfd67b
<ide><path>actionpack/lib/action_dispatch/http/url.rb <ide> module URL <ide> mattr_accessor :tld_length <ide> self.tld_length = 1 <ide> <del> def self.extract_domain(host, tld_length = @@tld_length) <del> return nil unless named_host?(host) <del> <del> host.split('.').last(1 + tld_length...
1
Text
Text
add my changes to the article
d351655d1382a6aa11767c0555d47a3fd59db6bd
<ide><path>guide/russian/accessibility/index.md <ide> localeTitle: доступность <ide> ## доступность <ide> <ide> **Доступность в Интернете означает, что люди с ограниченными возможностями могут пользоваться Интернетом** . <add>В широком смысле, когда мы говорим, что сайт доступен, мы имеем ввиду, что контент сайта дост...
1
Javascript
Javascript
watch the original value and sanitize later
068d8615d245a70bfde9007606b08a54c6e1cfec
<ide><path>src/ng/directive/ngBind.js <ide> var ngBindTemplateDirective = ['$interpolate', function($interpolate) { <ide> var ngBindHtmlDirective = ['$sce', function($sce) { <ide> return function(scope, element, attr) { <ide> element.addClass('ng-binding').data('$binding', attr.ngBindHtml); <del> scope.$watch(...
1
Javascript
Javascript
change common.fixturesdir to fixtures.path
9b3d6a0d8f77933b38af4d02dfb48f2242f76a50
<ide><path>test/parallel/test-require-exceptions.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> const assert = require('assert'); <add>const fixtures = require('../common/fixtures'); <ide> <ide> // A module with an error in it should throw <ide> assert.throws(function() { <del> require(`${com...
1
Python
Python
fix mypy errors at bfs_shortest_path algo
c5003a2c462c7c775992ad9a733c360126702dd4
<ide><path>graphs/breadth_first_search_shortest_path.py <ide> """ <ide> from __future__ import annotations <ide> <add>from typing import Optional <add> <ide> graph = { <ide> "A": ["B", "C", "E"], <ide> "B": ["A", "D", "E"], <ide> <ide> <ide> class Graph: <del> def __init__(self, graph: dict[str, str], sou...
1
Text
Text
streamline readme intro
89dd21a8ad7725b7a495160feed8e642241b1f00
<ide><path>README.md <ide> <a title="CII Best Practices" href="https://bestpractices.coreinfrastructure.org/projects/29"><img src="https://bestpractices.coreinfrastructure.org/projects/29/badge"></a> <ide> </p> <ide> <del>Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js <del>uses an ev...
1
Ruby
Ruby
extract variant setter to process method
feacb99003813d10425bd861d4dae3a14e4a33fb
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def _process_options(options) <ide> def _process_format(format) <ide> end <ide> <add> def _process_variant(options) <add> end <add> <ide> def _set_html_content_type # :nodoc: <ide> end <ide> <ide> def _set_rendered_content_type(for...
2
Javascript
Javascript
use fixtures.path instead of fixturesdir
b1506f713c8866c47d17b0d7fe76fd5c6697ef42
<ide><path>test/parallel/test-require-resolve.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>const common = require('../common'); <del>const fixturesDir = common.fixturesDir; <add>require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> const assert = require(...
1
Ruby
Ruby
remove unneeded tests
3ca7fa96f7160ae67c289504d7984dcebdedbeae
<ide><path>activesupport/test/deprecation_test.rb <ide> def test_deprecation_with_alternate_method <ide> def test_deprecation_with_explicit_message <ide> assert_deprecated(/you now need to do something extra for this one/) { @dtc.d } <ide> end <del> <del> unless defined?(::MiniTest) <del> def test_assertion...
2
Python
Python
deprecate the oldnumeric and numarray modules
a9a470c841eeb5f0fb2c2ae9639f6c2833f03d00
<ide><path>numpy/__init__.py <ide> <ide> import sys <ide> <add> <add>class ModuleDeprecationWarning(DeprecationWarning): <add> """Module deprecation warning. <add> <add> The nose tester turns ordinary Deprecation warnings into test failures. <add> That makes it hard to deprecate whole modules, because they g...
5
PHP
PHP
expand api docs
5848c0076ae09f2bfe82972a35631947f37a4b79
<ide><path>lib/Cake/Network/Http/Response.php <ide> namespace Cake\Network\Http; <ide> <ide> /** <del> * Implements methods for HTTP responses <add> * Implements methods for HTTP responses. <add> * <add> * All of the following examples assume that `$response` is an <add> * instance of this class. <ide> * <ide> * ###...
1
Go
Go
add setsubenv and getsubenv
8fbdb7b59eba078bf24546686e005cc86a60e493
<ide><path>api.go <ide> func postCommit(srv *Server, version float64, w http.ResponseWriter, r *http.Req <ide> return err <ide> } <ide> var ( <del> config = &Config{} <add> config engine.Env <ide> env engine.Env <ide> job = srv.Eng.Job("commit", r.Form.Get("container")) <ide> ) <del> if err := json.New...
4