content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
PHP | PHP | return the object when is set method | f4f3bfe2fc7c74cf97a362acb8901b6d77181379 | <ide><path>lib/Cake/Network/CakeEmail.php
<ide> public function from($email = null, $name = null) {
<ide> if ($email === null) {
<ide> return $this->_from;
<ide> }
<del> $this->_setEmailSingle('_from', $email, $name, __d('cake', 'From requires only 1 email address.'));
<add> return $this->_setEmailSingle('_fro... | 1 |
Python | Python | resolve line-too-long in dtensor | cf199f341bd2c179c1737dde75ec55d07422f69e | <ide><path>keras/dtensor/__init__.py
<ide> if _DTENSOR_API_ENABLED:
<ide> from tensorflow.compat.v2.experimental import dtensor as dtensor_api
<ide> else:
<del> # Leave it with a placeholder, so that the import line from other python file
<del> # will not break.
<add> # Leave it with a placeholder, so that... | 9 |
Python | Python | fix mypy errors for google.cloud.example_dags | 632bd0133e0920c036f1cd83d100f477726fcb41 | <ide><path>airflow/providers/google/cloud/example_dags/example_bigquery_operations.py
<ide> task_id="update_table",
<ide> dataset_id=DATASET_NAME,
<ide> table_id="test_table",
<del> fields=[
<del> {"name": "emp_name", "type": "STRING", "mode": "REQUIRED"},
<del> {"na... | 8 |
Javascript | Javascript | set dependency categories for all dependencies | 2abcfc0058edf2f98410df9921452e0cb4684cc0 | <ide><path>lib/ContextModule.js
<ide> const makeSerializable = require("./util/makeSerializable");
<ide> * @property {RegExp=} include
<ide> * @property {RegExp=} exclude
<ide> * @property {RawChunkGroupOptions=} groupOptions
<add> * @property {string} category
<ide> * @property {string[][]=} referencedExports expo... | 28 |
Go | Go | remove hijack from api when not necessary | f29e5dc8a15d0ab8e9c6084e41ee373376051659 | <ide><path>api.go
<ide> func postImagesCreate(srv *Server, w http.ResponseWriter, r *http.Request, vars
<ide>
<ide> src := r.Form.Get("fromSrc")
<ide> image := r.Form.Get("fromImage")
<del> repo := r.Form.Get("repo")
<ide> tag := r.Form.Get("tag")
<add> repo := r.Form.Get("repo")
<ide>
<del> in, out, err := hijack... | 4 |
PHP | PHP | add sync without detaching method | 33aee31523b9fc280aced35a5eb5f6b627263b45 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function createMany(array $records, array $joinings = [])
<ide> return $instances;
<ide> }
<ide>
<add> /**
<add> * Sync the intermediate tables with a list of IDs without detaching.
<add> *
<add> * @param \... | 1 |
Ruby | Ruby | simplify postgres query for column_definitions() | f9c6cbd55c56de7994b74630acd141c324411719 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def column_definitions(table_name)
<ide> query(<<-end_sql, "SCHEMA")
<ide> SELECT a.attname, format_type(a.atttypid, a.atttypmod),
<ide> pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a... | 1 |
Text | Text | improve article on https | 02a793c6a133f46129d0fc83ce218d3a92f1e644 | <ide><path>docs/sources/articles/https.md
<ide> First generate CA private and public keys:
<ide> Verifying - Enter pass phrase for ca-key.pem:
<ide> $ openssl req -new -x509 -days 365 -key ca-key.pem -sha256 -out ca.pem
<ide> Enter pass phrase for ca-key.pem:
<del> You are about to be asked to enter inf... | 1 |
Python | Python | add nn.module as superclass | adab7f8332f2027a2f5ec62e8e8bee25fb59765f | <ide><path>src/transformers/modeling_mmbt.py
<ide> def forward(self, input_modal, start_token=None, end_token=None, position_ids=No
<ide> MMBT_START_DOCSTRING,
<ide> MMBT_INPUTS_DOCSTRING,
<ide> )
<del>class MMBTModel(ModuleUtilsMixin):
<add>class MMBTModel(nn.Module, ModuleUtilsMixin):
<ide> r"""
<ide> ... | 1 |
Javascript | Javascript | fix a bug in gltfexporter | c191afb0e1ff7fb8666fb61777d62569744a1a21 | <ide><path>examples/js/exporters/GLTFExporter.js
<ide> THREE.GLTFExporter.prototype = {
<ide>
<ide> var key = getUID( geometry.index );
<ide>
<del> if ( groups[ i ].start !== undefined || groups[ i ] !== undefined ) {
<add> if ( groups[ i ].start !== undefined || groups[ i ].count !== undefined ) {
<ide>... | 1 |
Ruby | Ruby | form helper test | 5c4469f3a820f0e4475d4a6496539e3c96f82258 | <ide><path>actionpack/lib/action_view/helpers/active_record_helper.rb
<ide> def error_messages_for(*params)
<ide> options[:object_name] ||= params.first
<ide> options[:header_message] = "#{pluralize(count, 'error')} prohibited this #{options[:object_name].to_s.gsub('_', ' ')} from being saved" unles... | 1 |
Javascript | Javascript | improve assertion in test-performance | 42a4a606457e01df51943c9c1e68ceaf9cafa0fe | <ide><path>test/sequential/test-performance.js
<ide> function checkNodeTiming(props) {
<ide> const delta = performance.nodeTiming[prop] - props[prop].around;
<ide> assert(Math.abs(delta) < 1000);
<ide> } else {
<del> assert.strictEqual(performance.nodeTiming[prop], props[prop]);
<add> assert.s... | 1 |
Text | Text | add @pzinovkin for #995 thanks! | c23412b51c5d8abbe1c103d7e177606644f9f0b7 | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Rudolf Olah - [omouse]
<ide> * Gertjan Oude Lohuis - [gertjanol]
<ide> * Matthias Jacob - [cyroxx]
<add>* Pavel Zinovkin - [pzinovkin]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide> ... | 1 |
Text | Text | add initial doc on how to update cjs-module-lexer | cc82f6f8a68e8dd618ed58c7a2432544587d9872 | <ide><path>doc/contributing/maintaining-cjs-module-lexer.md
<add># Maintaining cjs-module-lexer
<add>
<add>The [cjs-module-lexer](https://github.com/nodejs/node/tree/HEAD/deps/cjs-module-lexer)
<add>dependency is used within the Node.js ESM implementation to detect the
<add>named exports of a CommonJS module.
<add>
<ad... | 1 |
PHP | PHP | remove additional test stubs that are not required | 73210d710d789a60acfff49931783761c019d3b2 | <ide><path>src/ORM/AssociationCollection.php
<ide> */
<ide> namespace Cake\ORM;
<ide>
<del>use Cake\Collection\Collection;
<ide> use Cake\ORM\Association;
<ide> use Cake\ORM\AssociationsNormalizerTrait;
<ide> use Cake\ORM\Entity;
<ide> protected function _save($association, $entity, $nested, $options)
<ide> */
<... | 8 |
Go | Go | get libnetwork to build on solaris | c7684b5ff724d2eb63f447b55d0ac7319c4828b6 | <ide><path>libnetwork/default_gateway_solaris.go
<add>package libnetwork
<add>
<add>import "github.com/docker/libnetwork/types"
<add>
<add>func (c *controller) createGWNetwork() (Network, error) {
<add> return nil, types.NotImplementedErrorf("default gateway functionality is not implemented in solaris")
<add>}
<ide><pa... | 7 |
Ruby | Ruby | build bottle with verbose | 60600c824cb07b36bc74b7a7f363069f8c29a8ca | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def formula formula_name
<ide> test "brew", "audit", *audit_args
<ide> if install_passed
<ide> if formula.stable? && !ARGV.include?('--no-bottle')
<del> bottle_args = ["--rb", canonical_formula_name]
<add> bottle_args = ["--verbose"... | 1 |
Python | Python | delete a blank | 5ee9158d86fdd0c68d007a75b7e71909d2ee7037 | <ide><path>example_aliyun_ecs.py
<ide> image = images[0]
<ide> print('Use image %s' % image)
<ide>
<del>
<ide> sgs = ecs.ex_list_security_groups()
<ide> print('Found %d security groups' % len(sgs))
<ide> if len(sgs) == 0: | 1 |
Text | Text | update links to point to more accurate docs | 8f023992a2072209be8db1345fbbbcc293eee13a | <ide><path>docs/api-reference/next.config.js/redirects.md
<ide> In some rare cases, you might need to assign a custom status code for older HTTP
<ide> ## Other Redirects
<ide>
<ide> - Inside [API Routes](/docs/api-routes/response-helpers.md), you can use `res.redirect()`.
<del>- Inside [`getStaticProps`](/docs/basic-f... | 1 |
Mixed | Python | add contributor agreement for emulbreh | 012e874d094bbf13ed18547eb3d13e197399e955 | <ide><path>.github/contributors/emulbreh.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
<... | 2 |
Javascript | Javascript | fix typos in core.js | 8b8620d580314050175983402dfddf2674e8e22a | <ide><path>lib/internal/http2/core.js
<ide> class Http2Session extends EventEmitter {
<ide> }
<ide>
<ide> // If ping is called while we are still connecting, or after close() has
<del> // been called, the ping callback will be invoked immediately will a ping
<add> // been called, the ping callback will be invoke... | 1 |
Python | Python | add det_lemma constant | 920fa0fed2febcf2e044f2248267b7e6a3abcc60 | <ide><path>spacy/language_data/util.py
<ide>
<ide>
<ide> PRON_LEMMA = "-PRON-"
<add>DET_LEMMA = "-DET-"
<ide> ENT_ID = "ent_id"
<ide>
<ide> | 1 |
Javascript | Javascript | attach location info to syntax errors | 459b106d6cbee05661dee7b3929610d7d06bede0 | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> self._domain.on('error', function(e) {
<ide> debug('domain error');
<ide> const top = replMap.get(self);
<add> util.decorateErrorStack(e);
<ide> top.outputStream.write((e.stack || e) + '\n');
<ide> top.lineParser.reset();
<ide> top.... | 2 |
Python | Python | add round_robin scheduling algorithm | e274863cda5514b22196942d3a55887499166fcf | <ide><path>scheduling/round_robin.py
<add>"""
<add>Round Robin is a scheduling algorithm.
<add>In Round Robin each process is assigned a fixed time slot in a cyclic way.
<add>https://en.wikipedia.org/wiki/Round-robin_scheduling
<add>"""
<add>from statistics import mean
<add>from typing import List
<add>
<add>
<add>def ... | 1 |
Text | Text | translate doc 11-advanced-performance to chinese | 4c365ea9573f2f4b0af6ddebc9397fc778b65712 | <ide><path>docs/docs/11-advanced-performance.zh-CN.md
<add>---
<add>id: advanced-performance-zh-CN
<add>title: 提高性能
<add>permalink: docs/advanced-performance-zh-CN.html
<add>prev: shallow-compare-zh-CN.html
<add>next: context-zh-CN.html
<add>---
<add>
<add>当人们考虑将React应用到自己的系统里时,都会想知道React是否可以和非React的应用一样可以快速的响应各种用户的操作。... | 2 |
Javascript | Javascript | fix fouc issue on with-fela example | 5782651e92ef07845e9d251981ac3ba2ced27e11 | <ide><path>examples/with-ant-design-less/next.config.js
<ide> if (typeof require !== 'undefined') {
<ide> module.exports = withLess({
<ide> lessLoaderOptions: {
<ide> javascriptEnabled: true,
<del> modifyVars: themeVariables // make your antd custom effective
<del> }
<add> modifyVars: themeVariables, // ma... | 7 |
PHP | PHP | update app tests | 4701a5a7aab18b96306cd2f6db2e2b62e19c27aa | <ide><path>lib/Cake/Core/App.php
<ide> use Cake\Utility\Inflector;
<ide>
<ide> /**
<del> * App is responsible for path management, class location and class loading.
<add> * App is responsible for resource location, and path management.
<ide> *
<del> * ### Adding paths
<del> *
<del> * You can add paths to the search i... | 2 |
Javascript | Javascript | simplify coroutines by making yields stateless | fd8d5f7a8acadda78238c612311c9bd7bde4cf66 | <ide><path>src/isomorphic/classic/element/ReactElementValidator.js
<ide> var ReactElementValidator = {
<ide> createElement: function(type, props, children) {
<ide> var validType =
<ide> typeof type === 'string' ||
<del> typeof type === 'function' ||
<del> type !== null && typeof type === 'object' ... | 7 |
Javascript | Javascript | use innerhtml not innertext in test | 633125fd0d219311da20d1429186e8b4ba8c77ce | <ide><path>src/core/__tests__/ReactMount-test.js
<ide> describe('ReactMount', function() {
<ide> expect(mockUnmount.mock.calls.length).toBe(0);
<ide>
<ide> ReactMount.renderComponent(<Component text="orange" key="A" />, container);
<del> expect(container.firstChild.innerText).toBe('orange');
<add> expect... | 1 |
Ruby | Ruby | improve compatibility for old formula | b36dcc4ffde9a4f7419e9f876eac6ee77aaf3338 | <ide><path>Library/Homebrew/compat/brewkit.rb
<add># here so that formula from the repo that are very old can still be installed
<add>
<add>require 'formula'
<add><path>Library/Homebrew/compat/compatibility.rb
<del><path>Library/Homebrew/compatibility.rb
<ide> def self.resolve_alias name
<ide> def fails_with_llvm msg... | 3 |
Text | Text | enrich the introduction for debug gem | 5292486aa08439dd523df7155c9a5b339a5c2adc | <ide><path>guides/source/debugging_rails_applications.md
<ide> Rails 7 includes the `debug` gem in the `Gemfile` of new applications generated
<ide> by CRuby. By default, it is ready in the `development` and `test` environments.
<ide> Please check its [documentation](https://github.com/ruby/debug) for usage.
<ide>
<ad... | 1 |
Python | Python | handle empty deque on errorhandler lookup | 348bf52188b9f7bef1096d8fe70edf2e62ea04a8 | <ide><path>flask/app.py
<ide> def find_handler(handler_map):
<ide> # __mro__
<ide> done = set()
<ide>
<del> while True:
<add> while queue:
<ide> cls = queue.popleft()
<ide> if cls in done:
<ide> continue
<ide><path>tests/... | 2 |
Ruby | Ruby | apply suggestions from code review | 8ddf9b37bdbf36c8c13941b343c53f86aac9b861 | <ide><path>Library/Homebrew/dev-cmd/bump.rb
<ide> def bump
<ide> raise UsageError, "`--limit` must be used with either `--formula` or `--cask`."
<ide> end
<ide>
<del> formulae_and_casks =
<del> if args.formula?
<del> args.named.to_formulae
<del> elsif args.cask?
<del> args.named.to... | 3 |
Go | Go | use object-literal for some structs | f0be4d126dacb19a35046536b041a5989ff0dc95 | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> func checkOverlap(nw *net.IPNet) error {
<ide> }
<ide>
<ide> func (n *network) restoreSubnetSandbox(s *subnet, brName, vxlanName string) error {
<del> sbox := n.sbox
<del>
<ide> // restore overlay osl sandbox
<del> Ifaces := make(map[string][]osl.IfaceOption)
... | 2 |
Java | Java | add an alwaysinclude property to tilesviewresolver | cfa3d358d5836bcfaad1f6ce9287ccf78ad7740f | <ide><path>spring-webmvc-tiles2/src/main/java/org/springframework/web/servlet/view/tiles2/TilesView.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide... | 5 |
Javascript | Javascript | add doc for refreshcontrol on the website | f5062d0840edff52c6a4c96ab14bb950a9bea018 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> var ScrollView = React.createClass({
<ide> /**
<ide> * A RefreshControl component, used to provide pull-to-refresh
<ide> * functionality for the ScrollView.
<add> *
<add> * See [RefreshControl](http://facebook.github.io/react-native/do... | 1 |
Python | Python | add cygwin to the x86 feature tests | e61028b7aa33872b9aa2259961eca2f888b301ce | <ide><path>numpy/core/tests/test_cpu_features.py
<ide> def load_flags_auxv(self):
<ide> )
<ide>
<ide> is_linux = sys.platform.startswith('linux')
<add>is_cygwin = sys.platform.startswith('cygwin')
<ide> machine = platform.machine()
<ide> is_x86 = re.match("^(amd64|x86|i386|i686)", machine, re.IGNORE... | 1 |
PHP | PHP | apply fixes from styleci | 5cd45bf3f173740b8987895701932986253987e6 | <ide><path>src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
<ide> public function compileAdd(Blueprint $blueprint, Fluent $command)
<ide> */
<ide> public function compilePrimary(Blueprint $blueprint, Fluent $command)
<ide> {
<del> return sprintf("alter table %s add constraint %s primary ... | 1 |
Text | Text | add betterment to companies list | 9331db0d7c7d307b2486e30e28f2c7fd91a5a254 | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [BBM](https://www.bbm.com/)
<ide> 1. [Bellhops](https://github.com/bellhops)
<ide> 1. [BelugaDB](https://belugadb.com) [[@fabio-nukui](https://github.com/fabio-nukui) & [@joao-sallaberry](http://github.com/joao-sallaberry) & [@lucianoviola](htt... | 1 |
Mixed | Go | return remote api errors as json | 322e2a7d059a81617b593cf6ece2cfd9f6d4ea03 | <ide><path>api/server/httputils/errors.go
<ide> import (
<ide> "strings"
<ide>
<ide> "github.com/Sirupsen/logrus"
<add> "github.com/docker/engine-api/types"
<add> "github.com/docker/engine-api/types/versions"
<add> "github.com/gorilla/mux"
<ide> )
<ide>
<ide> // httpStatusError is an interface
<ide> func GetHTTPErr... | 13 |
PHP | PHP | adjust type hint and documentation | 592b03cb6a32094402a36d289d81de5c7b901def | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function _csrfField()
<ide> * Closes an HTML form, cleans up values set by FormHelper::create(), and writes hidden
<ide> * input fields where appropriate.
<ide> *
<del> * @param array $secureAttributes will be passed as html attributes into th... | 1 |
Python | Python | add capture argument to project_run | f319d2765f99ef0d7aee49cd688e1af8757576bc | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy"
<del>__version__ = "3.0.0"
<add>__version__ = "3.0.1.dev0"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility.... | 3 |
Text | Text | use kbd element in readline doc | 6c4239bea786a3e231943c283fe236832987939d | <ide><path>doc/api/readline.md
<ide> The `'close'` event is emitted when one of the following occur:
<ide> * The `rl.close()` method is called and the `readline.Interface` instance has
<ide> relinquished control over the `input` and `output` streams;
<ide> * The `input` stream receives its `'end'` event;
<del>* The `... | 1 |
Ruby | Ruby | replace nokogiri with rexml | 2c4a7ae2cb0cf19cf1542ad7f7a985eb964e5d38 | <ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "bundle_version"
<del>require_relative "page_match"
<ide>
<ide> module Homebrew
<ide> module Livecheck
<ide> def self.match?(url)
<ide>
<ide> sig { params(content: String).returns(T.nilable(Ite... | 1 |
Javascript | Javascript | replace soft tags with hard tabs | 7208eb816b10b291540ae7905555697a4a6a1431 | <ide><path>examples/jsm/loaders/GLTFLoader.js
<ide> var GLTFLoader = ( function () {
<ide>
<ide> parser.fileLoader.setRequestHeader( this.requestHeader );
<ide>
<del> for ( var i = 0; i < this.pluginCallbacks.length; i ++ ) {
<add> for ( var i = 0; i < this.pluginCallbacks.length; i ++ ) {
<ide>
<ide> ... | 1 |
Python | Python | change the default max_fpn_level to 6 | 2e13b9a71de6b1d5032c755a35cc15e4cf6f08b6 | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> def __init__(self,
<ide> batch_norm_trainable=False,
<ide> weight_decay=0.0,
<ide> fpn_min_level=2,
<del> fpn_max_level=7,
<add> fpn_max_level=6... | 1 |
Text | Text | update aspectratio documentation | 58e736a0b98e021e5ac1d340aa52d63eb3606573 | <ide><path>docs/configuration/responsive.md
<ide> Namespace: `options`
<ide> | ---- | ---- | ------- | -----------
<ide> | `responsive` | `boolean` | `true` | Resizes the chart canvas when its container does ([important note...](#important-note)).
<ide> | `maintainAspectRatio` | `boolean` | `true` | Maintain the origin... | 1 |
Javascript | Javascript | change webwiew to webview | 5712e0c3eb7a84be15edac4c352ba5d7f895216a | <ide><path>Libraries/Components/WebView/WebView.android.js
<ide> var WebView = React.createClass({
<ide>
<ide> goForward: function() {
<ide> UIManager.dispatchViewManagerCommand(
<del> this.getWebWiewHandle(),
<add> this.getWebViewHandle(),
<ide> UIManager.RCTWebView.Commands.goForward,
<ide> ... | 1 |
Text | Text | update 10.11 expectation | 2e808ff2e33797247b40440e8797bd2500095d1f | <ide><path>docs/Xcode.md
<ide> Tools available for your platform:
<ide> 10.8 | 5.1.1 | April 2014
<ide> 10.9 | 6.2 | 6.2
<ide> 10.10 | 7.2.1 | 7.2
<del> 10.11 | 7.3.1 | 7.3
<add> 10.11 | 8.0 | 8.0
<ide> 10.12 | 8.0 | 8.0
<ide>
<ide> | 1 |
Javascript | Javascript | use const where applicable in dllmodulefactory | 90aec4e155594490334eb9fac01175deeefa4dbc | <ide><path>lib/DllModuleFactory.js
<ide> class DllModuleFactory extends Tapable {
<ide> super();
<ide> }
<ide> create(data, callback) {
<del> let dependency = data.dependencies[0];
<add> const dependency = data.dependencies[0];
<ide> callback(null, new DllModule(data.context, dependency.dependencies, dependency... | 1 |
PHP | PHP | fix | afec9cda4cd292dc8a2294e72627fcb25f591d93 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> protected function nestWhereSlice($whereSlice)
<ide> /**
<ide> * Get the underlying query builder instance.
<ide> *
<del> * @return \Illuminate\Database\Query\Builder|static
<add> * @return \Illuminate\Database\Query\Builder
<ide> ... | 1 |
Python | Python | remove duplicate code | 3ccff0d400ffd1b0c5074e15afb2b1f2af0e7b44 | <ide><path>src/transformers/models/t5/modeling_t5.py
<ide> def forward(
<ide> )
<ide>
<ide> hidden_states = encoder_outputs[0]
<del> if self.model_parallel:
<del> torch.cuda.set_device(self.decoder.first_device)
<add>
<ide> # Set device for model parallelism
<ide> ... | 1 |
Text | Text | use serial comma in report docs | 7f4e9ecb52690ef80fd5a67f1fc1de9ed901a3a5 | <ide><path>doc/api/report.md
<ide>
<ide> Delivers a JSON-formatted diagnostic summary, written to a file.
<ide>
<del>The report is intended for development, test and production use, to capture
<add>The report is intended for development, test, and production use, to capture
<ide> and preserve information for problem ... | 1 |
Python | Python | fix lint violations | bfda9fc09527b8b8adb2c0d33462da9eee8ef537 | <ide><path>libcloud/utils/misc.py
<ide> from libcloud.common.providers import set_driver as _set_driver
<ide> # Imported for backward compatibility
<ide> # noinspection PyProtectedMember
<del>from libcloud.utils.retry import (Retry,
<del> DEFAULT_DELAY, DEFAULT_TIMEOUT, DEFAULT_BACKOFF,... | 2 |
PHP | PHP | fix digestauthenticate test | 417c137d1143f6faedbe7508c1a7939ad554ab6c | <ide><path>lib/Cake/Controller/Component/Auth/DigestAuthenticate.php
<ide> class DigestAuthenticate extends BasicAuthenticate {
<ide> *
<ide> * - `fields` The fields to use to identify a user by.
<ide> * - `userModel` The model name of the User, defaults to User.
<add> * - `userFields` Array of fields to retrieve fr... | 1 |
Ruby | Ruby | handle tap not found and suggest update | 30e409adfd1b1b996eb3a7e6c482dd244bb84b95 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search_tap user, repo, rx
<ide> end
<ide> end
<ide> results
<del> rescue GitHub::Error, Utils::JSON::Error
<add> rescue OpenURI::HTTPError, GitHub::Error, Utils::JSON::Error
<add> opoo <<-EOS.undent
<add> Failed to search tap: #{user}/#{repo}. ... | 1 |
Go | Go | use const for file permissions | 60ace31be078834605ee318842f32a0193083ebb | <ide><path>libnetwork/sandbox_dns_unix.go
<ide> import (
<ide>
<ide> const (
<ide> defaultPrefix = "/var/lib/docker/network/files"
<del> dirPerm = 0755
<del> filePerm = 0644
<add> dirPerm = 0o755
<add> filePerm = 0o644
<ide> )
<ide>
<ide> func (sb *sandbox) startResolver(restore bool) {
<ide> f... | 1 |
Python | Python | fix usability bugs in lookfor | 94f73b1613e37e7076da12cb51b42895fda99112 | <ide><path>numpy/lib/utils.py
<ide> import re
<ide>
<ide> from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype
<del>from numpy.core import product, ndarray
<add>from numpy.core import product, ndarray, ufunc
<ide>
<ide> __all__ = ['issubclass_', 'get_numpy_include', 'issubsctype', 'issubdtype',
<i... | 1 |
Text | Text | remove unneeded `async` in docs. | 1fd00899c75cbff9aa9ce269d8c0a4a04a8cbff7 | <ide><path>docs/api-reference/next/server.md
<ide> The `waitUntil()` method can be used to prolong the execution of the function if
<ide> import { NextResponse } from 'next/server'
<ide> import type { NextFetchEvent, NextRequest } from 'next/server'
<ide>
<del>export async function middleware(req: NextRequest, event: ... | 1 |
Java | Java | add handlerprovider interface | 84089bf3968443e4f6bb9239dace0692734d6578 | <ide><path>spring-websocket/src/main/java/org/springframework/sockjs/AbstractSockJsSession.java
<ide> import org.apache.commons.logging.LogFactory;
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.websocket.CloseStatus;
<add>import org.springframework.websocket.HandlerProvider;
<ide> impor... | 34 |
Ruby | Ruby | run a single eventmachine timer to send heartbeats | b099a7d2705428a4434813079f399dec54ec7611 | <ide><path>lib/action_cable/connection.rb
<ide> module ActionCable
<ide> module Connection
<ide> autoload :Authorization, 'action_cable/connection/authorization'
<ide> autoload :Base, 'action_cable/connection/base'
<del> autoload :Heartbeat, 'action_cable/connection/heartbeat'
<ide> autoload :Identific... | 6 |
Javascript | Javascript | remove old jsc workarounds in hmrclient | 02633fe522c753d1ee995430e29ea3e913a0576e | <ide><path>Libraries/Utilities/HMRClient.js
<ide> 'use strict';
<ide>
<ide> const DevSettings = require('./DevSettings');
<del>const Platform = require('./Platform');
<ide> const invariant = require('invariant');
<del>
<ide> const MetroHMRClient = require('metro/src/lib/bundle-modules/HMRClient');
<add>const Platform ... | 1 |
Java | Java | use array.clone() instead of manual array creation | f2b3953d765782f5bc8bc0027634a32bd2aab5c8 | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/ReflectiveMethodInvocation.java
<ide> public MethodInvocation invocableClone() {
<ide> Object[] cloneArguments = this.arguments;
<ide> if (this.arguments.length > 0) {
<ide> // Build an independent copy of the arguments array.
<del> cloneArg... | 4 |
Go | Go | add test suite for logreaders | 9aa9d6fafc3af407317ace630d2ab97f8b89d25b | <ide><path>daemon/logger/jsonfilelog/read_test.go
<ide> import (
<ide> "time"
<ide>
<ide> "github.com/docker/docker/daemon/logger"
<add> "github.com/docker/docker/daemon/logger/loggertest"
<ide> "gotest.tools/v3/assert"
<ide> )
<ide>
<ide> func TestUnexpectedEOF(t *testing.T) {
<ide> assert.Error(t, err, io.EOF.E... | 3 |
PHP | PHP | remove unnecessary casting | d4efcb7e9bbc1f6edff9dbba5c4a10e29533359e | <ide><path>src/ORM/EagerLoader.php
<ide> public function clearContain(): void
<ide> */
<ide> public function enableAutoFields(bool $enable = true)
<ide> {
<del> $this->_autoFields = (bool)$enable;
<add> $this->_autoFields = $enable;
<ide>
<ide> return $this;
<ide> }
<ide><path>sr... | 2 |
Python | Python | move flask hook registration to end of file | e8b49d7ebedf7818ff1ba9c9b8595fc6dc13ba67 | <ide><path>airflow/www/views.py
<ide> def render_template(self, *args, **kwargs):
<ide> )
<ide>
<ide>
<del>def add_user_permissions_to_dag(sender, template, context, **extra):
<del> """
<del> Adds `.can_edit`, `.can_trigger`, and `.can_delete` properties
<del> to DAG based on current user's permissio... | 1 |
PHP | PHP | add missing fallback to put method | a091aec8add9f7a603918e60873a242cc7e84cdc | <ide><path>src/Illuminate/Contracts/Cache/Repository.php
<ide> public function pull($key, $default = null);
<ide> * @param \DateTimeInterface|\DateInterval|float|int|null $minutes
<ide> * @return bool
<ide> */
<del> public function put($key, $value, $minutes);
<add> public function put($key, $val... | 1 |
Javascript | Javascript | fix position of @module doc for engine | 574dccda8ba30dc3dac8701ccce0f831690aad0a | <ide><path>packages/@ember/engine/index.js
<del>/**
<del>@module @ember/engine
<del>*/
<del>
<ide> export { getEngineParent, setEngineParent } from './lib/engine-parent';
<ide>
<ide> import { canInvoke } from '@ember/-internals/utils';
<ide> function props(obj) {
<ide> return properties;
<ide> }
<ide>
<add>/**
<add... | 1 |
Ruby | Ruby | remove missing check | 1376b9e41c6483b36d5e12e7b8aa30c48091c996 | <ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb
<ide> class Checks
<ide> def development_tools_checks
<ide> %w[
<ide> check_for_unsupported_macos
<del> check_for_bad_install_name_tool
<ide> check_for_installed_developer_tools
<ide> check_xcode_license_approve... | 1 |
PHP | PHP | remove invalid @param | 9413c7d3178066acdcc0d859a500f79d28da5677 | <ide><path>tests/TestCase/ORM/MarshallerTest.php
<ide> public function testMergeInvalidAssociation(): void
<ide>
<ide> /**
<ide> * Test merge when fields contains an association.
<del> *
<del> * @param $fields
<ide> */
<ide> public function testMergeWithSingleAssociationAndFields(): void
<ide... | 1 |
Ruby | Ruby | define hash on duration | 6c57c78671ef49922643361cfb0a9287986be904 | <ide><path>activesupport/lib/active_support/duration.rb
<ide> def eql?(other)
<ide> Duration === other && other.value.eql?(value)
<ide> end
<ide>
<add> def hash
<add> @value.hash
<add> end
<add>
<ide> def self.===(other) #:nodoc:
<ide> other.is_a?(Duration)
<ide> rescue ::NoMethodErr... | 2 |
Text | Text | fix changelog entry [ci skip] | 1f95e5b14d49390be7d0459e7479be985f499c86 | <ide><path>railties/CHANGELOG.md
<del>* Fix minitest rails plugin. The custom reporters are added only if needed. This will fix conflicts with others plugins. *Kevin Robatel*
<add>* Fix minitest rails plugin.
<add>
<add> The custom reporters are added only if needed.
<add>
<add> This will fix conflicts with o... | 1 |
Text | Text | add jakobjingleheimer to collaborators list | b67300f561c7e5f8864bd8c7f1b2fe6ead9f1739 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Fedor Indutny** <<fedor@indutny.com>>
<ide> * [JacksonTian](https://github.com/JacksonTian) -
<ide> **Jackson Tian** <<shyvo1987@gmail.com>>
<add>* [JakobJingleheimer](https://github.com/JakobJingleheimer) -
<add> *... | 1 |
PHP | PHP | apply fixes from styleci | 5f82c995f8163cea04ccffa813da5cccf8916152 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Http\JsonResponse;
<ide> use Illuminate\Support\Facades\Auth;
<add>use Illuminate\Filesystem\Filesystem;
<ide> use Illuminate\Http\RedirectResponse;
<ide> use Whoops\Handler\PrettyPageHandler;
<del>use ... | 1 |
Go | Go | add unit test for cmdattach | ad1e8a9b0f0e57327d71827c1161c21f48910e42 | <ide><path>commands_test.go
<ide> func TestRunDisconnect(t *testing.T) {
<ide> t.Fatalf("/bin/cat is still running after closing stdin")
<ide> }
<ide> }
<add>
<add>// Expected behaviour, the process stays alive when the client disconnects
<add>func TestAttachDisconnect(t *testing.T) {
<add> runtime, err := newTestRu... | 1 |
PHP | PHP | simplify array creation | bbd95a47e1e065c821037413e5a482eb2a5cd18a | <ide><path>src/Illuminate/Auth/Guard.php
<ide> protected function fireAttemptEvent(array $credentials, $remember, $login)
<ide> {
<ide> if ($this->events)
<ide> {
<del> $payload = array_values(compact('credentials', 'remember', 'login'));
<add> $payload = array($credentials, $remember, $login);
<ide>
<ide> ... | 1 |
Mixed | Ruby | raise argumenterror for bad strptime arguments | 424e961be776d9918f39660d43439fc1973f680e | <ide><path>activesupport/CHANGELOG.md
<add>* Fix `ActiveSupport::TimeZone#strptime`. Now raises `ArgumentError` when the
<add> given time doesn't match the format. The error is the same as the one given
<add> by Ruby's `Date.strptime`. Previously it raised
<add> `NoMethodError: undefined method empty? for ni... | 3 |
Text | Text | add docs for duplex.allowhalfopen property | d14878dc7c6d23038b59e837fcd61f8b35fced30 | <ide><path>doc/api/stream.md
<ide> Examples of `Duplex` streams include:
<ide> * [zlib streams][zlib]
<ide> * [crypto streams][crypto]
<ide>
<add>##### `duplex.allowHalfOpen`
<add><!-- YAML
<add>added: v0.9.4
<add>-->
<add>
<add>* {boolean}
<add>
<add>If `false` then the stream will automatically end the writable side... | 1 |
Text | Text | add pending-deprecation to collaborator_guide | c276851b2f0074a7402115d5336737f84726fa9c | <ide><path>COLLABORATOR_GUIDE.md
<ide> Node.js uses three Deprecation levels:
<ide> being staged for deprecation in a future Node.js major release. An explicit
<ide> notice indicating the deprecated status is added to the API documentation
<ide> but no functional changes are implemented in the code. There will be... | 1 |
Ruby | Ruby | make use of new formula specs | b6d44dd38a69889c3e8f380d099fc9cae0decfb8 | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch
<ide> puts "Fetching: #{bucket * ', '}" if bucket.size > 1
<ide>
<ide> bucket.each do |f|
<del> if ARGV.include? "--force" or ARGV.include? "-f"
<del> where_to = f.cached_download
<del> FileUtils.rm_rf where_to if File.exist? where_to
... | 1 |
Go | Go | fix pre-1.22 docker stats | d2c04f844b8258d712da4b8feac25df7590b037c | <ide><path>daemon/stats.go
<ide> func (daemon *Daemon) ContainerStats(prefixOrName string, config *ContainerStats
<ide> return nil
<ide> }
<ide>
<del> statsJSON := getStatJSON(v)
<add> var statsJSON interface{}
<add> statsJSONPost120 := getStatJSON(v)
<ide> if config.Version.LessThan("1.21") {
<ide> ... | 1 |
Text | Text | add breakpoint section | 03d76fb40a21bcef181335a5c0ebf75cf27bde43 | <ide><path>guides/source/debugging_rails_applications.md
<ide> instance variables:
<ide> class variables: raise_on_open_redirects
<ide> ```
<ide>
<add>### Breakpoints
<add>
<add>There are many ways to insert and trigger a breakpoint in the debugger. In additional to adding debugging statements (e.g. `debugger`) direct... | 1 |
Text | Text | add inline code blocks to for i18n | 167f93df767e3138fa169b8616c866a5f56831db | <ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/jump-straight-to-the-content-using-the-main-element.md
<ide> By default, a browser renders these elements similarly to the humble `div`. Howe
<ide>
<ide> The `main` element is used to wrap (you guessed it) the main content, and the... | 2 |
PHP | PHP | upgrade shell - option to specify extensions | c1d99017e97da98e94702b89740492e539bf7dd4 | <ide><path>cake/console/shells/upgrade.php
<ide> protected function _filesRegexpUpdate($patterns) {
<ide> $this->_paths = array(App::pluginPath($this->params['plugin']));
<ide> }
<ide>
<del> $this->_findFiles();
<add> $extensions = 'php|ctp|thtml|inc|tpl';
<add> if (!empty($this->params['ext'])) {
<add> $ext... | 1 |
Text | Text | add a link to some slides | 7c9f730f6b93ee5ea8951576f835ee99c244e4c3 | <ide><path>samples/languages/java/README.md
<ide> # TensorFlow for Java: Examples
<ide>
<ide> Examples using the TensorFlow Java API.
<add>
<add>- [Slides](https://docs.google.com/presentation/d/e/2PACX-1vQ6DzxNTBrJo7K5P8t5_rBRGnyJoPUPBVOJR4ooHCwi4TlBFnIriFmI719rDNpcQzojqsV58aUqmBBx/pub?start=false&loop=false&delayms=... | 1 |
Python | Python | add comment clarifying what languages does | bc87b815cc34d375e1a4b4c9b54c296691cee237 | <ide><path>spacy/tests/conftest.py
<ide> import os
<ide> import pytest
<ide>
<del>
<add># These languages get run through generic tokenizer tests
<ide> LANGUAGES = [English, German, Spanish, Italian, French, Portuguese, Dutch,
<ide> Swedish, Hungarian, Finnish, Bengali, Norwegian]
<ide> | 1 |
Ruby | Ruby | address ruby warnings | 5a0dddda0980cefbaf80e9f8f10369f62a1d19d8 | <ide><path>railties/test/application/integration_test_case_test.rb
<ide> class MailerIntegrationTest < ActionDispatch::IntegrationTest
<ide>
<ide> output = Dir.chdir(app_path) { `bin/rails test 2>&1` }
<ide> assert_equal 0, $?.to_i, output
<del> assert_match /0 failures, 0 errors/, output
<add> a... | 2 |
Javascript | Javascript | remove switch-replace residue | 444b33584df0de604cf62744d6daa8f01aca34d5 | <ide><path>benchmark/http_simple.js
<ide> Buffer = require("buffer").Buffer;
<ide>
<ide> port = parseInt(process.env.PORT || 8000);
<ide>
<del>var console.log = require("sys").console.log;
<del>
<ide> var old = (process.argv[2] == 'old');
<ide>
<ide> console.log('pid ' + process.pid); | 1 |
Ruby | Ruby | remove useless method | 93d99c55bdeb837641fe10ee6fd961f62c89f772 | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def create_javascript_files
<ide> build(:javascripts) unless api?
<ide> end
<ide>
<del> def create_images_directory
<del> build(:images) unless api?
<del> end
<del>
<ide> def create_bin_files
<ide> ... | 1 |
Text | Text | add whitespaces for consistent styling | 82000111dc79e525aafa11debf2e241adba6add0 | <ide><path>CONTRIBUTING.md
<del>#Contributing to AngularJS
<add># Contributing to AngularJS
<ide>
<ide> We'd love for you to contribute to our source code and to make AngularJS even better than it is
<ide> today! Here are the guidelines we'd like you to follow:
<ide> For large fixes, please build and test the document... | 1 |
Ruby | Ruby | suppress mysql_config errors | 2c64b9d1270b0ef468f13152c9acd68e0bb49fd6 | <ide><path>railties/lib/rails_generator/generators/applications/app/app_generator.rb
<ide> def initialize(runtime_args, runtime_options = {})
<ide> super
<ide> usage if args.empty?
<ide> @destination_root = args.shift
<del> @socket = `mysql_config --socket`.strip
<add> @socket = `mysql_config --socket... | 1 |
Javascript | Javascript | ignore ext_frag_depth for webgl 2.0 | b1f0db4ea9a23fe12375d9058e7ff515df827a14 | <ide><path>src/renderers/webgl/WebGLExtensions.js
<ide> function WebGLExtensions( gl ) {
<ide> 'OES_texture_half_float',
<ide> 'OES_texture_half_float_linear',
<ide> 'OES_element_index_uint',
<del> 'OES_standard_derivatives' ].indexOf( name ) >= 0 ) {
<add> 'OES_standard_derivative... | 2 |
Java | Java | update javadoc of filepart#filename | 138f6bfd84d0a1d8aa13e8d1ea6832c5be1c8055 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/FilePart.java
<ide> /*
<del> * Copyright 2002-2018 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 n... | 2 |
Javascript | Javascript | add comments to infrastructure-log | ccf8bf53e25ba6a063a7f4387551f45bed389c9b | <ide><path>test/configCases/assets/delete-asset/infrastructure-log.js
<ide> module.exports = [
<add> // each time sets different assetsInfo object instance in webpack.config.js:54
<add> // this prevents hit in inmemory cache
<ide> /^Pack got invalid because of write to: TerserWebpackPlugin|bundle0\.js$/
<ide> ];
<ide>... | 2 |
Javascript | Javascript | ignore shell-quote on windows | ab5e606e1e0dfaac5c6dc5b22dabcc21bba2e802 | <ide><path>lint-staged.config.js
<ide> const escape = require('shell-quote').quote
<add>const isWin = process.platform === 'win32'
<ide>
<ide> module.exports = {
<ide> '**/*.{js,jsx}': filenames => {
<ide> const escapedFileNames = filenames
<del> .map(filename => `"${escape([filename])}"`)
<add> .map(f... | 1 |
Text | Text | update "net" section in node to io.js changes | bb766d2c47e8a416ce9f1e4f693f124afe857c1a | <ide><path>CHANGELOG.md
<ide> https://iojs.org/api/http.html
<ide> - Added `rawHeaders` and `rawTrailers` members on incoming message.
<ide> - Removed default chunked encoding on `DELETE` and `OPTIONS`.
<ide>
<add>### net
<add>
<add>https://iojs.org/api/net.html
<add>
<add>- Changed `net.Server.listen` such that, when... | 1 |
Text | Text | add changelog entry for | 88ba7056090717084b879002fb92f82ee34bcabf | <ide><path>actionpack/CHANGELOG.md
<add>* Add alias method `to_hash` to `to_h` for `cookies`.
<add> Add alias method `to_h` to `to_hash` for `session`.
<add>
<add> *Igor Kasyanchuk*
<ide>
<ide>
<ide> Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionpack/CHANGELOG.md) for previous... | 1 |
Ruby | Ruby | fix broken autocompleter test | 12e0cb7971676fc990f8be87246e8d9f2693aa7a | <ide><path>actionpack/test/template/java_script_macros_helper_test.rb
<ide> def test_auto_complete_result
<ide> def test_text_field_with_auto_complete
<ide> assert_match "<style>",
<ide> text_field_with_auto_complete(:message, :recipient)
<del> assert_dom_equal %(<input id=\"message_recipient\" name=\"me... | 1 |
Text | Text | fix broken links in the documentation | 70e97f96448a6af5ee314cf764b1cb609a9dedbf | <ide><path>docs/HandlingTouches.md
<ide> next: animations
<ide>
<ide> Users interact with mobile apps mainly through touch. They can use a combination of gestures, such as tapping on a button, scrolling a list, or zooming on a map.
<ide>
<del>React Native provides components to handle common gestures, such as taps an... | 2 |
Text | Text | fix weird word order in chaining-if-else | 8e1a2bb4999882b9945a461e476069055e8e096a | <ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.spanish.md
<ide> localeTitle: Encadenamiento en caso contrario
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> <code>if/else</code> declaraciones <code>if/else</code> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.