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 didcommit from scheduler | fb30d235dbcf94f3ee5acc6ed5444132cf76028d | <ide><path>src/renderers/shared/fiber/ReactFiberScheduler.js
<ide> module.exports = function<T, P, I, TI, PI, C, CX, PL>(
<ide> let isUnmounting: boolean = false;
<ide>
<ide> // Use these to prevent an infinite loop of nested updates
<del> let didCommit = false;
<ide> let nestedSyncUpdates = 0;
<ide> let NEST... | 1 |
Java | Java | fix window state comparison in dahandlermapping | 9b10d38e41150fdbd4120e1058a34c5b986dd849 | <ide><path>spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/mvc/annotation/DefaultAnnotationHandlerMapping.java
<ide> /*
<del> * Copyright 2002-2011 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version... | 1 |
Javascript | Javascript | fix instrumentation and add render instruments | 299cdf8d5efd7107fc8c68869867402fa5b94421 | <ide><path>packages/ember-handlebars/lib/views/handlebars_bound_view.js
<ide> require('ember-handlebars/views/metamorph_view');
<ide> @private
<ide> */
<ide> Ember._HandlebarsBoundView = Ember._MetamorphView.extend({
<add> instrumentName: 'render.boundHandlebars',
<ide>
<ide> /**
<ide> The function used to de... | 4 |
PHP | PHP | remove old schema object | d28a200699171e043bcc31051e93fe5376cc8569 | <ide><path>lib/Cake/Model/Schema.php
<del><?php
<del>/**
<del> * Schema database management for CakePHP.
<del> *
<del> * PHP 5
<del> *
<del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<del> *
<del> * Licensed under Th... | 2 |
Ruby | Ruby | allow access default_formula directly | c6e1090c43f769e80c1aa98c2029f1eb466e0da4 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def satisfied_requirements? formula, spec, dependency=nil
<ide> satisfied ||= requirement.satisfied?
<ide> satisfied ||= requirement.optional?
<ide> if !satisfied && requirement.default_formula?
<del> default = Formula[requirement.class.... | 3 |
Ruby | Ruby | install readme.txt etc. as readme | 0ea078e1ae8663b6b3dda18ca4016059acbaf61b | <ide><path>Library/Homebrew/brew.h.rb
<ide> def install f
<ide> f.prefix.mkpath
<ide> f.install
<ide> %w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS].each do |file|
<del> f.prefix.install file if File.file? file
<add> FileUtils.mv "#{file}.txt", file rescue nil
<add> f.pref... | 1 |
Ruby | Ruby | add buildtoolserror and buildflagserror | 91e598cf3f88591f2146218eaa2ecc2a3a261e31 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> end
<ide> end
<ide>
<add> # if the user's flags will prevent bottle only-installations when no
<add> # developer tools are available, we need to stop them early on
<add> if !MacOS.can_build?
<add> bf = ARGV.collect_b... | 7 |
Python | Python | fix style issue in docstring | e41378a2e1962b35df3f8dee90aed848286809b5 | <ide><path>keras/engine/topology.py
<ide> def load_weights(self, filepath, by_name=False,
<ide> where there is a mismatch in the number of weights,
<ide> or a mismatch in the shape of the weight
<ide> (only valid when `by_name`=True).
<del> reshape: Reshape weights... | 1 |
Javascript | Javascript | fix lazy local import of bootstrapping module | b876d72bed76178bffc993d13f95f5060dbe40db | <ide><path>packages/ember-template-compiler/lib/system/initializer.js
<ide> import require, { has } from 'require';
<add>import bootstrap from './bootstrap';
<ide>
<ide> // Globals mode template compiler
<ide> if (has('ember-application') && has('ember-environment') && has('ember-glimmer')) {
<ide> if (has('ember-appl... | 1 |
Ruby | Ruby | push more mutations out of the builder | 9da52a5e55cc665a539afb45783f84d9f3607282 | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def initialize(model, name, scope, options)
<ide> end
<ide>
<ide> def build
<del> configure_dependency if options[:dependent]
<ide> ActiveRecord::Reflection.create(macro, name, scope, options, model)
<ide> end
<i... | 2 |
Text | Text | fix the typo in ps | c2b59b03df364901ce51ee485d60fce7e7aaa955 | <ide><path>docs/reference/commandline/port.md
<ide> parent = "smn_cli"
<ide> You can find out all the ports mapped by not specifying a `PRIVATE_PORT`, or
<ide> just a specific mapping:
<ide>
<del> $ docker ps test
<add> $ docker ps
<ide> CONTAINER ID IMAGE COMMAND CREATED ... | 1 |
Javascript | Javascript | remove extraneous `onrespondergrant` argument | 49015b0f5bda83794b88b17dd3cbd834fa235b72 | <ide><path>Libraries/Text/Text.js
<ide> class TouchableText extends React.Component<Props, State> {
<ide> touchableHandleActivePressOut: ?() => void;
<ide> touchableHandleLongPress: ?(event: PressEvent) => void;
<ide> touchableHandlePress: ?(event: PressEvent) => void;
<del> touchableHandleResponderGrant: ?(
<de... | 2 |
Python | Python | remove unused error object | f1ddac187de7e67923e8ee63192787179f70fa4c | <ide><path>spacy/language.py
<ide> def add_pipe(
<ide> factory_name, source, name=name
<ide> )
<ide> else:
<del> if not self.has_factory(factory_name):
<del> err = Errors.E002.format(
<del> name=factory_name,
<del> opts=... | 1 |
PHP | PHP | add application setter | e6ee45c228b2ebce1b626c6b19fb7d804bdccf06 | <ide><path>src/Console/CommandRunner.php
<ide> class CommandRunner implements EventDispatcherInterface
<ide> */
<ide> public function __construct(ConsoleApplicationInterface $app, $root = 'cake')
<ide> {
<del> $this->app = $app;
<add> $this->setApp($app);
<ide> $this->root = $root;
<i... | 1 |
Text | Text | update build instructions for windows | 0a8f5a0f02f291a1707645c262dac9218c222248 | <ide><path>BUILDING.md
<ide> $ node -e "console.log('Hello from Node.js ' + process.version)"
<ide> Prerequisites:
<ide>
<ide> * [Python 2.6 or 2.7](https://www.python.org/downloads/)
<del>* Visual Studio 2013 / 2015, all editions including the Community edition, or
<del>* Visual Studio Express 2013 / 2015 for Desktop... | 1 |
Mixed | PHP | update events to use new methods | 95fe3381e61d1f9dff42388cd9c09bda42f2fe40 | <ide><path>src/Controller/Component/AuthComponent.php
<ide> public function constructAuthenticate()
<ide> }
<ide> $config = array_merge($global, (array)$config);
<ide> $this->_authenticateObjects[$alias] = new $className($this->_registry, $config);
<del> $this->eventManage... | 13 |
Javascript | Javascript | remove duplicate _metamorphview | b7e6adb90c134593d33268b7c3a1bd15e7d627b4 | <ide><path>packages/ember-handlebars/lib/helpers/each.js
<ide> import {
<ide> removeBeforeObserver
<ide> } from "ember-metal/observer";
<ide>
<del>import {
<del> _Metamorph,
<del> _MetamorphView
<del>} from "ember-handlebars/views/metamorph_view";
<add>import _MetamorphView from "ember-handlebars/views/metamorph_v... | 4 |
Text | Text | fix links 404/302/303 in docs/community | 4863a24451e2df3f2f6b5ba24b8a161bfa95390f | <ide><path>docs/community/3.0-announcement.md
<ide> The 3.2 release is planned to introduce an alternative admin-style interface to
<ide> You can follow development on the GitHub site, where we use [milestones to indicate planning timescales](https://github.com/encode/django-rest-framework/milestones).
<ide>
<ide> [ki... | 12 |
Mixed | Javascript | make textencoder/textdecoder global | 932be0164fb3ed869ae3ddfff391721d2fd8e1af | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> DTRACE_HTTP_SERVER_REQUEST: false,
<ide> DTRACE_HTTP_SERVER_RESPONSE: false,
<ide> DTRACE_NET_SERVER_CONNECTION: false,
<del> DTRACE_NET_STREAM_END: false
<add> DTRACE_NET_STREAM_END: false,
<add> TextEncoder: false,
<add> TextDecoder: false... | 15 |
Python | Python | add type hints for tf mpnet models | fe5e7cea4ac9c7b0cca8c33b86a24827e8331311 | <ide><path>src/transformers/models/mpnet/modeling_tf_mpnet.py
<ide>
<ide> import math
<ide> import warnings
<add>from typing import Optional, Tuple, Union
<ide>
<add>import numpy as np
<ide> import tensorflow as tf
<ide>
<ide> from ...activations_tf import get_tf_activation
<ide> )
<ide> from ...modeling_tf_utils im... | 1 |
Text | Text | change http links to https in support.md | 09964826901fb91fd4f722d1b4932b0c458f5439 | <ide><path>SUPPORT.md
<ide>
<ide> If you're looking for support for Atom there are a lot of options, check out:
<ide>
<del>* User Documentation — [The Atom Flight Manual](http://flight-manual.atom.io)
<add>* User Documentation — [The Atom Flight Manual](https://flight-manual.atom.io)
<ide> * Developer Doc... | 1 |
Text | Text | add v3.26.0-beta.3 to changelog | 891fc1bd25b9736e0d645bda01155d3023f7fab1 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.26.0-beta.3 (March 02, 2021)
<add>
<add>- [#19412](https://github.com/emberjs/ember.js/pull/19412) [BUGFIX] Updates Glimmer VM to 0.76.0, fix:
<add> - `if` helper returns `null` instead of `undefined`
<add> - Using `get` helper with key `length` on a ... | 1 |
Text | Text | remove http2 pushstream weight option | a0f7ae6c4110cca75793964dc9dbbf457071dad8 | <ide><path>doc/api/http2.md
<ide> added: v8.4.0
<ide> Defaults to `false`.
<ide> * `parent` {number} Specifies the numeric identifier of a stream the newly
<ide> created stream is dependent on.
<del> * `weight` {number} Specifies the relative dependency of a stream in relation
<del> to other streams with ... | 1 |
Text | Text | add body text and link | 2ee112c6b1fc8d00eda69e38a549686cda24ca23 | <ide><path>guide/english/tools/calculators/calorie-calculator/index.md
<ide> title: Calorie Calculator
<ide> ---
<ide> ## Calorie Calculator
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/tools/calculators/calorie-calculator/index.md' target='_blank' rel='nofollow'>Hel... | 1 |
Javascript | Javascript | remove dup before create | 412fddd0655f66e6b6684d78ea47c41fcb07a314 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> return ctx.res.redirect(redirect);
<ide> });
<ide>
<del> User.beforeRemote('create', function({ req, res }, _, next) {
<del> req.body.username = 'fcc' + uuid.v4().slice(0, 8);
<del> if (!req.body.email) {
<del> return next... | 1 |
Text | Text | add note about header values encoding | dfc2dc8b6565da78d493c44aa836482dd422aeed | <ide><path>doc/api/http.md
<ide> or
<ide> request.setHeader('Cookie', ['type=ninja', 'language=javascript']);
<ide> ```
<ide>
<add>When the value is a string an exception will be thrown if it contains
<add>characters outside the `latin1` encoding.
<add>
<add>If you need to pass UTF-8 characters in the value please enc... | 1 |
Javascript | Javascript | improve scroll to top performance | 12b228c5d92e5b6ef80f8cfdb0c29fc1845a3044 | <ide><path>Libraries/Experimental/VirtualizedList.js
<ide> type ItemComponentType = ReactClass<{item: Item, index: number}>;
<ide>
<ide> /**
<ide> * Renders a virtual list of items given a data blob and accessor functions. Items that are outside
<del> * the render window are 'virtualized' e.g. unmounted or never rend... | 1 |
Python | Python | kill class in test_basic | a4931ff3a74d9fcd8766bee69a01b62a75a5e131 | <ide><path>tests/test_basic.py
<ide> import time
<ide> import flask
<ide> import pickle
<del>import unittest
<ide> from datetime import datetime
<ide> from threading import Thread
<del>from tests import emits_module_deprecation_warning
<ide> from flask._compat import text_type
<ide> from werkzeug.exceptions import BadR... | 1 |
Ruby | Ruby | fix layout lookup for anonymous controller | b27c29ef4a26755b8de04686241694ce5ee33724 | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def _write_layout_method
<ide> <<-RUBY
<ide> lookup_context.find_all("#{_implied_layout_name}", #{prefixes.inspect}).first || super
<ide> RUBY
<add> else
<add> <<-RUBY
<add> super
<add> RUB... | 2 |
Javascript | Javascript | add tests for cacheplugin | af00214583da076a07b89f3f94fd54573c2c692f | <ide><path>test/CachePlugin.test.js
<add>var should = require("should");
<add>var sinon = require("sinon");
<add>var CachePlugin = require("../lib/CachePlugin");
<add>var applyPluginWithOptions = require("./helpers/applyPluginWithOptions");
<add>
<add>describe("CachePlugin", function() {
<add> var env;
<add>
<add> befo... | 2 |
Java | Java | use messagesource for @exceptionhandler methods | f2be4e93203d2949a8e46466f92a1715954b85b5 | <ide><path>spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
<ide> public class HandlerMethod {
<ide> * Create an instance from a bean instance and a method.
<ide> */
<ide> public HandlerMethod(Object bean, Method method) {
<add> this(bean, method, null);
<add> }
<add>
<add>
<add> /**
<ad... | 5 |
PHP | PHP | modify all() to work with nested input arrays | 35b6a0f26d66861bc558f548c9fe076fad369a75 | <ide><path>src/Illuminate/Http/Request.php
<ide> public function has($key)
<ide> */
<ide> public function all()
<ide> {
<del> return $this->input() + $this->files->all();
<add> return array_merge_recursive($this->input(), $this->files->all());
<ide> }
<ide>
<ide> /**
<ide><path>tests/Http/HttpRequestTest.php
<... | 2 |
Java | Java | fix reactscrollview lints | b0319f3293b553c105b813dd12bff7d55940e60b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java
<ide> import android.graphics.Rect;
<ide> import android.graphics.drawable.ColorDrawable;
<ide> import android.graphics.drawable.Drawable;
<add>import android.support.v4.view.ViewCompat;
<ide> import android.util.Log;
<ide> impor... | 1 |
Python | Python | update gyp to r1535 | 38c52a0575fa92a2413fbefb754bfdc7af144b89 | <ide><path>tools/gyp/gyptest.py
<ide> def main(argv=None):
<ide> os.chdir(opts.chdir)
<ide>
<ide> if opts.path:
<del> os.environ['PATH'] += ':' + ':'.join(opts.path)
<add> extra_path = [os.path.abspath(p) for p in opts.path]
<add> extra_path = os.pathsep.join(extra_path)
<add> os.environ['PATH'] += o... | 22 |
Javascript | Javascript | normalize process.argv before user code execution | 69714ab1c44f45f7949484ab7f4574f3ad9894ce | <ide><path>lib/internal/main/check_syntax.js
<ide> const {
<ide> stripShebang, stripBOM
<ide> } = require('internal/modules/cjs/helpers');
<ide>
<del>// TODO(joyeecheung): not every one of these are necessary
<del>prepareMainThreadExecution();
<del>markBootstrapComplete();
<ide>
<ide> if (process.argv[1] && process... | 3 |
Ruby | Ruby | correct safe_system doc link | 8eb176f50bb0eee4671c1a24f1f5701a77742eba | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(url)
<ide> end
<ide> end
<ide>
<del># Raised by {#safe_system} in `utils.rb`.
<add># Raised by {Kernel#safe_system} in `utils.rb`.
<ide> class ErrorDuringExecution < RuntimeError
<ide> attr_reader :cmd, :status, :output
<ide> | 1 |
PHP | PHP | replace strlen() with is_null() | 8ccc8f4ed5cde0bca666def9acdd8aa31eecdd6e | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function isDirty($attribute = null)
<ide> {
<ide> $dirtyAttributes = $this->getDirty();
<ide>
<del> if (strlen($attribute) > 0) return array_key_exists($attribute, $dirtyAttributes);
<add> if ( ! is_null($attribute)) return array_key_exists($attri... | 1 |
Java | Java | polish propertysource and environment javadoc | 0756a6abfed06ed4590341c5c9b10b41ad633e25 | <ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/Configuration.java
<ide> * <h3>Using the {@code Environment} API</h3>
<ide> * Externalized values may be looked up by injecting the Spring
<ide> * {@link org.springframework.core.env.Environment Environment} into a
<del> * {@... | 6 |
Text | Text | fix 1.13.0 changelog typo | e99e694502b2763b01bc09d5d7c818d9d8ffc991 | <ide><path>CHANGELOG.md
<ide> be found.
<ide> - Pin images by digest for `docker service create` and `update` [#28173](https://github.com/docker/docker/pull/28173)
<ide> - Add short (`-f`) flag for `docker node rm --force` and `docker swarm leave --force` [#28196](https://github.com/docker/docker/pull/28196)
<ide> + Do... | 1 |
Text | Text | add example for zlib.creategzip() | 57ed7c33b1e142c8df9b57f0907055774e8b46c4 | <ide><path>doc/api/zlib.md
<ide> const fs = require('fs');
<ide> const inp = fs.createReadStream('input.txt');
<ide> const out = fs.createWriteStream('input.txt.gz');
<ide>
<del>inp.pipe(gzip).pipe(out);
<add>inp.pipe(gzip)
<add> .on('error', () => {
<add> // handle error
<add> })
<add> .pipe(out)
<add> .on('er... | 1 |
Text | Text | apply suggestions from code review | bf873783d20bfe170d442157c08d615c42fa80af | <ide><path>docs/New-Maintainer-Checklist.md
<ide> changes (e.g. version updates), triaging, fixing and debugging user-reported
<ide> issues, or reviewing user pull requests. You should also be making contributions
<ide> to Homebrew at least once per quarter.
<ide>
<del>You will should watch or regularly check Homebrew... | 2 |
Text | Text | add changes for v1.5.10 | c6842b5a65b49aedb35d5b2dd8e430169a5a455d | <ide><path>CHANGELOG.md
<add><a name="1.5.10"></a>
<add># 1.5.10 asynchronous-synchronization (2016-12-15)
<add>
<add>
<add>## Bug Fixes
<add>- **$compile:**
<add> - don't throw tplrt error when there is whitespace around a top-level comment
<add> ([12752f](https://github.com/angular/angular.js/commit/12752f66ac425... | 1 |
PHP | PHP | add doc blocks for validator methods | ca89846ff7060252f5f5bb4af8226a7610235aea | <ide><path>src/Validation/Validator.php
<ide> public function allowEmpty($field, $when = true)
<ide> * method called will take precedence.
<ide> *
<ide> * @param string $field the name of the field
<del> * @param string $message The validation message to show if the field is not
<add> * @param st... | 2 |
Ruby | Ruby | restore previous style | 88a69b3de20e0faa12f8dee2c2298617d76b55ec | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide> ENV.keg_only_deps = keg_only_deps
<ide> ENV.deps = formula_deps
<ide> ENV.run_time_deps = run_time_deps
<del> ENV.setup_build_environment(formula: formula, cc: args.cc, build_bottle: args.build_bottle?,
<del> ... | 1 |
PHP | PHP | status command | c5d02773392041b28dec8855aeee85246b8d7d17 | <ide><path>src/Illuminate/Database/Console/Migrations/StatusCommand.php
<ide> public function handle()
<ide> }
<ide>
<ide> $ran = $this->migrator->getRepository()->getRan();
<add> $migrationsBatches = $this->migrator->getRepository()->getMigrationsBatches();
<ide>
<del> if (count($migrat... | 3 |
Text | Text | fix broken link to commonjs. | 25f8a6c92773967d20641c6c239f31c1b01dd459 | <ide><path>docs/introduction/Installation.md
<ide> This assumes you are using [npm](https://www.npmjs.com/) as your package manager
<ide>
<ide> If you're not, you can [access these files on unpkg](https://unpkg.com/redux/), download them, or point your package manager to them.
<ide>
<del>Most commonly, people consume... | 1 |
Javascript | Javascript | fix peer deps for use-sync-external-store | e39b2c8998a458a772b9284d0fb9f6a5ccdda914 | <ide><path>scripts/rollup/build-all-release-channels.js
<ide> function buildForChannel(channel, nodeTotal, nodeIndex) {
<ide>
<ide> function processStable(buildDir) {
<ide> if (fs.existsSync(buildDir + '/node_modules')) {
<add> // Identical to `oss-stable` but with real, semver versions. This is what
<add> // ... | 1 |
PHP | PHP | check type of token | bdb839222d85de0c0f1f68263d61e358f0ec813c | <ide><path>app/Http/Middleware/VerifyCsrfToken.php
<ide> public function handle($request, Closure $next)
<ide> */
<ide> protected function tokensMatch($request)
<ide> {
<del> return $request->session()->token() == $request->input('_token');
<add> return $request->session()->token() === $request->input('_token');
... | 1 |
Python | Python | fix error in oldnumeric.empty | 9b0c090eaa73c7646dbc163cf2ff85a59e2109dc | <ide><path>numpy/oldnumeric/functions.py
<ide> def identity(n,typecode='l', dtype=None):
<ide>
<ide> def empty(shape, typecode='l', dtype=None):
<ide> dtype = convtypecode(typecode, dtype)
<del> return mu.empty(shape, dtype, order)
<add> return mu.empty(shape, dtype)
<ide>
<ide> def array(sequence, type... | 1 |
Javascript | Javascript | remove unused function argument | b161440cd3c846734c7355340483b03d5db3ba00 | <ide><path>lib/internal/webstreams/readablestream.js
<ide> function readableStreamPipeTo(
<ide>
<ide> function watchClosed(stream, promise, action) {
<ide> if (stream[kState].state === 'closed')
<del> action(stream[kState].storedError);
<add> action();
<ide> else
<ide> PromisePrototypeThen(pr... | 1 |
PHP | PHP | remove unused directories | c673b815f7cbed1ed746332df9eaf5a036c3dc1c | <ide><path>src/Console/Command/Task/PluginTask.php
<ide> public function bake($plugin) {
<ide> if (strtolower($looksGood) === 'y') {
<ide> $Folder = new Folder($this->path . $plugin);
<ide> $directories = [
<del> $classBase . DS . 'Config' . DS . 'Schema',
<add> $classBase . DS . 'Config',
<ide> $clas... | 1 |
Go | Go | create file containing pid | fb0b375be70e79eaa8349143dceef048db6e0e19 | <ide><path>docker/docker.go
<ide> package main
<ide>
<ide> import (
<ide> "flag"
<add> "fmt"
<ide> "github.com/dotcloud/docker"
<ide> "github.com/dotcloud/docker/rcli"
<ide> "github.com/dotcloud/docker/term"
<ide> "io"
<ide> "log"
<ide> "os"
<add> "os/signal"
<add> "syscall"
<ide> )
<ide>
<ide> var GIT_COMMIT ... | 1 |
Javascript | Javascript | remove trailing tabs | 32e803c5bc821a34d6d225659f7a4b4a24053e07 | <ide><path>build/tasks/build.js
<ide> module.exports = function( grunt ) {
<ide> // Ignore jQuery's return statement (the only necessary one)
<ide> if ( name !== "jquery" ) {
<ide> contents = contents
<del> .replace( /return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" );
<add> .replace( /\s*return\s+[^\}]+(\}\);[... | 1 |
Ruby | Ruby | support aliases to expires_in for cache stores | fd8c36707f64776ce0f48379816083401ffe40fc | <ide><path>activesupport/lib/active_support/cache.rb
<ide> module Cache
<ide>
<ide> # These options mean something to all cache implementations. Individual cache
<ide> # implementations may support additional options.
<del> UNIVERSAL_OPTIONS = [:namespace, :compress, :compress_threshold, :expires_in, :race_... | 2 |
Javascript | Javascript | remove bower.json lint target | 285cfbfccc4c61d50ee8e0fe6e23695dc663e166 | <ide><path>Gruntfile.js
<ide> module.exports = function( grunt ) {
<ide> jsonlint: {
<ide> pkg: {
<ide> src: [ "package.json" ]
<del> },
<del>
<del> bower: {
<del> src: [ "bower.json" ]
<ide> }
<ide> },
<ide> jshint: { | 1 |
Javascript | Javascript | add stencil properties to material | 5059d33b6fd73d6af9840aec93b4bdf0104d9db9 | <ide><path>src/loaders/Loader.js
<ide> THREE.Loader.prototype = {
<ide> break;
<ide> case 'depthTest':
<ide> case 'depthWrite':
<add> case 'stencilTest':
<add> case 'stencilWrite':
<ide> case 'colorWrite':
<ide> case 'opacity':
<ide> case 'reflectivity':
<ide><path>src/loaders/Mat... | 5 |
Ruby | Ruby | fix the build | 84c20e27b6ecf48b17b707403175a44a528c57d6 | <ide><path>railties/test/generators/plugin_generator_test.rb
<ide> def test_generation_runs_bundle_install_with_full_and_mountable
<ide> end
<ide> assert_match(/run bundle install/, result)
<ide> assert_match(/Using bukkits \(?0\.0\.1\)?/, result)
<del> assert_match(/Your bundle is complete/, result)
<a... | 1 |
Javascript | Javascript | treat enotconn at shutdown as success | 1447a79dc435578bffba32ead9b2ffa0425fc30a | <ide><path>lib/net.js
<ide> const {
<ide> const assert = require('internal/assert');
<ide> const {
<ide> UV_EADDRINUSE,
<del> UV_EINVAL
<add> UV_EINVAL,
<add> UV_ENOTCONN
<ide> } = internalBinding('uv');
<ide>
<ide> const { Buffer } = require('buffer');
<ide> Socket.prototype._final = function(cb) {
<ide> req.c... | 1 |
Go | Go | add some additional tests | 2030daf2ee4ea8fbded8889a24ccf947e6a71d81 | <ide><path>daemon/info_unix.go
<ide> func getBackingFs(v *types.Info) string {
<ide> //
<ide> // tini version 0.18.0 - git.fec3683
<ide> func parseInitVersion(v string) (version string, commit string, err error) {
<del> parts := strings.Split(strings.TrimSpace(v), " - ")
<add> parts := strings.Split(v, " - ")
<ide>... | 2 |
Ruby | Ruby | enable identitymap when generating new apps | 375aaa9db1bb808f9126e3a057c80fca0c631ba6 | <ide><path>railties/lib/rails/generators/rails/app/templates/config/application.rb
<ide> class Application < Rails::Application
<ide>
<ide> # Configure sensitive parameters which will be filtered from the log file.
<ide> config.filter_parameters += [:password]
<add>
<add><% unless options[:skip_active_record] ... | 2 |
PHP | PHP | add method for setting middleware to the resource | 398e3f2e8ccd3414e9e3ebc2a733ff1cda0ea375 | <ide><path>src/Illuminate/Routing/PendingResourceRegistration.php
<ide> public function parameter($previous, $new)
<ide>
<ide> return $this;
<ide> }
<add>
<add> /**
<add> * Set a middleware to the resource.
<add> *
<add> * @param mixed $middleware
<add> * @return \Illuminate\Routing\Pe... | 2 |
Javascript | Javascript | read renderer id from operations | e050529c7d54af391330c991817c614ee6ef66dd | <ide><path>src/backend/agent.js
<ide> const debug = (methodName, ...args) => {
<ide> }
<ide> };
<ide>
<del>type OperationsParams = {|
<del> operations: Uint32Array,
<del> rendererID: number,
<del>|};
<del>
<ide> type InspectSelectParams = {|
<ide> id: number,
<ide> rendererID: number,
<ide> export default clas... | 2 |
Text | Text | amend viewset docs to warn of potential problem | 9b468fba60def77144949628211aac95c6316c70 | <ide><path>docs/api-guide/viewsets.md
<ide> Note that you can use any of the standard attributes or method overrides provide
<ide> def get_queryset(self):
<ide> return self.request.user.accounts.all()
<ide>
<add>Note however that upon removal of the `queryset` property from your `ViewSet`, any asso... | 1 |
Javascript | Javascript | fix tdt -> tet in locale comment | e693b284cc51c18a9e476955dddc146dc9f1fc80 | <ide><path>src/locale/tet.js
<ide> //! moment.js locale configuration
<del>//! locale : Tetun Dili (East Timor) [tdt]
<add>//! locale : Tetun Dili (East Timor) [tet]
<ide> //! author : Joshua Brooks : https://github.com/joshbrooks
<ide> //! author : Onorio De J. Afonso : https://github.com/marobo
<ide> | 1 |
Javascript | Javascript | check document.documentmode once | d6b59e3d264198a42c205c3cebc0b561e0ca9bec | <ide><path>packages/react-dom/src/__tests__/ReactServerRenderingHydration.js
<ide> describe('ReactDOMServerHydration', () => {
<ide>
<ide> it('should not warn when the style property differs on whitespace or order in IE', () => {
<ide> document.documentMode = 11;
<add> jest.resetModules();
<add> React = re... | 2 |
Javascript | Javascript | use static injection for reacterrorutils | 46b3c3e4ae0d52565f7ed2344036a22016781ca0 | <ide><path>packages/react-dom/src/client/ReactDOMFB.js
<ide>
<ide> import * as ReactFiberTreeReflection from 'react-reconciler/reflection';
<ide> import * as ReactInstanceMap from 'shared/ReactInstanceMap';
<del>import ReactErrorUtils from 'shared/ReactErrorUtils';
<ide> import {addUserTimingListener} from 'shared/Rea... | 6 |
PHP | PHP | reset mailer when exceptions are thrown | e1164a7acc208c62b1411bd67f56024a6b94b20b | <ide><path>src/Mailer/Mailer.php
<ide> public function set($key, $value = null)
<ide> */
<ide> public function send($action, $args = [], $headers = [])
<ide> {
<del> if (!method_exists($this, $action)) {
<del> throw new MissingActionException([
<del> 'mailer' => $this->getN... | 1 |
Text | Text | factorialize a number - portuguese | 907b93eaeaf799d9976e64446e9d8d34de55a7f6 | <ide><path>curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting/factorialize-a-number.portuguese.md
<ide> factorialize(5);
<ide> <section id='solution'>
<ide>
<ide> ```js
<del>// solution required
<add>function factorialize(num) {
<add> return num <= 1 ? 1 : num * fa... | 1 |
PHP | PHP | fix some docblocks | bdef94e517368568a896b5a03ad87eee394adccd | <ide><path>src/Illuminate/Database/Query/JoinClause.php
<ide> public function __construct($type, $table)
<ide> *
<ide> * on `contacts`.`user_id` = `users`.`id` and `contacts`.`info_id` = `info`.`id`
<ide> *
<del> * @param string $first
<add> * @param string|\Closure $first
<ide> * @para... | 1 |
Javascript | Javascript | check invalid argument error for option | f8f96017e82abe4e965251b2f6072bdb6bea9d51 | <ide><path>test/parallel/test-whatwg-encoding-textdecoder.js
<ide> testDecodeSample(
<ide> ]
<ide> );
<ide>
<add>{
<add> common.expectsError(
<add> () => new TextDecoder('utf-8', 1),
<add> {
<add> code: 'ERR_INVALID_ARG_TYPE',
<add> type: TypeError
<add> }
<add> );
<add>}
<add>
<ide> // From: ht... | 1 |
Javascript | Javascript | increase coverage for timers | e21e12944c11f9d30e154d735f35b1f528cd7dc2 | <ide><path>test/parallel/test-timers-clear-null-does-not-throw-error.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>
<add>// This test makes sure clearing timers with
<add>// 'null' or no input does not throw error
<add>
<add>assert.doesNotThrow(() => clearInterval(null));
... | 1 |
Javascript | Javascript | use npm for e2e tests | 33fb428a07d04fb70356d507ed411a0e96432a19 | <ide><path>local-cli/server/util/attachHMRServer.js
<ide> function attachHMRServer({httpServer, path, packagerServer}) {
<ide>
<ide> client.ws.on('close', () => disconnect());
<ide> })
<del> .done();
<add> .catch(err => {
<add> throw err;
<add> });
<ide> });
<ide> }
<ide>
<ide><path>scri... | 2 |
Ruby | Ruby | add some more tests | 1af531dcf7b8d9ee4237ea5fd392b43875309954 | <ide><path>lib/action_cable/channel/periodic_timers.rb
<ide> module ActionCable
<ide> module Channel
<ide> module PeriodicTimers
<ide> extend ActiveSupport::Concern
<del>
<add>
<ide> included do
<ide> class_attribute :periodic_timers, instance_reader: false
<ide> self.periodic_ti... | 9 |
Python | Python | fix inner dimensions for 3b/11b models | 33e72b08d54bf5edd192492af7549b581563ecc2 | <ide><path>transformers/modeling_t5.py
<ide> import torch.nn.functional as F
<ide> from torch.nn import CrossEntropyLoss, MSELoss
<ide>
<del>from .modeling_utils import PreTrainedModel
<add>from .modeling_utils import PreTrainedModel, prune_linear_layer
<ide> from .configuration_t5 import T5Config
<ide> from .file_uti... | 2 |
Mixed | Ruby | move advisory lock to it's own connection | 1ee4a8812fcaf2de48e5ab65d7f707c391fce31d | <ide><path>activerecord/CHANGELOG.md
<add>* Store advisory locks on their own named connection.
<add>
<add> Previously advisory locks were taken out against a connection when a migration started. This works fine in single database applications but doesn't work well when migrations need to open new connections whic... | 5 |
Java | Java | bind implementation of parallel | 06f5d836a04ad238042da14928635ee09392d316 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationOnErrorResumeNextViaObservable;
<ide> import rx.operators.OperationOnErrorReturn;
<ide> import rx.operators.OperationOnExceptionResumeNextViaObservable;
<del>import rx.operators.OperationParallel;
<add>import rx.operators.Operato... | 4 |
PHP | PHP | add more test variations | 5403d02c8f479855eeaaeb39935c0effc1b412bb | <ide><path>tests/Http/HttpRequestTest.php
<ide> public function testFilledAnyMethod()
<ide> $this->assertTrue($request->filledAny(['name']));
<ide> $this->assertTrue($request->filledAny('name'));
<ide>
<add> $this->assertFalse($request->filledAny(['age']));
<add> $this->assertFalse($reque... | 1 |
Javascript | Javascript | remove iife in sigcont handler | 223ba43434ef4faad6d199d2e620ece30c278fa9 | <ide><path>lib/readline.js
<ide> Interface.prototype._ttyWrite = function(s, key) {
<ide> if (this.listenerCount('SIGTSTP') > 0) {
<ide> this.emit('SIGTSTP');
<ide> } else {
<del> process.once('SIGCONT', (function continueProcess(self) {
<del> return function() {
<del> ... | 1 |
Javascript | Javascript | fix mistaken typings | 11b6713d73c08a4e777a3a85922c76d34de66ed8 | <ide><path>lib/Stats.js
<ide> class Stats {
<ide> }
<ide>
<ide> /**
<del> * @returns {boolean} true if the compilation encountered an error
<add> * @returns {boolean} true if the compilation had a warning
<ide> */
<ide> hasWarnings() {
<ide> return (
<ide> class Stats {
<ide> }
<ide>
<ide> /**
<del> * @re... | 1 |
Ruby | Ruby | test #maximum and #minimum with empty enumerable | 5df979dd351b432b151101eb221a3b4dd549625c | <ide><path>activesupport/test/core_ext/enumerable_test.rb
<ide> def test_minimum
<ide> assert_equal 5, payments.minimum(:price)
<ide> end
<ide>
<add> def test_minimum_with_empty_enumerable
<add> payments = GenericEnumerable.new([])
<add> assert_nil payments.minimum(:price)
<add> end
<add>
<ide> def tes... | 1 |
Javascript | Javascript | fix addeventlister detection for ie9 | e99974004480d968d3fe37ee57540e72bbc96098 | <ide><path>src/jqLite.js
<ide> var jqCache = {},
<ide> jqName = 'ng-' + new Date().getTime(),
<ide> jqId = 1,
<del> addEventListenerFn = (window.document.attachEvent ?
<del> function(element, type, fn) {element.attachEvent('on' + type, fn);} :
<del> function(element, type, fn) {element.addEventList... | 1 |
Javascript | Javascript | tolerate empty domains. fixes #115 | a0fa7a00e5f949adbeb8c2790ae2fbb330ad617f | <ide><path>d3.js
<ide> d3.interpolators = [
<ide> function(a, b) { return (typeof b === "number") && d3.interpolateNumber(+a, b); }
<ide> ];
<ide> function d3_uninterpolateNumber(a, b) {
<del> b = 1 / (b - (a = +a));
<add> b = b - (a = +a) ? 1 / (b - a) : 0;
<ide> return function(x) { return (x - a) * b; };
<ide>... | 4 |
Python | Python | add extra resources to kubernetespod | 2744a3f3cc1402fb7bff7b962745be4dae920a5a | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> from libcloud.compute.base import NodeImage
<ide> from libcloud.compute.base import NodeLocation
<ide>
<del>from libcloud.utils import misc
<add>from libcloud.utils.misc import to_k8s_memory_size_str_from_n_bytes
<add>from libcloud.utils.misc import to_n_bytes_... | 1 |
PHP | PHP | write tests for token guard | ec4f6ae66e7792e3703d82b47eefb96fced0890e | <ide><path>tests/Auth/AuthTokenGuardTest.php
<add><?php
<add>
<add>use Illuminate\Http\Request;
<add>use Illuminate\Auth\TokenGuard;
<add>use Illuminate\Contracts\Auth\UserProvider;
<add>
<add>class AuthTokenGuardTest extends PHPUnit_Framework_TestCase
<add>{
<add> public function tearDown()
<add> {
<add> ... | 1 |
PHP | PHP | check length in env function | 7e446b5056013af842e4fa6f26c45e762eedc997 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function env($key, $default = null)
<ide> return;
<ide> }
<ide>
<del> if (Str::startsWith($value, '"') && Str::endsWith($value, '"')) {
<add> if (strlen($value) > 1 && Str::startsWith($value, '"') && Str::endsWith($value, '"')... | 1 |
Text | Text | add v3.17.0-beta.4 to changelog | b14380eb0200ea194cc4fa80211f78cc2806fce1 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.17.0-beta.4 (February 10, 2020)
<add>
<add>- [#18727](https://github.com/emberjs/ember.js/pull/18727) [BUGFIX] Avoid breaking {{-in-element}} usage
<add>- [#18728](https://github.com/emberjs/ember.js/pull/18728) [BUGFIX] Fix `{{#-in-element}}` double-cl... | 1 |
Ruby | Ruby | add class level `run` to rails command | f8d2a14e251b9985db11475a0cf8b1350efbf8f1 | <ide><path>railties/lib/rails/commands/command.rb
<ide> def initialize(argv = [])
<ide> @options = {}
<ide> end
<ide>
<del> def run(task_name)
<del> command_name = self.class.command_name_for(task_name)
<add> def self.run(task_name, argv)
<add> command_name = command_name_for(task... | 2 |
Javascript | Javascript | fix bad type specification in animated | 3ff4ee961c490baff2a230fdf6ee6417ae811edd | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> class AnimatedValueXY extends AnimatedWithChildren {
<ide> };
<ide> }
<ide>
<del> stopAnimation(callback?: ?() => number): void {
<add> stopAnimation(callback?: (value: {x: number, y: number}) => void): void {
<ide> this.x.stopAnimation();
<... | 1 |
Text | Text | add meta tag in the header of html | 87ecb0ba1fb0e8359e94a206953b32ad46687b35 | <ide><path>docs/docs/02-displaying-data.ja-JP.md
<ide> UIについて、最も基本的なことは、いくつかのデータを表示
<ide> <!DOCTYPE html>
<ide> <html>
<ide> <head>
<add> <meta charset="UTF-8" />
<ide> <title>Hello React</title>
<ide> <script src="https://fb.me/react-{{site.react_version}}.js"></script>
<ide> <script src="https://fb.m... | 11 |
PHP | PHP | remove inline assignment | dcadfcbcab97c99ca3fe7f58fe39fa4f29682455 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function queryAssociation(Model $model, &$linkModel, $type, $association,
<ide> unset($stack['_joined']);
<ide> }
<ide>
<del> if (!$query = $this->generateAssociationQuery($model, $linkModel, $type, $association, $assocData, $queryData, $external)) ... | 1 |
Ruby | Ruby | avoid another call to `scope` | 3c8775349c5ecbdbf98e1815b2d65d2955196564 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def root(path, options={})
<ide>
<ide> if @scope.resources?
<ide> with_scope_level(:root) do
<del> scope(parent_resource.path) do
<add> path_scope(parent_resource.path) do
<ide> super(optio... | 1 |
Ruby | Ruby | use flat_map when building ar order | 5e6bee112a7d590cbc51934b768f9632814726ce | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def order(*args)
<ide> # Like #order, but modifies relation in place.
<ide> def order!(*args)
<ide> args.flatten!
<del>
<ide> validate_order_args args
<ide>
<ide> references = args.reject { |arg| Arel::Node === arg }
<i... | 1 |
Mixed | Javascript | move createcipher to runtime deprecation | 933d8eb689bb4bc412e71c0069bf9b7b24de4f9d | <ide><path>doc/api/deprecations.md
<ide> Type: End-of-Life
<ide> <a id="DEP0106"></a>
<ide> ### DEP0106: crypto.createCipher and crypto.createDecipher
<ide>
<del>Type: Documentation-only
<add>Type: Runtime
<ide>
<ide> Using [`crypto.createCipher()`][] and [`crypto.createDecipher()`][] should be
<ide> avoided as they ... | 5 |
Text | Text | add colons for consistent styling | 3831de8a05727d5db9e444208738e709bb9a9af7 | <ide><path>CONTRIBUTING.md
<ide> Before you submit your pull request consider the following guidelines:
<ide> that relates to your submission. You don't want to duplicate effort.
<ide> * Please sign our [Contributor License Agreement (CLA)](#cla) before sending pull
<ide> requests. We cannot accept code without thi... | 1 |
Javascript | Javascript | add locale for kannada | 8b638ee23bd58121f2b7d5fee052e87ae5423364 | <ide><path>src/locale/kn.js
<add>//! moment.js locale configuration
<add>//! locale : Kannada [kn]
<add>//! author : Rajeev Naik : https://github.com/rajeevnaikte
<add>
<add>import moment from '../moment';
<add>
<add>var symbolMap = {
<add> '1': '೧',
<add> '2': '೨',
<add> '3': '೩',
<add> '4': '೪',
<add> ... | 2 |
Javascript | Javascript | use structuredclone instead of v8 | dda7a21b07aa3f6b21b163fcebf7c118f819e8fb | <ide><path>lib/internal/webstreams/readablestream.js
<ide> const {
<ide> kEnumerableProperty,
<ide> } = require('internal/util');
<ide>
<del>const {
<del> serialize,
<del> deserialize,
<del>} = require('v8');
<del>
<ide> const {
<ide> validateBuffer,
<ide> validateObject,
<ide> const {
<ide> kIsReadable,
<id... | 1 |
Javascript | Javascript | support multiple pages directories for linting | 527cb97b56cf5be39a5076c4811cb1c91f8824d4 | <ide><path>packages/eslint-plugin-next/lib/rules/no-html-link-for-pages.js
<ide> const path = require('path')
<ide> const fs = require('fs')
<ide> const {
<del> getUrlFromPagesDirectory,
<add> getUrlFromPagesDirectories,
<ide> normalizeURL,
<ide> execOnce,
<ide> } = require('../utils/url')
<ide> const pagesDirWar... | 3 |
PHP | PHP | set translations to use the cake domain | 8a77a31620cec8c1338e54876cc2760682811f2f | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function radio($fieldName, $options = array(), $attributes = array()) {
<ide>
<ide> $showEmpty = $this->_extractOption('empty', $attributes);
<ide> if ($showEmpty) {
<del> $showEmpty = ($showEmpty === true) ? __('empty') : $showEmpty;
<add> $showEmpty... | 2 |
Ruby | Ruby | clarify homebrew_github_api_token in gist-logs err | 2a1b936f7697f355f76603ef1984ccbdf4abea9e | <ide><path>Library/Homebrew/cmd/gist-logs.rb
<ide> def gistify_logs(f)
<ide> puts <<~EOS
<ide> You can create a new personal access token:
<ide> #{GitHub::ALL_SCOPES_URL}
<del> and then set the new HOMEBREW_GITHUB_API_TOKEN as the authentication method.
<add> #{Utils::Shell.set_vari... | 2 |
Ruby | Ruby | restore previous state when interrupted | 4c55082e7c0bcf0c6bb2b1401286fda466ad3248 | <ide><path>Library/Homebrew/cmd/update.rb
<ide> def pull!
<ide> # the refspec ensures that 'origin/master' gets updated
<ide> args << "refs/heads/master:refs/remotes/origin/master"
<ide>
<del> safe_system "git", *args
<add> reset_on_interrupt { safe_system "git", *args }
<ide>
<ide> @current_revisio... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.