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
Java
Java
propagate the cancel signal to the downstream
09da10cc6c585995f4623793aa2b2f6a38b5284d
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ChannelSendOperator.java <ide> private class WriteCompletionBarrier implements CoreSubscriber<Void>, Subscripti <ide> <ide> private final WriteBarrier writeBarrier; <ide> <add> @Nullable <add> private Subscription subscription; <add> <id...
1
Text
Text
fix punctation in readme.md
7c4e4fd9c2e3a21706a91bc44a0d5c94df390d77
<ide><path>README.md <ide> Using unpkg CDN: <ide> <ide> ## Example <ide> <del>Performing a `GET` request <add>> **Note** CommonJS usage <add>> In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()`, use the following approach: <ide> <ide> ```js <ide> i...
1
Text
Text
add solution from english
2ae32d13aa662c620aec3e3dce67142c3415dd8c
<ide><path>curriculum/challenges/spanish/01-responsive-web-design/css-grid/use-media-queries-to-create-responsive-layouts.spanish.md <ide> tests: <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><style> <add> .item1 { <add> background: LightSkyBlue; <add>...
1
Ruby
Ruby
add undeclared dependencies to tab when installing
40ca03e975041b4fce9a3097fed5739653c039f3
<ide><path>Library/Homebrew/formula.rb <ide> require "tap" <ide> require "keg" <ide> require "migrator" <add>require "os/mac/linkage_checker" <ide> require "extend/ENV" <ide> require "language/python" <ide> <ide> def declared_runtime_dependencies <ide> end <ide> <ide> def undeclared_runtime_dependencies <del> ...
1
Python
Python
reintroduce image_shape and filter_shape in conv2d
6c1ce0f6e9059c93c87d839b7e091d857cbfc0de
<ide><path>examples/mnist_cnn.py <ide> model = Sequential() <ide> <ide> model.add(Convolution2D(nb_filters, nb_conv, nb_conv, <del> border_mode='same', <add> border_mode='valid', <ide> input_shape=(1, img_rows, img_cols))) <ide> model.add(Activation...
4
Javascript
Javascript
improve port validation"
bd965aaf366b39c4c99093892df07d3f9f9eca85
<ide><path>lib/url.js <ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { <ide> <ide> // validate a little. <ide> if (!ipv6Hostname) { <del> rest = getHostname(this, rest, hostname, url); <add> rest = getHostname(this, rest, hostname); <ide> } <ide> <ide> i...
3
Mixed
Ruby
add missing data types for activerecord migrations
7f2037a990fd81e07f612169f72e8d59fc2a4e52
<ide><path>activerecord/CHANGELOG.md <add>* Added methods for PostgreSQL geometric data types to use in migrations <add> <add> Example: <add> <add> create_table :foo do |t| <add> t.line :foo_line <add> t.lseg :foo_lseg <add> t.box :foo_box <add> t.path :foo_path <add> ...
3
Python
Python
remove blank line
a9a06e8ab27782aec39087c3385bd62d6eae0422
<ide><path>libcloud/test/dns/test_linode.py <ide> def test_list_records_success(self): <ide> self.assertHasKeys(srvrecord.extra, ['protocol', 'ttl_sec', 'port', <ide> 'priority', 'weight']) <ide> <del> <ide> def test_list_records_zone_does_not_exist(self): <ide>...
1
Javascript
Javascript
add some comments + fix getcolorn_ir_pattern
5bfa9e4f3b9f34369def38d0aa9aa5140f654f97
<ide><path>pdf.js <ide> var PartialEvaluator = (function() { <ide> var dict = IsStream(pattern) ? pattern.dict : pattern; <ide> var typeNum = dict.get('PatternType'); <ide> <del> // Type1 is TilingPattern, Type2 is ShadingPattern. <add> // Type1 is TilingPa...
1
Javascript
Javascript
update polar animation tests to less error prone
ce0f7ff903e42ea39677429644fb4f6cb38b4dda
<ide><path>test/fixtures/controller.polarArea/polar-area-animation-rotate.js <ide> module.exports = { <ide> animation: { <ide> animateRotate: true, <ide> animateScale: false, <del> duration: 800, <add> duration: 8000, <ide> easing: 'linear' <ide> }, <ide> responsi...
2
Text
Text
fix aborterror example for timers
31d83f5542ce8742fb3a85a414ad0637c8588d53
<ide><path>doc/api/timers.md <ide> const signal = ac.signal; <ide> setImmediatePromise('foobar', { signal }) <ide> .then(console.log) <ide> .catch((err) => { <del> if (err.message === 'AbortError') <add> if (err.name === 'AbortError') <ide> console.log('The immediate was aborted'); <ide> }); <ide> <i...
1
Go
Go
remove unused filenotify
ee99b5f2e96aafa982487aadbb78478898ae0c71
<ide><path>pkg/filenotify/filenotify.go <del>// Package filenotify provides a mechanism for watching file(s) for changes. <del>// Generally leans on fsnotify, but provides a poll-based notifier which fsnotify does not support. <del>// These are wrapped up in a common interface so that either can be used interchangeably...
4
Ruby
Ruby
repair the message
89868087fd8540118475b5f3bddf159c687317ec
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> puts_stdout_or_stderr <ide> puts_stdout_or_stderr <<~EOS <ide> You have #{msg} installed. <del> You can check #{update_pronoun} with #{Tty.bold}brew outdated#{Tty.reset}. <del> ...
1
Go
Go
forbid certain paths within docker build add
3104fc8d33ce4c26a446826639a7b2dba524264f
<ide><path>buildfile.go <ide> func (b *buildFile) addContext(container *Container, orig, dest string) error { <ide> if strings.HasSuffix(dest, "/") { <ide> destPath = destPath + "/" <ide> } <add> if !strings.HasPrefix(origPath, b.context) { <add> return fmt.Errorf("Forbidden path: %s", origPath) <add> } <ide> fi,...
2
Ruby
Ruby
remove unused private method in fixtures.rb
caeca1f69b3a6f25248390daa37561cf2cbd8cd6
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def yaml_file_path <ide> "#{@fixture_path}.yml" <ide> end <ide> <del> def yaml_fixtures_key(path) <del> ::File.basename(@fixture_path).split(".").first <del> end <ide> end <ide> <ide> class Fixture #:nodoc:
1
Python
Python
log best epoch
b9df30b4ef2137ca6c10bddfe32661f21c67fbf8
<ide><path>keras/callbacks.py <ide> def on_train_begin(self, logs=None): <ide> self.stopped_epoch = 0 <ide> self.best = np.Inf if self.monitor_op == np.less else -np.Inf <ide> self.best_weights = None <add> self.best_epoch = 0 <ide> <ide> def on_epoch_end(self, epoch, logs=None): <ide> current = s...
1
Ruby
Ruby
prefer tap to returning
173ee14c3d95238cfb828400862a24a14aec600f
<ide><path>actionmailer/lib/action_mailer/helpers.rb <ide> def inherited_with_helper(child) <ide> private <ide> # Extend the template class instance with our controller's helper module. <ide> def initialize_template_class_with_helper(assigns) <del> returning(template = initialize_template_class_w...
1
Go
Go
add test to check for plugin mounts on remove
5017b5bef55c31db4c04c8058ef7db8597b11341
<ide><path>plugin/manager_linux_test.go <add>package plugin <add> <add>import ( <add> "io/ioutil" <add> "os" <add> "path/filepath" <add> "testing" <add> <add> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/pkg/mount" <add> "github.com/docker/docker/pkg/system" <add> "github.com/docker/docker/plugi...
1
Python
Python
fix airflow.www.views import
d02932d0139215c790b12809e98df9a8ae1da41e
<ide><path>airflow/www/app.py <ide> def init_plugin_blueprints(app): <ide> log.debug("Adding blueprint %s:%s", bp["name"], bp["blueprint"].import_name) <ide> app.register_blueprint(bp["blueprint"]) <ide> <add> def init_error_handlers(app: Flask): <add> from airflow.www...
2
Javascript
Javascript
get the package name back in the qunit header
2c2136d26e09ba5069d3d1f3354b27142a174e19
<ide><path>packages/qunit/lib/qunit-runner.js <ide> if (!packageName) { <ide> QUnit.config.autostart = false; <ide> QUnit.config.autorun = false; <ide> <del> $('h1 > a').text(packageName); <add> jQuery(function() { <add> $('h1 > a').text(packageName); <add> }); <ide> <ide> QUnit.jsDump.setParser('object',...
1
Python
Python
fix typos in ``example_branch_datetime_operator``
4ed455674efde607180b9ebf05cd505348bcb8bd
<ide><path>airflow/example_dags/example_branch_datetime_operator.py <ide> dag=dag1, <ide> ) <ide> <del># Run empty_task_1 if cond1 executes between 2020-10-10 14:00:00 and 2020-10-10 15:00:00 <add># Run empty_task_11 if cond1 executes between 2020-10-10 14:00:00 and 2020-10-10 15:00:00 <ide> cond1 >> [empty_task_1...
1
Python
Python
add types of tok2vec embedding layers
512197293020cc5252e3af67a5a5123df099617e
<ide><path>spacy/ml/models/tok2vec.py <ide> def build_Tok2Vec_model( <ide> @registry.architectures.register("spacy.MultiHashEmbed.v1") <ide> def MultiHashEmbed( <ide> width: int, rows: int, also_embed_subwords: bool, also_use_static_vectors: bool <del>): <add>) -> Model[List[Doc], List[Floats2d]]: <ide> """Cons...
1
Javascript
Javascript
add spaces to improve readability of css
16c8f29ef6498991c31671d0dc0072543d156b41
<ide><path>src/ng/directive/ngShowHide.js <ide> var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate'; <ide> * <ide> * ### Overriding `.ng-hide` <ide> * <del> * By default, the `.ng-hide` class will style the element with `display:none!important`. If you wish to change <add> * By default, the `.ng-hide` class will style...
1
Python
Python
fix syntax for class references
e513c16e82221e0a150b97a31f2c3c864913c454
<ide><path>src/transformers/generation_flax_utils.py <ide> def _get_logits_warper( <ide> self, top_k: int = None, top_p: float = None, temperature: float = None <ide> ) -> FlaxLogitsProcessorList: <ide> """ <del> This class returns a :obj:`~transformers.FlaxLogitsProcessorList` list object th...
11
Python
Python
move old finetuning script into the new folder
f19ba35b2b6192dd55e4e6f974bcec5b8d3f8865
<add><path>examples/lm_finetuning/simple_lm_finetuning.py <del><path>examples/run_lm_finetuning.py <ide> from pytorch_pretrained_bert.tokenization import BertTokenizer <ide> from pytorch_pretrained_bert.optimization import BertAdam, warmup_linear <ide> <del>from torch.utils.data import Dataset <del>import random <del>...
1
Ruby
Ruby
extract #head into its own module and simplify it
d7499f8ee8faa80d12dccae5baf5ab2acc79e77d
<ide><path>actionpack/lib/action_controller.rb <ide> module ActionController <ide> autoload :Benchmarking, "action_controller/metal/benchmarking" <ide> autoload :ConditionalGet, "action_controller/metal/conditional_get" <ide> autoload :Configuration, "action_controller/metal/configuration" <a...
3
Javascript
Javascript
remove stray console.log() from line3 unit test
a685230753ffc8709f860af11824fb84829f2ee3
<ide><path>test/unit/math/Line3.js <ide> test( "closestPointToPoint/closestPointToPointParameter", function() { <ide> // nearby the ray <ide> ok( a.closestPointToPointParameter( zero3.clone(), false ) == -1, "Passed!" ); <ide> var b2 = a.closestPointToPoint( zero3.clone(), false ); <del> console.log( b2 ); <ide> ok...
1
Python
Python
add ex_metadata parameter to create_node
9bfb08af7519d016e79a9fd75320eb1f8f6870ad
<ide><path>libcloud/compute/drivers/ec2.py <ide> def create_node(self, **kwargs): <ide> assign to the node. <ide> :type ex_security_groups: ``list`` <ide> <add> :keyword ex_metadata: Key/Value metadata to associate with a node <add> :type e...
2
Java
Java
add channelinterceptor to spring-messaging module
4b2847d9d12bad150e3a2e0730a331e07825b06c
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessageHeaderAccessor.java <ide> protected SimpMessageHeaderAccessor(SimpMessageType messageType, Map<String, Lis <ide> */ <ide> protected SimpMessageHeaderAccessor(Message<?> message) { <ide> super(message); <del> Assert.notNull(mes...
12
Java
Java
add more logs
24ac66984c2d0c55ae09fb2df0f1e88a42339f21
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java <ide> public void initializeWithInstance(CatalystInstance catalystInstance) { <ide> <ide> /** Initialize message queue threads using a ReactQueueConfiguration. */ <ide> public synchronized void initializeMessageQueueThreads(ReactQueu...
1
Text
Text
update readme to include the resnet checkpoint
8479cc7c70f0a584d1b5c6fa00d9e2af47c40d33
<ide><path>official/vision/detection/README.md <ide> python3 ~/models/official/vision/detection/main.py \ <ide> --params_override="{ type: retinanet, train: { checkpoint: { path: ${RESNET_CHECKPOINT?}, prefix: resnet50/ }, train_file_pattern: ${TRAIN_FILE_PATTERN?} }, eval: { val_json_file: ${VAL_JSON_FILE?}, eval_fi...
1
Javascript
Javascript
use arrow function instead of bind
571ecd1aed3a1f04c2910bcf72585506621bb256
<ide><path>test/parallel/test-https-truncate.js <ide> const test = common.mustCall(function(res) { <ide> res.on('data', function(chunk) { <ide> bytes += chunk.length; <ide> this.pause(); <del> setTimeout(this.resume.bind(this), 1); <add> setTimeout(() => { this.resume() }, 1); <ide> }); <ide> });
1
Javascript
Javascript
avoid a bug in uglifyjs
f90bc4fd50cdf8d9e47fa01fd3428e6b7705bcd3
<ide><path>d3.js <ide> try { <ide> d3_style_setProperty.call(this, name, value + "", priority); <ide> }; <ide> } <del>d3 = {version: "2.1.2"}; // semver <add>d3 = {version: "2.1.3"}; // semver <ide> var d3_arraySubclass = [].__proto__? <ide> <ide> // Until ECMAScript supports array subclassing, prototype injecti...
4
Text
Text
add v3.1.0-beta.3 to changelog
25c2ec05bb9364ad2a489864d4ac80015feb2630
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.1.0-beta.3 (February 26, 2018) <add>- [#16271](https://github.com/emberjs/ember.js/pull/16271) [BUGFIX] Fix ChainNode unchaining <add>- [#16274](https://github.com/emberjs/ember.js/pull/16274) [BUGFIX] Ensure accessing a "proxy" itself does not error. <...
1
Mixed
Javascript
support hover animation duration during updates
009ae4dec6db9d8b94a77cad3dffbf907e720ad4
<ide><path>docs/developers/api.md <ide> This must be called before the canvas is reused for a new chart. <ide> myLineChart.destroy(); <ide> ``` <ide> <del>## .update(duration, lazy) <add>## .update(config) <ide> <ide> Triggers an update of the chart. This can be safely called after updating the data object. This will...
4
Javascript
Javascript
refine flow types
ffefb4e77f39c38a6fabb8677a585b2aa3991cd3
<ide><path>packages/react-dom/src/client/ReactDOMHostConfig.js <ide> * @flow <ide> */ <ide> <del>import type {DOMTopLevelEventType} from 'legacy-events/TopLevelEventTypes'; <ide> import type {RootType} from './ReactDOMRoot'; <ide> <ide> import { <ide> export function registerEvent( <ide> // Add the event listener...
5
Ruby
Ruby
move code away from cmd/
9bdd6619e23f498320c3d3a6be8bd8d095a6d521
<ide><path>Library/Homebrew/cleanup.rb <add>require "bottles" <add>require "formula" <add>require "thread" <add> <add>module Homebrew <add> module Cleanup <add> @@disk_cleanup_size = 0 <add> <add> def self.cleanup <add> cleanup_cellar <add> cleanup_cache <add> cleanup_logs <add> unless ARGV.d...
7
Go
Go
get events until a time in the past
55053d3537100eaeaad9c83b43e31f22d14fde7b
<ide><path>api/server/router/system/backend.go <ide> package system <ide> <ide> import ( <add> "time" <add> <ide> "github.com/docker/engine-api/types" <ide> "github.com/docker/engine-api/types/events" <ide> "github.com/docker/engine-api/types/filters" <ide> import ( <ide> type Backend interface { <ide> SystemInfo(...
12
Javascript
Javascript
add example for $cancelupdate
faec99794dfdda542a010040f686d868615c39af
<ide><path>src/ng/directive/input.js <ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ <ide> * <ide> * If you have an input that uses `ng-model-options` to set up debounced events or events such <ide> * as blur you can have a situation where there is a period when the value...
1
Python
Python
fix stray '.' in import statement
4394515cd5632a7f110993ff75033d407d10861d
<ide><path>doc/cdoc/numpyfilter.py <ide> if sys.version_info[0] >= 3: <ide> import pickle <ide> else: <del> import cPickle as pickle. <add> import cPickle as pickle <ide> <ide> CACHE_FILE = 'build/rst-cache.pck' <ide> <ide> def filter_comment(text): <ide> if text.startswith('UFUNC_API'): <ide> t...
1
Text
Text
add solution for accessibility challenge
30fd0aa78e59701a1f9575c5312e173c67b4af54
<ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/avoid-colorblindness-issues-by-carefully-choosing-colors-that-convey-information.english.md <ide> tests: <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><head> <add> <st...
1
Javascript
Javascript
make http and http2 co-exist
2ed23314c35649f15d905cb1fca75d0b9d8b0d01
<ide><path>lib/http.js <ide> OutgoingMessage.prototype._storeHeader = function(firstLine, headers) { <ide> } <ide> <ide> // keep-alive logic <del> if (sentConnectionHeader === false) { <add> if (sentConnectionHeader == false) { <ide> if (this.shouldKeepAlive && <del> (sentContentLengthHeader || this.u...
4
Text
Text
keep other translations table
fde255c6d4dfb750be1eeca6d499cd35f1c9149d
<ide><path>docs/spanish/how-to-work-on-coding-challenges.md <add><table> <add> <tr> <add> <td> Read these guidelines in </td> <add> <td><a href="/CONTRIBUTING.md"> English </a></td> <add> <td><a href="/docs/chinese/CONTRIBUTING.md"> 中文 </a></td> <add> <td><a href="/docs/russian/CONTRIBUTI...
1
Javascript
Javascript
add relative path to accommodate limit
0101a8f1a6eb363e1ae5ac7aca19223e37025f78
<ide><path>test/parallel/test-net-connect-options-fd.js <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide> const net = require('net'); <add>const path = require('path'); <ide> const Pipe = process.binding('pipe_wrap').Pipe; <ide> <ide> if (common.isWindows) { <ide> const forAllCli...
1
Javascript
Javascript
fix code style in the shader
ab7458e32694ee1c3f7695559db0781d87bd36ec
<ide><path>src/renderers/shaders/ShaderChunk/normalmap_pars_fragment.glsl.js <ide> export default /* glsl */` <ide> vec3 T = q1perp * st0.x + q0perp * st1.x; <ide> vec3 B = q1perp * st0.y + q0perp * st1.y; <ide> <del> float det = max( dot(T,T), dot(B,B) ); <del> float scale = (det == 0.0) ? 0.0 : faceDirection *...
1
Go
Go
remount everything as private in new mntns
b511d1f0cabd32ca30c87fa1bbc7ecac283dab39
<ide><path>pkg/chrootarchive/chroot_linux.go <ide> func chroot(path string) (err error) { <ide> return fmt.Errorf("Error creating mount namespace before pivot: %v", err) <ide> } <ide> <del> if err := mount.MakeRPrivate(path); err != nil { <add> // make everything in new ns private <add> if err := mount.MakeRPrivate...
1
Go
Go
use 0755 instead of 0700
1c509f4350d943c6aa8b9bff8dcbed28ee803735
<ide><path>image.go <ide> func StoreImage(img *Image, layerData Archive, root string, store bool) error { <ide> } <ide> // Store the layer <ide> layer := layerPath(root) <del> if err := os.MkdirAll(layer, 0700); err != nil { <add> if err := os.MkdirAll(layer, 0755); err != nil { <ide> return err <ide> } <ide>
1
Ruby
Ruby
fix the underscore inflector optimization
dd5b00cd6c074944d53281cc1e111ce1ff57e1c3
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> def underscore(camel_cased_word) <ide> return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word) <ide> word = camel_cased_word.to_s.gsub("::", "/") <ide> word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_' }#...
2
Javascript
Javascript
submit directive for use with forms
04a4d8b061d98f46dc97fb550d388d248845b369
<ide><path>src/directives.js <ide> angularDirective("ng:click", function(expression, element){ <ide> }; <ide> }); <ide> <add> <add>/** <add> * Enables binding angular expressions to onsubmit events. <add> * <add> * Additionally it prevents the default action (which for form means sending the request to the <add> * s...
2
Python
Python
test nan_to_num with integer list input
71dea15af12ca296cb0f360f09bbedd7c5edfd15
<ide><path>numpy/lib/tests/test_type_check.py <ide> def test_generic(self): <ide> def test_integer(self): <ide> vals = nan_to_num(1) <ide> assert_all(vals == 1) <add> vals = nan_to_num([1]) <add> assert_array_equal(vals, np.array([1], np.int)) <ide> <ide> def test_complex_good(sel...
1
PHP
PHP
listener feedback
191a8499eb9c7226e4564633143a82bdfd9510bd
<ide><path>src/Illuminate/Foundation/Console/ListenerMakeCommand.php <ide> class ListenerMakeCommand extends GeneratorCommand <ide> */ <ide> protected $type = 'Listener'; <ide> <add> /** <add> * Execute the console command. <add> * <add> * @return void <add> */ <add> public function fire...
1
Javascript
Javascript
fix an unmatched link
bfba95ce46fd3e1605c5ee4ade1f1b1ca351cb4b
<ide><path>src/ngResource/resource.js <ide> function shallowClearAndCopy(src, dst) { <ide> * @requires $http <ide> * @requires ng.$log <ide> * @requires $q <del> * @requires $timeout <add> * @requires ng.$timeout <ide> * <ide> * @description <ide> * A factory which creates a resource object that lets you interact...
1
Ruby
Ruby
treat outdated brews as installed
75a7c33e6aac30db7827ef3f1076b282057fff5b
<ide><path>Library/Homebrew/cmd/options.rb <ide> require 'formula' <add>require 'cmd/outdated' <ide> <ide> def ff <ide> if ARGV.include? "--all" <ide> Formula.all <ide> elsif ARGV.include? "--installed" <del> Formula.all.reject{ |f| not f.installed? } <add> # outdated brews count as installed <add> ou...
1
Python
Python
add exhaustive test for fpes in casts
54d6ac5bf42d671ce7aa79e13dbdda1b9b2175a8
<ide><path>numpy/core/tests/test_casting_floatingpoint_errors.py <add>import pytest <add>from pytest import param <add> <add>import numpy as np <add> <add> <add>def values_and_dtypes(): <add> """ <add> Generate value+dtype pairs that generate floating point errors during <add> casts. The invalid casts to inte...
1
Javascript
Javascript
add missing file
418811360c170b974902a22ecf73f06307db42d1
<ide><path>src/core/transition-filter.js <add>d3_transitionPrototype.filter = function(filter) { <add> return d3_transition(d3_selectionFilterSubgroups.call(this, filter), <add> d3_transitionId || ++d3_transitionNextId, Date.now()); <add>};
1
Text
Text
update python versions [ci skip]
383e2e1f128950b18435e75428777eb5c76902d9
<ide><path>website/docs/usage/index.md <ide> menu: <ide> - ['Changelog', 'changelog'] <ide> --- <ide> <del>spaCy is compatible with **64-bit CPython 2.6+/3.3+** and runs on <add>spaCy is compatible with **64-bit CPython 2.7+/3.4+** and runs on <ide> **Unix/Linux**, **macOS/OS X** and **Windows**. The latest spaCy re...
1
Javascript
Javascript
replace ngerror with minerr
003861d2fdb37b83e1d0939d49b70fbc67766997
<ide><path>angularFiles.js <ide> angularFiles = { <ide> 'angularSrc': [ <add> 'src/minErr.js', <ide> 'src/Angular.js', <ide> 'src/loader.js', <ide> 'src/AngularPublic.js', <ide> 'src/jqLite.js', <ide> 'src/apis.js', <del> 'src/ngError.js', <ide> <ide> 'src/auto/injector.js', <ide> <ide...
35
Text
Text
fix internal link in collaborator-guide.md
8dbdca8ed3f56c458436229bc0e441457860d319
<ide><path>doc/contributing/collaborator-guide.md <ide> * [Unintended breaking changes](#unintended-breaking-changes) <ide> * [Reverting commits](#reverting-commits) <ide> * [Introducing new modules](#introducing-new-modules) <del> * [Additions to Node-API](#additions-to-n-api) <add> * [Additions to Node-...
1
Ruby
Ruby
use explicit deprecator in wrappers tests
4fdcd3100eb6f24895c04ab40692a3f9d605b703
<ide><path>activesupport/test/deprecation/method_wrappers_test.rb <ide> def new_protected_method; "abc" end <ide> def new_private_method; "abc" end <ide> alias_method :old_private_method, :new_private_method <ide> end <add> <add> @deprecator = ActiveSupport::Deprecation.new <ide> end <ide> <id...
2
PHP
PHP
apply fixes from styleci
4e84bdcdffcdb05f5b008456a8c77d5d64233c60
<ide><path>src/Illuminate/Auth/MustVerifyEmail.php <ide> public function hasVerifiedEmail() <ide> public function markEmailAsVerified() <ide> { <ide> return $this->forceFill([ <del> 'email_verified_at' => $this->freshTimestamp() <add> 'email_verified_at' => $this->freshTimestamp(),...
1
Javascript
Javascript
add scrolltop/left tests and fix for ie
cafd392af0a2736a33cf1528198c66a233285b3d
<ide><path>src/offset.js <del>if ( "getBoundingClientRect" in document.documentElement ) { <add>if ( "getBoundingClientRect" in document.documentElement ) <ide> jQuery.fn.offset = function() { <ide> var elem = this[0]; <del> if ( !elem || !elem.ownerDocument ) { return null; } <del> if ( elem === elem.ownerDocumen...
2
Java
Java
remove subscribe(map<string, object>)
f8bacd49420b0a5ed3a246b4a36ee3b643478823
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> import rx.util.OnErrorNotImplementedException; <ide> import rx.util.Range; <ide> import rx.util.Timestamped; <add>import rx.util.functions.Action; <ide> import rx.util.functions.Action0; <ide> import rx.util.functions.Action1; <ide> import rx.util.functions....
1
Text
Text
fix typos and clarify statement
ca7742f6982974277d7b371bad29d8b440fb4845
<ide><path>guide/english/d3/index.md <ide> title: D3 <ide> <ide> ## Why D3.js? <ide> <del>*D3** does not introduce a new visual representation. Unlike **Processing**, **Raphaël**, or **Protovis**, *D3's* vocabulary of graphical marks comes directly from web standards: HTML, SVG, and CSS - https://d3js.org/ <add>For t...
1
Ruby
Ruby
accept a pathname in application#config_for
fc635b565393bd6b70be4af524934b3ea359e83c
<ide><path>railties/lib/rails/application.rb <ide> def message_verifier(verifier_name) <ide> # config.middleware.use ExceptionNotifier, config_for(:exception_notification) <ide> # end <ide> def config_for(name, env: Rails.env) <del> yaml = Pathname.new("#{paths["config"].existent.first}/#{nam...
2
Text
Text
add v3.4.0-beta.3 to changelog
d593d86db88c595f3864ee08ad36578ddfe318f1
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.4.0-beta.3 (August 21, 2018) <add> <add>- [#16870](https://github.com/emberjs/ember.js/pull/16870) [BUGFIX] Enable @ember/object#get to be called with an empty string <add>- [#16603](https://github.com/emberjs/ember.js/pull/16603) [BUGFIX] Support mouse...
1
Javascript
Javascript
remove execute challenge epic
8d2c350b3ff030c9c9d4326d1fc3606df12098c7
<ide><path>client/src/templates/Challenges/redux/execute-challenge-epic.js <del>import { Subject, merge, of, from } from 'rxjs'; <del> <del>import { <del> debounceTime, <del> switchMap, <del> map, <del> filter, <del> pluck, <del> concat, <del> tap, <del> catchError, <del> ignoreElements, <del> startWith, <del...
2
Ruby
Ruby
handle update/delete with offset in arel
6d40d2d3d1f3766551e74607a718a5ec97963bbf
<ide><path>activerecord/lib/active_record/relation.rb <ide> def update_all(updates) <ide> stmt.set Arel.sql(klass.sanitize_sql_for_assignment(updates, table.name)) <ide> end <ide> <del> if has_join_values? || offset_value <add> if has_join_values? <ide> @klass.connection.join_to_update(...
6
Javascript
Javascript
compute node position relative to parent
603d86ac1a135bb73a07bd74a0cedfd5942a32be
<ide><path>d3.js <del>(function(){d3 = {version: "1.14.0"}; // semver <add>(function(){d3 = {version: "1.14.1"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide><path>d3.layout.js <ide> d3.layout.force = function() { <ide> <ide> function dragmove() { <ide> if (!d3...
6
PHP
PHP
each for validation of arrays
66cf7f89405e583efab34ffeb3e07e5095c8e579
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function sometimes($attribute, $rules, $callback) <ide> } <ide> } <ide> <add> /** <add> * Define a set of rules that apply to each element in an array attribute. <add> * <add> * @param string $attribute <add> * @param string|array $rules <add> ...
2
Ruby
Ruby
extract latest_version string to a constant
f03a400e28f82813e65b02948a61c8b6f74a1d77
<ide><path>Library/Homebrew/formula.rb <ide> def test(&block) <ide> def livecheck(&block) <ide> return @livecheck unless block <ide> <add> include Homebrew::Livecheck::Constants <ide> @livecheckable = true <ide> @livecheck.instance_eval(&block) <ide> end <ide><path>Library/Homebrew/livec...
4
Javascript
Javascript
use strict comparisons for fd
06134e3598c1b3ae89d4be84466d532c249f5d9d
<ide><path>lib/net.js <ide> function Socket(options) { <ide> throw errnoException(err, 'open'); <ide> <ide> this[async_id_symbol] = this._handle.getAsyncId(); <del> // options.fd can be string (since it is user-defined), <del> // so changing this to === would be semver-major <del> // See: https://gi...
1
PHP
PHP
fix return value
4d1288aed662005cd1444ade9bee0d8695a7a176
<ide><path>src/TestSuite/Stub/ConsoleOutput.php <ide> class ConsoleOutput extends ConsoleOutputBase <ide> * <ide> * @param string|array $message A string or an array of strings to output <ide> * @param int $newlines Number of newlines to append <del> * @return true <add> * @return false <ide> ...
1
Javascript
Javascript
set version in source for releases
0f5f0c981aeedf56fa5b395029cc06b40c3ac2f1
<ide><path>build/release.js <add>var fs = require( "fs" ); <ide> <ide> module.exports = function( Release ) { <ide> <ide> module.exports = function( Release ) { <ide> "dist/jquery.min.map", <ide> "dist/jquery.slim.js", <ide> "dist/jquery.slim.min.js", <del> "dist/jquery.slim.min.map" <add> "dist/jquery.s...
2
Mixed
Ruby
handle paths with trailing slashes in rails test
326d5027147c087c6f22a075c021ead3d496995e
<ide><path>railties/CHANGELOG.md <add>* Allow relative paths with trailing slashes to be passed to `rails test`. <add> <add> *Eugene Kenny* <add> <ide> * Add `rack-mini-profiler` gem to the default `Gemfile`. <ide> <ide> `rack-mini-profiler` displays performance information such as SQL time and flame graphs...
3
Javascript
Javascript
remove cruft from scrollview
2d43663ac8d1f3cd18e7244629b71881ce353a45
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ScrollView = React.createClass({ <ide> }, <ide> <ide> getScrollableNode: function(): any { <del> // console.log('getScrollableNode: ', {ref: this._scrollViewRef, node: ReactNative.findNodeHandle(this._scrollViewRef)}); <ide> return ReactNa...
1
Java
Java
add script after setting scripts in rsrcdbpopultr
b4995f7e4f707da33434ecdafa6889a252ef7930
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java <ide> public void addScripts(Resource... scripts) { <ide> */ <ide> public void setScripts(Resource... scripts) { <ide> assertContentsOfScriptArray(scripts); <del> this.scripts = Arrays.asList(scripts); <ad...
2
Python
Python
simplify helper (see ) [ci skip]
dd153b2b335143dfa4ee3618d8c736bbffecd7f6
<ide><path>examples/information_extraction/entity_relations.py <ide> def main(model="en_core_web_sm"): <ide> print("{:<10}\t{}\t{}".format(r1.text, r2.ent_type_, r2.text)) <ide> <ide> <del>def filter_spans(spans, prefer_longest=True): <add>def filter_spans(spans): <ide> # Filter a sequence of spans so...
1
Java
Java
adapt tests changed in 5.1.x to master
ff6ccd0d0433ff5f192d74590a63e3b8929220b5
<ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/HttpHeadResponseDecoratorTests.java <ide> <ide> import io.netty.buffer.PooledByteBufAllocator; <ide> import org.junit.After; <del>import org.junit.Test; <add>import org.junit.jupiter.api.Test; <ide> import reactor.core.publisher.Flux; <ide> ...
3
Text
Text
incorporate latest round of feedback
08fab27db52aa375df85a23e89799600f785b9d4
<ide><path>guides/source/active_storage_overview.md <ide> per-environment basis. To use the disk service from the previous example in the <ide> development environment, you would add the following to <ide> config/environments/development.rb: <ide> <del>In your application's configuration, specify the service to use li...
1
Javascript
Javascript
use const in bannerplugin
8a95bcc2f45c2bfa26ae06e5fbf7a81f6dd37e69
<ide><path>lib/BannerPlugin.js <ide> class BannerPlugin { <ide> } <ide> <ide> apply(compiler) { <del> let options = this.options; <del> let banner = this.banner; <add> const options = this.options; <add> const banner = this.banner; <ide> <ide> compiler.plugin("compilation", (compilation) => { <ide> compila...
1
Javascript
Javascript
await ctx.renderpage() in examples for typescript
fcc4d8cd50eb2170fda9fbac6f9853799ceb9959
<ide><path>examples/with-cxs/pages/_document.js <ide> import cxs from 'cxs/lite' <ide> <ide> export default class MyDocument extends Document { <ide> static async getInitialProps({ renderPage }) { <del> const page = renderPage() <add> const page = await renderPage() <ide> const style = cxs.getCss() <ide> ...
6
Ruby
Ruby
remove unused `joinkeys`
d55120e4290820a862463dcd6b92cdfeb4b75a48
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def class_name <ide> @class_name ||= -(options[:class_name]&.to_s || derive_class_name) <ide> end <ide> <del> JoinKeys = Struct.new(:key, :foreign_key) # :nodoc: <del> <ide> # Returns a list of scopes that should be applied for this...
1
PHP
PHP
rename $inner to $innerengine
5d1d7260daab110705d533a4b06adbb47fdafbd3
<ide><path>src/Cache/SimpleCacheEngine.php <ide> class SimpleCacheEngine implements CacheInterface <ide> * <ide> * @param \Cake\Cache\CacheEngine <ide> */ <del> protected $inner; <add> protected $innerEngine; <ide> <ide> /** <ide> * Constructor <ide> * <del> * @param \Cake\Cache\...
1
Python
Python
fix bug in regression test for
4c297e11801dd9a27a35179b8ae2058a6d1c948e
<ide><path>numpy/core/tests/test_regression.py <ide> def test_misaligned_dot_product_objects(self): <ide> <ide> def test_byteswap_complex_scalar(self): <ide> """Ticket #1259""" <del> x = np.array([-1j], '<c8') <del> y = x[0].byteswap() <del> assert_equal(x, np.fromstring(y.tostring(), ...
1
Python
Python
add mape objective
47fd945cf1bf9435ae2009df3338723b438a49b0
<ide><path>keras/objectives.py <ide> def mean_squared_error(y_true, y_pred): <ide> def mean_absolute_error(y_true, y_pred): <ide> return T.abs_(y_pred - y_true).mean(axis=-1) <ide> <add>def mean_absolute_percentage_error(y_true, y_pred): <add> return T.abs_((y_true - y_pred) / y_true).mean() * 100 <add> <ide> d...
1
PHP
PHP
fix coding style errors
83d11002154fbb3296aa1bd7de7492db0336331d
<ide><path>lib/Cake/Database/Schema/BaseSchema.php <ide> protected function _convertOnClause($clause) { <ide> return Table::ACTION_SET_NULL; <ide> } <ide> <del> <ide> /** <ide> * Generate the SQL to drop a table. <ide> * <ide><path>lib/Cake/Database/Schema/PostgresSchema.php <ide> protected function _keySql($pref...
2
Python
Python
set default backend to tf
82318263a1e270ff5412609964bfa31a886558e9
<ide><path>keras/backend/__init__.py <ide> if not os.path.exists(_keras_dir): <ide> os.makedirs(_keras_dir) <ide> <del>_BACKEND = 'theano' <add>_BACKEND = 'tensorflow' <ide> _config_path = os.path.expanduser(os.path.join(_keras_dir, 'keras.json')) <ide> if os.path.exists(_config_path): <ide> _config = json.loa...
8
Go
Go
use tabwriter to display usage in mflag
77098d5b5bf8840a1179380b34aedb26139b9d65
<ide><path>pkg/mflag/example/example.go <ide> package main <ide> <ide> import ( <ide> "fmt" <add> <ide> flag "github.com/dotcloud/docker/pkg/mflag" <ide> ) <ide> <ide> func init() { <ide> flag.IntVar(&i, []string{"-integer", "-number"}, -1, "a simple integer") <ide> flag.StringVar(&str, []string{"s", "#hidden", "...
2
Javascript
Javascript
fix inspect to not trigger dynamic properties
6c68a9679b7589590440eb3b80315d0f5c25945c
<ide><path>lib/sys.js <ide> var formatter = function(value, indent, parents) { <ide> }); <ide> } else { <ide> return formatObject(value, indent, parents, '{}', function(x, f) { <del> return f(x) + ': ' + f(value[x]); <add> var child; <add> if (value.__lookupGetter__(x)) ...
2
Javascript
Javascript
allow custom separator
13f31602f396bc269076ab4d389cfd8ca94b20ba
<ide><path>src/directive/input.js <ide> var requiredDirective = [function() { <ide> * Text input that converts between comma-seperated string into an array of strings. <ide> * <ide> * @element input <add> * @param {string=} ng-list optional delimiter that should be used to split the value. If <add> * specified in ...
2
Python
Python
remove unused check
d03f4fb6afb477c0661458b4f808258381b0acbc
<ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py <ide> def _predict_rpn_proposals(self, rpn_box_predictor_features): <ide> """ <ide> num_anchors_per_location = ( <ide> self._first_stage_anchor_generator.num_anchors_per_location()) <del> # if len(num_anchors_per_locatio...
1
Ruby
Ruby
exclude the cache from `brew list --unbrewed`
ff5f3f6b6da9874b79e0f6405778de91839128d0
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list <ide> def list_unbrewed <ide> dirs = HOMEBREW_PREFIX.children.select{ |pn| pn.directory? }.map{ |pn| pn.basename.to_s } <ide> dirs -= %w[Library Cellar .git] <add> <add> # Exclude the cache, if it has been located under the prefix <add> cache_folder...
1
Java
Java
fix minor javadoc mistakes
e54ea2d4906b9bcf1c4932d0f5695e5bb62d1595
<ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java <ide> public static Flowable<Long> timer(long delay, @NonNull TimeUnit unit, @NonNull <ide> <ide> /** <ide> * Create a {@code Flowable} by wrapping a {@link Publisher} <em>which has to be implemented according <del> * to the <em>Reactive Str...
2
Javascript
Javascript
remove noinline directives from new commit phase
1b96ee444e544cc4797bbbd8dee249ff02d62279
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js <ide> function safelyCallComponentWillUnmount(current, instance) { <ide> } <ide> } <ide> <del>/** @noinline */ <ide> function safelyDetachRef(current: Fiber) { <ide> const ref = current.ref; <ide> if (ref !== null) { <ide> export function safel...
1
Javascript
Javascript
update api docs for arraycontroller and arrayproxy
f44c29a8f62eb548a3ae402f5efbf2310c469d3a
<ide><path>packages/ember-runtime/lib/controllers/array_controller.js <ide> require('ember-runtime/system/array_proxy'); <ide> /** <ide> @class <ide> <del> Ember.ArrayController provides a way for you to publish an array of objects for <del> Ember.CollectionView or other controllers to work with. To work with an ...
2
Text
Text
add guidance on testing new errors
9ab63d61f8f8d65b0e0643c83dd7936c4cf0a309
<ide><path>doc/guides/using-internal-errors.md <ide> for the error code should be added to the `doc/api/errors.md` file. This will <ide> give users a place to go to easily look up the meaning of individual error <ide> codes. <ide> <add>## Testing new errors <add> <add>When adding a new error, corresponding test(s) for...
1
Ruby
Ruby
push key_generator into serializedcookiejars
72889a6be4ec4afd68d3e4c3ae972099e080478a
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def signed_or_encrypted <ide> def upgrade_legacy_signed_cookies? <ide> request.secret_token.present? && request.secret_key_base.present? <ide> end <del> <del> def key_generator <del> request.key_generator <del> en...
1
Javascript
Javascript
add strict equalities in src/display/api.js
a4b06d7a0297525519e116741930d061be28d63a
<ide><path>src/display/api.js <ide> var PDFPageProxy = (function PDFPageProxyClosure() { <ide> // this call to render. <ide> this.pendingDestroy = false; <ide> <del> var renderingIntent = ('intent' in params ? <del> (params.intent == 'print' ? 'print' : 'display') : 'display'); <add> var r...
1
Ruby
Ruby
remove dead code
7a2622bcbd1937dd2862d27fa18258198de7a153
<ide><path>actionview/lib/action_view/template.rb <ide> def #{method_name}(local_assigns, output_buffer) <ide> raise WrongEncodingError.new(@source, Encoding.default_internal) <ide> end <ide> <del> begin <del> mod.module_eval(source, identifier, 0) <del> ObjectSpace.define_fi...
1
Javascript
Javascript
use correct case for javascript
6bf978404e0348ba05b1ab98307ca8c8cb9574d2
<ide><path>src/core/xfa/som.js <ide> function parseExpression(expr, dotDotAllowed, noExpr = true) { <ide> return null; <ide> } <ide> // TODO: <del> // Javascript expression: should be a boolean operation with a path <add> // JavaScript expression: should be a boolean operation wi...
2