content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
add ar-tn locale
f3b97530e7c3cb3fe35b3a0983d1d04ba811f04b
<ide><path>locale/ar-tn.js <add>// moment.js locale configuration <add>// locale : Tunisian Arabic (ar-tn) <add> <add>(function (factory) { <add> if (typeof define === 'function' && define.amd) { <add> define(['moment'], factory); // AMD <add> } else if (typeof exports === 'object') { <add> module....
2
Ruby
Ruby
fix failing test
3b2ea8b68352c1c4534ff30a086a16d00e8a12cf
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def update_columns(attributes) <ide> verify_readonly_attribute(key.to_s) <ide> end <ide> <add> id_in_database = self.id_in_database <ide> attributes.each do |k, v| <ide> write_attribute_without_type_cast(k, v) <ide> e...
1
PHP
PHP
fix doc block
6c915b8ba5505d819c949a4b8fac8009d902876d
<ide><path>src/Illuminate/Routing/Router.php <ide> public function currentRouteName() <ide> } <ide> <ide> /** <del> * Alias for the "currentRouteName" method. <add> * Alias for the "currentRouteNamed" method. <ide> * <ide> * @param mixed string <ide> * @return bool
1
PHP
PHP
add strict typing to http/**
33168b47f37954f88bbdd8b1a5f11ec3df53deff
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function beforeRender(EventInterface $event): void <ide> $request = $controller->getRequest(); <ide> <ide> $isRecognized = ( <add> $this->ext && <ide> !in_array($this->ext, ['html', 'htm']) && <ide> ...
46
Python
Python
remove utility script
909177589dcdbde1cd4770f9f744d4d57d08d7e0
<ide><path>spacy/tests/regression/util_add_marker.py <del>import re <del>from pathlib import Path <del>from typing import Optional <del> <del>import typer <del> <del> <del>def main( <del> filename: Path, out_file: Optional[Path] = typer.Option(None), dry_run: bool = False <del>): <del> """Add pytest issue markers...
1
Go
Go
fix vet errors about formatting directives
a7ae7fed7311551975d2bccb7417c328be3ea478
<ide><path>daemon/utils_test.go <ide> func TestMergeLxcConfig(t *testing.T) { <ide> <ide> out, err := mergeLxcConfIntoOptions(hostConfig) <ide> if err != nil { <del> t.Fatalf("Failed to merge Lxc Config ", err) <add> t.Fatalf("Failed to merge Lxc Config: %s", err) <ide> } <ide> <ide> cpuset := out[0] <ide><path...
6
Javascript
Javascript
update language code
b4d66c6f09b3210534bdb470edfb790cc8206cde
<ide><path>lang/ms-my.js <ide> // language : Bahasa Malaysia (ms-MY) <ide> // author : Weldan Jamili : https://github.com/weldan <ide> <del>require('../moment').lang('ms', { <add>require('../moment').lang('ms-my', { <ide> months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember"....
1
Javascript
Javascript
ensure preventdefault works for nested targets
fec74f99daebd07c38a647941afa6bf0e0b2306e
<ide><path>packages/react-dom/src/events/DOMEventResponderSystem.js <ide> const eventResponderContext: ReactResponderContext = { <ide> childTarget: Element | Document, <ide> parentTarget: Element | Document, <ide> ): boolean { <add> validateResponderContext(); <ide> const childFiber = getClosestInstanc...
4
Java
Java
fix warnings in disposablebeanadapter
8cafb7ee13b68ce8f21b01c49d2feba7a818b1ed
<ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DisposableBeanAdapter.java <ide> * @see org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor <ide> * @see AbstractBeanDefinition#getDestroyMethodName() <ide> */ <add>@SuppressWarnings("serial") <ide> cl...
1
PHP
PHP
use the table constants in the tests
ef1e73cd79ff249b99641bf5265630232c7aaf5b
<ide><path>src/Database/Schema/Table.php <ide> class Table <ide> protected $_temporary = false; <ide> <ide> /** <del> * Column length when using a `tiny` text column type <add> * Column length when using a `tiny` column type <ide> * <ide> * @var int <ide> */ <ide> const LENGTH_TINY =...
2
Go
Go
remove unneeded fmt.sprintf() in asserts
0fabf3e41ec3cc0ba5479ce91e278c1e7855eebd
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestContainerAPIDeleteRemoveVolume(c *testing.T) { <ide> assert.NilError(c, err) <ide> <ide> _, err = os.Stat(source) <del> assert.Assert(c, os.IsNotExist(err), fmt.Sprintf("expected to get ErrNotExist error, got %v", err)) <add> as...
30
Python
Python
use exceptions intead of returning tuple
177afe7b135edec64c2f0cf0aa06637d85836284
<ide><path>airflow/hooks/hive_hooks.py <ide> def __init__( <ide> self.use_beeline = conn.extra_dejson.get('use_beeline', False) <ide> self.conn = conn <ide> <del> def run_cli(self, hql, schema=None, test=False): <add> def run_cli(self, hql, schema=None, verbose=True): <ide> """ <ide> ...
1
Text
Text
fix numpy.zeros() dtype for doc.from_array
a6abdfbc3c5a298b9d0e547451701f6705fd09b7
<ide><path>website/docs/usage/linguistic-features.md <ide> doc = nlp.make_doc("London is a big city in the United Kingdom.") <ide> print("Before", doc.ents) # [] <ide> <ide> header = [ENT_IOB, ENT_TYPE] <del>attr_array = numpy.zeros((len(doc), len(header))) <add>attr_array = numpy.zeros((len(doc), len(header)), dtype...
1
Text
Text
fix the broken links
475e4310550a97d1b91a22648cae5aaa0bd9c5fe
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> <ide> **Date**: [13rd May 2015][3.1.2-milestone]. <ide> <del>* DateField to_representation can handle str and empty values. ([#2656](gh2656), [#2687](gh2687), [#2869](gh2869)) <del>* Use default ...
1
Ruby
Ruby
move tests higher up the stack
c34b6b092ab0d5a620b10098f43f59d7cebb85a4
<ide><path>actionpack/test/journey/router_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "abstract_unit" <add>require "rack/utils" <ide> <ide> module ActionDispatch <ide> module Journey <ide> def test_generate_id <ide> path, params = _generate( <ide> nil, { id: 1, controller: "tas...
1
Javascript
Javascript
remove usage of public require('util')
a1330af6a3a6cae16bda0b2512033139f5e71d1a
<ide><path>lib/_tls_wrap.js <ide> <ide> 'use strict'; <ide> <del>require('internal/util').assertCrypto(); <add>const { <add> assertCrypto, <add> deprecate <add>} = require('internal/util'); <add> <add>assertCrypto(); <ide> <ide> const assert = require('internal/assert'); <ide> const crypto = require('crypto'); <id...
1
Text
Text
add link to help repo in readme
7c3ab1d935755ca51050f4f6f8840819b82fda11
<ide><path>README.md <ide> If you need help using or installing Node.js, please use the <ide> ### Official Resources <ide> <ide> * [Website][] <add>* [Node.js Help][] <ide> * [Contributing to the project][] <ide> * IRC (node core development): [#node-dev on chat.freenode.net][] <ide> <ide> keys: <ide> <ide> [Website...
1
Text
Text
add an alternative way to control structures
39a9eec9e727214c0e5bfb6346685c10204e3a1c
<ide><path>client/src/pages/guide/english/php/if-else-statement/index.md <ide> For instance: <ide> <ide> Another important option to consider when using short If/Else statements is the ternary operator. <ide> <add>Also there is an alternative syntax for control structures <add>~~~~ <add> if (condition1): <add> st...
1
PHP
PHP
update workcommand.php
e4108ee1ae35e76fd6dd896c67e4768a1f0e5c63
<ide><path>src/Illuminate/Queue/Console/WorkCommand.php <ide> class WorkCommand extends Command <ide> protected $worker; <ide> <ide> /** <del> * Create a new queue listen command. <add> * Create a new queue work command. <ide> * <ide> * @param \Illuminate\Queue\Worker $worker <ide> * @...
1
Go
Go
enable add-host for buildkit
d46fa93cb637e7de964769717f3b5770f6732bee
<ide><path>builder/builder-next/builder.go <ide> package buildkit <ide> import ( <ide> "context" <ide> "io" <add> "net" <ide> "strings" <ide> "sync" <ide> "time" <ide> func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder. <ide> return nil, errors.Errorf("network mode %q not supported b...
1
Python
Python
enable evaluation under distribution strategy
90d1a0bbbca309628e9e8ddc285ca1bf33913eff
<ide><path>research/object_detection/inputs.py <ide> def _eval_input_fn(params=None): <ide> <ide> <ide> def eval_input(eval_config, eval_input_config, model_config, <del> model=None, params=None): <add> model=None, params=None, input_context=None): <ide> """Returns `features` and `labels...
6
PHP
PHP
fix many docblocks
7880ba75248c849e3137ae9832ec2220ca62d6c6
<ide><path>src/Illuminate/Auth/DatabaseUserProvider.php <ide> class DatabaseUserProvider implements UserProvider <ide> /** <ide> * Create a new database user provider. <ide> * <del> * @param \Illuminate\Database\ConnectionInterface $conn <add> * @param \Illuminate\Database\ConnectionInterface ...
15
Text
Text
improve documentation for the vm module
5e1e460ac1d84b4b23a9c3a0280549b29af6ed1f
<ide><path>doc/api/vm.md <ide> <!--name=vm--> <ide> <ide> The `vm` module provides APIs for compiling and running code within V8 Virtual <del>Machine contexts. It can be accessed using: <add>Machine contexts. <add> <add>JavaScript code can be compiled and run immediately or <add>compiled, saved, and run later. <add> <...
1
Ruby
Ruby
add documentation for thread#freeze
cb12e0408a88ca128da9c7a8a46ff4c75b0c4dd9
<ide><path>activesupport/lib/active_support/core_ext/thread.rb <ide> def thread_variable?(key) <ide> _locals.has_key?(key.to_sym) <ide> end <ide> <add> # Freezes the thread so that thread local variables cannot be set via <add> # Thread#thread_variable_set, nor can fiber local variables be set. <add> # <add> ...
1
Python
Python
add a couple of simple unit-tests for bincount
60e53321fbb0a5e3ae630100eff32aec939a4434
<ide><path>numpy/lib/tests/test_function_base.py <ide> from numpy.core import * <ide> from numpy import matrix, asmatrix <ide> <add>import numpy as np <add> <ide> class TestAny(TestCase): <ide> def test_basic(self): <ide> y1 = [0,0,1,0] <ide> def test_0d(self): <ide> assert y.ndim == 0 <ide> ...
1
Ruby
Ruby
remove call to object_id
37886a04e7248338522cbbf1fe7d31abb5cc46b8
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb <ide> def cache_notification_info(sql, name, binds) <ide> binds: binds, <ide> type_casted_binds: -> { type_casted_binds(binds) }, <ide> name: name, <del> connection_id: object_id, <ide> ...
1
Ruby
Ruby
remove redundant chdir
a45bfc87865dcd4aac640cc46fe0ef35a2b55d9c
<ide><path>Library/Homebrew/download_strategy.rb <ide> def stage <ide> Dir.chdir @clone do <ide> if @spec and @ref <ide> ohai "Checking out #{@spec} #{@ref}" <del> Dir.chdir @clone do <del> safe_system 'hg', 'archive', '--subrepos', '-y', '-r', @ref, '-t', 'files', dst <del> end...
1
Python
Python
use new exception style
c95fa81cb25fbdb7af3c8cc39cc45e49eff66c98
<ide><path>rest_framework/serializers.py <ide> def restore_object(self, attrs, instance=None): <ide> <ide> try: <ide> instance.full_clean(exclude=self.get_validation_exclusions()) <del> except ValidationError, err: <add> except ValidationError as err: <ide> self._errors = ...
1
Go
Go
add content type to push
3870ebee6db450efcebac81b829694a047583442
<ide><path>registry.go <ide> func (graph *Graph) PushImage(imgOrig *Image, authConfig *auth.AuthConfig) error <ide> if err != nil { <ide> return err <ide> } <add> req.Header.Add("Content-type", "application/json") <ide> req.SetBasicAuth(authConfig.Username, authConfig.Password) <ide> res, err := client.Do(r...
1
Javascript
Javascript
correct param names in jsdoc comments
1d34f0fefdd9947f791f1810b99596977a26e0e8
<ide><path>lib/fs.js <ide> function realpathSync(p, options) { <ide> <ide> /** <ide> * Returns the resolved pathname. <del> * @param {string | Buffer | URL} p <add> * @param {string | Buffer | URL} path <ide> * @param {string | { encoding?: string; }} [options] <ide> * @returns {string | Buffer} <ide> */ <ide> fun...
1
Javascript
Javascript
remove unnecessary process.nexttick()"
ba0dbaa1930db93a9e988ce1a525c8b2054a2970
<ide><path>lib/net.js <ide> function lookupAndConnect(self, options) { <ide> // If host is an IP, skip performing a lookup <ide> var addressType = cares.isIP(host); <ide> if (addressType) { <del> internalConnect(self, host, port, addressType, localAddress, localPort); <add> nextTick(self[async_id_symbol], f...
2
Javascript
Javascript
remove runtime experimental warning
ad8442f1357fb736f899eda73dad3f88ec58fbc6
<ide><path>lib/test.js <ide> const { ObjectAssign } = primordials; <ide> const { test, describe, it, before, after, beforeEach, afterEach } = require('internal/test_runner/harness'); <ide> const { run } = require('internal/test_runner/runner'); <del>const { emitExperimentalWarning } = require('internal/util'); <del> <d...
1
Python
Python
add tests for custom cluster policy
6fe020e105531dd5a7097d8875eac0f317045298
<ide><path>tests/test_local_settings.py <ide> import unittest <ide> from unittest.mock import MagicMock, call <ide> <add>from airflow.exceptions import AirflowClusterPolicyViolation <add> <ide> SETTINGS_FILE_POLICY = """ <ide> def test_policy(task_instance): <ide> task_instance.run_as_user = "myself" <ide> def pod...
1
Python
Python
add support for input tensors in inputlayer
ca467cc50ee49776140830e297dd52b3f26c8f76
<ide><path>keras/engine/topology.py <ide> class InputLayer(Layer): <ide> '''TODO: dosctring <ide> ''' <ide> def __init__(self, input_shape=None, batch_input_shape=None, <del> input_dtype=None, name=None): <add> input_dtype=None, input_tensor=None, name=None): <ide> se...
2
Mixed
Python
remove duplicated branch in if/else-if statement
2b14997b68e2a737d9569926c3b13ee0870b4d76
<ide><path>.github/contributors/leicmi.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <ad...
2
Javascript
Javascript
fix typing of resolver options
b1132a91ab1b19ed20276b75b107c959b77efd1f
<ide><path>packager/react-packager/src/JSTransformer/index.js <ide> const workerFarm = require('worker-farm'); <ide> const debug = require('debug')('ReactNativePackager:JStransformer'); <ide> <ide> import type {Data as TransformData, Options as TransformOptions} from './worker/worker'; <add>import type {SourceMap} fro...
4
PHP
PHP
expire jobs after 90 seconds
d3aff652bdebe006442a575df647d59baddee903
<ide><path>config/queue.php <ide> 'driver' => 'database', <ide> 'table' => 'jobs', <ide> 'queue' => 'default', <del> 'expire' => 60, <add> 'expire' => 90, <ide> ], <ide> <ide> 'beanstalkd' => [ <ide> 'driver' => 'beanstalkd', <ide> ...
1
Javascript
Javascript
use emitter.listenercount() in test-http-connect
2b090c1bd09b7dfff2a329717154b25ba6a786c2
<ide><path>test/parallel/test-http-connect.js <ide> server.on('connect', common.mustCall((req, socket, firstBodyChunk) => { <ide> assert.strictEqual(req.url, 'google.com:443'); <ide> <ide> // Make sure this socket has detached. <del> assert.strictEqual(socket.listeners('close').length, 0); <del> assert.strictEqu...
1
Text
Text
update support readme for webpack1 wiki
736ac2645d83a31c5400c3640089af5a142cdcb2
<ide><path>README.md <ide> We consider webpack to be a low-level tool used not only individually but also l <ide> <ide> If you're just getting started, take a look at [our new docs and concepts page](https://webpack.js.org/concepts/). This has a high level overview that is great for beginners!! <ide> <add>Looking for...
1
Javascript
Javascript
fix bug in spotlighthelper
62778396082a830f695cdd2ca17efbe14c8703f5
<ide><path>src/extras/helpers/SpotLightHelper.js <ide> THREE.SpotLightHelper = function ( light, sphereSize ) { <ide> this.targetLine = new THREE.Line( lineGeometry, lineMaterial ); <ide> this.targetLine.properties.isGizmo = true; <ide> <add> } <add> else { <add> <add> this.targetSphere = null; <add> <ide> } <id...
1
Python
Python
remove `request' from response instance while
7df7dadccdba83d87fcc1ec6b5977fde26aab881
<ide><path>rest_framework/tests/renderers.py <ide> def _get_pickling_errors(cls, obj, seen=None): <ide> def http_resp(self, http_method, url): <ide> """ <ide> Simple wrapper for Client http requests <del> Removes the `client' attribute from the response as an instance <del> of `django....
1
Python
Python
change dict.iteritems() to dict.items()
e2ea9eb4e2ab0fecc9adfabbec838dbfd114be29
<ide><path>research/object_detection/model_lib.py <ide> def tpu_scaffold(): <ide> if img_summary is not None: <ide> eval_metric_ops['Detections_Left_Groundtruth_Right'] = ( <ide> img_summary, tf.no_op()) <del> eval_metric_ops = {str(k): v for k, v in eval_metric_ops.iteritems()} <add> ...
1
Text
Text
update contributing guidelines
56d4bc40ea33d1b29191d04a1caf49e10569cbbb
<ide><path>CONTRIBUTING.md <ide> Do this prior to every time you create a branch for a PR: <ide> <ide> 1. Make sure you are on the `staging` branch <ide> <del> > ```shell <del> > $ git status <del> > On branch staging <del> > Your branch is up-to-date with 'origin/staging'. <del> > ``` <add> ```shell <add> $...
1
Python
Python
fix regression in pool metrics
0367a92881e88df36dabb81ef837e5256f3db89d
<ide><path>airflow/jobs/scheduler_job.py <ide> def _executable_task_instances_to_queued(self, max_tis: int, session: Session = <ide> starved_pools.add(pool_name) <ide> continue <ide> <add> # Make sure to emit metrics if pool has no starving tasks <add> ...
2
Go
Go
fix race in locker call to `dec()`
985175fd8f8f662d5067bd62a89330e9a437375c
<ide><path>pkg/locker/locker.go <ide> type Locker struct { <ide> type lockCtr struct { <ide> mu sync.Mutex <ide> // waiters is the number of waiters waiting to acquire the lock <del> waiters uint32 <add> // this is int32 instead of uint32 so we can add `-1` in `dec()` <add> waiters int32 <ide> } <ide> <ide> // inc i...
2
Python
Python
fix italian tag map
975e1042ffb943d645d1d42cf0b121ae220f3e8d
<ide><path>spacy/lang/it/tag_map.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <add>from ...symbols import POS, PUNCT, SYM, ADJ, NUM, DET, ADV, ADP, X, VERB <add>from ...symbols import NOUN, PROPN, PART, INTJ, SPACE, PRON, SCONJ, AUX, CONJ <add> <ide> <ide> TAG_MAP = { <del> "AP__Gend...
1
Java
Java
add @override annotations to main sources
3b40ce76bf751d788f57064bb692ceb8804a58af
<ide><path>spring-aop/src/main/java/org/springframework/aop/TargetSource.java <ide> public interface TargetSource extends TargetClassAware { <ide> * target class. <ide> * @return the type of targets returned by this {@link TargetSource} <ide> */ <add> @Override <ide> Class<?> getTargetClass(); <ide> <ide> /** ...
300
Python
Python
fix incorrect output types for some ufuncs
772b0dab26370a36c3774049ad50315fc953c07a
<ide><path>numpy/core/code_generators/generate_umath.py <ide> def __init__(self, nin, nout, identity, docstring, <ide> Ufunc(2, 1, One, <ide> 'returns x1 and x2 elementwise.', <ide> TD(noobj, out='?'), <del> TD(M, f='logical_and', out='?'), <add> TD(M, f='logical_and'), <ide> ...
1
Ruby
Ruby
generate appropriate error more judiciously
569fb1fffb216ad96721fe1f5d706535e9920154
<ide><path>activemodel/lib/active_model/observing.rb <ide> def count_observers <ide> def instantiate_observer(observer) #:nodoc: <ide> # string/symbol <ide> if observer.respond_to?(:to_sym) <del> observer.to_s.camelize.constantize.instance <del> elsif observer.respond_to?...
2
Javascript
Javascript
remove double to string convertion in formdata
9e78a63f8417a08d5da9b4a96e978ba5290bbb7f
<ide><path>Libraries/Network/FormData.js <ide> class FormData { <ide> getParts(): Array<FormDataPart> { <ide> return this._parts.map(([name, value]) => { <ide> var contentDisposition = 'form-data; name="' + name + '"'; <del> // Convert non-object values to strings as per FormData.append() spec <del> ...
1
Go
Go
handle plugin shutdown when liverestore is set
4a44cf1d4c8e540b67aaa3834291a964c6ab7524
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) Shutdown() error { <ide> daemon.shutdown = true <ide> // Keep mounts and networking running on daemon shutdown if <ide> // we are to keep containers running and restore them. <add> <add> pluginShutdown() <add> <ide> if daemon.configStore.LiveRestore && daemon....
4
Mixed
Javascript
add signal support to pipeline generators
c04d621eccfa1a8e65188ca6921ecd1b3b0a934c
<ide><path>doc/api/stream.md <ide> const { pipeline } = require('stream/promises'); <ide> <ide> async function run() { <ide> const ac = new AbortController(); <del> const options = { <del> signal: ac.signal, <del> }; <add> const signal = ac.signal; <ide> <ide> setTimeout(() => ac.abort(), 1); <ide> await ...
7
PHP
PHP
add jsonp as a default response
1beea5d594b89986b5f92ec2fd33bbeb722a21f9
<ide><path>laravel/response.php <ide> public static function json($data, $status = 200, $headers = array()) <ide> return new static(json_encode($data), $status, $headers); <ide> } <ide> <add> /** <add> * Create a new JSONP response. <add> * <add> * <code> <add> * // Create a response instance with JSONP <add> ...
1
Text
Text
edit colormode information
973b5c02bba6b744f7ba38f335ec8d0d67e1b199
<ide><path>doc/api/console.md <ide> changes: <ide> * `ignoreErrors` {boolean} Ignore errors when writing to the underlying <ide> streams. **Default:** `true`. <ide> * `colorMode` {boolean|string} Set color support for this `Console` instance. <del> Setting to `true` enables coloring while inspecting values, ...
1
Javascript
Javascript
move location to ember-routing
8bb14d5e3b50abc58d7ed9b053709e604070de00
<ide><path>packages/ember-routing/lib/location.js <add>require('ember-views'); <add>require('ember-routing/location/api'); <add>require('ember-routing/location/none_location'); <add>require('ember-routing/location/hash_location'); <add>require('ember-routing/location/history_location'); <ide><path>packages/ember-routin...
5
Ruby
Ruby
fix activestorage update
ead3f67e88af80cdb8d14e095b7ded2965f021c9
<ide><path>activestorage/db/update_migrate/20190112182829_add_service_name_to_active_storage_blobs.rb <ide> class AddServiceNameToActiveStorageBlobs < ActiveRecord::Migration[6.0] <ide> def up <add> return unless table_exists?(:active_storage_blobs) <add> <ide> unless column_exists?(:active_storage_blobs, :ser...
3
PHP
PHP
support custom `to` address on `mailmessage`
e6063d7df79aa6bbc3829dcc0b3907fe8b49201c
<ide><path>src/Illuminate/Notifications/Channels/MailChannel.php <ide> public function send($notifiable, Notification $notification) <ide> $message = $notification->toMail($notifiable); <ide> <ide> $this->mailer->send($message->view, $message->data(), function ($m) use ($notifiable, $notification, $mes...
3
Text
Text
translate some lines into spanish
cb35fd2d51eaaf59cb3a444edbb6b3a6c968b973
<ide><path>guide/spanish/java/abstract-class/index.md <ide> Considere el siguiente ejemplo para entender las clases abstractas: Usted tiene <ide> <ide> Vehículo público de clase amplía vehículo. { ... } <ide> <del>Clase pública de motocicleta extiende vehículo { ... } <add>Clase pública de motocicleta extiende vehíul...
1
Text
Text
add a changelog entry for [ci skip]
3190aab84d4a0a667f6dbc4ff61c706058cb4e5f
<ide><path>activerecord/CHANGELOG.md <del>* Emulate db trigger behaviour for after_commit :destroy, :update <add>* Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted <add> or updated because it would violate a not null constraint. <add> <add> *Ryuta Kamizono* <add> <add>* Emulate db tri...
1
PHP
PHP
fix entity names for associated model date fields
85b86cb282d2a95964f127864068dbfc67b271b5
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testSetEntityScoped() { <ide> $expected = array('HelperTestComment', 'id', 'time'); <ide> $this->assertEquals($expected, $this->Helper->entity()); <ide> <add> $this->Helper->setEntity('HelperTestComment.created.year'); <add> $expected = arra...
2
Text
Text
remove text and add comma
bf90943f78ddb5e634a2d45c4e981cfbe8c3d867
<ide><path>guide/english/accessibility/accessibility-basics/index.md <ide> If you fall outside these rather broad categories, please let me know. I always <ide> <ide> Accessibility in itself is a bit of a misleading term sometimes, especially if English is your second language. It is sometimes referred to as "inclusiv...
1
Python
Python
set default connection for ssh
3c624ea44fad192b6db818313011857160d77951
<ide><path>airflow/utils.py <ide> def initdb(): <ide> models.Connection( <ide> conn_id='webhdfs_default', conn_type='hdfs', <ide> host='localhost', port=50070)) <add> merge_conn( <add> models.Connection( <add> conn_id='ssh_default', conn_type='ssh', <add> ...
1
Python
Python
update docstrings of modules with missing params
71c673e427a89cae2a9f3174c32c5c85556d6342
<ide><path>airflow/providers/amazon/aws/hooks/redshift.py <ide> class RedshiftHook(AwsBaseHook): <ide> <ide> .. seealso:: <ide> :class:`~airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook` <add> <add> :param aws_conn_id: The Airflow connection used for AWS credentials. <add> :type aws_conn_id: s...
9
Javascript
Javascript
fix precompilation test in ie
041cb831cf3ed938ae765ab3b3a6484d25f0d26e
<ide><path>packages/ember-handlebars/tests/handlebars_test.js <ide> test("should be able to use unbound helper in #each helper (with objects)", func <ide> <ide> test("should work with precompiled templates", function() { <ide> var templateString = Ember.Handlebars.precompile("{{view.value}}"), <del> compiledTem...
1
Python
Python
fix failing test
fdef440289fbf381a0c97cf9b697ae2ca9780d82
<ide><path>libcloud/test/compute/test_ec2.py <ide> def test_regions_and_signature_versions(self): <ide> self.assertEqual(driver.signature_version, "4") <ide> <ide> driver = EC2NodeDriver(*EC2_PARAMS, region="af-south-1") <del> self.assertEqual(driver.signature_version, "2") <add> self.ass...
1
Ruby
Ruby
add #schema_names to postgresql adapter
577971f05a838da3ba74ba49d776a83f6bfe1aee
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def encoding <ide> end_sql <ide> end <ide> <add> # Returns an array of schema names. <add> def schema_names <add> query(<<-SQL).flatten <add> SELECT nspname <add> FROM pg_namespa...
2
Text
Text
fix typo in readme.md
cab6341545a57b1aa36cb70f6263f9547d906cda
<ide><path>readme.md <ide> Supported options: <ide> Then, change your `start` script to `NODE_ENV=production node server.js`. <ide> <ide> #### Disabling file-system routing <del>By default, `Next` will serve eacy file in `/pages` under a pathname matching the filename (eg, `/pages/some-file.js` is served at `site.com/...
1
PHP
PHP
remove incorrect constant
79564fb7d41bec933cdeb947b44a9eb7b1f4b42f
<ide><path>lib/Cake/Console/cake.php <ide> /** <ide> * Command-line code generation utility to automate programmer chores. <ide> * <del> * Shell dispatcher class <del> * <ide> * PHP 5 <ide> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> <ide> if (!$found && function_exists('ini_set...
1
PHP
PHP
add links property to json pagination responses
13751a187834fabe515c14fb3ac1dc008fd23f37
<ide><path>src/Illuminate/Pagination/LengthAwarePaginator.php <ide> public function render($view = null, $data = []) <ide> ])); <ide> } <ide> <add> /** <add> * Get the paginator links as a collection (for JSON responses). <add> * <add> * @return \Illuminate\Support\Collection <add> */ <a...
1
Ruby
Ruby
allow brew log on deleted formulae
46d2b2165ab1f559e52d4b24cb86d96505a7f4f4
<ide><path>Library/Homebrew/cmd/log.rb <ide> def log <ide> cd HOMEBREW_REPOSITORY <ide> exec "git", "log", *ARGV.options_only <ide> else <del> path = ARGV.formulae.first.path.realpath <add> begin <add> path = ARGV.formulae.first.path.realpath <add> rescue FormulaUnavailableError <a...
1
Javascript
Javascript
add jscs task to test task
2a4f92ee99179513efba98d564a8795917c77ddf
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> <ide> <ide> //alias tasks <del> grunt.registerTask('test', 'Run unit, docs and e2e tests with Karma', ['jshint', 'package','test:unit','test:promises-aplus', 'tests:docs', 'test:protractor']); <add> grunt.registerTask('test', 'Run unit, docs a...
1
Javascript
Javascript
namespace observable methods
1dcdf4e17c89edf0bf2961f1504deb245d6ccd06
<ide><path>server/boot/authentication.js <ide> module.exports = function enableAuthentication(app) { <ide> } <ide> ); <ide> } <del> return authToken.validate() <add> return authToken.validate$() <ide> .map(isValid => { <ide> i...
2
Javascript
Javascript
use push() for transform._output()
b43e544140ccf68580c02e71c56d19b82e1e1d32
<ide><path>lib/_stream_transform.js <ide> function TransformState(stream) { <ide> this.transforming = false; <ide> this.pendingReadCb = null; <ide> this.output = function(chunk) { <del> stream._output(chunk); <add> stream.push(chunk); <ide> }; <ide> } <ide> <ide> Transform.prototype._read = function(n, r...
2
Python
Python
update portuguese language
6c498f9ff47f9df685d6dab25b36d464e52ea37b
<ide><path>spacy/lang/pt/__init__.py <ide> from .lex_attrs import LEX_ATTRS <ide> from .lemmatizer import LOOKUP <ide> from .tag_map import TAG_MAP <add>from .norm_exceptions import NORM_EXCEPTIONS <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <add>from .punctuation import TOKENIZER_INFIXES, TOKENIZER...
6
PHP
PHP
add tests for datetype
f18a11e8b90711c40c121a8eed62333167ab01c8
<ide><path>lib/Cake/Model/Datasource/Database/Type.php <ide> class Type { <ide> * @var array <ide> */ <ide> protected static $_types = [ <del> 'boolean' => '\Cake\Model\Datasource\Database\Type\BooleanType', <del> 'binary' => '\Cake\Model\Datasource\Database\Type\BinaryType', <del> 'date' => '\Cake\Model\Datasour...
3
Ruby
Ruby
use commit in the signedcookiejar
b807ac7a7a195df663bbc9dfba87d397936b50f0
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def digest <ide> end <ide> end <ide> <del> class SignedCookieJar #:nodoc: <del> include ChainedCookieJars <add> class SignedCookieJar < AbstractCookieJar # :nodoc: <ide> include SerializedCookieJars <ide> <ide> de...
1
PHP
PHP
remove hints on controller hook methods
4f287e4ca996ced5e9547de3e9e0451272cabb34
<ide><path>src/Controller/Controller.php <ide> public function isAction(string $action): bool <ide> * or perform logic that needs to happen before each controller action. <ide> * <ide> * @param \Cake\Event\EventInterface $event An Event instance <del> * @return \Cake\Http\Response|null <add> * @r...
4
Python
Python
add numpy.doc topical documentation framework
c114dd8293e5ab72b57f3810df476b6528966d4f
<ide><path>numpy/__init__.py <ide> def pkgload(*packages, **options): <ide> import random <ide> import ctypeslib <ide> import ma <add> import doc <ide> <ide> # Make these accessible from numpy name-space <ide> # but not imported in from numpy import * <ide> def pkgload(*packages, **options): <i...
6
Javascript
Javascript
address more of brendan's comments
2ce00279be41c3435c72e86aa2035817cd5e20bf
<ide><path>src/chunked_stream.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <del>/* globals assert, MissingDataException, isInt, NetworkManager, PDFJS, <add>/* globals assert, MissingDataException, isInt, NetworkManager, Promise, <ide> ...
7
Ruby
Ruby
dry this baby up
8bce6e761d52afd68bb06ca9ff8222f072e06cc8
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> def select_minute <ide> def select_hour <ide> if @options[:use_hidden] || @options[:discard_hour] <ide> build_hidden(:hour, hour) <del> elsif @options[:ampm] <del> build_select(:hour, build_ampm_options(hour, :end...
1
Javascript
Javascript
add a scale.init method
a301ca148c4536793a740e7d263e74bc258ed25b
<ide><path>src/core/core.controller.js <ide> export default class Chart { <ide> let scale = null; <ide> if (id in scales && scales[id].type === scaleType) { <ide> scale = scales[id]; <del> scale.options = scaleOptions; <del> scale.ctx = me.ctx; <del> scale.chart = me; <ide> } else { <ide> cons...
5
PHP
PHP
add a "validated" method to the form request
eb02670211fb8eec7aaf84679301565089cbd95f
<ide><path>src/Illuminate/Foundation/Http/FormRequest.php <ide> protected function createDefaultValidator(ValidationFactory $factory) <ide> ); <ide> } <ide> <add> /** <add> * Get the validated data from the request. <add> * <add> * @return array <add> */ <add> public function validate...
2
Text
Text
improve wording, grammar, punctuation etc
cfe283cfebd443f143ce680d10c10b78e284e3d0
<ide><path>.github/CONTRIBUTING.md <ide> To run the test cases locally use the following command: <ide> vendor/bin/phpunit <ide> <ide> You can copy file `phpunit.xml.dist` to `phpunit.xml` and modify the database <del>driver settings as required to run tests for particular database. <add>driver settings as require...
9
Javascript
Javascript
fix error on empty array config
20ab1bfa7f320866340b18336c15b9a3142c52d5
<ide><path>bin/webpack.js <ide> function processOptions(options) { <ide> return; <ide> } <ide> <del> var firstOptions = Array.isArray(options) ? options[0] : options; <add> var firstOptions = Array.isArray(options) ? (options[0] || {}) : options; <ide> <ide> if(typeof options.stats === "boolean" || typeof options...
1
Python
Python
handle possibility there are no workers
cd89518cf2ef18aaf739eac06aaf28a2e3d0fffa
<ide><path>celery/bin/graph.py <ide> def maybe_abbr(l, name, max=Wmax): <ide> workers = args['nodes'] <ide> threads = args.get('threads') or [] <ide> except KeyError: <del> replies = self.app.control.inspect().stats() <add> replies = self.app.control.inspect().stats...
1
Javascript
Javascript
simplify image parsing
15e41aff657691220528fcd7f2c4f02572055e86
<ide><path>examples/js/loaders/FBXLoader.js <ide> <ide> // Parse FBXTree.Objects.Video for embedded image data <ide> // These images are connected to textures in FBXTree.Objects.Textures <del> // via FBXTree.Connections. Note that images can be duplicated here, in which case only one <del> // may have a .Content fie...
1
Javascript
Javascript
add test case
36d9bd555628f6470d5f0532c53a285d69a4942a
<ide><path>test/HarmonyExportImportedSpecifierDependency.test.js <add>/* globals describe, it, beforeEach */ <add>"use strict"; <add> <add>const should = require("should"); <add>const HarmonyExportImportedSpecifierDependency = require("../lib/dependencies/HarmonyExportImportedSpecifierDependency"); <add> <add>describe(...
1
Ruby
Ruby
add ofail command and fix bottle command output
fe969c21ad199ae27a113e9fb2f01c5bb3fbc942
<ide><path>Library/Contributions/cmds/brew-test-bot.rb <ide> def initialize arg <ide> begin <ide> Formula.factory arg <ide> rescue FormulaUnavailableError <del> ofail "#{arg} is not a pull request number or formula." unless arg.to_i > 0 <add> odie "#{arg} is not a pull request number or formula....
9
PHP
PHP
add returntypewillchange attribute
e89ab5a8fec46f6e7d6ed7039dd8c518df1ed4fa
<ide><path>src/Illuminate/Bus/Batch.php <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Collection; <ide> use JsonSerializable; <add>use ReturnTypeWillChange; <ide> use Throwable; <ide> <ide> class Batch implements Arrayable, JsonSerializable <ide> public function toArray() <ide> * <ide> * @re...
21
Javascript
Javascript
fix regression on i9.pdf
b1a5ab6d0f24ab26a06bd37fbd0b37fbf2f19c3a
<ide><path>fonts.js <ide> var isWorker = (typeof window == 'undefined'); <ide> */ <ide> var kMaxWaitForFontFace = 1000; <ide> <add>// Unicode Private Use Area <add>var kCmapGlyphOffset = 0xE000; <add> <add> <ide> /** <ide> * Hold a map of decoded fonts and of the standard fourteen Type1 <ide> * fonts and their acro...
2
Python
Python
replace methods on state with frozenset properties
0c5bbe83c6b60965274496e68283ba0102eb1d06
<ide><path>airflow/api/common/experimental/mark_tasks.py <ide> def set_state( <ide> tis_altered += qry_sub_dag.with_for_update().all() <ide> for task_instance in tis_altered: <ide> task_instance.state = state <del> if state in State.finished(): <add> if state in Sta...
12
Java
Java
remove duplicate assertions in asyncexecutiontests
43a814b070c73b0d36701080cebfbc22ff8a9bc4
<ide><path>spring-context/src/test/java/org/springframework/scheduling/annotation/AsyncExecutionTests.java <ide> public void asyncMethodListener() throws Exception { <ide> .atMost(1, TimeUnit.SECONDS) <ide> .pollInterval(10, TimeUnit.MILLISECONDS) <ide> .until(() -> listenerCalled == 1); <del> assertEqu...
1
Javascript
Javascript
add a test case for the underlying cause
86c659ba61dd923439335b240d81b38cab407acc
<ide><path>test/parallel/test-stream-readable-no-unneeded-readable.js <ide> const common = require('../common'); <ide> const { Readable, PassThrough } = require('stream'); <ide> <del>const source = new Readable({ <del> read: () => {} <del>}); <add>function test(r) { <add> const wrapper = new Readable({ <add> read...
1
Javascript
Javascript
simplify arg parsing in string.write
29ec85047842dc4fc1a6127f90dc1110f7c5483e
<ide><path>lib/net_uv.js <ide> Socket.prototype.__defineGetter__('remotePort', function() { <ide> }); <ide> <ide> <del>Socket.prototype.write = function(data /* [encoding], [fd], [cb] */) { <del> var encoding, fd, cb; <add>/* <add> * Arguments data, [encoding], [cb] <add> */ <add>Socket.prototype.write = function(da...
1
PHP
PHP
remove extra autoload file
8914be5fc864ebc6877be38ff3502997e0c62761
<ide><path>bootstrap/autoload.php <del><?php <del> <del>define('LARAVEL_START', microtime(true)); <del> <del>/* <del>|-------------------------------------------------------------------------- <del>| Register The Composer Auto Loader <del>|-------------------------------------------------------------------------- <del>...
2
Python
Python
fix syntax errors in the previous commit
870d73e3b12d576826b5eeedb9b0c0f3607956f6
<ide><path>celery/log.py <ide> import sys <ide> import time <ide> import logging <add>import traceback <ide> from celery.conf import LOG_FORMAT, DAEMON_LOG_LEVEL <ide> <ide> <ide> class LoggingProxy(object): <ide> mode = "w" <ide> name = None <ide> closed = False <add> loglevel = logging.INFO <ide> <d...
1
Javascript
Javascript
enable some polyfills for compat with chrome 49
5d1c541702bd608d476d62bd4de051bb9b8d6171
<ide><path>src/shared/compatibility.js <ide> // Skip compatibility checks for the extensions and if we already ran <ide> // this module. <ide> if ((typeof PDFJSDev === 'undefined' || <del> !PDFJSDev.test('FIREFOX || MOZCENTRAL || CHROME')) && <add> !PDFJSDev.test('FIREFOX || MOZCENTRAL')) && <ide> (typeof P...
2
Go
Go
fix race on state serialization
f1975cbc7c5b551e5a206c15f32aef3d51904408
<ide><path>daemon/state.go <ide> package daemon <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "sync" <ide> "time" <ide> func (s *State) String() string { <ide> return fmt.Sprintf("Exited (%d) %s ago", s.ExitCode, units.HumanDuration(time.Now().UTC().Sub(s.FinishedAt))) <ide> } <ide> <add>type jStat...
1
Text
Text
add v3.18.0-beta.5 to changelog
88ec6feeb7e0150a6422abd3f63e9a1fdcab3a8f
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.18.0-beta.5 (April 7, 2020) <add> <add>- [#18857](https://github.com/emberjs/ember.js/pull/18857) [BUGFIX] Pass value through to `PROPERTY_DID_CHANGE` to avoid calling `get` when setting values for computed props <add>- [#18861](https://github.com/ember...
1
Javascript
Javascript
convert createclass caller
6b539f280d8b0ec4874671bae9c6bed80b788006
<ide><path>src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js <ide> describe('ReactDOMInput', () => { <ide> <ide> describe('assigning the value attribute on controlled inputs', function() { <ide> function getTestInput() { <del> return React.createClass({ <del> getInitialState: function...
1