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
Ruby
Ruby
implement fails_with for non-apple compilers
ef1d9c0cd04c21b5b19cae17e83bbdc6ef28d712
<ide><path>Library/Homebrew/compilers.rb <ide> class Compiler < Struct.new(:name, :priority) <ide> def build <ide> MacOS.send("#{name}_build_version") <ide> end <add> <add> def version <add> MacOS.non_apple_gcc_version(name) if name.is_a? String <add> end <ide> end <ide> <ide> class CompilerFailure <del> ...
7
Python
Python
replace erroneous num_classes with batch_size
6d95e7ceb77b94be104750c1e8d60197aa2dfebe
<ide><path>examples/mnist_tfrecord.py <ide> def cnn_layers(x_train_input): <ide> <ide> loss, acc = test_model.evaluate(x_test, <ide> keras.utils.to_categorical(y_test), <del> num_classes) <add> batch_size=batch_size) <ide> pr...
1
Javascript
Javascript
increase coverage for http2.connect
aa24777c444d8d2ad4a48b3952856139f0c62c14
<ide><path>test/parallel/test-http2-connect.js <ide> // Flags: --expose-http2 <ide> 'use strict'; <ide> <del>const { mustCall, hasCrypto, skip } = require('../common'); <add>const { mustCall, hasCrypto, skip, expectsError } = require('../common'); <ide> if (!hasCrypto) <ide> skip('missing crypto'); <del>const { does...
1
Text
Text
fix issue number from becoming markdown header
634f2238422fc1ea48f2f812ecd678fed159ccbc
<ide><path>activerecord/CHANGELOG.md <ide> of `Article.category(true)` where `category` is a singular <ide> association. <ide> <del> The force reloading of the association reader was deprecated in <del> #20888. Unfortunately the suggested alternative of <add> The force reloading of the association rea...
1
Python
Python
test the exception conditions
7ebe2b9593725dd1ca431bab98e7f4307d976768
<ide><path>neural_network/perceptron.py <ide> def __init__(self, sample, target, learning_rate=0.01, epoch_number=1000, bias=- <ide> :param learning_rate: learning rate used in optimizing. <ide> :param epoch_number: number of epochs to train network on. <ide> :param bias: bias value for the netw...
1
Javascript
Javascript
fix current streak,
576315abdc74cee1d63435ce1c389f5b830819b8
<ide><path>server/boot/user.js <ide> var _ = require('lodash'), <ide> debug = require('debug')('freecc:cntr:userController'); <ide> <ide> <add>const daysBetween = 1.5; <add> <ide> function calcCurrentStreak(cals) { <ide> const revCals = cals.slice().reverse(); <ide> let streakBroken = false; <del> return rev...
1
Go
Go
remove execsupport check
7204341950c6c8f0a66f9bb0b082217dc0ce6ddb
<ide><path>integration-cli/docker_api_exec_test.go <del>// +build !test_no_exec <del> <ide> package main <ide> <ide> import ( <ide><path>integration-cli/docker_cli_exec_test.go <del>// +build !test_no_exec <del> <ide> package main <ide> <ide> import ( <ide><path>integration-cli/docker_cli_exec_unix_test.go <del>// +b...
9
Mixed
Go
remove the option for the command service rm
1016cbb64243ca8adc9444779e6e4717a4541ef7
<ide><path>api/client/service/remove.go <ide> import ( <ide> func newRemoveCommand(dockerCli *client.DockerCli) *cobra.Command { <ide> <ide> cmd := &cobra.Command{ <del> Use: "rm [OPTIONS] SERVICE [SERVICE...]", <add> Use: "rm SERVICE [SERVICE...]", <ide> Aliases: []string{"remove"}, <ide> Short: "Rem...
2
PHP
PHP
restore previous behavior
c956a531f2668903a72f95e315f9759711af109c
<ide><path>src/Illuminate/Routing/UrlGenerator.php <ide> public function previous() <ide> { <ide> $referrer = $this->request->headers->get('referer'); <ide> <del> return $referrer ? $this->to($referrer) : $this->getPreviousUrlFromSession(); <add> $url = $referrer ? $this->to($referrer) : $this->getPreviousUrlFrom...
1
Javascript
Javascript
add test for timer
40b98c4d7bb7e86900c43691cf1892468ce32b50
<ide><path>d3.js <ide> function d3_transition(groups) { <ide> delay[++k] = delayMin; <ide> }); <ide> } <del> d3_timer(step, delayMin); <add> d3.timer(step, delayMin); <ide> return transition; <ide> }; <ide> <ide> var d3_timer_queue = null, <ide> d3_timer_timeout; // is a timeout activ...
5
Text
Text
add example to fs.promises.readdir
7e911d8b03a838e5ac6bb06c5b313533e89673ef
<ide><path>doc/api/fs.md <ide> will be passed as `Buffer` objects. <ide> If `options.withFileTypes` is set to `true`, the resolved array will contain <ide> [`fs.Dirent`][] objects. <ide> <add>```js <add>const fs = require('fs'); <add> <add>async function print(path) { <add> const files = await fs.promises.readdir(pat...
1
Python
Python
remove unused import
22f20b97386652a24bf2e8e363bfa38ca66cb209
<ide><path>keras/callbacks.py <ide> import json <ide> import warnings <ide> import io <del>import sys <ide> <ide> from collections import deque <ide> from collections import OrderedDict
1
Text
Text
add attributes api to release notes [ci skip]
1e791705dcea650a034b7ccb4d922f455648202d
<ide><path>guides/source/5_0_release_notes.md <ide> ToDo... <ide> <ide> ### Active Record attributes API <ide> <del>ToDo... <add>Defines an attribute with a type on a model. It will override the type of existing attributes if needed. <add>This allows control over how values are converted to and from SQL when assigne...
1
Python
Python
add dutch tag map
793c62dfda98ee3a690f5f336df669855daad40a
<ide><path>spacy/lang/nl/__init__.py <ide> <ide> from .stop_words import STOP_WORDS <ide> from .lex_attrs import LEX_ATTRS <add>from .tag_map import TAG_MAP <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <ide> from ..norm_exceptions import BASE_NORMS <ide> class DutchDefaults(Language.Defaults): <ide>...
2
Java
Java
fix minor code nit from d2977441
9edfd945d141bdcb428ad3387c08a362883dbe17
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.java <ide> public void openURL(String url, Promise promise) { <ide> getReactApplicationContext().getPackageManager()); <ide> String otherPackageName = (componentName != null ? componentName.getPackageName() : ""); <ide> ...
1
Text
Text
improve process event headers
b92c6563024044c34b48165270e8464499e3c0bb
<ide><path>doc/api/net.md <ide> added: v0.3.4 <ide> Creates a new socket object. <ide> <ide> * `options` {Object} Available options are: <del> * `fd`: {number} If specified, wrap around an existing socket with <add> * `fd` {number} If specified, wrap around an existing socket with <ide> the given file descriptor...
2
Text
Text
add russian translation
0b2f63f939f1395394b00f59031fd08a1229f69c
<ide><path>curriculum/challenges/russian/03-front-end-libraries/jquery/target-the-children-of-an-element-using-jquery.russian.md <ide> id: bad87fee1348bd9aed208826 <ide> title: Target the Children of an Element Using jQuery <ide> challengeType: 6 <ide> videoUrl: '' <del>localeTitle: Цель детей элемента с помощью jQuery...
1
Python
Python
fix mypy errors in `dev/*`
08e835729b50cac2a68fab24bf2b52a587112776
<ide><path>dev/import_all_classes.py <ide> import traceback <ide> import warnings <ide> from inspect import isclass <del>from typing import List, Set, Tuple <add>from typing import List, Optional, Set, Tuple <ide> from warnings import WarningMessage <ide> <ide> from rich import print <ide> def import_all_classes( <ide...
4
Python
Python
add init_checkpoint for nhnet benchmark
986b08256273c8f5ee592130422e9c021be6b2b6
<ide><path>official/benchmark/nhnet_benchmark.py <ide> MIN_LOSS = 0.40 <ide> MAX_LOSS = 0.55 <ide> NHNET_DATA = 'gs://tf-perfzero-data/nhnet/v1/processed/train.tfrecord*' <add>PRETRAINED_CHECKPOINT_PATH = 'gs://cloud-tpu-checkpoints/bert/keras_bert/uncased_L-24_H-1024_A-16/bert_model.ckpt' <ide> <ide> FLAGS = flags.FL...
1
Javascript
Javascript
shorten jquery/jqlite describe
ff2cb86d5db4150cded494728b64095d05be4a71
<ide><path>docs/src/ngdoc.js <ide> Doc.prototype = { <ide> function scenarios(docs){ <ide> var specs = []; <ide> <del> specs.push('describe("angular without jquery", function() {'); <add> specs.push('describe("angular+jqlite", function() {'); <ide> appendSpecs('index.html'); <ide> specs.push('});'); <ide> <id...
1
Ruby
Ruby
fix handling of parseerror in controllers
7d2d00a334418ff040a646f5b9446fb3283d0694
<ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb <ide> def _wrapper_enabled? <ide> return false unless request.has_content_type? <ide> <ide> ref = request.content_mime_type.ref <add> <ide> _wrapper_formats.include?(ref) && _wrapper_key && !request.parameters.key?(_wrapper_key...
2
Javascript
Javascript
extract createrouter from application#initialize
b6159885e88c842922e53395e531f5220327c3f8
<ide><path>packages/ember-application/lib/system/application.js <ide> Ember.Application = Ember.Namespace.extend( <ide> @param router {Ember.Router} <ide> */ <ide> initialize: function(router) { <del> if (!router && Ember.Router.detect(this.Router)) { <del> router = this.Router.create(); <del> this...
1
PHP
PHP
extract method for readability
f25833f216ca208550b00cf19ae5806cbe419822
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> public function check($ability, $arguments = []) <ide> $arguments = [$arguments]; <ide> } <ide> <del> if (isset($arguments[0]) && isset($this->policies[$argumentClass = get_class($arguments[0])])) { <del> $callback = [$this->res...
1
Ruby
Ruby
reduce allocations in action_view cache expiry
732372c928744a4da441691f84bc137969ba4eff
<ide><path>actionview/lib/action_view/cache_expiry.rb <ide> def clear_cache <ide> <ide> private <ide> def dirs_to_watch <del> fs_paths = all_view_paths.grep(FileSystemResolver) <del> fs_paths.map(&:path).sort.uniq <add> all_view_paths.grep(FileSystemResolver).map!(&:path).tap(&:uniq!).so...
1
Python
Python
fix usage of `click.get_terminal_size()`
5f67cc0747ea661b703e4c44c77e7cd005cb9588
<ide><path>dev/send_email.py <ide> # This tool is based on the Superset send_email script: <ide> # https://github.com/apache/incubator-superset/blob/master/RELEASING/send_email.py <ide> import os <add>import shutil <ide> import smtplib <ide> import ssl <ide> import sys <ide> def show_message(entity: str, message: str):...
1
Go
Go
increase timeout on testrunoomexitcode test
8d1455d88b66011713da67098dc3464b897af9cd
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestRunOOMExitCode(t *testing.T) { <ide> go func() { <ide> defer close(done) <ide> <del> runCmd := exec.Command(dockerBinary, "run", "-m", "4MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x; done") <add> runCmd := exec.Command(dockerBinary, "run"...
1
PHP
PHP
fix errors with postgres tests
b20ca3f4e01a49b3f4e93505a57ec77f1502ce50
<ide><path>lib/Cake/Test/Case/Model/Behavior/TranslateBehaviorTest.php <ide> public function testFetchTranslationsWithZero() { <ide> <ide> $model = new TranslatedItem(); <ide> $translateModel = $model->translateModel(); <del> $translateModel->updateAll(array('content' => '"0"')); <add> $translateModel->updateAll...
1
Go
Go
extract createtarfile() from applylayer
710d5a48fb751623fbf77a51b89f2dfbf0edac68
<ide><path>archive/archive.go <ide> import ( <ide> "os/exec" <ide> "path" <ide> "path/filepath" <add> "syscall" <ide> ) <ide> <ide> type Archive io.Reader <ide> func (compression *Compression) Extension() string { <ide> return "" <ide> } <ide> <add>func createTarFile(path, extractDir string, hdr *tar.Header, read...
2
Javascript
Javascript
add support for capturerejection option
e490d9b1539a7ec5f6b9d9b2f18753ce1c3459f7
<ide><path>lib/_stream_readable.js <ide> function Readable(options) { <ide> this._destroy = options.destroy; <ide> } <ide> <del> Stream.call(this); <add> Stream.call(this, options); <ide> } <ide> <ide> ObjectDefineProperty(Readable.prototype, 'destroyed', { <ide> Readable.prototype._destroy = function(err, ...
4
Javascript
Javascript
ignore private function
a1080d93578b6cae80819fd96f3429536c542e18
<ide><path>packages/ember-testing/lib/support.js <ide> function testCheckboxClick(handler) { <ide> } <ide> <ide> $(function() { <del> /** <add> /* <ide> Determine whether a checkbox checked using jQuery's "click" method will have <ide> the correct value for its checked property. <ide>
1
Javascript
Javascript
fix non-hidden cumulative chart on duration view
f105343759a30fbab6a0a95617e9df3493b1ed3e
<ide><path>airflow/www/static/js/duration_chart.js <ide> function handleCheck() { <ide> } <ide> } <ide> $(document).on('chartload', handleCheck); <add>$(document).ready(handleCheck); <ide> <ide> $('#isCumulative').on('click', handleCheck);
1
Python
Python
escape \u2028 and \u2029 in json output
23fa6e54ce978055f7d4af5f5f99bc6f419f990b
<ide><path>rest_framework/renderers.py <ide> def render(self, data, accepted_media_type=None, renderer_context=None): <ide> # and may (or may not) be unicode. <ide> # On python 3.x json.dumps() returns unicode strings. <ide> if isinstance(ret, six.text_type): <add> # We always fully e...
2
Python
Python
fix bug of multi-gpu training in lm finetuning
b8ff56896ccbd27a54035a90a3bc278a44541a74
<ide><path>examples/lm_finetuning/finetune_on_pregenerated.py <ide> def main(): <ide> global_step += 1 <ide> <ide> # Save a trained model <del> if n_gpu > 1 and torch.distributed.get_rank() == 0 or n_gpu <=1 : <add> if args.local_rank == -1 or torch.distributed.get_rank() == 0: <ide> ...
2
Text
Text
add the text "software" , "operating through"
199ebeaef691610ca752860091ece6f6aebed73c
<ide><path>guide/english/python/anaconda/index.md <ide> --- <ide> title: Anaconda <ide> --- <del>![alt text](https://www.anaconda.com/wp-content/themes/anaconda/images/logo-dark.png) <ide> <del>**Anaconda** is a package manager, environment manager and Python distribution with a collection of numerous packages. Anacon...
1
Python
Python
convert a number of layers
a744b600e94ae00fbec71ef493afdff48bc3816b
<ide><path>keras/layers/containers.py <ide> from __future__ import print_function <ide> <ide> from collections import OrderedDict <del>import theano.tensor as T <add>from .. import backend as K <ide> from ..layers.core import Layer, Merge <del>from ..utils.theano_utils import ndim_tensor <ide> from six.moves import ra...
4
Python
Python
simplify release utils
cec89e1a0e6f6df92de8976daacc765eeca198bc
<ide><path>utils/release.py <ide> import os <ide> import re <ide> <del>import git <ide> import packaging.version <ide> <ide> <ide> "setup": "setup.py", <ide> } <ide> README_FILE = "README.md" <del>CUSTOM_JS_FILE = "docs/source/_static/js/custom.js" <del>DEPLOY_SH_FILE = ".circleci/deploy.sh" <ide> <ide> <ide> ...
1
PHP
PHP
fix cs error
0df3fe242bd5d3743a94e070d335f99869467097
<ide><path>src/Core/functions.php <ide> function h($text, $double = true, $charset = null) <ide> } <ide> <ide> return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, $charset ?: $defaultCharset, $double); <del> <ide> } <ide> <ide> }
1
PHP
PHP
add space to css
ad386c8468fe93714a1ba676a1c67ed52876060a
<ide><path>application/views/error/500.php <ide> font: normal normal normal 14px/1.253 Ubuntu, sans-serif; <ide> margin: 0 0 25px 0; <ide> min-width: 800px; <del> padding:0; <add> padding: 0; <ide> } <ide> <ide> #main {
1
PHP
PHP
avoid unneeded query in delete()
cf18e8d38b4cb0f7646d3cacc721132e81e20826
<ide><path>lib/Cake/Model/Model.php <ide> public function delete($id = null, $cascade = true) { <ide> break; <ide> } <ide> } <del> <del> $keys = $this->find('first', array( <del> 'fields' => $this->_collectForeignKeys(), <del> 'conditions' => array($this->alias . '.' . $this->primaryKey => $id...
1
Python
Python
address typos in dispatch docs
ad91f48f729c6bc67a7dc31428ce725d6fe789e6
<ide><path>numpy/doc/dispatch.py <ide> class to indicate that it would like to handle computations in a custom-defined <ide> - ``inputs``, which could be a mixture of different types <ide> - ``kwargs``, keyword arguments passed to the function <ide> <del>For this example we will only handle the method ``'__call__``. <...
1
Ruby
Ruby
modularize postgresql adapter
232d2223ebcfe5c9e0425c821f5d30a7d5968512
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/cast.rb <add>module ActiveRecord <add> module ConnectionAdapters <add> class PostgreSQLColumn < Column <add> module Cast <add> def string_to_time(string) <add> return string unless String === string <add> <add> ca...
7
Javascript
Javascript
remove common.fixturesdir from tests
f9660b71668c2edb20d13760a9a5bcbb76a20fbd
<ide><path>test/parallel/test-tls-interleave.js <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const assert = require('assert'); <del> <ide> const tls = require('tls'); <ide> <del>const fs = require('fs'); <add>const fixtures = require('../common/fixtures'); <ide> <del>const dir = co...
2
Text
Text
fix two typos
eda0220e5f807482e4feb327e34375de308ea0fc
<ide><path>docs/Homebrew-linuxbrew-core-Maintainer-Guide.md <ide> brew merge-homebrew --core <ide> ``` <ide> <ide> Merging all the changes from upstream in one go is usually <del>undesireable since our build servers will time out. Instead, attempt <add>undesirable since our build servers will time out. Instead, attemp...
2
Javascript
Javascript
add typeerror for vm/compilefunction params
3212f77ac6d674a7d43c3303dcca22508c8be468
<ide><path>test/parallel/test-vm-basic.js <ide> const vm = require('vm'); <ide> } <ide> ); <ide> <add> // Testing for non Array type-based failures <add> [Boolean(), Number(), null, Object(), Symbol(), {}].forEach( <add> (value) => { <add> common.expectsError(() => { <add> vm.compileFunction('',...
1
PHP
PHP
add regression test
c946d18b4528d0e8e1e44b503f308f936d584e48
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testInputContainerTemplates() <ide> $this->assertContains('<div class="dt">', $result); <ide> } <ide> <add> /** <add> * Test that *Container templates are used by input. <add> * <add> * @return void <add> */ <...
1
Javascript
Javascript
add release time to header on uncompressed file
8ee67bde11ef496dcde4ee026e905c52eb7d4782
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> // Embed Version <ide> // Embed Date <ide> compiled = compiled.replace( /@VERSION/g, version ) <del> .replace( "@DATE", function () { <del> // YYYY-MM-DD <del> return ( new Date() ).toISOString().replace( /T.*/, "" ); <del> ...
1
Mixed
Ruby
update changelog.md for [ci skip]
b76f82d714e590c20370e72fa36fa574c4f17650
<ide><path>activesupport/CHANGELOG.md <add>* Remove unused parameter `options = nil` for `#clear` of <add> `ActiveSupport::Cache::Strategy::LocalCache::LocalStore` and <add> `ActiveSupport::Cache::Strategy::LocalCache`. <add> <add> *Yosuke Kabuto* <add> <ide> * Support parsing JSON time in ISO8601 local ti...
4
Javascript
Javascript
use correct function arity
eebf0866a996fa7d1ace4b888cd1a0fce8a032f3
<ide><path>lib/FunctionModulePlugin.js <ide> const FunctionModuleTemplatePlugin = require("./FunctionModuleTemplatePlugin"); <ide> <ide> class FunctionModulePlugin { <del> constructor(options) { <del> this.options = options; <del> } <del> <ide> apply(compiler) { <ide> compiler.hooks.compilation.tap("FunctionModule...
5
Javascript
Javascript
remove onscroll bubbling flag
e9721e14e4b8776c107afa3cdd7c6d664fe20c24
<ide><path>packages/react-dom/src/__tests__/ReactDOMEventListener-test.js <ide> describe('ReactDOMEventListener', () => { <ide> bubbles: false, <ide> }), <ide> ); <del> if (gate(flags => flags.disableOnScrollBubbling)) { <del> expect(log).toEqual([ <del> ['capture', 'grand']...
12
Ruby
Ruby
stop printing warning on test-bot
a675aae553949706c54c8868a941373d73909260
<ide><path>Library/Homebrew/cmd/pull.rb <ide> def pull <ide> branch = `git symbolic-ref --short HEAD`.strip <ide> <ide> unless branch == "master" <del> opoo "Current branch is #{branch}: do you need to pull inside master?" <add> opoo "Current branch is #{branch}: do you need to pull inside ma...
1
Go
Go
add missed defer to unlock
56175d6f97e06202d17f1809e2c5a3ab16f33a0f
<ide><path>libnetwork/sandbox.go <ide> func (sb *sandbox) Key() string { <ide> <ide> func (sb *sandbox) Labels() map[string]interface{} { <ide> sb.Lock() <del> sb.Unlock() <add> defer sb.Unlock() <ide> opts := make(map[string]interface{}, len(sb.config.generic)) <ide> for k, v := range sb.config.generic { <ide> o...
1
PHP
PHP
fix client\response `throw` method
b5f74acc37c9b0372c094afa28b39cb4d64ea0d9
<ide><path>src/Illuminate/Http/Client/Response.php <ide> public function toPsrResponse() <ide> */ <ide> public function throw() <ide> { <del> $callback = func_get_arg(0); <add> $callback = func_get_args()[0] ?? null; <ide> <ide> if ($this->serverError() || $this->clientError()) { <de...
1
Ruby
Ruby
remove duplicated test
b63c2d6bfb9f1e813dda1b339a895b5967eb4ea2
<ide><path>activerecord/test/cases/tasks/mysql_rake_test.rb <ide> def setup <ide> } <ide> end <ide> <del> def test_structure_load <del> filename = "awesome-file.sql" <del> Kernel.expects(:system).with("mysql", "--execute", %{SET FOREIGN_KEY_CHECKS = 0; SOURCE #{filename}; SET FOREIGN_K...
1
Javascript
Javascript
remove adapter frame from onparserexecute
31addac8bbcd3e0a8cefba8327cfcc7fd9bdeb68
<ide><path>lib/_http_server.js <ide> function socketOnData(server, socket, parser, state, d) { <ide> onParserExecuteCommon(server, socket, parser, state, ret, d); <ide> } <ide> <del>function onParserExecute(server, socket, parser, state, ret, d) { <add>function onParserExecute(server, socket, parser, state, ret) { <...
1
Ruby
Ruby
fix typos in im documentation
a4765f74cd12ad708056805b7fe46b14be885454
<ide><path>activerecord/lib/active_record/identity_map.rb <ide> module ActiveRecord <ide> # the comment object intact. However, once we enable Identity Map, the post loaded <ide> # by Post.destroy is exactly the same object as the object @post. As the object @post <ide> # still has the comment object in @post.com...
1
Ruby
Ruby
set autocrlf to false
63c0a9fa92c100e505cc2a53e752b5a448c61473
<ide><path>Library/Homebrew/tap.rb <ide> def install(options = {}) <ide> Utils.ensure_git_installed! <ide> ohai "Tapping #{name}" unless quiet <ide> remote = options[:clone_target] || "https://github.com/#{user}/homebrew-#{repo}" <del> args = %W[clone #{remote} #{path}] <add> args = %W[clone #{remote}...
1
Mixed
Ruby
add error logging to active job
452f9ee0bcca071cb520d3d640acebdc91f5e3ef
<ide><path>activejob/CHANGELOG.md <add>* Change logging instrumentation to log errors when a job raises an exception. <add> <add> Fixes #26848. <add> <add> *Steven Bull* <add> <ide> Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/activejob/CHANGELOG.md) for previous changes. <ide><path>...
5
PHP
PHP
model()
e1800bd62de541df76945c59ad3454009a170394
<ide><path>src/Illuminate/Html/FormBuilder.php <ide> public function open(array $options = array()) <ide> * @param array $options <ide> * @return string <ide> */ <del> public function model($model, array $options) <add> public function model($model, array $options = array()) <ide> { <ide> $this->model = $mod...
1
Javascript
Javascript
show hidden item count
755520c4c3f9e1f85268d65ca647dec076e9a17a
<ide><path>lib/buffer.js <ide> Buffer.prototype[customInspectSymbol] = function inspect() { <ide> var str = ''; <ide> var max = exports.INSPECT_MAX_BYTES; <ide> str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim(); <del> if (this.length > max) <del> str += ' ... '; <add> const remaining = this...
3
Java
Java
enhance test for groupby with evicting map factory
5f452559382bab37efd181071c047f260fd26fd1
<ide><path>src/test/java/io/reactivex/internal/operators/flowable/FlowableGroupByTest.java <ide> public V put(K key, V value) { <ide> //remove first <ide> K k = list.get(0); <ide> list.remove(0); <del> v = map.get(k); <add> v = map.remove(k);...
1
PHP
PHP
declare $selector property
7dc8d71494f186478fce8d65b725b5b7f5104a08
<ide><path>src/Illuminate/Translation/Translator.php <ide> class Translator extends NamespacedItemResolver implements TranslatorInterface <ide> */ <ide> protected $loaded = []; <ide> <add> /** <add> * The message selector. <add> * <add> * @var \Symfony\Component\Translation\MessageSelector <ad...
1
Javascript
Javascript
fix fillratehelper accessing -1 frame
052617611d68042b0c228955ed5de10a07da203a
<ide><path>Libraries/Lists/FillRateHelper.js <ide> class FillRateHelper { <ide> initialNumToRender?: ?number, <ide> ... <ide> }, <del> state: { <add> cellsAroundViewport: { <ide> first: number, <ide> last: number, <ide> ... <ide> class FillRateHelper { <ide> if ( <ide> ...
1
Go
Go
fix typos in comment
8df0b2de5427f535c8d85157196388d8eef61ff6
<ide><path>daemon/cluster/executor/container/controller.go <ide> func (r *controller) Logs(ctx context.Context, publisher exec.LogPublisher, opti <ide> } <ide> <ide> if msg.Err != nil { <del> // the defered cancel closes the adapter's log stream <add> // the deferred cancel closes the adapter's log stream <ide...
3
Python
Python
simplify tests and avoid tokenizing
6bbf4ea309263913229686b42017cde83440e105
<ide><path>spacy/tests/doc/test_array.py <ide> # coding: utf-8 <ide> from __future__ import unicode_literals <ide> <add>from spacy.tokens import Doc <ide> from spacy.attrs import ORTH, SHAPE, POS, DEP <ide> <ide> from ..util import get_doc <ide> <ide> <del>def test_doc_array_attr_of_token(en_tokenizer, en_vocab): <...
1
Java
Java
remove unused declarations
9a585a7d69cd29e340d8dea42a37ba88bb1c1d68
<ide><path>src/main/java/io/reactivex/Scheduler.java <ide> public long now(TimeUnit unit) { <ide> * of this task has to happen (accounting for clock drifts). <ide> */ <ide> final class PeriodicTask implements Runnable { <del> final long firstStartInNanoseconds; <ide> fin...
19
Python
Python
provide default output for evaluate in cli
ec819fc311f3795b10a6a42193acf1b6e3e0d787
<ide><path>spacy/cli/evaluate.py <ide> def evaluate_cli( <ide> def evaluate( <ide> model: str, <ide> data_path: Path, <del> output: Optional[Path], <add> output: Optional[Path] = None, <ide> gpu_id: int = -1, <ide> gold_preproc: bool = False, <ide> displacy_path: Optional[Path] = None,
1
Ruby
Ruby
use new requirement syntax
a03bbf5797143a5acff5e2e21969d16c6afe81b8
<ide><path>Library/Homebrew/requirements.rb <ide> def initialize language, module_name, import_name=nil <ide> @import_name = import_name || module_name <ide> end <ide> <del> def satisfied? <del> quiet_system(*the_test) <del> end <add> satisfy { quiet_system(*the_test) } <ide> <ide> def message; <<-EOS.u...
1
Ruby
Ruby
add existing prerelease formulae to allowlist
0bf7773a0baef2c925b88445f84867e1ef3bc382
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def get_repo_data(regex) <ide> }.freeze <ide> <ide> GITHUB_PRERELEASE_ALLOWLIST = { <add> "cbmc" => "5.12.6", <add> "elm-format" => "0.8.3", <ide> "gitless" => "0.8.8", <add> "infrakit" => "0.5", <add> "riff" ...
1
Javascript
Javascript
remove intermediate interpolators
49648f31e09e38ae4eb0d8ad5f6e2be84340c74c
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> }; <ide> <del> function createAnimation( name, interps ) { <del> <del> var tracks = []; <del> <del> for ( var i = 0, len = interps.length; i < len; i ++ ) { <del> <del> var interp = interps[ i ]; <del> <del> // Ke...
1
Java
Java
use correct file options for transferto
ec9193473052de39006f32279d46210899621062
<ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/DefaultMultipartMessageReader.java <ide> import java.nio.channels.Channel; <ide> import java.nio.charset.Charset; <ide> import java.nio.charset.StandardCharsets; <add>import java.nio.file.OpenOption; <ide> import java.nio.file.Path; <ide> impo...
1
PHP
PHP
remove trailing space
e222b3b78e01b99e5c9281be33f28da66e1c1be1
<ide><path>lib/Cake/View/View.php <ide> public function renderCache($filename, $timeStart) { <ide> unset($out); <ide> return false; <ide> } else { <del> if ($this->layout === 'xml') { <add> if ($this->layout === 'xml') { <ide> $response->type('xml'); <ide> } <ide> return substr($out, strl...
1
Javascript
Javascript
improve url.parse() compliance with whatwg url
a8225dd9baaf80a813fd951bfe38860f5f95414e
<ide><path>lib/url.js <ide> const { <ide> CHAR_LEFT_CURLY_BRACKET, <ide> CHAR_RIGHT_CURLY_BRACKET, <ide> CHAR_QUESTION_MARK, <del> CHAR_LOWERCASE_A, <del> CHAR_LOWERCASE_Z, <del> CHAR_UPPERCASE_A, <del> CHAR_UPPERCASE_Z, <del> CHAR_DOT, <del> CHAR_0, <del> CHAR_9, <del> CHAR_HYPHEN_MINUS, <del> CHAR_PLUS...
2
Ruby
Ruby
fix annotated typo
12701d5a46e378f216398d72c91c40f5da1bccd7
<ide><path>actionpack/lib/action_controller/metal/live.rb <ide> def log_error(exception) <ide> <ide> logger.fatal do <ide> message = +"\n#{exception.class} (#{exception.message}):\n" <del> message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code) <add> ...
5
Go
Go
fix arg scoping for dockerfiles with multiple from
09f308ce211cd00f24d4e0f8cc797816b4fff1b6
<ide><path>builder/dockerfile/builder.go <ide> type Builder struct { <ide> cmdSet bool <ide> disableCommit bool <ide> cacheBusted bool <del> allowedBuildArgs map[string]bool // list of build-time args that are allowed for expansion/substitution and passing to commands in 'run'. <add> allowedBuildAr...
6
PHP
PHP
add tests showing multicheckbox nesting
f81fbccec3ebc7aaff2549b4577e39b114116956
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testInputsNotNested() { <ide> '/div', <ide> ]; <ide> $this->assertHtml($expected, $result); <add> <add> $result = $this->Form->select('category', ['1', '2'], [ <add> 'multiple' => 'checkbox', <add> 'name' => 'fish', <add> ]); <a...
1
Javascript
Javascript
remove multiview attribute from renderer
c0090c138f5f712dfa9a59e9e50931e52e504e93
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> var multiview = new WebGLMultiview( _this, _gl ); <ide> <del> this.multiview = multiview; <del> <ide> // shadow map <ide> <ide> var shadowMap = new WebGLShadowMap( _this, objects, capabilities.maxTextureSize ); <ide...
3
Java
Java
use new spel parser
d372a9ac5d6ed6dc2be64fb184ee4b0b33edaed3
<ide><path>org.springframework.context/src/main/java/org/springframework/context/expression/StandardBeanExpressionResolver.java <ide> import org.springframework.expression.Expression; <ide> import org.springframework.expression.ExpressionParser; <ide> import org.springframework.expression.ParserContext; <del>import org...
1
Javascript
Javascript
highlight elements on press + hove
94429fb037322652b6796ac2c40cef451795205e
<ide><path>Libraries/Inspector/DevtoolsOverlay.js <ide> export default function DevtoolsOverlay({ <ide> inspectedView: ?HostRef, <ide> }): React.Node { <ide> const [inspected, setInspected] = useState<null | { <del> frame: {height: any, left: any, top: any, width: any}, <add> frame: {+height: any, +left: any,...
1
PHP
PHP
add support for parsing sqlite column types
424e14742f41a3a7ed9c148734a8538493552a87
<ide><path>lib/Cake/Model/Datasource/Database/Dialect/SqliteDialectTrait.php <ide> protected function _transformFunctionExpression(FunctionExpression $expression) <ide> } <ide> } <ide> <add>/** <add> * Convert a column definition to the abstract types. <add> * <add> * The returned type will be a type that <add> * C...
2
Javascript
Javascript
flowify a bunch of libraries
9eec8aa9d5eb088943caad40d2482b15dc912801
<ide><path>Libraries/RKBackendNode/queryLayoutByID.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule queryLayoutByID <add> * @flow <ide> */ <ide> 'use strict'; <ide> <ide> var ReactIOSTagHandles = require('ReactIOSTagHandles'); <ide> var RCTUIManage...
9
Text
Text
augment the rails4 guide with links to prs
4fe70ee4720d99a2a13f54a6d0bbca28409d1867
<ide><path>guides/source/4_0_release_notes.md <ide> Highlights in Rails 4.0: (WIP) <ide> * Strong Parameters <ide> * Queue API <ide> * Caching Improvements <add>* ActionController::Live <ide> <ide> These release notes cover the major changes, but do not include each bug-fix and changes. If you want to see everything, ...
1
Javascript
Javascript
add many pointers example
68f3fb275fb87864a83ffca650048628a0aa3aef
<ide><path>packages/rn-tester/js/examples/Experimental/Compatibility/ManyPointersPropertiesExample.js <add>/** <add> * Copyright (c) Meta Platforms, Inc. and affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> ...
2
Java
Java
fix typo in eventsourcetransporthandler
8bb165e55c68a50997bb1d5edc5822e82de5c94f
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/EventSourceTransportHandler.java <ide> import org.springframework.web.socket.sockjs.transport.session.StreamingSockJsSession; <ide> <ide> /** <del> * A TransportHandler for sending messages via Server-Sent events: <add> *...
1
Java
Java
start core marker earlier
f1b4daf51f837ed55b6778d0265f36eaff4c49df
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java <ide> public enum ReactMarkerConstants { <ide> REGISTER_JS_SEGMENT_START, <ide> REGISTER_JS_SEGMENT_STOP, <ide> VM_INIT, <add> ON_FRAGMENT_CREATE, <ide> }
1
Go
Go
fix version detection for docker-init
69f0402585579ced62bca22551a6ef45672bb4fd
<ide><path>daemon/info.go <ide> func (daemon *Daemon) SystemInfo() (*types.Info, error) { <ide> v.RuncCommit.ID = strings.TrimSpace(parts[1]) <ide> } <ide> } <add> <add> if v.RuncCommit.ID == "" { <add> logrus.Warnf("failed to retrieve %s version: unknown output format: %s", DefaultRuntimeBinary, strin...
1
Python
Python
add view (mvc speeking) for the plugins. cpu ok
0035336389e510a3fcf8685c03732d6c117226a1
<ide><path>glances/plugins/glances_cpu.py <ide> import psutil <ide> <ide> from glances.plugins.glances_plugin import GlancesPlugin <add>from glances.core.glances_logging import logger <ide> <ide> # SNMP OID <ide> # percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0 <ide> def update_views(self): <ide> i...
1
Text
Text
fix a couple of grammatical errors in security.md
6cadc4d96a9ffa1c4fbf2c88c238b24b16a94556
<ide><path>guides/source/security.md <ide> Refer to the Injection section for countermeasures against XSS. It is _recommend <ide> <ide> **CSRF** Cross-Site Request Forgery (CSRF), also known as Cross-Site Reference Forgery (XSRF), is a gigantic attack method, it allows the attacker to do everything the administrator o...
1
Javascript
Javascript
add check for missing image
37c98a95ed4caec070781babd022071840a53faf
<ide><path>controllers/resources.js <ide> module.exports = { <ide> }, <ide> <ide> about: function(req, res) { <add> if (req.user) { <add> if (!req.user.picture) { <add> req.user.picture = "https://s3.amazonaws.com/freecodecamp/favicons/apple-touch-icon-180x180.png" <add> ...
1
PHP
PHP
fix incorrect return value
08ee66ade116f6ba1cc743dd36210bfdfbd196ea
<ide><path>src/Illuminate/Validation/Rule.php <ide> public static function in(array $values) <ide> * Get a not_in constraint builder instance. <ide> * <ide> * @param array $values <del> * @return \Illuminate\Validation\Rules\In <add> * @return \Illuminate\Validation\Rules\NotIn <ide> */ <i...
1
Java
Java
simplify testruntimehintsregistrar api
935265048a9d18843c0606c2e065116594fa4d6d
<ide><path>spring-test/src/main/java/org/springframework/test/context/aot/MergedContextConfigurationRuntimeHints.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance...
4
Ruby
Ruby
simplify compatibility logic
5b38e891073fa324a09d31178c789b2453da54bf
<ide><path>Library/Homebrew/cxxstdlib.rb <ide> def compatible_with?(other) <ide> <ide> return false unless type == other.type <ide> <del> if apple_compiler? <del> return false unless other.apple_compiler? <del> else <del> return false if other.apple_compiler? <del> return false unless compile...
1
Text
Text
add documentation for creatediffiehellmangroup
11c52d9e9f4afa6659fd93021a8401c360e8870d
<ide><path>doc/api/crypto.md <ide> module): <ide> * `DH_UNABLE_TO_CHECK_GENERATOR` <ide> * `DH_NOT_SUITABLE_GENERATOR` <ide> <add>## Class: DiffieHellmanGroup <add><!-- YAML <add>added: v0.7.5 <add>--> <add> <add>The `DiffieHellmanGroup` class takes a well-known modp group as its argument but <add>otherwise works the ...
1
Javascript
Javascript
update documentation on router logging
e142d7f522d4cfbf443102d0147da5cd41d4e957
<ide><path>packages/ember-application/lib/system/application.js <ide> var get = Ember.get, set = Ember.set, <ide> ### Routing <ide> <ide> In addition to creating your application's router, `Ember.Application` is <del> also responsible for telling the router when to start routing. <add> also responsible for telli...
1
PHP
PHP
fix collection json serializing logic
79f64b8929cf2d3d71eefddc6e284a1aea1d772f
<ide><path>src/Illuminate/Support/Collection.php <ide> public function toArray() <ide> */ <ide> public function jsonSerialize() <ide> { <del> return $this->toArray(); <add> return array_map(function ($value) { <add> if ($value instanceof JsonSerializable) { <add> ret...
2
PHP
PHP
add support for parsing multi-extensions
5d6a7c409f4ea8f1cf63a916b643d346adb106f1
<ide><path>src/Routing/Route/Route.php <ide> protected function _parseExtension($url) <ide> if (empty($this->_extensions)) { <ide> return [$url, null]; <ide> } <del> preg_match('/\.([0-9a-z]*)$/', $url, $match); <add> preg_match('/\.([0-9a-z\.]*)$/', $url, $match); <ide> ...
2
Java
Java
fix timer issues
9204fdc371df0f4efc2e3bd17a5fc2839cc845e9
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/UndertowHttpHandlerAdapter.java <ide> public RequestBodyPublisher(HttpServerExchange exchange, <ide> @Override <ide> public void subscribe(Subscriber<? super DataBuffer> subscriber) { <ide> if (subscriber == null) { <del> th...
2
Text
Text
update documentation for expose
8432224f0ef628b3da42def046e48f9635aa4b23
<ide><path>docs/sources/reference/builder.md <ide> default specified in `CMD`. <ide> The `EXPOSE` instructions informs Docker that the container will listen on the <ide> specified network ports at runtime. Docker uses this information to interconnect <ide> containers using links (see the [Docker User <del>Guide](/userg...
1
PHP
PHP
improve method mapping in behaviorregistry
193f89415657b9bdbbdec9bb5532d1f733768618
<ide><path>Cake/ORM/BehaviorRegistry.php <ide> protected function _create($class, $alias, $settings) { <ide> * Store the map of behavior methods and ensure there are no duplicates. <ide> * <ide> * Use the implementedEvents() method to exclude callback methods. <add> * In addition methods starting with `_` will be ig...
3
PHP
PHP
apply fixes from styleci
8f363c0e54661f5ea4fdd0dfca5e906b23db5667
<ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php <ide> use Closure; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <del>use Illuminate\Database\Query\Expression; <ide> use Illuminate\Database\Eloquent\Builder; <add>use Illuminate\Database\Query\Expression; <ide> use Ill...
1
PHP
PHP
fix a pile of api doc errors in database/
0ea10bf6e549b56dbdbeb0a7b60fe3e5905e33c8
<ide><path>src/Database/Connection.php <ide> public function configName() { <ide> * <ide> * If no params are passed it will return the current driver instance. <ide> * <del> * @param string|Driver $driver <add> * @param string|Driver $driver The driver instance to use. <ide> * @param array|null $config Either confi...
7