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 documentation about action cable npm package | 1713075a80ecaaf18b1d8927aaa3b9836cc68214 | <ide><path>actioncable/README.md
<ide> with all the popular application servers -- Unicorn, Puma and Passenger.
<ide> Action Cable does not work with WEBrick, because WEBrick does not support the
<ide> Rack socket hijacking API.
<ide>
<add>## Frontend assets
<add>
<add>Action Cable's frontend assets are distributed th... | 1 |
Javascript | Javascript | use err_debugger_startup_error in _inspect.js | 767996047c0e05ffd4a49bdd08c5e031bd874dc2 | <ide><path>lib/internal/inspector/_inspect.js
<ide> const {
<ide> ArrayPrototypePop,
<ide> ArrayPrototypeShift,
<ide> ArrayPrototypeSlice,
<del> Error,
<ide> FunctionPrototypeBind,
<ide> Number,
<ide> Promise,
<ide> const { 0: InspectClient, 1: createRepl } =
<ide>
<ide> const debuglog = util.debuglog('in... | 1 |
PHP | PHP | remove unused use statement | d5172d47326714a564b786e61800f8083f9d3d20 | <ide><path>src/Illuminate/Database/Console/Migrations/FreshCommand.php
<ide> use Illuminate\Console\ConfirmableTrait;
<ide> use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Database\Events\DatabaseRefreshed;
<del>use Illuminate\Database\Migrations\Migrator;
<ide> use Symfony\Component\Console\Input\Inpu... | 1 |
Javascript | Javascript | improve grouping and sorting of api nav items | 3fbc25718eae6b7fc67f822755f68f8f53b1ef8a | <ide><path>docs/config/processors/pages-data.js
<ide> var navGroupMappers = {
<ide> delete docTypes.module;
<ide> })
<ide>
<add> .tap(function(docTypes) {
<add> if ( docTypes.input ) {
<add> docTypes.directive = docTypes.directive || [];
<add> // Comb... | 1 |
Go | Go | fix undead containers | c3c08f76bec023218b632e4c688ff9fcda11fcef | <ide><path>daemon/delete.go
<ide> func (daemon *Daemon) commonRm(container *Container, forceRemove bool) (err erro
<ide> if err != nil && forceRemove {
<ide> daemon.idIndex.Delete(container.ID)
<ide> daemon.containers.Delete(container.ID)
<add> os.RemoveAll(container.root)
<ide> }
<ide> }()
<ide> | 1 |
PHP | PHP | put same methods that were in l4 | d75eab8dbe04d5d01a8539b07a9e89071e52eecd | <ide><path>src/Illuminate/Pagination/AbstractPaginator.php
<ide> public function count()
<ide> return $this->items->count();
<ide> }
<ide>
<add> /**
<add> * Get the paginator's underlying collection.
<add> *
<add> * @return \Illuminate\Support\Collection
<add> */
<add> public function getCollection()
<add> {
<a... | 1 |
Python | Python | add type hints to modeling_utils.py closes | e19b978151419fe0756ba852b145fccfc96dbeb4 | <ide><path>src/transformers/modeling_utils.py
<ide> import inspect
<ide> import logging
<ide> import os
<del>from typing import Callable, List, Tuple
<add>from typing import Callable, Dict, Iterable, List, Optional, Tuple
<ide>
<ide> import torch
<ide> from torch import Tensor, device, dtype, nn
<ide> def invert_atten... | 1 |
Java | Java | append unique number to webflux server log prefix | 2fcee5ae58e61c9c999606c9ff6ad3424644b4b5 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.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");
<i... | 1 |
Text | Text | add docs working group | 9cd4b76d4dae24e041923c7383fd5244d02f8842 | <ide><path>WORKING_GROUPS.md
<ide> back in to the TSC.
<ide> * [Post-mortem](#post-mortem)
<ide> * [Intl](#intl)
<ide> * [HTTP](#http)
<add>* [Documentation](#documentation)
<ide>
<ide> #### Process:
<ide>
<ide> Its responsibilities are:
<ide> + Defining and adding common structures to the dumps generated
<ide> in ... | 1 |
Ruby | Ruby | add test case for `unscope` with unknown column | 15da1fb35b41a94bdd6b75b249f83572400843d7 | <ide><path>activerecord/test/cases/relations_test.rb
<ide> def test_unscope_with_subquery
<ide> assert_equal p2.first.comments, comments
<ide> end
<ide>
<add> def test_unscope_with_unknown_column
<add> comment = comments(:greetings)
<add> comment.update!(comments: 1)
<add>
<add> comments = Comment.wher... | 1 |
Javascript | Javascript | remove forced optimization from tls | ea61ce518bed2b8d807062d2f8828739ad6ee693 | <ide><path>benchmark/tls/convertprotocols.js
<ide> function main(conf) {
<ide>
<ide> var i = 0;
<ide> var m = {};
<del> common.v8ForceOptimization(
<del> tls.convertNPNProtocols, ['ABC', 'XYZ123', 'FOO'], m);
<add> // First call dominates results
<add> if (n > 1) {
<add> tls.convertNPNProtocols(['ABC', 'X... | 1 |
Javascript | Javascript | fix ie whitespace issues in tests | 97a86c83363786bd8191609bd9b61259cd25f0ce | <ide><path>packages/ember-routing/tests/helpers/outlet_test.js
<ide> test("view should support connectOutlet for the main outlet", function() {
<ide> }));
<ide> });
<ide>
<del> equal(view.$().text(), 'HIBYE');
<add> // Replace whitespace for older IE
<add> equal(view.$().text().replace(/\s+/,''), 'HIBYE');
<i... | 1 |
Text | Text | add v3.4.0-beta.2 to changelog | ddec402d601c9791f2f8a7ca1c83265e0e48de6c | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.4.0-beta.2 (August 06, 2018)
<add>
<add>- [#16857](https://github.com/emberjs/ember.js/pull/16857) [BUGFIX] Prevents the recursive redefinition of root chains
<add>- [#16854](https://github.com/emberjs/ember.js/pull/16854) [BUGFIX] Don't thread FactoryM... | 1 |
Python | Python | add persian character and symbols | 2bda582135b5687609c4816182aa4cfae5d865f3 | <ide><path>spacy/lang/char_classes.py
<ide> _latin_lower = r'[\p{Ll}&&\p{Latin}]'
<ide> _latin_upper = r'[\p{Lu}&&\p{Latin}]'
<ide> _latin = r'[[\p{Ll}||\p{Lu}]&&\p{Latin}]'
<add>_persian = r'[\p{L}&&\p{Arabic}]'
<ide> _russian_lower = r'[ёа-я]'
<ide> _russian_upper = r'[ЁА-Я]'
<ide>
<ide> _upper = [_latin_upper, _rus... | 1 |
PHP | PHP | expose last smtp response | c1824071c9b0d552493e8373fe0b73c107b79a5b | <ide><path>lib/Cake/Network/Email/SmtpTransport.php
<ide> class SmtpTransport extends AbstractTransport {
<ide> */
<ide> protected $_content;
<ide>
<add>/**
<add> * The response of the last sent SMTP command.
<add> *
<add> * @var array
<add> */
<add> protected $_lastResponse = array();
<add>
<add>/**
<add> * Returns... | 2 |
Ruby | Ruby | add some more tests | 4710be2fb3a6f76c06a118f6d41e3c289c3f8324 | <ide><path>Library/Homebrew/test/cli/parser_spec.rb
<ide> expect { parser.parse([]) }.to raise_error(Homebrew::CLI::MinNamedArgumentsError)
<ide> end
<ide>
<add> it "treats a symbol as a single argument of the specified type" do
<add> formula_parser = described_class.new do
<add> named :formul... | 1 |
Go | Go | address simple failures in testps* | 75d107451a16161e2ff54753814936fbf6ca0d02 | <ide><path>integration-cli/docker_cli_ps_test.go
<ide> import (
<ide> "github.com/go-check/check"
<ide> )
<ide>
<add>var sleepCmd = "/bin/sleep"
<add>
<add>func init() {
<add> if daemonPlatform == "windows" {
<add> sleepCmd = "sleep"
<add> }
<add>}
<add>
<ide> func (s *DockerSuite) TestPsListContainersBase(c *check.... | 1 |
Ruby | Ruby | fix warning of shadowing variable | 9e53488b1d8d535182a989bd38fbb171aebbeef5 | <ide><path>lib/arel/visitors/visitor.rb
<ide> def accept object
<ide>
<ide> DISPATCH = Hash.new do |hash, visitor_class|
<ide> hash[visitor_class] =
<del> Hash.new do |hash, node_class|
<del> hash[node_class] = "visit_#{(node_class.name || '').gsub('::', '_')}"
<add> Hash.new... | 1 |
Ruby | Ruby | rewrite sanitizehelper docs | d4ec25a3176c1e5f7083d0d39203d01c03cbb696 | <ide><path>actionview/lib/action_view/helpers/sanitize_helper.rb
<ide> module Helpers
<ide> # These helper methods extend Action View making them callable within your template files.
<ide> module SanitizeHelper
<ide> extend ActiveSupport::Concern
<del> # This +sanitize+ helper will HTML encode all ta... | 1 |
Javascript | Javascript | ensure message sanity at source | daa97df343daa79fbd49c3d77d3ddca254ca9303 | <ide><path>lib/internal/child_process.js
<ide> function setupChannel(target, channel) {
<ide> if (message === undefined)
<ide> throw new ERR_MISSING_ARGS('message');
<ide>
<add> // Non-serializable messages should not reach the remote
<add> // end point; as any failure in the stringification there
<add... | 2 |
Javascript | Javascript | move methods from module into modulegraph | 3bb5263bfd603c9d9b7b582cef085f8c492325f8 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> dependentModule.profile = currentProfile;
<ide> }
<ide>
<del> dependentModule.setIssuer(this.moduleGraph, module);
<add> this.moduleGraph.setIssuer(dependentModule, module);
<ide> } else {
<ide> if (this.profile... | 14 |
PHP | PHP | move exception to validation component | bf902a261296ee3f9344badf871e4f28e547a411 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> use Exception;
<ide> use Psr\Log\LoggerInterface;
<ide> use Illuminate\Http\Response;
<add>use Illuminate\Validation\ValidationException;
<ide> use Illuminate\Auth\Access\AuthorizationException;
<ide> use Illuminate\Http\Exception\HttpResponseException;
... | 3 |
Text | Text | remove wildcard options for checkemail | 5aa401050388ecacc2d009f7c504b83bb3dad324 | <ide><path>doc/api/crypto.md
<ide> added: v15.6.0
<ide> <!-- YAML
<ide> added: v15.6.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/41599
<add> description: The `wildcards`, `partialWildcards`, `multiLabelWildcards`, and
<add> `singleLabelSubdomains`... | 1 |
Javascript | Javascript | fix broken default getprojectroots | f847fbe0212619559d347f5c44b4fce78ea6abf8 | <ide><path>local-cli/core/default.config.js
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional grant
<del> * of patent... | 3 |
Javascript | Javascript | fix lint errors | 20a348fc0cd3910366f03cbe29878b2563158e9c | <ide><path>fonts.js
<ide> var FontLoader = {
<ide>
<ide> for (var i = 0; i < fonts.length; i++) {
<ide> var font = fonts[i];
<del>
<add>
<ide> // If there is already a fontObj on the font, then it was loaded/attached
<ide> // to the page already and we don't have to do anything for this fon... | 7 |
Javascript | Javascript | add datasetlabel to elements for tooltip templates | 7a231313668f3b3dfe949dabd2c8da69f9088c55 | <ide><path>src/Chart.Bar.js
<ide> datasetObject.bars.push(new this.BarClass({
<ide> value : dataPoint,
<ide> label : data.labels[index],
<add> datasetLabel: dataset.label,
<ide> strokeColor : dataset.strokeColor,
<ide> fillColor : dataset.fillColor,
<ide> highlightFill : d... | 3 |
Javascript | Javascript | use callbacks instead of events in net2 | 979f5889d5366e93e6fc4355e891f34098055059 | <ide><path>lib/http2.js
<ide> function connectionListener (socket) {
<ide> // we need to keep track of the order they were sent.
<ide> var responses = [];
<ide>
<del> socket.addListener('dataLite', function (d, start, end) {
<add> socket.ondata = function (d, start, end) {
<ide> parser.execute(d, start, end ... | 2 |
Javascript | Javascript | fix incorrect disposing of modules during hmr | 12997f0a6c333ebc2dc88e0d5ca4becbe6addbe8 | <ide><path>lib/HotModuleReplacementPlugin.js
<ide> const {
<ide> const { find } = require("./util/SetHelpers");
<ide> const TupleSet = require("./util/TupleSet");
<ide> const { compareModulesById } = require("./util/comparators");
<add>const { getRuntimeKey, keyToRuntime } = require("./util/runtime");
<ide>
<ide> /** ... | 10 |
Javascript | Javascript | keep track of incomplete | dfb4dde8fdedd6a9df3026afae2acb9fa9288ca3 | <ide><path>test/testImageURL.browser.js
<ide> function testImageURL(url, timeout, callback){
<ide> testImageURL.getImage(function(img, done){
<ide> function callbackWrapper(error, event){
<ide> callbackWrapper = testImageURL.noop;
<add> testImageURL.running = (testImageURL.running || 0) - 1;
<ide> ... | 1 |
Python | Python | enforce py3 for official/nlp/modeling | 8a78c15449c471bb603e3289cf7f2b5a1d419dfc | <ide><path>official/nlp/modeling/layers/attention.py
<ide> # ==============================================================================
<ide> """Keras-based attention layer."""
<ide> # pylint: disable=g-classes-have-attributes
<del>from __future__ import absolute_import
<del>from __future__ import division
<del># f... | 27 |
Ruby | Ruby | use full path to sudo | d39364b70a451a0a0bbd5c5abd1bca2371173c72 | <ide><path>install_homebrew.rb
<ide> def system *args
<ide>
<ide> def sudo *args
<ide> args = if args.length > 1
<del> args.unshift "sudo"
<add> args.unshift "/usr/bin/sudo"
<ide> else
<del> "sudo #{args}"
<add> "/usr/bin/sudo #{args}"
<ide> end
<ide> ohai *args
<ide> system *args | 1 |
PHP | PHP | return response from mailgun | 11b0550b344fea355d7802f2dfaea01c40d2ecdb | <ide><path>src/Illuminate/Mail/Transport/MailgunTransport.php
<ide> public function send(Swift_Mime_Message $message, &$failedRecipients = null)
<ide> {
<ide> $client = $this->getHttpClient();
<ide>
<del> $client->post($this->url, ['auth' => ['api', $this->key],
<add> return $client->post($this->url, ['auth' => [... | 1 |
PHP | PHP | check ioc for custom connector instances | 19f37ca715808aee7628774a50d19b8939f47945 | <ide><path>src/Illuminate/Database/Connectors/ConnectionFactory.php
<ide> public function createConnector(array $config)
<ide> throw new \InvalidArgumentException("A driver must be specified.");
<ide> }
<ide>
<add> if ($this->container->bound($key = "db.connector.{$config['driver']}"))
<add> {
<add> return $t... | 1 |
Text | Text | adjust code sample for stream.finished | f185990738ca6eb781328bfec65c416b5415d1fc | <ide><path>doc/api/stream.md
<ide> If this is unwanted behavior then the returned cleanup function needs to be
<ide> invoked in the callback:
<ide>
<ide> ```js
<del>const cleanup = finished(...streams, (err) => {
<add>const cleanup = finished(rs, (err) => {
<ide> cleanup();
<ide> // ...
<ide> }); | 1 |
PHP | PHP | add option shortcut 'r' for resource. | 03e44e6406dd0c8cf9de94e1ed58db586858bc24 | <ide><path>src/Illuminate/Routing/Console/ControllerMakeCommand.php
<ide> protected function getDefaultNamespace($rootNamespace)
<ide> protected function getOptions()
<ide> {
<ide> return [
<del> ['resource', null, InputOption::VALUE_NONE, 'Generate a resource controller class.'],
<add> ... | 1 |
Ruby | Ruby | add assertion messages | a363099ce19291d786a31342b6efc528b0cf296d | <ide><path>activerecord/test/cases/adapters/postgresql/infinity_test.rb
<ide> class PostgresqlInfinity < ActiveRecord::Base
<ide> record = PostgresqlInfinity.new(float: "-Infinity")
<ide> assert_equal(-Float::INFINITY, record.float)
<ide> record = PostgresqlInfinity.new(float: "NaN")
<del> assert record.... | 2 |
Text | Text | fix small issues with changelog-7.xmd | 20ff6a5db22f6cc8f971a715f09ee65e11bf4adc | <ide><path>CHANGELOG-7.x.md
<ide> - RefreshDatabase migration commands parameters moved to methods ([#34007](https://github.com/laravel/framework/pull/34007), [8b35c8e](https://github.com/laravel/framework/commit/8b35c8e6ba5879e71fd81fd03b5687ee2b46c55a), [256f71c](https://github.com/laravel/framework/commit/256f71c1f8... | 1 |
Text | Text | avoid _may_ in collaborator guide | 8640cd6066b858f7499d175b18dfc1947653063f | <ide><path>doc/guides/collaborator-guide.md
<ide> as a _Contributor_. Ask if they have configured their git
<ide>
<ide> ### Closing issues and pull requests
<ide>
<del>Collaborators may close any issue or pull request that is not relevant to the
<add>Collaborators can close any issue or pull request that is not relev... | 1 |
Go | Go | remove run race condition | 2b6ca3872883dcb487d8a39a1a8530be6a62f947 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> fmt.Fprintln(os.Stderr, "WARNING: ", warning)
<ide> }
<ide>
<del> splitStderr := !config.Tty
<del>
<del> connections := 0
<del> if config.AttachStdin || config.AttachStdout || (!splitStderr && config.AttachStderr) {
<del> conne... | 1 |
Text | Text | update welcome aboard text in guides [ci skip] | bb1f556a9a1e3e097bcfed5096dd921053769564 | <ide><path>guides/source/getting_started.md
<ide> This will fire up Puma, a web server distributed with Rails by default. To see
<ide> your application in action, open a browser window and navigate to
<ide> <http://localhost:3000>. You should see the Rails default information page:
<ide>
<del>![Welcome aboard screensh... | 1 |
Python | Python | fix error on test | c68f188eb035ed67e2df905dd5e483f0261a8ace | <ide><path>spacy/tests/tokenizer/test_customized_tokenizer.py
<ide> # coding: utf-8
<ide> from __future__ import unicode_literals
<ide>
<del>from ...lang.en import English
<add>from ...en import English
<ide> from ...tokenizer import Tokenizer
<ide> from ... import util
<ide> | 1 |
PHP | PHP | return whatever the mailer returns | 76c3d4cc2697c64d02e0e2239274ebf84656b857 | <ide><path>src/Illuminate/Mail/Mailable.php
<ide> class Mailable implements MailableContract, Renderable
<ide> */
<ide> public function send(MailerContract $mailer)
<ide> {
<del> $this->withLocale($this->locale, function () use ($mailer) {
<add> return $this->withLocale($this->locale, functio... | 1 |
Javascript | Javascript | clarify error when passing class to render() | 895fab782bc565bc1b8de434e00e1d50bd291279 | <ide><path>src/renderers/dom/client/ReactMount.js
<ide> var ReactMount = {
<ide> 'ReactDOM.render(): Invalid component element.%s',
<ide> (
<ide> typeof nextElement === 'string' ?
<del> ' Instead of passing an element string, make sure to instantiate ' +
<del> 'it by passing it to ... | 2 |
Python | Python | add shape inference to existing layers | 35d66d672b2bdb5048b39153c60070c5c1f05fc4 | <ide><path>keras/layers/convolutional.py
<ide>
<ide>
<ide> def conv_output_length(input_length, filter_size, border_mode, stride):
<add> if input_length is None:
<add> return None
<ide> assert border_mode in {'same', 'full', 'valid'}
<ide> if border_mode == 'same':
<ide> output_length = inpu... | 4 |
Javascript | Javascript | increase code coverage of source_text_module.js | 99879cac865877825a5a1feda4b766a6f780573f | <ide><path>test/parallel/test-vm-module-dynamic-namespace.js
<add>'use strict';
<add>
<add>// Flags: --experimental-vm-modules --expose-internals
<add>//
<add>const common = require('../common');
<add>
<add>const assert = require('assert');
<add>
<add>const { types } = require('util');
<add>const { SourceTextModule, wr... | 1 |
PHP | PHP | use escapeshellarg on windows symlink | 44c3feb604944599ad1c782a9942981c3991fa31 | <ide><path>src/Illuminate/Filesystem/Filesystem.php
<ide> public function link($target, $link)
<ide>
<ide> $mode = $this->isDirectory($target) ? 'J' : 'H';
<ide>
<del> exec("mklink /{$mode} \"{$link}\" \"{$target}\"");
<add> exec("mklink /{$mode} ".escapeshellarg($link)." ".escapeshellarg($targe... | 1 |
Python | Python | add separate test for failed custom validation | f0071dbccd592ba3157738ced66809869f68b1cb | <ide><path>rest_framework/tests/serializer.py
<ide> def test_read_only_fields(self):
<ide> """
<ide> Attempting to update fields set as read_only should have no effect.
<ide> """
<del>
<ide> serializer = PersonSerializer(self.person, data={'name': 'dwight', 'age': 99})
<ide> self... | 1 |
Text | Text | add solution to redux remove item from array | 1d77711431ec3cb57e6641b90cee54450d031f8e | <ide><path>guide/english/certifications/front-end-libraries/redux/remove-an-item-from-an-array/index.md
<ide> title: Remove an Item from an Array
<ide> ---
<ide> ## Remove an Item from an Array
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/front-end-lib... | 1 |
Mixed | Ruby | provide pattern matching for activemodel | 7e499b25acd5e1bfdd54ca2af66678b0ed05def1 | <ide><path>activemodel/CHANGELOG.md
<add>* Define `deconstruct_keys` in `ActiveModel::AttributeMethods`
<add>
<add> This provides the Ruby 2.7+ pattern matching interface for hash patterns,
<add> which allows the user to pattern match against anything that includes the
<add> `ActiveModel::AttributeMethods` m... | 3 |
Javascript | Javascript | add hello dating to showcase | 804791e0861a7bb234882264dfa6069fd4962f7e | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/hashtag-by-hashley-ironic/id1022724462?mt=8',
<ide> author: 'Elephant, LLC',
<ide> },
<add> {
<add> name: 'hello dating',
<add> icon: 'http://a3.mzstatic.com/us/r30/Purple49/v4/54/29/59/54295... | 1 |
Ruby | Ruby | escape `.`s in hostnames in regexps | ffe0c18b2a10b8bc6369b2095a556fcb1ad4135c | <ide><path>Library/Homebrew/rubocops/homepage.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> when
<ide> # Check for http:// GitHub homepage URLs, https:// is preferred.
<ide> # Note: only check homepages that are repo pages, not *.github.com h... | 1 |
PHP | PHP | apply fixes from styleci | d464ff5f594a4f8183520d30c807680384e84571 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> protected function addDynamic($segment, $connector, $parameters, $index)
<ide> $this->where(Str::snake($segment), '=', $parameters[$index], $bool);
<ide> }
<ide>
<del> /**
<del> * Add a "where fulltext" clause to the query.
<del> *
<d... | 1 |
Javascript | Javascript | add new credits to quaternion.js | e2e5cb13bd3bcda806966ba1c775428a2673a6b3 | <ide><path>src/math/Quaternion.js
<ide> * @author mikael emtinger / http://gomo.se/
<ide> * @author alteredq / http://alteredqualia.com/
<ide> * @author WestLangley / http://github.com/WestLangley
<add> * @author bhouston / http://exocortex.com
<add> * @author Hasan Kamal-Al-Deen / hasank1987@gmail.com
<ide> */
<id... | 1 |
Ruby | Ruby | remove a dead branch from argv.kegs | 301f1b20e698107e2f3b13bf4a2e8035affbaf03 | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def kegs
<ide> linked_keg_ref = HOMEBREW_REPOSITORY/"Library/LinkedKegs"/name
<ide> opt_prefix = HOMEBREW_PREFIX/"opt"/name
<ide>
<del> if opt_prefix.symlink? && opt_prefix.directory?
<del> Keg.new(opt_prefix.resolved_path)
<del> elsif linke... | 1 |
Javascript | Javascript | improve grammar and clarity | 78eead6775427bf02d9ad92e5c0d54a674794b9e | <ide><path>src/ng/directive/input.js
<ide> var requiredDirective = function() {
<ide> * @name ng.directive:ngList
<ide> *
<ide> * @description
<del> * Text input that converts between comma-separated string into an array of strings.
<add> * Text input that converts between a delimited string and an array of strings.... | 1 |
Python | Python | update documentation for `where` | 08488627b64df0275ba000cd8f24484639263a63 | <ide><path>numpy/add_newdocs.py
<ide> """)
<ide>
<ide> add_newdoc('numpy.core.multiarray','where',
<del> """where(condition, | x, y)
<add> """where(condition, x, y) or where(condition)
<ide>
<del> The result is shaped like condition and has elements of x and y where
<del> condition is respectively tru... | 1 |
Ruby | Ruby | simplify subclasses method using reject | 0399bfbc3aa8cd3ad2afc2bf7eea306d622bc220 | <ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb
<ide> def descendants
<ide> #
<ide> # Foo.subclasses # => [Bar]
<ide> def subclasses
<del> subclasses, chain = [], descendants
<del> chain.each do |k|
<del> subclasses << k unless chain.any? { |c| c > k }
<add> chain = descen... | 1 |
Python | Python | add tests for `genericalias` | 610edf23678a81a9a81d71d238a8f8c1eedcc78a | <ide><path>numpy/typing/tests/test_generic_alias.py
<add>from __future__ import annotations
<add>
<add>import sys
<add>import types
<add>import pickle
<add>import weakref
<add>from typing import TypeVar, Any, Callable, Tuple, Type, Union
<add>
<add>import pytest
<add>import numpy as np
<add>from numpy.typing._generic_a... | 1 |
PHP | PHP | add source file to collection's dd function output | 78104e0530c930a5585bbc5250d63502b115e207 | <ide><path>src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php
<ide> public function resolveDumpSource()
<ide> $sourceKey = null;
<ide>
<ide> foreach ($trace as $traceKey => $traceFile) {
<del> if (isset($traceFile['file']) && str_ends_with(
<del> $traceFile['file'],
<de... | 1 |
Text | Text | adopt contributor covenant | a939f8b31786055aba4a8284f2fc23e7f790cba3 | <ide><path>CODE_OF_CONDUCT.md
<ide> # Code of Conduct
<ide>
<del>Facebook has adopted a Code of Conduct that we expect project participants to adhere to.
<del>Please read the [full text](https://code.fb.com/codeofconduct/)
<del>so that you can understand what actions will and will not be tolerated.
<add>## Our Pledge
... | 1 |
Ruby | Ruby | test explicit skip | 3b0f917b1dfabce6a6b338e4a7cb02995c055596 | <ide><path>actionpack/test/controller/new_base/render_streaming_test.rb
<ide> class BasicController < ActionController::Base
<ide> )]
<ide>
<ide> layout "application"
<del> stream :only => :hello_world
<add> stream :only => [:hello_world, :skip]
<ide>
<ide> def hello_world
<ide> end
<ide>
<add>... | 1 |
Go | Go | lintify code with confidence=1 | 5e941f1ca035bb1ec014c18d277aecaa41deba85 | <ide><path>api.go
<ide> func postContainersKill(srv *Server, version float64, w http.ResponseWriter, r *
<ide>
<ide> signal := 0
<ide> if r != nil {
<del> s := r.Form.Get("signal")
<del> if s != "" {
<del> if s, err := strconv.Atoi(s); err != nil {
<add> if s := r.Form.Get("signal"); s != "" {
<add> s, err :=... | 11 |
Javascript | Javascript | fix useid in strict mode | 00ced1e2b7610543a519329a76ad0bfd12cd1c32 | <ide><path>packages/react-dom/src/__tests__/ReactDOMUseId-test.js
<ide> let ReactDOMFizzServer;
<ide> let Stream;
<ide> let Suspense;
<ide> let useId;
<add>let useState;
<ide> let document;
<ide> let writable;
<ide> let container;
<ide> describe('useId', () => {
<ide> Stream = require('stream');
<ide> Suspense ... | 8 |
Ruby | Ruby | use latest versions for dependencies | 0b10efcc4cd08732eba5c78d9267d90451d18c7d | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def asset_pipeline_gemfile_entry
<ide> return [] if options[:skip_asset_pipeline]
<ide>
<ide> if options[:asset_pipeline] == "sprockets"
<del> GemfileEntry.version "sprockets-rails", ">= 2.0.0",
<add> GemfileEntry.version "spr... | 1 |
Python | Python | add import math | 912f6881d2b69f180522172a5283702bd8c41d9c | <ide><path>templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py
<ide> def call(
<ide> )
<ide>
<ide> {% else %}
<add>import math
<ide> import random
<ide> from typing import Dict, Optional, Tuple, Union
<ide>
<ide><path>templates/addi... | 2 |
PHP | PHP | use getter method for access primary key | 850b7531d42b6fcd8941b12339fb3135128ba518 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function resolveRouteBinding($value)
<ide> */
<ide> public function getForeignKey()
<ide> {
<del> return Str::snake(class_basename($this)).'_'.$this->primaryKey;
<add> return Str::snake(class_basename($this)).'_'.$this->getKey... | 1 |
Text | Text | make minor fixes to maintaining-openssl.md | f461a66822a807d7f6c5eb7300fd69638beee1f8 | <ide><path>doc/guides/maintaining-openssl.md
<ide> them.
<ide> % mv openssl-1.1.0h openssl
<ide> % git add --all openssl
<ide> % git commit openssl
<del>````
<add>```
<ide>
<ide> The commit message can be written as (with the openssl version set
<ide> to the relevant value):
<ide> separately after updating the openssl... | 1 |
Ruby | Ruby | fix message and undent for external deps | 1f1da9266ccfac3831767e0a1d1fe3c1b797ac68 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def self.expand_deps f
<ide> end
<ide> deps
<ide> end
<del>
<add>
<ide> def pyerr dep
<ide> brew_pip = ' brew install pip &&' unless Formula.factory('pip').installed?
<del> <<-EOS.dedent
<add> <<-EOS.undent
<ide> Unsatisfied dependency, ... | 1 |
Go | Go | remove unused options | d4d5e0ae0c9d79ada765da484950811d41c286bc | <ide><path>libcontainerd/supervisor/remote_daemon_options.go
<ide> package supervisor // import "github.com/docker/docker/libcontainerd/supervisor"
<ide>
<del>// WithRemoteAddr sets the external containerd socket to connect to.
<del>func WithRemoteAddr(addr string) DaemonOpt {
<del> return func(r *remote) error {
<del... | 1 |
Text | Text | update electron link in readme | ae51570201c0d915aae1d57810f1e37610e40d44 | <ide><path>README.md
<ide> [](https://david-dm.org/atom/atom)
<ide> [](https://atom-slack.herokuapp.com)
<ide>
<del>Atom is a hackable text editor for the 21st century, built on [Elect... | 1 |
Text | Text | fix small typo | 58f3403587741c7ed2e25fc8bfa4faee825894c4 | <ide><path>readme.md
<ide> Note: we recommend putting `.next`, or your custom dist folder (Please have a lo
<ide>
<ide> ## Static HTML export
<ide>
<del>This is a way to run your Next.js app as a standalone static app without any Node.js server. The export app supports almost every feature of Next.js including dyanmi... | 1 |
Text | Text | add changelog entry | 7d9c5c16539696ce2f15bac47d64edd401eeacc8 | <ide><path>actionpack/CHANGELOG.md
<add>* Deprecate *_via_redirect integration test methods.
<add>
<add> Use `follow_redirect!` manually after the request call for the same behavior.
<add>
<add> *Aditya Kapoor*
<add>
<ide> * Add `ActionController::Renderer` to render arbitrary templates
<ide> outside cont... | 1 |
Java | Java | handle illegal errors thrown from plugin | 26f8e8350e32256ed64f8323f697ba388690dc82 | <ide><path>rxjava-core/src/main/java/rx/observers/SafeSubscriber.java
<ide> public void onNext(T args) {
<ide> protected void _onError(Throwable e) {
<ide> try {
<ide> RxJavaPlugins.getInstance().getErrorHandler().handleError(e);
<add> } catch (Throwable pluginException) {
<add> ... | 1 |
Javascript | Javascript | move auth api into own boot script | b35501c78eefc24ad4b4b2ab009ef8c51db1068b | <ide><path>server/boot/authentication.js
<add>import dedent from 'dedent';
<add>import debugFactory from 'debug';
<add>
<add>const isSignUpDisabled = !!process.env.DISABLE_SIGNUP;
<add>const debug = debugFactory('fcc:boot:auth');
<add>
<ide> module.exports = function enableAuthentication(app) {
<del> // enable authent... | 2 |
Java | Java | remove extraneous asterisk | 33d7816de38aa7b3040667b1717722206609fd1f | <ide><path>spring-aop/src/main/java/org/springframework/aop/support/NameMatchMethodPointcut.java
<ide>
<ide> /**
<ide> * Pointcut bean for simple method name matches, as alternative to regexp patterns.
<del> * Does not handle overloaded methods: all methods *with a given name will be eligible.
<add> * Does not handle... | 1 |
Java | Java | fix failing test | 598fafd95743840bce6c7f929eaaf596fefe088b | <ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/config/MvcNamespaceTests.java
<ide> public void testViewControllersDefaultConfig() {
<ide>
<ide> @Test
<ide> public void testContentNegotiationManager() throws Exception {
<del> loadBeanDefinitions("mvc-config-content-negotiation-manager.xml", 1... | 1 |
Java | Java | implement 'tostring' method for some emitters | a957c789495304c0de79689a07575977f59afc7d | <ide><path>src/main/java/io/reactivex/internal/operators/completable/CompletableCreate.java
<ide> public void dispose() {
<ide> public boolean isDisposed() {
<ide> return DisposableHelper.isDisposed(get());
<ide> }
<add>
<add> @Override
<add> public String toString() {
<add> ... | 10 |
Ruby | Ruby | require bundle in the app generator | 7f800b4d69c0750bb47989027580299751a22616 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def bundle_command(command)
<ide> # Thanks to James Tucker for the Gem tricks involved in this call.
<ide> _bundle_command = Gem.bin_path('bundler', 'bundle')
<ide>
<add> require 'bundler'
<ide> Bundler.with_clean_env do
<ide> ... | 1 |
Go | Go | remove uneeded sleep in test bash loop | ee594dcb7d42f95048c9047d86c61447243db3cd | <ide><path>integration-cli/docker_api_logs_test.go
<ide> func (s *DockerSuite) TestLogsAPIUntilFutureFollow(c *check.C) {
<ide>
<ide> func (s *DockerSuite) TestLogsAPIUntil(c *check.C) {
<ide> name := "logsuntil"
<del> dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i... | 1 |
Javascript | Javascript | show error messages instead of timeout | 0009100f712d0486befc718d606260c38053120d | <ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js
<ide> function* previewChallengeSaga({ flushLogs = true } = {}) {
<ide> }
<ide> }
<ide> } catch (err) {
<del> if (err === 'timeout') {
<add> if (err[0] === 'timeout') {
<ide> // TODO: translate the error
<ide> // es... | 1 |
Ruby | Ruby | add tests for --master app_generator | 3b882deb0c125f6ee4781b261ab04e17afc7b07e | <ide><path>railties/test/generators/app_generator_test.rb
<ide> def test_web_console_with_edge_option
<ide> end
<ide> end
<ide>
<add> def test_web_console_with_master_option
<add> run_generator [destination_root, "--master"]
<add>
<add> assert_file "Gemfile" do |content|
<add> assert_match(/gem 'web-... | 1 |
Javascript | Javascript | update foreach example to include side effects | f2412282271df9b94cff63be9853ebdec047c8f9 | <ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js
<ide> const ArrayMixin = Mixin.create(Enumerable, {
<ide> Example Usage:
<ide>
<ide> ```javascript
<del> let foods = ['apple', 'banana', carrot'];
<add> let foods = [
<add> { name: 'apple', eaten: false },
<add> { name: 'banana... | 1 |
PHP | PHP | add log driver to broadcasting connections | 1c4dcea2a23719b7315b6a4e732ff7d0890b5bfe | <ide><path>config/broadcasting.php
<ide> 'driver' => 'redis',
<ide> 'connection' => 'default',
<ide> ],
<add>
<add> 'log' => [
<add> 'driver' => 'log',
<add> ],
<ide>
<ide> ],
<ide> | 1 |
Ruby | Ruby | revert the merge because tests did not pass | 886818d2bab40585c0cea763002ffc16917dd0b3 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def symbolized_base_class
<ide> @symbolized_base_class ||= base_class.to_s.to_sym
<ide> end
<ide>
<del> def symbolized_sti_name
<del> @symbolized_sti_name ||= sti_name ? sti_name.to_sym : symbolized_base_class
<del> end
<del>
<ide> ... | 3 |
Java | Java | relocate web artifacts in the tcf to web package | d0503ab733bb9d4987e51cb76a8b2ec58c5f8468 | <ide><path>spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java
<ide> abstract class ContextLoaderUtils {
<ide> private static final Log logger = LogFactory.getLog(ContextLoaderUtils.class);
<ide>
<ide> private static final String DEFAULT_CONTEXT_LOADER_CLASS_NAME = "org.springframework... | 9 |
Python | Python | add setter for some properties of request class | c09268551110c6d423d9e1f51463f840abb8f147 | <ide><path>celery/worker/request.py
<ide> def __init__(self, message, on_ack=noop,
<ide> headers=None, decoded=False, utc=True,
<ide> maybe_make_aware=maybe_make_aware,
<ide> maybe_iso8601=maybe_iso8601, **opts):
<add> self._message = message
<ide> self.... | 1 |
PHP | PHP | allow simpler singleton binding syntax | 83c425b17758315964be7bc605c740a4c008b56b | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function register($provider, $force = false)
<ide>
<ide> if (property_exists($provider, 'singletons')) {
<ide> foreach ($provider->singletons as $key => $value) {
<add> $key = is_int($key) ? $value : $key;
<add>
<ide> ... | 2 |
Java | Java | fix handling of line height with inline images | da8759c6103eef4b53b46640d1f03d29cf5614bb | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java
<ide> public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) {
<ide> super.onCollectExtraUpdates(uiViewOperationQueue);
<ide> if (mJsEventCount != UNSET) {
<ide> ReactTextUpdate reactTextUpdate =
<del> ... | 1 |
PHP | PHP | remove unnecessary lines | e821c27f54218a9bdbbf3e5bc4942fe0165cddcb | <ide><path>lib/Cake/Test/Case/Error/ExceptionRendererTest.php
<ide> public function testCakeErrorHelpersNotLost() {
<ide> $testApp . 'Error' . DS
<ide> ),
<ide> ), App::RESET);
<del> Configure::write('Error', array(
<del> 'handler' => 'TestAppsErrorHandler::handleError',
<del> 'level' => E_ALL & ~E_DEPREC... | 1 |
PHP | PHP | add logging and error when fixture creation fails | 3b46cd43f1279b7d24c58861466c414e0eb8d72c | <ide><path>lib/Cake/TestSuite/Fixture/CakeTestFixture.php
<ide> public function create($db) {
<ide> $db->execute($db->createSchema($this->Schema), array('log' => false));
<ide> $this->created[] = $db->configKeyName;
<ide> } catch (Exception $e) {
<add> $msg = __d(
<add> 'cake_dev',
<add> 'Fixture creati... | 1 |
Python | Python | change defaults of gru and lstm layers | 5949aeede9efd19447770cb1acb33192c08b54ff | <ide><path>keras/layers/recurrent.py
<ide> class GRUCell(Layer):
<ide>
<ide> def __init__(self, units,
<ide> activation='tanh',
<del> recurrent_activation='hard_sigmoid',
<add> recurrent_activation='sigmoid',
<ide> use_bias=True,
<ide> ... | 1 |
Python | Python | add more complete docstring to ones_like | 4b27d2291c67ef476254dba1277ca2e43152165e | <ide><path>numpy/core/code_generators/generate_umath.py
<ide> def __init__(self, nin, nout, identity, docstring,
<ide> ),
<ide> 'ones_like' :
<ide> Ufunc(1, 1, None,
<del> 'return 1',
<add> 'returns an array of ones of the shape and typecode of x.',
<ide> TD(nobool_or_obj),
<id... | 1 |
Python | Python | cherrypick more python3 changes from node-gyp | 54fcb14467b59e82d6e24bf44803462226a5de4d | <ide><path>tools/gyp/pylib/gyp/MSVSSettings.py
<ide> MSBuild install directory, e.g. c:\Program Files (x86)\MSBuild
<ide> """
<ide>
<add>from __future__ import print_function
<add>
<add>from gyp import string_types
<add>
<ide> import sys
<ide> import re
<ide>
<ide> class _String(_Type):
<ide> """A setting that's ju... | 16 |
Javascript | Javascript | allow object.prototype fields as labels | 3cbb5cdfdb621baec5dc3a2ac505be37f1718086 | <ide><path>lib/console.js
<ide> function Console(stdout, stderr) {
<ide> Object.defineProperty(this, '_stdout', prop);
<ide> prop.value = stderr;
<ide> Object.defineProperty(this, '_stderr', prop);
<del> prop.value = {};
<add> prop.value = new Map();
<ide> Object.defineProperty(this, '_times', prop);
<ide>
<... | 2 |
Go | Go | fix empty-lines (revive) | f71fe8476a2f8493adf50b6d520a739568383a51 | <ide><path>api/server/middleware/version.go
<ide> func (v VersionMiddleware) WrapHandler(handler func(ctx context.Context, w http.
<ide> ctx = context.WithValue(ctx, httputils.APIVersionKey{}, apiVersion)
<ide> return handler(ctx, w, r, vars)
<ide> }
<del>
<ide> }
<ide><path>api/server/router/build/build_routes.go... | 3 |
Text | Text | add sam roberts to tsc | e582d1191376b8bf129a04730b04a2cd52ae5202 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Myles Borins** <myles.borins@gmail.com> (he/him)
<ide> * [rvagg](https://github.com/rvagg) -
<ide> **Rod Vagg** <rod@vagg.org>
<add>* [sam-github](https://github.com/sam-github) -
<add>**Sam Roberts** <vie... | 1 |
Java | Java | parameterize asynctask type | dbcbdace9e83a020e35ed95f203fbbdb632f2a85 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/async/AsyncTask.java
<ide> * @author Rossen Stoyanchev
<ide> * @since 3.2
<ide> */
<del>public class AsyncTask {
<add>public class AsyncTask<V> {
<ide>
<del> private final Callable<?> callable;
<add> private final Callable<V> callable;
<ide... | 4 |
Ruby | Ruby | restrict variants to variable image blobs | 311af752cfd98b534a3d5dbf30e4a202693f32dc | <ide><path>activestorage/app/models/active_storage/blob.rb
<ide> # update a blob's metadata on a subsequent pass, but you should not update the key or change the uploaded file.
<ide> # If you need to create a derivative or otherwise change the blob, simply create a new blob and purge the old one.
<ide> class ActiveStor... | 4 |
Python | Python | fix trainer tests in a multigpu env | 8546dc55c265f96b984b378504241ea0225ad8ba | <ide><path>tests/test_trainer.py
<ide> def forward(self, input_x=None, labels=None, **kwargs):
<ide> loss = torch.nn.functional.mse_loss(y, labels)
<ide> return (loss, y, y) if self.double_output else (loss, y)
<ide>
<del> def get_regression_trainer(a=0, b=0, double_output=False, train_len=6... | 1 |
Javascript | Javascript | reremove extra middlewares from server file | c8488c84193f0f1592fc242cdfe7b1c774242184 | <ide><path>server/server.js
<ide> var pmx = require('pmx');
<ide> pmx.init();
<ide>
<ide> var assign = require('lodash').assign,
<del> loopback = require('loopback'),
<del> boot = require('loopback-boot'),
<del> accepts = require('accepts'),
<del> cookieParser = require('cookie-parser'),
<del> compress ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.