content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Text | Text | add a missing verb | c6091a2646c0960c537243c934051cfc413bf6b8 | <ide><path>docs/recipes/ServerRendering.md
<ide> function handleRender(req, res) {
<ide> }
<ide> ```
<ide>
<del>Because we `res.send()` inside of the callback, the server will hold open the connection and won’t send any data until that callback executes. You’ll notice a 500ms delay is now added to each server request ... | 1 |
Javascript | Javascript | fix severe perf problems in component tree devtool | 3cc733add482fd0f855d15ae8cbd75cc077bd674 | <ide><path>src/isomorphic/devtools/ReactComponentTreeDevtool.js
<ide> var invariant = require('invariant');
<ide>
<ide> var tree = {};
<del>var rootIDs = [];
<add>var unmountedIDs = {};
<add>var rootIDs = {};
<ide>
<ide> function updateTree(id, update) {
<ide> if (!tree[id]) {
<ide> function updateTree(id, update) ... | 1 |
Text | Text | extend bash-mv and add fixes | 2fb4a6199ef82dced6023030fd93a9bce0c8b7e7 | <ide><path>guide/russian/bash/bash-mv/index.md
<ide> localeTitle: Bash mv
<ide> ---
<ide> ## Команда Bash: mv
<ide>
<add>Команда mv выполняет операции перемещения и переименования файлов в зависимости от особенностей использования. В любом случае исходный файл исчезает после операции. Команда mv используется почти так... | 1 |
Text | Text | fix matcher callback example (closes ) | d361e380b85ca3e907af9d9a8a720f6dc4bbcf27 | <ide><path>website/docs/usage/rule-based-matching.md
<ide> match on the uppercase versions, in case someone has written it as "Google i/o".
<ide>
<ide> ```python
<ide> ### {executable="true"}
<del>import spacy
<add>from spacy.lang.en import English
<ide> from spacy.matcher import Matcher
<ide> from spacy.tokens import... | 1 |
Javascript | Javascript | fix tests + enable inline requires on react-native | d088750163bd45cb60c4c6796ed97624fb6f91bf | <ide><path>packager/react-packager/src/Activity/__tests__/Activity-test.js
<ide> describe('Activity', () => {
<ide>
<ide> expect(() => {
<ide> Activity.endEvent(eid);
<del> }).toThrow('event(3) has already ended!');
<add> }).toThrow('event(1) has already ended!');
<ide> });
<ide> });
<ide... | 4 |
Ruby | Ruby | remove old unavailable link with relevant fix | 29efc6ee05d00a55e6f901223c4db55ea66b9992 | <ide><path>actionpack/test/controller/redirect_test.rb
<ide> def redirect_to_url
<ide> end
<ide>
<ide> def redirect_to_url_with_unescaped_query_string
<del> redirect_to "http://dev.rubyonrails.org/query?status=new"
<add> redirect_to "http://example.com/query?status=new"
<ide> end
<ide>
<ide> def redirec... | 4 |
Ruby | Ruby | fix #inspect for new records. closes | a995b9cde074bec46ab4befc53f16ff91ec952f2 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def attributes_before_type_cast
<ide>
<ide> # Format attributes nicely for inspect.
<ide> def attribute_for_inspect(attr_name)
<del> raise "Attribute not present #{attr_name}" unless has_attribute?(attr_name)
<add> raise "Attribute not p... | 2 |
PHP | PHP | use default request if necessary | 3a01c535cd1cc272a523558bb4b9b7d250b28387 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function stack(Closure $stack)
<ide> */
<ide> public function run(SymfonyRequest $request = null)
<ide> {
<add> $request = $request ?: $this['request'];
<add>
<ide> with($response = $this->handleRequest($request))->send();
<ide>
<ide> $this->te... | 1 |
Python | Python | use same tri format | bad3b6f78a39aa89e0bbab17fbb92ce1c6d9ca96 | <ide><path>numpy/lib/twodim_base.py
<ide> def tril_indices(n, k=0, m=None):
<ide> [-10, -10, -10, -10]])
<ide>
<ide> """
<del> tri = np.tri(n, m=m, k=k, dtype=bool)
<add> tri = np.tri(n, m, k=k, dtype=bool)
<ide>
<ide> return tuple(np.broadcast_to(inds, tri.shape)[tri]
<ide> ... | 1 |
Javascript | Javascript | remove unused parameter on module.instantiate | 517b0470c7e3147606425604dd9c8429cf0f4de4 | <ide><path>lib/internal/modules/esm/module_job.js
<ide> class ModuleJob {
<ide> const initWrapper = internalBinding('inspector').callAndPauseOnStart;
<ide> initWrapper(this.module.instantiate, this.module);
<ide> } else {
<del> this.module.instantiate(true);
<add> this.module.instant... | 1 |
Text | Text | provide replacements for deprecated util methods | bd6e0be0dfbbf6d10f1f054c43b0b82f25c60b16 | <ide><path>doc/api/util.md
<ide> added: v0.6.0
<ide> deprecated: v4.0.0
<ide> -->
<ide>
<del>> Stability: 0 - Deprecated
<add>> Stability: 0 - Deprecated: Use [`Array.isArray()`][] instead.
<ide>
<ide> * `object` {any}
<ide> * Returns: {boolean}
<ide>
<del>Internal alias for [`Array.isArray`][].
<add>Alias for [`Arr... | 1 |
Javascript | Javascript | add some test cases for small u.s. counties | 4d268a796644a2036336738889b7e095cbae3e98 | <ide><path>test/geo/path-test.js
<ide> suite.addBatch({
<ide> },
<ide>
<ide> "antemeridian cutting": {
<add> "rotate([98, 0])": {
<add> topic: function() {
<add> return d3.geo.path()
<add> .context(testContext)
<add> .projection(d3.geo.equirectangular()
<add> ... | 1 |
Javascript | Javascript | define @@tostringtag as a data property | 06ecf4dec70bc35dcdc32993a23ed6360a82a8b2 | <ide><path>lib/internal/url.js
<ide> class URL {
<ide> parse(this, input, base);
<ide> }
<ide>
<del> get [Symbol.toStringTag]() {
<del> return this instanceof URL ? 'URL' : 'URLPrototype';
<del> }
<del>
<ide> get [special]() {
<ide> return (this[context].flags & binding.URL_FLAGS_SPECIAL) !== 0;
<ide>... | 3 |
Ruby | Ruby | handle dirs with restricted permissions | a6e7858cbc95b2526ac481248ac72e8bdc2dc786 | <ide><path>Library/Homebrew/mktemp.rb
<ide> def run
<ide> begin
<ide> Dir.chdir(tmpdir) { yield self }
<ide> ensure
<del> ignore_interrupts { rm_rf(tmpdir) } unless retain?
<add> ignore_interrupts { chmod_rm_rf(tmpdir) } unless retain?
<ide> end
<ide> ensure
<ide> ohai "Temporary files... | 1 |
Javascript | Javascript | notify user on error | a17143ee628b7c6ccad842be171abfe9e9bb4e3f | <ide><path>src/state-store.js
<ide> module.exports = class StateStore {
<ide> const dbOpenRequest = indexedDB.open(this.databaseName, this.version);
<ide> dbOpenRequest.onupgradeneeded = event => {
<ide> let db = event.target.result;
<del> db.onerror = event => {
<del> cons... | 1 |
Python | Python | add spatial dropout and 3d global pooling to docs | 67e242d926b577f440217d9d10b890f54bb875c3 | <ide><path>docs/autogen.py
<ide> layers.Lambda,
<ide> layers.ActivityRegularization,
<ide> layers.Masking,
<add> layers.SpatialDropout1D,
<add> layers.SpatialDropout2D,
<add> layers.SpatialDropout3D,
<ide> ],
<ide> },
<ide> {
<ide> ... | 1 |
Python | Python | fix issue #258 | 4355f4053f20f079d3f408b78c9145afc89b11f3 | <ide><path>glances/glances.py
<ide> def displayHelp(self, core):
<ide>
<ide> def displayBat(self, batpercent):
<ide> # Display the current batteries capacities % - Center
<del> if not batinfo_lib_tag and batpercent != []:
<add> if not batinfo_lib_tag or batpercent == []:
<ide> ret... | 1 |
Mixed | Ruby | add dbm_test_read analytics | 752714b71ceeb473bdbdb008e645c645cb428d96 | <ide><path>Library/Homebrew/cache_store.rb
<ide> def db
<ide> end
<ide> false
<ide> end
<add> Utils::Analytics.report_event("dbm_test_read", dbm_test_read_success.to_s)
<ide> cache_path.delete unless dbm_test_read_success
<ide> end
<ide> DBM.open(dbm_file_path, DAT... | 2 |
Java | Java | fix checkstyle issue | 94c14c469e6cc7a7b568a08589b159dc27489411 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilder.java
<ide> * you may not use this file except in compliance with the License.
<ide> * You may obtain a copy of the License at
<ide> *
<del> * http://www.apache.org/licenses/LICENSE-2.0
<add> * https... | 1 |
Go | Go | remove unused variable from container struct | 7a565a0479b6a797a0cdc9a4156e57ce811032b3 | <ide><path>container.go
<ide> type Container struct {
<ide> stdin io.ReadCloser
<ide> stdinPipe io.WriteCloser
<ide>
<del> stdoutLog *os.File
<del> stderrLog *os.File
<del> runtime *Runtime
<add> runtime *Runtime
<ide> }
<ide>
<ide> type Config struct { | 1 |
Javascript | Javascript | update loader.js texture double slash fix | 06522053e208bbba7ac00c41b244100c977c86b8 | <ide><path>src/loaders/Loader.js
<ide> THREE.Loader.prototype = {
<ide> function create_texture( where, name, sourceFile, repeat, offset, wrap, anisotropy ) {
<ide>
<ide> var isCompressed = /\.dds$/i.test( sourceFile );
<del> var fullPath = texturePath + "/" + sourceFile;
<add>
<add> var fullPath = texture... | 1 |
Javascript | Javascript | exclude the e2e test that fails on safari | deafb5e5459fce863d9254bfe621df18dd457648 | <ide><path>src/ng/filter/limitTo.js
<ide> expect(limitedLongNumber.getText()).toEqual('Output long number: 234');
<ide> });
<ide>
<del> it('should update the output when -3 is entered', function() {
<add> // There is a bug in safari and protractor that doesn't like the minus key
<add> ... | 1 |
PHP | PHP | fix colours in dark terminals | 02f8709258369dc3f3dc84b6f2ce5b12fa939007 | <ide><path>src/Error/Debug/ConsoleFormatter.php
<ide> class ConsoleFormatter implements FormatterInterface
<ide> // cyan
<ide> 'class' => '0;36',
<ide> // grey
<del> 'punct' => '0;8',
<del> // black
<del> 'property' => '0;30',
<add> 'punct' => '0;90',
<add> // ... | 1 |
PHP | PHP | add sftp to supported storage drivers | 2572ce1e3698cfdb6563a725aa5d36692665e805 | <ide><path>config/filesystems.php
<ide> | may even configure multiple disks of the same driver. Defaults have
<ide> | been setup for each driver as an example of the required options.
<ide> |
<del> | Supported Drivers: "local", "ftp", "s3", "rackspace"
<add> | Supported Drivers: "local", "ftp", "sftp"... | 1 |
Text | Text | add v3.15.0-beta.4 to changelog | a590298a3ac9d3199217ae02c56e0d21e809f2fd | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.15.0-beta.4 (November 25, 2019)
<add>
<add>- [#17834](https://github.com/emberjs/ember.js/pull/17834) [BUGFIX] Prevents autotracking ArrayProxy creation
<add>- [#18554](https://github.com/emberjs/ember.js/pull/18554) [BREAKING BUGFIX] Adds autotracking ... | 1 |
PHP | PHP | convert iniacl to use the instanceconfigtrait | b9bad846bfc6056ec9372e9a7e96a8300933da83 | <ide><path>src/Controller/Component/Acl/IniAcl.php
<ide>
<ide> use Cake\Configure\Engine\IniConfig;
<ide> use Cake\Controller\Component;
<add>use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Core\Object;
<ide> use Cake\Utility\Hash;
<ide>
<ide> */
<ide> class IniAcl extends Object implements AclInterface {
<ide>
<... | 1 |
Mixed | Text | use correct brand name across codebase | 3b056aa7b4f3aa636058559f16e22a1504b4b2dd | <ide><path>client/src/pages/learn/apis-and-microservices/basic-node-and-express/index.md
<ide> Node.js is a JavaScript runtime that allows developers to write backend (server-
<ide>
<ide> Express, while not included with Node.js, is another module often used with it. Express runs between the server created by Node.js ... | 83 |
PHP | PHP | fix issue with inputs() and plugin models | 78b23d8e31331d4890c2fdfb18cb663a33caba4c | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testFormInputs() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * Tests inputs() works with plugin models
<add> *
<add> * @return void
<add> */
<add> public function testInputsPluginModel() {
<add> $this... | 2 |
PHP | PHP | fix deprecation warnings on php 7.4 | 8d86b1ccfaf79af2223dafc060a50a6386ccbc9f | <ide><path>src/Console/ConsoleOptionParser.php
<ide> protected function _optionExists($name)
<ide> if (substr($name, 0, 2) === '--') {
<ide> return isset($this->_options[substr($name, 2)]);
<ide> }
<del> if ($name{0} === '-' && $name{1} !== '-') {
<del> return isset($this->... | 4 |
Ruby | Ruby | remove outdated comment | c95c32fbb081d277ce943f65143b234c09582f8e | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def noop(*args); end
<ide> set_cpu_flags
<ide> macosxsdk remove_macosxsdk].each{|s| alias_method s, :noop }
<ide>
<del>### DEPRECATE THESE
<ide> def deparallelize
<ide> delete('MAKEFLAGS')
<ide> end | 1 |
Javascript | Javascript | ignore clicks on block decorations | eb1eeb3fde80d812e528df41fe34a5b0f9afdd9f | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> expect(component.refs.blockDecorationMeasurementArea.offsetWidth).toBe(component.getScrollWidth())
<ide> })
<ide>
<add> it('does not change the cursor position when clicking on a block decoration', async () =... | 2 |
Text | Text | use code markup/markdown in headers | b3ff0481ff8a8132ca097c5aec540c98a5fa631c | <ide><path>doc/api/esm.md
<ide> or when referenced by `import` statements within ES module code:
<ide> * Strings passed in as an argument to `--eval` or `--print`, or piped to
<ide> `node` via `STDIN`, with the flag `--input-type=commonjs`.
<ide>
<del>### <code>package.json</code> <code>"type"</code> field
<add>### ... | 1 |
Go | Go | add support for multiple network in inspect | 7af9f988ac535e4ae2e87976db25d4f7047274db | <ide><path>api/client/network.go
<ide> func (cli *DockerCli) CmdNetworkLs(args ...string) error {
<ide>
<ide> // CmdNetworkInspect inspects the network object for more details
<ide> //
<del>// Usage: docker network inspect <NETWORK>
<add>// Usage: docker network inspect <NETWORK> [<NETWORK>]
<ide> // CmdNetworkInspect... | 2 |
Javascript | Javascript | add fan of it to showcase | 825f5da652061fa72a2a3dbafcf81465a3bd97c5 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/facebook-ads-manager/id964397083?mt=8',
<ide> author: 'Facebook',
<ide> },
<add> {
<add> name: 'Fan of it',
<add> icon: 'http://a4.mzstatic.com/us/r30/Purple3/v4/c9/3f/e8/c93fe8fb-9332-e744-f... | 1 |
Javascript | Javascript | simplify condition in mobx example | c689bc9f8bb555a844eada2c279b4616ba804196 | <ide><path>examples/with-mobx/store.js
<ide> class Store {
<ide> }
<ide>
<ide> export function initStore (isServer, lastUpdate = Date.now()) {
<del> if (isServer && typeof window === 'undefined') {
<add> if (isServer) {
<ide> return new Store(isServer, lastUpdate)
<ide> } else {
<ide> if (store === null) { | 1 |
Javascript | Javascript | fix multibyte decoding in content_disposition.js | e992480baa0b91132431793b4a62dc20ae9c2eb2 | <ide><path>src/display/content_disposition.js
<ide> function getFilenameFromContentDispositionHeader(contentDisposition) {
<ide> }
<ide> function textdecode(encoding, value) {
<ide> if (encoding) {
<del> if (!/^[^\x00-\xFF]+$/.test(value)) {
<add> if (!/^[\x00-\xFF]+$/.test(value)) {
<ide> ret... | 1 |
Javascript | Javascript | fix attr setting in glimmer components | 8dc7d58cd4c0f45cc5aaf79c3ccf03d10dd7445f | <ide><path>packages/ember-htmlbars/lib/node-managers/component-node-manager.js
<ide> ComponentNodeManager.prototype.destroy = function() {
<ide> export function createComponent(_component, isAngleBracket, _props, renderNode, env, attrs = {}, proto = _component.proto()) {
<ide> let props = assign({}, _props);
<ide>
<... | 1 |
Javascript | Javascript | fix usage of dependencytemplates and types | ef40df2d1f7259fadc9909533eaa86b4e6f3e544 | <ide><path>lib/ChunkTemplate.js
<ide> const { SyncWaterfallHook, SyncHook } = require("tapable");
<ide> /** @typedef {import("./Chunk")} Chunk */
<ide> /** @typedef {import("./Module")} Module} */
<ide> /** @typedef {import("./util/createHash").Hash} Hash} */
<add>/** @typedef {import("./DependencyTemplates")} Dependen... | 6 |
Text | Text | remove reference to link_scripts | 1e7bff808180a35da545630ad75a6fab31cf7da5 | <ide><path>docs/Python-for-Formula-Authors.md
<ide> def install
<ide> venv = virtualenv_create(libexec)
<ide> # Install all of the resources declared on the formula into the virtualenv.
<ide> venv.pip_install resources
<del> # `link_scripts` takes a look at the virtualenv's bin directory before and
<del> # afte... | 1 |
Javascript | Javascript | add point to initializecore | a07de97754ec605222ebebf267534d38b3c11df5 | <ide><path>Libraries/Core/InitializeCore.js
<ide> */
<ide> 'use strict';
<ide>
<add>const startTime =
<add> global.nativePerformanceNow != null ? global.nativePerformanceNow() : null;
<add>
<ide> const {polyfillObjectProperty, polyfillGlobal} = require('PolyfillFunctions');
<ide>
<ide> if (global.GLOBAL === undefin... | 1 |
PHP | PHP | handle prefix update on route level prefix | 449c8056cc0f13e7e20428700045339bae6bdca2 | <ide><path>src/Illuminate/Routing/Route.php
<ide> public function __construct($methods, $uri, $action)
<ide> {
<ide> $this->uri = $uri;
<ide> $this->methods = (array) $methods;
<del> $this->action = $this->parseAction($action);
<add> $this->action = Arr::except($this->parseAction($acti... | 2 |
Text | Text | fix some grammar | dd25417f07f73277b9708162dc80e4549325d8af | <ide><path>docs/tutorials/essentials/part-1-overview-concepts.md
<ide> Redux helps you manage "global" state - state that is needed across many parts o
<ide>
<ide> ### When Should I Use Redux?
<ide>
<del>Redux helps you deal with shared state management, but like any tool, it has tradeoffs. There's more concepts to l... | 1 |
Go | Go | adjust tests for changes in go 1.12.8 / 1.11.13 | 683766613a8c1dca8f95b19ddb7e083bb3aef266 | <ide><path>opts/hosts_test.go
<ide> func TestParseHost(t *testing.T) {
<ide> func TestParseDockerDaemonHost(t *testing.T) {
<ide> invalids := map[string]string{
<ide>
<del> "tcp:a.b.c.d": "Invalid bind address format: tcp:a.b.c.d",
<del> "tcp:a.b.c.d/path": "Invalid bind address forma... | 1 |
PHP | PHP | throw expection for invalid attachement | 80d86fda0dd8dcafcb0f817439ef3bc70f4348b6 | <ide><path>src/Mailer/Message.php
<ide> public function setAttachments(array $attachments)
<ide> /** @var string $name */
<ide> $name = $fileInfo['file']->getClientFilename();
<ide> }
<del> } else {
<add> } elseif (is_string($fileInfo['file']... | 2 |
Text | Text | add text inside content providers section | b3f76eea3ba9f200721a9a390be1fd9ea3cdee6b | <ide><path>guide/english/android-development/core-components/index.md
<ide> There are three kinds of services:
<ide> A _Broadcast receiver_ is another component without user interface (except an optional status bar notification) that provides a gateway for the system to deliver events from/to the app, even when the lat... | 1 |
Text | Text | add command for git checkout previous branch | 3cfe00eafd9fe379e72cd267ece476a588b45abd | <ide><path>guide/english/git/git-checkout/index.md
<ide> git checkout BRANCH-NAME
<ide> ```
<ide> Generally, Git won't let you checkout another branch unless your working directory is clean, because you would lose any working directory changes that aren't committed. You have three options to handle your changes: 1) tra... | 1 |
Go | Go | fix flaky testswarmservicewithgroup | ef4bcf23e6d2324f15628ed3c0e8e8200593bd5f | <ide><path>integration-cli/docker_cli_swarm_test.go
<ide> func (s *DockerSwarmSuite) TestSwarmServiceWithGroup(c *check.C) {
<ide> d := s.AddDaemon(c, true, true)
<ide>
<ide> name := "top"
<del> out, err := d.Cmd("service", "create", "--name", name, "--user", "root:root", "--group-add", "wheel", "--group-add", "audi... | 1 |
PHP | PHP | add test for guesser callback transfer | 6d700974d27da0af2729e68520ad901020acdf96 | <ide><path>tests/Auth/AuthAccessGateTest.php
<ide> public function test_for_user_method_attaches_a_new_user_to_a_new_gate_instance(
<ide> $this->assertTrue($gate->forUser((object) ['id' => 2])->check('foo'));
<ide> }
<ide>
<add> public function test_for_user_method_attaches_a_new_user_to_a_new_gate_inst... | 1 |
PHP | PHP | fix phpdoc collection union() return type | 0fecd603347b74c954d74d8b7c38658a2c344aa7 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function combine($values)
<ide> * Union the collection with the given items.
<ide> *
<ide> * @param mixed $items
<del> * @return void
<add> * @return static
<ide> */
<ide> public function union($items)
<ide> { | 1 |
Javascript | Javascript | remove internal errorcache property | 4d58c08865d7c996bb8cfbe15793443fd425410f | <ide><path>lib/assert.js
<ide> const { codes: {
<ide> ERR_INVALID_ARG_VALUE,
<ide> ERR_INVALID_RETURN_VALUE
<ide> } } = require('internal/errors');
<del>const { AssertionError, errorCache } = require('internal/assert');
<add>const { AssertionError } = require('internal/assert');
<ide> const { openSync, closeSync, r... | 3 |
Javascript | Javascript | compute the necessary inverse and reuse it | 26978c4e198ae481fcab3c3b3a1cecc93988715b | <ide><path>examples/js/controls/DragControls.js
<ide> THREE.DragControls = function ( _objects, _camera, _domElement ) {
<ide> var _offset = new THREE.Vector3();
<ide> var _intersection = new THREE.Vector3();
<ide> var _worldPosition = new THREE.Vector3();
<add> var _inverseMatrix = new THREE.Matrix4();
<add>
<ide>... | 1 |
Java | Java | name the newthreadscheduler threads | 56bd8db2f46237c648ea0f7e8004883847cfb763 | <ide><path>rxjava-core/src/main/java/rx/concurrency/NewThreadScheduler.java
<ide> public Subscription schedule(Func0<Subscription> action) {
<ide> public void run() {
<ide> discardableAction.call();
<ide> }
<del> });
<add> }, "RxNewThreadScheduler");
<ide>
<ide> ... | 1 |
Javascript | Javascript | update flash message | 49101183663ffca913880f507a3071bdb4e86339 | <ide><path>server/boot/story.js
<ide> module.exports = function(app) {
<ide> function submitNew(req, res) {
<ide> if (!req.user.isGithubCool) {
<ide> req.flash('errors', {
<del> msg: 'You must authenticate with Github to post to Camper News'
<add> msg: 'You must link GitHub with your account b... | 1 |
Text | Text | correct markdown (shellsort) | cc6814bd1cdb6fe136400caaf838ba6af3210d0e | <ide><path>README.md
<ide> __Properties__
<ide> ### Shell
<ide> ![alt text][shell-image]
<ide>
<del>From [Wikipedia][shell-wiki]: Shellsort is a generalization of insertion sort that allows the exchange of items that are far apart. The idea is to arrange the list of elements so that, starting anywherem considereing ... | 1 |
PHP | PHP | add an exception when datefmt_create fails | 7a20e8b785d0d9388f76f3d34520702870ab0bdc | <ide><path>src/I18n/DateFormatTrait.php
<ide> use Cake\Chronos\Date as ChronosDate;
<ide> use Cake\Chronos\MutableDate;
<ide> use IntlDateFormatter;
<add>use RuntimeException;
<ide>
<ide> /**
<ide> * Trait for date formatting methods shared by both Time & Date.
<ide> protected function _formatObject($date, $format, $... | 1 |
Python | Python | update slicehost for create_node api changes | c18fe5396a4ea6190e2cefb0bbdbfa256db463e1 | <ide><path>libcloud/drivers/slicehost.py
<ide> def list_sizes(self):
<ide> def list_images(self):
<ide> return self._to_images(self.connection.request('/images.xml').object)
<ide>
<del> def create_node(self, name, image, size, **kwargs):
<add> def create_node(self, **kwargs):
<add> name = kwar... | 2 |
Javascript | Javascript | remove dead code | 83360899db901a3eace976adff749006fbcee8a7 | <ide><path>test/es-module/test-esm-dynamic-import.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const { URL } = require('url');
<del>const vm = require('vm');
<ide>
<ide> const relativePath = '../fixtures/es-modules/test-esm-ok.mjs';
<ide> const absolutePath = require.reso... | 1 |
Ruby | Ruby | fix creation example in nested attributes | 10f3cf00b8cca86a088fc98fa46fdff0b027a495 | <ide><path>activerecord/lib/active_record/nested_attributes.rb
<ide> module NestedAttributes #:nodoc:
<ide> # create the member and avatar in one go:
<ide> #
<ide> # params = { :member => { :name => 'Jack', :avatar_attributes => { :icon => 'smiling' } } }
<del> # member = Member.create(params)
<add> ... | 1 |
Javascript | Javascript | remove some unintended changes | 948de2bdbe57a80433c87a2fe4fe27aeabf0ccae | <ide><path>src/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide>
<ide> this.restore();
<ide> },
<add>
<ide> paintImageMaskXObject: function canvasGraphicsPaintImageMaskXObject(
<ide> imgArray, inverseDecode, width, height) {
<ide> function a... | 3 |
Javascript | Javascript | fix a broken link | 8b54524c0704b33409ff6827e5f8830e046c4204 | <ide><path>src/ng/compile.js
<ide> * It is safe to do DOM transformation in the post-linking function on elements that are not waiting
<ide> * for their async templates to be resolved.
<ide> *
<del> * <a name="Attributes"></a>
<ide> * ### Attributes
<ide> *
<ide> * The {@link ng.$compile.directive.Attributes Attr... | 1 |
Javascript | Javascript | improve inspectoptions validation | bf36f0755c0a41702fe506bcfc90d156030d0497 | <ide><path>lib/internal/console/constructor.js
<ide> function Console(options /* or: stdout, stderr, ignoreErrors = true */) {
<ide> if (typeof colorMode !== 'boolean' && colorMode !== 'auto')
<ide> throw new ERR_INVALID_ARG_VALUE('colorMode', colorMode);
<ide>
<del> if (inspectOptions) {
<add> if (typeof insp... | 2 |
Javascript | Javascript | add format information, minor code refactoring | 350e397f636cab00a54c87a3e88138880f1c687e | <ide><path>lib/serialization/FileMiddleware.js
<ide> const SerializerMiddleware = require("./SerializerMiddleware");
<ide> /** @typedef {import("../util/fs").IntermediateFileSystem} IntermediateFileSystem */
<ide> /** @typedef {import("./types").BufferSerializableType} BufferSerializableType */
<ide>
<add>/*
<add>Form... | 1 |
Go | Go | add api test to rotate the swarm ca certificate | 376c75d13cedd22c578197a140ffc10e27e84d01 | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> import (
<ide> "sync"
<ide> "time"
<ide>
<add> "github.com/cloudflare/cfssl/csr"
<ide> "github.com/cloudflare/cfssl/helpers"
<add> "github.com/cloudflare/cfssl/initca"
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/api/types/con... | 1 |
Ruby | Ruby | add test case about assigning nil in enum | f5ec5246241c736bb95e1a3e997c7581c92360cb | <ide><path>activerecord/test/cases/enum_test.rb
<ide> class EnumTest < ActiveRecord::TestCase
<ide> assert_nil @book.status
<ide> end
<ide>
<add> test "assign nil value to enum which defines nil value to hash" do
<add> @book.read_status = nil
<add> assert_equal "forgotten", @book.read_status
<add> end
<a... | 1 |
Python | Python | ignore keyerrors from del() | 05cbe1a5e3292271be809423b0b1a2272d9740b6 | <ide><path>celery/app/base.py
<ide> def log(self):
<ide>
<ide> @cached_property
<ide> def events(self):
<add> """Sending/receiving events.
<add>
<add> See :class:`~celery.events.Events`.
<add>
<add> """
<ide> from celery.events import Events
<ide> return Events(app=self)
<i... | 3 |
Java | Java | remove unused private loggers | debf61b948fd44a8757c4a8c286202ca3b6762b5 | <ide><path>spring-context/src/test/java/org/springframework/aop/aspectj/autoproxy/AspectJAutoProxyCreatorTests.java
<ide> import java.lang.annotation.RetentionPolicy;
<ide> import java.lang.reflect.Method;
<ide>
<del>import org.apache.commons.logging.Log;
<del>import org.apache.commons.logging.LogFactory;
<ide> import... | 4 |
Python | Python | improve cli error handling [ci skip] | 5c53a76021775b2ed4cb6904c132f6e7780c7dc4 | <ide><path>spacy/cli/_util.py
<ide> def show_validation_error(
<ide> )
<ide> print(f"{COMMAND} init fill-config {config_path} --base {config_path}\n")
<ide> sys.exit(1)
<del> except InterpolationError as e:
<del> msg.fail("Config validation error", e, exits=1)
<add> except E... | 1 |
Javascript | Javascript | defer readiness to the end of the run loop | 455b2ecbcd3e4fe72a9eec9ed9ddb1d52ba92ee7 | <ide><path>packages/ember-application/lib/system/application.js
<ide> Ember.Application = Ember.Namespace.extend(
<ide>
<ide> // jQuery 1.7 doesn't call the ready callback if already ready
<ide> if (Ember.$.isReady) {
<del> this.didBecomeReady();
<add> Ember.run.once(this, this.didBecomeReady);
<ide>... | 2 |
Go | Go | increase test coverage of pkg/templates | 27e771b714b599c449c8fb8f01547454912aeb28 | <ide><path>pkg/templates/templates_test.go
<ide> func TestParseTruncateFunction(t *testing.T) {
<ide> template: `{{truncate . 30}}`,
<ide> expected: "tupx5xzf6hvsrhnruz5cr8gwp",
<ide> },
<add> {
<add> template: `{{pad . 3 3}}`,
<add> expected: " tupx5xzf6hvsrhnruz5cr8gwp ",
<add> },
<ide> }
<ide>
<i... | 1 |
Python | Python | add missing keys | d17cce227022594ba84dbb92bafc802fb41434df | <ide><path>src/transformers/modeling_albert.py
<ide> class AlbertPreTrainedModel(PreTrainedModel):
<ide>
<ide> config_class = AlbertConfig
<ide> base_model_prefix = "albert"
<add> authorized_missing_keys = [r"position_ids"]
<ide>
<ide> def _init_weights(self, module):
<ide> """ Initialize the w... | 1 |
Text | Text | update pr template | 3ae560c3fa9963cf0a8c979a5ecc7dc8ee349534 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<ide> <!-- Make sure that your PR is not a duplicate -->
<ide>
<ide> #### Pre-Submission Checklist
<del><!-- Go over all points below, and put an `x` in all the boxes that apply. -->
<del><!-- All points should be checked, otherwise, read the CONTRIBUTING guidelines from abo... | 1 |
Go | Go | fix spelling error, add noether and euler | ab31d9500ebe0c3bf039321bb8c83c7b01c21e4e | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Euclid invented geometry. https://en.wikipedia.org/wiki/Euclid
<ide> "euclid",
<ide>
<add> // Leonhard Euler invented large parts of modern mathematics. https://de.wikipedia.org/wiki/Leonhard_Euler
<add> "euler",
<add>
<ide> // Pierre de Fer... | 1 |
Python | Python | add import in regression test | bdcecb3c96cef5b663b1ada22efa952b0882f1f0 | <ide><path>spacy/tests/regression/test_issue600.py
<ide> from __future__ import unicode_literals
<ide> from ...tokens import Doc
<ide> from ...vocab import Vocab
<add>from ...attrs import POS
<ide>
<ide>
<ide> def test_issue600(): | 1 |
Ruby | Ruby | use correct value in example [ci skip] | 7c7f4f96dfc3507f83ea23a9aa98bc6b5d1e5f51 | <ide><path>actioncable/lib/action_cable/helpers/action_cable_helper.rb
<ide> module ActionCableHelper
<ide> #
<ide> # <head>
<ide> # <%= action_cable_meta_tag %>
<del> # <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<add> # <%= javascript_include_... | 1 |
Javascript | Javascript | simplify trystatsync with throwifnoentry option | 88153dc1753fea91cbf42a3c2812d2c5e6145f93 | <ide><path>lib/internal/modules/esm/resolve.js
<ide> function getConditionsSet(conditions) {
<ide> const realpathCache = new SafeMap();
<ide> const packageJSONCache = new SafeMap(); /* string -> PackageConfig */
<ide>
<del>function tryStatSync(path) {
<del> try {
<del> return statSync(path);
<del> } catch {
<del... | 1 |
Python | Python | remove unused import | f0d523f8f240f945ed3d20c2e327852c8594162f | <ide><path>libcloud/common/google.py
<ide>
<ide> Please remember to secure your keys and access tokens.
<ide> """
<del>import contextlib
<ide> import os
<ide> import sys
<ide> import time | 1 |
PHP | PHP | adjust cookie serialization | 240d904606a101f5104bff8a1d09678c44f11903 | <ide><path>src/Illuminate/Cookie/Middleware/EncryptCookies.php
<ide> class EncryptCookies
<ide> *
<ide> * @var bool
<ide> */
<del> protected $serialize = false;
<add> protected static $serialize = false;
<ide>
<ide> /**
<ide> * Create a new CookieGuard instance.
<ide> protected function d... | 2 |
Javascript | Javascript | fix coding style in src/core/worker.js | 67b5c8868c79455e4e27026b9522c7fcc0f60726 | <ide><path>src/core/worker.js
<ide> var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
<ide> var encryptedPromise = pdfManager.ensureXRef('encrypt');
<ide> var javaScriptPromise = pdfManager.ensureCatalog('javaScript');
<ide> Promise.all([numPagesPromise, fingerprintPromise, outlinePromis... | 1 |
Mixed | Javascript | add response headers to xhr response | fe42a28de12926c7b3254420ccb85bef5f46327f | <ide><path>Examples/UIExplorer/XHRExample.android.js
<ide> var {
<ide> View,
<ide> } = React;
<ide>
<add>var XHRExampleHeaders = require('./XHRExampleHeaders');
<add>
<ide> // TODO t7093728 This is a simlified XHRExample.ios.js.
<ide> // Once we have Camera roll, Toast, Intent (for opening URLs)
<ide> // we should m... | 4 |
Text | Text | update user stylesheet docs to use styles.css | 73c714b62dbb3a52fe0bf92191c0526e2d4cd547 | <ide><path>docs/customizing-atom.md
<ide> make customizations. You have full access to Atom's API from code in this file.
<ide> If customizations become extensive, consider [creating a
<ide> package][create-a-package].
<ide>
<del>### user.less
<add>### styles.css
<ide>
<ide> If you want to apply quick-and-dirty perso... | 1 |
Text | Text | add danielleadams to collaborators | 9c11d5ce9df480b62ca1d5a0d90dd07fa55da98a | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Shelley Vohr** <codebytere@gmail.com> (she/her)
<ide> * [danbev](https://github.com/danbev) -
<ide> **Daniel Bevenius** <daniel.bevenius@gmail.com> (he/him)
<add>* [danielleadams](https://github.com/daniellea... | 1 |
Java | Java | add perf tests for cache(1) variant | d429110e6ae2d16183ecfa8243ab4ef36fff0c08 | <ide><path>rxjava-core/src/perf/java/rx/subjects/ReplaySubjectPerf.java
<ide> import java.util.concurrent.TimeUnit;
<ide> import java.util.concurrent.atomic.AtomicLong;
<ide>
<del>import org.openjdk.jmh.annotations.BenchmarkMode;
<ide> import org.openjdk.jmh.annotations.Benchmark;
<add>import org.openjdk.jmh.annotatio... | 1 |
PHP | PHP | add env variable for mysql ssl cert | 9180f646d3a99e22d2d2a957df6ed7b550214b2f | <ide><path>config/database.php
<ide> 'prefix_indexes' => true,
<ide> 'strict' => true,
<ide> 'engine' => null,
<add> 'options' => array_filter([
<add> PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
<add> ]),
<ide> ],
<ide>
<ide> ... | 1 |
Python | Python | fix tf bart for saved model creation | 1558d191e66fe3b5b34c8d9a6ce657a39d5133ae | <ide><path>src/transformers/modeling_tf_utils.py
<ide> def shape_list(tensor: tf.Tensor) -> List[int]:
<ide> dynamic = tf.shape(tensor)
<ide>
<ide> if tensor.shape == tf.TensorShape(None):
<del> return dynamic.as_list()
<add> return dynamic
<ide>
<ide> static = tensor.shape.as_list()
<ide>
... | 2 |
Python | Python | implement masked loss reduction | db9f76ac8d1945630061582b03381939349bb59a | <ide><path>keras/backend.py
<ide> def sparse_categorical_crossentropy(
<ide> output = tf.reshape(output, [-1, output_shape[-1]])
<ide>
<ide> if ignore_class is not None:
<del> valid_mask = tf.not_equal(target, ignore_class)
<add> valid_mask = tf.not_equal(target, cast(ignore_class, target.dty... | 9 |
Java | Java | add writeandflushwith to reactivehttpoutputmessage | 7b2196b408eeb55668a1add6455a4fd52adfdf38 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/FlushingDataBuffer.java
<del>/*
<del> * Copyright 2002-2016 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the License.
<de... | 21 |
Javascript | Javascript | remove backandroid warning | 1a926ab807fa58d41813226edb495feec04f597d | <ide><path>Libraries/Utilities/BackAndroid.ios.js
<ide>
<ide> 'use strict';
<ide>
<del>var warning = require('warning');
<add>function emptyFunction() {}
<ide>
<del>function platformWarn() {
<del> warning(false, 'BackAndroid is not supported on this platform.');
<del>}
<del>
<del>var BackAndroid = {
<del> exitApp:... | 1 |
Python | Python | change constant torch.tensor to torch.full | 707b12a353b69feecf11557e13d3041982bf023f | <ide><path>src/transformers/models/decision_transformer/modeling_decision_transformer.py
<ide> def _attn(self, query, key, value, attention_mask=None, head_mask=None):
<ide> attn_weights = torch.matmul(query, key.transpose(-1, -2))
<ide>
<ide> if self.scale_attn_weights:
<del> attn_weights =... | 2 |
Text | Text | reset state if comment submit fails | 240d7c82ccdcda6bfe26e5f853851281e5585da1 | <ide><path>docs/docs/tutorial.it-IT.md
<ide> var CommentBox = React.createClass({
<ide> this.setState({data: data});
<ide> }.bind(this),
<ide> error: function(xhr, status, err) {
<add> this.setState({data: comments});
<ide> console.error(this.props.url, status, err.toString());
<ide> ... | 5 |
Ruby | Ruby | fix example in active model attribute methods | 1c02b988641c201308e6b3de6457128878e47bd5 | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> class MissingAttributeError < NoMethodError
<ide> # attribute_method_affix prefix: 'reset_', suffix: '_to_default!'
<ide> # attribute_method_suffix '_contrived?'
<ide> # attribute_method_prefix 'clear_'
<del> # define_attribute_m... | 1 |
Javascript | Javascript | add commonjs build of ember | 27dac7bffd707ec25bba9a8b98cdeb937f518b10 | <ide><path>Brocfile.js
<ide> var deprecatedDebugFile = replace(compiledSource, {
<ide> { match: /var runningNonEmberDebugJS = false;/, replacement: 'var runningNonEmberDebugJS = true;'}
<ide> ]
<ide> });
<add>
<ide> deprecatedDebugFile = concat(deprecatedDebugFile, {
<ide> inputFiles: [ 'ember.debug.js' ],
<ide... | 3 |
Ruby | Ruby | use appropriate type to `header` option | c4a11171da2e56a46d7c2e1ee3ba82cca9a72a5f | <ide><path>railties/lib/rails/commands/dbconsole/dbconsole_command.rb
<ide> class DbconsoleCommand < Base # :nodoc:
<ide> class_option :mode, enum: %w( html list line column ), type: :string,
<ide> desc: "Automatically put the sqlite3 database in the specified mode (html, list, line, column)."
<ide>
<del... | 1 |
Text | Text | add treeview shortcuts | 8faf1ed5d5730dd095e536b424c71d8ad2add7c6 | <ide><path>README.md
<ide> explore features.
<ide>
<ide> Most default OS X keybindings also work.
<ide>
<add>## TreeView Keyboard shortcuts
<add>With the treeview focused:
<add>
<add>`a` : Add a new file or directory. Directories end with '/'.
<add>
<add>`m` : Rename a file or directory
<add>
<ide> ## Init Script
<i... | 1 |
Javascript | Javascript | fix typo in property name (histroy --> history) | fa79eaa816aa27c6d1b3c084b8372f9c17c8d5a3 | <ide><path>test/ng/browserSpecs.js
<ide> describe('browser', function() {
<ide> // `history.state` in contexts where `$sniffer.history` is false.
<ide>
<ide> var historyStateAccessed = false;
<del> var mockSniffer = {histroy: false};
<add> var mockSniffer = {history: false};
<ide> var mockW... | 1 |
Javascript | Javascript | use test text instead of err message | 181fcb9b32fca3cf1b62bd7a9c08d76691c29d22 | <ide><path>client/src/client/frame-runner.js
<ide> document.addEventListener('DOMContentLoaded', function() {
<ide> const { message, stack } = err;
<ide> // we catch the error here to prevent the error from bubbling up
<ide> // and collapsing the pipe
<del> let errMessage ... | 1 |
Mixed | Ruby | drop microseconds in job argument assertions | 7f038621dfd7eba316b601b010cbf442b63ea17e | <ide><path>activejob/CHANGELOG.md
<add>* Make job argument assertions with `Time`, `ActiveSupport::TimeWithZone`, and `DateTime` work by dropping microseconds. Microsecond precision is lost during serialization.
<add>
<add> *Gannon McGibbon*
<add>
<add>
<ide> ## Rails 6.0.0.beta3 (March 11, 2019) ##
<ide>
<ide> *... | 3 |
PHP | PHP | remove "password" validation key | c532e14680c01fcdc6e9531046cc4bafe9073254 | <ide><path>lang/en/validation.php
<ide> 'not_in' => 'The selected :attribute is invalid.',
<ide> 'not_regex' => 'The :attribute format is invalid.',
<ide> 'numeric' => 'The :attribute must be a number.',
<del> 'password' => 'The password is incorrect.',
<ide> 'present' => 'The :attribute field must b... | 1 |
Text | Text | add quotes in test description | 1a3c038119e1fc306fb752df4b5e8af2b135fa3e | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md
<ide> async (getUserInput) => {
<ide> };
<ide> ```
<ide>
<del>If the object submitted to `/api/check` is missing `puzzle`, `coordinate` or `value`, the returned value will be `{ error: Required field(s) missing }`... | 1 |
Ruby | Ruby | use extlib accessor for new callbacks | 67f9b39bd05678881e200ddeed02b2bce9744ac8 | <ide><path>activesupport/lib/active_support/new_callbacks.rb
<ide> def _run__#{klass.split("::").last}__#{kind}__#{key}__callbacks
<ide> def define_callbacks(*symbols)
<ide> terminator = symbols.pop if symbols.last.is_a?(String)
<ide> symbols.each do |symbol|
<del> self.class_inheritable_... | 1 |
Javascript | Javascript | allow leading period in multiline input | 451254ed25a3b9860d7b45dade6ed05b629d6bbd | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> var rest = matches && matches[2];
<ide> if (self.parseREPLKeyword(keyword, rest) === true) {
<ide> return;
<del> } else {
<add> } else if (!self.bufferedCommand) {
<ide> self.outputStream.write('Invalid REPL keyword\n')... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.