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
improve extraceblockmodulesmap performance
ccc6f6c6917c788558380ed35bbf142929c32e91
<ide><path>lib/buildChunkGraph.js <ide> const bySetSize = (a, b) => { <ide> }; <ide> <ide> /** <del> * Extracts simplified info from the modules and their dependencies <add> * Extracts block to modules mapping from all modules <ide> * @param {Compilation} compilation the compilation <del> * @returns {Map<Dependencies...
1
Java
Java
fix checkstyle violation
1c270d8d067bec08bbf419adeb354f96a3731780
<ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/ErrorHandlerIntegrationTests.java <ide> <ide> import java.net.URI; <ide> <del>import org.junit.Assume; <ide> import org.junit.jupiter.api.Assumptions; <ide> import reactor.core.publisher.Mono; <ide>
1
Python
Python
expand airflow.cfg and defaults
7f1a791d271bc8d368be446197e4ba29bccee8fb
<ide><path>airflow/configuration.py <ide> def get(self, section, key): <ide> <ide> # ...then the config file <ide> elif self.has_option(section, key): <del> return ConfigParser.get(self, section, key) <add> return expand_env_var(ConfigParser.get(self, section, key)) <ide> <ide> ...
1
Text
Text
fix npm to v6
85218238310c6a5876c8c47c114189dcf1dcc2ef
<ide><path>docs/devops.md <ide> Provisioning VMs with the Code <ide> 2. Update `npm` and install PM2 and setup `logrotate` and startup on boot <ide> <ide> ```console <del> npm i -g npm <add> npm i -g npm@6 <ide> npm i -g pm2 <ide> pm2 install pm2-logrotate <ide> pm2 startup <ide> Provisioning VMs with ...
1
Text
Text
fix broken url link
77a42ffbc76f9cbf2fca8c9a463b1e755fea0247
<ide><path>syntaxnet/g3doc/syntaxnet-tutorial.md <ide> Note that `stack` here means "words we have already tagged." Thus, this feature <ide> spec uses three types of features: words, suffixes, and prefixes. The features <ide> are grouped into blocks that share an embedding matrix, concatenated together, <ide> and fed i...
1
Ruby
Ruby
adjust alignment of select and sort
c8084244996e6b7a6f0e018f18703ff5c4190ed2
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def print_outdated(formulae) <ide> verbose = ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?("--quiet") <ide> fetch_head = ARGV.fetch_head? <ide> <del> outdated_formulae = formulae <del> .select { |f| f.outdated?(fetch_head: fetch_head)...
1
Text
Text
add doc for converting a textmate theme
147db97d4d27b78bdaa4c29c464ed85c02ee7f61
<ide><path>docs/converting-a-text-mate-theme.md <add>## Converting a TextMate Theme <add> <add>This guide will show you how to convert a [TextMate][TextMate] theme to an Atom <add>theme. <add> <add>### Differences <add> <add>TextMate themes use [plist][plist] files while Atom themes use [CSS][CSS] or <add>[LESS][LESS] ...
1
Javascript
Javascript
use rangeerror/typeerror consistently
b514bd231ed8926a0037b78e85d267a602c2e7cd
<ide><path>lib/zlib.js <ide> for (var ck = 0; ck < ckeys.length; ck++) { <ide> codes[codes[ckey]] = ckey; <ide> } <ide> <del>function isValidFlushFlag(flag) { <del> return flag >= constants.Z_NO_FLUSH && <del> flag <= constants.Z_BLOCK; <add>function isInvalidFlushFlag(flag) { <add> return typeof flag !== ...
3
Go
Go
make extracted fds closeonexec
b0228d94beeeb331f6ac58b289eba4982a42c5d4
<ide><path>pkg/beam/unix.go <ide> func sendUnix(conn *net.UnixConn, data []byte, fds ...int) error { <ide> } <ide> <ide> func extractFds(oob []byte) (fds []int) { <add> // Grab forklock to make sure no forks accidentally inherit the new <add> // fds before they are made CLOEXEC <add> // There is a slight race conditio...
1
Javascript
Javascript
fix error message
7b119f8b38671ca7ee26d369ccc7f629fb9bc3bf
<ide><path>lib/net.js <ide> Stream.prototype.write = function (data, encoding, fd) { <ide> if (this._writeQueue && this._writeQueue.length) { <ide> // Slow. There is already a write queue, so let's append to it. <ide> if (this._writeQueueLast() === END_OF_FILE) { <del> throw new Error('Stream.close() cal...
1
Ruby
Ruby
add specific examples to install cmd
daa87fa10f1c6fda9c4b48509f72fac19b44f878
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> end <ide> <ide> opoo e <add> <add> reason = MissingFormula.reason(name, silent: true) <add> if !args.cask? && reason <add> $stderr.puts reason <add> return <add> end <add> <add> return if name.include?("/") <add> <ide> ...
3
Ruby
Ruby
use render on inlinetemplate
7d5c8505f528f195433693d5074a00f7635955b2
<ide><path>actionpack/lib/action_view/base.rb <ide> def render_file(template_path, use_full_path = nil, local_assigns = {}) #:nodoc: <ide> end <ide> <ide> def render_inline(text, local_assigns = {}, type = nil) <del> InlineTemplate.new(self, text, local_assigns, type).render_template <add> In...
1
Text
Text
add v3.11.0-beta.3 to changelog
d7a2737078dbb389b5ec2356512be9680076a9fd
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.11.0-beta.3 (June 10, 2019) <add> <add>- [#18080](https://github.com/emberjs/ember.js/pull/18080) [BUGFIX] Fix `ember-template-compiler` compatibility with Fastboot. <add>- [#18071](https://github.com/emberjs/ember.js/pull/18071) [BUGFIX] Ensure modifie...
1
Javascript
Javascript
improve performance of hash fn
8e3d6a085ba036b401edbfc4a58409cec88968f6
<ide><path>dist/Immutable.dev.js <ide> function hashValue(o) { <ide> if (o === true) { <ide> return 1; <ide> } <del> if (typeof o.hashCode === 'function') { <del> return o.hashCode(); <del> } <ide> var type = typeof o; <ide> if (type === 'number') { <del> return Math.floor(o) % 2147483647; <add> ...
3
PHP
PHP
check extension before passing to addtestfile()
a96e4397beb0dd5e28ac463b630ef1da9f0240e0
<ide><path>lib/Cake/Test/Case/Console/AllConsoleLibsTest.php <ide> public static function suite() { <ide> if (!$file->isFile() || strpos($file, 'All') === 0) { <ide> continue; <ide> } <del> $suite->addTestFile($file->getRealPath()); <add> $fileName = $file->getRealPath(); <add> if (substr($fileName, -4)...
1
Mixed
Javascript
handle enumerable symbol keys
db2e093e055c9e359745fdf0f2eaf35858455185
<ide><path>doc/api/assert.md <ide> Primitive values are compared with the [Abstract Equality Comparison][] <ide> <ide> Only [enumerable "own" properties][] are considered. The <ide> [`assert.deepEqual()`][] implementation does not test the <del>[`[[Prototype]]`][prototype-spec] of objects, attached symbols, or <del>no...
4
Ruby
Ruby
comment the recorder methods
5d8df14d6dd3f657af28e72e30f9a97ca9607f82
<ide><path>activerecord/lib/active_record/migration/command_recorder.rb <ide> def respond_to?(*args) # :nodoc: <ide> <ide> [:create_table, :rename_table, :add_column, :remove_column, :rename_index, :rename_column, :add_index, :remove_index, :add_timestamps, :remove_timestamps, :change_column, :change_column_defa...
1
Text
Text
fix typo in autoload documentation [ci skip]
fab42177c1e8b6ea265a30ea7566547523422676
<ide><path>guides/source/autoloading_and_reloading_constants.md <ide> INFO. Autoload paths are called _root directories_ in Zeitwerk documentation, bu <ide> <ide> Within an autoload path, file names must match the constants they define as documented [here](https://github.com/fxn/zeitwerk#file-structure). <ide> <del>B...
1
Python
Python
add regression test for changeset
1e3d6e6af36dad10ff4e59d425babc8f6568c9d7
<ide><path>numpy/core/tests/test_regression.py <ide> def check_nonnative_endian_fill(self, level=rlevel): <ide> x.fill(1) <ide> assert_equal(x, np.array([1], dtype=dtype)) <ide> <add> def check_asfarray_none(self, level=rlevel): <add> """Test for changeset r5065""" <add> assert_array_e...
1
Javascript
Javascript
create glimmercomponent subclass
a6856fdaf25afa4fbdf971a54084874eeece896b
<ide><path>packages/ember-htmlbars/lib/glimmer-component.js <del>import EmberObject from "ember-runtime/system/object"; <add>import CoreView from 'ember-views/views/core_view'; <add>import ViewChildViewsSupport from 'ember-views/mixins/view_child_views_support'; <add>import ViewStateSupport from 'ember-views/mixins/vie...
13
Javascript
Javascript
add some utility functions to buffergeometryutils
908fa7354d9f5b9aa0fdd83a391360e058b51552
<ide><path>examples/js/BufferGeometryUtils.js <ide> THREE.BufferGeometryUtils = { <ide> <ide> return new THREE.BufferAttribute( array, itemSize, normalized ); <ide> <add> }, <add> <add> /** <add> * @param {Array<THREE.BufferAttribute>} attributes <add> * @return {Array<THREE.InterleavedBufferAttribute>} <add> */...
1
Javascript
Javascript
replace common.fixturesdir with readkey
86d803b3855ef8cf3b14510f484fdbdb17872533
<ide><path>test/parallel/test-http2-https-fallback.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const { strictEqual } = require('assert'); <del>const {...
1
Ruby
Ruby
generate mailer layouts even if no action is given
7a47690a13f403278036f38b69465167466f6b5f
<ide><path>railties/lib/rails/generators/erb/mailer/mailer_generator.rb <ide> def copy_view_files <ide> view_base_path = File.join("app/views", class_path, file_name) <ide> empty_directory view_base_path <ide> <del> layout_base_path = "app/views/layouts" <add> formats.each do |format| <ad...
2
Python
Python
make fix copy
e7bff0aabe0ef02296da1c9e1fcbb3f3040196ce
<ide><path>src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py <ide> def forward( <ide> src_len = key_states.size(1) <ide> attn_weights = torch.bmm(query_states, key_states.transpose(1, 2)) <ide> <del> assert attn_weights.size() == ( <del> bsz * self.num_heads, <del> ...
1
Java
Java
revise use of resolvabletype in methodparameter
b67dbe66ef43e6faca7886a36ebc6f9e9a1fd8f4
<ide><path>spring-core/src/main/java/org/springframework/core/MethodParameter.java <ide> public MethodParameter(Constructor<?> constructor, int parameterIndex, int nesti <ide> * @param containingClass the containing class <ide> * @since 5.2 <ide> */ <del> MethodParameter(Executable executable, int parameterIndex,...
2
Text
Text
update v5.4 changelog
f0d417bfa7a2e78d70c7382bfc51fe02321f0a3e
<ide><path>CHANGELOG-5.4.md <ide> # Release Notes for 5.4.x <ide> <add>## [Unreleased] <add> <add>### Changed <add>- Moved `tap()` method from `Builder` to `BuildsQueries` ([#20384](https://github.com/laravel/framework/pull/20384)) <add>- Made Blade `or` operator case-insensitive ([#20425](https://github.com/laravel/f...
1
Ruby
Ruby
fix minor typo
cff0c63d034b79c0d9766356f0532110a12a816c
<ide><path>Library/Homebrew/test/test_integration_cmds.rb <ide> def test_bottle <ide> formula_file = CoreFormulaRepository.new.formula_dir/"testball.rb" <ide> formula_file.write <<-EOS.undent <ide> class Testball < Formula <del> url "https://example.com/testabll-0.1.tar.gz" <add> url "https:...
1
Go
Go
lock all calls to hcsshim to prevent close races
740e26f384fe4fe70b5dd2ec5ef80cfdbafac177
<ide><path>daemon/kill.go <ide> func (daemon *Daemon) Kill(container *container.Container) error { <ide> return nil <ide> } <ide> <del> if container.IsRunning() { <del> container.WaitStop(2 * time.Second) <del> if container.IsRunning() { <del> return err <del> } <add> if _, err2 := container.WaitStop(2...
7
Text
Text
fix typo in stream docs
3ef2e7aca41af2f7b44f6d19e344efe1e9ad6c2b
<ide><path>doc/api/stream.md <ide> user programs. <ide> #### `writable._writev(chunks, callback)` <ide> <ide> * `chunks` {Object[]} The data to be written. The value is an array of {Object} <del> that each represent a discreet chunk of data to write. The properties of <add> that each represent a discrete chunk of da...
1
Ruby
Ruby
allow blank queue names
4a1dbba108ece1a957b26d1e6280c1a8cd986fe8
<ide><path>activejob/lib/active_job/queue_name.rb <ide> def queue_as(part_name=nil, &block) <ide> end <ide> <ide> def queue_name_from_part(part_name) #:nodoc: <del> queue_name = part_name.to_s.presence || default_queue_name <add> queue_name = part_name || default_queue_name <ide> name...
2
Javascript
Javascript
use isnone to check tag name
6c446205090966f6838cdd1576e677aadf64411f
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.CoreView = Ember.Object.extend(Ember.Evented, { <ide> // insert a new buffer after the "parent buffer"). <ide> var tagName = this.tagName; <ide> <del> if (tagName === null || tagName === undefined) { <add> if (Ember.isNone(tagName)) { <ide> ...
1
Mixed
Ruby
improve performance of #one? and #many?
b3caf0c99aea48f6738777f722863159058ec3be
<ide><path>activerecord/CHANGELOG.md <add>* Improve performance of `one?` and `many?` by limiting the generated count query to 2 results. <add> <add> *Gonzalo Riestra* <add> <ide> * Don't check type when using `if_not_exists` on `add_column`. <ide> <ide> Previously, if a migration called `add_column` with t...
3
Ruby
Ruby
build native addons from source
02113e2714aae818ee2c43e203137b3cd0b61ced
<ide><path>Library/Homebrew/language/node.rb <ide> def self.std_npm_install_args(libexec) <ide> %W[ <ide> -ddd <ide> --global <add> --build-from-source <ide> --prefix=#{libexec} <ide> #{Dir.pwd}/#{pack} <ide> ] <ide> def self.std_npm_install_args(libexec) <ide> def...
2
PHP
PHP
improve behavior of mysql flag, add config
318a04646baea45d8d3d2e52fbdf08339d56061e
<ide><path>src/Illuminate/Database/Connectors/MySqlConnector.php <ide> <ide> namespace Illuminate\Database\Connectors; <ide> <add>use PDO; <add> <ide> class MySqlConnector extends Connector implements ConnectorInterface <ide> { <ide> /** <ide> public function connect(array $config) <ide> )->execute();...
2
Javascript
Javascript
improve serbian latin translation
e686babb12fdc0a5845eb69775485625b85694e9
<ide><path>lang/rs.js <del>// moment.js language configuration <del>// language : serbian (rs) <del>// author : Limon Monte : https://github.com/limonte <del>// based on (bs) translation by Nedim Cholich <del> <del>(function (factory) { <del> if (typeof define === 'function' && define.amd) { <del> define(['mo...
3
Javascript
Javascript
fix more name collisions
0ad05043f5f268c6241d34997ca8773b1e88357b
<ide><path>packager/blacklist.js <ide> var sharedBlacklist = [ <ide> 'downstream/core/createArrayFromMixed.js', <ide> 'downstream/core/toArray.js', <ide> 'downstream/core/dom/getActiveElement.js', <add> 'downstream/core/dom/focusNode.js', <add> 'downstream/core/dom/getUnboundedScrollPosition.js', <add> 'downst...
1
Python
Python
fix typo in fsmt tokenizer
61d3928bfb3029bceb5be3e68ca3d4bf8456758f
<ide><path>src/transformers/models/fsmt/tokenization_fsmt.py <ide> def moses_tokenize(self, text, lang): <ide> ) <ide> <ide> def moses_detokenize(self, tokens, lang): <del> if lang not in self.cache_moses_tokenizer: <del> moses_detokenizer = self.sm.MosesDetokenizer(lang=self.tgt_lang) <a...
1
Ruby
Ruby
remove the reference to mocha in activemodel
ec7771e7f6a5e33b73c9cc713ed3772a7ef0fb12
<ide><path>activemodel/test/cases/validations/i18n_validation_test.rb <ide> def test_errors_full_messages_uses_format <ide> [ "given option that is not reserved", { format: "jpg" }, { format: "jpg" }] <ide> ] <ide> <del> # validates_confirmation_of w/ mocha <add> # validates_confirmation_of w/ mock...
1
Javascript
Javascript
send data if a delete ajax request is done. fixes
23492fdf9fa6f2c3b8ee85d062fed74297f3c438
<ide><path>src/ajax.js <ide> jQuery.extend({ <ide> <ide> // Send the data <ide> try { <del> xhr.send( type === "POST" || type === "PUT" ? s.data : null ); <add> xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null ); <ide> } catch(e) { <ide> jQuery.handleError(s, xhr, null, e);...
1
Text
Text
add full solution code to jquery challenges
058db4f44994140837780d4e3ecf0b4e6e72441f
<ide><path>guide/english/certifications/front-end-libraries/jquery/change-text-inside-an-element-using-jquery/index.md <ide> title: Change Text Inside an Element Using jQuery <ide> }); <ide> </script> <ide> <del><!-- Only change code above this line. --> <del> <ide> <div class="container-fluid"> <ide> <h3 class="t...
8
Text
Text
remove erroneous comma in cluster explainer
ae59bcb7b125d8fa99878152e6932f95a501442a
<ide><path>doc/api/cluster.md <ide> handles back and forth. <ide> The cluster module supports two methods of distributing incoming <ide> connections. <ide> <del>The first one (and the default one on all platforms except Windows), <add>The first one (and the default one on all platforms except Windows) <ide> is the rou...
1
Javascript
Javascript
fix vertical offset in calendar example
85de0bed709005129c39f04508f2e6222d31b7c8
<ide><path>examples/calendar/dji.js <ide> d3.csv("dji.csv", function(csv) { <ide> pw = 14, <ide> z = ~~((w - pw * 2) / 53), <ide> ph = z >> 1, <del> h = z * 7 + ph * 2; <add> h = z * 7; <ide> <ide> var vis = d3.select("#chart") <ide> .selectAll("svg") <ide> .data(d3.range(1990, ...
2
Go
Go
fix segfault if dns resolv error
3e6c69e5a1dbb428c4a62656f96cfe77c19986f9
<ide><path>registry/session.go <ide> func (r *Session) GetRemoteImageJSON(imgID, registry string, token []string) ([] <ide> <ide> func (r *Session) GetRemoteImageLayer(imgID, registry string, token []string, imgSize int64) (io.ReadCloser, error) { <ide> var ( <del> retries = 5 <del> client *http.Client <del> re...
1
Go
Go
fix unmounts out of container export funcs
02fdc194fc726ef2ce1fa4303e121abd277f8d32
<ide><path>container.go <ide> func (container *Container) ExportRw() (archive.Archive, error) { <ide> if container.runtime == nil { <ide> return nil, fmt.Errorf("Can't load storage driver for unregistered container %s", container.ID) <ide> } <del> defer container.Unmount() <del> <del> return container.runtime.Diff(...
1
PHP
PHP
allow warnings for xml entities
22d4cb3794e78381556636f90849608d4f1864e9
<ide><path>lib/Cake/Test/Case/Utility/XmlTest.php <ide> public function testNoEntityLoading() { <ide> <xxe>&payload;</xxe> <ide> </request> <ide> XML; <del> $result = Xml::build($xml); <del> $this->assertEquals('', (string)$result->xxe); <add> try { <add> $result = Xml::build($xml); <add> $this->assertEquals('...
1
Ruby
Ruby
add tests for inferring option names
3a6f34d27bc654d41c274c4ef469f89c2d93be70
<ide><path>Library/Homebrew/test/cli/parser_spec.rb <ide> end <ide> end <ide> <add> describe "test inferrability of args" do <add> subject(:parser) { <add> described_class.new do <add> switch "--switch-a" <add> switch "--switch-b" <add> switch "--foo-switch" <add> flag "--fla...
1
Python
Python
support regional gke cluster
a4622e19fa0edc983cb0b29ca6a92969d0cb46fd
<ide><path>airflow/providers/google/cloud/hooks/kubernetes_engine.py <ide> def get_operation(self, operation_name: str, project_id: Optional[str] = None) - <ide> :return: The new, updated operation from Google Cloud <ide> """ <ide> return self.get_conn().get_operation( <del> project_i...
4
Javascript
Javascript
fix typo in orderby.js documentation
62e6b4eeb6c4434a25f4c7a4cc2883232d502820
<ide><path>src/ng/filter/orderBy.js <ide> <table class="friend"> <ide> <tr> <ide> <th><a href="" ng-click="predicate = 'name'; reverse=false">Name</a> <del> (<a href ng-click="predicate = '-name'; reverse=false">^</a>)</th> <add> (<a href="" ng-click="pre...
1
Javascript
Javascript
apply default export interop to `next/error`
3f30e26a3a3a919c7f2ca5746488533b961f211d
<ide><path>packages/next/taskfile.js <ide> export async function pages_app(task, opts) { <ide> export async function pages_error(task, opts) { <ide> await task <ide> .source('pages/_error.tsx') <del> .swc('client', { dev: opts.dev, keepImportAssertions: true }) <add> .swc('client', { <add> dev: opts.de...
1
Javascript
Javascript
apply default export interop to pages/_app
bcb0e282018045cba63090cc90451f4e5d08d3d7
<ide><path>packages/next/taskfile.js <ide> export async function nextbuildstatic(task, opts) { <ide> export async function pages_app(task, opts) { <ide> await task <ide> .source('pages/_app.tsx') <del> .swc('client', { dev: opts.dev, keepImportAssertions: true }) <add> .swc('client', { <add> dev: opts....
1
Ruby
Ruby
fix postgresql adapter setup for actioncable tests
be806d8696675b82e4407eeaf8b63f59afd3f00e
<ide><path>actioncable/test/subscription_adapter/postgresql_test.rb <ide> def setup <ide> if Dir.exist?(ar_tests) <ide> require File.join(ar_tests, "config") <ide> require File.join(ar_tests, "support/config") <del> local_config = ARTest.config["arunit"] <add> local_config = ARTest.config["con...
1
Javascript
Javascript
improve error message
b1f81a5e3eea5b4fa6f1f95d44c20a300aab4ae4
<ide><path>lib/webpack.js <ide> const defineMissingPluginError = (pluginName, errorMessage) => { <ide> configurable: false, <ide> enumerable: true, <ide> get() { <del> throw new Error(errorMessage); <add> throw new Error(`RemovedPluginError: ${errorMessage}`); <ide> } <ide> }); <ide> };
1
Python
Python
add ascii encoding on network interface name
c98b364d3c7b0552f14f63f56275574d9b2edd49
<ide><path>glances/glances.py <ide> def displayNetwork(self, network): <ide> # network interface name <ide> self.term_window.addnstr( <ide> self.network_y + 1 + i, self.network_x, <del> network[i]['interface_name'] + ':', 8) <add> ...
1
PHP
PHP
add keys to transform
1232e5e7baf7d6faeed139ff6014bb5b5bc66e10
<ide><path>src/Illuminate/Support/Collection.php <ide> public function take($limit = null) <ide> */ <ide> public function transform(callable $callback) <ide> { <del> $this->items = array_map($callback, $this->items); <add> $this->items = array_map($callback, $this->items, array_keys($this->items)); <ide> <ide> ...
2
Javascript
Javascript
fix bug which only showed up in ie7
3b41979891f5dc6a68e05cd5ed9c355c34774193
<ide><path>src/directives.js <ide> angularWidget("@ng:repeat", function(expression, element){ <ide> var index = 0, childCount = children.length, childScope, lastElement = reference, <ide> collection = this.$tryEval(rhs, reference), is_array = isArray(collection); <ide> for ( var key in collection)...
1
Ruby
Ruby
return a list rather than hash
a901433ee3bd318fd6c87b939ddabe0925830bc9
<ide><path>activerecord/lib/active_record/associations/preloader/through_association.rb <ide> def source_reflection <ide> def associated_records_by_owner <ide> through_records = through_records_by_owner <ide> <del> preloader = Preloader.new(through_records.values.flatten, <add> midd...
1
Javascript
Javascript
move login logic into user model
296387d67e3c4c22d300326cce29b117026520a4
<ide><path>common/models/user.js <ide> import { <ide> getPort <ide> } from '../../server/utils/url-utils.js'; <ide> <del>const debug = debugFactory('fcc:user:remote'); <add>const debug = debugFactory('fcc:models:user'); <ide> const BROWNIEPOINTS_TIMEOUT = [1, 'hour']; <ide> <ide> const createEmailError = redirectTo...
2
Ruby
Ruby
fix safe buffer by adding a dirty status
594603b45f1248380068c4a32ac62283fe061e82
<ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb <ide> def html_safe? <ide> module ActiveSupport #:nodoc: <ide> class SafeBuffer < String <ide> UNSAFE_STRING_METHODS = ["capitalize", "chomp", "chop", "delete", "downcase", "gsub", "lstrip", "next", "reverse", "rstrip", "slice", "squeeze...
2
Java
Java
implement background in flatshadownode
f19acaed4b339e68b4b70c138b76acf9bde45a79
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/DrawBackgroundColor.java <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source ...
4
Text
Text
update the docs
4d4271e6c4088913f3fcbe1e2c8c43d967b3379e
<ide><path>docs/02-Line-Chart.md <ide> var data = { <ide> // Number or array - border width of point when hovered <ide> pointHoverBorderWidth: 2, <ide> <del> // Tension - bezier curve tension of the line. Set to 0 to draw straight Wlines connecting points <del> tension: 0.1, <add> // Tension - bezier curve...
1
Text
Text
translate the toc in french
b8bd0459204be4920198f893f48f88ea3c54cc47
<ide><path>threejs/lessons/fr/threejs-cameras.md <ide> Title: Caméras dans Three.js <ide> Description: Comment utiliser les Cameras dans Three.js <del>TOC: Cameras <add>TOC: Caméras <ide> <ide> Cet article fait partie d'une série consacrée à Three.js. <ide> Le premier article s'intitule [Principes de base](threejs-fun...
1
Javascript
Javascript
remove redundant return in test
6dea193acaa3c548fa2dedf57a4e32c8401a02c2
<ide><path>test/parallel/test-tls-disable-renegotiation.js <ide> const fs = require('fs'); <ide> <ide> // Tests that calling disableRenegotiation on a TLSSocket stops renegotiation. <ide> <del>if (!common.hasCrypto) { <add>if (!common.hasCrypto) <ide> common.skip('missing crypto'); <del> return; <del>} <add> <ide>...
1
Python
Python
handle pytz.ambiguoustimeerror. closes
ea4581f4dedcbbaf697d980da31286514ef56640
<ide><path>celery/utils/timeutils.py <ide> <ide> from kombu.utils import cached_property, reprcall <ide> <del>from pytz import timezone as _timezone <add>from pytz import timezone as _timezone, AmbiguousTimeError <ide> <ide> from celery.five import string_t <ide> <ide> def is_naive(dt): <ide> def make_aware(dt, tz)...
1
Python
Python
add phone_validator method
72aa4cc315ca0a70e09026884556cb724145d12e
<ide><path>strings/indian_phone_validator.py <add>import re <add> <add> <add>def indian_phone_validator(phone: str) -> bool: <add> """ <add> Determine whether the string is a valid phone number or not <add> :param phone: <add> :return: Boolean <add> >>> indian_phone_validator("+91123456789") <add> Fal...
1
Java
Java
allow update of state to receive null objects
c65267ca6ffdf68e9846c0cf912d23162e671758
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> private MountItem updateLocalDataMountItem(int reactTag, ReadableMap newLocalDat <ide> <ide> @DoNotStrip <ide> @SuppressWarnings("unused") <del> private MountItem updateStateMountItem(int reactTag, Object stateWrapper) { <a...
6
Python
Python
fix trailing whitespace
aa7192575646c54a89caa020e3a4390bf8f6dead
<ide><path>libcloud/compute/drivers/dimensiondata.py <ide> def ex_create_firewall_rule(self, network_domain, rule, position): <ide> source_ip.set('address', 'ANY') <ide> else: <ide> source_ip.set('address', rule.source.ip_address) <del> if rule.source.ip_prefix_size is not Non...
1
Go
Go
implement docker rmi with standalone client lib
37d6fee8cfddd8e1afabbdaa232fa64a36494579
<ide><path>api/client/lib/image_remove.go <add>package lib <add> <add>import ( <add> "encoding/json" <add> "net/url" <add> <add> "github.com/docker/docker/api/types" <add>) <add> <add>// ImageRemoveOptions holds parameters to remove images. <add>type ImageRemoveOptions struct { <add> ImageID string <add> Force ...
2
Javascript
Javascript
remove an unused parameter of $location.url
99d95f1639b64c39231448d77209676b54e6f0be
<ide><path>src/ng/location.js <ide> LocationHashbangInHtml5Url.prototype = <ide> * Change path, search and hash, when called with parameter and return `$location`. <ide> * <ide> * @param {string=} url New url without base prefix (e.g. `/path?a=b#hash`) <del> * @param {string=} replace The path that will be c...
1
Javascript
Javascript
remove redundant code, add tests in timers.js
070aac4a87a04380463da4f3730568c3bf5bf729
<ide><path>lib/timers.js <ide> const TIMEOUT_MAX = 2147483647; // 2^31-1 <ide> // value = list <ide> var lists = {}; <ide> <add> <add>// call this whenever the item is active (not idle) <add>// it will reset its timeout. <ide> // the main function - creates lists on demand and the watchers associated <ide> // with the...
2
Ruby
Ruby
move digest cache on to the detailskey object
3239ed48d28f3c0baf4445e6c279107e892b7cab
<ide><path>actionview/lib/action_view/digestor.rb <ide> <ide> module ActionView <ide> class Digestor <del> cattr_reader(:cache) <del> @@cache = Concurrent::Map.new <ide> @@digest_monitor = Monitor.new <ide> <ide> class PerRequestDigestCacheExpiry < Struct.new(:app) # :nodoc: <ide> def c...
4
Mixed
Javascript
destroy sockets after keepalivetimeout
0aa7ef595084bca35f76cb38e28a0efc7a3128a3
<ide><path>doc/api/http.md <ide> Returns `server`. <ide> added: v0.9.12 <ide> --> <ide> <del>* {number} Defaults to 120000 (2 minutes). <add>* {number} Timeout in milliseconds. Defaults to 120000 (2 minutes). <ide> <ide> The number of milliseconds of inactivity before a socket is presumed <ide> to have timed out. <id...
6
Mixed
Ruby
expect xcode 7.1
f6cf1a4025b80a01427570d9b451b9f3fd684a7e
<ide><path>Library/Homebrew/os/mac.rb <ide> def preferred_arch <ide> "6.4" => { :clang => "6.1", :clang_build => 602 }, <ide> "7.0" => { :clang => "7.0", :clang_build => 700 }, <ide> "7.0.1" => { :clang => "7.0", :clang_build => 700 }, <add> "7.1" => { :clang => "7.0", :clang_build => 700 }...
3
Javascript
Javascript
restore csstransitiongroup tests
b918f7fc079a4d0ebc5d028d102e969dfe97f0b6
<ide><path>src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js <ide> describe('ReactCSSTransitionGroup', function() { <ide> expect(a.getDOMNode().childNodes[0].id).toBe('three'); <ide> expect(a.getDOMNode().childNodes[1].id).toBe('two'); <ide> }); <del> return; <add> <ide> it('should work with...
1
Javascript
Javascript
update reactdebughooks to handle composite hooks
e1c7e651feb7d8f0339db5720cfb61b036ee7290
<ide><path>packages/react-debug-tools/src/ReactDebugHooks.js <ide> function useResponder( <ide> function useTransition( <ide> config: SuspenseConfig | null | void, <ide> ): [(() => void) => void, boolean] { <del> nextHook(); <add> // useTransition() composes multiple hooks internally. <add> // Advance the current ...
2
Text
Text
fix russian translate
1b214fdec10125b80744fc2d99dbce2533488719
<ide><path>guide/russian/php/arrays/sorting-arrays/index.md <ide> localeTitle: Сортировка массивов <ide> <ide> PHP предлагает несколько функций для сортировки массивов. На этой странице описаны различные функции и примеры. <ide> <del>### Сортировать() <add>### sort() <ide> <ide> Функция `sort()` сортирует значения м...
1
Javascript
Javascript
use weakmap for hashing objects if available
e345f6677f907ed564ac2629e461aa599cbdde88
<ide><path>dist/Immutable.js <ide> function hashString(string) { <ide> return hash; <ide> } <ide> function hashJSObj(obj) { <del> var hash = obj[UID_HASH_KEY]; <add> var hash = weakMap && weakMap.get(obj); <add> if (hash) <add> return hash; <add> hash = obj[UID_HASH_KEY]; <ide> if (hash) <ide> return has...
3
Javascript
Javascript
show the right error message in the console
6d1277065de850f1a6c1e7d1e9d03d64958829dc
<ide><path>Libraries/Utilities/Alert.js <ide> class AlertAndroid { <ide> } <ide> DialogModuleAndroid.showAlert( <ide> config, <del> (errorMessage) => console.warn(message), <add> (errorMessage) => console.warn(errorMessage), <ide> (action, buttonKey) => { <ide> if (action !== Dialo...
1
Javascript
Javascript
add tests for postmortem and dtrace support
cc1b09d6b7c3cc6b8729804cbf644634ba5d0815
<ide><path>test/pummel/test-dtrace-jsstack.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software without res...
3
Javascript
Javascript
remove logic to prepend wildcard on globs
8c80d13dd15574f37b9142a4a12ac0b45baa7124
<ide><path>spec/workspace-spec.js <ide> describe('Workspace', () => { <ide> expect(resultHandler).not.toHaveBeenCalled(); <ide> }); <ide> <del> it('does not excludes ignored files when core.excludeVcsIgnoredPaths is false', async () => { <add> it('does not exclude ignored files ...
2
Python
Python
fix super naming
1a3d4d8aff8ad3a9fdac6286e449f4756dcaecf6
<ide><path>libcloud/httplib_ssl.py <ide> class SignedHTTPSAdapter(HTTPAdapter): <ide> def __init__(self, cert_file, key_file): <ide> self.cert_file = cert_file <ide> self.key_file = key_file <del> super(SignedX509Adapter, self).__init__() <add> super(SignedHTTPSAdapter, self).__init__(...
1
Java
Java
fix remote context handling in urltag
8b545f47bd625aba2cd7d4d4877498d5a28f4f28
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java <ide> /* <del> * Copyright 2002-2013 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"); <ide> * you may not ...
2
Text
Text
add link to code ide configs
cf888ac105ffd02bbceef02c16d0df548676abd1
<ide><path>doc/guides/contributing/pull-requests.md <ide> To get started, you will need to have `git` installed locally. Depending on <ide> your operating system, there are also a number of other dependencies required. <ide> These are detailed in the [Building guide][]. <ide> <add>Depending on your environment you mig...
1
PHP
PHP
add strict_types to mailer
3a769d5743a3620747fdda0a118312e0175cd570
<ide><path>src/Mailer/AbstractTransport.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide><path>src/Mailer/Email.php <ide> <?php <add>declare(strict_type...
15
PHP
PHP
remove unused constant
2685f4c476ed2415d2e64b52f49bc901b4ae88c5
<ide><path>src/Core/functions.php <ide> <ide> use Cake\Core\Configure; <ide> <del>if (!defined('DS')) { <del> /** <del> * Define DS as short form of DIRECTORY_SEPARATOR. <del> */ <del> define('DS', DIRECTORY_SEPARATOR); <del>} <del> <ide> if (!function_exists('h')) { <ide> /** <ide> * Convenien...
1
Javascript
Javascript
use resolverfactory.get with dep category option
d7dd4ececb2da1ffa043a401502eaa7a00a5a3c6
<ide><path>lib/sharing/ConsumeSharedPlugin.js <ide> class ConsumeSharedPlugin { <ide> /** @type {LazySet<string>} */ <ide> missingDependencies: new LazySet() <ide> }; <del> const resolver = compilation.resolverFactory.get("normal"); <add> const resolver = compilation.resolverFactory.get( <add> "...
2
Javascript
Javascript
fix fs.realpath tests so that they actually run
65242abc3bdc249916a22daad289c005a7d93ead
<ide><path>test/simple/test-fs-realpath.js <ide> function bashRealpath(path, callback) { <ide> } <ide> <ide> // sub-tests: <del>function test_simple_error_callback() { <add>function test_simple_error_callback(cb) { <ide> var ncalls = 0; <ide> <ide> fs.realpath('/this/path/does/not/exist', function(err, s) { <ide>...
1
PHP
PHP
implement a psr7 routing middleware
637b9948e7030b0dd7a185412c833d6d9af5e279
<ide><path>src/Http/Middleware/RoutingMiddleware.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license informati...
2
Go
Go
add support for identity token with token handler
e896d1d7c4459c4b357efdd780e9fb9dd9bc90e0
<ide><path>api/client/trust.go <ide> func (scs simpleCredentialStore) Basic(u *url.URL) (string, string) { <ide> return scs.auth.Username, scs.auth.Password <ide> } <ide> <add>func (scs simpleCredentialStore) RefreshToken(u *url.URL, service string) string { <add> return scs.auth.IdentityToken <add>} <add> <add>func ...
8
Go
Go
add apparmorprofile to container inspect json
fa1484d12c5b66f7db03a9c93002ba3df56cdb4e
<ide><path>daemon/inspect.go <ide> func (daemon *Daemon) ContainerInspect(job *engine.Job) engine.Status { <ide> out.Set("ProcessLabel", container.ProcessLabel) <ide> out.SetJson("Volumes", container.Volumes) <ide> out.SetJson("VolumesRW", container.VolumesRW) <add> out.SetJson("AppArmorProfile", container.AppAr...
1
Ruby
Ruby
allow am/pm in datetime selectors
a869382a9fa241f72a7a73d4a9738531c4c37ba5
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> def select_minute(datetime, options = {}, html_options = {}) <ide> # # generic prompt. <ide> # select_hour(13, :prompt => 'Choose hour') <ide> # <add> # # Generate a select field for hours in the AM/PM format <add> # ...
2
Ruby
Ruby
avoid leak into controller's action_methods
14c196e5a3f78ea4672b691a09ba60524b31fb73
<ide><path>actionpack/lib/abstract_controller/layouts.rb <ide> def _write_layout_method # :nodoc: <ide> RUBY <ide> when Proc <ide> define_method :_layout_from_proc, &_layout <add> protected :_layout_from_proc <ide> <<-RUBY <ide> result = _layout_fro...
2
Ruby
Ruby
fix false positive api credential error
f15681ccd9ae827551906c51c88bf64dd6634333
<ide><path>Library/Homebrew/utils/github.rb <ide> def api_credentials_error_message(response_headers, needed_scopes) <ide> return if response_headers.empty? <ide> <ide> scopes = response_headers["x-accepted-oauth-scopes"].to_s.split(", ") <del> return if scopes.present? <del> <del> needed_human_scopes = ...
1
Text
Text
add release notes for 1.8.2
9b3b6f7f79491de33b0183c2cea2fbe8dc4de06d
<ide><path>CHANGELOG.md <add><a name="1.8.2"></a> <add># 1.8.2 meteoric-mining (2020-10-21) <add> <add>## Bug Fixes <add>- **$sceDelegate:** ensure that `resourceUrlWhitelist()` is identical `trustedResourceUrlList()` <add> ([e41f01](https://github.com/angular/angular.js/commit/e41f018959934bfbf982ba996cd654b1fce88d43...
1
Mixed
Ruby
replace okjson with ruby's core json
4278ec38e49285fe4ca4cb71878eef738154276c
<ide><path>Library/Homebrew/utils/json.rb <del>require "vendor/okjson" <add>require "json" <ide> <ide> module Utils <ide> module JSON <ide> module JSON <ide> Error = Class.new(StandardError) <ide> <ide> def load(str) <del> Vendor::OkJson.decode(str) <del> rescue Vendor::OkJson::Error => e <add> ...
3
PHP
PHP
fix styleci warnings
0f49665023a17b1c1127fc62fb5abb1ed7d709fd
<ide><path>src/Illuminate/Foundation/PackageAssetLoader.php <ide> private function retrieveAssets(string $key) <ide> <ide> foreach ($this->files->directories($this->vendorPath) as $vendor) { <ide> foreach ($this->files->directories($vendor) as $package) { <del> $config = json_decode(...
2
Python
Python
replace assertion with exception
cc034f72eb6137f4c550e911fba67f8a0e1e98fa
<ide><path>src/transformers/models/big_bird/modeling_big_bird.py <ide> def load_tf_weights_trivia_qa(init_vars): <ide> # Load weights from TF model <ide> init_vars = tf.saved_model.load(tf_path).variables if is_trivia_qa else tf.train.list_variables(tf_path) <ide> <del> assert len(init_vars) > 0, "Loaded tr...
40
Javascript
Javascript
update underscore to 1.2.2
90d069b3f1a8df9fb77a8d5c0b3c2d35edc7ba27
<ide><path>vendor/underscore.js <del>// Underscore.js 1.1.7 <add>// Underscore.js 1.2.2 <ide> // (c) 2011 Jeremy Ashkenas, DocumentCloud Inc. <ide> // Underscore is freely distributable under the MIT license. <ide> // Portions of Underscore are inspired or borrowed from Prototype, <ide> // Create ...
1
Text
Text
fix a typo in 5_2_release_notes.md
43366d5b78c886b9d63248310da6c2fcbce69e88
<ide><path>guides/source/5_2_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> select divider `option`. <ide> ([Pull Request](https://github.com/rails/rails/pull/31088)) <ide> <del>* Change `form_with` to generates ids by default. <add>* Change `form_with` to g...
1
Ruby
Ruby
remove dead code
75a60e5104702c8e65d6922cffec6828dc872f48
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> the_tarball, _ = f.fetch <ide> next unless the_tarball.kind_of? Pathname <ide> <del> previous_md5 = f.active_spec.md5.to_s.downcase <del> previous_sha1 = f.active_spec.sha1.to_s.downcase <del> previous_sha2 = f.active_spec.sha256...
1
Text
Text
improve yolo translation
2963af7592ac5b458ee89633273341f0ba93e36f
<ide><path>guide/portuguese/machine-learning/yolo-for-object-detection/index.md <ide> title: YOLO <ide> localeTitle: YOLO <ide> --- <del>## YOLO - Você só olha uma vez método para detecção de objetos em tempo real <add>## YOLO - (You Only Look Once) Método para detecção de objetos em tempo real <ide> <ide> O YOLO é um...
1