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
Text
Text
stop support building addons with vs 2013
2062a69879986985ff272e20aac8314515444bf2
<ide><path>BUILDING.md <ide> Depending on host platform, the selection of toolchains may vary. <ide> <ide> #### Windows <ide> <del>* Building Node: Visual Studio 2015 or Visual C++ Build Tools 2015 or newer <del>* Building native add-ons: Visual Studio 2013 or Visual C++ Build Tools 2015 <del> or newer <add>* Visual...
1
Python
Python
add divmod support to ndarrayoperatorsmixin
d51b538ba80d36841cc57911d77ea61cd1d3fb25
<ide><path>numpy/lib/mixins.py <ide> class NDArrayOperatorsMixin(object): <ide> implement. <ide> <ide> This class does not yet implement the special operators corresponding <del> to ``divmod`` or ``matmul`` (``@``), because these operation do not yet <del> have corresponding NumPy ufuncs. <add> to ``m...
2
PHP
PHP
fix docblock param
0ab5a6250fc627e8a619772dba0b2372f18283bd
<ide><path>src/Collection/CollectionTrait.php <ide> trait CollectionTrait <ide> * Allows classes which use this trait to determine their own <ide> * type of returned collection interface <ide> * <del> * @param mixed ...$args <add> * @param mixed $args,.. Constructor arguments. <ide> * @retur...
1
Javascript
Javascript
improve error handling in route generation script
1b5b5d9c5b365af1c8ff3b2be8b08ee2e0dd06b3
<ide><path>Libraries/JavaScriptAppEngine/Initialization/SourceMapsUtils.js <ide> var SourceMapsUtils = { <ide> return Promise.reject(new Error('RCTNetworking module is not available')); <ide> } <ide> <del> return RCTSourceCode.getScriptText() <add> const scriptText = RCTSourceCode.getScriptText(); <add...
1
PHP
PHP
simplify global scopes
59ed03c2c1ecb50cf1c6a10c4506d06535ebe3a4
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> class Builder <ide> 'exists', 'count', 'min', 'max', 'avg', 'sum', <ide> ]; <ide> <add> /** <add> * Applied global scopes. <add> * <add> * @var array <add> */ <add> protected $scopes = []; <add> <ide> /** <ide> * C...
7
Python
Python
remove obsolete conversion to set
7ec2e1bac72afcdc68cf8256879afbc4cb14a907
<ide><path>tools/refguide_check.py <ide> def check_items(all_dict, names, deprecated, others, module_name, dots=True): <ide> output += "Objects in refguide: %i\n\n" % num_ref <ide> <ide> only_all, only_ref, missing = compare(all_dict, others, names, module_name) <del> dep_in_ref = set(only_ref).intersection...
1
Ruby
Ruby
delegate everything to the generator
0904e8256864239f673bf91fce1cfffb9345ee61
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def initialize(generator) <ide> @options = generator.options <ide> end <ide> <del> private <del> %w(template copy_file directory empty_directory inside <del> empty_directory_with_gitkeep create_file chmod shebang).eac...
1
Text
Text
change submit button value from submit to send
ed86dfec10c26eaab621f711c41c5953fddcecca
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6145f685797bd30df9784e8c.md <ide> You should give the submit a `type` of `submit`. <ide> assert.exists(document.querySelector('button[type="submit"]') || document.querySelector('form > input[type="submit"]')); <i...
28
PHP
PHP
use getremembertokenname() in usertrait
8fb5c0a01f757ec3345c1e570ffafc8b04fd3e98
<ide><path>src/Illuminate/Auth/UserTrait.php <ide> public function getAuthPassword() <ide> */ <ide> public function getRememberToken() <ide> { <del> return $this->remember_token; <add> return $this->{$this->getRememberTokenName()}; <ide> } <ide> <ide> /** <ide> public function getRememberToken() <ide> */ <id...
1
Ruby
Ruby
add homebrew-x11 to default taps
d57fe3ededa2d438bc9134b17f4bd082fde53610
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> %w{Homebrew binary}, <ide> %w{Homebrew python}, <ide> %w{Homebrew php}, <add> %w{Homebrew x11}, <ide> %w{Caskroom cask}, <ide> ] <ide>
1
Javascript
Javascript
use url query param on search page
84c46750e8a06d942f65579ec07d37975ba1392e
<ide><path>client/src/components/layouts/Default.js <ide> class DefaultLayout extends Component { <ide> isSignedIn, <ide> landingPage, <ide> navigationMenu, <del> pathname, <ide> removeFlashMessage, <ide> showFooter = true <ide> } = this.props; <ide> class DefaultLayout extends Co...
4
Python
Python
allow model conversion in the pipeline allocator
1ca52567a4059e7ee1707de6a855bb5e7fb3fac3
<ide><path>transformers/pipelines.py <ide> def pipeline(task: str, model, config: Optional[PretrainedConfig] = None, tokeni <ide> targeted_task = SUPPORTED_TASKS[task] <ide> task, allocator = targeted_task['impl'], targeted_task['tf'] if is_tf_available() else targeted_task['pt'] <ide> <del> model = allocat...
1
Ruby
Ruby
remove redundant code
5cc789930f323d2c1a5aa3506d64ab50123f862c
<ide><path>actionpack/test/controller/render_test.rb <ide> def test_last_modified_works_with_less_than_too <ide> class EtagRenderTest < ActionController::TestCase <ide> tests TestControllerWithExtraEtags <ide> <del> def setup <del> super <del> end <del> <ide> def test_multiple_etags <ide> @request.if_none...
1
Python
Python
add --abort-on-timeout option to test.py
3b488eccc14dc966949b103b1469221eed40719e
<ide><path>tools/test.py <ide> def HasFailed(self): <ide> return execution_failed <ide> <ide> <del>def KillProcessWithID(pid): <add>def KillProcessWithID(pid, signal_to_send=signal.SIGTERM): <ide> if utils.IsWindows(): <ide> os.popen('taskkill /T /F /PID %d' % pid) <ide> else: <del> os.kill(pid, sign...
1
Javascript
Javascript
fix broken stringifyprimitive
c9aec2b7167a08dc88141fbe3be1c498f8c5b061
<ide><path>lib/querystring.js <ide> QueryString.escape = function(str) { <ide> }; <ide> <ide> var stringifyPrimitive = function(v) { <del> if (typeof v === 'string' || (typeof v === 'number' && isFinite(v))) <add> if (typeof v === 'string') <ide> return v; <add> if (typeof v === 'number' && isFinite(v)) <add> ...
1
Go
Go
make term function consistent with each other
672d3a6c6cd0494a0b8eaa13674c3cb87cba029c
<ide><path>commands.go <ide> func (cli *DockerCli) CmdLogin(args ...string) error { <ide> return readStringOnRawTerminal(stdin, stdout, false) <ide> } <ide> <del> oldState, err := term.SetRawTerminal() <add> oldState, err := term.SetRawTerminal(os.Stdin.Fd()) <ide> if err != nil { <ide> return err <ide> } <del>...
2
Javascript
Javascript
add triagemustache as a known helper
df91fd23b505b2eda250e0d91697aef31c8faaa4
<ide><path>packages/ember-handlebars/lib/ext.js <ide> Ember.Handlebars.precompile = function(string) { <ide> unbound: true, <ide> bindAttr: true, <ide> template: true, <del> view: true <add> view: true, <add> _triageMustache: true <ide> }, <ide> data: true, <ide> stringParam...
1
Javascript
Javascript
pass context to the constructor
9abd1133c94288c09512f7cf0b8a0b8136df6da7
<ide><path>src/classic/class/ReactClass.js <ide> var ReactClass = { <ide> * @public <ide> */ <ide> createClass: function(spec) { <del> var Constructor = function(props) { <add> var Constructor = function(props, context) { <ide> // This constructor is overridden by mocks. The argument is used <ide> ...
5
Javascript
Javascript
remove debugger, test focus, and lint fixes
45ab5488ae6be7659a905481efec8a716bb8736c
<ide><path>spec/tree-sitter-language-mode-spec.js <ide> describe('TreeSitterLanguageMode', () => { <ide> }) <ide> <ide> describe('.getSyntaxNodeAtPosition(position, where?)', () => { <del> fit('returns the range of the smallest matching node at position', async () => { <add> it('returns the range of the smal...
3
Text
Text
consertei a palavra "definição"
053bdc334476afada9dc8ce154b839b037f23d20
<ide><path>guide/portuguese/robotics/index.md <ide> localeTitle: Robótica <ide> --- <ide> ## Robótica <ide> <del>Robótica é sobre os sistemas que compõem os robôs. Não há deificação universal de um robô. Uma definição geralmente aceita é: _Um robô é uma máquina física programável que segue o paradigma do sentido, pens...
1
Javascript
Javascript
use const for non reassignable identifier
3b3449c2e802997543c1b3e49766086607e9e323
<ide><path>lib/RuleSet.js <ide> module.exports = class RuleSet { <ide> if(typeof rule !== "object") <ide> throw new Error("Unexcepted " + typeof rule + " when object was expected as rule (" + rule + ")"); <ide> <del> let newRule = {}; <add> const newRule = {}; <ide> let useSource; <ide> let resourceSource; ...
1
Javascript
Javascript
move setting of controller data to single location
83a6b150201a5dc9ff13d0bc4164ea093c348718
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> } <ide> } <ide> <del> // Initialize bindToController bindings <add> // Initialize controllers <ide> for (var name in elementControllers) { <ide> var controllerDirectiv...
1
Python
Python
support dataset for model.fit + psstrategy
aaa022c622f583482e7502725272de201495fe52
<ide><path>keras/distribute/dataset_creator_model_fit_ps_only_test.py <ide> # ============================================================================== <ide> """Tests for `DatasetCreator` with `Model.fit` across usages and strategies.""" <ide> <del>import tensorflow.compat.v2 as tf <ide> from keras import callbac...
3
Python
Python
add quotes to paths in mecab arguments
e29c3f1b1104694889afcce4f13f8c842d6e0d6b
<ide><path>src/transformers/tokenization_bert_japanese.py <ide> def __init__( <ide> raise ValueError("Invalid mecab_dic is specified.") <ide> <ide> mecabrc = os.path.join(dic_dir, "mecabrc") <del> mecab_option = "-d {} -r {} ".format(dic_dir, mecabrc) + mecab_option <add> ...
1
PHP
PHP
remove deprecated code in validation
f09f2f38f6953412059a72d2349746587580b7d5
<ide><path>src/Validation/Validation.php <ide> public static function lengthBetween($check, $min, $max) <ide> return ($length >= $min && $length <= $max); <ide> } <ide> <del> /** <del> * Returns true if field is left blank -OR- only whitespace characters are present in its value <del> * Whitespa...
3
Text
Text
fix html to jsx converter to work with https
89b17330acc36b0aedc13693de39de1c65da86e5
<ide><path>docs/html-jsx.md <ide> id: html-jsx <ide> <div class="jsxCompiler"> <ide> <h1>HTML to JSX Compiler</h1> <ide> <div id="jsxCompiler"></div> <del> <script src="http://reactjs.github.io/react-magic/htmltojsx.min.js"></script> <add> <script src="https://reactjs.github.io/react-magic/htmltojsx.min.js"></scr...
1
Python
Python
fix python 2 test failure
2ac69facc6da342c38c9d851f1ec53a3be0b820a
<ide><path>spacy/tests/regression/test_issue2800.py <ide> '''Test issue that arises when too many labels are added to NER model.''' <add>from __future__ import unicode_literals <add> <ide> import random <ide> from ...lang.en import English <ide>
1
Python
Python
change exception message
d3cd1bb35c3d92c55d6643ba3d232902c09632b5
<ide><path>libcloud/common/openstack.py <ide> def add_default_headers(self, headers): <ide> service_type = "compute" <ide> microversion = microversion[0] <ide> else: <del> raise LibcloudError("Invalid microversion format.") <add> raise LibcloudEr...
1
Text
Text
remove unneeded `export`
a04b4890a9185088af9d1664ba044d91e05697c7
<ide><path>docs/Shell-Completion.md <ide> This must be done before `compinit` is called. Note that if you are using Oh My <ide> <ide> ```diff <ide> eval $(/opt/homebrew/bin/brew shellenv) <del>+ export FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH <add>+ FPATH=$(brew --prefix)/share/zsh/site-functions:$FPAT...
1
Go
Go
add tracking to elided layer pulls
d5482089bfd0348ed886be9f89c4d6b177cc6dce
<ide><path>distribution/xfer/download.go <ide> func (ldm *LayerDownloadManager) Download(ctx context.Context, initialRootFS ima <ide> topLayer = l <ide> missingLayer = false <ide> rootFS.Append(diffID) <add> // Register this repository as a source of this layer. <add> withRegistered, hasRegistere...
1
Go
Go
use spf13/cobra for docker version
bc82e51d7755e54dc6d0dcb93e6250bbff0bbd59
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) Command(name string) func(...string) error { <ide> "stats": cli.CmdStats, <ide> "tag": cli.CmdTag, <ide> "update": cli.CmdUpdate, <del> "version": cli.CmdVersion, <ide> }[name] <ide> } <add><path>api/client/system/version.go <del><path>api/cli...
4
Text
Text
fix eventemitter examples
9e5a27a9d310ba64289a326777d9a86e4b9a3928
<ide><path>doc/api/events.md <ide> but important side effect: any *additional* listeners registered to the same <ide> listener that is in the process of being added. <ide> <ide> ```js <add>class MyEmitter extends EventEmitter {} <add> <ide> const myEmitter = new MyEmitter(); <ide> // Only do this once so we don't loop...
1
Python
Python
mark the typing tests as slow
5d8d296e9b7694c1254792dac564be14d47a46a9
<ide><path>numpy/typing/tests/test_typing.py <ide> def get_test_cases(directory): <ide> ) <ide> <ide> <add>@pytest.mark.slow <ide> @pytest.mark.skipif(NO_MYPY, reason="Mypy is not installed") <ide> @pytest.mark.parametrize("path", get_test_cases(PASS_DIR)) <ide> def test_success(path): <ide> def test_...
1
Java
Java
simplify some redundant code
c5fb7b9fb70d0a711a963b2a160c3af5cc4be3a7
<ide><path>spring-expression/src/test/java/org/springframework/expression/spel/ConstructorInvocationTests.java <ide> public void testAddingConstructorResolvers() { <ide> ctx.addConstructorResolver(dummy); <ide> assertThat(ctx.getConstructorResolvers().size()).isEqualTo(2); <ide> <del> List<ConstructorResolver> co...
9
Javascript
Javascript
fix debugger keyword
5e19bfa7e3b739e8913631cfb2e075a23bc65233
<ide><path>packages/ember-htmlbars/lib/keywords/debugger.js <ide> import Logger from "ember-metal/logger"; <ide> @param {String} property <ide> */ <ide> export default function debuggerKeyword(morph, env, scope) { <add> /* jshint unused: false, debug: true */ <ide> <del> /* jshint unused: false */ <del> var view ...
1
Ruby
Ruby
prefer json.encode(value) to value.to_json
5b256ac36922b4dfa4ab7aa639757c4817d06680
<ide><path>activeresource/lib/active_resource/formats/json_format.rb <ide> def mime_type <ide> "application/json" <ide> end <ide> <del> def encode(hash, options={}) <del> hash.to_json(options) <add> def encode(hash, options = nil) <add> ActiveSupport::JSON.encode(hash, options) <i...
1
Mixed
Javascript
fix undefined http2 and tls errors
3950a3e0b1319c6cae49f674b7f82a491ea09093
<ide><path>doc/api/errors.md <ide> provided. <ide> <ide> The `Http2Session` closed with a non-zero error code. <ide> <add><a id="ERR_HTTP2_SETTINGS_CANCEL"></a> <add>### ERR_HTTP2_SETTINGS_CANCEL <add> <add>The `Http2Session` settings canceled. <add> <ide> <a id="ERR_HTTP2_SOCKET_BOUND"></a> <ide> ### ERR_HTTP2_SOCKE...
2
Ruby
Ruby
remove erroneous form_tag option docs
0387591c0528307cc664ad75697e683f2a3d9e80
<ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb <ide> module FormTagHelper <ide> # This is helpful when you're fragment-caching the form. Remote forms get the <ide> # authenticity token from the <tt>meta</tt> tag, so embedding is unnecessary unless you <ide> # support browsers w...
1
Javascript
Javascript
remove module argument from asyncdepblock
f23ce490403b6cc1961ecb0c1c97f7c4ec056cee
<ide><path>lib/AsyncDependenciesBlock.js <ide> const DependenciesBlock = require("./DependenciesBlock"); <ide> class AsyncDependenciesBlock extends DependenciesBlock { <ide> /** <ide> * @param {GroupOptions} groupOptions options for the group <del> * @param {Module} module the Module object <ide> * @param {Depend...
8
Java
Java
add reset logic for rn perf counters
8e79a74bc21cc11926713f5dcf93f62ce4f738d6
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java <ide> public void initializeWithInstance(CatalystInstance catalystInstance) { <ide> mJSMessageQueueThread = queueConfig.getJSQueueThread(); <ide> } <ide> <add> public void resetPerfStats() { <add> if (mNativeModulesMessageQueue...
4
PHP
PHP
make pendingrequest conditionable
442b6d0e7e086a5775c97ccd61111c75cd2d2037
<ide><path>src/Illuminate/Http/Client/PendingRequest.php <ide> use Illuminate\Http\Client\Events\ResponseReceived; <ide> use Illuminate\Support\Collection; <ide> use Illuminate\Support\Str; <add>use Illuminate\Support\Traits\Conditionable; <ide> use Illuminate\Support\Traits\Macroable; <ide> use Psr\Http\Message\Messag...
1
Javascript
Javascript
update fast refresh full reload warning
dfee55221c6a85398b41db0ca9f5cae9d078c945
<ide><path>packages/next/client/dev/error-overlay/hot-dev-client.js <ide> function tryApplyUpdates(onHotUpdateSuccess) { <ide> if (err) { <ide> console.warn( <ide> '[Fast Refresh] performing full reload\n\n' + <del> "Fast Refresh will perform a full reload when you edit a file that's ...
1
Python
Python
hide symbols for builtin js files in binary
7b39503b4a620f2703564fcefb82d98df78dd039
<ide><path>tools/js2c.py <ide> def ReadMacros(lines): <ide> <ide> namespace node {{ <ide> <add>namespace {{ <add> <ide> {definitions} <ide> <add>}} // anonymous namespace <add> <ide> v8::Local<v8::String> LoadersBootstrapperSource(Environment* env) {{ <ide> return internal_bootstrap_loaders_value.ToStringChecked(...
1
Ruby
Ruby
fix misspelling of 'lambda'. closes #987
86491476d5ff346e46cc024a890bf1e71530bdd5
<ide><path>activesupport/test/option_merger_test.rb <ide> def test_nested_method_with_options_containing_hashes_going_deep <ide> end <ide> end <ide> <del> def test_nested_method_with_options_using_lamdba <del> local_lamdba = lambda { { :lambda => true } } <add> def test_nested_method_with_options_using_lamb...
1
Javascript
Javascript
add test for csv.format
3db7fd1b65e1a4aad1149044b037484fbb4a54e0
<ide><path>test/csv/format-test.js <add>require("../env"); <add>require("../../d3"); <add>require("../../d3.csv"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("d3.csv.format"); <add> <add>suite.addBatch({ <add> "format": { <add> topic: function() ...
2
PHP
PHP
remove urlparser from database
eee81be200cb4aed8b43d4d7f6e3469a0bcd5a69
<ide><path>src/Illuminate/Database/ConfigurationUrlParser.php <del><?php <del> <del>namespace Illuminate\Database; <del> <del>use Illuminate\Support\Arr; <del>use InvalidArgumentException; <del> <del>class ConfigurationUrlParser <del>{ <del> /** <del> * The drivers aliases map. <del> * <del> * @var array...
2
Javascript
Javascript
use fixtures.readkey instead of fixturesdir
c4c63812822fc973cb3d4bb4040729213dcaa620
<ide><path>test/parallel/test-tls-delayed-attach.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const tls = require('tls'); <del>const fs = require...
1
Javascript
Javascript
stop animations when destroying a chart
66f7f96d4b0f8a03b67a45c43f20c1155935f792
<ide><path>src/Chart.Core.js <ide> return template(this.options.legendTemplate,this); <ide> }, <ide> destroy : function(){ <add> this.stop(); <ide> this.clear(); <ide> unbindEvents(this, this.events); <ide> var canvas = this.chart.canvas;
1
Text
Text
fix typo in test/ttx/readme.md
7d5bf83ce879a2a937ff1a5cf6c1b65e008beaa5
<ide><path>test/ttx/README.md <del>If `git clone --recursive` was not used, please run `git submodile init; git submodule update` to pull fonttools code. <add>If `git clone --recursive` was not used, please run `git submodule init; git submodule update` to pull fonttools code. <ide> <del>Note: python 2.6 for 32-bit is...
1
Go
Go
use userprofile path on windows as home directory
d4dbb708320e59efa91b077303c87f9e9513cd91
<ide><path>docker/flags.go <ide> import ( <ide> "fmt" <ide> "os" <ide> "path/filepath" <add> "runtime" <ide> <ide> "github.com/docker/docker/opts" <ide> flag "github.com/docker/docker/pkg/mflag" <ide> var ( <ide> <ide> func init() { <ide> if dockerCertPath == "" { <del> dockerCertPath = filepath.Join(os.Getenv...
1
Javascript
Javascript
add callback to dgramsocket.send()
cbf2a2233eb2ef17b7a341b7e88c4309f80457e0
<ide><path>lib/dgram.js <ide> Socket.prototype.address = function () { <ide> Socket.prototype.send = function(port, addr, buffer, offset, length) { <ide> var self = this; <ide> <add> var lastArg = arguments[arguments.length - 1]; <add> var callback = typeof lastArg === 'function' ? lastArg : null; <add> <ide> if...
2
Javascript
Javascript
use runinnewcontext instead of process.compile
a16b3c3148554ec07ba3dd5581a6b1d2e4d62752
<ide><path>src/node.js <ide> process.assert = function (x, msg) { <ide> }; <ide> <ide> var writeError = process.binding('stdio').writeError; <del> <add>var evals = process.binding('evals'); <ide> <ide> // lazy loaded. <ide> var constants; <ide> var module = (function () { <ide> return replModule.exports; <ide> ...
1
Python
Python
move exception handler out of main view
b430503fa657330b606a9c632ea0decc4254163e
<ide><path>rest_framework/views.py <ide> from rest_framework.utils import formatting <ide> <ide> <del>def get_view_name(cls, suffix=None): <del> name = cls.__name__ <add>def get_view_name(view_cls, suffix=None): <add> """ <add> Given a view class, return a textual name to represent the view. <add> This na...
1
Mixed
Ruby
set precision 6 by default for datetime
c2a6f618d22cca4d9b7be7fa7652e7aac509350c
<ide><path>activerecord/CHANGELOG.md <add>* Set precision 6 by default for `datetime` columns <add> <add> By default, datetime columns will have microseconds precision instead of seconds precision. <add> <add> *Roberto Miranda* <add> <ide> * Allow preloading of associations with instance dependent scopes <ide...
11
Python
Python
add warning if neither pt nor tf are found
4a21c4d88d13a966ebfdbd20c73a5a9a07be0a6a
<ide><path>examples/run_tf_glue.py <ide> <ide> # Compile tf.keras model for training <ide> learning_rate = tf.keras.optimizers.schedules.PolynomialDecay(2e-5, 345, end_learning_rate=0) <add>optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate, epsilon=1e-08, clipnorm=1.0) <ide> loss = tf.keras.losses.Spars...
2
Python
Python
remove duplicate key 'c' in dictionary
7f902d3f5b8279f247a70b78d40fb1110d6cae7c
<ide><path>glances/outputs/glances_curses.py <ide> class _GlancesCurses(object): <ide> 'm': {'auto_sort': False, 'sort_key': 'memory_percent'}, <ide> 'p': {'auto_sort': False, 'sort_key': 'name'}, <ide> 't': {'auto_sort': False, 'sort_key': 'cpu_times'}, <del> 'u': {'auto_sort': False, 's...
1
PHP
PHP
refactor the route finder
b25edfaf9bddb652d2bce07927a316d29a244653
<ide><path>system/routing/finder.php <ide> class Finder { <ide> */ <ide> public static function find($name, $routes) <ide> { <del> if (array_key_exists($name, static::$names)) <del> { <del> return static::$names[$name]; <del> } <add> if (array_key_exists($name, static::$names)) return static::$names[$name]; <...
1
Javascript
Javascript
move latest firefox before firefox 60 test results
bc8aedf04210db9af519cdc1e947ee14f36934d6
<ide><path>test/unit/support.js <ide> testIframe( <ide> "reliableMarginLeft": true, <ide> "scrollboxSize": true <ide> }, <del> firefox_60: { <add> firefox: { <ide> "ajax": true, <ide> "boxSizingReliable": true, <ide> "checkClone": true, <ide> testIframe( <ide> "pixelBoxStyles": true, <ide...
1
Java
Java
update copyright date for staxeventxmlreader
ff9b68c1b6b668e9da90dfff126149a53a052979
<ide><path>spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may no...
1
PHP
PHP
fix psalm error
e71fcd2787a139abd614813ffc6eaeb08c6bbb9a
<ide><path>src/Error/ExceptionRenderer.php <ide> public function render(): ResponseInterface <ide> <ide> $isDebug = Configure::read('debug'); <ide> if ($isDebug) { <del> $trace = Debugger::formatTrace($exception->getTrace(), [ <add> $trace = (array)Debugger::formatTrace($exception...
1
Go
Go
fix apparmor profile docker-default /proc/sys rule
66f14e4ae9173f6fb7d1e4a7e13632297bdb8d29
<ide><path>profiles/apparmor/template.go <ide> profile {{.Name}} flags=(attach_disconnected,mediate_deleted) { <ide> <ide> deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir) <ide> # deny write to files not in /proc/<number>/** or /proc/sys/** <del> deny @{PROC}/{[^1-9],[^1-9][^0-9]...
1
PHP
PHP
add test for app folder for libraries support
1454ea54a2a1c7789ce3e4853776ad529cbce1f2
<ide><path>cake/tests/cases/libs/configure.test.php <ide> function testClassLoading() { <ide> } <ide> <ide> App::build(array( <add> 'libs' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'libs' . DS), <ide> 'plugins' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS...
1
Go
Go
prefer netlink calls over ioctl
6901ea51dc9f99b916bc189308543567cc72e1cb
<ide><path>libnetwork/drivers/bridge/bridge.go <ide> func (d *driver) DeleteNetwork(nid types.UUID) error { <ide> } <ide> <ide> func addToBridge(ifaceName, bridgeName string) error { <del> iface, err := net.InterfaceByName(ifaceName) <add> link, err := netlink.LinkByName(ifaceName) <ide> if err != nil { <ide> retur...
2
Java
Java
remove outdated references to contextloaderservlet
69998e3d507bcdc5c0b132cddeb4772e46cf8296
<ide><path>spring-orm-hibernate4/src/main/java/org/springframework/orm/hibernate4/support/OpenSessionInViewFilter.java <ide> * <ide> * <p>Looks up the SessionFactory in Spring's root web application context. <ide> * Supports a "sessionFactoryBeanName" filter init-param in {@code web.xml}; <del> * the default bean na...
7
Javascript
Javascript
use services where possible
4994faa3c103a9672cdd48c7838d5073ddc86a48
<ide><path>extensions/firefox/components/PdfStreamConverter.js <ide> Cu.import('resource://gre/modules/Services.jsm'); <ide> <ide> function log(aMsg) { <ide> let msg = 'PdfStreamConverter.js: ' + (aMsg.join ? aMsg.join('') : aMsg); <del> Cc['@mozilla.org/consoleservice;1'].getService(Ci.nsIConsoleService) <del> ...
1
Javascript
Javascript
use branchpattern to check tag
9e4d42cafb2070530a8f4ee96fce5f3b5f869f96
<ide><path>lib/versions/version-info.js <ide> function getBuild() { <ide> return 'sha.' + hash; <ide> } <ide> <add>function checkBranchPattern(version, branchPattern) { <add> // check that the version starts with the branch pattern minus its asterisk <add> // e.g. branchPattern = '1.6.*'; version = '1.6.0-rc.0' =>...
1
Javascript
Javascript
enforce nodecache validity
d93761af6253aa994660eb04be9313cddc920844
<ide><path>src/core/ReactID.js <ide> <ide> "use strict"; <ide> <add>var invariant = require('invariant'); <ide> var ReactMount = require('ReactMount'); <ide> var ATTR_NAME = 'id'; <ide> var nodeCache = {}; <ide> var nodeCache = {}; <ide> * @return {string} ID of the supplied `domNode`. <ide> */ <ide> function getID...
1
PHP
PHP
fix resource path
aaf6d5b393beffacadd0dc1951c952c7bf116c8e
<ide><path>src/Illuminate/Exception/ExceptionServiceProvider.php <ide> protected function shouldReturnJson() <ide> protected function registerPrettyWhoopsHandler() <ide> { <ide> $me = $this; <del> <add> <ide> $this->app['whoops.handler'] = $this->app->share(function() use ($me) <ide> { <ide> with($handler ...
1
Python
Python
use list to be safe
a5973c71c989c20c75c123896bef33b3eeefc327
<ide><path>airflow/operators/hive_stats_operator.py <ide> def execute(self, context=None): <ide> exprs = { <ide> ('', 'count'): 'COUNT(*)' <ide> } <del> for col, col_type in field_types.items(): <add> for col, col_type in list(field_types.items()): <ide> d = {} <ide...
1
Ruby
Ruby
fix typo in documentation examples
b2ed0b768d4e753cf756df6361986ee823b99054
<ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb <ide> def image_tag(source, options = {}) <ide> # Active Storage blobs (videos that are uploaded by the users of your app): <ide> # <ide> # video_tag(user.intro_video) <del> # # => <img src="/rails/active_storage/blobs/.../intr...
1
Javascript
Javascript
add separator example
cc8ea72f3a9375deab4182eb35d615dd9a6eec7f
<ide><path>src/ng/directive/ngSwitch.js <ide> <hr/> <ide> <div class="animate-switch-container" <ide> ng-switch on="selection"> <del> <div class="animate-switch" ng-switch-when="settings">Settings Div</div> <add> <div class="animate-switch" ng-switch-when="settings|option...
1
Ruby
Ruby
eliminate unnecessary flatten
887434f75fc0a207ac7184debcd3074802758952
<ide><path>activesupport/lib/active_support/time_with_zone.rb <ide> def transfer_time_values_to_utc_constructor(time) <ide> end <ide> <ide> def duration_of_variable_length?(obj) <del> ActiveSupport::Duration === obj && obj.parts.flatten.any? {|p| [:years, :months, :days].include? p } <add> Ac...
1
Go
Go
update secret inspect to support ids
70d2cefd51e853ca4f3bbf8eb0386360809e026b
<ide><path>cli/command/secret/inspect.go <ide> import ( <ide> ) <ide> <ide> type inspectOptions struct { <del> name string <add> names []string <ide> format string <ide> } <ide> <ide> func newSecretInspectCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> opts := inspectOptions{} <ide> cmd := &cobra.C...
4
Javascript
Javascript
improve jsonp tests
cd546aba748aeac09886921ebc1a5fcaa3778bf8
<ide><path>test/unit/ajax.js <ide> module( "ajax", { <ide> jsonpCallback: "functionToCleanUp", <ide> success: function( data ) { <ide> ok( data["data"], "JSON results returned (GET, custom callback name to be cleaned up)" ); <del> strictEqual( window["functionToCleanUp"], undefined, "Callback was remov...
1
Go
Go
remove channel close
010951083060e1267e4dd726f5322d7309a8fd62
<ide><path>integration-cli/events_utils.go <ide> func matchEventLine(id, eventType string, actions map[string]chan bool) eventMat <ide> func processEventMatch(actions map[string]chan bool) eventMatchProcessor { <ide> return func(matches map[string]string) { <ide> if ch, ok := actions[matches["action"]]; ok { <del> ...
1
Ruby
Ruby
use parser to parse args
39a6f7f83f7c33d4b0367fb3d1cd2d71801167e0
<ide><path>Library/Homebrew/dev-cmd/linkage.rb <ide> <ide> require "cache_store" <ide> require "linkage_checker" <add>require "cli_parser" <ide> <ide> module Homebrew <ide> module_function <ide> <ide> def linkage <add> Homebrew::CLI::Parser.parse do <add> switch "--test" <add> switch "--reverse" <ad...
1
PHP
PHP
update builder.php
40104bac79e74aeea5b2b5479de3d9430198899a
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function where($column, $operator = null, $value = null, $boolean = 'and' <ide> * @param mixed $operator <ide> * @param mixed $value <ide> * @param string $boolean <del> * @return \Illuminate\Database\Eloquent\Model|static <ad...
1
Java
Java
reimplement the elementat operator
25555b4f6f9e83acaf6e0f169b6041975718e7d3
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> import rx.operators.OperationDematerialize; <ide> import rx.operators.OperationDistinct; <ide> import rx.operators.OperationDistinctUntilChanged; <del>import rx.operators.OperationElementAt; <add>import rx.operators.OperatorElementAt; <ide> import rx.operato...
5
Javascript
Javascript
pass vector to lookat function
b788d8d73a2891aac08d52a27cd4d54abcaef837
<ide><path>examples/js/loaders/FBXLoader.js <ide> <ide> } else { // Cameras and other Object3Ds <ide> <del> model.lookAt( pos[ 0 ], pos[ 1 ], pos[ 2 ] ); <add> model.lookAt( new THREE.Vector3( pos[ 0 ], pos[ 1 ], pos[ 2 ] ) ); <ide> <ide> } <ide>
1
Python
Python
fix failing tests
d1b28ad955f3cb4cba3a7eb99e46fc15dcbacc63
<ide><path>libcloud/test/compute/test_kubevirt.py <ide> <ide> from libcloud.test import unittest <ide> from libcloud.test import MockHttp <del>from libcloud.test.compute import TestCaseMixin <ide> from libcloud.test.file_fixtures import ComputeFileFixtures <ide> <ide> <del>class KubeVirtTest(unittest.TestCase, TestC...
1
Javascript
Javascript
fix headers with empty value
70a8fb3763c92337bbc6a6138dd0c320134b847c
<ide><path>lib/http.js <ide> var parsers = new FreeList('parsers', 1000, function () { <ide> <ide> parser.onHeaderField = function (b, start, len) { <ide> var slice = b.toString('ascii', start, start+len).toLowerCase(); <del> if (parser.value) { <add> if (parser.value != undefined) { <ide> parser.inc...
2
Ruby
Ruby
remove implementation of unchecked_serialize
6833bf4d108be3821f7818cf0e60419c80eafd0d
<ide><path>activemodel/lib/active_model/type/helpers/numeric.rb <ide> module Numeric <ide> def serialize(value) <ide> cast(value) <ide> end <del> alias :unchecked_serialize :serialize <ide> <ide> def cast(value) <ide> # Checks whether the value is numeric. Spaceship o...
6
PHP
PHP
fix the broken test
0cb1d3194294fd6ba317ce3ea05cd47801e10d4b
<ide><path>tests/TestCase/Datasource/ConnectionManagerTest.php <ide> class FakeConnection <ide> * <ide> * @param array $config configuration for connecting to database <ide> */ <del> public function __construct($config) <add> public function __construct($config = []) <ide> { <ide> $this...
1
Text
Text
add manual instructions on upgrading 0.13 -> 0.14
28ef2316da479245a358cf01735e20e33a503000
<ide><path>docs/Images.md <ide> var icon = this.props.active ? require('./my-icon-active.png') : require('./my-i <ide> <Image source={icon} /> <ide> ``` <ide> <del>NOTE: This system relies on build hooks for [Xcode](https://github.com/facebook/react-native/pull/3523) and [Gradle](https://github.com/facebook/react-nati...
2
Text
Text
add history info for `global.performance`
8baf372313a435722783e248ec7a02f02de3f332
<ide><path>doc/api/globals.md <ide> This variable may appear to be global but is not. See [`module`][]. <ide> <ide> ## `performance` <ide> <add><!-- YAML <add>added: v16.0.0 <add>--> <add> <ide> The [`perf_hooks.performance`][] object. <ide> <ide> ## `process`
1
Ruby
Ruby
fix typo in the documentation
39a25ba57ee893bd4e4596076cc56cb4953cc169
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def text_area(object_name, method, options = {}) <ide> # wouldn't update the flag. <ide> # <ide> # To prevent this the helper generates an auxiliary hidden field before <del> # the very check box. The hidden field has the same nam...
1
PHP
PHP
add more tests
e7153b533392548a9b3ee90719dc2f88827b0e07
<ide><path>lib/Cake/Configure/IniReader.php <ide> protected function _parseNestedValues($values) { <ide> if ($value === '') { <ide> $value = false; <ide> } <add> unset($values[$key]); <ide> if (strpos($key, '.') !== false) { <ide> $values = Hash::insert($values, $key, $value); <ide> } else { <ide>...
3
Text
Text
add v3.16.0 to changelog
f8fc3e9bfe3ef8928e00127e148bd248124e7f80
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.16.0-beta.1 (December 9, 2019) <add>### v3.16.0 (January 20, 2020) <ide> <ide> - [#18436](https://github.com/emberjs/ember.js/pull/18436) [DEPRECATION] Deprecate globals resolver per [RFC #331](https://github.com/emberjs/rfcs/blob/master/text/0331-depr...
1
Ruby
Ruby
utilize symbol#start_with? and #end_with?
a2ca8f062c38fd6546040e18b42cb97b0c40ce3e
<ide><path>actionview/lib/action_view/helpers/atom_feed_helper.rb <ide> def atom_feed(options = {}, &block) <ide> end <ide> <ide> feed_opts = { "xml:lang" => options[:language] || "en-US", "xmlns" => "http://www.w3.org/2005/Atom" } <del> feed_opts.merge!(options).reject! { |k, v| !k.to_s.start_w...
4
Python
Python
convert regularizers to keras backend
368df8ef04dfc289e3c6d5a177336f97bb233ae7
<ide><path>keras/regularizers.py <ide> from __future__ import absolute_import <del>import theano.tensor as T <add>from . import backend as K <ide> <ide> <ide> class Regularizer(object): <ide> def set_param(self, p): <ide> self.p = p <ide> <ide> def __call__(self, loss): <del> loss += T.sum(abs(sel...
1
Python
Python
improve error message
49a5cdf76dafce69834db2737b84c1e10011877d
<ide><path>keras/engine/topology.py <ide> def output(self): <ide> the layer has exactly one inbound node, i.e. if it is connected <ide> to one incoming layer). <ide> ''' <del> if len(self.inbound_nodes) != 1: <add> if len(self.inbound_nodes) == 0: <add> raise Exception('...
1
Text
Text
add missing step of installing next@latest
7c8b504252f94079f39304f5023818e84b7cff7e
<ide><path>docs/upgrading.md <ide> description: Learn how to upgrade Next.js. <ide> <ide> ## Upgrading from version 10 to 11 <ide> <del>## Upgrade React version to latest <add>### Upgrade React version to latest <ide> <ide> Most applications already use the latest version of React, with Next.js 11 the minimum React ...
1
Text
Text
add a section about "collection caching" [ci skip]
f6e48148be5325462ab1cdd9280bd36f26ce3111
<ide><path>guides/source/caching_with_rails.md <ide> If you want to cache a fragment under certain conditions, you can use <ide> <% end %> <ide> ``` <ide> <add>#### Collection caching <add> <add>The `render` helper can also cache individual templates rendered for a collection. <add>It can even one up the previous exam...
1
Mixed
Go
fix some mistakes in dockerd.md
f53902aa776d2aa795e7eb217478abdf98e22ddf
<ide><path>daemon/config.go <ide> type CommonConfig struct { <ide> Root string `json:"graph,omitempty"` <ide> SocketGroup string `json:"group,omitempty"` <ide> TrustKeyPath string `json:"-"` <del> CorsHeaders string `json:"...
3
Python
Python
fix failing test
f83775a9241c7b95a8ec08d19dee7d65a8dbce8a
<ide><path>libcloud/test/compute/test_packet.py <ide> def _plans(self, method, url, body, headers): <ide> body = self.fixtures.load('plans.json') <ide> return (httplib.OK, body, {}, httplib.responses[httplib.OK]) <ide> <add> def _projects_3d27fd13_0466_4878_be22_9a4b5595a3df_plans(self, method, url,...
1
Javascript
Javascript
use `concat()` rather than duplicating code
14ff529fbbff46413c0cb451a2f0abbd16b05d5e
<ide><path>src/Angular.js <ide> function bind(self, fn) { <ide> return curryArgs.length <ide> ? function() { <ide> return arguments.length <del> ? fn.apply(self, curryArgs.concat(slice.call(arguments, 0))) <add> ? fn.apply(self, concat(curryArgs, arguments, 0)) <ide> ...
1
Javascript
Javascript
remove usage of require('util')
553c876a24e237b745ae7f8d47e2c9c9eae1263f
<ide><path>lib/internal/error-serdes.js <ide> function GetName(object) { <ide> return desc && desc.value; <ide> } <ide> <del>let util; <del>function lazyUtil() { <del> if (!util) <del> util = require('util'); <del> return util; <add>let internalUtilInspect; <add>function inspect(...args) { <add> if (!internalU...
1
Text
Text
update the version history in the middleware page
882f3380eef219432543e98393550f2ed65624dc
<ide><path>docs/advanced-features/middleware.md <ide> description: Learn how to use Middleware to run code before a request is complet <ide> <ide> | Version | Changes | <ide> | --------- | ---------------------------------------------...
1
Javascript
Javascript
change var to let in stream_base_commons
12a21aee1896dffcaf9b598c50908ee554d3abec
<ide><path>lib/internal/stream_base_commons.js <ide> function createWriteWrap(handle) { <ide> function writevGeneric(self, data, cb) { <ide> const req = createWriteWrap(self[kHandle]); <ide> const allBuffers = data.allBuffers; <del> var chunks; <del> var i; <add> let chunks; <ide> if (allBuffers) { <ide> c...
1
Javascript
Javascript
add devtools tests for copying complex values
9ad35905fae96036a130d9dec24b47132dfe4076
<ide><path>packages/react-devtools-shared/src/__tests__/inspectedElementContext-test.js <ide> describe('InspectedElementContext', () => { <ide> <ide> done(); <ide> }); <add> <add> it('should enable complex values to be copied to the clipboard', async done => { <add> const Immutable = require('immutable'); <a...
2