content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | remove unpurpose test | 6920c0201be8c7b42c82a32bd0622a77b7856660 | <ide><path>test/integration/repro-24783/next.config.js
<del>module.exports = {
<del> reactStrictMode: true,
<del>}
<ide><path>test/integration/repro-24783/pages/_app.js
<del>function MyApp({ Component, pageProps }) {
<del> return <Component {...pageProps} />
<del>}
<del>export default MyApp
<ide><path>test/integratio... | 5 |
Python | Python | optimize np.isin for boolean arrays | d2ea8190c769c1c546f6f3fed495772aeeb90f0b | <ide><path>numpy/lib/arraysetops.py
<ide> def in1d(ar1, ar2, assume_unique=False, invert=False):
<ide> # Ensure that iteration through object arrays yields size-1 arrays
<ide> if ar2.dtype == object:
<ide> ar2 = ar2.reshape(-1, 1)
<add> # Convert booleans to uint8 so we can use the fast integer algor... | 1 |
Go | Go | restore thread netns | d1e3705c1aa55bb7539b2155c2c1f95f20fe7497 | <ide><path>libnetwork/drivers/overlay/ov_network.go
<ide> type network struct {
<ide>
<ide> func init() {
<ide> reexec.Register("set-default-vlan", setDefaultVlan)
<add>
<add> // Lock main() to the initial thread to exclude the goroutines executing
<add> // func (*network).watchMiss() from being scheduled onto that t... | 1 |
Text | Text | remove setuseoldbridge from the documentation | ae9cc004b9d24bfafa88f75557536f392f115084 | <ide><path>docs/IntegrationWithExistingApps.md
<ide> You need to add some native code in order to start the React Native runtime and
<ide>
<ide> > If you are targetting Android version <5, use the `AppCompatActivity` class from the `com.android.support:appcompat` package instead of `Activity`.
<ide>
<del>> If you fin... | 1 |
PHP | PHP | replace a trigger_error with an exception | c2aa21ed87ad4fb5e84a89a6c102f45be837d3bd | <ide><path>lib/Cake/Controller/Component/CookieComponent.php
<ide> use Cake\Controller\ComponentRegistry;
<ide> use Cake\Controller\Controller;
<ide> use Cake\Core\Configure;
<add>use Cake\Error;
<ide> use Cake\Event\Event;
<ide> use Cake\Network\Request;
<ide> use Cake\Network\Response;
<ide> public function destroy()... | 1 |
Javascript | Javascript | guard navigator from dismatching gestures | 3812c74e7c7f1e847b118cfdc328fc36c31b5411 | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> },
<ide>
<ide> _matchGestureAction: function(eligibleGestures, gestures, gestureState) {
<del> if (!gestures) {
<add> if (!gestures || !eligibleGestures || !eligibleGestures.some) {
<ide> return... | 1 |
Python | Python | add remotemonitor callback | 5a1a00e69e5df1661c7d8e5359b8eca7db7f7208 | <ide><path>keras/callbacks.py
<ide> import theano.tensor as T
<ide> import numpy as np
<ide> import warnings
<del>import time
<add>import time, json
<ide> from collections import deque
<ide>
<ide> from .utils.generic_utils import Progbar
<ide> def on_epoch_end(self, epoch, logs={}):
<ide>
<ide>
<ide> class EarlyStop... | 1 |
Ruby | Ruby | fix broken tests | 147c20b62919aaebda0cafc0419154042b7a0c64 | <ide><path>actionmailer/test/base_test.rb
<ide> # encoding: utf-8
<ide> require 'abstract_unit'
<add>require 'set'
<add>
<ide> require 'active_support/time'
<ide>
<ide> require 'mailers/base_mailer'
<ide><path>railties/test/application/initializers/frameworks_test.rb
<ide> require "isolation/abstract_unit"
<add>requir... | 2 |
Text | Text | update description of pig-latin algorithm | 7304bdc0af85e2e5b0f0261cb4257ff9f2f92059 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/pig-latin.english.md
<ide> challengeType: 5
<ide> Translate the provided string to pig latin.
<ide> <a href="http://en.wikipedia.org/wiki/Pig_Latin" target="_blank">Pig Latin</a> takes the first conson... | 1 |
Javascript | Javascript | give useful error in solutionform | ab83d698f94ffa644bcd97fcf7e12bda68bc8734 | <ide><path>client/src/components/formHelpers/Form.test.js
<ide> test('should submit', () => {
<ide>
<ide> fireEvent.click(button);
<ide> expect(submit).toHaveBeenCalledTimes(1);
<del> expect(submit.mock.calls[0][0]).toEqual({ website: websiteValue });
<add> expect(submit.mock.calls[0][0].values).toEqual({ websit... | 11 |
PHP | PHP | correct property comment | 827c815cf1a6e33fe041f5d4b62ce8f0dd7f92ec | <ide><path>lib/Cake/Test/Case/Model/models.php
<ide> class TranslatedArticle extends CakeTestModel {
<ide> public $belongsTo = array('User');
<ide>
<ide> /**
<del> * belongsTo property
<add> * hasMany property
<ide> *
<ide> * @var array
<ide> */ | 1 |
Javascript | Javascript | fix code style | 059726d4cf426cae30dc9eee9f50bc216f18de24 | <ide><path>test/binCases/plugins/uglifyjsplugin-empty-args/test.js
<ide> "use strict";
<ide>
<ide> module.exports = function testAssertions(code, stdout, stderr) {
<del> code.should.be.exactly(0);
<add> code.should.be.exactly(0);
<ide>
<del> stdout.should.be.ok();
<del> stdout[3].should.containEql("Hash: ");
<del>... | 2 |
Ruby | Ruby | add tap audits for audit exceptions | fe1c7c16b0d2df1a6e9e85dbb5f4bdec93971e84 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> options[:except_cops] = [:FormulaAuditStrict]
<ide> end
<ide>
<add> # Run tap audits first
<add> if args.tap
<add> tap = Tap.fetch(args.tap)
<add> ta = TapAuditor.new(tap, options)
<add> ta.audit
<add>
<add> if ta.pr... | 1 |
PHP | PHP | add first draft of schema data | b65a408946d3f29c4c40e322ca00905207656390 | <ide><path>tests/schema.php
<ide> * features of the Database package.
<ide> */
<ide> return [
<add> [
<add> 'table' => 'binary_uuid_items',
<add> 'columns' => [
<add> 'id' => [
<add> 'type' => 'binaryuuid',
<add> ],
<add> 'name' => [
<add> ... | 1 |
PHP | PHP | add deprecation warnings to i18n package | d5fcf2745d2dce1ad58fcf896d27a835233ec570 | <ide><path>src/I18n/FrozenTime.php
<ide> public function wasWithinLast($timeInterval)
<ide> {
<ide> $tmp = trim($timeInterval);
<ide> if (is_numeric($tmp)) {
<add> deprecationWarning(
<add> 'Passing int/numeric string into FrozenTime::wasWithinLast() is deprecated. ' .
<add... | 7 |
Ruby | Ruby | use full name in whitelist | 2e74e50f822c9f8e74b418f83c2df2acee3a981c | <ide><path>Library/Homebrew/rubocops/conflicts.rb
<ide> class Conflicts < FormulaCop
<ide> "Use `keg_only :versioned_formula` instead."
<ide>
<ide> WHITELIST = %w[
<del> bash-completion@
<add> bash-completion@2
<ide> ].freeze
<ide>
<ide> def audit_formula(_node,... | 1 |
Javascript | Javascript | add router support for qp meta not being present | 100dc174af0931922379ec993a75a63b369e1f51 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> import EmberLocation from '../location/api';
<ide> import {
<ide> routeArgs,
<ide> getActiveTargetName,
<del> stashParamNames,
<ide> calculateCacheKey
<ide> } from '../utils';
<ide> import RouterState from './router_state';
<ide> const EmberRouter = Em... | 1 |
Ruby | Ruby | remove unused global define | b2ae884e27df98b05e19fa1fa04988d069bef4db | <ide><path>Library/Homebrew/brew.h.rb
<ide> FORMULA_META_FILES = %w[README README.md ChangeLog COPYING LICENSE LICENCE COPYRIGHT AUTHORS]
<ide> PLEASE_REPORT_BUG = "#{Tty.white}Please report this bug at #{Tty.em}http://github.com/mxcl/homebrew/issues#{Tty.reset}"
<del>HOMEBREW_RECOMMENDED_GCC = 5577
<ide>
<ide> def ch... | 1 |
Text | Text | improve issue templates | 062b5d41c1b615d12f6e33f8431111f84425287c | <ide><path>.github/ISSUE_TEMPLATE/Bug-Report.md
<ide> name: Bug Report
<ide> about: Is something wrong with Celery?
<ide> ---
<del>
<add><!--
<add>Please fill this template entirely and do not erase parts of it.
<add>We reserve the right to close without a response
<add>bug reports which are incomplete.
<add>-->
<ide> ... | 5 |
Ruby | Ruby | pull ternary out of hash literal | c0c5298ae5cf12f4a058732072d55ba3a6a02d77 | <ide><path>Library/Contributions/cmd/brew-gist-logs.rb
<ide> def gist_logs f
<ide>
<ide> def load_logs name
<ide> logs = {}
<del> dir = (HOMEBREW_LOGS/name)
<add> dir = HOMEBREW_LOGS/name
<ide> dir.children.sort.each do |file|
<del> logs[file.basename.to_s] = {:content => (file.size == 0 ? "empty log" : file.... | 1 |
Java | Java | add webclient create() and build() static methods | 123ee5f2dab22f1148272a9e1a852cd474b233a5 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClientBuilder.java
<ide> class DefaultWebClientBuilder implements WebClient.Builder {
<ide> private MultiValueMap<String, String> defaultCookies;
<ide>
<ide>
<add> public DefaultWebClientBuilder() {
<add> this(new Def... | 2 |
Ruby | Ruby | fix relocation of frameworks | 6f5307fbd91670ac9395a4190a83e7d82211379d | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> def fixed_name(file, bad_name)
<ide> "@loader_path/#{bad_name}"
<ide> elsif file.mach_o_executable? && (lib + bad_name).exist?
<ide> "#{lib}/#{bad_name}"
<del> elsif (abs_name = find_dylib(Pathname.new(bad_name).basename)) && abs_name.exist?
<add> ... | 1 |
PHP | PHP | add docblocks, shorten lines | 193f35b3f243b9444a789dc9835c56a4025bdc26 | <ide><path>src/View/Helper/UrlHelper.php
<ide> public function build($url = null, $full = false)
<ide> return h(Router::url($url, $full));
<ide> }
<ide>
<add> /**
<add> * Generate URL for given image file. Depending on options passed provides full URL
<add> * with domain name. Also calls Helper:... | 1 |
Text | Text | add a break between expected and actual | 641a721ff613951e3e9e11596838b16120b9842a | <ide><path>ISSUE_TEMPLATE.md
<ide> 3. [and so on...]
<ide>
<ide> **Expected:** [What you expected to happen]
<add>
<ide> **Actual:** [What actually happened]
<ide>
<ide> ### Versions | 1 |
Python | Python | add missing session.commit() and test | 423a382678deac5cb161d38e9266ce47b5666344 | <ide><path>airflow/models/skipmixin.py
<ide> def skip_all_except(
<ide> self._set_state_to_skipped(
<ide> dag_run, ti.execution_date, skip_tasks, session=session
<ide> )
<add> # For some reason, session.commit() needs to happen before xcom_push.
<add> ... | 2 |
Text | Text | note documentation license | 7ba19f76975228861dbf75c8dbe40d499e4a98db | <ide><path>README.md
<ide> Homebrew was originally created by [Max Howell](https://github.com/mxcl).
<ide>
<ide> ## License
<ide> Code is under the [BSD 2 Clause (NetBSD) license](https://github.com/Homebrew/homebrew/tree/master/LICENSE.txt).
<add>Documentation is under the [Creative Commons Attribution license](https... | 1 |
Javascript | Javascript | add header to example | b186709003954cb53d25d3371fed85480a0d5e2f | <ide><path>src/ng/compile.js
<ide> * }
<ide> * ```
<ide> *
<del> * Below is an example using `$compileProvider`.
<add> * ## Example
<ide> *
<ide> * <div class="alert alert-warning">
<ide> * **Note**: Typically directives are registered with `module.directive`. The example below is | 1 |
Javascript | Javascript | fix a little typo | 6a7b37ab68e6612cbda567aaef790cf9d0c75b59 | <ide><path>fonts.js
<ide> var Type1Parser = function() {
<ide> var index = parseInt(getToken());
<ide> var glyph = getToken();
<ide>
<del> if (!properties.differences[j]) {
<add> if (!properties.encoding[index]) {
<ide> var c... | 1 |
Javascript | Javascript | add $route.parent for setting parentscope | d7686a429c43fd031a0d39788973f726d74bdb33 | <ide><path>src/services.js
<ide> angularServiceInject('$route', function(location) {
<ide> */
<ide> onChange: bind(onChange, onChange.push),
<ide>
<add> /**
<add> * @workInProgress
<add> * @ngdoc method
<add> * @name angular.service.$route#parent
<add> * @methodO... | 2 |
Javascript | Javascript | make findcomponentroot faster with more nodecache | d96c6914c7ed4efdabea8edc11d0c8ba64acb42b | <ide><path>src/core/ReactInstanceHandles.js
<ide> function getFirstCommonAncestorID(oneID, twoID) {
<ide>
<ide> /**
<ide> * Traverses the parent path between two IDs (either up or down). The IDs must
<del> * not be the same, and there must exist a parent path between them.
<add> * not be the same, and there must exis... | 2 |
Go | Go | remove sysinitpath, lxc leftover | 1b726b29b21bbc1aebfe0f6b71dfd61145bdd6af | <ide><path>daemon/daemon.go
<ide> func (c *contStore) List() []*Container {
<ide> type Daemon struct {
<ide> ID string
<ide> repository string
<del> sysInitPath string
<ide> containers *contStore
<ide> execCommands *exec.Store
<ide> ta... | 7 |
Go | Go | add err check before getting term | 73bf9b5c195170b3d71f86b285ac12e50d26ef51 | <ide><path>daemon/execdriver/lxc/driver.go
<ide> func (d *driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, startCallba
<ide> dataPath = d.containerDir(c.ID)
<ide> )
<ide>
<add> container, err := d.createContainer(c)
<add> if err != nil {
<add> return execdriver.ExitStatus{ExitCode: -1}, err
<add> }
<add... | 1 |
Python | Python | fix print styling | 1c4df1b20f8a2eda361277c3313c5963962cf7ab | <ide><path>autoencoder/AdditiveGaussianNoiseAutoencoderRunner.py
<ide> def get_random_block_from_data(data, batch_size):
<ide>
<ide> # Display logs per epoch step
<ide> if epoch % display_step == 0:
<del> print("Epoch: ", '%d,' % (epoch + 1),
<del> "Cost: ", "{:.9f}".format(avg_cost))
<add>... | 1 |
Text | Text | remove errors that were never released | bf772896fe3621e6b2324c7dd610dfbd79f63ab9 | <ide><path>doc/api/errors.md
<ide> removed: v10.0.0
<ide> Used when an attempt is made to use a `zlib` object after it has already been
<ide> closed.
<ide>
<del>### Other error codes
<del>
<del>These errors have never been released, but had been present on master between
<del>releases.
<del>
<del><a id="ERR_ENTRY_TYPE... | 1 |
Text | Text | add language to further elaborate on frameworks | 1a12a567a09ef3d477fea9532b9ac28d510d3163 | <ide><path>guide/english/css/index.md
<ide> and `yellow` is the style we want to give it.
<ide> We use the `<style>` and `</style>` tags to define the CSS in the HTML file.
<ide>
<ide> ### Popular CSS Frameworks 2018
<del>Frameworks exist to make the more complex parts of css easier and more efficient for developers t... | 1 |
PHP | PHP | remove test for deleted command | 33903c2c96d8d0ebdb58b77330d300e8fc522d3c | <ide><path>tests/TestCase/Command/CompletionCommandTest.php
<ide> public function testCommands()
<ide> 'routes',
<ide> 'schema_cache',
<ide> 'server',
<del> 'upgrade',
<ide> 'version',
<ide> 'abort',
<ide> 'auto_load_model', | 1 |
PHP | PHP | use path for group directly | 3e661aa9f54f2a4dc643464bea452367b3406499 | <ide><path>app/Providers/RouteServiceProvider.php
<ide> protected function mapWebRoutes()
<ide> {
<ide> Route::middleware('web')
<ide> ->namespace($this->namespace)
<del> ->group(function ($router) {
<del> require base_path('routes/web.php');
<del> });
<a... | 1 |
Javascript | Javascript | handle long files reading in fs.promises | 11819c7773d123efb8db836aefc73bde8c5f431a | <ide><path>lib/fs/promises.js
<ide> async function readFileHandle(filehandle, options) {
<ide>
<ide> const chunks = [];
<ide> const chunkSize = Math.min(size, 16384);
<del> const buf = Buffer.alloc(chunkSize);
<ide> let totalRead = 0;
<add> let endOfFile = false;
<ide> do {
<add> const buf = Buffer.alloc(... | 2 |
Text | Text | clarify operation of napi_cancel_async_work | 1b28022de0556350ed75137e0d94446441ea5544 | <ide><path>doc/api/n-api.md
<ide> NAPI_EXTERN napi_status napi_cancel_async_work(napi_env env,
<ide>
<ide> Returns `napi_ok` if the API succeeded.
<ide>
<del>This API cancels a previously allocated work, provided
<del>it has not yet been queued for execution. After this function is called
<add>This API cancels queued... | 1 |
Javascript | Javascript | change fixtures.readsync to fixtures.readkey | 84bb35b4f041684f57140efe40316861e29be41c | <ide><path>test/parallel/test-tls-getprotocol.js
<ide> const clientConfigs = [
<ide>
<ide> const serverConfig = {
<ide> secureProtocol: 'TLS_method',
<del> key: fixtures.readSync('/keys/agent2-key.pem'),
<del> cert: fixtures.readSync('/keys/agent2-cert.pem')
<add> key: fixtures.readKey('agent2-key.pem'),
<add> c... | 2 |
Ruby | Ruby | remove mocha from actionpack tests | 81bc771e7cccb8a43f067a89f721f83798e63483 | <ide><path>actionpack/test/abstract_unit.rb
<ide> def jruby_skip(message = '')
<ide> skip message if defined?(JRUBY_VERSION)
<ide> end
<ide>
<del>require 'mocha/setup' # FIXME: stop using mocha
<ide> require 'active_support/testing/method_call_assertions'
<ide>
<ide> class ForkingExecutor
<ide><path>actionpack/test... | 8 |
Ruby | Ruby | add headless browser support in api docs [ci skip] | 72aca5231f8492b17e0185e4d98b3c7c6d179497 | <ide><path>actionpack/lib/action_dispatch/system_test_case.rb
<ide> module ActionDispatch
<ide> # size of the browser screen. These two options are not applicable for
<ide> # headless drivers and will be silently ignored if passed.
<ide> #
<add> # Headless browsers such as headless Chrome and headless Firefox ar... | 1 |
PHP | PHP | allow skipping for expired views | 7355d0193f34c4514aeb5499528d91396a307a09 | <ide><path>src/Illuminate/View/Engines/CompilerEngine.php
<ide> class CompilerEngine extends PhpEngine
<ide> */
<ide> protected $lastCompiled = [];
<ide>
<add> /**
<add> * Flag to check expired views.
<add> *
<add> * @var bool
<add> */
<add> protected $checkExpiredViews;
<add>
<ide> ... | 3 |
Go | Go | fix certificate directory for registry | 831b00303f1979dda6ed66980fc32a65f9229768 | <ide><path>registry/config.go
<ide> type Options struct {
<ide> InsecureRegistries opts.ListOpts
<ide> }
<ide>
<add>const (
<add> // DefaultNamespace is the default namespace
<add> DefaultNamespace = "docker.io"
<add> // DefaultRegistryVersionHeader is the name of the default HTTP header
<add> // that carries Registr... | 7 |
PHP | PHP | fix generation of datetime control | b413224e50a4ea68f55ca20d6a47d4a15dfe032f | <ide><path>src/View/Helper/FormHelper.php
<ide> public function dateTime(string $fieldName, array $options = []): string
<ide> 'value' => null,
<ide> ];
<ide> $options = $this->_initInputField($fieldName, $options);
<add> $options['type'] = 'datetime-local';
<ide>
<ide> retur... | 2 |
Python | Python | add validation for fields & exclude type | d68c61450440a522b08b64fdd21028cc739e6ead | <ide><path>rest_framework/serializers.py
<ide> def get_fields(self):
<ide> depth = getattr(self.Meta, 'depth', 0)
<ide> extra_kwargs = getattr(self.Meta, 'extra_kwargs', {})
<ide>
<add> if fields and not isinstance(fields, (list, tuple)):
<add> raise TypeError('`fields` must be a list... | 2 |
Javascript | Javascript | use null assignment instead of deleting property | 0397223ab4a050f4acffeee6952660710327f2a0 | <ide><path>lib/events.js
<ide> EventEmitter.prototype.removeListener = function(type, listener) {
<ide> if (position < 0) return this;
<ide> list.splice(position, 1);
<ide> if (list.length == 0)
<del> delete this._events[type];
<add> this._events[type] = null;
<ide>
<ide> if (this._events.rem... | 1 |
Go | Go | produce duplicate cache keys on pull | bb68c8132b593cb2fd633f2cb1c8761243c0b120 | <ide><path>builder/builder-next/adapters/containerimage/pull.go
<ide> import (
<ide> "github.com/moby/buildkit/util/progress"
<ide> "github.com/moby/buildkit/util/tracing"
<ide> digest "github.com/opencontainers/go-digest"
<add> "github.com/opencontainers/image-spec/identity"
<ide> ocispec "github.com/opencontainer... | 3 |
Mixed | Javascript | add missing deprecation code | 4e833b605986c4581525d3ebc5ffe56210abb0fd | <ide><path>doc/api/deprecations.md
<ide> Type: Documentation-only.
<ide>
<ide> Prefer [`message.socket`][] over [`message.connection`][].
<ide>
<del>### DEP0XXX: Changing the value of `process.config`
<add>### DEP0150: Changing the value of `process.config`
<ide> <!-- YAML
<ide> changes:
<ide> - version: REPLACEME
... | 2 |
Ruby | Ruby | make rails_* give deprecation warning just once | 25b6b95459ae71218754e8469f77f86b676bf215 | <ide><path>railties/lib/rails/deprecation.rb
<ide> require "active_support/deprecation"
<ide>
<ide> RAILS_ROOT = (Class.new(ActiveSupport::Deprecation::DeprecationProxy) do
<add> cattr_accessor :warned
<add> self.warned = false
<add>
<ide> def target
<ide> Rails.root
<ide> end
<ide> def replace(*args)
<ide> ... | 1 |
Ruby | Ruby | remove extra space [ci skip] | beff7d9d8edfc628f64f784c971e99d696fc4c7f | <ide><path>guides/bug_report_templates/active_record_master.rb
<ide> ActiveRecord::Base.logger = Logger.new(STDOUT)
<ide>
<ide> ActiveRecord::Schema.define do
<del> create_table :posts, force: true do |t|
<add> create_table :posts, force: true do |t|
<ide> end
<ide>
<del> create_table :comments, force: true do... | 1 |
Javascript | Javascript | fix url encoding | e1aec710aaa51de37fb42365d41caafbd28ea26b | <ide><path>client/commonFramework/create-editor.js
<ide> window.common = (function(global) {
<ide> break;
<ide> case common.challengeTypes.JS:
<ide> case common.challengeTypes.BONFIRE:
<del> type = 'javascript';
<add> type = 'js';
<ide> break;
<ide> default:... | 1 |
Mixed | Javascript | expose stream api in clearline() | 79cc8bb24117aa40e101971610d5813d927f9fbe | <ide><path>doc/api/readline.md
<ide> async function processLineByLine() {
<ide> }
<ide> ```
<ide>
<del>## readline.clearLine(stream, dir)
<add>## readline.clearLine(stream, dir[, callback])
<ide> <!-- YAML
<ide> added: v0.7.7
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pul... | 3 |
PHP | PHP | avoid unnecessary iterator to array conversion | 57244538a5229c8dffd86c6ae6c5acd6050ec37c | <ide><path>src/Http/Cookie/CookieCollection.php
<ide> public function addFromResponse(ResponseInterface $response, RequestInterface $r
<ide> $host = $uri->getHost();
<ide> $path = $uri->getPath() ?: '/';
<ide>
<del> $cookies = iterator_to_array(static::createFromHeader($response->getHeader('Set-... | 1 |
Python | Python | add triggererjob to jobs check command | d3ac01052bad07f6ec341ab714faabed913169ce | <ide><path>airflow/cli/cli_parser.py
<ide> def _check(value):
<ide> # jobs check
<ide> ARG_JOB_TYPE_FILTER = Arg(
<ide> ('--job-type',),
<del> choices=('BackfillJob', 'LocalTaskJob', 'SchedulerJob'),
<add> choices=('BackfillJob', 'LocalTaskJob', 'SchedulerJob', 'TriggererJob'),
<ide> action='store',
<ide>... | 1 |
Javascript | Javascript | fix a couple of typos | d476dffdef59b35f259b6e9f63c531ea0616e557 | <ide><path>src/package.js
<ide> console.log(JSON.stringify({
<ide> "url": "https://github.com/mbostock/d3.git"
<ide> },
<ide> "main": "index.js",
<del> "browserify" : "index-browserify.js",
<add> "browserify": "index-browserify.js",
<ide> "jam": {
<ide> "main": "d3.js",
<ide> "shim": {
<ide><path>te... | 2 |
PHP | PHP | use rule alias as rule name by default | 3688ba755471a17caaa18ac00981728ce87bd956 | <ide><path>src/Validation/Validator.php
<ide> public function add($field, $name, $rule = [])
<ide> }
<ide>
<ide> foreach ($rules as $name => $rule) {
<del> $field->add($name, $rule);
<add> $field->add($name, $rule + ['rule' => $name]);
<ide> }
<ide>
<ide> return $... | 2 |
Python | Python | fix optimizer serialization | 6cd8d3c37a2fcaf861e49bfebad49f43cfaa7ab3 | <ide><path>keras/optimizers.py
<ide> def get_updates(self, params, constraints, loss):
<ide>
<ide> def get_config(self):
<ide> return {"name": self.__class__.__name__,
<del> "lr": self.lr,
<del> "momentum": self.momentum,
<del> "decay": self.decay,
<add> ... | 2 |
Text | Text | revise long sentence about "pure" reducers | 3481c44d00fe9b78c61dcb34b5d3441ce56cbff3 | <ide><path>docs/recipes/reducers/PrerequisiteConcepts.md
<ide> As described in [Reducers](../../basics/Reducers.md), a Redux reducer function:
<ide>
<ide> - Should have a signature of `(previousState, action) => newState`, similar to the type of function you would pass to [`Array.prototype.reduce(reducer, ?initialValu... | 1 |
Javascript | Javascript | move changes from jsm to js version | 8d44d2619dd4fe319ab371643e5b4ddd518beded | <ide><path>examples/js/renderers/CSS2DRenderer.js
<ide> THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject;
<ide>
<ide> THREE.CSS2DRenderer = function () {
<ide>
<add> var _this = this;
<add>
<ide> var _width, _height;
<ide> var _widthHalf, _heightHalf;
<ide>
<ide> THREE.CSS2DRenderer = function () {
<ide... | 2 |
Ruby | Ruby | extract common query to a constant | e7e28a71be68271c7892477c1b9336316a1871bc | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> module ActiveRecord
<ide> module FinderMethods
<add> ONE_AS_ONE = '1 AS one'
<add>
<ide> # Find by id - This can either be a specific id (1), a list of ids (1, 5, 6), or an array of ids ([5, 6, 10]).
<ide> # If no record can be foun... | 1 |
Text | Text | improve grammar for this readme.md | 8d8dff86f308132a7e5bf713d2d0e41b8996dde6 | <ide><path>guide/english/algorithms/search-algorithms/jump-search/index.md
<ide> title: Jump Search
<ide> ---
<ide>
<ide> ## Jump Search
<del>A jump search locates an item in a sorted array by jumping k itens and then verify if the item wanted is between
<del>the previous jump and current jump.
<add>A jump search loc... | 1 |
Text | Text | add note about .babelrc | 32c3dd047612cd9eda044e100e36ca85117ca517 | <ide><path>examples/with-jest/README.md
<ide> npm test
<ide> This example features:
<ide>
<ide> * An app with jest tests
<add>
<add>> A very important part of this example is the `.babelrc` file which configures the `test` environment to use `babel-preset-env` and configures it to transpile modules to `commonjs`). [Le... | 1 |
Go | Go | remove listenandserve from unit tests | b2b59ddb10ea0bc9d7f0f39cea5f1d8742d1e83e | <ide><path>api_test.go
<ide> package docker
<ide>
<ide> import (
<add> "bytes"
<ide> "encoding/json"
<ide> "github.com/dotcloud/docker/auth"
<add> "net/http"
<add> "net/http/httptest"
<ide> "testing"
<ide> )
<ide>
<del>func init() {
<del> // Make it our Store root
<del> runtime, err := NewRuntimeFromDirectory(unit... | 1 |
PHP | PHP | move consoleerrorhandler to error | ae4bf8ec4153985400691795b528cdb5a5f2a68b | <ide><path>src/Console/ConsoleErrorHandler.php
<ide> <?php
<ide> declare(strict_types=1);
<ide>
<del>/**
<del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<del> *
<del> * Licensed under The MIT License
<del> * For f... | 3 |
Python | Python | remove unsupported instance types | b0ce8d8cecc7ce604969978c75306553db5aa80e | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def GiB(value):
<ide> 'm4.2xlarge',
<ide> 'm4.4xlarge',
<ide> 'm4.10xlarge',
<del> 'hs1.8xlarge',
<ide> 'i2.xlarge',
<ide> 'i2.2xlarge',
<ide> 'i2.4xlarge', | 1 |
Ruby | Ruby | remove old comment | 743d07ea2c3303b0f400f145f45686848e4bb762 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def rename_index(table_name, old_name, new_name)
<ide> end
<ide>
<ide> def index_name(table_name, options) #:nodoc:
<del> if Hash === options # legacy support
<add> if Hash === options
<ide> ... | 1 |
Ruby | Ruby | tell people what command will remove keg | 8908dc51d610f2ce3b2c086b25e04cb9322a66d1 | <ide><path>Library/Homebrew/keg.rb
<ide> def uninstall
<ide> remove_old_aliases
<ide> remove_oldname_opt_record
<ide> rescue Errno::ENOTEMPTY
<del> ofail "Could not remove #{path}! Check its permissions."
<add> odie <<~EOS
<add> Could not remove #{name} keg! Do so manually:
<add> sudo rm -rf... | 1 |
Mixed | Javascript | truncate decimal values | a7c66b6aaeb8132540abee12ffa9ac1c1fa2f373 | <ide><path>doc/api/timers.md
<ide> added: v0.0.1
<ide> Schedules repeated execution of `callback` every `delay` milliseconds.
<ide>
<ide> When `delay` is larger than `2147483647` or less than `1`, the `delay` will be
<del>set to `1`.
<add>set to `1`. Non-integer delays are truncated to an integer.
<ide>
<ide> If `cal... | 3 |
Python | Python | remove a double-decref in _import_umath (fixes ) | 5b4964b395f7c7c032a1d87f98b3f82c6ff8510c | <ide><path>numpy/core/code_generators/generate_ufunc_api.py
<ide> }
<ide> PyUFunc_API = (void **)PyCObject_AsVoidPtr(c_api);
<ide> Py_DECREF(c_api);
<del> Py_DECREF(numpy);
<ide> if (PyUFunc_API == NULL) {
<ide> PyErr_SetString(PyExc_RuntimeError, "_UFUNC_API is NULL pointer");
<ide> return -1; | 1 |
PHP | PHP | bind resource path | a208d72f60f829a598bed6a94c89beee9d35b358 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> protected function bindPathsInContainer()
<ide> {
<ide> $this->instance('path', $this->path());
<ide> $this->instance('path.base', $this->basePath());
<del> $this->instance('path.resources', $this->resourcesPath());
<ide> $thi... | 1 |
PHP | PHP | apply fixes from styleci | 15c81645788be437fd7079e50e97e90b7972fd40 | <ide><path>src/Illuminate/Routing/Route.php
<ide> protected function runController()
<ide> */
<ide> public function getController()
<ide> {
<del> if (! $this->controller) {
<add> if (! $this->controller) {
<ide> $class = $this->parseControllerCallback()[0];
<del> ... | 1 |
Javascript | Javascript | add test for transition.selectall | f577542effb586f670f171a9b34d6026724838f0 | <ide><path>test/core/transition-test-selectAll.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var assert = require("assert");
<add>
<add>module.exports = {
<add> topic: function() {
<add> var s = d3.select("body").append("div").selectAll("div")
<add> .data(["one", "two", "three", "four"])
<a... | 2 |
Text | Text | specify dataset used for crossvalidation | d8c26ed1391a4df5a67aa7fbabc0c0789818515f | <ide><path>model_cards/deepset/roberta-base-squad2-covid/README.md
<ide> **Language model:** deepset/roberta-base-squad2
<ide> **Language:** English
<ide> **Downstream-task:** Extractive QA
<del>**Training data:** [SQuAD-style CORD-19 annotations](https://github.com/deepset-ai/COVID-QA/tree/master/data/question-a... | 1 |
Python | Python | add documentation for as_strided | f7e64cc699567124114e41ad7f518d6825807cc3 | <ide><path>numpy/lib/stride_tricks.py
<ide> def _maybe_view_as_subclass(original_array, new_array):
<ide> return new_array
<ide>
<ide>
<del>def as_strided(x, shape=None, strides=None, subok=False):
<del> """ Make an ndarray from the given array with the given shape and strides.
<add>def as_strided(x, shape=Non... | 2 |
Python | Python | remove beta tag again, branch ready to merge | bd17a3fa52cf51310eb9553baaf71fd36d3b3105 | <ide><path>libcloud/drivers/linode.py
<ide> def __repr__(self):
<ide> return "<LinodeException code %u '%s'>" % (self.code, self.message)
<ide>
<ide> # For beta accounts, change this to "beta.linode.com".
<del>LINODE_API = "beta.linode.com"
<add>LINODE_API = "api.linode.com"
<ide>
<ide> # For beta accounts, c... | 1 |
Text | Text | fix some syntax error | 915c5fbfb6de04c0497f9a28aa45864a95795c0d | <ide><path>guide/chinese/javascript/es6/arrow-functions/index.md
<ide> ---
<ide> title: Arrow Functions
<del>localeTitle: 箭头功能
<add>localeTitle: 箭头函数
<ide> ---
<del>## 箭头功能
<add>## 箭头函数
<ide>
<del>ES6中的功能发生了一些变化。我的意思是语法。
<add>ES6中的函数新增了一种语法(箭头函数)。
<ide>
<ide> ```javascript
<del>// Old Syntax
<add>// 老语法
<ide> funct... | 1 |
Python | Python | add kwarg to disable auto options on add_url_rule | 011b129b6bc615c7a24de626dd63b6a311fa6ce6 | <ide><path>flask/app.py
<ide> def index():
<ide>
<ide> # starting with Flask 0.8 the view_func object can disable and
<ide> # force-enable the automatic options handling.
<del> provide_automatic_options = getattr(view_func,
<del> 'provide_automatic_options', None)
<add> provide... | 2 |
Python | Python | add function to make morphologizer model | e6dde97295022efe299bfa65a73c8d9b96eba8c4 | <ide><path>spacy/_ml.py
<ide> def finish_update(grad__BO, sgd=None):
<ide> return output__BO, finish_update
<ide>
<ide>
<del>def build_tagger_model(class_nums, **cfg):
<add>def build_tagger_model(nr_class, **cfg):
<add> embed_size = util.env_opt('embed_size', 7000)
<add> if 'token_vector_width' in cfg:
... | 1 |
Python | Python | fix serializer.data when provided invalid 'data' | daba5e9ba5cea03d56e76baa4bf05d67b7ac6cea | <ide><path>rest_framework/serializers.py
<ide> def get_validators(self):
<ide>
<ide> def get_initial(self):
<ide> if hasattr(self, 'initial_data'):
<add> # initial_data may not be a valid type
<add> if not isinstance(self.initial_data, Mapping):
<add> return OrderedDict... | 3 |
Javascript | Javascript | fix the regression at 6073a03 | 3b136d26ff638b3a7603478459ef808e877874f5 | <ide><path>fonts.js
<ide> var Font = (function () {
<ide> }
<ide>
<ide> Fonts[name] = {
<del> data: file,
<add> data: data,
<ide> properties: properties,
<ide> loading: true,
<ide> cache: Object.create(null) | 1 |
Text | Text | remove extra block for `assert_changes` [ci skip] | e40c7031844d81379dd7fb530e52156b97df0f9c | <ide><path>guides/source/testing.md
<ide> Rails adds some custom assertions of its own to the `minitest` framework:
<ide> | --------------------------------------------------------------------------------- | ------- |
<ide> | [`assert_difference(expressions, difference = 1, message = nil) {...}`](http://api.rubyonrails... | 1 |
Text | Text | fix broken link in `@next/font` docs | bbe7fddf3950122e7d9d116570e52766cd48c1e9 | <ide><path>docs/api-reference/next/font.md
<ide> import { greatVibes, sourceCodePro400 } from '@/fonts';
<ide> ## Next Steps
<ide>
<ide> <div class="card">
<del> <a href="/docs/optimizing/fonts.md">
<add> <a href="/docs/basic-features/font-optimization.md">
<ide> <b>Font Optmization</b>
<ide> <small>Learn ho... | 1 |
Text | Text | fix typo in builder.mb .dockerignore example | 9086c16f4283e330361ec9621781f6315fe3467f | <ide><path>docs/reference/builder.md
<ide> The following is an example `.dockerignore` file:
<ide> */*/temp*
<ide> temp?
<ide> *.md
<del> !LICENCSE.md
<add> !LICENSE.md
<ide> ```
<ide>
<ide> This file causes the following build behavior: | 1 |
Javascript | Javascript | add simple scrollview example to ui explorer | 169da2a1b7cedb0ab22a0f2c921c46cd0a86a3a3 | <ide><path>Examples/UIExplorer/ScrollViewSimpleExample.js
<add>/**
<add> * The examples provided by Facebook are for non-commercial testing and
<add> * evaluation purposes only.
<add> *
<add> * Facebook reserves all rights not expressly granted.
<add> *
<add> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY ... | 1 |
Python | Python | use var_list argument in tfoptimizer wrapper | 4185cbb50bfcae9cc30b0fc7b67e81d67a50a8ac | <ide><path>keras/optimizers.py
<ide> def __init__(self, optimizer):
<ide>
<ide> @interfaces.legacy_get_updates_support
<ide> def get_updates(self, loss, params):
<del> grads = self.optimizer.compute_gradients(loss, params)
<add> grads = self.optimizer.compute_gradients(loss, var_list=params)
<ide... | 2 |
Java | Java | remove unused methodmetadata#getmethodreturntype | 6d84f06d8c5f54422b797a8b434f3ca8ee7a91bd | <ide><path>org.springframework.core/src/main/java/org/springframework/core/type/MethodMetadata.java
<ide> public interface MethodMetadata {
<ide> */
<ide> String getMethodName();
<ide>
<del> /**
<del> * Return the fully-qualified name of the return type of the method.
<del> */
<del> String getMethodReturnType();
... | 4 |
Python | Python | add batchnorm layer | bd27aa70ab64666ee7eb5901c81a08161e7135d7 | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> def get_box_classifier_feature_extractor_model(self, name=None):
<ide> feature_extractor_model = tf.keras.models.Sequential([
<ide> tf.keras.layers.Flatten(),
<ide> tf.keras.layers.Dens... | 1 |
Java | Java | restore use of flux-based encode method in http | df706f4c7cc2c577f44ddf02019dca98fccf5a72 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/Decoder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use thi... | 5 |
PHP | PHP | apply fixes from styleci | 972e4928a9eec8be4f45bc9257ac8ebe1e2c5400 | <ide><path>src/Illuminate/Database/DatabaseManager.php
<ide> public function extend($name, callable $resolver)
<ide> */
<ide> public function forgetExtension($name)
<ide> {
<del> unset($this->extensions[$name]);
<add> unset($this->extensions[$name]);
<ide> }
<ide>
<ide> /** | 1 |
PHP | PHP | fix docblocks in collectiontrait | 2ccd417c7d5da0b1d9d040997f3671335b85e4da | <ide><path>src/Collection/CollectionTrait.php
<ide> public function reduce(callable $c, $zero) {
<ide> * ['Mark', 'Renan']
<ide> * }}}
<ide> *
<del> * @param string $path a dot separated string symbolizing the path to follow
<add> * @param string $matcher a dot separated string symbolizing the path to follow
<ide> ... | 1 |
Ruby | Ruby | use update_columns to implemente the update_column | da84ccb6f04080d0f18f9bce35f773f193b1770b | <ide><path>activerecord/lib/active_record/persistence.rb
<ide> def becomes(klass)
<ide> became
<ide> end
<ide>
<del> # Updates a single attribute of an object, without calling save.
<del> #
<del> # * Validation is skipped.
<del> # * Callbacks are skipped.
<del> # * updated_at/updated_on column... | 2 |
Text | Text | remove child selector from name attribute test | d9213b38cd15aba71d3eed06872be4e8b4a349a7 | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons.english.md
<ide> tests:
<ide> - text: Your page should have two radio button elements.
<ide> testString: assert($('input[type="radio"]').length > 1, 'Your page should have two radio button elements... | 1 |
Python | Python | remove an unused import | 06ec0ec8dadf9e0e9f7518c9817b95f14df9d7be | <ide><path>numpy/array_api/__init__.py
<ide>
<ide> """
<ide>
<del>import sys
<del>
<ide> import warnings
<ide>
<ide> warnings.warn( | 1 |
PHP | PHP | add missing method documentation | 47ab01c0101d4bda3e11fe3699a9107a026dc2b5 | <ide><path>src/Illuminate/Support/Facades/Mail.php
<ide> * @method static void alwaysReplyTo(string $address, string|null $name = null)
<ide> * @method static void alwaysReturnPath(string $address)
<ide> * @method static void alwaysTo(string $address, string|null $name = null)
<add> * @method static \Illuminate\Mail... | 1 |
Javascript | Javascript | use absolute public path in test | 68bdabea01f03e1d474e13d4d139eee64de2a9f5 | <ide><path>test/configCases/asset-url/target-node3/index.js
<ide> it("should handle import.meta.url in URL()", () => {
<del> const {href} = new URL("./index.css", import.meta.url);
<add> const { href } = new URL("./index.css", import.meta.url);
<ide>
<del> expect(href).toBe(
<del> process.platform === "win32"
<del> ... | 2 |
Ruby | Ruby | improve audit for `livecheck` in casks | 92b58666efaa469628fe72b4dbe5a8d741b74e51 | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def run!
<ide> check_single_uninstall_zap
<ide> check_untrusted_pkg
<ide> check_hosting_with_appcast
<add> check_appcast_and_livecheck
<ide> check_latest_with_appcast_or_livecheck
<ide> check_latest_with_auto_updates
<ide> check_st... | 2 |
Javascript | Javascript | use mustcall() in pummel test | 3b130327fa96cda42fed581df7c763acbf706a13 | <ide><path>test/pummel/test-net-connect-econnrefused.js
<ide> function pummel() {
<ide> }
<ide>
<ide> function check() {
<del> setTimeout(function() {
<add> setTimeout(common.mustCall(function() {
<ide> assert.strictEqual(process._getActiveRequests().length, 0);
<ide> const activeHandles = process._getActive... | 1 |
Python | Python | fix issue with c compiler args containing spaces | 7dcf62379f41407d8f9583d1c2016e3d8ec48384 | <ide><path>numpy/distutils/unixccompiler.py
<ide> import os
<ide> import sys
<ide> import subprocess
<add>import shlex
<ide>
<ide> from distutils.errors import CompileError, DistutilsExecError, LibError
<ide> from distutils.unixccompiler import UnixCCompiler
<ide> def UnixCCompiler__compile(self, obj, src, ext, cc_arg... | 1 |
Javascript | Javascript | update meshopt_decoder module to latest | 3e7149ad244e5a5045f279d19661e21085da3aff | <ide><path>examples/js/libs/meshopt_decoder.js
<ide> // This file is part of meshoptimizer library and is distributed under the terms of MIT License.
<del>// Copyright (C) 2016-2020, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
<add>// Copyright (C) 2016-2022, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
<i... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.