content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
add standard console tests
6ff52b69cc6b3fd05aa332623cbc49c5d3eb7ece
<ide><path>test/parallel/test-console-assign-undefined.js <add>'use strict'; <add> <add>// Should be above require, because code in require read console <add>// what we are trying to avoid <add>// set should be earlier than get <add> <add>global.console = undefined; <add> <add>// Initially, the `console` variable is `u...
2
Ruby
Ruby
remove unused parameters
47b2ddd34da7dfabcda06d7fca39c1ca03ea87cc
<ide><path>activerecord/lib/active_record/associations/association_scope.rb <ide> def scope(association, connection) <ide> chain_head, chain_tail = get_chain(reflection, association, alias_tracker) <ide> <ide> scope.extending! Array(reflection.options[:extend]) <del> add_constraints(scope, owner...
1
Ruby
Ruby
use name `tap_audit_exceptions`
e1f463ff26a13eda48f4fcbaf0049a593d2cb8f0
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit <ide> audit_formulae.sort.each do |f| <ide> only = only_cops ? ["style"] : args.only <ide> options = { <del> new_formula: new_formula, <del> strict: strict, <del> online: online, <del> ...
1
Text
Text
add 1.8.1 to changelog
1a14916e45c69dac52773db36ec880ba129394a7
<ide><path>CHANGELOG.md <ide> <ide> * [BREAKING] Require Handlebars 2.0. See [blog post](http://emberjs.com/blog/2014/10/16/handlebars-update.html) for details. <ide> <add>### Ember 1.8.1 (November, 4, 2014) <add> <add>* [BUGFIX] Make sure that `{{view}}` can accept a Ember.View instance. <add>* [BUGFIX] Throw an ass...
1
Python
Python
fix dummy creation for multi-frameworks objects
451df725d6a34b36be5d0c33c18cc98fb6cf9c31
<ide><path>utils/check_dummies.py <ide> _re_backend = re.compile(r"is\_([a-z_]*)_available()") <ide> # Matches from xxx import bla <ide> _re_single_line_import = re.compile(r"\s+from\s+\S*\s+import\s+([^\(\s].*)\n") <del>_re_test_backend = re.compile(r"^\s+if\s+not\s+is\_[a-z_]*\_available\(\)") <add>_re_test_backend =...
1
Ruby
Ruby
fix flakey test due to non-deterministic order
5e2d3db4b5846db56728ddae63bb1eb9a14ed6d3
<ide><path>activerecord/test/cases/associations/eager_test.rb <ide> def test_preloading_with_has_one_through_an_sti_with_after_initialize <ide> end <ide> <ide> def test_preloading_has_many_through_with_implicit_source <del> authors = Author.includes(:very_special_comments).to_a <add> authors = Author.include...
1
Javascript
Javascript
remove console warnings for innerviewnode/ref
3246f68952c8fe065367ef8d2cdf7da5dfff78e4
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> class ScrollView extends React.Component<Props, State> { <ide> }; <ide> <ide> getInnerViewNode(): ?number { <del> console.warn( <del> '`getInnerViewNode()` is deprecated. This will be removed in a future release. ' + <del> 'Use <ScrollVi...
1
Ruby
Ruby
remove pointless private call
ba2717fb19c0cb74b1bbda979a995a33611fad50
<ide><path>Library/Homebrew/version.rb <ide> def to_s <ide> end <ide> alias_method :to_str, :to_s <ide> <del> def self.parse spec <del> version = _parse(spec) <del> Version.new(version, true) unless version.nil? <del> end <del> <ide> protected <ide> <ide> def to_a <ide> @array ||= @version.scan(/\...
1
PHP
PHP
apply fixes from styleci
528551536aab0ec08e297f443cbfca1f870aeadb
<ide><path>src/Illuminate/Events/Dispatcher.php <ide> protected function sortListeners($eventName) <ide> $listeners = isset($this->listeners[$eventName]) <ide> ? $this->listeners[$eventName] : []; <ide> <del> <ide> if (class_exists($eventName, false)) { <ide> $li...
1
PHP
PHP
add basic option parser integration
186d74849dc3ec3848f002c9fae702b3f36b900e
<ide><path>src/Console/Command.php <ide> use Cake\Datasource\ModelAwareTrait; <ide> use Cake\Log\LogTrait; <ide> use Cake\ORM\Locator\LocatorAwareTrait; <add>use RuntimeException; <ide> <ide> /** <ide> * Base class for console commands. <ide> public function __construct() <ide> { <ide> $locator = $this->g...
2
PHP
PHP
add fluent stop
5c7b9b232259fc5872307979f0c7e61ae9a0b72f
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> public function register() <ide> // <ide> } <ide> <del> /** <del> * Register reportable and renderable callbacks. <del> * <del> * @param callable $reportUsing <del> * @param callable $renderUsing <del> * @return $t...
2
Javascript
Javascript
hoist regexp literals in requestshortener
998c2bb210303d1edff1d43c1566bbe5f6d5637a
<ide><path>lib/RequestShortener.js <ide> "use strict"; <ide> <ide> const path = require("path"); <add>const NORMALIZE_SLASH_DIRECTION_REGEXP = /\\/g; <add>const PATH_CHARS_REGEXP = /[-[\]{}()*+?.,\\^$|#\s]/g; <add>const SEPERATOR_REGEXP = /[\/\\]$/; <add> <add> <add>const normalizeBackSlashDirection = (request) => { <...
1
Mixed
Ruby
treat `image/bmp` as a valid content type
a22bb8fa69bd8f25c8bb882ea66309e4e5d059b3
<ide><path>activestorage/app/models/active_storage/blob.rb <ide> def content_type=(value) <ide> super <ide> end <ide> <del> INVALID_VARIABLE_CONTENT_TYPES_DEPRECATED_IN_RAILS_7 = ["image/jpg", "image/pjpeg", "image/bmp"] <add> INVALID_VARIABLE_CONTENT_TYPES_DEPRECATED_IN_RAILS_7 = ["image/jpg", "image/pjpeg"] ...
5
Text
Text
use `asterisk` for unordered list
1fd268ae2b03e3328ba7923a47c6a912b2bc0166
<ide><path>docs/api-guide/fields.md <ide> Defaults to `False` <ide> <ide> ### `source` <ide> <del>The name of the attribute that will be used to populate the field. May be a method that only takes a `self` argument, such as `URLField(source='get_absolute_url')`, or may use dotted notation to traverse attributes, suc...
2
Ruby
Ruby
fix warnings for attribute methods with kwargs
501cb3eb68a9513f7fee58337005cb5cd7230d04
<ide><path>activemodel/lib/active_model/attribute_methods.rb <ide> def method_missing(method, *args, &block) <ide> match ? attribute_missing(match, *args, &block) : super <ide> end <ide> end <add> ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true) <ide> <ide> # +attribute_mi...
2
Python
Python
fix tok2vec begin_training
9987ea9e4ddd920a8035c097b3360a80560352cb
<ide><path>spacy/pipeline/tok2vec.py <ide> def begin_training( <ide> <ide> DOCS: https://spacy.io/api/tok2vec#begin_training <ide> """ <del> docs = [Doc(Vocab(), words=["hello"])] <add> docs = [Doc(self.vocab, words=["hello"])] <ide> self.model.initialize(X=docs) <ide> lin...
1
Java
Java
upgrade tests to ehcache 2.10+
22345f7c259f416834eeedf4a06c8a33f66b92de
<ide><path>spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2016 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <i...
1
Text
Text
add qoala as officially using airflow
e5f177b375dbffc183f40cc642c2b7a53f8836a5
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [QuintoAndar](https://quintoandar.com.br) [[@quintoandar](https://github.com/quintoandar)] <ide> 1. [Quizlet](https://quizlet.com) [[@quizlet](https://github.com/quizlet)] <ide> 1. [Quora](https://www.quora.com/) <add>1. [Qoala](https://www.qoa...
1
PHP
PHP
add test for save many with exceptions
382273f456878397bc99c2ef95f02df5ad1d38e5
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testSaveManyFailed() <ide> } <ide> } <ide> <add> /** <add> * Test saveMany() with failed save due to an exception <add> * <add> * @return void <add> */ <add> public function testSaveManyFailedWithException() <add> { ...
1
Python
Python
fix tablespace command
d985fd7a189cdbfa2093c1225bdeb7eefaeb6978
<ide><path>django/db/backends/schema.py <ide> def alter_db_tablespace(self, model, old_db_tablespace, new_db_tablespace): <ide> """ <ide> Moves a model's table between tablespaces <ide> """ <del> self.execute(self.sql_rename_table % { <add> self.execute(self.sql_retablespace_table ...
1
Javascript
Javascript
fix few comment typos in fs/watchers.js
bc55b57e64a374e5b677644c857c3d26247c72ef
<ide><path>lib/internal/fs/watchers.js <ide> StatWatcher.prototype[kFSStatWatcherStart] = function(filename, <ide> this._handle.unref(); <ide> <ide> // uv_fs_poll is a little more powerful than ev_stat but we curb it for <del> // the sake of backwards compatibility <add> // the sake of backwards compatibility....
1
Javascript
Javascript
use assert for unreachable code
04bef7aabd298d668e3f0dfe97801d4c04a8e395
<ide><path>lib/internal/util/inspect.js <ide> function handleMaxCallStackSize(ctx, err, constructorName, indentationLvl) { <ide> 'special' <ide> ); <ide> } <del> throw err; <add> /* c8 ignore next */ <add> assert.fail(err.stack); <ide> } <ide> <ide> function formatNumber(fn, value) {
1
Text
Text
add link to rel project
99d0412b6ebf1af8e5bd4755f2ec8d1947d8cef5
<ide><path>website/docs/usage/layers-architectures.md <ide> steps required: <ide> machine learning model that sets annotations on the [`Doc`](/api/doc) passing <ide> through the pipeline. <ide> <del><!-- TODO: <Project id="tutorials/ner-relations"> <del> <del></Project> --> <add><Project id="tutorials/rel_compon...
1
Javascript
Javascript
add a console log on boot
c2816764f3098139bab06391d9a3f3f813feec92
<ide><path>examples/universal/server.js <ide> function renderFullPage(html, initialState) { <ide> `; <ide> } <ide> <del>app.listen(port); <add>app.listen(port, (error) => { <add> if (error) { <add> console.error(error); <add> } else { <add> console.info('==> 🌎 Listening on port 8080. Open up http://local...
1
Javascript
Javascript
await configuration loading on windows
92db49314fd2af83365ae7191671ad53fd87be3f
<ide><path>src/main-process/atom-application.js <ide> module.exports = class AtomApplication extends EventEmitter { <ide> ); <ide> }); <ide> <del> // TodoElectronIssue: In electron v2 awaiting the watcher causes some delay <del> // in Windows machines, which affects directly the startup time. <...
1
Javascript
Javascript
resolve perf regression introduced by v8 7.3
147b9d9792fe5772b554f4be77305805f361a42d
<ide><path>lib/_stream_readable.js <ide> function readableAddChunk(stream, chunk, encoding, addToFront) { <ide> } else if (state.objectMode || chunk && chunk.length > 0) { <ide> if (typeof chunk !== 'string' && <ide> !state.objectMode && <del> Object.getPrototypeOf(chunk) !== Buffer.prototy...
2
PHP
PHP
add integration test for
fa9b7f8efe8e81a8d5a754c7e5eaf5f32ce31af0
<ide><path>tests/TestCase/ORM/QueryRegressionTest.php <ide> public function testCountWithUnionQuery() { <ide> $this->assertEquals(2, $query->count()); <ide> } <ide> <add>/** <add> * Integration test when selecting no fields on the primary table. <add> * <add> * @return void <add> */ <add> public function testSelect...
1
Go
Go
add serialize/deserialize for sequence list
75443aaf729e650f9043bda2fac59b1bc62f85e3
<ide><path>libnetwork/bitseq/sequence.go <ide> package bitseq <ide> <ide> import ( <ide> "fmt" <add> <add> "github.com/docker/libnetwork/netutils" <ide> ) <ide> <ide> // Block Sequence constants <ide> func (s *Sequence) Equal(o *Sequence) bool { <ide> return true <ide> } <ide> <add>// ToByteArray converts the sequ...
3
PHP
PHP
take care of more int casts
04ef39217f2edb0a4abee6c903146036f3c53a91
<ide><path>lib/Cake/Cache/Engine/ApcEngine.php <ide> public function write($key, $value, $duration) { <ide> */ <ide> public function read($key) { <ide> $time = time(); <del> $cachetime = intval(apc_fetch($key . '_expires')); <add> $cachetime = (int)apc_fetch($key . '_expires'); <ide> if ($cachetime !== 0 && ($c...
15
Mixed
Ruby
add the fetch method to sessions
84c9f4164bbd5f3d2697949bdd2cdbd15ce6091e
<ide><path>actionpack/CHANGELOG.md <add>* Add `session#fetch` method <add> <add> fetch behaves like [Hash#fetch](http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-fetch). <add> It returns a value from the hash for the given key. <add> If the key can’t be found, there are several options: <add> <add> ...
3
Javascript
Javascript
make stripping of trailing slashes configurable
3878be52f6d95fca4c386d4a5523f3c8fcb04270
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * <ide> * Requires the {@link ngResource `ngResource`} module to be installed. <ide> * <add> * By default, trailing slashes will be stripped from the calculated URLs, <add> * which can pose problems with server backends that d...
2
Ruby
Ruby
fix tests in railties
f3482a9fb17ba33e51d9ae096036f5f712078220
<ide><path>railties/test/generators/plugin_new_generator_test.rb <ide> def test_ensure_that_database_option_is_passed_to_app_generator <ide> end <ide> <ide> def test_generation_runs_bundle_install_with_full_and_mountable <del> result = run_generator [destination_root, "--mountable", "--full"] <add> result = ...
1
Javascript
Javascript
move function creation out of the loop
fb174290c7ed5b2297a5fb53c404cc390478d903
<ide><path>pdf.js <ide> var PartialEvaluator = (function partialEvaluator() { <ide> var patterns = xref.fetchIfRef(resources.get('Pattern')) || new Dict(); <ide> var parser = new Parser(new Lexer(stream), false); <ide> var args = [], argsArray = [], fnArray = [], obj; <add> var getObjBt = functio...
1
Java
Java
delete unused imports
7b13311f0303ad7fb564217f2e1c539ced86f1dd
<ide><path>spring-context/src/test/java/org/springframework/beans/factory/support/QualifierAnnotationAutowireContextTests.java <ide> import java.lang.annotation.RetentionPolicy; <ide> import java.lang.annotation.Target; <ide> <del>import org.junit.Ignore; <ide> import org.junit.Test; <ide> <ide> import org.springfram...
13
PHP
PHP
apply fixes from styleci
e09149aaeb5d58b1fabde3a932578479f7ba86fe
<ide><path>tests/Integration/Foundation/Testing/Concerns/InteractsWithAuthenticationTest.php <ide> use Illuminate\Support\Facades\Auth; <ide> use Illuminate\Support\Facades\Route; <ide> use Illuminate\Support\Facades\Schema; <del>use Illuminate\Auth\EloquentUserProvider; <ide> use Illuminate\Foundation\Auth\User as Aut...
1
Javascript
Javascript
fix flaky test-http2-server-rst-stream.js
3a977fc8c0d13f796c65e05e31bb548217fbc37b
<ide><path>test/parallel/test-http2-server-rst-stream.js <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> const assert = require('assert'); <ide> const http2 = require('http2'); <add>const Countdown = require('../common/countdown'); <ide> <ide> const { <del> HTTP2_HEADER_METHOD, <del> HTTP2_...
1
Javascript
Javascript
improve the strict equal messages
be26c761146db8357653df345e505a624b2153da
<ide><path>lib/internal/assert.js <ide> let white = ''; <ide> const kReadableOperator = { <ide> deepStrictEqual: 'Expected inputs to be strictly deep-equal:', <ide> strictEqual: 'Expected inputs to be strictly equal:', <add> strictEqualObject: 'Expected "actual" to be reference-equal to "expected":', <ide> deepE...
2
Text
Text
create onboarding guide for fcc moderators
d83f0b539f94e1df6b4f3d20ad12dde395f2386b
<ide><path>docs/moderator-onboarding-guide.md <add># The Official freeCodeCamp Moderator Onboarding Guide <add> <add>This guide will help new moderators get up and running with the processes and procedures followed by experienced moderators on the freeCodeCamp community forum and other official communities that we fost...
1
Text
Text
add bundlejs site
bbbbe20c99ee85ca85bea62c40a7afac91b5e22a
<ide><path>docs/going-to-production.md <ide> To reduce the amount of JavaScript sent to the browser, you can use the followin <ide> - [Package Phobia](https://packagephobia.com/) – Find the cost of adding a new dev dependency to your project. <ide> - [Bundle Phobia](https://bundlephobia.com/) - Analyze how much a depen...
1
Text
Text
remove extraneous word
a36b6c4bd30d378f3b734631e00c0b3bc8b4f1d2
<ide><path>CONTRIBUTING.md <ide> Explain the problem and include additional details to help maintainers reproduce <ide> * **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. If you use the keyboard while following the steps, **record the GIF with t...
1
Ruby
Ruby
remove zsh fpath logic
1f8fd2a9ef72a860e5775bcd64b4600d41e3b52e
<ide><path>Library/Homebrew/caveats.rb <ide> def function_completion_caveats(shell) <ide> #{root_dir}/etc/bash_completion.d <ide> EOS <ide> when :zsh <del> site_functions = root_dir/"share/zsh/site-functions" <del> zsh_caveats = +<<~EOS <add> <<~EOS <ide> zsh #{installed.join(...
1
Javascript
Javascript
remove dead code
5f386095aa9ba6ee3b193e0d7ddc74d7ff27a5f9
<ide><path>packages/ember-metal/lib/meta.js <ide> if (HAS_NATIVE_WEAKMAP) { <ide> metaStore.set(obj, meta); <ide> }; <ide> <del> peekMeta = function WeakMap_peekMeta(obj) { <del> if (DEBUG) { <del> counters.peekCalls++ <del> } <del> <del> return metaStore.get(obj); <del> }; <del> <ide> peekMeta...
1
Text
Text
fix repeatvector in captioning example
ca758bef0b265f85eac9e3f1a2b6a54ca6007863
<ide><path>README.md <ide> model.add(Dense(128*4*4, 256)) <ide> model.add(Activation('relu')) <ide> model.add(Dropout(0.5)) <ide> <del>model.add(Repeat(max_caption_len)) <add>model.add(RepeatVector(max_caption_len)) <ide> # the GRU below returns sequences of max_caption_len vectors of size 256 (our word embedding si...
2
Text
Text
react devtools 4.23.0 -> 4.24.0
82762bea55d56afda2dcd00a565941be3798e0ac
<ide><path>packages/react-devtools/CHANGELOG.md <ide> --- <ide> <ide> ### 4.24.0 <del>March 2, 2022 <add>March 10, 2022 <ide> <ide> #### Feature <ide> * Show DevTools backend and frontend versions in UI ([bvaughn](https://github.com/bvaughn) in [#23399](https://github.com/facebook/react/pull/23399)) <ide> * Timeline ...
1
Python
Python
add corrections. use region concept from s3 driver
84af616f89b11c6237587083ff962010e3b42518
<ide><path>libcloud/storage/drivers/scaleway.py <ide> <ide> from libcloud.common.types import LibcloudError <ide> from libcloud.common.aws import SignedAWSConnection <del>from libcloud.storage.drivers.s3 import BaseS3Connection <add>from libcloud.storage.drivers.s3 import BaseS3Connection, S3SignatureV4Connection <ide...
2
PHP
PHP
add collection serialization
baf62ee5a1b55b62e642c40cee08030faebe1781
<ide><path>src/Illuminate/Queue/SerializesModels.php <ide> public function __wakeup() <ide> */ <ide> protected function getSerializedPropertyValue($value) <ide> { <add> if ($value instanceof QueueableCollection) { <add> return new ModelIdentifier($value->getQueueableClass(), $value->getQu...
1
Ruby
Ruby
set border on link_to_image to 0 by default
8712652dd9728a1df9c9f095da03318d804ebac2
<ide><path>actionpack/lib/action_view/helpers/url_helper.rb <ide> def link_to(name, options = {}, html_options = {}, *parameters_for_method_refere <ide> # <ide> # ::alt: If no alt text is given, the file name part of the +src+ is used (capitalized and without the extension) <ide> # ::size: Supplied as...
1
Javascript
Javascript
remove unneeded variables
c013c8899bceb52a500431cbd28272716d45a98a
<ide><path>packages/sproutcore-handlebars/lib/helpers/debug.js <ide> <ide> require('sproutcore-handlebars/ext'); <ide> <del>var get = SC.get, getPath = SC.getPath; <add>var getPath = SC.getPath; <ide> <ide> /** <ide> `log` allows you to output the value of a value in the current rendering <ide><path>packages/sprou...
2
Javascript
Javascript
stereoeffect set eye separation
3d0dc519c6a888fe521907cf54c84e4cd821ba29
<ide><path>examples/js/effects/StereoEffect.js <ide> THREE.StereoEffect = function ( renderer ) { <ide> <ide> }; <ide> <add> this.setEyeSep = function ( eyeSep ) { <add> <add> _stereo.eyeSep = eyeSep; <add> <add> }; <add> <ide> this.render = function ( scene, camera ) { <ide> <ide> scene.updateMatrixWorld(); <i...
2
Python
Python
add missing license hader
a8aef9680c8458508c478cab0a020bc470b10bf3
<ide><path>test/loadbalancer/test_gogrid.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the...
1
Java
Java
use collections.addall where feasible
ed64a10c386060697a6904825f2e2a6f14ff297a
<ide><path>spring-core/src/main/java/org/springframework/core/env/AbstractEnvironment.java <ide> public void merge(ConfigurableEnvironment parent) { <ide> String[] parentActiveProfiles = parent.getActiveProfiles(); <ide> if (!ObjectUtils.isEmpty(parentActiveProfiles)) { <ide> synchronized (this.activeProfiles) {...
2
Javascript
Javascript
remove weird white space not present locally
b2a70fd5baed4aea8500e89a09e785339113cf48
<ide><path>common/app/routes/Challenges/rechallenge/builders.js <ide> export const cssToHtml = cond([ <ide> matchesProperty('ext', 'css'), <ide> flow(padContentWithHTMLCatch, wrapInStyle, setExtToHTML) <ide> ], <del> [ stubTrue, identity ] <add> [ stubTrue, identity ] <ide> ]); <ide> <ide> // FileStream::co...
1
Python
Python
handle inplace generation of __config__
3f025b5400c0855472a772487de8930bac9b5eef
<ide><path>numpy/setupscons.py <ide> #!/usr/bin/env python <add>from os.path import join as pjoin <ide> <ide> def configuration(parent_package='',top_path=None): <ide> from numpy.distutils.misc_util import Configuration <del> config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py') ...
1
Ruby
Ruby
force wine to use stdenv for now
e1ff17ed75aff0bed4f95a20284531b6bf6d98b5
<ide><path>Library/Homebrew/build.rb <ide> def install f <ide> # TODO replace with Formula DSL <ide> # Python etc. build but then pip can't build stuff. <ide> # Scons resets ENV and then can't find superenv's build-tools. <del> stdenvs = %w{fontforge python python3 ruby ruby-enterprise-edition jruby} <add> stde...
1
Java
Java
add support for autowiring jackson handlers
2fccf3ff4409a641c20947e8fca90308f7236c64
<ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java <ide> import com.fasterxml.jackson.databind.DeserializationFeature; <ide> import com.fasterxml.jackson.databind.JsonDeserializer; <ide> import com.fasterxml.jackson.databind.JsonSerializer; <add>import com.faste...
8
Javascript
Javascript
add uri code storage
72e0595ca69612f94b9ad999ab5e00d9b7b4eb73
<ide><path>client/commonFramework.js <ide> common.challengeType = common.challengeType || window.challengeType ? <ide> <ide> common.challengeId = common.challengeId || window.challenge_Id; <ide> <add>common.challengeSeed = common.challengeSeed || window.challengeSeed ? <add> window.challengeSeed : <add> []; <add> <...
1
PHP
PHP
use locatorawaretrait in databasesession
a078e01490dbfab3c4b6101286bac581ca64bf74
<ide><path>src/Network/Session/DatabaseSession.php <ide> namespace Cake\Network\Session; <ide> <ide> use Cake\ORM\Entity; <del>use Cake\ORM\Locator\TableLocator; <add>use Cake\ORM\Locator\LocatorAwareTrait; <ide> use SessionHandlerInterface; <ide> <ide> /** <ide> * DatabaseSession provides methods to be used with Se...
1
Ruby
Ruby
push logic outside the fixtureset constructor
30e987936bb2f6122e64d6664e72907881b4ba11
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def self.create_fixtures(fixtures_directory, fixture_set_names, class_names = {} <ide> <ide> fixture_sets = files_to_read.map do |fs_name| <ide> klass = class_names[fs_name] <add> conn = klass ? klass.connection : connection <...
1
Ruby
Ruby
add test coverage
63790504699ff08088b0f7422eefa6514e3bfc30
<ide><path>activesupport/test/notifications_test.rb <ide> def test_event_is_pushed_even_without_block <ide> <ide> class EventTest < TestCase <ide> def test_events_are_initialized_with_details <del> time = Time.now <add> time = Concurrent.monotonic_time <ide> event = event(:foo, time, time + 0.01,...
1
Python
Python
fix constraints and regularizers
3b2acf76f352bc588a72e0b827d0b9667d43c2b0
<ide><path>keras/constraints.py <ide> def maxnorm_wrap(p): <ide> <ide> def nonneg(p): <ide> p *= T.ge(p,0) <del> return p <ide>\ No newline at end of file <add> return p <add> <add>def identity(g): <add> return g <ide>\ No newline at end of file <ide><path>keras/layers/core.py <ide> import theano.tensor a...
5
Java
Java
use reactmarker for all perf logging in the bridge
95073f8589d893ad25af07e0d0ac6b7c379af9b3
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java <ide> public enum ReactMarkerConstants { <ide> PROCESS_PACKAGES_END, <ide> BUILD_NATIVE_MODULE_REGISTRY_START, <ide> BUILD_NATIVE_MODULE_REGISTRY_END, <del> BUILD_JS_MODULE_CONFIG_START, <del> BUILD_JS_MODULE_CONFIG_END, <...
1
Javascript
Javascript
add stubs for methods that may not be implemented
69d1e7f5aab8afecd10500c158a9f954cb5e8065
<ide><path>packages/sproutcore-touch/lib/system/gesture.js <ide> SC.Gesture = SC.Object.extend( <ide> <ide> touchEnd: function(evt, view, manager) { <ide> if (get(this, 'gestureIsDiscrete')) { <add> <ide> if (this.state === SC.Gesture.BEGAN && this.gestureShouldEnd()) { <ide> set(this, 'state', SC....
1
Text
Text
fix typo in fs
1798674bc99b57f882768ec7bc883c9518350e15
<ide><path>doc/api/fs.md <ide> a string, a {Buffer}, or a {URL} object using the `file:` protocol. <ide> <ide> #### String paths <ide> <del>String from paths are interpreted as UTF-8 character sequences identifying <add>String paths are interpreted as UTF-8 character sequences identifying <ide> the absolute or relati...
1
Python
Python
change realm checkpoint to new ones
3385ca2582f47239efbc7fc45b044d02ff60f736
<ide><path>src/transformers/models/realm/configuration_realm.py <ide> logger = logging.get_logger(__name__) <ide> <ide> REALM_PRETRAINED_CONFIG_ARCHIVE_MAP = { <del> "qqaatw/realm-cc-news-pretrained-embedder": "https://huggingface.co/qqaatw/realm-cc-news-pretrained-embedder/resolve/main/config.json", <del> "qqaa...
6
Text
Text
remove wrong reference in changelog
434a82cfecb82453ebccd1f0160b56dd704a6c4c
<ide><path>CHANGELOG-5.5.md <ide> ## v5.5.31 (2018-01-16) <ide> <ide> ### Fixed <del>- Reverted [#22804](https://github.com/laravel/framework/pull/22804) ([d8a8368](https://github.com/laravel/framework/commit/d8a8368e15e73de50b91b903f6b933c7d05b0e28), [f34926c](https://github.com/laravel/framework/commit/f34926c52ba28...
1
PHP
PHP
add extra assertion to the unit test
41d562557ae561863f3af4302ea032d5cb990f55
<ide><path>tests/TestCase/Database/DriverTest.php <ide> public function testNewCompiler() <ide> */ <ide> public function testNewTableSchema() <ide> { <del> $actual = $this->driver->newTableSchema('articles'); <add> $tableName = 'articles'; <add> $actual = $this->driver->newTableSchema(...
1
Javascript
Javascript
add benchmark for node_v8_coverage
8c9dc4e9e65af92c9b66bbbe1b001430d9110cd9
<ide><path>benchmark/fixtures/coverage-many-branches.js <add>'use strict'; <add> <add>// Exercise coverage of a class. Note, this logic is silly and exists solely <add>// to generate branch coverage code paths: <add>class CoveredClass { <add> constructor(x, y, opts) { <add> this.x = x; <add> this.y = y; <add> ...
2
Python
Python
add a button to set all tasks to skipped
298435a534237e6b58c8f8c4ab92a4b3f8a416e4
<ide><path>airflow/www/views.py <ide> from airflow.utils.log import secrets_masker <ide> from airflow.utils.log.log_reader import TaskLogReader <ide> from airflow.utils.session import create_session, provide_session <del>from airflow.utils.state import State <add>from airflow.utils.state import State, TaskInstanceState...
2
Text
Text
fix typos and sources in working_groups.md
dfe7a17784626bcad67e085cb40b7f21b6c267ba
<ide><path>WORKING_GROUPS.md <ide> A working group needs 3 initial members. These should be individuals <ide> already undertaking the work described in the charter. <ide> <ide> The list of responsibilities should be specific. Once established these <del>responsibilities are no longer governed by the TC and therefor sh...
1
Text
Text
add more examples to opp
9da0c53d1605889bacf8bc882ef853ba3f4e56d1
<ide><path>guide/spanish/design-patterns/object-oriented-programming/index.md <ide> En la programación de procedimientos, simplemente creamos variables y las cambi <ide> Otro concepto extremadamente útil es el de la herencia. La idea es que una clase puede heredar atributos y comportamiento de una clase base. Por ejemp...
1
Javascript
Javascript
remove outdated comment
84a0a50b618da480588cf0c9e60e0fcd9785fdc3
<ide><path>packages/ember-metal/lib/meta.js <ide> function getOrCreateOwnMap(key) { <ide> } <ide> <ide> // Implements a member that is a lazily created POJO with inheritable <del>// values. For member `thing` you get methods `getThing`, <del>// `getOrCreateThing`, and `peekThing`. <add>// values. <ide> function inheri...
1
PHP
PHP
apply fixes from styleci
f319ed27348f7bd1796f6e238e577a8269ca84e2
<ide><path>tests/Notifications/NotificationMailMessageTest.php <ide> public function testTemplate() <ide> <ide> $this->assertEquals('notifications::foo', $this->message->markdown); <ide> } <del> <del>} <ide>\ No newline at end of file <add>}
1
Python
Python
use correct model versions for field operations
8d81c6bc821b614f8c6fec337a7bc6c992816c31
<ide><path>django/db/migrations/operations/fields.py <ide> def state_forwards(self, app_label, state): <ide> state.models[app_label, self.model_name.lower()].fields.append((self.name, self.instance)) <ide> <ide> def database_forwards(self, app_label, schema_editor, from_state, to_state): <del> app_c...
1
PHP
PHP
remove merge method
a07d028d732780249539dc6c33396dafc3bfa173
<ide><path>src/Illuminate/Http/Resources/Json/Resource.php <ide> public function toArray($request) <ide> return $this->resource->toArray(); <ide> } <ide> <del> /** <del> * Merge additional data into the resource array. <del> * <del> * @param array $data <del> * @return $this <del> ...
2
Text
Text
add backticks [ci skip]
4b29d9f1db0dd8fc95829cfefed0687242cfc12b
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Ryuta Kamizono* <ide> <del>* Query cache was unavailable when entering the ActiveRecord::Base.cache block <add>* Query cache was unavailable when entering the `ActiveRecord::Base.cache` block <ide> without being connected. <ide> <ide> *Tsukasa Oishi* ...
2
Javascript
Javascript
add tests for extracting function name
d268cf5a22e8fe4b631a2ce6a484e8d99991fa24
<ide><path>test/parallel/test-debugger-extract-function-name.js <add>'use strict'; <add>const common = require('../common'); <add> <add>common.skipIfInspectorDisabled(); <add> <add>const fixtures = require('../common/fixtures'); <add>const startCLI = require('../common/debugger'); <add> <add>const assert = require('ass...
1
PHP
PHP
add null to docs
2093e7e8e440f90499ececbad759b701cb864853
<ide><path>src/Illuminate/Notifications/Messages/SlackAttachment.php <ide> class SlackAttachment <ide> * Set the title of the attachment. <ide> * <ide> * @param string $title <del> * @param string $url <add> * @param string|null $url <ide> * @return $this <ide> */ <ide> public...
1
Java
Java
handle [native code] stack frames
0ee8786cd8025302284af6df3f63ea843dfb9737
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/StackTraceHelper.java <ide> public static StackFrame[] convertJsStackTrace(String stack) { <ide> String[] stackTrace = stack.split("\n"); <ide> StackFrame[] result = new StackFrame[stackTrace.length]; <ide> for (int i = 0; i < stackTrace.le...
1
Ruby
Ruby
add a bunch of specs for attribute type casting
61916e408d86d19d1659cd8042de6503aecc6c98
<ide><path>lib/arel/algebra/attributes/attribute.rb <ide> def type_cast(value) <ide> def type_cast_to_numeric(value, method) <ide> return unless value <ide> if value.respond_to?(:to_str) <del> if value.to_str =~ /\A(-?(?:0|[1-9]\d*)(?:\.\d+)?|(?:\.\d+))\z/ <del> $1.send(method)...
9
Java
Java
fix precondition assertions
e5878ab15b46079e29043426d38ac7f1543ca377
<ide><path>spring-tx/src/main/java/org/springframework/transaction/reactive/TransactionalOperatorImpl.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <i...
4
Javascript
Javascript
add tests for ignored context modules
926d94a54f1935928d9c50a9202c3b291482c9a1
<ide><path>test/configCases/ignore/only-resource-context/src/ignored-module.js <add>module.exports = "ignored"; <ide><path>test/configCases/ignore/only-resource-context/src/normal-module.js <add>module.exports = "normal"; <ide><path>test/configCases/ignore/only-resource-context/test.js <add>/* globals it */ <add>"use s...
12
Python
Python
remove value error
b01ddc9577b87f057e163d49563ee3f74f4810cf
<ide><path>src/transformers/modeling_tf_utils.py <ide> def booleans_processing(config, **kwargs): <ide> <ide> def input_processing(func, config, input_ids, **kwargs): <ide> """ <del> Process the input of each TensorFlow model including the booleans. <add> Process the input of each TensorFlow model including ...
1
Text
Text
fix typos in changelog
57f29f24e46c845ebbd6d309a3ca5af39ee0f3ec
<ide><path>CHANGELOG.md <ide> be found. <ide> <ide> ### Builder <ide> <del>- Fix a bug where Docker would not used the correct uid/gid when processing the `WORKDIR` command ([#21033](https://github.com/docker/docker/pull/21033)) <add>- Fix a bug where Docker would not use the correct uid/gid when processing the `WORK...
1
Javascript
Javascript
change the repeat buffer.from('blerg'); statments
04cf20261f241530d00bf2e4f8153d55102429d2
<ide><path>test/parallel/test-stream-writable-constructor-set-methods.js <ide> w.on('error', common.expectsError({ <ide> message: 'The _write() method is not implemented' <ide> })); <ide> <del>w.end(Buffer.from('blerg')); <add>const bufferBlerg = Buffer.from('blerg'); <add> <add>w.end(bufferBlerg); <ide> <ide> cons...
1
Text
Text
correct version number formats in changelog
b6312af19f10c72039901fcf930883ad6808161e
<ide><path>CHANGELOG.md <del><a name="1.2.0-rc2"></a> <del># 1.2.0-rc2 barehand-atomsplitting (2013-09-04) <add><a name="1.2.0-rc.2"></a> <add># 1.2.0-rc.2 barehand-atomsplitting (2013-09-04) <ide> <ide> ## Features <ide> <ide> Contains only these fixes cherry-picked from [v1.2.0rc1](#1.2.0rc1). <ide> <ide> <ide> <...
1
Ruby
Ruby
move requirement subclasses to a separate file
a1af5a6cc321d083d718f86d8821217634bff2c6
<ide><path>Library/Homebrew/dependencies.rb <ide> def hash <ide> end <ide> end <ide> <del> <del># A dependency on a language-specific module. <del>class LanguageModuleDependency < Requirement <del> def initialize language, module_name, import_name=nil <del> @language = language <del> @module_name = module_nam...
2
Ruby
Ruby
install invisible files and dirs
21ca138edf584daebf1795a52d6edd6ec34ce605
<ide><path>Library/Homebrew/resource.rb <ide> def unpack(target = nil) <ide> yield ResourceStageContext.new(self, staging) <ide> elsif target <ide> target = Pathname.new(target) unless target.is_a? Pathname <del> target.install Dir["*"] <add> target.install Pathname.pwd.children <ide...
1
Javascript
Javascript
handle smartos bug in test-tls-session-cache
fb4c022fbe0dd3182cfc6d19fe8710402d9697ca
<ide><path>test/parallel/test-tls-session-cache.js <ide> 'use strict'; <del>var common = require('../common'); <add>const common = require('../common'); <ide> <ide> if (!common.opensslCli) { <ide> common.skip('node compiled without OpenSSL CLI.'); <ide> doTest({ tickets: false }, function() { <ide> }); <ide> <ide> ...
1
Javascript
Javascript
fix tests, filter nullish test cases
ac0b340fb2b3617ec626666971743235ce1ce458
<ide><path>test/cases/parsing/nullish-coalescing/test.filter.js <add>var supportsNullishCoalescing = require("../../../helpers/supportsNullishCoalescing"); <add> <add>module.exports = function (config) { <add> return supportsNullishCoalescing(); <add>};
1
PHP
PHP
generate keys of the correct length
97a1ae2f68f692b7f6c3d0dc3bd285d4bef119e0
<ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php <ide> <ide> namespace Illuminate\Foundation\Console; <ide> <del>use Illuminate\Support\Str; <ide> use Illuminate\Console\Command; <ide> use Symfony\Component\Console\Input\InputOption; <ide> <ide> class KeyGenerateCommand extends Command <ide> ...
1
Javascript
Javascript
add more owner context to monitoring
620c1bc2ffa0026bc1ac3a238bd1158cb16a06e7
<ide><path>src/core/ReactComponent.js <ide> function validateExplicitKey(component) { <ide> <ide> var message = 'Each child in an array should have a unique "key" prop. ' + <ide> 'Check the render method of ' + currentName + '.'; <add> <add> var childOwnerName = null; <ide> if (!component.isOwnedB...
1
Javascript
Javascript
fix broken build system for lite and min tasks
522b9cf35f30d0dc83e03f2425c5cbdccfbdc812
<ide><path>build/build/lite.js <del>load("../jquerybuild/js/writeFile.js"); <add>load("../jquery/build/js/writeFile.js"); <ide> <ide> var blockMatch = /\s*\/\*\*\s*((.|\n|\r\n)*?)\s*\*\/\n*/g; <ide> var f = readFile(arguments[0]).replace( blockMatch, "\n" ).replace( /\n\n+/g, "\n\n" ); <ide><path>build/build/min.js <d...
2
Java
Java
replace word "request" with "response"
db424d0bc5b5a8b6d77062039f260edea02bfb66
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java <ide> public interface ClientResponse { <ide> /** <ide> * Return a builder to mutate this response, for example to change <ide> * the status, headers, cookies, and replace or transform the body. <del> * @r...
1
Ruby
Ruby
use pathname.glob when we want pathname objects
a023f10310bfd11379202de87c28a7594fdfd363
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def write_env_script target, env <ide> # Writes a wrapper env script and moves all files to the dst <ide> def env_script_all_files dst, env <ide> dst.mkpath <del> Dir["#{self}/*"].each do |file| <del> file = Pathname.new(file) <add> Pathname.glob("...
2
Python
Python
fix reporting if no dev data with train
4f9657b42b79af4c640b67e1d2740b9d901d5aba
<ide><path>spacy/cli/train.py <ide> from __future__ import unicode_literals, division, print_function <ide> <ide> import json <add>from collections import defaultdict <ide> <ide> from ..util import ensure_path <ide> from ..scorer import Scorer <ide> def train_model(Language, train_data, dev_data, output_path, tagger_...
1
PHP
PHP
use proper instance of relation
2f263dce2948559dafb9944eab146d0721e9d7a5
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> use Illuminate\Database\Eloquent\Relations\HasMany; <ide> use Illuminate\Support\Contracts\JsonableInterface; <ide> use Illuminate\Support\Contracts\ArrayableInterface; <add>use Illuminate\Database\Eloquent\Relations\Relation; <ide> use Illuminate\Database\Elo...
1
Javascript
Javascript
use base plugin for web and node
c2f1c4f123ad6c4e2e83707396714b5448925276
<ide><path>lib/BaseWasmMainTemplatePlugin.js <add>/* <add> MIT License http://www.opensource.org/licenses/mit-license.php <add> Author Tobias Koppers @sokra <add>*/ <add>"use strict"; <add> <add>const Template = require("./Template"); <add>const WebAssemblyImportDependency = require("./dependencies/WebAssemblyImportDep...
3
Ruby
Ruby
simplify load and require tests
cfc467f73e801717325b4addef4fa05798462d5c
<ide><path>activesupport/test/dependencies_test.rb <ide> def test_require_returns_true_when_file_not_yet_required <ide> original_features = $".dup <ide> $:.push(path) <ide> <del> with_loading('autoloading_fixtures/load_path') do <add> with_loading do <ide> assert_equal true, require('loaded_constan...
1
Python
Python
fix a bug in assert_string_equal
eadc135a5f2ab577748188770af66feafe87859d
<ide><path>numpy/testing/tests/test_utils.py <ide> assert_array_almost_equal, build_err_msg, raises, assert_raises, <ide> assert_warns, assert_no_warnings, assert_allclose, assert_approx_equal, <ide> assert_array_almost_equal_nulp, assert_array_max_ulp, <del> clear_and_catch_warnings, run_module_suite <a...
2
Javascript
Javascript
fix paths for ember-source addon
65f35c8a6e37785988c753f4328e9c27d5c6974b
<ide><path>lib/index.js <ide> module.exports = { <ide> files: ['jquery.js'], <ide> }); <ide> <add> let emberSourceDistPath = path.join(__dirname, '..', 'dist'); <ide> var emberFiles = [ <ide> 'ember-runtime.js', <ide> 'ember-template-compiler.js', <ide> module.exports = { <ide> ret...
1