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
PHP
PHP
remove long comment
4046a8165a259f4608179fcee4f977b138e68b4e
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function chunk($count, callable $callback) <ide> * @param int $count <ide> * @param callable $callback <ide> * @param string $column <del> * @param string $alias Alias of the ID column if there are multiple columns with the...
1
Python
Python
fix test_call.py docstring
4b40c34c532f3d3f8b2222a19ba5038eb61a1ee4
<ide><path>tests/keras/layers/test_call.py <ide> class TestCall(unittest.TestCase): <ide> """Test __call__ methods""" <ide> <ide> def test_layer_call(self): <del> """Test keras.layers.Layer.__call__""" <add> """Test keras.layers.core.Layer.__call__""" <ide> nb_samples, input_dim = 3, 10 <...
1
Python
Python
combine weights from multiple components
f8cf378be9087864328d9ad5b90bc15e78021cba
<ide><path>spacy/util.py <ide> def combine_score_weights(weights: List[Dict[str, float]]) -> Dict[str, float]: <ide> # score weights accordingly, then divide score by the number of components <ide> total = sum([w for w in w_dict.values()]) <ide> for key, value in w_dict.items(): <del> ...
1
Ruby
Ruby
show stderr by default when generating completions
1209fc046f9669a9b418b7dd759caf4224ab2098
<ide><path>Library/Homebrew/formula.rb <ide> def generate_completions_from_executable(*commands, <ide> popen_read_args << shell_parameter if shell_parameter.present? <ide> popen_read_args.flatten! <ide> <add> popen_read_options = {} <add> popen_read_options[:err] = :err unless ENV["HOMEBREW_STDER...
1
Python
Python
improve assert_warns docstring with example
ff5680a0298251d8df7958f47032ac02cdea80e3
<ide><path>numpy/testing/_private/utils.py <ide> def assert_warns(warning_class, *args, **kwargs): <ide> ---------- <ide> warning_class : class <ide> The class defining the warning that `func` is expected to throw. <del> \\*args : List of function and arguments <del> `func` and arguments for `...
1
Python
Python
fix failing test
7bc36c2c39b4412ba8aa01ff1197c999920cad1f
<ide><path>numpy/lib/tests/test_io.py <ide> def test_large_zip(self): <ide> except (MemoryError, OverflowError): <ide> pytest.skip("Cannot allocate enough memory for test") <ide> test_data = np.asarray([np.random.rand(np.random.randint(50,100),4) <del> for i in ...
1
Ruby
Ruby
optlink fake kegs in uninstall test
e1d7d44e5a13d16bc7773a7afb09c1a789878f5a
<ide><path>Library/Homebrew/test/uninstall_test.rb <ide> def setup <ide> depends_on "dependency" <ide> end <ide> <del> [@dependency, @dependent].each { |f| f.installed_prefix.mkpath } <add> [@dependency, @dependent].each do |f| <add> f.installed_prefix.mkpath <add> Keg.new(f.installed_prefix)...
1
Ruby
Ruby
add unless_exist option to memory store
b5005b6259144eeea5b903d659f54bd8a0343d25
<ide><path>activesupport/lib/active_support/cache/memory_store.rb <ide> def read_entry(key, options) # :nodoc: <ide> def write_entry(key, entry, options) # :nodoc: <ide> synchronize do <ide> old_entry = @data[key] <add> return false if @data.key?(key) && options[:unless_exist] <...
2
Java
Java
fix bug in android elevation implementation
64a78ed74b20a93d1272d9958a1cbfd6060604ad
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java <ide> public void getOutline(Outline outline) { <ide> : 0; <ide> outline.setRoundRect(getBounds(), mBorderRadius + extraRadiusFromBorderWidth); <ide> } else { <del> super.getOutline(outline)...
1
Python
Python
update documentation of numpy.memmap
c3b29ca3287ec440cd918f8ae0d1cae4b954e69d
<ide><path>numpy/core/memmap.py <ide> class memmap(ndarray): <ide> This class may at some point be turned into a factory function <ide> which returns a view into an mmap buffer. <ide> <del> Delete the memmap instance to close the memmap file. <add> Flush the memmap instance to write the changes to the fi...
1
Text
Text
add notes on preparing training data to docs
9391998c7779081226b65888a08b51798f94b5d2
<ide><path>website/docs/api/data-formats.md <ide> CLI [`train`](/api/cli#train) command. The built-in <ide> of the `.conllu` format used by the <ide> [Universal Dependencies corpora](https://github.com/UniversalDependencies). <ide> <add>Note that while this is the format used to save training data, you do not have <ad...
2
Python
Python
use list and dict comprehension when possible
0ee245bc6df60b911fafe81a743ec2a68a063c20
<ide><path>numpy/compat/_inspect.py <ide> def formatargvalues(args, varargs, varkw, locals, <ide> def convert(name, locals=locals, <ide> formatarg=formatarg, formatvalue=formatvalue): <ide> return formatarg(name) + formatvalue(locals[name]) <del> specs = [] <del> for i in range(len(arg...
17
Ruby
Ruby
fix habtm documentation to correct typo
ffb22bd2be62e6a9a2eb11966e9bc07fee8722af
<ide><path>activerecord/lib/active_record/associations.rb <ide> def belongs_to(association_id, options = {}) <ide> # * <tt>Developer#projects.empty?</tt> <ide> # * <tt>Developer#projects.size</tt> <ide> # * <tt>Developer#projects.find(id)</tt> <del> # * <tt>Developer#clients.exists?(...)</tt> <ad...
1
Javascript
Javascript
fix some linting errors
ee0543ed0ad6cfd21af898bfa66b7651c2590600
<ide><path>examples/universal/server/index.js <add>/* eslint-disable no-console, no-use-before-define */ <add> <ide> import path from 'path'; <ide> import Express from 'express'; <ide> import qs from 'qs'; <ide> import configureStore from '../common/store/configureStore'; <ide> import App from '../common/containers/App...
1
Java
Java
pass resource drawable id to constructor directly
4acf009284bfbcd3408b0f198358112de1bcba28
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java <ide> public ReactImageView createViewInstance(ThemedReactContext context) { <ide> return new ReactImageView( <ide> context, <ide> getDraweeControllerBuilder(), <del> getCallerContext()); <add> ...
2
Go
Go
refactor the flag management for main
6b2e963ce0aef802e60eafe0e895f24abb294a07
<ide><path>pkg/libcontainer/nsinit/exec.go <ide> func Exec(container *libcontainer.Container, tty bool, args []string) (int, erro <ide> system.UsetCloseOnExec(r.Fd()) <ide> <ide> command := createCommand(container, console, r.Fd(), args) <del> <ide> if !tty { <del> inPipe, err = command.StdinPipe() <del> if err !...
3
Ruby
Ruby
sign the tags when releasing
db93aa16c466c310d5e0f720eb966329e3bdcd83
<ide><path>tasks/release.rb <ide> end <ide> <ide> task :tag do <del> sh "git tag -m '#{tag} release' #{tag}" <add> sh "git tag -s -m '#{tag} release' #{tag}" <ide> sh "git push --tags" <ide> end <ide>
1
Python
Python
update vps.net to use api
643ce01bdb124b265531bd6e224fac812c254c1e
<ide><path>libcloud/drivers/vpsnet.py <ide> def reboot_node(self, node): <ide> (node.id, 'reboot', API_VERSION), <ide> method="POST") <ide> node = self._to_node(res.object['virtual_machine']) <del> return node <add> re...
2
Javascript
Javascript
update imports in ember-metal package tests
bec5c1beeaf06fb16fa1b2478d497915f4a1e801
<ide><path>packages/ember-metal/tests/accessors/get_path_test.js <del>import { get } from 'ember-metal/property_get'; <add>import { get } from '../../property_get'; <ide> <ide> let obj; <ide> const moduleOpts = { <ide><path>packages/ember-metal/tests/accessors/get_properties_test.js <del>import getProperties from 'emb...
66
Text
Text
add a missing changelog entry for and
0c63fbcdf131dddf696248498e87c0513b43daca
<ide><path>activerecord/CHANGELOG.md <add>* Properly detect if a connection is still active before using it <add> in multi-threaded environments. <add> <add> Fixes #12867. <add> <add> *Kevin Casey*, *Matthew Draper*, *William (B.J.) Snow Orvis* <add> <ide> * When inverting add_index use the index name if p...
1
Javascript
Javascript
remove unneeded comma in shaderlib
1de867fae716726511f0f0ab059e14879d16030d
<ide><path>src/renderers/shaders/ShaderLib.js <ide> var ShaderLib = { <ide> emissive : { value: new Color( 0x000000 ) }, <ide> roughness: { value: 0.5 }, <ide> metalness: { value: 0 }, <del> envMapIntensity : { value: 1 }, // temporary <add> envMapIntensity : { value: 1 } // temporary <ide> } <ide>...
1
Go
Go
assert error in body of function `inspectfield*`
62a856e9129c9d5cf7db9ea6322c9073d68e3ea4
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestContainerApiCommit(c *check.C) { <ide> var img resp <ide> c.Assert(json.Unmarshal(b, &img), checker.IsNil) <ide> <del> cmd, err := inspectField(img.ID, "Config.Cmd") <del> c.Assert(err, checker.IsNil) <add> cmd := inspectField(c...
34
Text
Text
add solution required
38fa8b71a14ddfc057b1f90d4507d69b033944c1
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.portuguese.md <ide> tests: <ide> <ide> ```html <ide> <img src="doingKarateWow.jpeg"> <del> <ide> ``` <ide> <ide> </div> <ide> tests: <ide> ## Solução <ide> <s...
1
Python
Python
remove code with side effects from main
12f69a86f56845f6df96c9991c856f665169f8a6
<ide><path>fuzzy_logic/fuzzy_operations.py <ide> Python: <ide> - 3.5 <ide> """ <del># Create universe of discourse in python using linspace () <ide> import numpy as np <del> <del>X = np.linspace(start=0, stop=75, num=75, endpoint=True, retstep=False) <del> <del># Create two fuzzy sets by defining any membership funct...
4
Ruby
Ruby
add failing test case for
1cf73a6fed772ec6b02cd8c7e8d0e93cb2f17c57
<ide><path>activerecord/test/cases/dirty_test.rb <ide> def test_setting_time_attributes_with_time_zone_field_to_same_time_should_not_be <ide> end <ide> end <ide> <add> def test_datetime_attribute_can_be_updated_with_fractional_seconds <add> in_time_zone 'Paris' do <add> target = Class.new(ActiveRecord::...
1
PHP
PHP
prefer stricter negative comparisons with strings
e2efbcbc609047f7342252fc12dfbaa4682f8b38
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> protected function transformHeadersToServerVars(array $headers) <ide> */ <ide> protected function formatServerHeaderKey($name) <ide> { <del> if (! Str::startsWith($name, 'HTTP_') && $name != 'CONTENT_TYPE' && $name != ...
2
Javascript
Javascript
redirect user to current challenge
776b5156c14151df3fe355b7c6ea72886605e0cf
<ide><path>server/boot/challenge.js <ide> const isDev = process.env.NODE_ENV !== 'production'; <ide> const isBeta = !!process.env.BETA; <ide> const debug = debugFactory('freecc:challenges'); <ide> const challengesRegex = /^(bonfire|waypoint|zipline|basejump|checkpoint)/i; <del>const firstChallenge = 'waypoint-learn-how...
3
Javascript
Javascript
add test for momentproperties and cloning
059d1c094a5b9e09a7470e5e45c1f505b6b8d48f
<ide><path>test/moment/create.js <ide> exports.create = { <ide> test.done(); <ide> }, <ide> <add> "cloning respects moment.momentProperties" : function (test) { <add> var m = moment(); <add> <add> test.equal(m.clone()._special, undefined, "cloning ignores extra properties"); <add> m...
1
Python
Python
add trig funcs for numpy backend
4dea0f867aa29c4e6bda2a66cdf1254adfa20400
<ide><path>tests/keras/backend/backend_test.py <ide> def test_elementwise_operations(self): <ide> check_single_tensor_operation('clip', (4, 2), WITH_NP, min_value=0.4, <ide> max_value=0.6) <ide> <add> check_single_tensor_operation('cos', (4, 2), WITH_NP) <add> ...
2
Go
Go
restrict secret view to node level in controller
8392123f303e55902ac42544f0e7e226855592f6
<ide><path>daemon/cluster/executor/container/executor.go <ide> func (e *executor) Controller(t *api.Task) (exec.Controller, error) { <ide> return newNetworkAttacherController(e.backend, t, e.secrets) <ide> } <ide> <del> ctlr, err := newController(e.backend, t, e.secrets) <add> ctlr, err := newController(e.backend, ...
1
Javascript
Javascript
add test for http outgoing internal headers
f406a7ebaee09c00b6dec330e17897924096c30d
<ide><path>test/parallel/test-http-outgoing-internal-headers.js <add>// Flags: --expose-internals <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add> <add>const { outHeadersKey } = require('internal/http'); <add>const { OutgoingMessage } = require('http'); <add> <ad...
1
Javascript
Javascript
remove remaining ray normalization in raycaster
8b446fb57f9595393a97a08b4edcf82682a69a68
<ide><path>src/core/Raycaster.js <ide> /** <ide> * @author mrdoob / http://mrdoob.com/ <ide> * @author bhouston / http://exocortex.com/ <add> * @author stephomi / http://stephaneginier.com/ <ide> */ <ide> <ide> ( function ( THREE ) { <ide> <ide> THREE.Raycaster = function ( origin, direction, near, far ) { <ide> ...
1
Javascript
Javascript
rearrange inspector headers into convention
aae0d4559c9904db4168c30eb45552600599a238
<ide><path>test/inspector/test-inspector-debug-brk.js <ide> 'use strict'; <ide> const common = require('../common'); <add> <ide> common.skipIfInspectorDisabled(); <add> <ide> const assert = require('assert'); <ide> const helper = require('./inspector-helper.js'); <ide> <ide><path>test/inspector/test-inspector-ip-detec...
8
Javascript
Javascript
remove an extra space
1f8fd19d67108970fcfbc876432d6a51ebc9d5ba
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> lightNode = new THREE.PointLight( color ); <ide> break; <ide> <del> case "spot ": <add> case "spot": <ide> lightNode = new THREE.SpotLight( color ); <ide> lightNode.position.set( 0, 0...
1
Python
Python
fix the syntax so it works with python 2.5
e13c2b3fd26fce3f7abfab3fc405dbd4753a7ae5
<ide><path>test/compute/test_brightbox.py <ide> def test_invalid_api_version(self): <ide> self.assertRaises(Exception, self.driver.list_locations) <ide> <ide> def test_other_host(self): <del> self.driver = BrightboxNodeDriver(*BRIGHTBOX_PARAMS, host='api.gbt.brightbox.com') <add> kwargs = {'h...
1
Python
Python
fix dagrun prefix for performance script
f17b4bbb8985019121856e890bd81521647f278c
<ide><path>scripts/perf/scheduler_dag_execution_timing.py <ide> def create_dag_runs(dag, num_runs, session): <ide> ''' <ide> Create `num_runs` of dag runs for sub-sequent schedules <ide> ''' <del> from airflow.models.dagrun import DagRun <ide> from airflow.utils import timezone <ide> from airflo...
1
Text
Text
add import to example for filtering
a4af8cc623d19e916bca97bb0f303becf7ba0f29
<ide><path>docs/api-guide/filtering.md <ide> For more advanced filtering requirements you can specify a `FilterSet` class tha <ide> import django_filters <ide> from myapp.models import Product <ide> from myapp.serializers import ProductSerializer <add> from rest_framework import filters <ide> from re...
1
Text
Text
extend disclaimer for dynamic image imports
98acfaf8ccd21e6965dc5c9ca38d15c454848838
<ide><path>docs/api-reference/next/image.md <ide> Should only be used when the image is visible above the fold. Defaults to <ide> <ide> A placeholder to use while the image is loading, possible values are `blur` or `empty`. Defaults to `empty`. <ide> <del>When `blur`, the [`blurDataURL`](#blurdataurl) property will b...
2
PHP
PHP
remove i18n\translatorfactory classes
4ee8c34856825d8d87497d7d6322d1bb2137112a
<ide><path>src/I18n/I18n.php <ide> public static function translators(): TranslatorRegistry <ide> return new IcuFormatter(); <ide> }, <ide> ]), <del> new TranslatorFactory(), <ide> static::getLocale() <ide> ); <ide> <ide><path>src/I18n/Tran...
5
Python
Python
remove duplicate words
2ca3fb270a34ab69637f88bce9b3b15222b83069
<ide><path>tests/jobs/test_scheduler_job.py <ide> def test_find_executable_task_instances_in_default_pool(self): <ide> session.merge(ti2) <ide> session.flush() <ide> <del> # One task w/o pool up for execution and one task task running <add> # One task w/o pool up for execution and one tas...
2
PHP
PHP
use max() instead of ternary in db offset
79b69790ff4415221c96d8df0f41282cadd18009
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function orderByRaw($sql, $bindings = array()) <ide> */ <ide> public function offset($value) <ide> { <del> $this->offset = $value > 0 ? $value : 0; <add> $this->offset = max(0, $value); <ide> <ide> return $this; <ide> }
1
PHP
PHP
add more tests for ordering the year select
d53039f2737b40adfc81f528a29c656922ab3f8f
<ide><path>tests/TestCase/View/Input/DateTimeTest.php <ide> public function testRenderYearWidgetOrdering() { <ide> 'year' => [ <ide> 'start' => 2013, <ide> 'end' => 2015, <add> 'order' => 'desc', <ide> ], <ide> 'month' => false, <ide> 'day' => false, <ide> public function testRenderYearWidgetOrde...
1
Text
Text
add api only apps guide
b7494b66bc56dfd1a86ed8c7de0e7692a7db2831
<ide><path>guides/source/api_app.md <add>Using Rails for API-only Apps <add>----------------------------- <add> <add>In this guide you will learn: <add> <add>- What Rails provides for API-only applications <add>- How to configure Rails to start without any browser features <add>- How to decide which middlewares y...
1
Ruby
Ruby
fix tests on 1.8.6
201d8b17552c8c9eb96e2aca2f871e0fd9b96e15
<ide><path>activeresource/lib/active_resource/base.rb <ide> require 'active_support/core_ext/module/attr_accessor_with_default' <ide> require 'active_support/core_ext/module/delegation' <ide> require 'active_support/core_ext/module/aliasing' <add>require 'active_support/core_ext/object/misc' <ide> require 'set' <ide> ...
2
Go
Go
add test code to cover issue
4964ab08218f3b40f5c3a6bf19fe74f7fb39562a
<ide><path>integration-cli/docker_cli_daemon_test.go <ide> func (s *DockerDaemonSuite) TestDaemonDefaultGatewayIPv4Explicit(c *check.C) { <ide> deleteInterface(c, defaultNetworkBridge) <ide> } <ide> <add>func (s *DockerDaemonSuite) TestDaemonDefaultGatewayIPv4ExplicitOutsideContainerSubnet(c *check.C) { <add> default...
1
Python
Python
fix typo in comment
46c13fef466eed0605c59654b1c30ba5fe8a454b
<ide><path>django/contrib/auth/base_user.py <ide> class BaseUserManager(models.Manager): <ide> @classmethod <ide> def normalize_email(cls, email): <ide> """ <del> Normalize the email address by lowercasing the domain part of the it. <add> Normalize the email address by lowercasing the doma...
1
Javascript
Javascript
add broken test for require cache working
f35773ad0767232aafaa9dfe9f788ca55b0a6138
<ide><path>test/simple/test-require-cache-without-stat.js <add>// We've experienced a regression where the module loader stats a bunch of <add>// directories on require() even if it's been called before. The require() <add>// should caching the request. <add>var common = require('../common'); <add>var fs = require('fs'...
1
PHP
PHP
update various links. closes #392
a94b9ee95bc59ce735237e6642ff0ac40eefca41
<ide><path>app/webroot/test.php <ide> * <ide> * PHP versions 4 and 5 <ide> * <del> * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> <add> * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> <ide> * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) ...
253
Javascript
Javascript
fix broken tests
67140a4d337c1ef6b31c9793e5b2c3d13c9d692f
<ide><path>curriculum/test/test-challenges.js <ide> async function createTestRunnerForDOMChallenge( <ide> files[0].contents = solution; <ide> } <ide> <del> const loadEnzyme = files[0].ext === 'jsx'; <del> <del> const { build, sources } = await buildDOMChallenge(files, { <add> const { build, sources, loadEnzym...
1
PHP
PHP
fix paginatorcomponent tests
a34d5f733d93da410f11733255b3744e1d210729
<ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php <ide> class PaginatorAuthor extends CakeTestModel { <ide> * @var string <ide> */ <ide> public $virtualFields = array( <del> 'joined_offset' => 'PaginatorAuthor.id + 1' <del> ); <add> 'joined_offset' => 'PaginatorAuthor.id + 1' <add> );...
1
Go
Go
remove a redundant funtion and fix some typos
219a38e3db5bef8fb87a9e81e1291a3538ff2ab8
<ide><path>runconfig/errors.go <ide> package runconfig <ide> <ide> import ( <ide> "fmt" <del> <del> "github.com/docker/docker/api/errors" <ide> ) <ide> <ide> var ( <ide> // ErrConflictContainerNetworkAndLinks conflict between --net=container and links <del> ErrConflictContainerNetworkAndLinks = fmt.Errorf("Conflict...
1
Text
Text
add example for test structure
c746c403ab4747f6f7e258367b401d03394ba77f
<ide><path>doc/guides/writing-tests.md <ide> case, `_`, lower case). <ide> <ide> ### **Lines 11-22** <ide> <add>```js <add>const server = http.createServer(common.mustCall((req, res) => { <add> res.end('ok'); <add>})); <add>server.listen(0, () => { <add> http.get({ <add> port: server.address().port, <add> hea...
1
Text
Text
change mac os x to os x
cd3f7f73a0547843a762946aa4224bf7e588882f
<ide><path>README.md <ide> about the Atom 1.0 roadmap. <ide> <ide> ## Installing <ide> <del>### Mac OS X <add>### OS X <ide> <ide> Download the latest [Atom release](https://github.com/atom/atom/releases/latest). <ide>
1
Text
Text
add verb to sanitization note
848e377a2017234e3831599346918fb8d413fd28
<ide><path>guides/source/security.md <ide> Injection is very tricky, because the same code or parameter can be malicious in <ide> <ide> ### Whitelists versus Blacklists <ide> <del>NOTE: _When sanitizing, protecting or verifying something, whitelists over blacklists._ <add>NOTE: _When sanitizing, protecting or verifyi...
1
Ruby
Ruby
use start_with? instead of a regexp
4026e035add50aaf5627587e5b59ea149f3b57fd
<ide><path>Library/Homebrew/download_strategy.rb <ide> def _fetch <ide> class SubversionDownloadStrategy < VCSDownloadStrategy <ide> def initialize(name, resource) <ide> super <del> @url = @url.sub(/^svn\+/, "") if @url =~ %r[^svn\+http://] <add> @url = @url.sub(/^svn\+/, "") if @url.start_with?("svn+http:/...
1
Javascript
Javascript
replace isname in the viewer.js
66eda9b36b1f6220dfb6296cfa06798b1723aa88
<ide><path>web/viewer.js <ide> var PDFView = { <ide> (destRef + 1); <ide> if (pageNumber) { <ide> var pdfOpenParams = '#page=' + pageNumber; <del> if (isName(dest[1], 'XYZ')) { <add> var destKind = dest[1]; <add> if ('name' in destKind && destKind.name == 'XYZ') { <ide> ...
1
Java
Java
add method to create messageheaders in message
d136d06eda586ea7a80f8495397987959f0bb702
<ide><path>spring-context/src/main/java/org/springframework/messaging/GenericMessage.java <ide> public GenericMessage(T payload, Map<String, Object> headers) { <ide> else { <ide> headers = new HashMap<String, Object>(headers); <ide> } <del> this.headers = new MessageHeaders(headers); <add> this.headers = creat...
1
Ruby
Ruby
fix doc format for `recordfetchwarning` [ci skip]
4dde1a05d03a03debd64befdd78a0006c30aa8d8
<ide><path>activerecord/lib/active_record/relation/record_fetch_warning.rb <ide> module ActiveRecord <ide> class Relation <ide> module RecordFetchWarning <ide> # When this module is prepended to ActiveRecord::Relation and <del> # `config.active_record.warn_on_records_fetched_greater_than` is <add> ...
1
Javascript
Javascript
remove unused parameter
3e29e0126ed5f3d1ad0ff9e53f4ebc5edd696563
<ide><path>test/sequential/test-inspector-stops-no-file.js <ide> const child = spawn(process.execPath, <ide> [ '--inspect', 'no-such-script.js' ], <ide> { 'stdio': 'inherit' }); <ide> <del>function signalHandler(value) { <add>function signalHandler() { <ide> child.kill(); <ide...
1
Javascript
Javascript
get any width (if one is present) in cff parser
d3941888352d6439fff139ca2a9e283fc5a2a05a
<ide><path>src/core/cff_parser.js <ide> const CFFParser = (function CFFParserClosure() { <ide> } else if (stackSize > 1) { <ide> warn("Found too many parameters for stack-clearing command"); <ide> } <del> if (stackSize > 0 && stack[stackSize - 1] >= 0) { <add> ...
1
Javascript
Javascript
move passive flag
8e2f9b086e7abc7a92951d264a6a5d048defd914
<ide><path>packages/react-reconciler/src/ReactFiberCompleteWork.new.js <ide> function completeWork( <ide> } <ide> <ide> // If the suspended state of the boundary changes, we need to schedule <del> // an effect to toggle the subtree's visibility. When we switch from <del> // fallback -> primary, t...
2
Ruby
Ruby
fix broken test (closes ) [chuyeow]
3a622d0045771459e6d4cc32307f31f87e5b938a
<ide><path>actionpack/test/controller/html-scanner/sanitizer_test.rb <ide> def test_should_allow_only_custom_tags <ide> end <ide> <ide> def test_should_allow_custom_tags_with_attributes <del> text = %(<fieldset foo="bar">foo</fieldset>) <add> text = %(<blockquote cite="http://example.com/">foo</blockquote>) ...
1
Text
Text
add gibson fahnestock to release team
46ca1775a31d5e76a9f00f641c624c720a6468ab
<ide><path>README.md <ide> Node.js releases are signed with one of the following GPG keys: <ide> `94AE36675C464D64BAFA68DD7434390BDBE9B9C5` <ide> * **Evan Lucas** &lt;evanlucas@me.com&gt; <ide> `B9AE9905FFD7803F25714661B63B535A4C206CA9` <add>* **Gibson Fahnestock** &lt;gibfahn@gmail.com&gt; <add>`77984A986EBC2AA786BC0F...
1
PHP
PHP
add a failing test to reproduce the issue
0f4aa4100e17598c3d1c2539c0e72e5662c200d4
<ide><path>tests/TestCase/View/Helper/TimeHelperTest.php <ide> public function testFormat() <ide> $result = $this->Time->format('invalid date', null, 'Date invalid'); <ide> $expected = 'Date invalid'; <ide> $this->assertEquals($expected, $result); <add> <add> \Cake\I18n\I18n::locale('fr-F...
1
Python
Python
add augment_label to randombrightness
14579168fb86cc8508e953678150bd5d26a3bb0c
<ide><path>keras/layers/preprocessing/image_preprocessing.py <ide> def augment_image(self, image, transformation=None): <ide> transformation = self.get_random_transformation() <ide> return self._brightness_adjust(image, transformation['rgb_delta']) <ide> <add> def augment_label(self, label, transformation=N...
1
Text
Text
add translation for getting-started.md
b7471bcd9320e4473a0571179e624b634daa99ac
<ide><path>docs/docs/getting-started.zh-CN.md <add>--- <add>id: getting-started-zh-CN <add>title: 开始 <add>layout: docs <add>next: tutorial.html <add>--- <add> <add>## JSFiddle <add> <add>开始 Hack React 的最简单的方法是用下面 JSFiddle 的Hello Worlds <add> <add> * **[React JSFiddle](http://jsfiddle.net/vjeux/kb3gN/)** <add> * [React ...
1
Javascript
Javascript
add responder allowmultiplehostchildren flag
1160b37691d32c9bf385b7e7d7a106adce05c7df
<ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js <ide> import { <ide> EventComponent, <ide> EventTarget as EventTargetWorkTag, <ide> HostComponent, <del> SuspenseComponent, <del> Fragment, <ide> } from 'shared/ReactWorkTags'; <ide> import type { <ide> ReactEventResponder, <ide> import warni...
11
Javascript
Javascript
fix route in custom-server-koa example
7e1d174e8eca04422c840328888235c2a76d8e78
<ide><path>examples/custom-server-koa/pages/index.js <ide> export default function Home() { <ide> return ( <ide> <ul> <ide> <li> <del> <Link href="/b" as="/a"> <add> <Link href="/a"> <ide> <a>a</a> <ide> </Link> <ide> </li> <ide> <li> <del> <Link href="/a" ...
1
Text
Text
remove duplicate line in ``updating.md``
0dd70de9492444d52e0afaadd7a510fc8a95369c
<ide><path>UPDATING.md <ide> It is still possible (but not required) to "register" hooks in plugins. This is <ide> <ide> See https://airflow.apache.org/docs/apache-airflow/stable/howto/custom-operator.html for more info. <ide> <del>### Adding Operators and Sensors via plugins is no longer supported <del> <ide> ### Th...
1
Javascript
Javascript
add new effect fields to old fork, and vice versa
3ebf05183dfcb8eadfc41a9e19559d835fd9b77e
<ide><path>.eslintrc.js <ide> module.exports = { <ide> 'react-internal/no-cross-fork-types': [ <ide> ERROR, <ide> { <del> old: [ <del> 'firstEffect', <del> 'nextEffect', <del> // Disabled because it's also used by the Hook type. <del> // 'lastEffect', <del> ...
3
Javascript
Javascript
add missing semicolon
10f8e22e20723af308cffebbcc25436ec8357ffe
<ide><path>src/renderers/shared/reconciler/__tests__/ReactUpdates-test.js <ide> describe('ReactUpdates', function() { <ide> expect(instance.state.y).toBe(0); <ide> <ide> ReactUpdates.batchedUpdates(function() { <del> React.render(<Component x={1} />, container) <add> React.render(<Component x={1} />,...
1
Python
Python
accept span to displacy render (closes )
d16cb6bee6943c770081cfb71cdd4cd312e975fa
<ide><path>spacy/displacy/__init__.py <ide> from __future__ import unicode_literals <ide> <ide> from .render import DependencyRenderer, EntityRenderer <del>from ..tokens import Doc <add>from ..tokens import Doc, Span <ide> from ..compat import b_to_str <ide> from ..errors import Errors, Warnings, user_warning <ide> fr...
3
Javascript
Javascript
sanitize even simplehttpserver
dff916771ff83e79b29f0d80370193e6941a0f75
<ide><path>utils/servers/simplehttpserver.js <ide> var port = 8000, <ide> "mp4": "video/mp4", <ide> "txt": "text/plain", <ide> "bin": "application/octet-stream" <del> }; <add> }; <add> <add>// https://github.com/parshap/node-sanitize-filename/blob/master/index.js#L33-L47 <add>var illegalRe = /[\?<>:\*\|":]/g; <a...
1
Python
Python
update conftest to lazy load languages
bd57b611cc1b052040f1f74f5cdb5aaed2541c4a
<ide><path>spacy/tests/conftest.py <ide> # coding: utf-8 <ide> from __future__ import unicode_literals <ide> <del>from ..en import English <del>from ..de import German <del>from ..es import Spanish <del>from ..it import Italian <del>from ..fr import French <del>from ..pt import Portuguese <del>from ..nl import Dutch <...
1
Javascript
Javascript
fix routing with initialstate
a6b437824d618b549e5ae1d3d98eba8cca7dd1be
<ide><path>packages/ember-routing/lib/routable.js <ide> Ember.Routable = Ember.Mixin.create({ <ide> state of the state it will eventually move into. <ide> */ <ide> unroutePath: function(router, path) { <add> var parentState = get(this, 'parentState'); <add> <ide> // If we're at the root state, we're done...
2
Ruby
Ruby
cache partial variable names to reduce garbage
72640c61252e43ed51da368a3122fd507b7b93a6
<ide><path>actionpack/lib/action_view/partials.rb <ide> def partial_counter_name(partial_name) <ide> end <ide> <ide> def partial_variable_name(partial_name) <del> partial_name.split('/').last.split('.').first.intern <add> @@partial_variable_names ||= {} <add> @@partial_variable_names[p...
1
Python
Python
fix build failure
187eef2db9182a380bd427c6f160b55b0b672878
<ide><path>libcloud/test/storage/test_base.py <ide> def test_upload_object_hash_calculation_is_efficient(self, mock_read_in_chunks, <ide> stream=iterator) <ide> <ide> hasher = hashlib.md5() <del> hasher.update('a' * size) <add> hasher.update(b('a') * s...
1
Java
Java
reduce lockfreeeventdispatcherimpl logspam
67b62adf4b1ba9f39d0748f4d7c8496badc91194
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/LockFreeEventDispatcherImpl.java <ide> */ <ide> public class LockFreeEventDispatcherImpl implements EventDispatcher, LifecycleEventListener { <ide> <del> private final boolean DEBUG_MODE = true && ReactBuildConfig.DEBUG; <add> private final b...
1
Javascript
Javascript
fix define story
c0c15cf8751214db715a1f161157c941fd189049
<ide><path>server/boot/story.js <ide> module.exports = function(app) { <ide> var router = app.loopback.Router(); <ide> var User = app.models.User; <ide> var Story = app.models.Story; <add> var Comment = app.models.Comment; <ide> <ide> router.get('/stories/hotStories', hotJSON); <ide> router.get('/stories/co...
1
Text
Text
correct a method param in implementation notes
fa4710fe5136e5feceed09b54c2ff49d012b8c15
<ide><path>docs/contributing/implementation-notes.md <ide> class CompositeComponent { <ide> // Component class <ide> // Call the lifecycle if necessary <ide> if (publicInstance.componentWillUpdate) { <del> publicInstance.componentWillUpdate(prevProps); <add> publicInstance.componentWillU...
1
Ruby
Ruby
fix libdir for python 3.x
33cae6ac42a480c39b9510ac4d65a3c5b6c08797
<ide><path>Library/Homebrew/requirements/python_dependency.rb <ide> def incdir <ide> # Dir containing e.g. libpython2.7.dylib <ide> def libdir <ide> if brewed? || from_osx? <del> prefix/"lib/#{xy}/config" <add> if @min_version.major == 3 <add> prefix/"lib/#{xy}/config-#{version.major}.#{version...
1
Text
Text
add further explanation of ownprops in mstp
2f342d0dc4943cea3db982435e29a453ce40630d
<ide><path>guide/english/redux/tutorial/index.md <ide> The example above demonstrates how the base App component is setup and how it wi <ide> <ide> Also how to dispatch a defined action from the component which will be passed down to the store and make the changes on the application reducer. <ide> <add>`mapStateToPro...
1
Python
Python
support segformer fx
347ba38cb45e30a4f98aa730aeb540bf538bf176
<ide><path>src/transformers/models/glpn/modeling_glpn.py <ide> def __init__(self, config, hidden_size, num_attention_heads, sequence_reduction_ <ide> <ide> def transpose_for_scores(self, hidden_states): <ide> new_shape = hidden_states.size()[:-1] + (self.num_attention_heads, self.attention_head_size) <del>...
4
Python
Python
update version string
59d37af1646b7733c469c26e97b04c12785d17c3
<ide><path>libcloud/__init__.py <ide> """ <ide> <ide> __all__ = ["__version__", "enable_debug"] <del>__version__ = '0.5.1' <add>__version__ = '0.5.2' <ide> <ide> DEFAULT_LOG_PATH = '/tmp/libcloud_debug.log' <ide>
1
Python
Python
fix automodel tests
3290315a2aae431a901d4f93aa8ebff518a96fe3
<ide><path>tests/test_modeling_auto.py <ide> def test_model_from_pretrained(self): <ide> model, loading_info = AutoModel.from_pretrained(model_name, output_loading_info=True) <ide> self.assertIsNotNone(model) <ide> self.assertIsInstance(model, BertModel) <del> for value in...
2
PHP
PHP
add link to cookbook section for securityheaders
310ef2d8709a78972abb0246b01d284735bce7e0
<ide><path>src/Http/Middleware/SecurityHeadersMiddleware.php <ide> <ide> /** <ide> * Handles common security headers in a convenient way <add> * <add> * @link https://book.cakephp.org/3.0/en/controllers/middleware.html#security-header-middleware <ide> */ <ide> class SecurityHeadersMiddleware <ide> {
1
Java
Java
fix lint in mountingmanager
a84a62834c6b743d1ba4ac499350928ec886bc95
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.java <ide> public void createView( <ide> if (isLayoutable) { <ide> viewManager = mViewManagerRegistry.get(componentName); <ide> // View Managers are responsible for dealing with initial state and props. <del> v...
1
Text
Text
remove link to rack.github.io
c134a17b3d740ab1578cdd8da8aba3909910feb2
<ide><path>guides/source/rails_on_rack.md <ide> Introduction to Rack <ide> <ide> Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and s...
1
Python
Python
update documentation of cnn_classification.py
2c959a749163365705a53b049aa1a3e093ee4e7a
<ide><path>computer_vision/cnn_classification.py <ide> if __name__ == "__main__": <ide> <ide> # Initialising the CNN <add> # (Sequential- Building the model layer by layer) <ide> classifier = models.Sequential() <ide> <ide> # Step 1 - Convolution <add> # Here 64,64 is the length & breadth of dataset...
1
Javascript
Javascript
update milestone on prs
114ec049d4887d9e18aeded5ab73eb7092825307
<ide><path>scripts/release-manager/commands/stable-prs.js <ide> const chalk = require('chalk'); <ide> // IDEA: maybe just always use this milestone across major releases too? <ide> const MILESTONE_NUMBER = 25; <ide> <add>// 15.3.0 <add>const TARGET_MILESTONE_NUMBER = 31; <add> <ide> const LABELS = { <ide> // Until t...
1
Text
Text
update documentation for yml usage
95343f64c1a2c0ac31ef83282dda2dfd77ace789
<ide><path>guides/source/testing.md <ide> steve: <ide> profession: guy with keyboard <ide> ``` <ide> <del>Each fixture is given a name followed by an indented list of colon-separated key/value pairs. Records are typically separated by a blank space. You can place comments in a fixture file by using the # character in...
1
Ruby
Ruby
fix stupid typo
af5b304a4002fe8ebeb8f31cd0a481dfa4a944db
<ide><path>actionpack/lib/action_controller/request.rb <ide> def self.relative_url_root=(relative_url_root) <ide> ActiveSupport::Deprecation.warn( <ide> "ActionController::AbstractRequest.relative_url_root= has been renamed." + <ide> "You can now set it with config.action_controller.relative_url_r...
1
Javascript
Javascript
fix incorrect merge choices
cd8f82c007bf316fcd857da1e00bfe358df7af44
<ide><path>lib/http.js <ide> function parserOnHeadersComplete(info) { <ide> function parserOnBody(b, start, len) { <ide> var parser = this; <ide> var slice = b.slice(start, start + len); <del> // body encoding is done in _emitData <del> parser.incoming._emitData(slice); <add> if (parser.incoming._paused || parse...
2
Javascript
Javascript
update example to use a module
95c2738244172ab3aff215e622a610dbb30631d6
<ide><path>src/ng/log.js <ide> * {@link ng.$logProvider ng.$logProvider#debugEnabled} to change this. <ide> * <ide> * @example <del> <example> <add> <example module="logExample"> <ide> <file name="script.js"> <del> function LogCtrl($scope, $log) { <del> $scope.$log = $log; <del> $scope...
1
Javascript
Javascript
increase coverage of buffer
901cb8cb5e2eb887e1889f8f7946c71a642e14c0
<ide><path>test/parallel/test-buffer-compare-offset.js <ide> assert.strictEqual(-1, a.compare(b)); <ide> // Equivalent to a.compare(b). <ide> assert.strictEqual(-1, a.compare(b, 0)); <ide> assert.strictEqual(-1, a.compare(b, '0')); <add>assert.strictEqual(-1, a.compare(b, undefined)); <ide> <ide> // Equivalent to a.co...
2
Text
Text
add keras information
4cc14a3e917a89f1a08614891ccf0c06ac8dc8a8
<ide><path>guide/english/data-science-tools/keras/index.md <add>--- <add>title: Keras <add>--- <add> <add># Keras <add>Keras is a high-level library for practical deep learning. It is primarily used over other low-level APIs like TensorFlow, Theano, and Microsoft CNTK. <add> <add>For beginners, it is a great tool to ge...
1
Text
Text
rectify several wrong urls in branch of man
576780369fa8c0b117dec6614db1b8d89cf2721b
<ide><path>man/docker-login.1.md <ide> do not specify a `SERVER`, the command uses Docker's public registry located at <ide> `docker login` requires user to use `sudo` or be `root`, except when: <ide> <ide> 1. connecting to a remote daemon, such as a `docker-machine` provisioned `docker engine`. <del>2. user is add...
4
Text
Text
add changelog entry for [ci skip]
f1a4f0a494ce09dfea3a80854bbc6363e62d04a6
<ide><path>actionpack/CHANGELOG.md <add>* Improve routing error page with fuzzy matching search. <add> <add> *Winston* <add> <ide> * Only make deeply nested routes shallow when parent is shallow. <ide> <ide> Fixes #14684.
1
Go
Go
fix termcaps on the linux client
922a8648fc5724ad3ff38e2404d70442dc8f2264
<ide><path>container.go <ide> func (container *Container) Start() error { <ide> <ide> var err error <ide> if container.Config.Tty { <add> container.cmd.Env = append(container.Config.Env, <add> "TERM="+os.Getenv("TERM"), <add> ) <ide> err = container.startPty() <ide> } else { <ide> err = container.start() <i...
2
Text
Text
translate 10-addons.md to japanese
b35de1db4e3be7b3cdc8bc5cf2dd2e5816c7fa69
<ide><path>docs/docs/10-addons.ja-JP.md <add>--- <add>id: addons <add>title: アドオン <add>permalink: addons-ja-JP.html <add>prev: tooling-integration-ja-JP.html <add>next: animation-ja-JP.html <add>--- <add> <add>`React.addons` はReactのアプリケーションを作成する上で便利なユーティリティを置いておくための場所です。 **それらは実験的なものであると考えられるべきです。** しかし、ゆくゆくはコアに入ってくるか、...
1