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
Ruby
Ruby
use ruby style for inheritance
9ed51082c276ef4c6e24f92be266fe0394797746
<ide><path>Library/Homebrew/cmd/create.rb <ide> def generate <ide> def template; <<-EOS.undent <ide> require 'formula' <ide> <del> class #{Formula.class_s name} <Formula <add> class #{Formula.class_s name} < Formula <ide> url '#{url}' <ide> homepage '' <ide> md5 '#{md5}'
1
Javascript
Javascript
remove 3rd arg from to assert.strictequal()
cfe0c024fca5e12688de1c95af257092d03417cb
<ide><path>test/parallel/test-stream-transform-final-sync.js <ide> The order things are called <ide> const t = new stream.Transform({ <ide> objectMode: true, <ide> transform: common.mustCall(function(chunk, _, next) { <del> assert.strictEqual(++state, chunk, 'transformCallback part 1'); <add> // transformCall...
1
Go
Go
fix vet errors
18d9f1978b311ff9cadce9f0237313db14502f9f
<ide><path>docker/docker.go <ide> func main() { <ide> if err := cli.Cmd(flag.Args()...); err != nil { <ide> if sterr, ok := err.(*utils.StatusError); ok { <ide> if sterr.Status != "" { <del> log.Println("%s", sterr.Status) <add> log.Println(sterr.Status) <ide> } <ide> os.Exit(sterr.StatusCode) <ide> ...
9
Ruby
Ruby
add order docs
ad919087a4a816514a0a040ab9e2045e269a241f
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def group!(*args) <ide> self <ide> end <ide> <add> # Allows to specify an order attribute: <add> # <add> # User.order('name') <add> # => SELECT "users".* FROM "users" ORDER BY name <add> # <add> # User.order('na...
1
PHP
PHP
fix failing tests
cb8aad81bb87923a7d1e782ca438701bd843050b
<ide><path>lib/Cake/Log/Engine/ConsoleLog.php <ide> * @since CakePHP(tm) v 2.2.0 <ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) <ide> */ <del> <ide> namespace Cake\Log\Engine; <add> <ide> use Cake\Console\ConsoleOutput; <ide> use Cake\Utility\Hash; <ide> use Cake\Erro...
3
Text
Text
add badging to readme.md
4704a6e1480eca02d1a10193f175bd2cde814b70
<ide><path>README.md <ide> three.js <ide> ======== <ide> <add>[![Latest NPM release][npm-badge]][npm-badge-url] <add>[![License][license-badge]][license-badge-url] <add>[![Dependencies][dependencies-badge]][dependencies-badge-url] <add>[![Dev Dependencies][devDependencies-badge]][devDependencies-badge-url] <add> <ide>...
1
Java
Java
fix the websocket sendbinary error
774290093139f7bfa2670717de7ddf878f3a8316
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java <ide> public void sendBinary(String base64String, int id) { <ide> throw new RuntimeException("Cannot send a message. Unknown WebSocket id " + id); <ide> } <ide> try { <del> client.sendMessage(RequestBody.c...
1
Javascript
Javascript
add project and build names to browserstack
41fd5cb4e6d7df627a35394eb395b1c2e0f657d9
<ide><path>test/karma.conf.js <ide> module.exports = function(config) { <add> // build out a name for browserstack <add> // {TRAVIS_BUILD_NUMBER} [{TRAVIS_PULL_REQUEST} {PR_BRANCH}] {TRAVIS_BRANCH} <add> var browserstackName = process.env.TRAVIS_BUILD_NUMBER; <add> <add> if (process.env.TRAVIS_PULL_REQUEST !== 'fal...
1
Ruby
Ruby
add test case to prevent possible sql injection
2d5d537d19d62e9c132cf49f7dbc9eb8ff9190e3
<ide><path>activerecord/lib/arel/visitors/to_sql.rb <ide> def quote_column_name(name) <ide> end <ide> <ide> def sanitize_as_sql_comment(o) <del> o.expr.map { |v| v.gsub(%r{ /\*\+?\s* | \s*\*/ }x, "") } <add> o.expr.map { |v| <add> v.gsub(%r{ (/ (?: | \g<1>) \*) \+? \s* | \s...
3
Javascript
Javascript
fix no response event on continue request
be6844d1effa0427ca530e07b30de897b5dd7fb2
<ide><path>lib/internal/http2/core.js <ide> function onSessionHeaders(handle, id, cat, flags, headers, sensitiveHeaders) { <ide> } <ide> } else if (cat === NGHTTP2_HCAT_PUSH_RESPONSE) { <ide> event = 'push'; <del> // cat === NGHTTP2_HCAT_HEADERS: <del> } else if (!endOfStream && status !== undef...
2
Python
Python
add random_crop with boxes and labels and tests
a1facb469a51e9e25f8fa19dd1ade7f44082f80f
<ide><path>official/vision/beta/ops/preprocess_ops.py <ide> def random_horizontal_flip(image, normalized_boxes=None, masks=None, seed=1): <ide> lambda: masks) <ide> <ide> return image, normalized_boxes, masks <add> <add> <add>def random_crop_image_with_boxes_and_labels(img, boxes, labels, min_scale, <add...
2
PHP
PHP
use the correct function to rm directories
4d3d54ffd541c095b131b2f48ea8691b6d8494e1
<ide><path>lib/Cake/Test/TestCase/Cache/Engine/FileEngineTest.php <ide> class FileEngineTest extends TestCase { <ide> public function setUp() { <ide> parent::setUp(); <ide> Cache::enable(); <add> Cache::drop('file_test'); <ide> Cache::config('file_test', [ <ide> 'engine' => 'File', <ide> 'path' => TMP . '...
1
Python
Python
add option to propagate tags in ecsoperator
d590e5e7679322bebb1472fa8c7ec6d183e4154a
<ide><path>airflow/providers/amazon/aws/operators/ecs.py <ide> def __init__(self, task_definition, cluster, overrides, # pylint: disable=too-m <ide> aws_conn_id=None, region_name=None, launch_type='EC2', <ide> group=None, placement_constraints=None, platform_version='LATEST', <ide> ...
2
Text
Text
add v3.4.8 to changelog
900028f01704feab6c0411b0efac97db91105c26
<ide><path>CHANGELOG.md <ide> - [#16978](https://github.com/emberjs/ember.js/pull/16978) [BUGFIX] Properly teardown alias <ide> - [#16877](https://github.com/emberjs/ember.js/pull/16877) [CLEANUP] Allow routes to be named "array" and "object" <ide> <add>### v3.4.8 (January 22, 2019) <add> <add>* Upgrade @glimmer/* pac...
1
Text
Text
update the link to the jsdom repository
a62309e01b3c76d2b73560ca666c454b7bbfcb77
<ide><path>build/fixtures/README.md <ide> To include jQuery in [Node](https://nodejs.org/), first install with npm. <ide> npm install jquery <ide> ``` <ide> <del>For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](ht...
1
Javascript
Javascript
relax check in verify-graph
ee59763ab3b67f8792ed53a4d098212a040994f9
<ide><path>test/async-hooks/verify-graph.js <ide> module.exports = function verifyGraph(hooks, graph) { <ide> } <ide> assert.strictEqual(errors.length, 0); <ide> <del> // Verify that all expected types are present <add> // Verify that all expected types are present (but more/others are allowed) <ide> const exp...
1
Python
Python
remove useless classes
af41dbe0c479769402c46c0b99b841e781a8fa87
<ide><path>tests/test_basic.py <ide> from werkzeug.routing import BuildError <ide> <ide> <del>class TestBasicFunctionality(TestFlask): <add>class TestBasicFunctionality(object): <ide> <ide> def test_options_work(self): <ide> app = flask.Flask(__name__) <ide> def test_g_iteration_protocol(self): <ide> ...
10
Text
Text
fix incorrect example
13a3c993ab20e7af510d615a5eafaa87667b8efb
<ide><path>docs/api-guide/generic-views.md <ide> May be overridden to provide dynamic behavior such as returning a queryset that <ide> For example: <ide> <ide> def get_queryset(self): <del> return self.user.accounts.all() <add> user = self.request.user <add> return user.accounts.all() <ide> <...
1
Go
Go
fix typos in pkg
7a7a8a33a4a79e7ea1e67f8a77b4060f95e936ea
<ide><path>pkg/system/path.go <ide> func DefaultPathEnv(os string) string { <ide> // This is used, for example, when validating a user provided path in docker cp. <ide> // If a drive letter is supplied, it must be the system drive. The drive letter <ide> // is always removed. Also, it translates it to OS semantics (IOW...
2
Ruby
Ruby
use dedicated version class
cfdd23b3efcfc994908dfb6792c8d062a19f12f1
<ide><path>Library/Homebrew/bottle_version.rb <add>class BottleVersion < Version <add> def self._parse spec <add> spec = Pathname.new(spec) unless spec.is_a? Pathname <add> stem = spec.stem <add> <add> super <add> end <add>end <ide><path>Library/Homebrew/bottles.rb <ide> require 'tab' <ide> require 'macos' <...
3
Javascript
Javascript
write test to demonstrate injection grammar bug
fdd60afecbcc16dd21a1d308568630b488404c30
<ide><path>spec/tree-sitter-language-mode-spec.js <ide> describe('TreeSitterLanguageMode', () => { <ide> ]); <ide> }); <ide> <add> it('correctly closes the scopes of nodes that contain injected grammars', async () => { <add> await atom.packages.activatePackage('language-javascript'); <add> edito...
1
Ruby
Ruby
drop one more string allocation
87d0bde03f89d70f9f80d37de696e2577870170c
<ide><path>actionview/lib/action_view/log_subscriber.rb <ide> def logger <ide> <ide> EMPTY = '' <ide> def from_rails_root(string) <del> string.sub(rails_root, EMPTY).sub(VIEWS_PATTERN, EMPTY) <add> string = string.sub(rails_root, EMPTY) <add> string.sub!(VIEWS_PATTERN, EMPTY) <add> string <...
1
Python
Python
fix flake8 error
a96ebd74b1c27f4fa63f7bae5f9157f1140f9570
<ide><path>rest_framework/authentication.py <ide> from rest_framework.authtoken.models import Token <ide> from rest_framework.compat import get_user_model <ide> <add> <ide> def get_authorization_header(request): <ide> """ <ide> Return request's 'Authorization:' header, as a bytestring.
1
Text
Text
update status of python 3 support
7bee77f7e23e55bf1a07ed478e55e4300c2d69cc
<ide><path>BUILDING.md <ide> Consult previous versions of this document for older versions of Node.js: <ide> <ide> ### Note about Python 2 and Python 3 <ide> <del>The Node.js project uses Python as part of its build process and has <del>historically only been Python 2 compatible. <del> <del>Python 2 will reach its _e...
1
PHP
PHP
fix redirect response docblock
06788ba388a91682dd98d01d30876fccd17ecda4
<ide><path>src/Illuminate/Http/RedirectResponse.php <ide> class RedirectResponse extends BaseRedirectResponse <ide> * <ide> * @param string|array $key <ide> * @param mixed $value <del> * @return \Illuminate\Http\RedirectResponse <add> * @return $this <ide> */ <ide> public function wi...
1
Java
Java
fix failing test
9c438a8f7831d4841b82149f317804a262946f94
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/DispatcherHandlerErrorTests.java <ide> package org.springframework.web.reactive; <ide> <ide> import java.net.URI; <add>import java.time.Duration; <ide> import java.util.Collections; <ide> <ide> import org.junit.Before; <ide> public void web...
1
Javascript
Javascript
add tests for variable scale.nice
f6108db93b46754dc82b8c005966adbf58b5feec
<ide><path>test/scale/linear-test.js <ide> suite.addBatch({ <ide> assert.deepEqual(x.domain(), [1, 1, 2, 3, 11]); <ide> var x = d3.scale.linear().domain([123.1, 1, 2, 3, -.9]).nice(); <ide> assert.deepEqual(x.domain(), [130, 1, 2, 3, -10]); <add> }, <add> "accepts a tick count to contr...
2
Text
Text
add v3.22.0-beta.1 to changelog
1a17a61a4d4e7e89a0fd51ac39d6acf7dbbc9991
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.22.0-beta.1 (August 24, 2020) <add> <add>- [#19062](https://github.com/emberjs/ember.js/pull/19062) / [#19068](https://github.com/emberjs/ember.js/pull/19068) [FEATURE] Add @ember/destroyable feature from the [Destroyables RFC](https://github.com/emberj...
1
Javascript
Javascript
add test for binding in input type=checkbox
a97f8c5c5181c776896591db34216697f199d7a1
<ide><path>packages/ember-glimmer/lib/components/checkbox.js <ide> export default EmberComponent.extend({ <ide> ], <ide> <ide> type: 'checkbox', <del> checked: false, <ide> disabled: false, <ide> indeterminate: false, <ide> <ide> export default EmberComponent.extend({ <ide> }, <ide> <ide> change() { <de...
2
PHP
PHP
remove unused use
9c1b4c5084273d6b99ed8e36b5e8692ebf439dd7
<ide><path>src/Controller/ErrorController.php <ide> namespace Cake\Controller; <ide> <ide> use Cake\Event\Event; <del>use Cake\Routing\Router; <ide> <ide> /** <ide> * Error Handling Controller <ide><path>src/Database/Dialect/SqliteDialectTrait.php <ide> */ <ide> namespace Cake\Database\Dialect; <ide> <del>use Cake...
13
Javascript
Javascript
fix sorting issue
07992cf588897e6cbb8b0423ecb9a7d12d3f4528
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> this._modules.sortWith(sortByFn || sortById); <ide> } <ide> <del> sortItems() { <add> sortItems(sortChunks) { <ide> this.sortModules(); <ide> this.origins.sort((a, b) => { <ide> const aIdent = a.module.identifier(); <ide> class Chunk { <ide> if(origin.reas...
3
Javascript
Javascript
add math unittests
5a026e572824f86e932e8a6af665d5c34fd0712d
<ide><path>test/unit/src/math/Math.tests.js <ide> export default QUnit.module( 'Maths', () => { <ide> <ide> } ); <ide> <del> QUnit.todo( "lerp", ( assert ) => { <add> QUnit.test( "lerp", ( assert ) => { <add> <add> <add> assert.strictEqual(ThreeMath.lerp(1, 2, 0), 1, "Value equal to lower boundary"); <add> as...
1
Javascript
Javascript
compare objects not identical by reference
5e52e27a76eddcb93a25d04c15a51578b27773c7
<ide><path>test/parallel/test-assert-deep.js <ide> assert.deepStrictEqual(obj1, obj2); <ide> ); <ide> } <ide> <add>// Strict equal with identical objects that are not identical <add>// by reference and longer than 30 elements <add>// E.g., assert.deepStrictEqual({ a: Symbol() }, { a: Symbol() }) <add>{ <add> const ...
1
Javascript
Javascript
use standard version of promise.prototype.finally
d5ae59ab2a09cda5109303abb9c269318a1e6686
<ide><path>Libraries/Promise.js <ide> 'use strict'; <ide> <ide> const Promise = require('promise/setimmediate/es6-extensions'); <del>require('promise/setimmediate/done'); <ide> <del>Promise.prototype.finally = function(onSettled) { <del> return this.then(onSettled, onSettled); <del>}; <add>require('promise/setimmedi...
1
Javascript
Javascript
move template rendering related tests
98b073b31700abe76b56f6a81feb9862b0b6e429
<ide><path>packages/ember/tests/routing/decoupled_basic_test.js <ide> import RSVP from 'rsvp'; <ide> import { compile } from 'ember-template-compiler'; <ide> import { Route, NoneLocation, HistoryLocation } from '@ember/-internals/routing'; <ide> import Controller from '@ember/controller'; <del>import { Object as EmberO...
3
Python
Python
install iojs -> node compat symlink
72f1b348b021269f98783aee2f0e89500a20231c
<ide><path>tools/install.py <ide> def subdir_files(path, dest, action): <ide> action(files, subdir + '/') <ide> <ide> def files(action): <del> exeext = '.exe' if sys.platform == 'win32' else '' <add> is_windows = sys.platform == 'win32' <add> <add> exeext = '.exe' if is_windows else '' <ide> action(['out/Rele...
1
Python
Python
recognize c rtl used by py3.5 on win
965c565852b92006fa427118cfc4026135279790
<ide><path>numpy/distutils/misc_util.py <ide> def msvc_runtime_library(): <ide> "Return name of MSVC runtime library if Python was built with MSVC >= 7" <ide> ver = msvc_runtime_major () <ide> if ver: <del> return "msvcr%i" % ver <add> if ver < 140: <add> return "msvcr%i" % ver <add...
1
Mixed
Ruby
remove deprecate `*_path` helpers in email views
d282125a18c1697a9b5bb775628a2db239142ac7
<ide><path>actionmailer/CHANGELOG.md <add>* Remove deprecate `*_path` helpers in email views. <add> <add> *Rafael Mendonça França* <add> <ide> * Remove deprecated `deliver` and `deliver!` methods. <ide> <ide> *claudiob* <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def merge_default_a...
6
Java
Java
harmonize hint registration
58a2b7969901fbd703bc8ffed905b5d8a3c6d8d3
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.java <ide> private CodeBlock generateMethodStatementForMethod(Method method, <ide> AccessVisibility visibility = AccessVisibility.forMember(method); <ide> if (visibility == AccessVisibility.PRIV...
14
Javascript
Javascript
use common/fixtures in test-https-agent
ce33cffbcb9370258a516b349aec4b8f772a342d
<ide><path>test/parallel/test-https-agent.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const https = require('ht...
1
Java
Java
use stringbuilder for complex string concatenation
32b689a9947823427a01899d5a310c9435ee78d2
<ide><path>spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java <ide> protected Object getPropertyValue(PropertyTokenHolder tokens) throws BeansExcept <ide> "property path '" + propertyName + "': returned null"); <ide> } <ide> } <del> String indexedPropertyNam...
2
Python
Python
expand tasks in mapped group at run time
31f34e992828cc6ce28b265f08fc25a392887707
<ide><path>airflow/models/abstractoperator.py <ide> from airflow.compat.functools import cache, cached_property <ide> from airflow.configuration import conf <ide> from airflow.exceptions import AirflowException <add>from airflow.models.expandinput import NotFullyPopulated <ide> from airflow.models.taskmixin import DAGN...
8
Go
Go
fix minor type
7724260224c69eeb948c75c247d4868256e5081a
<ide><path>registry/session.go <ide> func (r *Session) SearchRepositories(term string) (*SearchResults, error) { <ide> } <ide> defer res.Body.Close() <ide> if res.StatusCode != 200 { <del> return nil, utils.NewHTTPRequestError(fmt.Sprintf("Unexepected status code %d", res.StatusCode), res) <add> return nil, utils....
1
Javascript
Javascript
fix broken link in blog page links
81864e1298223a0e2359df116eee80ad1bc843a6
<ide><path>website/core/BlogSidebar.js <ide> var BlogSidebar = React.createClass({ <ide> <div className="nav-docs-section"> <ide> <h3>Recent Posts</h3> <ide> <ul> <del> {MetadataBlog.files.map(function(post) { <add> {MetadataBlog.files.slice(0,10).map(function(post) { <...
2
Ruby
Ruby
use arel to determine selection column
75ac9c4271df65b94b2a6862d87b1ec42f676efe
<ide><path>activerecord/lib/active_record/association_preload.rb <ide> def preload_belongs_to_association(records, reflection, preload_options={}) <ide> def find_associated_records(ids, reflection, preload_options) <ide> options = reflection.options <ide> table = reflection.klass.arel_tabl...
1
Go
Go
reject null manifests
654f854faecb038cb5ff110e6705fe355f1c8159
<ide><path>daemon/images/image_exporter.go <ide> func (i *ImageService) ExportImage(names []string, outStream io.Writer) error { <ide> } <ide> <ide> // LoadImage uploads a set of images into the repository. This is the <del>// complement of ImageExport. The input stream is an uncompressed tar <add>// complement of Ex...
3
Go
Go
implement pullparent option with buildkit
7c1c8f1fe29c28ef62017d99a99eb1ec6be4513c
<ide><path>builder/builder-next/adapters/containerimage/pull.go <ide> import ( <ide> "golang.org/x/time/rate" <ide> ) <ide> <del>const preferLocal = true // FIXME: make this optional from the op <del> <ide> // SourceOpt is options for creating the image source <ide> type SourceOpt struct { <ide> SessionManager *ses...
2
Text
Text
update process.versions.modules documentation
f368eee19f3094510f3c410f0e01aa1cd2a5e82e
<ide><path>doc/api/process.md <ide> added: v0.2.0 <ide> * {Object} <ide> <ide> The `process.versions` property returns an object listing the version strings of <del>Node.js and its dependencies. <add>Node.js and its dependencies. In addition, `process.versions.modules` indicates <add>the current ABI version, which is ...
1
PHP
PHP
check url as 'a' type record in dns instead 'mx'
ee347278e625b3d07cacc70ffa1747ee53542af3
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateActiveUrl($attribute, $value) <ide> { <ide> $url = str_replace(array('http://', 'https://', 'ftp://'), '', strtolower($value)); <ide> <del> return checkdnsrr($url); <add> return checkdnsrr($url, 'A'); <ide> } <ide> <ide> /**
1
Go
Go
remove some mkserverfromengine
fc2f998822699c0c7e22e4fc791d10c3b1ea1e53
<ide><path>integration/runtime_test.go <ide> func cleanup(eng *engine.Engine, t *testing.T) error { <ide> } <ide> for _, image := range images.Data { <ide> if image.Get("ID") != unitTestImageID { <del> mkServerFromEngine(eng, t).DeleteImage(image.Get("ID"), false) <add> eng.Job("image_delete", image.Get("ID"))....
2
Go
Go
log start and end of filesystem creation
a489e685c0d17455463945316cfe366e4e65dca6
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func determineDefaultFS() string { <ide> return "ext4" <ide> } <ide> <del>func (devices *DeviceSet) createFilesystem(info *devInfo) error { <add>func (devices *DeviceSet) createFilesystem(info *devInfo) (err error) { <ide> devname := info.DevName() <ide> <i...
1
Text
Text
add airflow users for optum
4338dbdc07d510251b0c826bf1edeb31c4f613af
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [OfferUp](https://offerupnow.com) <ide> 1. [OneFineStay](https://www.onefinestay.com) [[@slangwald](https://github.com/slangwald)] <ide> 1. [Open Knowledge International](https://okfn.org) [@vitorbaptista](https://github.com/vitorbaptista) <del...
1
Text
Text
add 2 colab notebooks
3cc2c2a1509944797d6e0cd2def31706469df53a
<ide><path>notebooks/README.md <ide> Pull Request so it can be included under the Community notebooks. <ide> |:----------|:-------------|:-------------|------:| <ide> | [Train T5 on TPU](https://github.com/patil-suraj/exploring-T5/blob/master/T5_on_TPU.ipynb) | How to train T5 on SQUAD with Transformers and Nlp | [Sur...
1
Javascript
Javascript
prevent undefined ref in completion
392c70a8273e270b9a0b1d04905138733a6efaff
<ide><path>lib/repl.js <ide> function complete(line, callback) { <ide> }); <ide> var flat = new ArrayStream(); // make a new "input" stream <ide> var magic = new REPLServer('', flat); // make a nested REPL <add> replMap.set(magic, replMap.get(this)); <ide> magic.context = magic.createContext(...
2
Javascript
Javascript
add offscreen component type
ed01fdacceba20ffd004f0eae05ee07a6bb6a690
<ide><path>packages/react-reconciler/src/ReactFiber.new.js <ide> import { <ide> FundamentalComponent, <ide> ScopeComponent, <ide> Block, <add> OffscreenComponent, <ide> } from './ReactWorkTags'; <ide> import getComponentName from 'shared/getComponentName'; <ide> <ide> import { <ide> REACT_FUNDAMENTAL_TYPE, <i...
5
Javascript
Javascript
add __non_webpack_require__ to api
8e44685ac1d258160b615396003a6cdd802f7951
<ide><path>lib/APIPlugin.js <ide> var REPLACEMENTS = { <ide> __webpack_public_path__: "__webpack_require__.p", <ide> __webpack_modules__: "__webpack_require__.m", <ide> __webpack_chunk_load__: "__webpack_require__.e", <add> __non_webpack_require__: "require", <ide> "require.onError": "__webpack_require__.onError", ...
1
Java
Java
fix package cycle in @enablespringconfigured
5327a7a37d25b67ee2ae7d1ead2a3db6847767c0
<add><path>spring-aspects/src/main/java/org/springframework/context/annotation/EnableSpringConfigured.java <del><path>spring-aspects/src/main/java/org/springframework/beans/factory/aspectj/EnableSpringConfigured.java <ide> /* <del> * Copyright 2002-2011 the original author or authors. <add> * Copyright 2002-2012 the or...
3
Python
Python
use faster password hasher in sqlite tests
0819957eda318205e17591dccd81482701eab25c
<ide><path>tests/test_sqlite.py <ide> } <ide> <ide> SECRET_KEY = "django_tests_secret_key" <add># To speed up tests under SQLite we use the MD5 hasher as the default one. <add># This should not be needed under other databases, as the relative speedup <add># is only marginal there. <add>PASSWORD_HASHERS = ( <add> '...
1
Python
Python
clarify the python versions that flask supports
7368a164c7506046a4a0b0ce2113c2aaa7800087
<ide><path>setup.py <ide> def hello(): <ide> 'License :: OSI Approved :: BSD License', <ide> 'Operating System :: OS Independent', <ide> 'Programming Language :: Python', <add> 'Programming Language :: Python :: 2', <add> 'Programming Language :: Python :: 2.6', <add> 'Progr...
1
Text
Text
fix a typo in console documentation
d96075c4b6fa35cb1d1f5b6ecf66cf3de82d5d12
<ide><path>doc/api/console.md <ide> added: v0.1.104 <ide> * `message` {any} <ide> * `...args` {any} <ide> <del>Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][] <add>Prints to `stderr` the string `'Trace: '`, followed by the [`util.format()`][] <ide> formatted message and stack trace to th...
1
Python
Python
relax timetable clas validation
7d555d779dc83566d814a36946bd886c2e7468b3
<ide><path>airflow/serialization/serialized_objects.py <ide> def _encode_timetable(var: Timetable) -> Dict[str, Any]: <ide> """ <ide> timetable_class = type(var) <ide> importable_string = as_importable_string(timetable_class) <del> if _get_registered_timetable(importable_string) != timetable_class: <add>...
1
Text
Text
update proptypes documentation
ca02a068b87a36c727647af443a72ea7c92f46ca
<ide><path>docs/docs/05-reusable-components.md <ide> When designing interfaces, break down the common design elements (buttons, form <ide> <ide> ## Prop Validation <ide> <del>As your app grows it's helpful to ensure that your components are used correctly. We do this by allowing you to specify `propTypes`. `React.Pro...
1
Python
Python
add tests to encoder-decoder model
a88a0e4413d8de5ad235a211fb3b0326aadc5ce0
<ide><path>transformers/tests/modeling_common_test.py <ide> def ids_tensor(shape, vocab_size, rng=None, name=None): <ide> return torch.tensor(data=values, dtype=torch.long).view(shape).contiguous() <ide> <ide> <add>def floats_tensor(shape, scale=1.0, rng=None, name=None): <add> """Creates a random float32 tens...
2
Ruby
Ruby
fix bug with parametrize when `locale` is passed
818437c3664039f7038364910fc4ac80450f36a2
<ide><path>activesupport/lib/active_support/inflector/transliterate.rb <ide> def transliterate(string, replacement = "?", locale: nil) <ide> # <ide> def parameterize(string, separator: "-", preserve_case: false, locale: nil) <ide> # Replace accented chars with their ASCII equivalents. <del> parameter...
4
Javascript
Javascript
handle editable region covering editor's top
3cfd80a8060d9f7189e6f171d1f9fa2dce41437a
<ide><path>client/src/templates/Challenges/classic/Editor.js <ide> class Editor extends Component { <ide> // the region it should cover instead. <ide> // TODO: DRY <ide> getLineAfterViewZone() { <del> return ( <del> this.data.model.getDecorationRange(this.data.startEditDecId) <del> .endLineNumber +...
1
PHP
PHP
update email class to use viewbuilder
cae86b689a1ab9ed758cc82b5f6e90665651a94e
<ide><path>src/Mailer/Email.php <ide> use Cake\Network\Http\FormData\Part; <ide> use Cake\Utility\Hash; <ide> use Cake\Utility\Text; <add>use Cake\View\ViewVarsTrait; <ide> use Closure; <ide> use Exception; <ide> use InvalidArgumentException; <ide> class Email implements JsonSerializable, Serializable <ide> { <ide> <i...
3
PHP
PHP
update typehint to be nullable
7d62f500a789416738a7181d5217d33ca096db04
<ide><path>app/Http/Middleware/TrustProxies.php <ide> class TrustProxies extends Middleware <ide> /** <ide> * The trusted proxies for this application. <ide> * <del> * @var array|string <add> * @var array|string|null <ide> */ <ide> protected $proxies; <ide>
1
Text
Text
fix default values for helm chart
874e497ff8b81121308018d02137361f66ae3c36
<ide><path>chart/README.md <ide> The following tables lists the configurable parameters of the Airflow chart and <ide> | `images.flower.repository` | Docker repository to pull image from. Update this to deploy a custom image | `~` ...
1
Go
Go
add quota support to vfs graphdriver
7a1618ced359a3ac921d8a05903d62f544ff17d0
<ide><path>daemon/graphdriver/graphtest/graphtest_unix.go <ide> import ( <ide> "unsafe" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <add> "github.com/docker/docker/daemon/graphdriver/quota" <ide> "github.com/docker/docker/pkg/stringid" <ide> "github.com/docker/go-units" <ide> "github.com/stretchr/te...
8
Go
Go
move events to job
5cc6312bfc4e511784693d02b9bb8e8d9d1c04b0
<ide><path>api.go <ide> func getInfo(srv *Server, version float64, w http.ResponseWriter, r *http.Reques <ide> } <ide> <ide> func getEvents(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <del> sendEvent := func(wf *utils.WriteFlusher, event *utils.JSONMessage) err...
2
PHP
PHP
add property $_config to staticconfigtrait
9a0f88386ec906d6089a22aabd4b5ba0c1347750
<ide><path>src/Cache/Cache.php <ide> class Cache { <ide> */ <ide> protected static $_enabled = true; <ide> <del>/** <del> * Cache configuration. <del> * <del> * Keeps the permanent/default settings for each cache engine. <del> * These settings are used to reset the engines after temporary modification. <del> * <del>...
5
Python
Python
apply parent dag permissions to subdags.
3e3c48a136902ac67efce938bd10930e653a8075
<ide><path>airflow/www/security.py <ide> def can_read_dag(self, dag_id, user=None) -> bool: <ide> """Determines whether a user has DAG read access.""" <ide> if not user: <ide> user = g.user <del> dag_resource_name = permissions.resource_name_for_dag(dag_id) <add> # To account f...
2
Go
Go
avoid flakiness of testlinkcontainers
daba67d67b2db2585ae9433fabec8bf309be11d8
<ide><path>libnetwork/drivers/bridge/bridge_test.go <ide> func getIPv4Data(t *testing.T, iface string) []driverapi.IPAMData { <ide> } <ide> <ide> func TestCreateFullOptions(t *testing.T) { <del> defer testutils.SetupTestOSContext(t)() <add> if !testutils.IsRunningInContainer() { <add> defer testutils.SetupTestOSConte...
2
Python
Python
get mtime in utc
4ff84d537aa386fde36182ed797a79e3b582be75
<ide><path>tests/test_helpers.py <ide> def index(): <ide> assert rv.status_code == 416 <ide> rv.close() <ide> <del> last_modified = datetime.datetime.fromtimestamp(os.path.getmtime( <add> last_modified = datetime.datetime.utcfromtimestamp(os.path.getmtime( <ide> os.path.join(a...
1
Javascript
Javascript
fix indentation and move a method definition
ec801ac13782f3f488915d682d6d2a73e2d76efd
<ide><path>src/ngResource/resource.js <ide> * @description <ide> */ <ide> <del> /** <add>/** <ide> * @ngdoc object <ide> * @name ngResource.$resource <ide> * @requires $http <ide> angular.module('ngResource', ['ng']). <ide> return $parse(path)(obj); <ide> }; <ide> <del> /** <del> * We need o...
1
Ruby
Ruby
fix libffi detection on 12.3+ sdk
b3da8dbd24f61fdc5f319bf1a4253e86682a0bff
<ide><path>Library/Homebrew/test/os/mac/pkgconfig_spec.rb <ide> def pc_version(library) <ide> it "returns the correct version for libffi" do <ide> version = File.foreach("#{sdk}/usr/include/ffi/ffi.h") <ide> .lazy <del> .grep(/^\s*libffi (\S+) - Copyright /) { Regexp.last_match(...
1
Java
Java
replace create with wrap in rsocketrequester
089fb5737d7b94310a4873d6f078ec7da45aec6d
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java <ide> public Mono<RSocketRequester> connect(ClientTransport transport) { <ide> this.factoryConfigurers.forEach(configurer -> configurer.accept(factory)); <ide> <ide> return factory.transport(transp...
5
PHP
PHP
fix meridian tests failing around tz offset issues
4e6cb44dd39c169be9b690d9d617148ada9b2be9
<ide><path>src/View/Helper/FormHelper.php <ide> public function meridian($fieldName, array $options = []) <ide> $options = $this->_singleDatetime($options, 'meridian'); <ide> <ide> if (isset($options['val'])) { <add> $hour = date('H'); <ide> $options['val'] = [ <del> ...
2
Javascript
Javascript
add strict equalities in src/core/core.js
83a4c68df9ab8c9703d3da2c424db0b08926da2a
<ide><path>src/core/core.js <ide> var PDFDocument = (function PDFDocumentClosure() { <ide> var str = strBuf.join(''); <ide> stream.pos = pos; <ide> var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle); <del> if (index == -1) { <add> if (index === -1) { <ide> return false; /* not...
1
Python
Python
add retagging images accross repos
bccb45f5fe067ffa64f5f303bfbb6e8c1b552add
<ide><path>dev/retag_docker_images.py <ide> <ide> PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] <ide> <del>GHCR_IO_PREFIX = "ghcr.io/apache/airflow" <add>GHCR_IO_PREFIX = "ghcr.io" <add> <ide> <ide> GHCR_IO_IMAGES = [ <del> "{prefix}/{branch}/ci-manifest/python{python_version}:latest", <del> "{prefix}/{branch...
1
Text
Text
add v3.14.3 to changelog.md
8444ca8831dab1f968c2af45089f16bcea633d98
<ide><path>CHANGELOG.md <ide> - [#18491](https://github.com/emberjs/ember.js/pull/18491) [DEPRECATION] Deprecate `{{partial}}` per [RFC #449](https://github.com/emberjs/rfcs/blob/master/text/0449-deprecate-partials.md). <ide> - [#18441](https://github.com/emberjs/ember.js/pull/18441) [DEPRECATION] Deprecate window.ENV ...
1
Javascript
Javascript
add big proxy failing test
6732e7fa1794d49078ac34fd0541dfa77c1df36d
<ide><path>test/pummel/test-http-big-proxy-responses.js <add>require('../common'); <add>var sys = require("sys"), <add>fs = require("fs"), <add>http = require("http"), <add>url = require("url"); <add> <add>// Produce a very large response. <add>var chargen = http.createServer(function (req, res) { <add> var chunk = ...
1
Python
Python
fix race condition between triggerer and scheduler
2a6792d94d153c6f2dd116843a43ee63cd296c8d
<ide><path>airflow/executors/base_executor.py <ide> """Base executor - this is the base class for all the implemented executors.""" <ide> import sys <ide> from collections import OrderedDict <del>from typing import Any, Dict, List, Optional, Set, Tuple, Union <add>from typing import Any, Counter, Dict, List, Optional, ...
2
Ruby
Ruby
allow bottles with custom architectures
e893f16727d167390dacd9b2ed5eb6d5df103d70
<ide><path>Library/Homebrew/extend/ENV/super.rb <ide> def determine_make_jobs <ide> sig { returns(String) } <ide> def determine_optflags <ide> Hardware::CPU.optimization_flags.fetch(effective_arch) <add> rescue KeyError <add> odebug "Building a bottle for custom architecture (#{effective_arch})..." <add> ...
2
Javascript
Javascript
remove "lastid" as there is no usecase
5b4836d185b3f127e686dc5628ace6e7f8dda53a
<ide><path>lib/Compilation.js <ide> class Compilation extends Tapable { <ide> cacheModule.errors.forEach(err => this.errors.push(err), this); <ide> cacheModule.warnings.forEach(err => this.warnings.push(err), this); <ide> return cacheModule; <del> } else { <del> module.lastId = cacheModule.id; <ide> ...
2
Javascript
Javascript
fix global font settings
8d5b3809f6a607ebf2be7af40fb538ea5e42c4db
<ide><path>src/core/core.legend.js <ide> module.exports = function(Chart) { <ide> <ide> labels: { <ide> boxWidth: 40, <del> fontSize: Chart.defaults.global.defaultFontSize, <del> fontStyle: Chart.defaults.global.defaultFontStyle, <del> fontColor: Chart.defaults.global.defaultFontColor, <del> fontFamily: C...
15
Python
Python
fix pypi complaint on version naming
5fd3d81ec92b07181848f182f25494fab351326e
<ide><path>setup.py <ide> def run(self): <ide> <ide> setup( <ide> name="transformers", <del> version="4.1.0dev0", <add> version="4.1.0.dev0", <ide> author="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Sam Shleifer, Patrick von Platen, Sylvain Gugger, Google AI Language Team Authors, Open AI...
2
Python
Python
raise exceptions instead of asserts in xnli.py
708ffff665bf0b7ba3a1a27190fb7c315d099d0d
<ide><path>src/transformers/data/processors/xnli.py <ide> def get_train_examples(self, data_dir): <ide> text_a = line[0] <ide> text_b = line[1] <ide> label = "contradiction" if line[2] == "contradictory" else line[2] <del> assert isinstance(text_a, str), f"Training input {...
1
Ruby
Ruby
remove undocumented save_without_validation!
88b4a8fcafc7c52ad7deaa4fee9ee0fabf68940c
<ide><path>activerecord/lib/active_record/validations.rb <ide> def save(options={}) <ide> perform_validations(options) ? super : false <ide> end <ide> <del> def save_without_validation! <del> save!(:validate => false) <del> end <del> <ide> # Attempts to save the record just like Base#save but ...
2
Javascript
Javascript
remove dead code
94230d15bdbfe229901b221feb5814b60f8eeedb
<ide><path>lib/stream.js <ide> Stream.Stream = Stream; <ide> <ide> Stream._isUint8Array = require('internal/util/types').isUint8Array; <ide> <del>const version = process.version.substr(1).split('.'); <del>if (version[0] === 0 && version[1] < 12) { <del> Stream._uint8ArrayToBuffer = Buffer; <del>} else { <del> try {...
1
Ruby
Ruby
fix mysql to support duplicated column names
b8569b9337309c2d6c72566a3426994b6da443d7
<ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb <ide> def exec_without_stmt(sql, name = 'SQL') # :nodoc: <ide> <ide> if result <ide> types = {} <add> fields = [] <ide> result.fetch_fields.each { |field| <add> field_name = field.na...
2
Javascript
Javascript
add image border*radius tests
9b5b07f97f7309b5e3bf955165ad0efd612ae8a2
<ide><path>RNTester/js/ImageExample.js <ide> exports.examples = [ <ide> style={[styles.base, styles.leftMargin, {borderRadius: 19}]} <ide> source={fullImage} <ide> /> <add> <Image <add> style={[styles.base, styles.leftMargin, {borderTopLeftRadius: 20}]} <add> ...
1
PHP
PHP
handle json request
a0bebba5593b4063076f93df228121293ead6d48
<ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php <ide> protected function authenticated(Request $request, $user) <ide> */ <ide> protected function sendFailedLoginResponse(Request $request) <ide> { <add> $errors = [$this->username() => trans('auth.failed')]; <add> <add> if ($re...
2
Python
Python
convert dialogpt format
ef99852961b9f3bb87a18a58093c9f513c86b683
<ide><path>transformers/modeling_utils.py <ide> def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): <ide> new_key = key.replace('gamma', 'weight') <ide> if 'beta' in key: <ide> new_key = key.replace('beta', 'bias') <add> ...
1
Python
Python
add new line correctly in docstring sections
f38734ef981663a2eeb088625a6623ccf2f1ec42
<ide><path>rest_framework/schemas.py <ide> def get_description(self, path, method, view): <ide> current_section, seperator, lead = line.partition(':') <ide> sections[current_section] = lead.strip() <ide> else: <del> sections[current_section] += line + '\n' <add...
1
Python
Python
remove deprecated imports from polynomial package
d41fc4d518cb516c254959ca8c096bc8db2c81e9
<ide><path>numpy/polynomial/__init__.py <ide> from hermite_e import HermiteE <ide> from laguerre import Laguerre <ide> <del># Deprecate direct import of functions from this package <del># version 1.6.0 <del> <del>from numpy.lib import deprecate <del> <del># polynomial functions <del> <del>@deprecate(message='Please im...
1
Javascript
Javascript
fix typo in pdf_history.js
0de15d59b86ff9bd6535bbff9bc338873c0dfdaa
<ide><path>web/pdf_history.js <ide> class PDFHistory { <ide> // being scrolled into view, to avoid potentially inconsistent state. <ide> this._popStateInProgress = true; <ide> // We defer the resetting of `this._popStateInProgress`, to account for <del> // e.g. zooming occuring when the new desti...
1
Java
Java
fix a typo in @nonnullfields
8ddb1e7201f6726fee6ebc798e43a80094a2df0f
<ide><path>spring-core/src/main/java/org/springframework/lang/NonNullFields.java <ide> * <ide> * @author Sebastien Deleuze <ide> * @since 5.0 <del> * @see NonNullFields <add> * @see NonNullApi <ide> * @see Nullable <ide> * @see NonNull <ide> */
1
Python
Python
fix tests for windows + pypy
cf5e7665fdd764a6647f2b62d2740bb431180794
<ide><path>numpy/core/tests/test_memmap.py <ide> <ide> from numpy import arange, allclose, asarray <ide> from numpy.testing import ( <del> assert_, assert_equal, assert_array_equal, suppress_warnings <add> assert_, assert_equal, assert_array_equal, suppress_warnings, IS_PYPY, <add> break_cycles <ide> ) <i...
5
Go
Go
preserve underlying error
4fa853f5defdc97e516a3f9b93b2d812104955dc
<ide><path>pkg/fileutils/fileutils.go <ide> func CopyFile(src, dst string) (int64, error) { <ide> <ide> // ReadSymlinkedDirectory returns the target directory of a symlink. <ide> // The target of the symbolic link may not be a file. <del>func ReadSymlinkedDirectory(path string) (string, error) { <del> var realPath str...
2