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
Go
Go
remove dead code
927d13bc3c2030bb0e0429dbc500f13d72e7ccf6
<ide><path>daemon/daemon_unix.go <ide> import ( <ide> "github.com/docker/libnetwork/options" <ide> ) <ide> <del>const runDir = "/var/run/docker" <del>const defaultVolumesPathName = "volumes" <del> <ide> func (daemon *Daemon) Changes(container *Container) ([]archive.Change, error) { <ide> initID := fmt.Sprintf("%s-in...
8
Python
Python
enable deprecation warnings
97efffad9a9858c0d966723d543e1186629631d4
<ide><path>tests/flask_tests.py <ide> def has_encoding(name): <ide> def catch_warnings(): <ide> """Catch warnings in a with block in a list""" <ide> import warnings <add> <add> # make sure deprecation warnings are active in tests <add> warnings.simplefilter('default', category=DeprecationWarning) <add> <i...
1
Ruby
Ruby
add `--bottle` option for json bottle info
d60f549a483a1a0d1f7061f8b8f1a68fc39ad8c4
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info_args <ide> description: "Print a JSON representation. Currently the default value for <version> is `v1` for "\ <ide> "<formula>. For <formula> and <cask> use `v2`. See the docs for examples of using the "\ <ide> ...
3
Python
Python
update layer utils
b666ef18a126c847eb6d25da08434c92cf988b7b
<ide><path>keras/utils/layer_utils.py <ide> from __future__ import print_function <ide> <ide> from .conv_utils import convert_kernel <del>from ..models import Model, Sequential <ide> from .. import backend as K <ide> import numpy as np <ide> <ide> def print_summary(model, line_length=None, positions=None): <ide> ...
1
Ruby
Ruby
correct bad jquery syntax
7cf2912f062f5836d8fa772325411ab1e04715f2
<ide><path>actionpack/lib/action_view/helpers/form_helper.rb <ide> def label(object_name, method, content_or_options = nil, options = nil, &block) <ide> # text_field(:post, :title, class: "create_input") <ide> # # => <input type="text" id="post_title" name="post[title]" value="#{@post.title}" class="cre...
1
Python
Python
remove .data comparisons in tests. fix whitespace
1845fe92109f611d441765d39fb0ac05fa5948b2
<ide><path>numpy/ma/tests/test_core.py <ide> def test_copy(self): <ide> x = masked_array([1,2,3], mask=[0,1,0]) <ide> # Copy is False by default <ide> y = masked_array(x) <del># assert_equal(id(y._data), id(x._data)) <del># assert_equal(id(y._mask), id(x._mask)) <ide> asser...
2
PHP
PHP
keep the transliterator identifier getter/setter
847d5bbc3aaad2c2321bc8ececa1a65c937aa65c
<ide><path>src/Utility/Text.php <ide> class Text <ide> { <ide> <ide> /** <del> * Default transliterator id string. <add> * Default transliterator. <ide> * <del> * @deprecated 3.7.0 Use $_defaultTransliterator instead. <del> * @var string $_defaultTransliteratorId Transliterator identifier stri...
2
Text
Text
add tutorial 7 to homepage [ci skip]
7c171dfd83c47e276628d3fc060a7589f96d3d71
<ide><path>docs/index.md <ide> The tutorial will walk you through the building blocks that make up REST framewo <ide> * [4 - Authentication & permissions][tut-4] <ide> * [5 - Relationships & hyperlinked APIs][tut-5] <ide> * [6 - Viewsets & routers][tut-6] <add>* [7 - Schemas & client libraries][tut-7] <ide> <ide> Ther...
1
Ruby
Ruby
extract some boilerplate into an each_tap method
b0cd6b03765b46c648f55c709a637c308c6942d6
<ide><path>Library/Homebrew/cmd/tap.rb <ide> module Homebrew extend self <ide> <ide> def tap <ide> if ARGV.empty? <del> tapd = HOMEBREW_LIBRARY/"Taps" <del> tapd.children.each do |user| <del> next unless user.directory? <del> user.children.each do |repo| <del> puts "#{user.basena...
2
Ruby
Ruby
honor the order in the new finder
9dd8d3d3e4dc1b91cf8489ea9f3fee9bb0c27c65
<ide><path>activerecord/lib/active_record/associations/has_many_association.rb <ide> def find(*args) <ide> end <ide> else <ide> options[:conditions] = @finder_sql + (options[:conditions] ? " AND #{options[:conditions]}" : "") <add> options[:order] = options[:order] ? "#{options[:ord...
1
Mixed
Ruby
remove rackdelegation module
d47438745e34d75e03347b54b604b71b7a92c3ac
<ide><path>actionpack/lib/action_controller.rb <ide> module ActionController <ide> autoload :Instrumentation <ide> autoload :MimeResponds <ide> autoload :ParamsWrapper <del> autoload :RackDelegation <ide> autoload :Redirecting <ide> autoload :Renderers <ide> autoload :Rendering <ide><path>act...
14
Text
Text
change 1.10.14 to 1.10.15 in readme.md
d54655686da157c7c661d8e7b964dce93f52e97b
<ide><path>README.md <ide> Airflow is not a streaming solution, but it is often used to process real-time d <ide> <ide> Apache Airflow is tested with: <ide> <del>| | Master version (dev) | Stable version (2.0.1) | Previous version (1.10.14) | <add>| | Master version (dev) | Stabl...
1
Javascript
Javascript
fix geometry.mergemesh determine mesh bug
e0f84b07ac779bfb70227270532306d4296e9625
<ide><path>src/core/Geometry.js <ide> Object.assign( Geometry.prototype, EventDispatcher.prototype, { <ide> <ide> mergeMesh: function ( mesh ) { <ide> <del> if ( ( mesh && mesh.isMesh ) === false ) { <add> if ( !mesh || !mesh.isMesh ) { <ide> <ide> console.error( 'THREE.Geometry.mergeMesh(): mesh not an instan...
1
Python
Python
fix coding style
7140eede200e06d9f55e0a788d16a7fbea11686b
<ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor_tf2_test.py <ide> def _build_conv_hyperparams(self): <ide> text_format.Merge(conv_hyperparams_text_proto, conv_hyperparams) <ide> return hyperparams_builder.KerasLayerHyperparams(conv_hyperparams) <ide> <del> def _bu...
1
Python
Python
change error message when plugin init failed
5a12dffb58edb74748b02f6b2cc06e49d28e54ad
<ide><path>glances/stats.py <ide> def _load_plugin(self, plugin_script, args=None, config=None): <ide> except Exception as e: <ide> # If a plugin can not be log, display a critical message <ide> # on the console but do not crash <del> logger.critical("Error while initializing ...
1
Text
Text
update readme and build instructions
9fe507d675ac80decbe714c4fc62ce7d2380ba2f
<ide><path>README.md <del># Atom — Futuristic Text Editing <add># Atom — The hackable, ~~collaborative~~ editor of tomorrow! <ide> <del>![atom](https://s3.amazonaws.com/speakeasy/apps/icons/27/medium/7db16e44-ba57-11e2-8c6f-981faf658e00.png) <add>![Atom](https://www.atom.io/assets/logo-e793a022e41eff6879fd6205bc06ef92...
2
PHP
PHP
remove dead code
de2be59dce0e8ff935dd51bc45cb829e85ad4328
<ide><path>src/View/Helper/SessionHelper.php <ide> namespace Cake\View\Helper; <ide> <ide> use Cake\View\Helper; <del>use Cake\View\StringTemplateTrait; <ide> use Cake\View\View; <ide> <ide> /** <ide> class SessionHelper extends Helper <ide> { <ide> <del> use StringTemplateTrait; <del> <del> /** <del> * De...
1
Java
Java
create handler lazily in devserverhelper
8b487d4d5a3e12484c648ecc7d695b5b6a3f11d2
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java <ide> import android.content.Context; <ide> import android.os.AsyncTask; <ide> import android.os.Handler; <add>import android.os.Looper; <ide> import android.widget.Toast; <ide> import com.facebook.common.logging.FLog; <ide> import...
1
PHP
PHP
add complex optgroup type
8e71c0ad9b4e8a6e3aa9c2dc4fc31e82f5512308
<ide><path>Cake/View/Input/SelectBox.php <ide> public function __construct($templates) { <ide> * empty option. <ide> * - `escape` - Set to false to disable HTML escaping. <ide> * <add> * ### Options format <add> * <add> * The options option can take a variety of data format depending on <add> * the complexity of H...
2
Ruby
Ruby
add assert_not_match compat
1d003e5d8a292443d4489acd2ec80e1f4d2b3476
<ide><path>Library/Homebrew/formula_assertions.rb <ide> def assertions <ide> assert_not_includes: :refute_includes, <ide> assert_not_instance_of: :refute_instance_of, <ide> assert_not_kind_of: :refute_kind_of, <add> assert_not_match: :refute_match, <ide> assert_no_match: ...
1
PHP
PHP
fix shell help for incorrect user input
57e4751a826b14345b16d802fdb0b60bef61f1b1
<ide><path>lib/Cake/Console/Shell.php <ide> public function in($prompt, $options = null, $default = null) { <ide> if (!$this->interactive) { <ide> return $default; <ide> } <del> $in = $this->_getInput($prompt, $options, $default); <add> $original_options = $options; <add> $in = $this->_getInput($prompt, $orig...
1
PHP
PHP
expose the cookiecollection in a response
666c31222eedae4ae04ff75af85744464c7f677b
<ide><path>src/Http/Client/Response.php <ide> public function getCookies() <ide> return $this->_getCookies(); <ide> } <ide> <add> /** <add> * Get the cookie collection from this response. <add> * <add> * This method exposes the response's CookieCollection <add> * instance allowing you to...
2
Javascript
Javascript
filter experimental warnings
8fc0d28e3de603bf4f5dcf4059f584aed886f194
<ide><path>test/helpers/captureStdio.js <ide> module.exports = (stdio, tty) => { <ide> <ide> toString: () => { <ide> return stripAnsi(logs.join("")).replace( <del> /\([^)]+\) (\[[^\]]+\]\s*)?DeprecationWarning.+(\n\(Use .node.+\))?(\n(\s|BREAKING CHANGE).*)*(\n\s+at .*)*\n?/g, <add> /\([^)]+\) (\[[^\]]+\]\s...
1
Ruby
Ruby
fix style error
f4501787635a8732909ee811b1b850d52802e928
<ide><path>Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb <ide> def report_failures <ide> odie "audit failed for #{Formatter.pluralize(num_failed, "cask")}: " \ <ide> "#{failed_casks.join(" ")}" <ide> end <del> <ide> end <ide> end <ide> end
1
Javascript
Javascript
clean the errors that flow v0.10.0 finds
70c9f5140d6e82f58e26b9e529de49c2cd5a0e2b
<ide><path>Examples/UIExplorer/ActivityIndicatorIOSExample.js <ide> var ToggleAnimatingActivityIndicator = React.createClass({ <ide> } <ide> }); <ide> <add>exports.displayName = (undefined: ?string); <ide> exports.framework = 'React'; <ide> exports.title = '<ActivityIndicatorIOS>'; <ide> exports.description = 'Anima...
3
Javascript
Javascript
fix setsid in tty.open
391f0879815fe0395484587dca485e15e75684b2
<ide><path>lib/tty_posix.js <ide> exports.open = function(path, args) { <ide> child = spawn(path, args, { <ide> env: env, <ide> customFds: [masterFD, masterFD, masterFD], <del> setuid: true <add> setsid: true <ide> }); <ide> <ide> return [stream, child];
1
Python
Python
add created_at attribute to kubernetespod
ed1924633323281f582b62df7296a2ad0c2d3c05
<ide><path>libcloud/container/drivers/kubernetes.py <ide> from libcloud.compute.base import NodeImage <ide> from libcloud.compute.base import NodeLocation <ide> <del>__all__ = [ <del> 'KubernetesContainerDriver' <del>] <add>__all__ = ["KubernetesContainerDriver"] <ide> <ide> <ide> ROOT_URL = "/api/" <ide> <ide> ...
1
Python
Python
ensure correct weight tie-ing
b4e2dd8d9e3222b55706ac14459d0d24ed430f5f
<ide><path>keras/layers/core.py <ide> def _get_hidden(self, train): <ide> return self.encoders[-1].get_output(train) <ide> <ide> def _tranpose_weights(self, src, dest): <del> if len(dest.shape) > 1: <add> if len(dest.shape) > 1 and len(src.shape) > 1: <ide> dest = src.T <ide> <id...
1
Mixed
Ruby
change behaviour with empty array in where clause
16f6f2592e4e6c22f06d75eb8a6ec0cb68c9404b
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Change behaviour with empty array in where clause, <add> the SQL generated when when were passed an empty array was insecure in some cases <add> <add> Roberto Miranda <add> <ide> * Raise ArgumentError instead of generate ...
6
Go
Go
remove the last references to overlayfs
2352f00e4ff2cd102a4d591d67aba8e1c7eaa7b6
<ide><path>daemon/daemon_overlay.go <add>// +build !exclude_graphdriver_overlay <add> <add>package daemon <add> <add>import ( <add> _ "github.com/docker/docker/daemon/graphdriver/overlay" <add>) <ide><path>daemon/daemon_overlayfs.go <del>// +build !exclude_graphdriver_overlayfs <del> <del>package daemon <del> <del>impo...
6
PHP
PHP
update doc block
e1e764ee8800203720ff6a5c6601cc821e3073a8
<ide><path>src/Illuminate/Http/RedirectResponse.php <ide> public function exceptInput() <ide> * Flash a container of errors to the session. <ide> * <ide> * @param \Illuminate\Support\Contracts\MessageProviderInterface|array $provider <add> * @param string $key <ide> * @return \Illuminate\Http\RedirectRespo...
1
Javascript
Javascript
fix couple of small issues
1228981e4f62d9a9d3f8cf3b90ef9138ebba7983
<ide><path>rollup.config.js <ide> <ide> const babel = require('rollup-plugin-babel'); <ide> const cleanup = require('rollup-plugin-cleanup'); <del>const polyfill = require('rollup-plugin-polyfill') <add>const polyfill = require('rollup-plugin-polyfill'); <ide> const json = require('@rollup/plugin-json'); <ide> const r...
3
Text
Text
add documentation on tooltip xalign and yalign
55dd426a412c89cc0457a3ec925cb2df11ccfa28
<ide><path>docs/configuration/tooltip.md <ide> Namespace: `options.plugins.tooltip`, the global options for the chart tooltips <ide> | `backgroundColor` | [`Color`](../general/colors.md) | `'rgba(0, 0, 0, 0.8)'` | Background color of the tooltip. <ide> | `titleColor` | [`Color`](../general/colors.md) | `'#fff'` | Color...
1
Text
Text
use code markup/markdown in headers
b407503b177ca8849c63b2cfe00ff11515bdabff
<ide><path>doc/api/fs.md <ide> synchronous use libuv's threadpool, which can have surprising and negative <ide> performance implications for some applications. See the <ide> [`UV_THREADPOOL_SIZE`][] documentation for more information. <ide> <del>## Class fs.Dir <add>## Class `fs.Dir` <ide> <!-- YAML <ide> added: v12.1...
1
Javascript
Javascript
remove redundant rule overrides
3c16a90fcad985b5229300eab25e3f0f4fecb314
<ide><path>.eslintrc.js <ide> module.exports = { <ide> rules: { <ide> 'ember-internal/require-yuidoc-access': 'error', <ide> 'ember-internal/no-const-outside-module-scope': 'error', <del> <del> 'no-unused-vars': 'error', <del> 'no-throw-literal': 'error', <del> 'comma-dangle':...
1
PHP
PHP
remove social interfaces
ebcdae3af3afb5d39e9fe57764a97da275e8cda6
<ide><path>src/Illuminate/Contracts/Auth/Social/Factory.php <del><?php namespace Illuminate\Contracts\Auth\Social; <del> <del>interface Factory { <del> <del> /** <del> * Get an OAuth provider implementation. <del> * <del> * @param string $driver <del> * @return \Illuminate\Contracts\Auth\Social\Provider <del> */...
3
Go
Go
fix error paring null json - issue7941
a7cd25b8b69fe23c6458f5242dcd9f9039c99f48
<ide><path>engine/env.go <ide> func (env *Env) Decode(src io.Reader) error { <ide> } <ide> <ide> func (env *Env) SetAuto(k string, v interface{}) { <add> // Issue 7941 - if the value in the incoming JSON is null then treat it <add> // as if they never specified the property at all. <add> if v == nil { <add> return <a...
2
Python
Python
create directory if it doesn't exist
32404e613c85151d059e596fd5457bafcf67fdc2
<ide><path>spacy/lookups.py <ide> def to_disk(self, path, **kwargs): <ide> """ <ide> if len(self._tables): <ide> path = ensure_path(path) <add> if not path.exists(): <add> path.mkdir() <ide> filepath = path / "lookups.bin" <ide> with filepath...
1
PHP
PHP
remove redundant check from bootstrap/autoload.php
1078776e953d35bd67af0971fe78efa037d8fb83
<ide><path>bootstrap/autoload.php <ide> */ <ide> <ide> require __DIR__.'/../vendor/autoload.php'; <del> <del>/* <del>|-------------------------------------------------------------------------- <del>| Include The Compiled Class File <del>|-------------------------------------------------------------------------- <del>|...
1
Python
Python
update textcat exampe
79a94bc166bfdd73a11b4e10a4717df22d171025
<ide><path>examples/training/train_textcat.py <add>'''Train a multi-label convolutional neural network text classifier, <add>using the spacy.pipeline.TextCategorizer component. The model is then added <add>to spacy.pipeline, and predictions are available at `doc.cats`. <add>''' <ide> from __future__ import unicode_lite...
1
PHP
PHP
use local var
900ca7f60f7711e7fc5e45406bbf3f3183e1f2f8
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function renderAs(Controller $controller, $type, array $options = []) <ide> if ($viewClass) { <ide> $controller->viewClass = $viewClass; <ide> } else { <add> $view = $controller->getView(); <add> <ide> ...
1
Javascript
Javascript
update ordinal format in korean locale
fc8c6248cc7306039a468627ed55298a600ae907
<ide><path>locale/ko.js <ide> var ko = moment.defineLocale('ko', { <ide> y : '일 년', <ide> yy : '%d년' <ide> }, <del> dayOfMonthOrdinalParse : /\d{1,2}일/, <del> ordinal : '%d일', <add> dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/, <add> ordinal : function (number, period) { <add> switch...
1
Python
Python
add test file for compute driver outscale sdk
d3810a433069fb6302cda944e1715a8623688cd6
<ide><path>libcloud/test/test_outscale_sdk.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under t...
1
Text
Text
fix typo in shard pattern
d3496d5392d744b4909813f9a86f4d73eafba928
<ide><path>inception/README.md <ide> look like: <ide> ``` <ide> <ide> When the script finishes you will find 2 shards for the training and validation <del>files in the `DATA_DIR`. The files will match the patterns `train-????-of-00001` <del>and `validation-?????-of-00001`, respectively. <add>files in the `DATA_DIR`. T...
1
Javascript
Javascript
fix example that navigates away from the page
7c7477ce4561c8664a2270c19fd85b7bf9b04f29
<ide><path>src/ng/directive/booleanAttrs.js <ide> expect(element(by.id('link-6')).getAttribute('href')).toMatch(/\/6$/); <ide> <ide> element(by.id('link-6')).click(); <del> expect(browser.getCurrentUrl()).toMatch(/\/6$/); <add> <add> // At this point, we navigate away from an Angu...
1
Mixed
Javascript
add maxtotalsockets to agent class
7a5d3a2fc1915166b1da2c161f020358a8c36bfd
<ide><path>doc/api/http.md <ide> added: v0.3.6 <ide> By default set to `Infinity`. Determines how many concurrent sockets the agent <ide> can have open per origin. Origin is the returned value of [`agent.getName()`][]. <ide> <add>### `agent.maxTotalSockets` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* {n...
3
Python
Python
add test for qr on empty array
eab959b407e39ef7b35b1f0a90609e462d8527e7
<ide><path>numpy/linalg/tests/test_linalg.py <ide> def test_matrix_rank(): <ide> # works on scalar <ide> yield assert_equal, matrix_rank(1), 1 <ide> <add>@raises(linalg.LinAlgError) <add>def test_qr_empty(): <add> a = np.zeros((0,2)) <add> linalg.qr(a) <add> <ide> <ide> if __name__ == "__main__": <ide> ...
1
Ruby
Ruby
add expat.framework check to doctor
9ede899d5d71a1e415f9e6c17632812593875065
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_other_vars <ide> end <ide> end <ide> <add>def check_for_other_frameworks <add> # Other frameworks that are known to cause problems when present <add> if File.exist? "/Library/Frameworks/expat.framework" <add> puts <<-EOS.undent <add> /Library/Fr...
1
Java
Java
fix streams to stream in test
70b8848492429399b76b7bb1f7ace64ac35c1d54
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/method/annotation/RequestMappingIntegrationTests.java <ide> import reactor.io.buffer.Buffer; <ide> import reactor.rx.Promise; <ide> import reactor.rx.Stream; <del>import reactor.rx.Streams; <ide> import rx.Observable; <ide> import rx.Single; ...
1
Javascript
Javascript
replace magic number 1 with element_node
d400d6d5ef056622ed4de4da00f97bde144c6f55
<ide><path>packages/react-dom/src/client/ReactDOM.js <ide> const ReactDOM: Object = { <ide> <ide> // Check if the container itself is a React root node. <ide> const isContainerReactRoot = <del> container.nodeType === 1 && <add> container.nodeType === ELEMENT_NODE && <ide> is...
4
Text
Text
fix typo on code comment for pages docs
e72d8996b2055604a53c5799d8145e8fb598aa6e
<ide><path>docs/basic-features/pages.md <ide> Data is always up-to-date but it comes at the cost of a slightly higher [Time to <ide> // Next.js will execute `getInitialProps` <ide> // It will wait for the result of `getInitialProps` <ide> // When the results comes back Next.js will render the page. <del>// Next.js wil ...
1
Ruby
Ruby
remove unnecessary official command tapping
a1b0ef1300ff8ac07ef904479b0321a2a5fc0368
<ide><path>Library/Homebrew/cmd/tests.rb <ide> <ide> module Homebrew <ide> def tests <del> ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" <del> <del> if ARGV.include? "--official-cmd-taps" <del> ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] = "1" <del> OFFICIAL_CMD_TAPS.each do |tap, _| <del> tap = Tap....
3
PHP
PHP
add default to array_pull to match array_get
7e5514db12e390bc8acf12f8ddee9da8f480c931
<ide><path>src/Illuminate/Support/helpers.php <ide> function array_pluck($array, $value, $key = null) <ide> * <ide> * @param array $array <ide> * @param string $key <add> * @param mixed $default <ide> * @return mixed <ide> */ <del> function array_pull(&$array, $key) <add> function array_pull(&$array,...
1
Javascript
Javascript
fix code comment
c19dcf8009961977c7c6d0305b84542e9ae65393
<ide><path>packages/ember-metal/lib/accessors.js <ide> Ember.setPath = Ember.deprecateFunc('setPath is deprecated since set now support <ide> @method trySet <ide> @for Ember <ide> @param {Object} obj The object to modify. <del> @param {String} keyName The property key to set <add> @param {String} path The prope...
9
Ruby
Ruby
convert `add_references` to use kwargs
68a6c8ecc41ca2e4bee7c7218e8a4be81bbf7e25
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def index_name_exists?(table_name, index_name, default) <ide> # <ide> # add_reference(:products, :supplier, polymorphic: true, index: true) <ide> # <del> def add_reference(table_name, ref_name, opt...
1
Python
Python
return none for data path if it doesn't exist
d9a77ddf1422e3e58ca18a95cc9e4a1c8a85e789
<ide><path>spacy/util.py <ide> def get_lang_class(name): <ide> <ide> <ide> def get_data_path(): <del> return _data_path <add> return _data_path if _data_path.exists() else None <ide> <ide> <ide> def set_data_path(path): <ide> def or_(val1, val2): <ide> <ide> def match_best_version(target_name, target_version...
1
Java
Java
convert spel plus operands using reg'd converters
7cdfaf3e0d9e1add3a326db7527a37905edd5e6e
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/OpPlus.java <ide> /* <del> * Copyright 2002-2009 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you m...
2
Ruby
Ruby
convert tab test to spec
e03caebaedf579d5330c5c908b2d3ffa927ea5c3
<ide><path>Library/Homebrew/test/tab_spec.rb <add>require "tab" <add>require "formula" <add> <add>RSpec::Matchers.alias_matcher :have_option_with, :be_with <add> <add>describe Tab do <add> matcher :be_poured_from_bottle do <add> match do |actual| <add> actual.poured_from_bottle == true <add> end <add> end ...
2
Ruby
Ruby
add env.o0 to stdenv
0b793e321ee3b2984185f93178103b38db21369e
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> def O1 <ide> remove_from_cflags(/-O./) <ide> append_to_cflags '-O1' <ide> end <add> def O0 <add> remove_from_cflags(/-O./) <add> append_to_cflags '-O0' <add> end <ide> <ide> def gcc_4_0_1 <ide> # we don't use locate because gcc 4.0 has not bee...
1
Javascript
Javascript
handle optional chained methods as dependency
eb58c3909aa19fb6ffbed27b9c9dba4aada3cb8e
<ide><path>packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js <ide> const tests = { <ide> }, <ide> ], <ide> }, <add> { <add> code: normalizeIndent` <add> function MyComponent(props) { <add> useEffect(() => {}, [props?.attribute.method()]); <add> ...
2
Text
Text
improve description on volume removal
00f2fd1dd5dee53919cda7ed9f5c70ba8558edb5
<ide><path>docs/sources/userguide/dockervolumes.md <ide> persistent or shared data: <ide> - Data volumes can be shared and reused between containers <ide> - Changes to a data volume are made directly <ide> - Changes to a data volume will not be included when you update an image <del>- Volumes persist until no container...
1
Ruby
Ruby
fix superenv env[] hack
061f8cb35f8ac155e16943951ae39aa75cbd24d2
<ide><path>Library/Homebrew/superenv.rb <ide> def [] key <ide> if has_key? key <ide> fetch(key) <ide> elsif %w{CPPFLAGS CFLAGS LDFLAGS}.include? key <del> class << (a = "") <del> attr_accessor :key <del> def + value <del> ENV[key] = value <del> ...
1
Javascript
Javascript
fix controller usage in {{action}} and sendaction
8732970e6bee9deea2fb17e68f658c1bb5387efd
<ide><path>packages/ember-routing-htmlbars/lib/keywords/action.js <ide> export default { <ide> target = read(hash.target); <ide> } <ide> } else { <del> target = get(env.view, 'controller') || read(scope.self); <add> target = read(scope.locals.controller) || read(scope.self); <ide> } <ide...
3
Javascript
Javascript
add shouldverifypeer param to securepairs
855210ce0b949aa5e8b810d57ab1700b39837f3f
<ide><path>lib/securepair.js <ide> var SecureStream = null; <ide> * Provides a pair of streams to do encrypted communication. <ide> */ <ide> <del>function SecurePair(credentials, isServer) { <add>function SecurePair(credentials, isServer, shouldVerifyPeer) { <ide> if (!(this instanceof SecurePair)) { <del> retu...
1
Mixed
Ruby
fix backtracecleaner#noise for multiple silencers
a3678e45ecf8e17527722889d5347325083ad560
<ide><path>activesupport/CHANGELOG.md <add>* Fix return value from `BacktraceCleaner#noise` when the cleaner is configured <add> with multiple silencers. <add> <add> Fixes #11030 <add> <add> *Mark J. Titorenko* <add> <ide> * `HashWithIndifferentAccess#select` now returns a `HashWithIndifferentAccess` <ide>...
3
Ruby
Ruby
introduce predicate {does_not_}matches_regexp
d2e6be1677b124b3eef5b3ebe0fd4a0d31d8a2bf
<ide><path>lib/arel/predications.rb <ide> def matches other, escape = nil, case_sensitive = false <ide> Nodes::Matches.new self, quoted_node(other), escape, case_sensitive <ide> end <ide> <add> def matches_regexp other, case_sensitive = true <add> Nodes::Regexp.new self, quoted_node(other), case_sens...
2
Javascript
Javascript
add comments to empty catch statements
78a2cd862426fbc137f9286b7bcedf415f960ef0
<ide><path>lib/events.js <ide> function enhanceStackTrace(err, own) { <ide> const { name } = this.constructor; <ide> if (name !== 'EventEmitter') <ide> ctorInfo = ` on ${name} instance`; <del> } catch {} <add> } catch { <add> // Continue regardless of error. <add> } <ide> const sep = `\nEmitted 'e...
14
Ruby
Ruby
remove unused parameter
70312d224a812c4e4b25fdb172284a82bedd0a64
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb <ide> def reset! <ide> # By default, a single session is automatically created for you, but you <ide> # can use this method to open multiple sessions that ought to be tested <ide> # simultaneously. <del> def open_session(app = nil) ...
1
Javascript
Javascript
add documentation for navigationstateutils
3a8c302ae815be0a9b1a6d14860ff8186d43fc07
<ide><path>Libraries/NavigationExperimental/NavigationStateUtils.js <ide> const invariant = require('fbjs/lib/invariant'); <ide> <ide> import type { <ide> NavigationRoute, <del> NavigationState, <add> NavigationState <ide> } from 'NavigationTypeDefinition'; <ide> <ide> /** <ide> * Utilities to perform atomic ope...
1
Go
Go
fix the daemon panic on consul server restart
4df4ba70caf2de3b68158d9e6cb9a6f4ea203e0f
<ide><path>libnetwork/datastore/datastore.go <ide> func (ds *datastore) Watch(kvObject KVObject, stopCh <-chan struct{}) (<-chan KV <ide> close(sCh) <ide> return <ide> case kvPair := <-kvpCh: <add> // If the backend KV store gets reset libkv's go routine <add> // for the watch can exit resulting in a n...
1
Javascript
Javascript
add tests for view cleanup/destruction
9228bb85f7c2237b4699f1c9e810426d29ea5188
<ide><path>packages/ember-glimmer/lib/syntax/curly-component.js <ide> class CurlyComponentManager { <ide> <ide> aliasIdToElementId(args, props); <ide> <add> props.parentView = parentView; <ide> props.renderer = parentView.renderer; <ide> props[HAS_BLOCK] = hasBlock; <ide> <ide><path>packages/ember-gli...
4
PHP
PHP
add a clear of the tableregistry to teardown
61d5902d77afbd6491eced73840a4f09cef9d2dc
<ide><path>src/TestSuite/TestCase.php <ide> public function tearDown() <ide> Configure::clear(); <ide> Configure::write($this->_configure); <ide> } <add> TableRegistry::clear(); <ide> } <ide> <ide> /**
1
Go
Go
fix .ensure-emptyfs on non-x86_64 architectures
1f59bc8c03df18686b93a0cd619cf2c55cbcf421
<ide><path>distribution/pull_v2.go <ide> func (p *v2Puller) pullManifestList(ctx context.Context, ref reference.Named, mf <ide> // TODO(aaronl): The manifest list spec supports optional <ide> // "features" and "variant" fields. These are not yet used. <ide> // Once they are, their values should be interpreted her...
4
Javascript
Javascript
remove unnecessary comparison;
4b7c562bbaf5a6d10ed9b970a13c1c5f9daefa59
<ide><path>src/renderers/dom/shared/CSSPropertyOperations.js <ide> var CSSPropertyOperations = { <ide> } <ide> if (isCustomProperty) { <ide> style.setProperty(styleName, styleValue); <del> } else if (styleValue) { <del> style[styleName] = styleValue; <ide> } else { <del> sty...
1
Javascript
Javascript
add "code" property to event object
899c56f6ada26821e8af12d9f35fa039100e838e
<ide><path>src/event.js <ide> jQuery.each( { <ide> shiftKey: true, <ide> view: true, <ide> "char": true, <add> code: true, <ide> charCode: true, <ide> key: true, <ide> keyCode: true,
1
Text
Text
add a link to hot reloading with time travel talk
7f0eb594a43966e7e054dc3941f171613f493b82
<ide><path>README.md <ide> Atomic Flux with hot reloading. <ide> <ide> - [Why another Flux framework?](#why-another-flux-framework) <ide> - [Philosophy & Design Goals](#philosophy--design-goals) <add>- [The Talk](#the-talk) <ide> - [Demo](#demo) <ide> - [Examples](#examples) <ide> - [Simple Examples](#simple-examp...
1
Python
Python
set version to 2.2.0.dev0
08e8267a595aea045a2c8bd0eaa9ab16ffb03e12
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy" <del>__version__ = "2.1.8" <add>__version__ = "2.2.0.dev0" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI" <ide> __email__ =...
1
Text
Text
add comments to markdown templates
dc27efccdd4424c4af15b0d4338c3428bd77bb10
<ide><path>.github/issue_template.md <ide> ### Steps to reproduce <del> <del>(Guidelines for creating a bug report are [available <del>here](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#creating-a-bug-report)) <add><!-- (Guidelines for creating a bug report are [available <add>here](http://edgeg...
2
PHP
PHP
remove unnecessary in foreach
e5255cd7b57c5e5d3fb04d5512bcc9ce2c4401cf
<ide><path>src/Illuminate/Support/Collection.php <ide> public function every($step, $offset = 0) <ide> <ide> $position = 0; <ide> <del> foreach ($this->items as $key => $item) { <add> foreach ($this->items as $item) { <ide> if ($position % $step === $offset) { <ide> $...
1
Mixed
Go
add isolation to info
c4e169727474f24cb0eddea15b94aaa2bfbb3281
<ide><path>api/types/types.go <ide> type Info struct { <ide> // running when the daemon is shutdown or upon daemon start if <ide> // running containers are detected <ide> LiveRestoreEnabled bool <add> Isolation container.Isolation <ide> } <ide> <ide> // PluginsInfo is a temp struct holding Plugins name <id...
8
Javascript
Javascript
add crypto check to test-tls-wrap-econnreset
7bdb5ca6207dbfc2ef9b253dd68588c3cf8b1cff
<ide><path>test/parallel/test-tls-wrap-econnreset-localaddress.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <add>if (!common.hasCrypto) { <add> common.skip('missing crypto'); <add> return; <add>} <ide> const assert = require('assert'); <ide> const net = require('net'); <ide> const tls = re...
4
Java
Java
remove unused imports
73604160a227166ba0d107438c6a321c5ecfc718
<ide><path>src/main/java/io/reactivex/rxjava3/core/Completable.java <ide> import org.reactivestreams.*; <ide> <ide> import io.reactivex.rxjava3.annotations.*; <del>import io.reactivex.rxjava3.core.Observable; <ide> import io.reactivex.rxjava3.disposables.Disposable; <ide> import io.reactivex.rxjava3.exceptions.*; <ide...
2
Javascript
Javascript
add missing methods on texteditorelement
b54dbb58abcb41ec11c00c3fae2bc1db9db646fa
<ide><path>src/text-editor-element.js <ide> class TextEditorElement extends HTMLElement { <ide> getBaseCharacterWidth () { <ide> return this.getComponent().getBaseCharacterWidth() <ide> } <add> <ide> getMaxScrollTop () { <ide> return this.getComponent().getMaxScrollTop() <ide> } <ide> <add> getScrollH...
1
Ruby
Ruby
allow configuration of actionmailer queue name
f5a131aaeaf0533e5f81461c2ad63474a865c19c
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer <ide> # <ide> # * <tt>deliveries</tt> - Keeps an array of all the emails sent out through the Action Mailer with <ide> # <tt>delivery_method :test</tt>. Most useful for unit and functional testing. <add> # <add> # * <tt>deliver_later_...
5
Python
Python
clarify documentation for json parsing
daf85d3725516a17e474b143d6d67b95140db285
<ide><path>flask/wrappers.py <ide> def blueprint(self): <ide> <ide> @property <ide> def json(self): <del> """If the mimetype is :mimetype:`application/json` this will contain the <add> """If self.is_json would return true, this will contain the <ide> parsed JSON data. Otherwise this will...
1
Javascript
Javascript
remove vulgar language
069dd10ca2258a27f3cba2db688ce4b97b624241
<ide><path>test/parallel/test-zerolengthbufferbug.js <ide> const http = require('http'); <ide> <ide> const server = http.createServer((req, res) => { <ide> const buffer = Buffer.alloc(0); <del> // FIXME: WTF gjslint want this? <ide> res.writeHead(200, { 'Content-Type': 'text/html', <ide> 'C...
1
Text
Text
update faqs on contributing guide
6103991d8b41fc735c79b7b2ceb89e2352e038f1
<ide><path>CONTRIBUTING.md <ide> Essentially, we expect basic familiarity with some of the aforementioned technol <ide> <ide> ## Frequently Asked Questions <ide> <del>**How can I report a bug that is not on board?** <add>### How can I report a bug that is not on board? <ide> <ide> If you think you've found a bug, fi...
1
Text
Text
improve grammar for 1st paragraph
5dcea016a6e18a31148ab32351a1caf7f8331c20
<ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/decrement-a-number-with-javascript.spanish.md <ide> localeTitle: Disminuir un número con JavaScript <ide> --- <ide> <ide> ## Description <del><section id="description"> Puede <dfn>disminuir</dfn> o disminuir fácilmen...
1
Go
Go
add logdone logs where it's missing
3c984a6d1578947c5adfe13993cb28d88a674bbf
<ide><path>integration-cli/docker_cli_commit_test.go <ide> func TestCommitTTY(t *testing.T) { <ide> if _, err := runCommand(cmd); err != nil { <ide> t.Fatal(err) <ide> } <add> <add> logDone("commit - commit tty") <ide> } <ide> <ide> func TestCommitWithHostBindMount(t *testing.T) { <ide><path>integration-cli/docker...
5
Python
Python
remove debug message
aa17412856a67803664224bc52a8f1d8a2356e2c
<ide><path>glances/plugins/glances_processlist.py <ide> def msg_curse(self, args=None, max_width=None): <ide> self.__msg_curse_header(ret, process_sort_key, args) <ide> <ide> # Process list <del> logger.info(self.max_values) <del> logger.info([(i['cpu_percent'], i['name']) for i in self.s...
1
Python
Python
raise e983 early on in docbin init
a361df00cd65dd829a07d1256476dfd9639be4a9
<ide><path>spacy/errors.py <ide> class Errors: <ide> "{nO} - cannot add any more labels.") <ide> E923 = ("It looks like there is no proper sample data to initialize the " <ide> "Model of component '{name}'. To check your input data paths and " <del> "annotation, run: python -m spa...
2
Javascript
Javascript
reuse name variable in share scope
4ed2ecfcfffc1402c60e0156b6252f2b5a9b7f2f
<ide><path>lib/container/ContainerEntryModule.js <ide> class ContainerEntryModule extends Module { <ide> ])};`, <ide> `var init = ${runtimeTemplate.basicFunction("shareScope, initScope", [ <ide> `if (!${RuntimeGlobals.shareScopeMap}) return;`, <del> `var oldScope = ${RuntimeGlobals.shareScopeMap}[${JSON.st...
1
Python
Python
save the wav2vec2 processor before training starts
653076ca307520ee85fd5f5de6918019f8521bb5
<ide><path>examples/research_projects/wav2vec2/run_common_voice.py <ide> def compute_metrics(pred): <ide> checkpoint = model_args.model_name_or_path <ide> else: <ide> checkpoint = None <del> train_result = trainer.train(resume_from_checkpoint=checkpoint) <del> trainer.save_...
1
Javascript
Javascript
add flow to syntheticevent
87b3e2d257e49b6d2c8e662830fc8f3c7d62f85f
<ide><path>packages/react-dom/src/events/DOMPluginEventSystem.js <ide> import { <ide> SHOULD_NOT_PROCESS_POLYFILL_EVENT_PLUGINS, <ide> } from './EventSystemFlags'; <ide> import type {AnyNativeEvent} from './PluginModuleType'; <del>import type {ReactSyntheticEvent} from './ReactSyntheticEventType'; <add>import type { ...
4
Javascript
Javascript
fix error handling in packager
95972cfd08dd95e1df13c8a15aba8b5655b83a8e
<ide><path>local-cli/server/server.js <ide> function _server(argv, config, resolve, reject) { <ide> } <ide> console.log('\nSee', chalk.underline('http://facebook.github.io/react-native/docs/troubleshooting.html')); <ide> console.log('for common problems and solutions.'); <del> reject(); <add> process....
1
Text
Text
use canary for all example downloads
24c1ac6ca94c9e81bcd6c19d832e9df1a5235b8e
<ide><path>examples/active-class-name/README.md <ide> create-next-app --example active-class-name active-class-name-app <ide> Download the example [or clone the repo](https://github.com/zeit/next.js): <ide> <ide> ```bash <del>curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-maste...
100
Javascript
Javascript
fix two memory leaks
9830cb935e28d7cf338652252449894d89a41bad
<ide><path>test/driver.js <ide> function load() { <ide> } <ide> <ide> function cleanup() { <del> var styleSheet = document.styleSheets[0]; <del> if (styleSheet) { <del> while (styleSheet.cssRules.length > 0) <del> styleSheet.deleteRule(0); <add> // Clear out all the stylesheets since a new one is created fo...
1
Python
Python
remove a print message when using global pooling
929669bd1bfa682678393949d1765e3314eb2c49
<ide><path>keras/layers/pooling.py <ide> def __init__(self, dim_ordering='default', **kwargs): <ide> super(_GlobalPooling2D, self).__init__(**kwargs) <ide> if dim_ordering == 'default': <ide> dim_ordering = K.image_dim_ordering() <del> print(dim_ordering) <ide> self.dim_orderi...
1
Javascript
Javascript
add test case for entry and container in one entry
2da5345dd0e03601b5f0879a5728260bdda43faa
<ide><path>test/ConfigTestCases.test.js <ide> describe("ConfigTestCases", () => { <ide> } <ide> }; <ide> <add> const requireCache = Object.create(null); <ide> function _require(currentDirectory, options, module) { <ide> if (Array.isArray(module) || /^\.\.?\//.test(module))...
4
Javascript
Javascript
remove unused variable
5bc779240ba4bd05589d5359111a231cebbccbe6
<ide><path>test/sequential/test-timers-block-eventloop.js <ide> const t3 = <ide> setTimeout(common.mustNotCall('eventloop blocked!'), platformTimeout(200)); <ide> <ide> setTimeout(function() { <del> fs.stat('/dev/nonexistent', (err, stats) => { <add> fs.stat('/dev/nonexistent', () => { <ide> clearInterval(t1);...
1