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
fix typo in test_arch_for_command
fe25e4f7ec27ba66ad6eab2e26c9567e2419cc81
<ide><path>Library/Homebrew/test/test_utils.rb <ide> def test_arch_for_command <ide> if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7 <ide> assert_equal 2, arches.length <ide> assert arches.include?(:x86_64) <del> elsif `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i = 6 <add> els...
1
Javascript
Javascript
extract getdevserverurl into reusable module
7e100ac7a225bd5f03dc97a828f414b9f862e1ff
<ide><path>Libraries/Inspector/ElementProperties.js <ide> var Text = require('Text'); <ide> var TouchableHighlight = require('TouchableHighlight'); <ide> var TouchableWithoutFeedback = require('TouchableWithoutFeedback'); <ide> var View = require('View'); <del>var {SourceCode} = require('NativeModules'); <ide> var {fet...
3
Text
Text
fix minor typo in dgram.md
771b2901daae2e4389d157c18bb0f6674a0a19a4
<ide><path>doc/api/dgram.md <ide> Note that specifying both a `'listening'` event listener and passing a <ide> useful. <ide> <ide> The `options` object may contain an additional `exclusive` property that is <del>use when using `dgram.Socket` objects with the [`cluster`] module. When <add>used when using `dgram.Socket`...
1
Javascript
Javascript
fix comment support in sortedhtml helper
86b33eb3f1360a4cefb5ebf522b6649f9c55db55
<ide><path>test/BinderSpec.js <ide> describe('Binder', function() { <ide> $rootScope.$apply(); <ide> expect(sortedHtml(form)).toBe( <ide> '<ul>' + <del> '<#comment></#comment>' + <add> '<!-- ngRepeat: item in model.items -->' + <ide> '<li ng-bind="item.a" ng-repeat="item in m...
2
Javascript
Javascript
exclude initial proto from benchmark
b6726ebf176c2ff923360bf233fabd9aa1f936bd
<ide><path>benchmarks/suites/views/template_view.js <ide> before(function() { <ide> App.View = Ember.View.extend({ <ide> template: Ember.Handlebars.compile("{{view}}") <ide> }); <add> <add> App.View.create().destroy(); <ide> }); <ide> <ide> after(function() {
1
Python
Python
fix indent typo
b313bebf41374c2271b39128501ea0ed1a11fb0e
<ide><path>airflow/www/app.py <ide> def tree(self): <ide> else: <ide> base_date = dateutil.parser.parse(base_date) <ide> <del> start_date = dag.start_date <add> start_date = dag.start_date <ide> if not start_date: <ide> start_date = dag.default_args['start_date'] ...
1
Javascript
Javascript
fix mispelled hook
3e6aaf9b670941e415e076a65ab8ec572d75f8e1
<ide><path>lib/web/JsonpMainTemplatePlugin.js <ide> class JsonpMainTemplatePlugin { <ide> mainTemplate.hooks.jsonpScript = new SyncWaterfallHook(["source", "chunk", "hash"]); <ide> } <ide> <del> mainTemplate.hooks.localVar.tap("JsonpMainTemplatePlugin", (source, chunk) => { <add> mainTemplate.hooks.localVars.ta...
1
Ruby
Ruby
move private methods to the private visibility
338750393d0f19b193f0ead26adff2b9f586ec18
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def mail(headers = {}, &block) <ide> message <ide> end <ide> <del> # This and #instrument_name is for caching instrument <del> def instrument_payload(key) <del> { <del> mailer: mailer_name, <del> key: key <del> } <del> e...
2
PHP
PHP
add docs for route names
8a7aecf99d7d61c722d00e153f848a5fc267b72b
<ide><path>lib/Cake/Routing/Route/Route.php <ide> class Route { <ide> /** <ide> * Constructor for a Route <ide> * <add> * Using $options['_name'] a specific name can be given to a route. <add> * Otherwise a route name will be generated. <add> * <ide> * @param string $template Template string with parameter placehold...
4
Java
Java
introduce property rx3.scheduler.use-nanotime
171c84677739d63ef778b8893db845ac7abc81e6
<ide><path>src/main/java/io/reactivex/rxjava3/core/Scheduler.java <ide> * interface which can grant access to the original or hooked {@code Runnable}, thus, a repeated {@code RxJavaPlugins.onSchedule} <ide> * can detect the earlier hook and not apply a new one over again. <ide> * <p> <del> * The default implementati...
3
Javascript
Javascript
avoid copy of data
4d1e913f48f33da2ae4fcceb07607efac240ece8
<ide><path>lib/serialization/FileMiddleware.js <ide> const deserialize = async (middleware, name, readFile) => { <ide> let contentItemLength = contentItem.length; <ide> let contentPosition = 0; <ide> if (contentItemLength === 0) throw new Error("Empty file " + name); <add> const nextContent = () => { <add> contents...
1
Python
Python
add test for creating m2ms
a758c9c1866559ab5dbf4a7705c07e8532dcd253
<ide><path>django/db/migrations/operations/models.py <ide> class CreateModel(Operation): <ide> """ <ide> <ide> def __init__(self, name, fields, options=None, bases=None): <del> self.name = name.lower() <add> self.name = name <ide> self.fields = fields <ide> self.options = options ...
3
Text
Text
remove extra word
831850029422cb3d78e395ce091b1e2a115b5400
<ide><path>share/doc/homebrew/Gems,-Eggs-and-Perl-Modules.md <ide> without sudo. You should add this to your path. See the caveats in the <ide> <ide> ### With system’s Ruby <ide> <del>To make Ruby install install to `/usr/local`, we need to add <add>To make Ruby install to `/usr/local`, we need to add <ide> `gem: -n/...
1
Python
Python
update error type
73baaf330ae8c8420a44f7803394f55c343e9e1c
<ide><path>spacy/tests/test_cli.py <ide> import pytest <add>from click import NoSuchOption <add> <ide> from spacy.gold import docs_to_json, biluo_tags_from_offsets <ide> from spacy.gold.converters import iob2docs, conll_ner2docs, conllu2docs <ide> from spacy.lang.en import English <ide> def test_parse_config_overrides(...
1
Python
Python
add ability to set userdata
94b0b047568cb3de72bd85911e5b8d21ed914d28
<ide><path>libcloud/drivers/ec2.py <ide> def create_node(self, **kwargs): <ide> try: params['KeyName'] = kwargs['keyname'] <ide> except KeyError: pass <ide> <add> try: params['UserData'] = base64.b64encode(kwargs['userdata']) <add> except KeyError: pass <add> <ide> object = self.c...
1
PHP
PHP
use method on app
dd60e0dcc8059f700cc4c3c0679b1a13d0fae252
<ide><path>src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php <ide> public function discoverEvents() <ide> protected function discoverEventsWithin() <ide> { <ide> return [ <del> app_path('Listeners'), <add> $this->app->path('Listeners'), <ide> ]; <ide> ...
1
Javascript
Javascript
improve debug output in trace-events test
75e91659887012f743aa4487d6d4ce3d765c028a
<ide><path>test/parallel/test-trace-events-fs-sync.js <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide> const cp = require('child_process'); <ide> const fs = require('fs'); <add>const util = require('util'); <ide> <ide> if (!common.isMainThread) <ide> common.skip('process.chdir...
1
Text
Text
add item to changelog
d20af235980575703d23a7635d2634d37a22bb71
<ide><path>CHANGELOG.md <ide> Starting with 16.1.0, we will no longer be publishing new releases on Bower. You <ide> * Fix `form.reset()` to respect `defaultValue` on uncontrolled `<select>`. ([@aweary](https://github.com/aweary) in [#11057](https://github.com/facebook/react/pull/11057)) <ide> * Fix `<textarea>` placeh...
1
PHP
PHP
add method to parse compact route string
4af4d16287060474e6dabe099703d82d7ed80215
<ide><path>src/Routing/RouteBuilder.php <ide> protected static function parseDefaults($defaults): array <ide> return $defaults; <ide> } <ide> <del> $regex = '/(?:(?<plugin>[a-zA-Z0-9\/]*)\.)?(?<prefix>[a-zA-Z0-9\/]*?)' . <del> '(?:\/)?(?<controller>[a-zA-Z0-9]*):{2}(?<action>[a-zA...
2
Javascript
Javascript
expose registry as ember.registry
14be80cc6af1ed4cc203cb8b1f6a200f7cf3e400
<ide><path>packages/ember-runtime/lib/main.js <ide> import Namespace from 'ember-runtime/system/namespace'; <ide> import EmberObject from 'ember-runtime/system/object'; <ide> import TrackedArray from 'ember-runtime/system/tracked_array'; <ide> import SubArray from 'ember-runtime/system/subarray'; <del>import { Containe...
1
Python
Python
fix downstream rendering in webui
479d6220b7d0c93d5ad6a7d53d875e777287342b
<ide><path>airflow/www/views.py <ide> def graph(self, session=None): <ide> def get_downstream(task): <ide> for downstream_task in task.downstream_list: <ide> edge = { <del> 'source_id': downstream_task.task_id, <add> 'source_id': task.task_id, <i...
1
Java
Java
restore state field in abstractserverhttpresponse
d4446c79b659d1230bdd8caf3f233de5c39ce127
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractServerHttpResponse.java <ide> <ide> import java.util.ArrayList; <ide> import java.util.List; <add>import java.util.concurrent.atomic.AtomicReference; <ide> import java.util.function.Supplier; <ide> import java.util.stream.Collectors; ...
2
Python
Python
update the `dtype` typing tests
322c917b0cfc7d4a65e7ab198e81afc14778738e
<ide><path>numpy/typing/tests/data/fail/dtype.py <ide> class Test2: <ide> "field2": (int, 3), <ide> } <ide> ) <del> <del>np.dtype[np.float64](np.int64) # E: Argument 1 to "dtype" has incompatible type <ide><path>numpy/typing/tests/data/reveal/dtype.py <add>import ctypes as ct <ide> import numpy as np <ide>...
2
Ruby
Ruby
convert stream broadcasting to a string
046e32656efa989a112e9870d8aa25a49f944204
<ide><path>actioncable/lib/action_cable/channel/streams.rb <ide> module Streams <ide> # Start streaming from the named <tt>broadcasting</tt> pubsub queue. Optionally, you can pass a <tt>callback</tt> that'll be used <ide> # instead of the default of just transmitting the updates straight to the subscriber. ...
2
Python
Python
remove unused import statement in keras dir
1c460e1e08ab2ff65678ca0d3b97b578e5afd931
<ide><path>keras/datasets/cifar.py <ide> from __future__ import absolute_import <ide> import sys <ide> from six.moves import cPickle <del>from six.moves import range <ide> <ide> <ide> def load_batch(fpath, label_key='labels'): <ide><path>keras/wrappers/scikit_learn.py <ide> import copy <ide> import inspect <ide> impo...
2
Text
Text
add pathstream to inthewild.md
7ecca7036bbeab93f5be6c45fd05df0584d89430
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Pandora Media](https://www.pandora.com/) [[@Acehaidrey](https://github.com/Acehaidrey) & [@wolfier](https://github.com/wolfier)] <ide> 1. [Paradigma Digital](https://www.paradigmadigital.com/) [[@paradigmadigital](https://github.com/paradi...
1
Java
Java
allow non-public @transactional test methods
df7b24b8e771abbbebdb034fb436d37812329689
<ide><path>spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java <ide> public class TransactionalTestExecutionListener extends AbstractTestExecutionLis <ide> @SuppressWarnings("deprecation") <ide> private static final TransactionConfigurationAttributes defaultT...
3
Python
Python
add a patch to support python 2.7
ed8a0f6ad4780178e78c07a86b973fccec9c7d24
<ide><path>celery/bin/base.py <ide> from celery.exceptions import CDeprecationWarning, CPendingDeprecationWarning <ide> from celery.five import (getfullargspec, items, long_t, <ide> python_2_unicode_compatible, string, string_t, <del> text_t) <add> ...
1
Javascript
Javascript
add protections against malformed data
3d05eee0ea40f70d06f51cbfa7d1c0316cc557da
<ide><path>common/app/routes/challenges/utils.js <ide> import { compose } from 'redux'; <ide> import { bonfire, html, js } from '../../utils/challengeTypes'; <add>import protect from '../../utils/empty-protector'; <ide> <ide> export function encodeScriptTags(value) { <ide> return value <ide> export function loggerTo...
4
PHP
PHP
reduce duplication in test case
8800d7bdec1a2a08999ca7932a3b830a0ec79c6d
<ide><path>lib/Cake/Test/Case/View/Helper/TextHelperTest.php <ide> public function testAutoLinkEscape() { <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add>/** <add> * Data provider for autoLinking <add> */ <add> public static function autoLinkProvider() { <add> return array( <add> array( <add> ...
1
Javascript
Javascript
use common.port to determine debugger port
937662b03e55b639792d7b635f80fb82db5a6044
<ide><path>test/simple/test-debugger-client.js <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> var debug = require('_debugger'); <ide> <add>var debugPort = common.PORT + 1337; <add>debug.port = debugPort; <ide> var spawn = require('child_process').spawn; <ide> <ide> setTimeout(fun...
1
PHP
PHP
add basic implementation of form\schema
ae69a8054e76c918a42068e4b9e0ccc4700d3b5f
<ide><path>src/Form/Schema.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please see the LIC...
2
Javascript
Javascript
append feature to 'features'. update tests
7caa2fc1a703988532c61ffba17879f5d3d52520
<ide><path>src/js/control-bar/mute-toggle.js <ide> vjs.MuteToggle = vjs.Button.extend({ <ide> player.on('volumechange', vjs.bind(this, this.update)); <ide> <ide> // hide mute toggle if the current tech doesn't support volume control <del> if (player.tech && player.tech['volumeControl'] === false) { <add> ...
10
PHP
PHP
fix invalid method use and missing cast
3268b467ef93638eca80cf3ad9d47ea10b1487da
<ide><path>src/Command/CacheClearCommand.php <ide> public function buildOptionParser(ConsoleOptionParser $parser): ConsoleOptionPar <ide> */ <ide> public function execute(Arguments $args, ConsoleIo $io): ?int <ide> { <del> $name = $args->getArgument('engine'); <add> $name = (string)$args->get...
1
Javascript
Javascript
add some verification code to tls.connect()
5138992f3c275a1bab1593c7468c08f1f24e96bb
<ide><path>lib/tls.js <ide> exports.connect = function(port /* host, options, cb */) { <ide> socket.connect(port, host); <ide> <ide> pair.on('secure', function() { <del> console.log('client cleartext.getPeerCertificate(): %j', <del> cleartext.getPeerCertificate()); <del> console.log('client cl...
2
Javascript
Javascript
remove unnecessary test flags
e7658471d3d98f13783794277c62f61936706fc7
<ide><path>test/parallel/test-buffer-of-no-deprecation.js <del>// Flags: --pending-deprecation --no-warnings <ide> 'use strict'; <ide> <ide> const common = require('../common'); <ide><path>test/parallel/test-util-inspect.js <ide> // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR <ide> // OTHERWI...
4
Javascript
Javascript
remove range from moduledecoratordependency
8a996186a006a38a65a4a09bf067eed7881ef3b9
<ide><path>lib/NodeStuffPlugin.js <ide> class NodeStuffPlugin { <ide> parser.state.module.context, <ide> isHarmony ? harmonyModuleBuildin : moduleBuildin <ide> ), <del> parser.state.module, <del> expr.range <add> parser.state.module <ide> ); <ide> dep.loc = expr.loc;...
2
Javascript
Javascript
increase specificity in dgram test
73f219fb978e337d1764359d40afaad38630aa30
<ide><path>test/parallel/test-dgram-membership.js <ide> const setup = () => { <ide> const socket = setup(); <ide> socket.close(common.mustCall(() => { <ide> assert.throws(() => { socket.addMembership(multicastAddress); }, <del> /Not running/); <add> /^Error: Not running$/); <id...
1
Text
Text
add performanceobserver `buffered` document
497e5f85175faf78758f84f9198ac3c615bfaf4d
<ide><path>doc/api/perf_hooks.md <ide> Disconnects the `PerformanceObserver` instance from all notifications. <ide> <!-- YAML <ide> added: v8.5.0 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/39297 <add> description: Updated to conform to Performance Timeline Level 2...
1
PHP
PHP
fix some tests. cast migrations to objects
8f3126acb7a41781f8563e08def06eb4656798a7
<ide><path>src/Illuminate/Database/Migrations/Migrator.php <ide> public function rollback($pretend = false) <ide> // and properly reverse the entire database schema operation that ran. <ide> foreach ($migrations as $migration) <ide> { <del> $this->runDown($migration, $pretend); <add> $this->runDown((object) $...
8
Javascript
Javascript
add support to catch-all parameters in routes
7eafbb98c64c0dc079d7d3ec589f1270b7f6fea5
<ide><path>src/ng/route.js <ide> function $RouteProvider(){ <ide> * `$location.path` will be updated to add or drop the trailing slash to exactly match the <ide> * route definition. <ide> * <del> * `path` can contain named groups starting with a colon (`:name`). All characters up to the <del> * ...
2
PHP
PHP
remove old method
f4fd485846df1e75435c8097499c2266ba356cd0
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function flush() <ide> $this->loadedProviders = []; <ide> } <ide> <del> /** <del> * Get the used kernel object. <del> * <del> * @return \Illuminate\Contracts\Console\Kernel|\Illuminate\Contracts\Http\Kernel <del> */ <del> ...
1
Text
Text
move previous events to the end
3d6d641a8cd16d658c99fe83e62de4ca89df593b
<ide><path>docs/community/conferences.md <ide> redirect_from: "docs/conferences.html" <ide> <ide> ## Upcoming Conferences <ide> <del>### React London 2017 <del>March 28th at the [QEII Centre, London](http://qeiicentre.london/) <del> <del>[Website](http://react.london/) <del> <del>### React Amsterdam 2017 <del>April 2...
1
Javascript
Javascript
use safer id for init func
96f7ba8d8fcf98e03c5320b813fb4a9369457ca2
<ide><path>lib/WebAssemblyGenerator.js <ide> function compose(...fns) { <ide> <ide> // Utility functions <ide> const isGlobalImport = moduleImport => moduleImport.descr.type === "GlobalType"; <del>const initFuncId = t.identifier("__init__"); <add>const initFuncId = t.identifier("__webpack_init__"); <ide> <ide> /** <i...
2
PHP
PHP
fix double / issue in extracttask
4103fe14a29f9d997d18b9293f00ed86acbbc47c
<ide><path>lib/Cake/Console/Command/Task/ExtractTask.php <ide> public function execute() { <ide> } else { <ide> $message = __d('cake_console', "What is the path you would like to output?\n[Q]uit", $this->_paths[0] . DS . 'Locale'); <ide> while (true) { <del> $response = $this->in($message, null, $this->_path...
1
Python
Python
support handlers with and without context
e8c0766568cb20a5357c5e6823283f0c187b35b8
<ide><path>rest_framework/views.py <ide> Provides an APIView class that is the base of all views in REST framework. <ide> """ <ide> from __future__ import unicode_literals <add>import inspect <ide> <ide> from django.core.exceptions import PermissionDenied <ide> from django.http import Http404 <ide> def handle_exceptio...
2
Text
Text
fix bad links in docs. fixes
d900541021982b20ad975598229bca059589e5d5
<ide><path>docs/tips/17-children-undefined.md <ide> var App = React.createClass({ <ide> React.render(<App></App>, mountNode); <ide> ``` <ide> <del>For a more sophisticated example, refer to the last example on the [front page](/). <add>To access your own subcomponents (the `span`s), place [refs](/react/docs/more-about...
2
Go
Go
add integration test
c4c92e66cdb9fa4c141b4fa4872af37037e1bbe2
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestVolumeWithSymlink(t *testing.T) { <ide> logDone("run - volume with symlink") <ide> } <ide> <add>// Tests that a volume path that has a symlink exists in a container mounting it with `--volumes-from`. <add>func TestVolumesFromSymlinkPath(t *testing.T) { ...
1
PHP
PHP
fix lint errors
520789f6d34caf72f2bbd0fdce9138b2ba8b2012
<ide><path>Cake/Cache/Engine/MemcachedEngine.php <ide> public function init($settings = array()) { <ide> /** <ide> * Settings the memcached instance <ide> * <del> * @throws CacheException when the Memcached extension is not built with the desired serializer engine <add> * @throws Cake\Error\Exception when the Memcach...
2
Python
Python
fix gradient in fine_tune
335fa8b05cb1367de462973416a8889a77270e3a
<ide><path>spacy/_ml.py <ide> def fine_tune_fwd(docs_tokvecs, drop=0.): <ide> lengths) <ide> <ide> def fine_tune_bwd(d_output, sgd=None): <del> bp_vecs(d_output, sgd=sgd) <add> bp_vecs([d_o * model.d_mix[0] for d_o in d_output], sgd=sgd) <ide> flat_grad = m...
1
Javascript
Javascript
allow disabling of inactivity timeout
98edeccb3fd2d444bd895f6932edd156ca49a10f
<ide><path>src/js/player.js <ide> vjs.Player.prototype.listenForUserActivity = function(){ <ide> // Clear any existing inactivity timeout to start the timer over <ide> clearTimeout(inactivityTimeout); <ide> <del> // In X seconds, if no more activity has occurred the user will be <del> // consider...
1
Go
Go
fix the since and before filter behavior
b41dba58a01855e0d222bd6c14af9874c298c154
<ide><path>daemon/list.go <ide> type listContext struct { <ide> filters filters.Args <ide> // exitAllowed is a list of exit codes allowed to filter with <ide> exitAllowed []int <add> <add> // FIXME Remove this for 1.12 as --since and --before are deprecated <add> // beforeContainer is a filter to ignore containers t...
2
Go
Go
remove unneeded code
ab868ad79c631b2606b479edf12d287b986c72d4
<ide><path>daemon/commit.go <ide> func (daemon *Daemon) Commit(container *Container, c *ContainerCommitConfig) (*i <ide> }() <ide> <ide> // Create a new image from the container's base layers + a new layer from container changes <del> var ( <del> containerID, parentImageID string <del> containerConfig *...
1
Text
Text
fix small typo in 11-advanced-performance.md
4fe1b5984913b1556538e436875988540c19b4cb
<ide><path>docs/docs/11-advanced-performance.md <ide> Here's a subtree of components. For each one is indicated what `shouldComponentU <ide> <ide> <figure><img src="/react/img/docs/should-component-update.png" /></figure> <ide> <del>In the example above, since `shouldComponentUpdate` returned `false` for the subtree ...
1
PHP
PHP
use ellipsis character in pagination helper
7bc0d4e826ed15e876c61b7f8c329c99f5419079
<ide><path>src/View/Helper/PaginatorHelper.php <ide> class PaginatorHelper extends Helper <ide> 'last' => '<li class="last"><a href="{{url}}">{{text}}</a></li>', <ide> 'number' => '<li><a href="{{url}}">{{text}}</a></li>', <ide> 'current' => '<li class="active"><a href="">{{text}}</a...
1
Ruby
Ruby
fix variable reference
aac0e4a87873e998699bf68967127ec3f3632fd1
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def formula formula_name <ide> if formula.devel && formula.stable? && !ARGV.include?('--HEAD') \ <ide> && satisfied_requirements?(formula, :devel) <ide> test "brew", "fetch", "--retry", "--devel", *formula_fetch_options <del> run_as_not_dev...
1
Ruby
Ruby
extract path building to a method
0e26271456a772de5ce4c4c78cce3a275bcb89a8
<ide><path>actionpack/lib/action_dispatch/http/url.rb <ide> def url_for(options) <ide> raise ArgumentError, 'Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true' <ide> end <ide> <add> if options[:only_path] <add> ...
1
Java
Java
add tests for messagebodyclienthttpresponsewrapper
417bce8be5e32ae43c2e3b25de1e24cd03c71e93
<ide><path>spring-web/src/test/java/org/springframework/web/client/MessageBodyClientHttpResponseWrapperTests.java <add>/* <add> * Copyright 2002-2021 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 wit...
1
Ruby
Ruby
handle regex not finding anything
6db1b0abd869c091a889c5342203599a3291d3eb
<ide><path>Library/Homebrew/utils/curl.rb <ide> def curl_download(*args, to: nil, **options) <ide> supports_partial_download = http_status.to_i == 206 # Partial Content <ide> if supports_partial_download && <ide> destination.exist? && <del> destination.size == %r{^.*Content-Range: bytes \d+-\d+/(\d+)\r\n.*...
1
Python
Python
remove unused import
5605d687019dc55e594d4e227747c72bebb71a3c
<ide><path>numpy/array_api/_array_object.py <ide> from ._dtypes import (_all_dtypes, _boolean_dtypes, _integer_dtypes, <ide> _integer_or_boolean_dtypes, _floating_dtypes, _numeric_dtypes) <ide> <del>from typing import TYPE_CHECKING, Any, Optional, Tuple, Union <add>from typing import TYPE_CHECKIN...
1
Python
Python
move ftphook to contrib folder
813279859c7d47877e5dfd180e640413ab8559e9
<ide><path>airflow/contrib/hooks/__init__.py <add>''' <add>Imports the hooks dynamically while keeping the package API clean, <add>abstracting the underlying modules <add>''' <add>from airflow.utils import import_module_attrs as _import_module_attrs <add> <add>_hooks = { <add> 'ftp_hook': ['FTPHook'], <add>} <add> <...
3
Javascript
Javascript
use an unref'd timer to fix delay in exit
16b59cbc74c8fe2f8b30f3af4c2f885b7bfb6030
<ide><path>lib/http.js <ide> var util = require('util'); <ide> var net = require('net'); <ide> var Stream = require('stream'); <add>var timers = require('timers'); <ide> var url = require('url'); <ide> var EventEmitter = require('events').EventEmitter; <ide> var FreeList = require('freelist').FreeList; <ide> function u...
2
Text
Text
add changelog entry for 4d858b3f2a
2b17c114eb01c20ea76b9765eb206fb1c3157a43
<ide><path>railties/CHANGELOG.md <add>* `Rails.application.config_for` merges shared configuration deeply. <add> <add> ```yaml <add> # config/example.yml <add> shared: <add> foo: <add> bar: <add> baz: 1 <add> development: <add> foo: <add> bar: <add> qux: 2 <add> ...
1
Javascript
Javascript
rewrite mousewheel hack using d3
6c5a1a3b0ebd53a08751bbfec6b7f8252ae0211c
<ide><path>d3.behavior.js <ide> d3.behavior.zoom = function() { <ide> // mousewheel events are totally broken! <ide> // https://bugs.webkit.org/show_bug.cgi?id=40441 <ide> // not only that, but Chrome and Safari differ in re. to acceleration! <del> var inner = document.createElement("div"), <del> outer = do...
3
Text
Text
fix sentence fragment in fs doc
9f8d0ea6db2ff88422d1df69dbfed1dc766f8dbc
<ide><path>doc/api/fs.md <ide> the end of the file. <ide> <ide> _Note: The behavior of `fs.open()` is platform specific for some flags. As such, <ide> opening a directory on OS X and Linux with the `'a+'` flag - see example below - <del>will return an error. Whereas on Windows and FreeBSD a file descriptor will be <de...
1
Ruby
Ruby
remove unnecessary usage of formula.canonical_name
2616127a281b9cf7f15c3fb2cd8536741d0f1b6c
<ide><path>Library/Contributions/cmd/brew-services.rb <ide> def homebrew! <ide> end <ide> <ide> # Access current service <del> def service; @service ||= Service.new(Formula.factory(Formula.canonical_name(@formula))) if @formula end <add> def service; @service ||= Service.new(Formula.factory(@formula)) if...
1
PHP
PHP
add ability to set beanstalkd port
2608084a12f0596f70cf5a91514345e0a661d168
<ide><path>src/Illuminate/Queue/Connectors/BeanstalkdConnector.php <ide> class BeanstalkdConnector implements ConnectorInterface { <ide> */ <ide> public function connect(array $config) <ide> { <del> $pheanstalk = new Pheanstalk($config['host']); <add> $pheanstalk = new Pheanstalk($config['host'], array_get($confi...
1
PHP
PHP
set redis connection names
4215fd36f269f3b6d27fd453c7503cbde9806621
<ide><path>src/Illuminate/Redis/Connections/Connection.php <ide> abstract class Connection <ide> */ <ide> protected $client; <ide> <add> /** <add> * The Redis connection name. <add> * <add> * @var string <add> */ <add> protected $name; <add> <ide> /** <ide> * Subscribe to a set ...
2
Ruby
Ruby
fix weird colon output
55db2f7e114befc57f783d4858c72fc11a91382b
<ide><path>Library/Homebrew/cmd/uses.rb <ide> def uses <ide> if f.recursive_dependencies.any? { |dep| dep.name == ff.name } <ide> uses << f.to_s <ide> elsif f.recursive_requirements.any? { |req| req.name == ff.name } <del> uses << ":#{f}" <add> uses << f.to_s <ide> ...
1
Javascript
Javascript
fix another couple of race conditions in tests
bf73f5c506edf1353a48bb403065d6b45e959c21
<ide><path>test/core/transition-test-delay.js <ide> var assert = require("assert"); <ide> <ide> module.exports = { <ide> topic: function() { <del> return d3.select("body").selectAll() <add> return d3.select("body").html("").selectAll() <ide> .data(["foo", "bar"]) <ide> .enter().append("div") <ide...
2
Ruby
Ruby
remove `@host` ivar
3d32a50ca1933ee96abbe5db7ee99617fd0c328c
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> def handle_unverified_request <ide> request.session = NullSessionHash.new(request.env) <ide> request.env['action_dispatch.request.flash_hash'] = nil <ide> request.env['rack.session.options'] = { skip: tru...
2
Python
Python
add support for model merging
e82ab0ca50ec5230718e97d0affb2a8573ca52c9
<ide><path>keras/layers/core.py <ide> def get_config(self): <ide> return {"name":self.__class__.__name__} <ide> <ide> <add>class Merge(object): <add> def __init__(self, models, mode='sum'): <add> ''' Merge the output of a list of models into a single tensor. <add> mode: {'sum', 'concat'}...
4
Text
Text
fix broken tutorial link and change wording
cfe4152b1dba09d95387e62e8bb1f46cdd86c7da
<ide><path>docs/docs/tutorial.md <ide> var CommentBox = React.createClass({ <ide> <ide> ### Congrats! <ide> <del>You have just built a comment box in a few simple steps. Learn more about React in the [reference](syntax.html) or start hacking! Good luck! <add>You have just built a comment box in a few simple steps. Le...
1
Ruby
Ruby
fix typo in docs
b31c2fd0172ca770a4851ea42c91367e7a22cc52
<ide><path>activerecord/test/cases/connection_adapters/schema_cache_test.rb <ide> def test_marshal_dump_and_load <ide> # Populate it. <ide> cache.add("posts") <ide> <del> # Create a new cache by marchal dumping / loading. <add> # Create a new cache by marshal dumping / loading. <ide> ...
1
Javascript
Javascript
add an #each test
180856b5b6836f5cf95862ba02272722b064fc49
<ide><path>packages/ember-htmlbars/tests/helpers/each_test.js <ide> function testEachWithItem(moduleName, useBlockParams) { <ide> equal(view.$().text(), "controller:people - controller:Steve Holt of Yapp - controller:people - controller:Annabelle of Yapp - "); <ide> }); <ide> <add> <add> QUnit.test("locals in s...
1
PHP
PHP
improve nested rules in validated data
0a56560863125853873997013b43f6ab1eeb5c2c
<ide><path>src/Illuminate/Foundation/Http/FormRequest.php <ide> <ide> namespace Illuminate\Foundation\Http; <ide> <add>use Illuminate\Support\Str; <ide> use Illuminate\Http\Request; <ide> use Illuminate\Routing\Redirector; <ide> use Illuminate\Contracts\Container\Container; <ide> public function validated() <ide> ...
6
Javascript
Javascript
improve test coverage of internal/blob
1285ac116d4334d1be3ce324591d28ec27bd61b2
<ide><path>test/parallel/test-blob-buffer-too-large.js <add>// Flags: --no-warnings <add>'use strict'; <add> <add>const common = require('../common'); <add>const assert = require('assert'); <add>const { Blob } = require('buffer'); <add> <add>if (common.isFreeBSD) <add> common.skip('Oversized buffer make the FreeBSD CI...
2
Javascript
Javascript
remove enablepersistentoffscreenhostcontainer flag
ce13860281f833de8a3296b7a3dad9caced102e9
<ide><path>packages/react-native-renderer/src/ReactFabricHostConfig.js <ide> * @flow <ide> */ <ide> <del>import type {ReactNodeList, OffscreenMode} from 'shared/ReactTypes'; <ide> import type {ElementRef} from 'react'; <ide> import type { <ide> HostComponent, <ide> export function cloneInstance( <ide> }; <ide> }...
24
Python
Python
write tensorboard histograms with tensor names
7ae36d132ab20c6ce7853f89259411458d10227e
<ide><path>keras/callbacks.py <ide> def _set_model(self, model): <ide> layers = self.model.layers <ide> for layer in layers: <ide> if hasattr(layer, 'W'): <del> tf.histogram_summary('{}_W'.format(layer), layer.W) <add> tf.histogram_summary('{...
1
PHP
PHP
update all @deprecated annotations
67ba9cb40623deeddf6326c9ccff09afc27be447
<ide><path>lib/Cake/Cache/Engine/MemcacheEngine.php <ide> * more information. <ide> * <ide> * @package Cake.Cache.Engine <del> * @deprecated You should use the Memcached adapter instead. <add> * @deprecated 3.0.0 You should use the Memcached adapter instead. <ide> */ <ide> class MemcacheEngine extends CacheEngine {...
29
Text
Text
find characters with lazy matching
6cd3466f0be97b214654827eaa4391a406536e6d
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/find-characters-with-lazy-matching.english.md <ide> In regular expressions, a <code>greedy</code> match finds the longest possible p <ide> You can apply the regex <code>/t[a-z]*i/</code> to the string <code>"titani...
1
Javascript
Javascript
add required dependency
b152cc8ae2b332c526367ef95982038de4ad7f8f
<ide><path>lib/sproutcore-handlebars/lib/controls/checkbox.js <ide> require("sproutcore-views/views/view"); <add>require("sproutcore-handlebars/ext"); <ide> <ide> // TODO: Be explicit in the class documentation that you <ide> // *MUST* set the value of a checkbox through SproutCore.
1
Javascript
Javascript
create nativemoduleschema and componentschema
3a75b376cc3c44f9693d99b33046cf76d6fafa89
<ide><path>packages/react-native-codegen/src/CodegenSchema.js <ide> export type ComponentShape = $ReadOnly<{| <ide> |}>; <ide> <ide> export type SchemaType = $ReadOnly<{| <del> modules: $ReadOnly<{ <del> [module: string]: $ReadOnly<{| <del> components?: $ReadOnly<{[component: string]: ComponentShape, ...}>, <...
1
Mixed
Python
remove jsonp support from core
fe745b96163282e492f17a6b003418b81350333f
<ide><path>docs/api-guide/renderers.md <ide> using the `APIView` class based views. <ide> Or, if you're using the `@api_view` decorator with function based views. <ide> <ide> @api_view(['GET']) <del> @renderer_classes((JSONRenderer, JSONPRenderer)) <add> @renderer_classes((JSONRenderer,)) <ide> def user_...
3
Text
Text
fix inconsistency in mockcomponent argument name
31090821446d0eb425bbddd7901c1040a4ceb3a1
<ide><path>docs/docs/09.4-test-utils.md <ide> Render a component into a detached DOM node in the document. **This function req <ide> ### mockComponent <ide> <ide> ```javascript <del>object mockComponent(function componentClass, string? tagName) <add>object mockComponent(function componentClass, string? mockTagName) <i...
1
Javascript
Javascript
fix capitalization of github (#902)
c65062599ecad54a1ad5bacd72f65e8f9ef7449b
<ide><path>pages/src/src/Header.js <ide> var Header = React.createClass({ <ide> </a> <ide> <a href="docs/" target="_self">Docs</a> <ide> <a href="http://stackoverflow.com/questions/tagged/immutable.js?sort=votes">Questions</a> <del> <a href="https://github.com/facebook/imm...
1
Go
Go
remove empty gelf_unsupported.go
72f5e5e84f402f175ec08964053e1af688dad265
<ide><path>daemon/logger/gelf/gelf_unsupported.go <del>// +build !linux <del> <del>package gelf
1
Mixed
Python
fix readme and duplicate (#967)
781b7f86e720b9c5164047e46f2dedd807b9165b
<ide><path>README.md <ide> We're on [Gitter](https://gitter.im/TheAlgorithms)! Please join us. <ide> <ide> - [N Queens](./backtracking/n_queens.py) <ide> - [Sum Of Subsets](./backtracking/sum_of_subsets.py) <add>- [All Subsequences](./backtracking/all_subsequences.py) <add>- [All Permutations](./backtracking/all_permu...
2
Javascript
Javascript
drop the @jsx docblock from unit tests
348af5784207c908e7d074fdad72cb5237a0f78d
<ide><path>src/addons/link/__tests__/LinkedStateMixin-test.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> * <del> * @jsx React.DOM <ide> * @emails react-core <ide> */ <ide> <ide><path>src/addons/link/__tests__/ReactLinkPropTypes-test.js ...
52
Text
Text
add 2.14.0-beta.1 to the changelog
a787c8274c5290512cc3fdbc60cb9e27938a6674
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.13.0-beta.2 (April 7, 2017) <add>### 2.14.0-beta.1 (April 27, 2017) <add> <add>- [#15015](https://github.com/emberjs/ember.js/pull/15015) Allow mounting routeless engines with a bound engine name <add>- [#15078](https://github.com/emberjs/ember.js/pull/1...
1
Python
Python
fix broadcasting in np.cross (solves )
b9454f50f23516234c325490913224c3a69fb122
<ide><path>numpy/core/numeric.py <ide> def cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None): <ide> <ide> """ <ide> if axis is not None: <del> axisa, axisb, axisc=(axis,)*3 <del> a = asarray(a).swapaxes(axisa, 0) <del> b = asarray(b).swapaxes(axisb, 0) <del> msg = "incompatible dimensions fo...
2
Python
Python
add test for 12-byte alignment
d3beaaacb3d28dbc4c6bcf8709857b561b37a8cc
<ide><path>numpy/core/tests/test_multiarray.py <ide> def check(self, shape, dtype, order, align): <ide> raise ValueError() <ide> <ide> def test_various_alignments(self): <del> for align in [1, 2, 3, 4, 8, 16, 32, 64, None]: <add> for align in [1, 2, 3, 4, 8, 12, 16, 32, 64, None]: <ide> ...
1
Text
Text
fix typo 'crsf' and plural of word
781890b7df88086d9cba07904e53db346ec4a715
<ide><path>docs/api-guide/testing.md <ide> If you're using `SessionAuthentication` then you'll need to include a CSRF token <ide> for any `POST`, `PUT`, `PATCH` or `DELETE` requests. <ide> <ide> You can do so by following the same flow that a JavaScript based client would use. <del>First make a `GET` request in order ...
1
Javascript
Javascript
clarify confusion over "client" in comment
a046ae5ceddcaaf695df60be5dbc9d725beb6f22
<ide><path>test/parallel/test-tls-socket-default-options.js <ide> function test(client, callback) { <ide> })); <ide> })); <ide> <del> // Client doesn't support the 'secureConnect' event, and doesn't error if <del> // authentication failed. Caller must explicitly check for failure. <add> // `new TLSS...
1
Javascript
Javascript
add serialize to amd dependencies
250fd800a171cac9ab713cbbe1a70a90a348e3dc
<ide><path>src/ajax.js <ide> define( [ <ide> "./ajax/parseJSON", <ide> "./ajax/parseXML", <ide> "./event/trigger", <del> "./deferred" <add> "./deferred", <add> "./serialize" // jQuery.param <ide> ], function( jQuery, document, rnotwhite, location, nonce, rquery ) { <ide> <ide> var
1
Python
Python
tell scons whether we are in bypass mode or not
680190a475b66b947dc906f76700990acd054498
<ide><path>numpy/distutils/command/scons.py <ide> def run(self): <ide> cmd.append('cxx_opt_path=%s' % protect_path(self.scons_cxxcompiler_path)) <ide> <ide> cmd.append('include_bootstrap=%s' % dirl_to_str(get_numpy_include_dirs(sconscript))) <add> cmd.append('bypa...
1
Text
Text
fix broken link in dgram doc
8361c26cd5c1f0ac15437cf46f1bf2439e8d25b1
<ide><path>doc/api/dgram.md <ide> and `udp6` sockets). The bound address and port can be retrieved using <ide> [`Buffer`]: buffer.html <ide> [`'close'`]: #dgram_event_close <ide> [`close()`]: #dgram_socket_close_callback <add>[`cluster`]: cluster.html <ide> [`dgram.createSocket()`]: #dgram_dgram_createsocket_options_ca...
1
Ruby
Ruby
remove one more note about deprecated behavior
ca8f8fb0316fe9a2f3a4756a781c9bf4cdcf465c
<ide><path>actionpack/lib/action_controller/base/layouts.rb <ide> module ActionController <ide> # hello world <ide> # // The footer part of this layout <ide> # <del> # NOTE: The old notation for rendering the view from a layout was to expose the magic <tt>@content_for_layout</tt> instance <del> # variable. ...
1
Python
Python
add dtype conversions of inputs
cf39a723ef4cac328225fd0e3a9b83edac41c2c1
<ide><path>numpy/core/numeric.py <ide> def cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None): <ide> dtype = promote_types(a.dtype, b.dtype) <ide> cp = empty(shape, dtype) <ide> <add> # recast arrays as dtype <add> a = a.astype(dtype) <add> b = b.astype(dtype) <add> <ide> # create local aliases ...
2
Ruby
Ruby
get brew style to pass
c7831a457d738d9723231cae77b30b1b22b39dbc
<ide><path>Library/Homebrew/test/cli_parser_spec.rb <ide> allow(ENV).to receive(:[]).with("HOMEBREW_SWITCH_B").and_return("0") <ide> allow(ENV).to receive(:[]) <ide> parser.parse(["--switch-b"]) <del> expect(Homebrew.args.switch_a?).to be_falsy <del> expect(Homebrew.args.switch_b?).to be tru...
1