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
Python
Python
add a initial_best parameter in modelcheckpoint
9b920a8ebdb42b5a518b33fac7eee5ce5519bab1
<ide><path>keras/callbacks.py <ide> class ModelCheckpoint(Callback): <ide> options: Optional `tf.train.CheckpointOptions` object if <ide> `save_weights_only` is true or optional `tf.saved_model.SaveOptions` <ide> object if `save_weights_only` is false. <add> initial_best: Initial best value o...
1
Python
Python
add fixture for stringstore
9b6784bab52227fc5e0d5bc6ba0f13fcac64f9ff
<ide><path>spacy/tests/conftest.py <ide> from ..sv import Swedish <ide> from ..hu import Hungarian <ide> from ..tokens import Doc <add>from ..strings import StringStore <ide> from ..attrs import ORTH, TAG, HEAD, DEP <ide> <ide> from io import StringIO <ide> def de_tokenizer(): <ide> def hu_tokenizer(): <ide> retur...
1
Python
Python
use the pytest tmpdir fixture
f7b925a8930ddfc63901fbcdb51be26956096d7e
<ide><path>tests/keras/legacy/models_test.py <ide> epochs = 1 <ide> <ide> <add>@pytest.fixture <add>def in_tmpdir(tmpdir): <add> """Runs a function in a temporary directory. <add> <add> Checks that the directory is empty afterwards. <add> """ <add> with tmpdir.as_cwd(): <add> yield None <add> as...
7
Python
Python
make onetoonesource.target nullable
abe655e061871a568cccf473414e350f3eb61d8b
<ide><path>rest_framework/tests/test_relations_nested.py <ide> class OneToOneTarget(models.Model): <ide> <ide> class OneToOneSource(models.Model): <ide> name = models.CharField(max_length=100) <del> target = models.OneToOneField(OneToOneTarget, related_name='source') <add> target = models.OneToOneField(OneTo...
1
Ruby
Ruby
fix rubocop warnings
bde8d69d6e1129530fa2bbe1e88cf88e350521af
<ide><path>Library/Homebrew/language/node.rb <ide> def self.std_npm_install_args(libexec) <ide> setup_npm_environment <ide> # tell npm to not install .brew_home by adding it to the .npmignore file <ide> # (or creating a new one if no .npmignore file already exists) <del> open(".npmignore", "a") {...
1
Python
Python
add general structure for bert2bert class
75feacf172d5aa26314929c0f3bb54d9e845e00b
<ide><path>transformers/modeling_bert.py <ide> def forward(self, input_ids, attention_mask=None, token_type_ids=None, position_ <ide> outputs = (total_loss,) + outputs <ide> <ide> return outputs # (loss), start_logits, end_logits, (hidden_states), (attentions) <add> <add> <add>@add_start_docstring...
1
Text
Text
fix 1.6.0 release name
70490ef71703d970989b52667567a91981011308
<ide><path>CHANGELOG.md <ide> <a name="1.6.0"></a> <del># 1.6.0 XXXXX-YYYYY (2016-12-08) <add># 1.6.0 rainbow-tsunami (2016-12-08) <ide> <ide> **Here are the full changes for the release of 1.6.0 that are not already released in the 1.5.x branch, <ide> consolidating all the changes shown in the previous 1.6.0 release ...
1
Javascript
Javascript
use slice(0) to clone arrays
28273b7f1ef52e46d5bc23c41bc7a1492cf23014
<ide><path>src/Angular.js <ide> function copy(source, destination){ <ide> destination = source; <ide> if (source) { <ide> if (isArray(source)) { <del> destination = copy(source, []); <add> // http://jsperf.com/copy-array-with-slice-vs-for <add> destination = source.slice(0); <ide> ...
1
Python
Python
add short aliases for global pooling layers
136f1b429201a298173493f83ee8672421ac6e06
<ide><path>keras/layers/pooling.py <ide> def call(self, inputs): <ide> MaxPool2D = MaxPooling2D <ide> AvgPool3D = AveragePooling3D <ide> MaxPool3D = MaxPooling3D <add>GlobalMaxPool1D = GlobalMaxPooling1D <add>GlobalMaxPool2D = GlobalMaxPooling2D <add>GlobalMaxPool3D = GlobalMaxPooling3D <add>GlobalAvgPool1D = GlobalAve...
1
Javascript
Javascript
fix typos in docs
00c92ef2852abcc037091d5b03701586df121b59
<ide><path>packages/ember-routing/lib/router.js <ide> var get = Ember.get, getPath = Ember.getPath, set = Ember.set; <ide> } <ide> <ide> Within `deserialize` you should use this information to retrieve or create an appropriate context <del> object for the given url (e.g. by loading from a remote API or access...
1
Java
Java
fix package cycles in spring-test
90c5f226b62503b492167bcd87361842f73d18b1
<ide><path>spring-test/src/main/java/org/springframework/test/context/web/ServletTestExecutionListener.java <ide> <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <add> <ide> import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; <ide> import or...
1
PHP
PHP
define an api group as an example
b70dbaf7a1fbcd5204eaa62d9064a8a5ceb6f79c
<ide><path>app/Http/Kernel.php <ide> class Kernel extends HttpKernel <ide> \Illuminate\View\Middleware\ShareErrorsFromSession::class, <ide> \App\Http\Middleware\VerifyCsrfToken::class, <ide> ], <add> <add> 'api' => [ <add> 'throttle:60,1' <add> ], <ide> ]; <i...
2
Ruby
Ruby
create gem_root and make js_dependencies private
b1f6be8f49102ed7118baf76c02a11aea37fc1cb
<ide><path>actiontext/lib/generators/action_text/install/install_generator.rb <ide> class InstallGenerator < ::Rails::Generators::Base <ide> source_root File.expand_path("templates", __dir__) <ide> <ide> def install_javascript_dependencies <del> template "#{__dir__}/../../../../../railties/lib/rails...
1
Text
Text
fix whitespace in line chart documentation
8c2bc34b9c36eb1c79b4aa0313cb01012059444d
<ide><path>docs/02-Line-Chart.md <ide> var data = { <ide> borderColor: "rgba(220,220,220,1)", <ide> <ide> // String - cap style of the line. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap <del> borderCapStyle: 'butt', <add> borderCapStyle: 'butt', <ide> <del> ...
1
PHP
PHP
apply fixes from styleci
e7fa0b047b401666a50940c722bba762176a556f
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function fill(array $attributes) <ide> $this->setAttribute($key, $value); <ide> } elseif ($totallyGuarded) { <ide> throw new MassAssignmentException(sprintf( <del> "Add [%s] to fillable prop...
2
Javascript
Javascript
restore change of signatures to opts hashes
c1ffb9ff9b827300d2fdcc7f1f9def81368f588e
<ide><path>test/doctool/test-doctool-html.js <ide> testData.forEach(function(item) { <ide> <ide> fs.readFile(item.file, 'utf8', common.mustCall(function(err, input) { <ide> assert.ifError(err); <del> html(input, 'foo', 'doc/template.html', <add> html( <add> { <add> input: input, <add> fi...
3
Java
Java
improve javadoc for testcontextbootstrapper
0b054f9fbd1e0fd818e62fcc8de05b2150814ee2
<ide><path>spring-test/src/main/java/org/springframework/test/context/TestContextBootstrapper.java <ide> import java.util.List; <ide> <ide> /** <del> * {@code TestContextBootstrapper} defines a strategy SPI for bootstrapping the <add> * {@code TestContextBootstrapper} defines the SPI for bootstrapping the <ide> * <em...
1
Javascript
Javascript
use array.isarray in the loopbackport
438c0b28f212dbf68e695006b677716d5c18025e
<ide><path>src/display/api.js <ide> <ide> import { <ide> assert, createPromiseCapability, deprecated, getVerbosityLevel, <del> info, InvalidPDFException, isArray, isArrayBuffer, isInt, isSameOrigin, <add> info, InvalidPDFException, isArrayBuffer, isInt, isSameOrigin, <ide> loadJpegStream, MessageHandler, Missing...
1
PHP
PHP
fix psalm errors from merge
cbf80ad4ecf281058dcd3cd22cee9a603b3279ca
<ide><path>src/Controller/ComponentRegistry.php <ide> public function __construct(?Controller $controller = null) <ide> /** <ide> * Get the controller associated with the collection. <ide> * <del> * @return \Cake\Controller\Controller|null Controller instance or null if not set. <add> * @return \C...
2
Javascript
Javascript
move resolution logic to shared file
17b2dcda78c5336ac2bc958a3a1b4c82446e60bb
<ide><path>packages/ember-routing/lib/helpers.js <add>require('ember-routing/helpers/shared'); <ide> require('ember-routing/helpers/link_to'); <ide> require('ember-routing/helpers/outlet'); <ide> require('ember-routing/helpers/render'); <ide><path>packages/ember-routing/lib/helpers/action.js <ide> require('ember-handle...
3
Python
Python
fix some failing tests due to name-space issues
727434278079ab9e6f6c50c505f7372379ee4814
<ide><path>numpy/ma/tests/test_core.py <ide> def test_hardmask_again(self): <ide> def test_hardmask_oncemore_yay(self): <ide> "OK, yet another test of hardmask" <ide> "Make sure that harden_mask/soften_mask//unshare_mask retursn self" <del> a = ma.array([1,2,3], mask=[1, 0, 0]) <add> a...
1
Javascript
Javascript
make response.settimeout() work
7b26322f6da2910e36febc318c8df249228dcea6
<ide><path>lib/_http_client.js <ide> function socketOnData(d) { <ide> socket.removeListener('end', socketOnEnd); <ide> socket.removeListener('drain', ondrain); <ide> <del> if (req.timeoutCb) <del> socket.removeListener('timeout', req.timeoutCb); <add> if (req.timeoutCb) socket.removeListener('timeou...
3
Text
Text
fix incorrect link
4aececb645c041532b17eea50c94c0500d7be48f
<ide><path>docs/docs/05-reusable-components.md <ide> var MyComponent = React.createClass({ <ide> <ide> Components are the best way to reuse code in React, but sometimes very different components may share some common functionality. These are sometimes called [cross-cutting concerns](http://en.wikipedia.org/wiki/Cross-...
1
Ruby
Ruby
fix comment about env overrides
9bc60b80b6e277050e750132bc775bdc3fb28017
<ide><path>Library/Homebrew/unittest.rb <ide> require 'keg' <ide> require 'utils' <ide> <del># these are defined in env.rb usually, but we don't want to break our actual <add># these are defined in bin/brew, but we don't want to break our actual <ide> # homebrew tree, and we do want to test everything :) <ide> HOMEBRE...
1
Java
Java
fix issue with spel in mvc namespace
62f2858f7f6da9eb84366b3c5f4f693838d159f3
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/InterceptorsBeanDefinitionParser.java <ide> import org.springframework.beans.factory.config.BeanDefinition; <ide> import org.springframework.beans.factory.parsing.BeanComponentDefinition; <ide> import org.springframework.beans.factory.parsing...
2
Javascript
Javascript
add enabletransitiontracing feature flag
811634762a389bce81bdc145f84bdf247910b8dd
<ide><path>packages/shared/ReactFeatureFlags.js <ide> export const consoleManagedByDevToolsDuringStrictMode = true; <ide> <ide> // Only enabled in www builds <ide> export const enableUseMutableSource = false; <add> <add>export const enableTransitionTracing = false; <ide><path>packages/shared/forks/ReactFeatureFlags.na...
9
Mixed
Python
add more len() tests
1e8fe8efcfc499c85079659708f4afefe92ec66b
<ide><path>DIRECTORY.md <ide> * [Boyer Moore Search](https://github.com/TheAlgorithms/Python/blob/master/strings/boyer_moore_search.py) <ide> * [Check Pangram](https://github.com/TheAlgorithms/Python/blob/master/strings/check_pangram.py) <ide> * [Is Palindrome](https://github.com/TheAlgorithms/Python/blob/master/...
3
PHP
PHP
unify irregular rules and simply code
d2819137fe5fe10dc54b8ee7f281b3763877fe94
<ide><path>src/Utility/Inflector.php <ide> class Inflector { <ide> * <ide> * @var array <ide> */ <del> protected static $_plural = array( <del> 'rules' => array( <del> '/(s)tatus$/i' => '\1tatuses', <del> '/(quiz)$/i' => '\1zes', <del> '/^(ox)$/i' => '\1\2en', <del> '/([m|l])ouse$/i' => '\1ice', <del> '/(...
2
Javascript
Javascript
remove unnecessary extra init steps
1934358663ad16773082a44974da91f0be78b4e3
<ide><path>src/core/core.controller.js <ide> module.exports = function(Chart) { <ide> me.resize(true); <ide> } <ide> <del> // Make sure controllers are built first so that each dataset is bound to an axis before the scales <del> // are built <add> // Make sure scales have IDs and are built before we build...
1
Ruby
Ruby
add missing test for blob#purge
267fdcc4a4de0675fb4fffdbc1b711b2146a6ea6
<ide><path>activestorage/test/models/blob_test.rb <ide> class ActiveStorage::BlobTest < ActiveSupport::TestCase <ide> end <ide> end <ide> <add> test "purge removes from external service" do <add> blob = create_blob <add> <add> blob.purge <add> assert_not ActiveStorage::Blob.service.exist?(blob.key) <ad...
1
Python
Python
add s3_log_folder config option
dc1d9db66a36d28db2ca850ffe62833a2e81a18c
<ide><path>airflow/configuration.py <ide> class AirflowConfigException(Exception): <ide> 'plugins_folder': None, <ide> 'security': None, <ide> 'donot_pickle': False, <add> 's3_log_folder': '' <ide> }, <ide> 'webserver': { <ide> 'base_url': 'http://localhost:8080', <ide> cl...
1
PHP
PHP
remove dead code from event tests
3a4ba41752327656702de1a30fc4cd48073f05ab
<ide><path>tests/Events/EventsDispatcherTest.php <ide> public function handle() <ide> } <ide> } <ide> <del>class TestDispatcherQueuedHandlerCustomQueue implements ShouldQueue <del>{ <del> public function handle() <del> { <del> // <del> } <del> <del> public function queue($queue, $handler, array ...
1
Mixed
Javascript
expose original console
19795d83833de7489afec583f8773ee9c0452f70
<ide><path>doc/api/inspector.md <ide> started. <ide> If wait is `true`, will block until a client has connected to the inspect port <ide> and flow control has been passed to the debugger client. <ide> <add>### inspector.console <add> <add>An object to send messages to the remote inspector console. <add> <add>```js <ad...
5
Python
Python
remove error message if the server is not running
8069133fe95dde34ca8e3e74310df1466bf74733
<ide><path>glances/stats.py <ide> def _load_plugin(self, plugin_script, args=None, config=None): <ide> else: <ide> self._plugins[name] = plugin.Plugin(args=args) <ide> # Set the disable_<name> to False by default <del> setattr(self.args, <del> 'disab...
1
Text
Text
redirect morphnet project to the new repo.
75a3b2f6b59fae11136102ebb1027abc73cbc6ea
<ide><path>research/morph_net/README.md <del># MorphNet: Fast & Simple Resource-Constrained Structure Learning of Deep Networks <add># MorphNet project has moved to https://github.com/google-research/morph-net. <ide> <del>[TOC] <del> <del>## What is MorphNet? <del> <del>MorphNet is a method for learning deep network s...
1
Javascript
Javascript
remove test messages for assert.strictequal
f4cab35dd88da512ddc2c82dcb6eda8e3db85774
<ide><path>test/parallel/test-crypto-cipher-decipher.js <ide> function testCipher1(key) { <ide> let txt = decipher.update(ciph, 'hex', 'utf8'); <ide> txt += decipher.final('utf8'); <ide> <del> assert.strictEqual(txt, plaintext, 'encryption and decryption'); <add> assert.strictEqual(txt, plaintext); <ide> <ide> ...
1
Ruby
Ruby
fix a fragile test on `action_view/render`
243e6e4b2a53253d5ca734415564c419c5632f12
<ide><path>actionview/test/template/render_test.rb <ide> def setup_view(paths) <ide> <ide> def test_render_without_options <ide> e = assert_raises(ArgumentError) { @view.render() } <del> assert_match "You invoked render but did not give any of :partial, :template, :inline, :file or :text option.", e.message <...
1
Go
Go
apply context changes to the client
fe53be4e1785ab4d8cadf246e5f2de419f337adc
<ide><path>api/client/build.go <ide> import ( <ide> "runtime" <ide> "strings" <ide> <add> "golang.org/x/net/context" <add> <ide> "github.com/docker/docker/api" <ide> "github.com/docker/docker/builder/dockerignore" <ide> Cli "github.com/docker/docker/cli" <ide> func (cli *DockerCli) CmdBuild(args ...string) error ...
17
Text
Text
fix outdated log readme
8e273efdd14e6440f9aab06a15f804b898d8941e
<ide><path>src/Log/README.md <ide> multiple logging backends using a simple interface. With the `Log` class it is <ide> possible to send a single message to multiple logging backends at the same time <ide> or just a subset of them based on the log level or context. <ide> <del>By default, you can use Files or Syslog as...
1
Text
Text
explain sass extensions in css docs
e0d0c2ebb5c05237103f683982d78f78525b64fb
<ide><path>docs/basic-features/built-in-css-support.md <ide> npm install sass <ide> <ide> Sass support has the same benefits and restrictions as the built-in CSS support detailed above. <ide> <add>> **Note**: Sass supports [two different syntaxes](https://sass-lang.com/documentation/syntax), each with their own exten...
1
Javascript
Javascript
fix error of ci linter
83c2956679ac6ae6e55c9abfe05a3ab6eb6e6ffa
<ide><path>spec/context-menu-manager-spec.js <del>const ContextMenuManager = require('../src/context-menu-manager'); <del> <del>describe('ContextMenuManager', function() { <del> let [contextMenu, parent, child, grandchild] = []; <del> <del> beforeEach(function() { <del> const { resourcePath } = atom.getLoadSetting...
2
Java
Java
replace constant exceptions with inlined ones
9f857c1f16bf634ec2e595d74c0ad39ccaaff98b
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/DispatcherHandler.java <ide> protected void initStrategies(ApplicationContext context) { <ide> @Override <ide> public Mono<Void> handle(ServerWebExchange exchange) { <ide> if (this.handlerMappings == null) { <del> return Mono.error(HANDLER_N...
4
Ruby
Ruby
simplify cask search
3aac0fef7eaeff3cc50b873c921d80dca0ba6810
<ide><path>Library/Homebrew/cask/cask.rb <ide> def self.all <ide> end.compact <ide> end <ide> <del> def self.full_names <del> Tap.flat_map do |tap| <del> next tap.cask_tokens.blank? <del> next tap.cask_tokens if tap.user == "Homebrew" <del> <del> name = tap.name <del> tap....
2
Javascript
Javascript
add test case for render.compile instrumentation
99cca3ea366ac20ebbba830bcd261b25e420272d
<ide><path>packages/ember-glimmer/lib/environment.js <ide> import { FACTORY_FOR } from 'container'; <ide> import { default as ActionModifierManager } from './modifiers/action'; <ide> <ide> function instrumentationPayload(name) { <del> return { object: name }; <add> return { object: `component:${name}` }; <ide> } <id...
2
Text
Text
fix changelog entry [ci skip]
0df82a64530ee208fc2a7d1b19af75a39c1a44a0
<ide><path>actioncable/CHANGELOG.md <del>* Add ActiveSupport::Notifications and ActiveSupport::LogSubscriber to ActionCable::Channel <add>* Add ActiveSupport::Notifications to ActionCable::Channel. <ide> <ide> *Matthew Wear* <ide>
1
Javascript
Javascript
use specification order for chunks
d42d52b3889ba1f2cd9b7075011060916272c4c8
<ide><path>lib/Compilation.js <ide> Compilation.prototype._addModuleChain = function process(context, dependency, on <ide> }; <ide> <ide> Compilation.prototype.addEntry = function process(context, entry, name, callback) { <add> var slot = { <add> name: name, <add> module: null <add> }; <add> this.preparedChunks.push...
1
Ruby
Ruby
restore useful documentation removed at
1bc30b18b729d2decd626cfa8383ed4eb4ee29b8
<ide><path>activerecord/lib/active_record/model_schema.rb <ide> module ClassMethods <ide> # +table_name_suffix+ is appended. So if you have "myapp_" as a prefix, <ide> # the table name guess for an Invoice class becomes "myapp_invoices". <ide> # Invoice::Lineitem becomes "myapp_invoice_lineitems". <ad...
1
PHP
PHP
fix cache in mix method.
948666108a51a906ad6787897e8f957ffbc5f833
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function mix($path, $manifestDirectory = '') <ide> $manifestDirectory = "/{$manifestDirectory}"; <ide> } <ide> <del> $manifestKey = $manifestDirectory ? $manifestDirectory : '/'; <del> <ide> if (file_exists(public_path($manifestD...
1
Javascript
Javascript
switch `view` to `react.forwardref`
3e534b9aab5156adac67762877b2457408fe8934
<ide><path>Libraries/Animated/src/createAnimatedComponent.js <ide> const invariant = require('fbjs/lib/invariant'); <ide> <ide> function createAnimatedComponent(Component: any): any { <ide> invariant( <del> typeof Component === 'string' || <add> typeof Component !== 'function' || <ide> (Component.prototy...
4
Javascript
Javascript
fix references to the old reactid syntax
989eb2e7d9d0f58030e1514959113649c6e1a38b
<ide><path>src/core/ReactInstanceHandles.js <ide> var ReactInstanceHandles = { <ide> <ide> /** <ide> * Traverse a node ID, calling the supplied `cb` for each ancestor ID. For <del> * example, passing `.r[0].{row-0}.[1]` would result in `cb` getting called <del> * with `.r[0]`, `.r[0].{row-0}`, and `.r[0].{row...
7
Text
Text
add a deprecation message for removing lttng
740c426b21dde1befa1dbae9bb01174a9e25b525
<ide><path>doc/api/deprecations.md <ide> Type: Runtime <ide> <ide> This was never a documented feature. <ide> <add> <add><a id="DEP0101"></a> <add>### DEP0101: --with-lttng <add> <add>Type: End-of-Life <add> <add>The `--with-lttng` compile time option is removed. <add> <ide> [`--pending-deprecation`]: cli.html#cli_pe...
1
Text
Text
clarify instructions for reg form step 26
6185deec06a9da5d923c29ed467d1ae9cf33d606
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fab8367d35de04e5cb7929.md <ide> dashedName: step-26 <ide> <ide> # --description-- <ide> <del>To finish this `fieldset` off, link the text `terms and conditions` to the following location: <add>To fi...
1
Python
Python
ignore overrides for pipe names in config argument
6f9e2ca81ff541a0ab53b8d77100adaac8699219
<ide><path>spacy/errors.py <ide> class Warnings(metaclass=ErrorsWithCodes): <ide> W118 = ("Term '{term}' not found in glossary. It may however be explained in documentation " <ide> "for the corpora used to train the language. Please check " <ide> "`nlp.meta[\"sources\"]` for any relevant lin...
3
Ruby
Ruby
use current bottle versions to calculate new ones
6010763159e2005069328b864ae6daf55b3cb288
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_current? f <ide> end <ide> <ide> def bottle_new_version f <del> return 0 unless f.bottle_version <add> return 0 unless bottle_current? f <ide> f.bottle_version + 1 <ide> end <ide>
1
Python
Python
handle cyrillic combining diacritics
a9559e7435f99648aa0004f301692f1a2dfe72fe
<ide><path>spacy/lang/bg/__init__.py <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <ide> from .lex_attrs import LEX_ATTRS <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <del> <add>from ..punctuation import COMBINING_DIACRITICS_TOKENIZER_INFIXES <add>from ..punctuation import COMBINING_DIACRITIC...
8
Ruby
Ruby
fix active model errors add documentation
5e3b9f27ce6599d77771cfed7915a4a98a1ed915
<ide><path>activemodel/lib/active_model/errors.rb <ide> def group_by_attribute <ide> # person.errors.messages <ide> # # => {:name=>["can't be blank"]} <ide> # <del> # person.errors.add(:name, :too_long, { count: 25 }) <add> # person.errors.add(:name, :too_long, count: 25) <ide> # person....
1
Javascript
Javascript
fix lint error
e64f50725b4fe726c83f8fb5d26511c7cabf41dc
<ide><path>src/reopen-project-menu-manager.js <ide> export default class ReopenProjectMenuManager { <ide> <ide> this.app.setJumpList([ <ide> { <del> type:'custom', <del> name:'Recent Projects', <add> type: 'custom', <add> name: 'Recent Projects', <ide> items: this.projects...
1
Python
Python
add regression test for
62ff128888bce33cf87e083a921ddac65a2f1879
<ide><path>spacy/tests/regression/test_issue3951.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import pytest <add>from spacy.matcher import Matcher <add>from spacy.tokens import Doc <add> <add> <add>@pytest.mark.xfail <add>def test_issue3951(en_vocab): <add> """Test that combinations...
1
Python
Python
remove erronous print
dc66cce16da6793efe4a4a4dcdd18db62c859abb
<ide><path>rest_framework/utils/representation.py <ide> def smart_repr(value): <ide> <ide> # Representations like u'help text' <ide> # should simply be presented as 'help text' <del> print type(value), value <ide> if value.startswith("u'") and value.endswith("'"): <ide> return value[1:] <ide>
1
Ruby
Ruby
add descriptions to option declarations
e2e4f93f06b37390ec7dbf4f8e6f498a068c1eaa
<ide><path>Library/Homebrew/cmd/search.rb <ide> module Homebrew <ide> }, <ide> }.freeze <ide> <del> def search(argv = ARGV) <del> CLI::Parser.parse(argv) do <del> switch "--desc" <add> def search_args <add> Homebrew::CLI::Parser.new do <add> usage_banner <<~EOS <add> `search`, `-S` [<opt...
1
Java
Java
ensure result ready in asyncdispatch in mockmvc
6842fd7fb954e751fb6c310f7183527fd1876653
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockMvcRequestBuilders.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License");...
1
Python
Python
forget parent meta when forgetting a chain
d15286b002d2c840cf77864104a271f0649cda51
<ide><path>celery/backends/base.py <ide> def _store_result(self, task_id, result, state, <ide> <ide> if request and getattr(request, 'group', None): <ide> meta['group_id'] = request.group <add> if request and getattr(request, 'parent_id', None): <add> meta['parent_id'] = request.p...
6
Text
Text
add after_commit/after_rollback to callback list
16f481b28bb1299e5aa5c610ca4c90be8482edc7
<ide><path>guides/source/active_record_callbacks.md <ide> Here is a list with all the available Active Record callbacks, listed in the sam <ide> * `around_create` <ide> * `after_create` <ide> * `after_save` <add>* `after_commit/after_rollback` <ide> <ide> ### Updating an Object <ide> <ide> Here is a list with all the...
1
PHP
PHP
add setmethod() to route
45474a4a9ca10e7c16db40180d086e4144006a9b
<ide><path>src/Routing/Route/Route.php <ide> <ide> use Cake\Http\ServerRequest; <ide> use Cake\Routing\Router; <add>use InvalidArgumentException; <ide> use Psr\Http\Message\ServerRequestInterface; <ide> <ide> /** <ide> class Route <ide> */ <ide> protected $_extensions = []; <ide> <add> /** <add> * Va...
2
Javascript
Javascript
apply exposure boost to aces filmic tone mapping
c3003c04a185c4d1f6b8c426d4b6520d237f3676
<ide><path>examples/js/shaders/ACESFilmicToneMappingShader.js <ide> console.warn( "THREE.ACESFilmicToneMappingShader: As part of the transition to E <ide> * <ide> * ACES Filmic Tone Mapping Shader by Stephen Hill <ide> * source: https://github.com/selfshadow/ltc_code/blob/master/webgl/shaders/ltc/ltc_blit.fs <add> *...
3
Javascript
Javascript
add comment about where to locate grunt todo's
3ffaa0fecb571f1c5a5d2ca212e9a009fe0571a4
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> }, <ide> tests: { <ide> // TODO: Once .jshintignore is supported, use that instead. <add> // issue located here: https://github.com/gruntjs/grunt-contrib-jshint/issues/1 <ide> src: [ "test/data/{test,testinit,testrunner}.js", "tes...
1
PHP
PHP
add typehints to event classes
6580616bc48421aae3e7bff922f5875e0505bcaf
<ide><path>src/Console/CommandRunner.php <ide> public function getEventManager(): EventManagerInterface <ide> * @param \Cake\Event\EventManagerInterface $events The event manager to set. <ide> * @return $this <ide> */ <del> public function setEventManager(EventManagerInterface $events) <add> public...
41
Go
Go
use gocheck asserts instead of fatal
eedeeaf49c49cc75ab30a01676736637224ddd8a
<ide><path>integration-cli/docker_cli_inspect_test.go <ide> import ( <ide> "time" <ide> <ide> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/pkg/integration/checker" <ide> "github.com/docker/docker/runconfig" <ide> "github.com/go-check/check" <ide> ) <ide> <add>func checkValidGraphDriver(c *...
1
Go
Go
move some `api` package functions away
565aa41392b01251dfc9398eb69c23bdd8ea64e6
<ide><path>api/common.go <ide> import ( <ide> "encoding/json" <ide> "encoding/pem" <ide> "fmt" <del> "mime" <ide> "os" <ide> "path/filepath" <del> "sort" <del> "strconv" <del> "strings" <ide> <del> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/pkg/ioutils...
4
Javascript
Javascript
add extra checks
31d0d5af8e30362bb46a177afa4d74c2474c8e46
<ide><path>test/simple/test-http-client-escape-path.js <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> var http = require('http'); <add>var util = require('util'); <ide> <ide> first(); <ide> <ide> function third() { <ide> } <ide> <ide> function test(path, expected, next) { <del> ...
1
Text
Text
fix typo on readme.md
398dcd42813dc4074bfc319259d543e77fd1d090
<ide><path>packages/next/README.md <ide> You can use [micro proxy](https://github.com/zeit/micro-proxy) as your local pro <ide> } <ide> ``` <ide> <del>For the production deployment, you can use the [path alias](https://zeit.co/docs/features/path-aliases) feature if you are using [ZEIT now](https://zeit.co/now). Otherw...
1
PHP
PHP
fix typo in class name
9dd8090268421ded5d58acdec7a208a3091b2da3
<ide><path>src/Cache/Engine/ApcEngine.php <ide> public function clear($check) <ide> if ($check) { <ide> return true; <ide> } <del> if (class_exists('APCIterator', false)) { <add> if (class_exists('APCUIterator', false)) { <ide> $iterator = new APCUIterator( <ide> ...
1
Text
Text
fix a typo in fs.md
e24fc95398e89759b132d07352b55941e7fb8474
<ide><path>doc/api/fs.md <ide> On Windows, opening an existing hidden file using the `'w'` flag (either <ide> through `fs.open()` or `fs.writeFile()` or `fsPromises.open()`) will fail with <ide> `EPERM`. Existing hidden files can be opened for writing with the `'r+'` flag. <ide> <del>A call to `fs.ftruncate()` or `fsP...
1
PHP
PHP
implement foreign key generation in sqlite
160fd0445903ca629986c6b78d2bfa11e63a87bb
<ide><path>lib/Cake/Database/Schema/SqliteSchema.php <ide> public function columnSql(Table $table, $name) { <ide> public function constraintSql(Table $table, $name) { <ide> $data = $table->constraint($name); <ide> if ( <add> $data['type'] === Table::CONSTRAINT_PRIMARY && <ide> count($data['columns']) === 1 &&...
2
Text
Text
add information about memory leaks
72fe8fc5193ec31ea84208236b731d93e68eef69
<ide><path>client/src/pages/guide/english/cplusplus/dynamic-memory-allocation/index.md <ide> title: Dynamic Memory Allocation <ide> `delete ptr2`; <ide> <ide> ### Memory Leaks <del> Leaks are caused when you fail to deallocate dynamic memory you allocated via `New` operator at the end of your program. If you do not...
1
Ruby
Ruby
fix argument error in valid use case
16141e7effe453cfe94ae274dadaf4b3ecf6767a
<ide><path>Library/Homebrew/extend/os/mac/software_spec.rb <ide> def uses_from_macos(deps, bounds = {}) <ide> deps = Hash[*bounds.shift] <ide> end <ide> <del> bounds.transform_values! { |v| MacOS::Version.from_symbol(v) } <add> bounds = bounds.transform_values { |v| MacOS::Version.from_symbol(v) } <ide...
2
Mixed
Javascript
fix deprecation code
4afd503465b5dd3b5d58d07043a99e9557bbfd53
<ide><path>doc/api/deprecations.md <ide> Type: Runtime <ide> Setting the TLS ServerName to an IP address is not permitted by <ide> [RFC 6066][]. This will be ignored in a future version. <ide> <del><a id="DEP0XXX"></a> <del>### DEP0XXX: using REPLServer.rli <add><a id="DEP0124"></a> <add>### DEP0124: using REPLServer....
3
Text
Text
update changelog [ci skip]
d5b9345a01f94f80953088c56d2e64058784afe9
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.10.0-beta.2 (UNRELEASED) <add> <add>- [#17846](https://github.com/emberjs/ember.js/pull/17846) [BUGFIX] Fix issues with template-only components causing errors in subsequent updates. <add> <ide> ### v3.10.0-beta.1 (April 02, 2019) <ide> <ide> - [#17836...
1
Javascript
Javascript
make section key optional
8d373f3186be28fecb2798f8f8d3f23f5147b7ea
<ide><path>Libraries/Lists/SectionList.js <ide> import type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList' <ide> type Item = any; <ide> <ide> type SectionBase<SectionItemT> = { <del> // Must be provided directly on each section. <add> /** <add> * The data for rendering items in this section. ...
2
Javascript
Javascript
fix reftests after
7bb65bab7ffd6cf65083c59115c87f30d38c4c55
<ide><path>src/pdf.js <ide> import { <ide> VerbosityLevel, <ide> } from "./shared/util.js"; <ide> import { AnnotationLayer } from "./display/annotation_layer.js"; <add>import { AnnotationStorage } from "./display/annotation_storage.js"; <ide> import { apiCompatibilityParams } from "./display/api_compatibility.js"; <i...
2
Javascript
Javascript
update extrudegeometry.js
bf50f022aa2d209070e1d50801c8534c9553b3da
<ide><path>src/extras/geometries/ExtrudeGeometry.js <ide> ExtrudeGeometry.prototype.addShape = function ( shape, options ) { <ide> //for ( b = bevelSegments; b > 0; b -- ) { <ide> <ide> t = b / bevelSegments; <del> z = bevelThickness * ( 1 - t ); <add> z = bevelThickness * Math.cos ( t * Math.PI / 2 ); // curved...
1
PHP
PHP
add the ability to pass parameters to seeders call
4d5c8cafda2f6b143b530f51bc62c3c841724342
<ide><path>src/Illuminate/Database/Seeder.php <ide> abstract class Seeder <ide> * <ide> * @param array|string $class <ide> * @param bool $silent <add> * @param mixed ...$params <ide> * @return $this <ide> */ <del> public function call($class, $silent = false) <add> public functio...
2
Javascript
Javascript
fix flaky test-zlib-unused-weak.js
f96dffb7aef50aa46531577ec24eb19474207d96
<ide><path>test/parallel/test-zlib-unused-weak.js <ide> const zlib = require('zlib'); <ide> <ide> // Tests that native zlib handles start out their life as weak handles. <ide> <add>global.gc(); <ide> const before = process.memoryUsage().external; <ide> for (let i = 0; i < 100; ++i) <ide> zlib.createGzip();
1
Text
Text
add typescript 'abstract classes' guide.
e5de964ff54e6ee6b4dd02bf577e8559ab3d0c94
<ide><path>guide/english/typescript/abstract-classes/index.md <add>--- <add>title: Abstract Classes <add>--- <add> <add># Abstract Classes <add> <add>Abstract classes are super classes which can be derived by other classes.The class marked with the `abstract` keyword is the abstract class and it can't be instantiate di...
1
Python
Python
add comment on how to get exact msvcr version
ff611feb90d7bd130aa94634ba6e370f9227bf47
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def build_import_library(): <ide> # system. <ide> <ide> # XXX: ideally, we should use exactly the same version as used by python, but I <del># have no idea how to obtain the exact version. <add># have no idea how to obtain the exact version from python. We could use...
1
Python
Python
fix simple typo, optionnal -> optional
a6dbea1e25351bc60298bf40b2edaaad1276259e
<ide><path>glances/static_list.py <ide> def load(self, config): <ide> for s in ['name', 'port', 'alias']: <ide> new_server[s] = config.get_value(self._section, '%s%s' % (postfix, s)) <ide> if new_server['name'] is not None: <del> # Manage optionnal ...
1
Text
Text
update remote api responses and minor fixes
286fe69d5376add77dc31833dc3c2fcc9639dd17
<ide><path>docs/reference/api/docker_remote_api.md <ide> list of DNS options to be used in the container. <ide> * `GET /containers/json` will return `ImageID` of the image used by container. <ide> * `POST /exec/(name)/start` will now return an HTTP 409 when the container is either stopped or paused. <ide> * `GET /conta...
4
PHP
PHP
remove new setter
d3c0063fb728b0586318e38669267c5b4ad115a3
<ide><path>src/Datasource/QueryTrait.php <ide> public function getEagerLoaded() <ide> return $this->_eagerLoaded; <ide> } <ide> <del> /** <del> * Sets the query instance to be an eager loaded query. <del> * <del> * @param bool $value Whether or not to eager load. <del> * @return $this <d...
3
Go
Go
avoid double close of agentinitdone
b29ba21551d65e525b7bc819a40eac2c636fab1f
<ide><path>libnetwork/agent.go <ide> func (c *controller) agentSetup() error { <ide> } <ide> } <ide> <del> if c.agent != nil { <add> c.Lock() <add> if c.agent != nil && c.agentInitDone != nil { <ide> close(c.agentInitDone) <add> c.agentInitDone = nil <ide> } <add> c.Unlock() <ide> <ide> return nil <ide> } <id...
2
Ruby
Ruby
fix cleanup check
f7d3710d12247c0c5bb07264834d6503216cba6b
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def cleanup_before <ide> git "rebase", "--abort" <ide> git "reset", "--hard" <ide> git "checkout", "-f", "master" <del> git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY_PATH"] <add> git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" <i...
1
Mixed
PHP
pass console command to database seeders
de37fe0e07eba65c276c13bcb09e2be5ff956b1b
<ide><path>readme.md <ide> - Added `pop` and `shift` methods to Eloquent collection. <ide> - Allow `Input::get` to be used on JSON requests to give unified API across request types. <ide> - Allow `sync` to also update the other pivot table attributes. <add>- Pass console `Command` instance to database seeders. <ide> <...
5
Text
Text
add lundibundi to collaborators
a65c633738e3f7f7818065e7ea67ad05032e0096
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Luigi Pinca** &lt;luigipinca@gmail.com&gt; (he/him) <ide> * [lucamaraschi](https://github.com/lucamaraschi) - <ide> **Luca Maraschi** &lt;luca.maraschi@gmail.com&gt; (he/him) <add>* [lundibundi](https://github.com/l...
1
Javascript
Javascript
use errno constant with err_fs_eisdir
275153ddc4fe0e49d5f73807edaa6eca0c3041cb
<ide><path>lib/internal/fs/utils.js <ide> const kStats = Symbol('stats'); <ide> const assert = require('internal/assert'); <ide> <ide> const { <del> F_OK = 0, <del> W_OK = 0, <del> R_OK = 0, <del> X_OK = 0, <del> COPYFILE_EXCL, <del> COPYFILE_FICLONE, <del> COPYFILE_FICLONE_FORCE, <del> O_APPEND, <del> O_CREA...
1
Text
Text
fix broken markup in changelog [ci skip]
378dd7a4a8f00aee7c2a00c66e66c2cf12a402fe
<ide><path>activesupport/CHANGELOG.md <ide> <ide> Before: <ide> <del> 'foobar'.truncate(5).frozen? <del> => true <del> 'foobar'.truncate(6).frozen? <del> => false <add> 'foobar'.truncate(5).frozen? <add> # => true <add> 'foobar'.truncate(6).frozen? <add> # => false ...
1
Python
Python
add files via upload (#396)
5be32f4022135a10585cf094b6fb8118dd87a2f6
<ide><path>ciphers/Atbash.py <add>def Atbash(): <add> inp=raw_input("Enter the sentence to be encrypted ") <add> output="" <add> for i in inp: <add> extract=ord(i) <add> if extract>=65 and extract<=90: <add> output+=(unichr(155-extract)) <add> elif extract>=97 and extract<=122:...
1
PHP
PHP
use https for various other urls
8d4a13a3d1e3adf6d8d4f2d086386ca9bfa1259c
<ide><path>src/Cache/Engine/ApcEngine.php <ide> public function clear($check) <ide> * @param string $key Identifier for the data. <ide> * @param mixed $value Data to be cached. <ide> * @return bool True if the data was successfully cached, false on failure. <del> * @link http://php.net/manual/en/func...
34
Ruby
Ruby
convert metafiles class to module
5b64fa6fb179bee5e45e16bb4f860579d76d4210
<ide><path>Library/Homebrew/metafiles.rb <ide> require "set" <ide> <del>class Metafiles <add>module Metafiles <ide> # https://github.com/github/markup#markups <ide> EXTENSIONS = Set.new %w[ <ide> .adoc .asc .asciidoc .creole .html .markdown .md .mdown .mediawiki .mkdn <ide> class Metafiles <ide> news notes...
1
Ruby
Ruby
simplify parts and tests
b2f98c13a3308e6db618d6f3f9f706cbc19f13fd
<ide><path>actionpack/lib/action_view/body_parts/future.rb <ide> module ActionView <ide> module BodyParts <ide> class Future <del> def initialize(&block) <del> @block = block <del> @parts = [] <del> end <del> <ide> def to_s <ide> finish <ide> body <ide> end <del...
4
PHP
PHP
add exception handling to integrationtestcase
45b93ef78e72c34d4ead6dba976cebaa4a9d1ee3
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> protected function _sendRequest($url, $method, $data = null) { <ide> $request = $this->_buildRequest($url, $method, $data); <ide> $response = new Response(); <ide> $dispatcher = DispatcherFactory::create(); <del> $dispatcher->dispatch($request, $response); <...
3
Ruby
Ruby
add docs to collectionassociation#any?
d029d50d48aa90655877749a57f316f6063fccf8
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def empty? <ide> size.zero? <ide> end <ide> <add> # Returns true if the collections is not empty. <add> # Equivalent to +!collection.empty?+. <add> # <add> # class Person < ActiveRecord::Base <add...
1