content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Python
Python
add tests for it
cfe0038ff84ee027a1c536ce77d8c57f2049a4c9
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_get_disktype(self, name, zone=None): <ide> response = self.connection.request(request_path, method='GET') <ide> <ide> if 'items' in response.object: <add> # Aggregated response, zone not provided <ide> data = None <ide> <de...
2
Javascript
Javascript
fix lints for 'script' dir
3e7b532c0bd1339a8e853c8b6d6610f669730dae
<ide><path>script/lib/check-chromedriver-version.js <ide> 'use strict'; <ide> <ide> const buildMetadata = require('../package.json'); <del>const CONFIG = require('../config'); <ide> const semver = require('semver'); <add>const chromedriverMetadataPath = require('electron-chromedriver/package.json'); <add>const mksnaps...
2
PHP
PHP
fix exception message
b856355d162e35b249bf05e85ec454f289e59928
<ide><path>src/Illuminate/Foundation/Testing/WithoutMiddleware.php <ide> public function disableMiddlewareForAllTests() <ide> if (method_exists($this, 'withoutMiddleware')) { <ide> $this->withoutMiddleware(); <ide> } else { <del> throw new Exception('Unable to disable middleware. ...
1
Ruby
Ruby
use method from hash
ee2979b90539ef1e4fd13513c6b3f3ffd00244e2
<ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb <ide> def reverse_merge(other_hash) <ide> <ide> # Same semantics as +reverse_merge+ but modifies the receiver in-place. <ide> def reverse_merge!(other_hash) <del> replace(reverse_merge(other_hash)) <add> super(self.class.new(...
1
Ruby
Ruby
use native chmod to set write permissions
53b95c62604fb902425c93aa01d68dc873067635
<ide><path>Library/Homebrew/cask/quarantine.rb <ide> def propagate(from: nil, to: nil) <ide> <ide> resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH) <ide> <del> FileUtils.chmod "u+w", resolved_paths <add> system_command!("/bin/chmod", args: ["-R", "u+w", to]) <ide> <ide> quarantiner...
1
Javascript
Javascript
await getcachedpathstatus in specs
d8985c8175f25e6f40026c07980846c68d4da935
<ide><path>spec/git-repository-async-spec.js <ide> fdescribe('GitRepositoryAsync-js', () => { <ide> fs.writeFileSync(modifiedPath, 'making this path modified') <ide> await repo.refreshStatus() <ide> <del> expect(repo.getCachedPathStatus(cleanPath)).toBeUndefined() <del> expect(repo.isStatusNew(re...
1
PHP
PHP
allow string content on fake file creation
181db51595d546cbd24b3fac0cb276255e147286
<ide><path>src/Illuminate/Http/Testing/File.php <ide> public function __construct($name, $tempFile) <ide> * Create a new fake file. <ide> * <ide> * @param string $name <del> * @param int $kilobytes <add> * @param string|int $kilobytes <ide> * @return \Illuminate\Http\Testing\File <ide>...
2
Java
Java
fix evaltagtests with locales other than english
261a863e8f61504a335dcfdbe1ed9f01d7e1fcbc
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/tags/EvalTagTests.java <ide> <ide> import java.math.BigDecimal; <ide> import java.util.HashMap; <add>import java.util.Locale; <ide> import java.util.Map; <ide> <ide> import javax.servlet.jsp.tagext.Tag; <ide> import org.springframework.core.env.Ma...
1
Python
Python
remove neural turing machine, unviable in 0.3.0
54c025ac26c81fc1cc58adf0be8f3d596ec73a3a
<ide><path>examples/neural_turing_machine_copy.py <del>from __future__ import absolute_import <del>from __future__ import print_function <del>import numpy as np <del>np.random.seed(123) <del>import matplotlib.pyplot as plt <del> <del>from theano import function <del> <del>from keras.models import Sequential <del>from k...
2
Python
Python
update typo in `compute_output_shape`
ff614c0bfb3987903f95cf191a03514eed495795
<ide><path>keras/engine/base_layer.py <ide> def compute_output_shape(self, input_shape): <ide> instead of an integer. <ide> <ide> Returns: <del> An input shape tuple. <add> An output shape tuple. <ide> """ <ide> if tf.executing_eagerly(): <ide> ...
1
PHP
PHP
add skips to bake related tests
8333cc7fd7764057bfc886a815f08e4d7de56749
<ide><path>lib/Cake/Test/TestCase/Console/Command/Task/ModelTaskTest.php <ide> <?php <ide> /** <del> * ModelTaskTest file <del> * <del> * Test Case for test generation shell task <del> * <del> * PHP 5 <del> * <ide> * CakePHP : Rapid Development Framework (http://cakephp.org) <ide> * Copyright 2005-2012, Cake Software...
2
Text
Text
add instruction for internal links
be5fe6d4b71b91d4c5df6d96dfba8a80b7a0e6ab
<ide><path>docs/_sidebar.md <ide> - [Work on localized client web app](how-to-work-on-localized-client-webapp.md) <ide> - [Work on Cypress tests](how-to-add-cypress-tests.md) <ide> - [Work on video challenges](how-to-help-with-video-challenges.md) <del> - [Work on the docs theme](how-to-work-on-the-docs-theme.md...
3
Ruby
Ruby
fix the error message on generate mailer
f3cf76d32dfce86a29c6e8a417841beb8c0a04a2
<ide><path>railties/lib/rails_generator/generators/components/mailer/mailer_generator.rb <ide> def manifest <ide> File.join('app/views', class_path, file_name, "#{action}.rhtml"), <ide> :assigns => { :action => action } <ide> m.template "fixture.rhtml", <del> ...
1
Javascript
Javascript
extend urlsearchparams constructor
cc48f21c8335da8d74b8b82f0314c872c027ab14
<ide><path>lib/internal/url.js <ide> function defineIDLClass(proto, classStr, obj) { <ide> } <ide> <ide> class URLSearchParams { <del> constructor(init = '') { <del> if (init instanceof URLSearchParams) { <del> const childParams = init[searchParams]; <del> this[searchParams] = childParams.slice(); <add> ...
2
Javascript
Javascript
add detail view for network inspector
d12d07597751939829e574928bd6243fd08adff1
<ide><path>Libraries/Inspector/NetworkOverlay.js <ide> const ListView = require('ListView'); <ide> const React = require('React'); <ide> const RecyclerViewBackedScrollView = require('RecyclerViewBackedScrollView'); <add>const ScrollView = require('ScrollView'); <ide> const StyleSheet = require('StyleSheet'); <ide> cons...
1
Ruby
Ruby
save an allocation in visit cat
bb611e59a62b61bcb78e1fa2a6cfbcf518c52a6c
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> def accept(node) <ide> end <ide> <ide> def visit_CAT(node) <del> [visit(node.left), visit(node.right)].join <add> "#{visit(node.left)}#{visit(node.right)}" <ide> end <ide> <ide> def vi...
1
Go
Go
replace more uses of "syscall"
079fb80657c70a843fe28719bd6bd6f731bf816a
<ide><path>pkg/system/path_windows.go <ide> package system // import "github.com/docker/docker/pkg/system" <ide> <del>import "syscall" <add>import "golang.org/x/sys/windows" <ide> <ide> // GetLongPathName converts Windows short pathnames to full pathnames. <ide> // For example C:\Users\ADMIN~1 --> C:\Users\Administra...
1
Javascript
Javascript
use oop for outgoingmessage._finish
831de7cbb911ebae58237babed22a672dc6a9da0
<ide><path>lib/_http_client.js <ide> util.inherits(ClientRequest, OutgoingMessage); <ide> <ide> exports.ClientRequest = ClientRequest; <ide> <add>ClientRequest.prototype._finish = function() { <add> DTRACE_HTTP_CLIENT_REQUEST(this, this.connection); <add> COUNTER_HTTP_CLIENT_REQUEST(); <add> OutgoingMessage.protot...
3
Javascript
Javascript
add dynamic anchors to anchor list
c1260716de634f0cc25ae884ffc481ed6b7d520a
<ide><path>docs/src/ngdoc.js <ide> function checkBrokenLinks(docs) { <ide> <ide> docs.forEach(function(doc) { <ide> byFullId[doc.section + '/' + doc.id] = doc; <add> if (doc.section === 'api') { <add> doc.anchors.push('directive', 'service', 'filter', 'function'); <add> } <ide> }); <ide> <ide> do...
1
Ruby
Ruby
enforce 10.5 as minimum osx sdk framework to use
7ebe8084ec545170ed665dac82e106f8aabbd46f
<ide><path>Library/Homebrew/brewkit.rb <ide> # http://forums.mozillazine.org/viewtopic.php?f=12&t=577299 <ide> # http://gcc.gnu.org/onlinedocs/gcc-4.0.1/gcc/i386-and-x86_002d64-Options.html <ide> ENV['MACOSX_DEPLOYMENT_TARGET']='10.5' <del>ENV['CFLAGS']=ENV['CXXFLAGS']='-O3 -w -pipe -fomit-frame-pointer -march=prescott...
1
PHP
PHP
remove unused variable
fd29db13a8419ca9c163f73b79dc951a3d3b4c7d
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testMapSpread() <ide> { <ide> $c = new Collection([[1, 'a'], [2, 'b']]); <ide> <del> $result = $c->mapSpread(function ($number, $character) use (&$result) { <add> $result = $c->mapSpread(function ($number, $character) { ...
1
PHP
PHP
fix message parsing in translator
3fb876148b68ef240d5c6bafb48e106a483d8345
<ide><path>src/I18n/Translator.php <ide> public function translate($key, array $tokensValues = []) <ide> <ide> // No or missing context, fallback to the key/first message <ide> if ($context === null) { <del> $message = current($message['_context']); <add> if (isset...
2
Ruby
Ruby
fix typo and improve example [ci skip]
e32bbc1356a7e72f721373344202c3d63fc37312
<ide><path>activerecord/lib/active_record/attribute_methods/before_type_cast.rb <ide> module BeforeTypeCast <ide> attribute_method_suffix "_before_type_cast" <ide> end <ide> <del> # Returns the value of the attribuet identified by +attr_name+ before <add> # Returns the value of the attribute id...
1
Python
Python
fix buggy config check for complex functions
0910a8e1aa858c58b3dce6930d4a0160b348b0da
<ide><path>numpy/core/setup.py <ide> def check_complex(config, mathlibs): <ide> pub.append(('NPY_HAVE_%s' % type2def(t), 1)) <ide> <ide> def check_prec(prec): <del> flist = [f + prec for f in C99_COMPLEX_TYPES] <del> if not config.check_funcs_once(flist): <add> ...
1
PHP
PHP
add macroable trait to redirectresponse
d8ca3e632dbde7f8233463f330c4053f4fb08f3f
<ide><path>src/Illuminate/Http/RedirectResponse.php <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\MessageBag; <ide> use Illuminate\Support\ViewErrorBag; <add>use Illuminate\Support\Traits\Macroable; <ide> use Illuminate\Session\Store as SessionStore; <ide> use Illuminate\Contracts\Support\MessageProvid...
1
Javascript
Javascript
remove references to three
c6ec6d3f9d65401bf623eac8ce124da4fbed7094
<ide><path>src/renderers/webvr/WebVRManager.js <ide> function WebVRManager( renderer ) { <ide> <ide> } <ide> <del> var matrixWorldInverse = new THREE.Matrix4(); <add> var matrixWorldInverse = new Matrix4(); <ide> <del> var standingMatrix = new THREE.Matrix4(); <del> var standingMatrixInverse = new THREE.Matrix4(); ...
1
Python
Python
return actual action object
0c1808fbd2e488b6cf822487eafdef0d2641c0bb
<ide><path>libcloud/container/drivers/rancher.py <ide> def start_container(self, container): <ide> """ <ide> result = self.connection.request('%s/containers/%s?action=start' % <ide> (self.baseuri, container.id), <del> metho...
1
Javascript
Javascript
add missing import
3a7809fbf0053305483f16ee723482f783f6437f
<ide><path>examples/jsm/exporters/GLTFExporter.js <ide> import { <ide> ClampToEdgeWrapping, <ide> DoubleSide, <ide> InterpolateDiscrete, <add> InterpolateLinear, <ide> LinearFilter, <ide> LinearMipMapLinearFilter, <ide> LinearMipMapNearestFilter,
1
Text
Text
fix typo on tutorial.md.
7c1e971e7fb4f9329f42c8f8f9f3fbb6803cb0a5
<ide><path>docs/tutorial/tutorial.md <ide> In [JavaScript classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/ <ide> Now change the Square `render` method to display the value from the current state, and to toggle it on click: <ide> <ide> * Replace `this.props.value` with `this.state.value` inside the `<b...
1
Java
Java
add filter to add exchange to reactor context
ed650891cad795cbabb078d6ae023a9da18105fa
<ide><path>spring-web/src/main/java/org/springframework/web/filter/reactive/ServerWebExchangeContextFilter.java <add>/* <add> * Copyright 2002-2019 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with ...
2
Python
Python
add conversion rule for .conll
55dab77de88d60640bc553297c1206106157110d
<ide><path>spacy/cli/convert.py <ide> # from /converters. <ide> <ide> CONVERTERS = { <del> '.conllu': conllu2json <add> '.conllu': conllu2json, <add> '.conll': conllu2json <ide> } <ide> <ide> <ide><path>spacy/cli/converters/conllu2json.py <ide> def conllu2json(input_path, output_path, n_sents=10, use_morpho...
2
Javascript
Javascript
fix lint error
06a2b944f58ba2a0bc131ff2f2f22e5b38450660
<ide><path>examples/counter/src/App.test.js <ide> import React from 'react'; <del>import { render } from '@testing-library/react'; <add>import { render, screen } from '@testing-library/react'; <ide> import { Provider } from 'react-redux'; <ide> import { store } from './app/store'; <ide> import App from './App'; <ide> ...
1
Javascript
Javascript
introduce a way to make es5 getters from `mixin`s
48e52b3d267d62e1c28d192a4679f25d669eb7d7
<ide><path>packages/ember-metal/lib/descriptor.js <add>import { Descriptor as EmberDescriptor } from 'ember-metal/properties'; <add> <add>export default function descriptor(desc) { <add> return new Descriptor(desc); <add>} <add> <add>/** <add> A wrapper for a native ES5 descriptor. In an ideal world, we wouldn't need...
2
Javascript
Javascript
fix warning message
90c92c7007628aec73fc3302df70274a614ad309
<ide><path>packages/react-test-renderer/src/ReactTestHostConfig.js <ide> export function appendChild( <ide> warning( <ide> Array.isArray(parentInstance.children), <ide> 'An invalid container has been provided. ' + <del> 'This may indicate that another render is being used in addition to the test ...
1
Text
Text
add section on how to purge unattached uploads
f4c51e8660bf1771268d45325fff8378eb90698e
<ide><path>guides/source/active_storage_overview.md <ide> class Uploader { <ide> } <ide> ``` <ide> <add>NOTE: Using [Direct Uploads](#direct-uploads) can sometimes result in a file that uploads, but never attaches to a record. Consider [purging unattached uploads](#purging-unattached-uploads). <add> <ide> Discarding F...
1
Python
Python
remove stray debug print
80cf9fd93f2c1e361b8650c0eba96d21d4a588bc
<ide><path>numpy/distutils/system_info.py <ide> def check_symbols(self, info): <ide> %(calls)s <ide> return 0; <ide> }""") % dict(prototypes=prototypes, calls=calls) <del> print(s) <ide> src = os.path.join(tmpdir, 'source.c') <ide> out = os.path.join(tm...
1
Javascript
Javascript
add test for type assign-properties
8250133209810223f1377ccb43abb12922439af1
<ide><path>test/configCases/library/type-assign-properties/index.js <add>it("should define global object with property", function () { <add> expect(MyLibrary["answer"]).toEqual(42); <add>}); <add>export const answer = 42; <ide><path>test/configCases/library/type-assign-properties/webpack.config.js <add>/** @type {impor...
2
Java
Java
introduce dedicated tests for disabledifcondition
9d21abcd37a3a6f7626418b67b529e6c1d0b1aa9
<ide><path>spring-test/src/test/java/org/springframework/test/context/junit/jupiter/DisabledIfConditionTestCase.java <add>/* <add> * Copyright 2002-2016 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance ...
2
Javascript
Javascript
add failing test for #90
96313a71e0c33227f3d8933197d1829a117afd4f
<ide><path>test/createRedux.spec.js <ide> describe('createRedux', () => { <ide> ]); <ide> expect(changeListenerSpy.calls.length).toBe(1); <ide> }); <add> <add> it('should use existing state when replacing the dispatcher', () => { <add> redux.dispatch(addTodo('Hello')); <add> <add> let nextRedux = creat...
1
Javascript
Javascript
fix behavior of reactdomselect
25e2cd0db6673f0ae80534b983b57a8cde1a0be4
<ide><path>src/dom/components/ReactDOMSelect.js <ide> function selectValueType(props, propName, componentName) { <ide> */ <ide> function updateOptions() { <ide> /*jshint validthis:true */ <del> if (this.props.value == null) { <del> return; <del> } <add> var value = this.props.value != null ? this.props.value :...
2
Javascript
Javascript
avoid leaking memory
a3be72b24c667470194dbee679fbdb86d7f56982
<ide><path>lib/Compiler.js <ide> ${other}`); <ide> } <ide> }, <ide> err => { <add> // Clear map to free up memory <add> caseInsensitiveMap.clear(); <ide> if (err) return callback(err); <ide> <ide> this.hooks.afterEmit.callAsync(compilation, err => {
1
Text
Text
assign pr semantics
fc0da7f6b435c6980b8f84869df0f5e02b2761c1
<ide><path>COLLABORATOR_GUIDE.md <ide> As soon as the PR is ready to land, please do so. Landing your own pull requests <ide> allows other Collaborators to focus on other pull requests. If your pull request <ide> is still awaiting the [minimum time to land](#waiting-for-approvals), add the <ide> `author ready` label so...
1
Go
Go
check integration test requirements using daemon
b1fb41988dc1b7071a58f76f6ad2730fc1a02eca
<ide><path>integration-cli/docker_cli_run_unix_test.go <ide> func (s *DockerSuite) TestRunWithSwappinessInvalid(c *check.C) { <ide> } <ide> <ide> func (s *DockerSuite) TestRunWithMemoryReservation(c *check.C) { <del> testRequires(c, memoryReservationSupport) <add> testRequires(c, SameHostDaemon, memoryReservationSuppo...
4
Javascript
Javascript
fix weird string error
2d950701a14638480d0e375180e6dff4b50a709b
<ide><path>test/parallel/test-stdio-pipe-access.js <ide> 'use strict'; <ide> const common = require('../common'); <ide> if (!common.isMainThread) <del> common.skip('Workers don’t have process-like stdio'); <add> common.skip("Workers don't have process-like stdio"); <ide> <ide> // Test if Node handles acessing proces...
2
Go
Go
add more moods to random name generator
60809a4f72984881e8a8dc07bf585f07975baf7d
<ide><path>namesgenerator/names-generator.go <ide> type NameChecker interface { <ide> } <ide> <ide> var ( <del> left = [...]string{"happy", "jolly", "dreamy", "sad", "angry", "pensive", "focused", "sleepy", "grave", "distracted", "determined", "stoic", "stupefied", "sharp", "agitated", "cocky", "tender", "goofy", "fur...
1
Text
Text
add parameters for settings events
e954aa0e0c5e97d2e9256e9145d13bb59ee6dfb1
<ide><path>doc/api/http2.md <ide> event is emitted. <ide> added: v8.4.0 <ide> --> <ide> <add>* `settings` {HTTP/2 Settings Object} A copy of the `SETTINGS` frame received. <add> <ide> The `'localSettings'` event is emitted when an acknowledgment `SETTINGS` frame <del>has been received. When invoked, the handler functi...
1
Javascript
Javascript
fix manual msaa
6f995385f5a7d6360bf694c10c5f934d6c92665d
<ide><path>examples/js/postprocessing/ManualMSAARenderPass.js <ide> THREE.ManualMSAARenderPass.prototype = Object.assign( Object.create( THREE.Pass. <ide> <ide> var baseSampleWeight = 1.0 / jitterOffsets.length; <ide> var roundingRange = 1 / 32; <del> this.copyUniforms[ "tDiffuse" ].value = this.sampleRenderTarge...
1
PHP
PHP
remove colon from message
ddfacfb64afbf8da8044bd96b702cb4e21dc7657
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public static function findOrFail($id, $columns = array('*')) <ide> { <ide> if ( ! is_null($model = static::find($id, $columns))) return $model; <ide> <del> throw new ModelNotFoundException(get_called_class().': model not found'); <add> throw new ModelNo...
1
Ruby
Ruby
improve formula not found handling (#96)
fdf55e77e10f938d1c5d8a72e015e04451be938a
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> rescue FormulaUnavailableError => e <ide> if (blacklist = blacklisted?(e.name)) <ide> ofail "#{e.message}\n#{blacklist}" <add> elsif e.name == "updog" <add> ofail "What's updog?" <ide> else <ide> ofail e.messa...
1
Text
Text
improve translation of title and first paragraph
c178dbf64faf3b30fc6ff90d4f23175721534d44
<ide><path>guide/spanish/c/if-statements/index.md <ide> title: Logical Operators and If Statements <ide> localeTitle: Operadores lógicos y declaraciones if <ide> --- <del># Si las declaraciones en C <add># Sentencias if en C <ide> <del>La capacidad de cambiar el comportamiento de un fragmento de código que se basa en ...
1
Python
Python
use post instead of get for sanity of use-case
d1371cc949afcc66c7e7f497bab62ec655cddf31
<ide><path>tests/test_atomic_requests.py <ide> <ide> <ide> class BasicView(APIView): <del> def get(self, request, *args, **kwargs): <add> def post(self, request, *args, **kwargs): <ide> BasicModel.objects.create() <ide> return Response({'method': 'GET'}) <ide> <ide> <ide> class ErrorView(APIVi...
1
PHP
PHP
remove boolean param for merging
551f93b4521983f9ee5267877f777319a8c57c44
<ide><path>src/Form/Form.php <ide> public function getData($field = null) <ide> return Hash::get($this->_data, $field); <ide> } <ide> <del> public function setData(array $data, $merge = true) <add> public function setData(array $data) <ide> { <del> if ($merge) { <del> $this->_da...
1
Go
Go
use prefix naming for port tests
6e8c9e7bee5319b1e324c72240ef9d7a77946135
<ide><path>integration-cli/docker_cli_port_test.go <ide> import ( <ide> "testing" <ide> ) <ide> <del>func TestListPorts(t *testing.T) { <add>func TestPortList(t *testing.T) { <ide> // one port <ide> runCmd := exec.Command(dockerBinary, "run", "-d", "-p", "9876:80", "busybox", "top") <ide> out, _, err := runCommand...
1
Javascript
Javascript
fix object flickering with canvasrenderer
d707242f4143eb5dcbada19858ffb1c8ab46d4e5
<ide><path>examples/js/renderers/Projector.js <ide> THREE.Projector = function () { <ide> <ide> if ( groups.length > 0 ) { <ide> <del> for ( var o = 0; o < groups.length; o ++ ) { <add> for ( var g = 0; g < groups.length; g ++ ) { <ide> <del> var group = groups[ o ]; <add> var group =...
1
Ruby
Ruby
create gem_home when installing gems
5b19563937bab44fb98648a8dabdb9dc930a0ac3
<ide><path>Library/Homebrew/utils.rb <ide> def install_gem_setup_path!(name, version = nil, executable = name) <ide> Gem.clear_paths <ide> Gem::Specification.reset <ide> <add> # Create GEM_HOME which may not exist yet so it exists when creating PATH. <add> FileUtils.mkdir_p Gem.bindir <add> <ide> # A...
1
Python
Python
fix broken triggering dag from ui functionality
b2a3ab59b5c4980af99ea44f7e8b56327c1506ca
<ide><path>airflow/models/dag.py <ide> def get_paused_dag_ids(dag_ids: List[str], session: Session = None) -> Set[str]: <ide> def safe_dag_id(self): <ide> return self.dag_id.replace('.', '__dot__') <ide> <del> @provide_session <del> def create_dagrun(self, <del> run_id, <del> ...
3
PHP
PHP
add accessor for pivot accessor
f09ea98bc814c708215896dad702d715923f3bc3
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> public function getRelationName() <ide> { <ide> return $this->relationName; <ide> } <add> <add> /** <add> * Get the name of the pivot accessor for this relationship. <add> * <add> * @return string <add> */ <...
1
Ruby
Ruby
remove controller construction
208956c0d014b6e4c560ac40145fdac97c72aa39
<ide><path>actionpack/test/controller/live_stream_test.rb <ide> def capture_log_output <ide> end <ide> <ide> def test_set_cookie <del> @controller = TestController.new <ide> get :set_cookie <ide> assert_equal({'hello' => 'world'}, @response.cookies) <ide> assert_equal "hello world", @res...
1
Text
Text
use serial comma in dns docs
89df3546adf2948cae32d4be976639019d149d4c
<ide><path>doc/api/dns.md <ide> using `dns.resolve()` and using the address instead of a host name. Also, some <ide> networking APIs (such as [`socket.connect()`][] and [`dgram.createSocket()`][]) <ide> allow the default resolver, `dns.lookup()`, to be replaced. <ide> <del>### `dns.resolve()`, `dns.resolve*()` and `dn...
1
Javascript
Javascript
enable eager listeners statically
993ca533b42756811731f6b7791ae06a35ee6b4d
<ide><path>packages/react-dom/src/__tests__/ReactDOMFiber-test.js <ide> describe('ReactDOMFiber', () => { <ide> expect(ops).toEqual([]); <ide> }); <ide> <del> // @gate enableEagerRootListeners <ide> it('listens to events that do not exist in the Portal subtree', () => { <ide> const onClick = jest.fn(); <i...
21
Javascript
Javascript
add tests for current ast plugin format
101322cdc5cb4bc669322d9f4c117de3c7dd228d
<ide><path>packages/ember-template-compiler/tests/system/compile_options_test.js <ide> moduleFor( <ide> ); <ide> <ide> let customTransformCounter = 0; <del>class CustomTransform { <add>class LegacyCustomTransform { <ide> constructor(options) { <ide> customTransformCounter++; <ide> this.options = options; <id...
1
Ruby
Ruby
use tt in doc for action_mailer [ci skip]
70f75caaa3dc78e44e2a1c9bc97b86e1bed84d25
<ide><path>actionmailer/lib/action_mailer/rescuable.rb <ide> # frozen_string_literal: true <ide> <ide> module ActionMailer #:nodoc: <del> # Provides `rescue_from` for mailers. Wraps mailer action processing, <add> # Provides +rescue_from+ for mailers. Wraps mailer action processing, <ide> # mail job processing, an...
1
Python
Python
use nonexperimental lso api in base_task.py
cc12499b45c32463ceed05327a44e2b283b3474b
<ide><path>official/core/base_task.py <ide> def create_optimizer(cls, optimizer_config: OptimizationConfig, <ide> optimizer, <ide> use_float16=runtime_config.mixed_precision_dtype == "float16", <ide> loss_scale=runtime_config.loss_scale, <del> use_experimental_api=True) <add> ...
3
Text
Text
fix minor typos
2333f7c1b882dff09b944967a29162f9aca42e7d
<ide><path>docs/basic-features/typescript.md <ide> npm run dev <ide> <ide> # You'll see instructions like these: <ide> # <del># Please install typescript, @types/react, and @types/node by running: <add># Please install TypeScript, @types/react, and @types/node by running: <ide> # <ide> # yarn add --dev typescr...
3
PHP
PHP
apply fixes from styleci
2dbb28ffe45804c408a79f9817a6b560de3ed82a
<ide><path>tests/Cache/RedisCacheIntegrationTest.php <ide> <?php <ide> <add>use Mockery as m; <ide> use Illuminate\Cache\RedisStore; <ide> use Illuminate\Cache\Repository; <del>use Mockery as m; <ide> <ide> class RedisCacheTest extends PHPUnit_Framework_TestCase <ide> { <ide><path>tests/Database/DatabaseEloquentInteg...
3
PHP
PHP
provide hook into job creation for sqs
0dd091ed8f8c2416628bf245d0bc6e81232a9a07
<ide><path>src/Illuminate/Queue/SqsQueue.php <ide> class SqsQueue extends Queue implements QueueContract <ide> */ <ide> protected $default; <ide> <add> /** <add> * The job creator callback. <add> * <add> * @var callable|null <add> */ <add> protected $jobCreator; <add> <ide> /** <ide>...
2
Text
Text
ignore no-literal-urls in changelogs
6fc17fbec91b2a7c694035136f1d6fd8b4902213
<ide><path>doc/changelogs/CHANGELOG_ARCHIVE.md <ide> <ide> <!--lint disable prohibited-strings--> <ide> <!--lint disable maximum-line-length--> <add><!--lint disable no-literal-urls--> <ide> <ide> <table> <ide> <tr> <ide><path>doc/changelogs/CHANGELOG_IOJS.md <ide> <ide> <!--lint disable prohibited-strings--> <ide> ...
14
Javascript
Javascript
clean the structure of conditons in parseweekday
1cee6e74d56caea332ba8b41da6445d43113e408
<ide><path>src/lib/units/day-of-week.js <ide> addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { <ide> // HELPERS <ide> <ide> function parseWeekday(input, locale) { <del> if (typeof input === 'string') { <del> if (!isNaN(input)) { <del> input = parseInt(input, 10); <del> ...
1
Ruby
Ruby
eliminate another curl call
951cf09d4b76ffa14b76f089e30b4be06cf00011
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> # frozen_string_literal: true <ide> <add>require "download_strategy" <ide> require "cli/parser" <ide> require "utils/github" <ide> require "tmpdir" <ide> require "bintray" <ide> <del>class CurlNoResumeDownloadStrategy < CurlDownloadStrategy <del> private <del> <de...
2
Ruby
Ruby
reject dot dirs as racks
f818f0e68139fd1e7b2665f0cd415936aa8cc63d
<ide><path>Library/Homebrew/formula.rb <ide> def self.clear_installed_formulae_cache <ide> def self.racks <ide> @racks ||= if HOMEBREW_CELLAR.directory? <ide> HOMEBREW_CELLAR.subdirs.reject do |rack| <del> rack.symlink? || rack.subdirs.empty? <add> rack.symlink? || rack.basename.to_s.start_wit...
1
Text
Text
fix typographical error
8c101dec1778ffaf8a80f4b6ae06d495a2342bb0
<ide><path>doc/api/perf_hooks.md <ide> The standard deviation of the recorded event loop delays. <ide> ### Measuring the duration of async operations <ide> <ide> The following example uses the [Async Hooks][] and Performance APIs to measure <del>the actual duration of a Timeout operation (including the amount of time ...
1
Javascript
Javascript
blacklist the attribute `usemap`
234053fc9ad90e0d05be7e8359c6af66be94c094
<ide><path>src/ngSanitize/sanitize.js <ide> var validElements = angular.extend({}, <ide> optionalEndTagElements); <ide> <ide> //Attributes that have href and hence need to be sanitized <del>var uriAttrs = toMap("background,cite,href,longdesc,src,usemap,xlink:href"); <add>var uriAttrs...
2
Python
Python
update version [ci skip]
a0fb1acb104a88c5dff8ccfdf6d5ae6c049c627e
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.3.dev0" <add>__version__ = "2.2.3" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod...
1
Text
Text
fix logic in rules+model entity example [ci skip]
7fc39f124c2bf9b62c63caccd005e9ae7add078b
<ide><path>website/docs/usage/rule-based-matching.md <ide> def expand_person_entities(doc): <ide> if prev_token.text in ("Dr", "Dr.", "Mr", "Mr.", "Ms", "Ms."): <ide> new_ent = Span(doc, ent.start - 1, ent.end, label=ent.label) <ide> new_ents.append(new_ent) <add> ...
1
Ruby
Ruby
request method explanations
237272e049e409c9f620dfadb7cf0688e8c91b0f
<ide><path>actionpack/lib/action_dispatch/http/request.rb <ide> def method_symbol <ide> end <ide> <ide> # Is this a GET (or HEAD) request? <del> # Equivalent to <tt>request.request_method == :get</tt>. <add> # Equivalent to <tt>request.request_method_symbol == :get</tt>. <ide> def get? <ide> HT...
1
PHP
PHP
implement more parts of the request class
fb829bdd7b31330b968d067e868d7713975d4921
<ide><path>lib/Cake/Network/Http/Request.php <ide> <ide> /** <ide> * Implements methods for HTTP requests. <add> * <add> * Used by Cake\Network\Http\Client to contain request information <add> * for making requests. <ide> */ <ide> class Request { <ide> <ide> class Request { <ide> 'User-Agent' => 'CakePHP' <ide> ...
1
Python
Python
add comment for a note of caution
703c2925b3ead8d3f23fc9acee1d90b9c7d46835
<ide><path>keras/backend/tensorflow_backend.py <ide> def shape(x): <ide> def int_shape(x): <ide> '''Returns the shape of a tensor as a tuple of <ide> integers or None entries. <add> Note that this function only works with TensorFlow. <ide> ''' <ide> shape = x.get_shape() <ide> return tuple([i.__...
1
Go
Go
fix some data races
7917a36cc787ada58987320e67cc6d96858f3b55
<ide><path>api/types/network/network.go <ide> type EndpointIPAMConfig struct { <ide> LinkLocalIPs []string `json:",omitempty"` <ide> } <ide> <add>// Copy makes a copy of the endpoint ipam config <add>func (cfg *EndpointIPAMConfig) Copy() *EndpointIPAMConfig { <add> cfgCopy := *cfg <add> cfgCopy.LinkLocalIPs = make([]...
8
Text
Text
update docs on static image imports
2967fe1df39ec0946d171ac2a36c9805cfccff0d
<ide><path>docs/basic-features/image-optimization.md <ide> To add an image to your application, import the [`next/image`](/docs/api-referen <ide> <ide> ```jsx <ide> import Image from 'next/image' <del>import profilePic from '../public/me.png' <ide> <ide> function Home() { <ide> return ( <ide> <> <ide> <h1...
1
Javascript
Javascript
fix compiler test
d544027af7891d5dac6a7a35129bc184fa7b0034
<ide><path>test/Compiler.test.js <ide> describe("Compiler", () => { <ide> it("should compile a file with multiple chunks", done => { <ide> compile("./chunks", {}, (stats, files) => { <ide> expect(stats.chunks).toHaveLength(2); <del> expect(Object.keys(files)).toEqual(["/main.js", "/0.js"]); <add> expect(Objec...
1
Javascript
Javascript
use common.pipe in simple/test-cluster-eaccess
b9cecc305bf75a7246cba2768fabd3c72a7248dc
<ide><path>test/simple/test-cluster-eaccess.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <del> <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> var cluster = require('cluster'); <del>var p...
1
PHP
PHP
use tableschema constants in sqlite schema
21b16a74824dd389f1a7b484789291473f2379b4
<ide><path>src/Database/Schema/SqliteSchema.php <ide> namespace Cake\Database\Schema; <ide> <ide> use Cake\Database\Exception; <add>use Cake\Database\Schema\TableSchema; <ide> <ide> /** <ide> * Schema management/reflection features for Sqlite <ide> protected function _convertColumn($column) <ide> } <ide> <i...
1
Ruby
Ruby
use the factory method to construct the mapping
4097ff5c5faa67b4b9a00488c42c7b16b0fdd2fc
<ide><path>actionpack/test/dispatch/mapper_test.rb <ide> def test_initialize <ide> <ide> def test_mapping_requirements <ide> options = { :controller => 'foo', :action => 'bar', :via => :get } <del> m = Mapper::Mapping.new({}, '/store/:name(*rest)', options) <add> m = Mapper::Mapping.build({...
1
PHP
PHP
fix failing tests caused by directory changes
fa0b32323729158323e72b5e96aa0f9955966e86
<ide><path>Cake/Test/TestCase/Utility/DebuggerTest.php <ide> public function customFormat($error, $strings) { <ide> */ <ide> public function testTrimPath() { <ide> $this->assertEquals('APP/', Debugger::trimPath(APP)); <del> $this->assertEquals('CORE', Debugger::trimPath(CAKE_CORE_INCLUDE_PATH)); <del> $this->asse...
3
Python
Python
remove has_key from config
944bb9fb73ed888f9917e3059274af2f3fa652fb
<ide><path>numpy/distutils/command/config.py <ide> def check_funcs_once(self, funcs, <ide> body.append("int main (void) {") <ide> if call: <ide> for f in funcs: <del> if call.has_key(f) and call[f]: <del> if not (call_args and call_args.has_key(f) and call_a...
1
PHP
PHP
change is_callable checks to instanceof closure
fb3a0df0ddaf7bf65a041c07dd33979196994d51
<ide><path>laravel/arr.php <ide> public static function get($array, $key, $default = null) <ide> { <ide> if ( ! is_array($array) or ! array_key_exists($segment, $array)) <ide> { <del> return is_callable($default) ? call_user_func($default) : $default; <add> return ($default instanceof \Closure) ? call_use...
7
PHP
PHP
fix return of add method in cache repository
cf8238d45e6c037566619e9ca0c01a91e8816f69
<ide><path>src/Illuminate/Cache/Repository.php <ide> public function add($key, $value, $minutes) <ide> // so it exists for subsequent requests. Then, we will return true so it is <ide> // easy to know if the value gets added. Otherwise, we will return false. <ide> if (is_null($this->get($key))) ...
2
Javascript
Javascript
fix webcrypto import of cfrg raw public keys
5fad0b93667ffc6e4def52996b9529ac99b26319
<ide><path>lib/internal/crypto/cfrg.js <ide> function verifyAcceptableCfrgKeyUse(name, type, usages) { <ide> } <ide> } <ide> <del>function createECPublicKeyRaw(name, keyData) { <del> const handle = new KeyObjectHandle(); <del> keyData = getArrayBufferOrView(keyData, 'keyData'); <del> if (handle.initECRaw(name.toL...
2
Python
Python
convert int to str before adding to a str
f382a8decda82062bb6911f05b646f404eacfdd4
<ide><path>examples/run_lm_finetuning.py <ide> class TextDataset(Dataset): <ide> def __init__(self, tokenizer, file_path='train', block_size=512): <ide> assert os.path.isfile(file_path) <ide> directory, filename = os.path.split(file_path) <del> cached_features_file = os.path.join(directory, '...
1
Python
Python
fix results for cassandra backend in detailed mode
7a14d6f1a1158839e0beae75a4e634b2e84e654c
<ide><path>celery/backends/cassandra.py <ide> def _store_result(self, task_id, result, status, <ide> """Store return value and status of an executed task.""" <ide> <ide> def _do_store(): <del> detailed = self.detailed_mode <ide> cf = self._get_column_family() <ide> da...
1
Python
Python
fix a typo for an error message in the gce driver
9d253dba668316954e96a986cff01bf915831ab6
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_set_node_scheduling(self, node, on_host_maintenance=None, <ide> on_host_maintenance = on_host_maintenance.upper() <ide> ohm_values = ['MIGRATE', 'TERMINATE'] <ide> if on_host_maintenance not in ohm_values: <del> r...
1
Javascript
Javascript
remove lanepriority from getbumpedlaneforhydration
3221e8fba4cc96cf6c7723bab9485223a266d796
<ide><path>packages/react-reconciler/src/ReactFiberLane.new.js <ide> export function getBumpedLaneForHydration( <ide> root: FiberRoot, <ide> renderLanes: Lanes, <ide> ): Lane { <del> getHighestPriorityLanes(renderLanes); <del> const highestLanePriority = return_highestLanePriority; <add> const renderLane = getHi...
2
Javascript
Javascript
fix the normals for morphs
d1261c9293d6b743d417c4e2da307f2c8685caee
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> object.__webglMorphTargetInfluences[ m ] = influences[ gonnaUse[m]]; <ide> } else { <ide> _gl.vertexAttribPointer( attributes[ "morphTarget" + m ], 3, _gl.FLOAT, false, 0, 0 ...
1
PHP
PHP
extract common code into a helper method
95d9b0673d7a95806cccb0cb393a568ad556b596
<ide><path>src/Network/Request.php <ide> public function here($base = true) <ide> return $url; <ide> } <ide> <add> /** <add> * Normalize a header name into the SERVER version. <add> * <add> * @param string $name The header name. <add> * @return string The normalized header name. <add> ...
2
Python
Python
set version to v3.5.0
32396e0bda3aceda74f2d7d050180032cd381d32
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.4.2" <add>__version__ = "3.5.0" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.json"...
1
Ruby
Ruby
clarify path requirements
78f9b23218a45fd5d5b2237741b0b2bb89dca66b
<ide><path>Library/Contributions/cmd/brew-bundle.rb <ide> # Looks for a Brewfile and runs each line as a brew command. <ide> # <ide> # brew bundle # Looks for "./Brewfile" <del># brew bundle path/to/dir # Looks for "./path/to/dir/Brewfile" <del># brew bundle path/to/file # Looks for "./path/to/file" <add>...
1
Javascript
Javascript
add infra for prepack build option
43f18ffd087280e6df1e4900deb6fe201b87741a
<ide><path>local-cli/bundle/__tests__/saveBundleAndMap-test.js <del>/** <del> * Copyright (c) 2015-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An additional gran...
11
PHP
PHP
fix docs about ordering of callbacks
75f1a8406908b62240dee0a4d805bedbf77b34b4
<ide><path>lib/Cake/Controller/Component.php <ide> public function startup(Controller $controller) { <ide> } <ide> <ide> /** <del> * Called after the Controller::beforeRender(), after the view class is loaded, and before the <del> * Controller::render() <add> * Called before the Controller::beforeRender(), and before...
1
Text
Text
fix minor typo in "docker engine runs navitvely"
435bc9d9898febc8b9c16a02e4114745a52374fc
<ide><path>docs/getstarted/step_one.md <ide> If you have an earlier Windows system that doesn't meet the Docker for Windows p <ide> See [Docker Toolbox Overview](/toolbox/overview.md) for help on installing Docker with Toolbox. <ide> <ide> ### Docker for Linux <del>Docker Engine runs navitvely on Linux distributions. ...
1
Javascript
Javascript
remove most of attrsproxy
87694af87d7decf2fcbc52d646138a2f7cfe4cdb
<ide><path>packages/ember-htmlbars/lib/node-managers/component-node-manager.js <ide> ComponentNodeManager.prototype.rerender = function(_env, attrs, visitor) { <ide> var snapshot = takeSnapshot(attrs); <ide> <ide> if (component._renderNode.shouldReceiveAttrs) { <add> if (component.propagateAttrsToThis) { ...
4