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 | rename a to old_schedules | 88e52d88b343e83f08b28292bffd057068ab2034 | <ide><path>celery/beat.py
<ide> def tick(self, event_t=event_t, min=min, heappop=heapq.heappop,
<ide> return min(verify[0], max_interval)
<ide> return min(adjust(next_time_to_run) or max_interval, max_interval)
<ide>
<del> def schedules_equal(self, a, b):
<del> if set(a.keys()) != set... | 1 |
Javascript | Javascript | prevent infinite digest with idn urls in edge | 705afcd160c8428133b36f2cd63db305dc52f2d7 | <ide><path>src/ng/location.js
<ide> function parseAppUrl(relativeUrl, locationObj) {
<ide> }
<ide> }
<ide>
<del>function startsWith(haystack, needle) {
<del> return haystack.lastIndexOf(needle, 0) === 0;
<add>function startsWith(str, search) {
<add> return str.slice(0, search.length) === search;
<ide> }
<ide>
<id... | 2 |
Go | Go | move console into execdriver | 8c783c1c1336d8f2d1b08b9cbd8e2298d066750c | <ide><path>container.go
<ide> import (
<ide> "github.com/dotcloud/docker/graphdriver"
<ide> "github.com/dotcloud/docker/links"
<ide> "github.com/dotcloud/docker/nat"
<del> "github.com/dotcloud/docker/pkg/term"
<ide> "github.com/dotcloud/docker/runconfig"
<ide> "github.com/dotcloud/docker/utils"
<del> "github.com/k... | 4 |
Javascript | Javascript | add test case | 06d1fb1e005625b2af5f1ad752c338a12eb355a3 | <ide><path>test/configCases/context-exclusion/simple/index.js
<add>function requireInContext(someVariable) {
<add> return require(`./some-dir/${someVariable}`);
<add>}
<add>
<add>it("should not exclude paths not matching the exclusion pattern", function() {
<add> requireInContext("file").should.be.eql("thats good");
<a... | 8 |
Text | Text | fix typo in documentation | f26fea92af0113672c6c6329885c219a063432e9 | <ide><path>docs/migrating/from-create-react-app.md
<ide> export default function Home() {
<ide>
<ide> ## Environment Variables
<ide>
<del>Next.js has support for `.env` [Environment Variables](/docs/basic-features/environment-variables.md) similar to Create React App. The main different is the prefix used to expose e... | 1 |
Ruby | Ruby | add pkgutil version for xquartz 2.7.5_rc4 | 466cc33bf323430a9dfa24fa126028a7d2a42f85 | <ide><path>Library/Homebrew/os/mac/xquartz.rb
<ide> module XQuartz
<ide> "2.7.50" => "2.7.5_rc1",
<ide> "2.7.51" => "2.7.5_rc2",
<ide> "2.7.52" => "2.7.5_rc3",
<add> "2.7.53" => "2.7.5_rc4",
<ide> }.freeze
<ide>
<ide> # This returns the version number of XQuartz, not of the u... | 1 |
Javascript | Javascript | replace uses of self | 74c1e0264296d9dbd9bff9dae63ba9c81cae45d4 | <ide><path>lib/_http_client.js
<ide> function isInvalidPath(s) {
<ide> }
<ide>
<ide> function ClientRequest(options, cb) {
<del> var self = this;
<del> OutgoingMessage.call(self);
<add> OutgoingMessage.call(this);
<ide>
<ide> if (typeof options === 'string') {
<ide> options = url.parse(options);
<ide> functi... | 2 |
Python | Python | improve type hinting to provider cloudant | 35fe97225ee0a29aa350bb6ed805428fd707ab2f | <ide><path>airflow/providers/cloudant/hooks/cloudant.py
<ide> class CloudantHook(BaseHook):
<ide> :type cloudant_conn_id: str
<ide> """
<ide>
<del> def __init__(self, cloudant_conn_id='cloudant_default'):
<add> def __init__(self, cloudant_conn_id: str = 'cloudant_default') -> None:
<ide> super().... | 1 |
Text | Text | update react info on index.md | 647f51549896e0de2b62fe38ecb446c744153603 | <ide><path>guide/portuguese/react/index.md
<ide> localeTitle: React
<ide> ---
<ide> # React
<ide>
<del>React é uma biblioteca JavaScript para criar interfaces com o usuário. Ele foi eleito o mais amado na categoria "Frameworks, bibliotecas e outras tecnologias" da Pesquisa de desenvolvedores do Stack Overflow 2017. 1
... | 1 |
Ruby | Ruby | add a time to duplicable tests | fb0673f5ad7cf3fc54f922f3215be0b0107de29b | <ide><path>activesupport/test/core_ext/duplicable_test.rb
<ide>
<ide> class DuplicableTest < Test::Unit::TestCase
<ide> NO = [nil, false, true, :symbol, 1, 2.3, BigDecimal.new('4.56')]
<del> YES = ['1', Object.new, /foo/, [], {}]
<add> YES = ['1', Object.new, /foo/, [], {}, Time.now]
<ide>
<ide> def test_dupli... | 1 |
Python | Python | fix flake8 error | 4e2a59afd8c8ef70bfe387e470531e8bf87c1587 | <ide><path>celery/backends/elasticsearch.py
<ide> from celery.exceptions import ImproperlyConfigured
<ide> from celery.five import items
<ide>
<del>from .base import KeyValueStoreBackend, Backend
<add>from .base import KeyValueStoreBackend
<ide>
<ide> try:
<ide> import elasticsearch | 1 |
Javascript | Javascript | ignore these tests during dst | 2e5163ddf39844a077489af8e0de87eebca7957e | <ide><path>src/test/helpers/dst.js
<add>import moment from '../../moment';
<add>
<add>export function isNearSpringDST() {
<add> return moment().subtract(1, 'day').utcOffset() !== moment().add(1, 'day').utcOffset();
<add>}
<ide><path>src/test/moment/zone_switching.js
<del>import { module, test } from '../qunit';
<add... | 2 |
Text | Text | expand comment types in java | 0ec3c322a496f5f6303cc0da681b388cf4116261 | <ide><path>guide/english/java/comments-in-java/index.md
<ide> public class RandomNumbers{
<ide> }
<ide> ```
<ide>
<add>The difference between the documentation comment and the multi & single line comments is that the former is oriented about making your comments visible to anyone viewing the documentation, while the... | 1 |
Javascript | Javascript | add support for brackets around the header emails | e21d7b3000243e16cdd812c22f38591f5457872e | <ide><path>PDFFont.js
<ide> var Fonts = {
<ide> this._active = this[aFontName];
<ide> },
<ide>
<del> getUnicodeFor: function fonts_getUnicodeFor(aCode) {
<del> var glyph = this._active.encoding[aCode];
<del> var unicode = "0x" + GlyphsUnicode[glyph];
<del> return unicode || aCode;
<add> unicodeFromCod... | 1 |
Ruby | Ruby | fix typo for redirect_back | 1d6b77cc4dcda6643f14e7b57eed121eedede84d | <ide><path>actionpack/lib/action_controller/metal/redirecting.rb
<ide> def redirect_to(options = {}, response_status = {}) #:doc:
<ide> # redirect_back fallback_location: proc { edit_post_url(@post) }
<ide> #
<ide> # All options that can be passed to <tt>redirect_to</tt> are accepted as
<del> # option... | 1 |
Javascript | Javascript | reuse the row uint8array in jbig2's decodebitmap | 840d9d40b6e7c4e3dc0b341b8f52bf68c7d3e53b | <ide><path>src/core/jbig2.js
<ide> var Jbig2Image = (function Jbig2ImageClosure() {
<ide> var sbb_right = width - maxX;
<ide>
<ide> var pseudoPixelContext = ReusedContexts[templateIndex];
<add> var row = new Uint8Array(width);
<ide> var bitmap = [];
<ide>
<ide> var decoder = decodingContext.decoder... | 1 |
Text | Text | update readme with results for comparison | b181b9885cd92804dc8de5c339b03bfcd6877d98 | <ide><path>compression/README.md
<ide> To generate these metrics on your images you can run:
<ide> --compared_image=/tmp/decoded/image_15.png`
<ide>
<ide>
<add>## Results
<add>CSV results containing the post-entropy bitrates and MS-SSIM over Kodak can
<add>are available for reference. Each row of the CSV represents ... | 1 |
Text | Text | replace window by self for js challenges | 9b75c1965a2f624388584b407ed749b7cc4a98cc | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/create-an-export-fallback-with-export-default.english.md
<ide> function subtract(x,y) {return x - y;}
<ide> <div id='js-setup'>
<ide>
<ide> ```js
<del>window.exports = function(){};
<add>self.exports = function(){};
<ide> ```
<id... | 5 |
Javascript | Javascript | convert `util` to a class with static methods | f6c4a1f08088c707be90a774ae394951d94133de | <ide><path>src/shared/util.js
<ide> function isEvalSupported() {
<ide> }
<ide> }
<ide>
<del>var Util = (function UtilClosure() {
<del> function Util() {}
<add>const rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')'];
<ide>
<del> var rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')'];
<del>
<del> // makeCssRgb() can be called thou... | 1 |
PHP | PHP | apply fixes from styleci | 274e81829b643fe4cf20b302ffaff5100c1a8f2b | <ide><path>src/Illuminate/Auth/Authenticatable.php
<ide> trait Authenticatable
<ide> public function logoutOtherDevices($password, $attribute = 'password')
<ide> {
<ide> return tap($this->forceFill([
<del> $attribute => Hash::make($password)
<add> $attribute => Hash::make($password... | 1 |
Text | Text | add 1.3.2 release notes | 4dd3368b51b2b00936f91fcc951d81d0c0d918ae | <ide><path>docs/sources/release-notes.md
<ide> page_keywords: docker, documentation, about, technology, understanding, release
<ide>
<ide> #Release Notes
<ide>
<add>##Version 1.3.2
<add>(2014-11-24)
<add>
<add>This release fixes some bugs and addresses some security issues. We have also
<add>made improvements to aspe... | 1 |
Text | Text | add example use of serializermethodfield to docs | 5f4c385a86b877217c1e1bc2eaff58206eabb747 | <ide><path>docs/api-guide/fields.md
<ide> This field is always read-only.
<ide>
<ide> ## SerializerMethodField
<ide>
<del>This is a read-only field. It gets its value by calling a method on the serializer class it is attached to. It can be used to add any sort of data to the serialized representation of your object. ... | 1 |
Java | Java | expose localaddress in webflux server | 1b172c1d20ecf96839abc02a67ae2a763af2815e | <ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");... | 14 |
Text | Text | remove kickstarter links from homepage and readme | dce30207dae1725a2b08232fc4dee34e0949b14b | <ide><path>README.md
<del>---
<del>
<del>#### Django REST framework 3 - Kickstarter announcement!
<del>
<del>We are currently running a Kickstarter campaign to help fund the development of Django REST framework 3.
<del>
<del>If you want to help drive sustainable open-source development forward, then **please check out ... | 2 |
PHP | PHP | allow quiet creation | e9cd94c89f59c833c13d04f32f1e31db419a4c0c | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> public function createOne($attributes = [])
<ide> return $this->count(null)->create($attributes);
<ide> }
<ide>
<add> /**
<add> * Create a single model and persist it to the database.
<add> *
<add> * @param array $attr... | 1 |
Python | Python | simplify is_config() and normalize_string_keys() | f7dcaa1f6b32a45afde456e3a854939fc2440daa | <ide><path>spacy/compat.py
<ide> def symlink_to(orig, dest):
<ide>
<ide>
<ide> def is_config(python2=None, python3=None, windows=None, linux=None, osx=None):
<del> return ((python2 is None or python2 == is_python2) and
<del> (python3 is None or python3 == is_python3) and
<del> (windows is Non... | 1 |
Text | Text | add changelog for 2.8.2 [ci skip] | c3b7c8200c2ba1366d54e8f2e5afab75a45ddea1 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#14156](https://github.com/emberjs/ember.js/pull/14156) [FEATURE ember-glimmer] Enable by default.
<ide>
<add>### 2.8.2 (October 6, 2016)
<add>
<add>- [#14365](https://github.com/emberjs/ember.js/pull/14365) [BUGFIX] Fix an issue with URLs with encoded characters and a trailing ... | 1 |
Javascript | Javascript | support "free" mocks | 801b83da2d37e6cdd97d6e4e8e157293fb9dbd84 | <ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js
<ide> class ResolutionRequest {
<ide> const filteredPairs = [];
<ide>
<ide> dependencies.forEach((modDep, i) => {
<add> const name = depNames[i];
<ide> if (modDep == null) {
<add> ... | 2 |
Javascript | Javascript | fix another ie test issue - issue | d593ed12f3bd1fce7d47dee4c116f8d98fa5e185 | <ide><path>packages/ember/tests/helpers/link_to_test.js
<ide> test("The {{link-to}} helper works in an #each'd array of string route names", f
<ide>
<ide> bootApplication();
<ide>
<del> var $links = Ember.$('a', '#qunit-fixture');
<add> function linksEqual($links, expected) {
<add> equal($links.length, expecte... | 1 |
Javascript | Javascript | fix house scene so no trackback input | ca824254777002d51c7bf48f9f6fc2ca9fcd8454 | <ide><path>threejs/lessons/resources/threejs-fog.js
<ide> scene.add(gltf.scene);
<ide> });
<ide>
<del> camera.fov = 30;
<add> camera.fov = 45;
<ide> camera.position.set(0.4, 1, 1.7);
<ide> camera.lookAt(1, 1, 0.7);
<ide>
<ide>
<ide> const target = [1, 1, 0.7];
<ide> return {
<add> ... | 1 |
PHP | PHP | fix cs errors | dc0b8fcd9e7e59d792eee3b3b43f7d51e3effc47 | <ide><path>src/TestSuite/Constraint/Response/HeaderNotContains.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide><path>tests/TestCase/Shell/Task/ExtractTas... | 4 |
Ruby | Ruby | fix migrations with pg 7.x | e7059fd28191a77d53e66389f8df5b22036699e8 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def update(sql, name = nil)
<ide>
<ide> alias_method :delete, :update
<ide>
<add> def add_column(table_name, column_name, type, options = {})
<add> native_type = native_database_types[type]
<add> sql_com... | 1 |
Java | Java | provide subclass hooks in path matching resolver | 1947de3334827e90b84c6f7951a52f7747221083 | <ide><path>spring-core/src/main/java/org/springframework/core/io/support/PathMatchingResourcePatternResolver.java
<ide>
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<del>
<ide> import org.springframework.core.io.DefaultResourceLoader;
<ide> import org.springframework... | 1 |
Javascript | Javascript | remove unnecessary comma in parallaxshader | e2773b2bc6942f685210709c313d3c62750b697b | <ide><path>examples/js/shaders/ParallaxShader.js
<ide> THREE.ParallaxShader = {
<ide> basic: 'USE_BASIC_PARALLAX',
<ide> steep: 'USE_STEEP_PARALLAX',
<ide> occlusion: 'USE_OCLUSION_PARALLAX', // a.k.a. POM
<del> relief: 'USE_RELIEF_PARALLAX',
<add> relief: 'USE_RELIEF_PARALLAX'
<ide> },
<ide>
<ide> uniforms:... | 1 |
Python | Python | avoid invalid labels of truth | 43c243254aec4bcb6f977f4f512fb181ec7e986e | <ide><path>examples/single_model_scripts/utils_multiple_choice.py
<ide> def normalize(truth):
<ide> return int(truth) - 1
<ide> else:
<ide> logger.info("truth ERROR!")
<add>
<ide> examples = []
<ide> three_choice = 0
<ide> four_choice = 0
<ide> def nor... | 1 |
Text | Text | add travis badge to readme | f33db6b7d0749dca3f3478758952e7590ee28a00 | <ide><path>README.md
<ide> 
<ide>
<add>[](https://travis-ci.org/atom/atom)
<add>
<ide> Atom is a hackable text editor for the 21st century, built o... | 1 |
Python | Python | add test for port propagation issue | 8b3b1cbcf650df843d7e1329db7f0572883dd67c | <ide><path>libcloud/test/test_connection.py
<ide> def test_constructor(self):
<ide> self.assertEqual(conn.proxy_host, '127.0.0.5')
<ide> self.assertEqual(conn.proxy_port, 3128)
<ide>
<add> def test_connection_to_unusual_port(self):
<add> conn = LibcloudConnection(host='localhost', port=8080)
... | 1 |
Java | Java | resolve t94204073 by swallowing errors | 94a2b2c86d70c3f09432d0a4d89f0c4702ceb504 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ScrollEvent.java
<ide> import androidx.core.util.Pools;
<ide> import com.facebook.infer.annotation.Assertions;
<ide> import com.facebook.react.bridge.Arguments;
<add>import com.facebook.react.bridge.ReactSoftException;
<ide> import com.facebook.react... | 1 |
Text | Text | add changelog entry for [ci skip] | 404cb36ee391ac7445fa90dfec17fbda524c6227 | <ide><path>activerecord/CHANGELOG.md
<add>* Make sure transaction state gets reset after a commit operation on the record.
<add>
<add> If a new transaction was open inside a callback, the record was loosing track
<add> of the transaction level state, and it was leaking that state.
<add>
<add> Fixes #12566.
<... | 1 |
Java | Java | cover changes of | 819c377313e1b509cec5183f4c6685a6675b45f6 | <ide><path>src/main/java/io/reactivex/rxjava3/internal/operators/maybe/MaybeZipArray.java
<ide>
<ide> package io.reactivex.rxjava3.internal.operators.maybe;
<ide>
<del>import java.util.Arrays;
<ide> import java.util.Objects;
<ide> import java.util.concurrent.atomic.*;
<ide>
<ide><path>src/main/java/io/reactivex/rxja... | 4 |
Javascript | Javascript | reduce timeouts in test-net-keepalive | 0d39d35739828afdc388140ccb30420aea3d3484 | <ide><path>test/parallel/test-net-keepalive.js
<ide> var echoServer = net.createServer(function(connection) {
<ide> serverConnection = connection;
<ide> connection.setTimeout(0);
<ide> assert.notEqual(connection.setKeepAlive, undefined);
<del> // send a keepalive packet after 1000 ms
<del> connection.setKeepAli... | 1 |
Javascript | Javascript | extract common logic | 605da8b420207d93c034461f44775d9296830c0c | <ide><path>packages/react-reconciler/src/ReactFiberScheduler.js
<ide> function retrySuspendedRoot(
<ide> if (isPriorityLevelSuspended(root, suspendedTime)) {
<ide> // Ping at the original level
<ide> retryTime = suspendedTime;
<del> markPingedPriorityLevel(root, retryTime);
<ide> } else {
<ide>... | 1 |
Python | Python | move base64 to utils.serialization | 2c541284b2a6a3c2ce42dec95f1cfdfdafadc2c9 | <ide><path>celery/security/serialization.py
<ide> """
<ide> from __future__ import absolute_import
<ide>
<del>import base64
<del>
<ide> from kombu.serialization import registry, dumps, loads
<ide> from kombu.utils.encoding import bytes_to_str, str_to_bytes, ensure_bytes
<ide>
<ide> from .certificate import Certificat... | 2 |
Python | Python | delete the end spaces | c3d382e63f9d466200250a1006dd79062f2cbbce | <ide><path>airflow/utils.py
<ide> def send_MIME_email(e_from, e_to, mime_msg):
<ide> logging.info("Sent an altert email to " + str(to))
<ide> s.sendmail(e_from, e_to, mime_msg.as_string())
<ide> s.quit()
<del>
<del>
<del> | 1 |
Text | Text | add middleware docs | b51acfaf9758436dad32a9b9a2a8fb15e1163ff6 | <ide><path>docs/middleware.md
<add># Middleware
<add>
<add>A middleware is a function that wraps the `dispatch()` method, or another middleware. For example:
<add>
<add>```js
<add>// Instead of this
<add>dispatch(action)
<add>// do this
<add>middleware(dispatch)(action)
<add>```
<add>
<add>Multiple middleware can be co... | 1 |
Ruby | Ruby | use connection.error_number in mysqldatabasetasks | 15c81c8ed4930574d9900a6f947d4e0ebaa82a2f | <ide><path>activerecord/lib/active_record/tasks/mysql_database_tasks.rb
<ide> def create
<ide> connection.create_database configuration["database"], creation_options
<ide> establish_connection configuration
<ide> rescue ActiveRecord::StatementInvalid => error
<del> if error.cause.error_numb... | 2 |
Python | Python | fix line too long linting errors in os driver | 1da255007897ad2099f8fa618ffb3abe938ba109 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> class OpenStack_2_NodeDriver(OpenStack_1_1_NodeDriver):
<ide> # compute API. This deprecated proxied API does not offer all
<ide> # functionality that the Glance Image service API offers.
<ide> # See https://developer.openstack.org/api-ref/compute/
<del... | 1 |
Ruby | Ruby | fix corner case | a232e3a791ac97b3ac45ab9d6b34e5c65a49b943 | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide>
<ide> class BottleSpecification
<ide> def method_missing(*); end
<add>
<add> def respond_to_missing?(*)
<add> true
<add> end
<ide> end
<ide>
<ide> class Module
<ide> def method_missing(*); end
<add>
<add> def respond_to_missing?(*)
<add> true
<add> en... | 1 |
Javascript | Javascript | fix trailing whitespace | 64a3f42f14d9bc43b7ddb1f91a8800372aca41e6 | <ide><path>src/ng/directive/input.js
<ide> function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
<ide> var value = element.val(),
<ide> event = ev && ev.type;
<ide>
<del> // IE (11 and under) seem to emit an 'input' event if the placeholder value changes.
<add> // IE (11 and under... | 1 |
Python | Python | add kerberos integration when launching trino | 7f1ac2d5f9ecc582247f0bcc07caf08330fb7ed4 | <ide><path>dev/breeze/src/airflow_breeze/params/shell_params.py
<ide> def compose_file(self) -> str:
<ide> if len(integrations) > 0:
<ide> for integration in integrations:
<ide> compose_file_list.append(DOCKER_COMPOSE_DIR / f"integration-{integration}.yml")
<add> if "trino" in... | 1 |
Ruby | Ruby | remove unusused variables | 7ba0fe21729794e4023bdb182a9ff562231be0c9 | <ide><path>activerecord/lib/active_record/attribute_methods/primary_key.rb
<ide> def get_primary_key(base_name) #:nodoc:
<ide> # end
<ide> # Project.primary_key # => "foo_id"
<ide> def primary_key=(value)
<del> @original_primary_key = @primary_key if defined?(@primary_key)
<del> ... | 3 |
Python | Python | update outdated docs in scheduler_job.py | 61b1ea368df5aa0962ae85b7caff442c990bba57 | <ide><path>airflow/jobs/scheduler_job.py
<ide> class DagFileProcessor(LoggingMixin):
<ide> This includes:
<ide>
<ide> 1. Execute the file and look for DAG objects in the namespace.
<del> 2. Pickle the DAG and save it to the DB (if necessary).
<del> 3. For each DAG, see what tasks should run and create ap... | 1 |
Text | Text | clarify require/import mutual exclusivity | f89530fccc9a2420cef58861aaafa9732683e154 | <ide><path>doc/api/esm.md
<ide> Node.js supports the following conditions:
<ide> * `"import"` - matched when the package is loaded via `import` or
<ide> `import()`. Can reference either an ES module or CommonJS file, as both
<ide> `import` and `import()` can load either ES module or CommonJS sources.
<add> _Alw... | 1 |
Javascript | Javascript | move object destruction to the end of the run loop | 98fe46e280893efc9a5dfd6b6c9815fc007a4fe7 | <ide><path>packages/sproutcore-runtime/lib/system/core_object.js
<ide> CoreObject.PrototypeMixin = SC.Mixin.create({
<ide>
<ide> isDestroyed: false,
<ide>
<add> /**
<add> Destroys an object by setting the isDestroyed flag and removing its
<add> metadata, which effectively destroys observers and bindings.
<ad... | 7 |
Text | Text | add duplicate cve check in sec. release doc | a2115450eb373bd515ff963a55f55947e9a6ada4 | <ide><path>doc/guides/security-release-process.md
<ide> information described.
<ide> * Approved
<ide> * Pass `make test`
<ide> * Have CVEs
<add> * Make sure that dependent libraries have CVEs for their issues. We should
<add> only create CVEs for vulnerabilities in Node.js itself. This is to avoid
<add>... | 1 |
Javascript | Javascript | improve findbytype() error message | 053347e6bc69de79dfa46bb422868b023851c315 | <ide><path>packages/react-test-renderer/src/ReactTestRenderer.js
<ide> import {
<ide> ScopeComponent,
<ide> } from 'shared/ReactWorkTags';
<ide> import invariant from 'shared/invariant';
<add>import getComponentName from 'shared/getComponentName';
<ide> import ReactVersion from 'shared/ReactVersion';
<ide>
<ide> imp... | 2 |
Text | Text | revise style guide | e4a3664fe98aad704503e6e19e75750d02eed384 | <ide><path>doc/STYLE_GUIDE.md
<ide> # Style Guide
<ide>
<del>* Documentation is written in markdown files with names formatted as
<add>* Documentation is in markdown files with names formatted as
<ide> `lowercase-with-dashes.md`.
<del> * Underscores in filenames are allowed only when they are present in the
<del> ... | 1 |
Go | Go | create securityattribute only once (windows) | 2e66c0b6f05acaf00283689786d2c3ac7d1014a0 | <ide><path>pkg/system/filesys_windows.go
<ide> var volumePath = regexp.MustCompile(`^\\\\\?\\Volume{[a-z0-9-]+}\\?$`)
<ide> // so that it is both volume path aware, and can create a directory with
<ide> // an appropriate SDDL defined ACL.
<ide> func MkdirAllWithACL(path string, _ os.FileMode, sddl string) error {
<del>... | 1 |
Javascript | Javascript | specify electronversion in electronpackager | f953287e5485746ab1aad455c801b349ab115ef2 | <ide><path>build/lib/package-application.js
<ide> module.exports = function () {
<ide> ignore: buildIgnoredPathsRegExp(),
<ide> out: CONFIG.buildOutputPath,
<ide> overwrite: true,
<del> platform: process.platform
<add> platform: process.platform,
<add> version: CONFIG.appMetadata.electronVersion
<i... | 1 |
Text | Text | capitalize composer, link to 3.0 contributing docs | af82881f42fedfd3ed538beef05324939e24c4a6 | <ide><path>README.md
<ide> applications, without any loss to flexibility.
<ide> ## Installing CakePHP via Composer
<ide>
<ide> You can install CakePHP into your project using
<del>[composer](http://getcomposer.org). If you're starting a new project, we
<add>[Composer](http://getcomposer.org). If you're starting a ne... | 1 |
Javascript | Javascript | remove deprecated extracted hooks | a672e8f2f9ad3aeb75213a27978b83ddbc257d91 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> // TODO the following hooks are weirdly located here
<ide> // TODO move them for webpack 5
<ide> /** @type {SyncHook<object, Module>} */
<del> normalModuleLoader: new SyncHook(["loaderContext", "module"]),
<del>
<del> /** @type {SyncBailHook<Chu... | 4 |
Javascript | Javascript | fix accidental broken impl | 00de31b7ec0a99ff7b899f1318bbc84b817d874e | <ide><path>src/utils/applyMiddleware.js
<ide> import compose from './compose';
<ide> * @returns {Function} A store enhancer applying the middleware.
<ide> */
<ide> export default function applyMiddleware(...middlewares) {
<del> return function applyGivenMiddleware(createStore) {
<del> middlewares = middlewares.sl... | 1 |
Javascript | Javascript | use arrow function | 484ad3b10334f21a36d3b439a19032a1d332b8ee | <ide><path>test/parallel/test-child-process-env.js
<ide> let response = '';
<ide>
<ide> child.stdout.setEncoding('utf8');
<ide>
<del>child.stdout.on('data', function(chunk) {
<add>child.stdout.on('data', (chunk) => {
<ide> console.log(`stdout: ${chunk}`);
<ide> response += chunk;
<ide> });
<ide>
<del>process.on(... | 1 |
Text | Text | fix typos and tweak descriptions | 1606ccf7019a916207edc58f6b7678f95983b439 | <ide><path>docs/usage/deriving-data-selectors.md
<ide> You are not _required_ to use selectors for all state lookups, but they are a st
<ide>
<ide> **A "selector function" is any function that accepts the Redux store state (or part of the state) as an argument, and returns data that is based on that state.**
<ide>
<d... | 1 |
Javascript | Javascript | add writetostorage method to viewhistory | 48399a3ec7bb9762c28027d4993638908f3e781a | <ide><path>web/view_history.js
<ide> var ViewHistory = (function ViewHistoryClosure() {
<ide> this.database = database;
<ide> },
<ide>
<del> set: function ViewHistory_set(name, val) {
<del> if (!this.isInitializedPromiseResolved) {
<del> return;
<del> }
<del> var file = this.file;
<d... | 1 |
Javascript | Javascript | fix error message printing | e7391967c284bbe71c352312c06d27730e70b823 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> errStack = self.writer(e);
<ide>
<ide> // Remove one line error braces to keep the old style in place.
<del> if (errStack[errStack.length - 1] === ']') {
<add> if (errStack[0] === '[' && errStack[errStack.length - 1] === ']') ... | 2 |
Javascript | Javascript | add tests for clearbuffer state machine | 275362ae3b748b86bf7ef278821351dca1d7c0fb | <ide><path>test/parallel/test-stream-writableState-uncorked-bufferedRequestCount.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const stream = require('stream');
<add>
<add>const writable = new stream.Writable();
<add>
<add>writable._writev = common.mus... | 1 |
Java | Java | fix compiler warning | b245918574024f4f0e576d984d3b336905d920e1 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/HttpMessageWriterView.java
<ide> public final Set<String> getModelKeys() {
<ide> @SuppressWarnings("unchecked")
<ide> public Mono<Void> render(Map<String, ?> model, MediaType contentType, ServerWebExchange exchange) {
<ide> return ... | 1 |
Javascript | Javascript | normalize process.resourcespath on load | 75627f50a276e8998fc3da16b2bd0fb1ba40567f | <ide><path>static/index.js
<ide> window.onload = function() {
<ide> // Skip "?loadSettings=".
<ide> var loadSettings = JSON.parse(decodeURIComponent(location.search.substr(14)));
<ide>
<add> // Normalize to make sure drive letter case is consistent on Windows
<add> process.resourcesPath = path.normalize(... | 1 |
Javascript | Javascript | use const in test-crypto-pbkdf2 | 7837866923347acaca73d607fabf1f73af7311d8 | <ide><path>test/parallel/test-crypto-pbkdf2.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<add>const common = require('../common');
<add>const assert = require('assert');
<ide>
<ide> if (!common.hasCrypto) {
<ide> common.skip('missing crypto');
<ide> return;
<i... | 1 |
Javascript | Javascript | fix typo in inspect-proxy | e8b8d940d503a3c51abdda216a34010f7a42410a | <ide><path>benchmark/util/inspect-proxy.js
<ide> const bench = common.createBenchmark(main, {
<ide> });
<ide>
<ide> function twoDifferentProxies(n) {
<del> // This one should be slower between we're looking up multiple proxies.
<add> // This one should be slower because we're looking up multiple proxies.
<ide> con... | 1 |
Python | Python | change default to v1 and 90 epochs | 7b21c9f78a6ba66f23b60045c510a2d5e3e5af66 | <ide><path>official/resnet/imagenet_main.py
<ide> def define_imagenet_flags():
<ide> resnet_run_loop.define_resnet_flags(
<ide> resnet_size_choices=['18', '34', '50', '101', '152', '200'])
<ide> flags.adopt_module_key_flags(resnet_run_loop)
<del> flags_core.set_defaults(train_epochs=100)
<add> flags_core.se... | 2 |
Javascript | Javascript | fix padding for labels | 87c59fea73cf55b63fca0d0049c351b2ceb468b8 | <ide><path>src/core/core.scale.js
<ide> export default class Scale extends Element {
<ide>
<ide> minSize.width = Math.min(me.maxWidth, minSize.width + labelWidth);
<ide>
<del> me.paddingTop = firstLabelSize.height / 2;
<del> me.paddingBottom = lastLabelSize.height / 2;
<add> me.paddingTop = lastLabelSize... | 1 |
Javascript | Javascript | add regression tests for all events | 291db05a756dd88d0f687b3083e85a22abbf5214 | <ide><path>packages/react-dom/src/__tests__/ReactDOMEventPropagation-test.js
<ide> describe('ReactDOMEventListener', () => {
<ide> let container;
<ide>
<ide> beforeEach(() => {
<add> window.TextEvent = function() {};
<ide> jest.resetModules();
<ide> React = require('react');
<ide> jest.isolateModule... | 1 |
Ruby | Ruby | fix exception in raw_params method | d7516f471a6f03f86e378d54dcebef8ce860ff26 | <ide><path>actionpack/lib/action_controller/metal/http_authentication.rb
<ide> def rewrite_param_values(array_params)
<ide> def raw_params(auth)
<ide> _raw_params = auth.sub(TOKEN_REGEX, "").split(/\s*#{AUTHN_PAIR_DELIMITERS}\s*/)
<ide>
<del> if !_raw_params.first.start_with?(TOKEN_KEY)
<add> ... | 2 |
Ruby | Ruby | use better assertion methods for testing | b4629528866446aa59f663a1162edbdacee85600 | <ide><path>actionmailer/test/base_test.rb
<ide> def give_a_greeting
<ide>
<ide> # Class level API with method missing
<ide> test "should respond to action methods" do
<del> assert BaseMailer.respond_to?(:welcome)
<del> assert BaseMailer.respond_to?(:implicit_multipart)
<add> assert_respond_to BaseMailer, ... | 27 |
Go | Go | fix typo in container.go | 2f57eb04102c2ef08e478d3977fc3682672473af | <ide><path>container.go
<ide> func (container *Container) createVolumes() error {
<ide> return err
<ide> }
<ide> // Change the source volume's ownership if it differs from the root
<del> // files that where just copied
<add> // files that were just copied
<ide> if stat.Uid != srcStat.Uid ||... | 1 |
Javascript | Javascript | add example of string literals in format string | 42f28751e0dea552457da3f32b4d107ec6fc8818 | <ide><path>src/ng/filter/filters.js
<ide> var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d
<ide> * * `'mediumTime'`: equivalent to `'h:mm:ss a'` for en_US locale (e.g. 12:05:08 pm)
<ide> * * `'shortTime'`: equivalent to `'h:mm a'` for en_US locale (e.g. 12:05 pm)
<ide> *
<del> * ... | 1 |
Go | Go | fix race condition in api commit test | cd4f507b42e800d148b211ca2c780d01192a9041 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestContainerApiTop(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestContainerApiCommit(c *check.C) {
<del> out, err := exec.Command(dockerBinary, "run", "-d", "busybox", "/bin/sh", "-c", "touch /test").CombinedOutput()
<ad... | 1 |
Python | Python | add some comments | 3ad0f70a11b00a2fae9a8f6fc2ecd4ead202e6b8 | <ide><path>keras/engine/training.py
<ide> def potentially_variable_concat(tensors, axis=0):
<ide> return tf.concat(tensors, axis=axis)
<ide> # First, identify constant inner dimensions by finding the rightmost dimension that is not constant
<ide> constant_inner_dimensions = constant_dims.numpy().tolist()[::-1].... | 1 |
Python | Python | lowercase the input | 466575bee60d2575dc5fb69c6e19e1fab3fd6803 | <ide><path>rest_framework/fields.py
<ide> class IPAddressField(CharField):
<ide> }
<ide>
<ide> def __init__(self, protocol='both', unpack_ipv4=False, **kwargs):
<del> self.protocol = protocol
<add> self.protocol = protocol.lower()
<ide> self.unpack_ipv4 = unpack_ipv4
<ide> super(I... | 1 |
Javascript | Javascript | update data uri test cases | f4abe4a550236dd8a558b083799101b0c861b020 | <ide><path>test/cases/resolving/data-uri/index.js
<ide> it("should import js module from base64 data-uri", function() {
<ide> });
<ide>
<ide> it("should require coffee module from base64 data-uri", function() {
<del> const mod = require('coffee-loader!data:text/javascript;charset=utf-8;base64,bW9kdWxlLmV4cG9ydHMgPQogI... | 1 |
Python | Python | fix failing test | e10aab8e102c2ed1481feed4f3b3459da3c43a09 | <ide><path>libcloud/test/compute/test_ssh_client.py
<ide> def test_consume_stdout_chunk_contains_part_of_multi_byte_utf8_character(self):
<ide> chan.recv.side_effect = ['\xF0', '\x90', '\x8D', '\x88']
<ide>
<ide> stdout = client._consume_stdout(chan).getvalue()
<del> self.assertEqual('\xf0\x90\x... | 1 |
Go | Go | move layer mount refcounts to mountedlayer | 563d0711f83952e561a0d7d5c48fef9810b4f010 | <ide><path>daemon/commit.go
<ide> func (daemon *Daemon) exportContainerRw(container *container.Container) (archive
<ide>
<ide> archive, err := container.RWLayer.TarStream()
<ide> if err != nil {
<add> daemon.Unmount(container) // logging is already handled in the `Unmount` function
<ide> return nil, err
<ide> }
... | 14 |
Text | Text | fix typo and logic bug in handleremove | c5cc145538e9becc4fc442629d5957f9cc0d451b | <ide><path>docs/docs/09-addons.md
<ide> var TodoList = React.createClass({
<ide> },
<ide> handleRemove: function(i) {
<ide> var newItems = this.state.items;
<del> newItems.splice(i, 0)
<add> newItems.splice(i, 1)
<ide> this.setState({items: newItems});
<ide> },
<ide> render: function() {
<ide> ... | 1 |
PHP | PHP | integrate plugin hooks in http & routing | e5322b050f8a61485930cc3dfa83d8b173034ce9 | <ide><path>src/Http/BaseApplication.php
<ide> abstract class BaseApplication implements
<ide> * Constructor
<ide> *
<ide> * @param string $configDir The directory the bootstrap configuration is held in.
<del> * @param string|null $pluginRegistry Plugin Registry Object
<ide> */
<del> public fu... | 5 |
PHP | PHP | use a boolean option instead of yes/no | 9f4a0c4f0f2c9b8c70909942c7d5d07fb57f0d97 | <ide><path>src/Shell/Task/ExtractTask.php
<ide> public function main()
<ide> $this->_merge = strtolower($response) === 'y';
<ide> }
<ide>
<del> if (isset($this->params['relative-paths'])) {
<del> $this->_relativePaths = !(strtolower($this->params['relative-paths']) === 'no');
<del... | 1 |
Javascript | Javascript | avoid .valueof to close | 2e948e0d91360e4763594854be84347737e4b1f6 | <ide><path>packages/react-reconciler/src/ReactChildFiber.new.js
<ide> function coerceRef(
<ide>
<ide> function throwOnInvalidObjectType(returnFiber: Fiber, newChild: Object) {
<ide> if (returnFiber.type !== 'textarea') {
<add> const childString = Object.prototype.toString.call(newChild);
<ide> invariant(
<ide... | 2 |
Javascript | Javascript | add userselect style equivalent to selectable | fc42d5bbb9906c37c2f62d26c46f6e3191cccd01 | <ide><path>Libraries/Components/View/ReactNativeStyleAttributes.js
<ide> const ReactNativeStyleAttributes: {[string]: AnyAttributeType, ...} = {
<ide> textShadowOffset: true,
<ide> textShadowRadius: true,
<ide> textTransform: true,
<add> userSelect: true,
<ide> writingDirection: true,
<ide>
<ide> /**
<ide><... | 5 |
Java | Java | fix failing test after previous commit | 3895d21b7ddc5ce378d31ca4befdc83450e16521 | <ide><path>spring-websocket/src/test/java/org/springframework/web/socket/messaging/WebSocketStompClientTests.java
<ide> import org.springframework.web.socket.WebSocketHandler;
<ide> import org.springframework.web.socket.WebSocketSession;
<ide> import org.springframework.web.socket.client.WebSocketClient;
<add>import or... | 1 |
Javascript | Javascript | remove trailing slash from os.tmpdir() | b57cc51d8d3f4ad279591ae8fa6584ee22773b97 | <ide><path>lib/os.js
<ide> exports.platform = function() {
<ide> };
<ide>
<ide> exports.tmpdir = function() {
<add> var path;
<ide> if (isWindows) {
<del> return process.env.TEMP ||
<add> path = process.env.TEMP ||
<ide> process.env.TMP ||
<ide> (process.env.SystemRoot || process.env.win... | 2 |
Go | Go | keep pause state when restoring container's status | 977c4046fd2147d7c04f4b513a94138013ca0dd6 | <ide><path>container/state.go
<ide> func (s *State) SetRunning(pid int, initial bool) {
<ide> s.ErrorMsg = ""
<ide> s.Running = true
<ide> s.Restarting = false
<del> s.Paused = false
<add> if initial {
<add> s.Paused = false
<add> }
<ide> s.ExitCodeValue = 0
<ide> s.Pid = pid
<ide> if initial { | 1 |
Ruby | Ruby | keep column defaults in type cast form | ed559d4b00fbd7c6f86e75fd2d18a40e16b98281 | <ide><path>activerecord/lib/active_record/connection_adapters/column.rb
<ide> def human_name
<ide> end
<ide>
<ide> def extract_default(default)
<del> type_cast_for_write(type_cast(default))
<add> type_cast(default)
<ide> end
<ide> end
<ide> end
<ide><path>activerecord/lib/active_r... | 5 |
Text | Text | add guides on writing tests involving promises | df16d20f7569f6538eb6558ea63c614e3b139abc | <ide><path>doc/guides/writing-tests.md
<ide> countdown.dec();
<ide> countdown.dec(); // The countdown callback will be invoked now.
<ide> ```
<ide>
<add>#### Testing promises
<add>
<add>When writing tests involving promises, either make sure that the
<add>`onFulfilled` or the `onRejected` handler is wrapped in
<add>`c... | 1 |
Ruby | Ruby | convert `variant` to a keyword arg | c0c1441144aa5e477b3419b033e43c94adf7cc0c | <ide><path>actionview/lib/action_view/template.rb
<ide> def self.finalize_compiled_template_methods=(_)
<ide> attr_reader :source, :identifier, :handler, :original_encoding, :updated_at
<ide> attr_reader :variable, :format
<ide>
<del> def initialize(source, identifier, handler, format: nil, **details)
<add>... | 1 |
PHP | PHP | add test for saveassociated and expression objects | 016c3aed44f890b8ff605b24a4392c4acd3464fa | <ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php
<ide> public function testSaveAssociatedEmptyData() {
<ide> $this->assertFalse($result);
<ide> }
<ide>
<add>/**
<add> * Test that saveAssociated will accept expression object values when saving.
<add> *
<add> * @return void
<add> */
<add> public function testSa... | 1 |
Go | Go | avoid ab-ba deadlock | 2ffef1b7eb618162673c6ffabccb9ca57c7dfce3 | <ide><path>runtime/graphdriver/devmapper/deviceset.go
<ide> type DevInfo struct {
<ide> // sometimes release that lock while sleeping. In that case
<ide> // this per-device lock is still held, protecting against
<ide> // other accesses to the device that we're doing the wait on.
<add> //
<add> // WARNING: In order t... | 1 |
Python | Python | improve datasource __del__ | 470d53fc6bc8267fec7d7cf5c7116d5e7437d789 | <ide><path>numpy/lib/_datasource.py
<ide> def __init__(self, destpath=os.curdir):
<ide>
<ide> def __del__(self):
<ide> # Remove temp directories
<del> if self._istmpdest:
<add> if hasattr(self, '_istmpdest') and self._istmpdest:
<ide> shutil.rmtree(self._destpath)
<ide>
<ide> ... | 2 |
Java | Java | apply consistent copyright header | e9d1b39aff5fd912ec692ca594d7e02e42318789 | <ide><path>spring-aop/src/main/java/org/springframework/aop/TargetSource.java
<del>/*<
<del> * Copyright 2002-2017 the original author or authors.
<add>/*
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not us... | 24 |
Text | Text | remove reference to the obsolete chrome extension | cbcfaa2c8db02f7b529e6de0a6f8957ad03efdb5 | <ide><path>CONTRIBUTING.md
<ide> from the main (upstream) repository:
<ide> git pull --ff upstream master
<ide> ```
<ide>
<del>### GitHub Pull Request Helper
<del>
<del>We track Pull Requests by attaching labels and assigning to milestones. For some reason GitHub
<del>does not provide a good UI for managing l... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.