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
Go
Go
remove unnecessary hardcoded version
accf28a7dbdd46203c661d30b80326df4d447cea
<ide><path>api/server/middleware.go <ide> import ( <ide> "github.com/docker/docker/api" <ide> "github.com/docker/docker/api/server/httputils" <ide> "github.com/docker/docker/api/server/middleware" <del> "github.com/docker/docker/dockerversion" <ide> "github.com/docker/docker/pkg/authorization" <ide> ) <ide> <ide> ...
2
Python
Python
extract clientinfo to module level
1b568d73e1dfb838a3a0446e3a6063b9f27f04b8
<ide><path>airflow/providers/google/cloud/_internal_client/secret_manager_client.py <ide> <ide> import google <ide> <add>from airflow.providers.google.common.consts import CLIENT_INFO <add> <ide> if sys.version_info >= (3, 8): <ide> from functools import cached_property <ide> else: <ide> from cached_property ...
51
Javascript
Javascript
fix typo in core.helpers.js
ef1c4fb0cbd7c35f0affaa27bf589b6f3302fd8c
<ide><path>src/core/core.helpers.js <ide> <ide> //Declare root variable - window in the browser, global on the server <ide> var root = this, <del> previous = root.Chart; <add> Chart = root.Chart; <ide> <ide> //Global Chart helpers object for utility methods and classes <ide> var helpers = Chart.helpers = {};
1
Javascript
Javascript
prevent infinite loop in cffparser_parseheader
5f021b067c1228f3c74b26373415d3f31ce1643c
<ide><path>src/core/fonts.js <ide> var CFFParser = (function CFFParserClosure() { <ide> }, <ide> parseHeader: function CFFParser_parseHeader() { <ide> var bytes = this.bytes; <add> var bytesLength = bytes.length; <ide> var offset = 0; <ide> <del> while (bytes[offset] != 1) <add> // P...
1
Text
Text
update description for docker plugin inspect
fdedc38f0c398a81360a90b627493872ef3c8a56
<ide><path>docs/reference/commandline/plugin_inspect.md <ide> parent = "smn_cli" <ide> # plugin inspect (experimental) <ide> <ide> ```markdown <del>Usage: docker plugin inspect PLUGIN <add>Usage: docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...] <ide> <del>Inspect a plugin <add>Display detailed information on one ...
1
Javascript
Javascript
use native promises
b12db7645e624e65b5af2fc23be64b66c2ca1a5d
<ide><path>local-cli/dependencies/dependencies.js <ide> * LICENSE file in the root directory of this source tree. An additional grant <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> */ <add>'use strict'; <ide> <add>const ReactPackager = require('../../packager/react-packager')...
7
Mixed
Javascript
add runtime deprecate for file stream open()
773769df60ac4f2448fa88b2ece035de2512928f
<ide><path>doc/api/deprecations.md <ide> Type: Documentation-only (supports [`--pending-deprecation`][]) <ide> The `process._tickCallback` property was never documented as <ide> an officially supported API. <ide> <add><a id="DEP0XXX"></a> <add>### DEP0XXX: `WriteStream.open()` and `ReadStream.open()` are internal <add...
4
Python
Python
fix build breakage
827bc405c59d98251055ea93e0a6392925d713a6
<ide><path>numpy/distutils/fcompiler/__init__.py <ide> def get_library_dirs(self): <ide> <ide> def get_version(self, force=False, ok_status=[0]): <ide> assert self._is_customised <del> return CCompiler.get_version(force=force, ok_status=ok_status) <add> return CCompiler.get_version(self, forc...
1
Python
Python
improve error message when loading models from hub
46efc5802458e91a702528332d76d464061d201f
<ide><path>src/transformers/configuration_utils.py <ide> def get_config_dict( <ide> logger.error(err) <ide> msg = ( <ide> f"Can't load config for '{pretrained_model_name_or_path}'. Make sure that:\n\n" <del> f"- '{pretrained_model_name_or_path}' is a correct model ...
6
Text
Text
register zsc for the inference api
e7aa64838cc604abf7a49e69ca0ffe7af683d8ca
<ide><path>model_cards/facebook/bart-large-mnli/README.md <ide> --- <ide> license: mit <ide> thumbnail: https://huggingface.co/front/thumbnails/facebook.png <add>pipeline_tag: zero-shot-classification <ide> ---
1
Ruby
Ruby
fix whitespace and unsupported method args
d4cc1e33b80a546a58bcd2eaa49ea4c5e9682cbc
<ide><path>lib/arel/visitors/to_sql.rb <ide> def quoted o, a <ide> quote(o, column_for(a)) <ide> end <ide> <del> def unsupported o, a <add> def unsupported o <ide> raise "unsupported: #{o.class.name}" <ide> end <ide> <ide><path>lib/arel/visitors/visitor.rb <ide> def dispatch <ide...
2
Text
Text
fix docs for next/image unconfigured hosts
5e6b008b561caf2710ab7be63320a3d549474a5b
<ide><path>errors/next-image-unconfigured-host.md <ide> <ide> #### Why This Error Occurred <ide> <del>On one of your pages that leverages the `next/image` component, you passed a `src` value that uses a hostname in the URL that isn't defined in the `images.domains` config in `next.config.js`. <add>One of your pages t...
1
Text
Text
add v3.5.0-beta.3 to changelog
a835354b5f91454403caa21fc8b9fc267b3483be
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.5.0-beta.3 (September 24, 2018) <add> <add>- [#16978](https://github.com/emberjs/ember.js/pull/16978) [BUGFIX] Properly teardown alias <add>- [#16999](https://github.com/emberjs/ember.js/pull/16999) [BUGFIX] Fix mouseEnter/Leave event delegation w/o jQu...
1
Mixed
Python
update cache_dir in readme and examples
05053d163cbd6021e47487699e4e2de36c3b7720
<ide><path>README.md <ide> Here is a detailed documentation of the classes in the package and how to use th <ide> To load one of Google AI's pre-trained models or a PyTorch saved model (an instance of `BertForPreTraining` saved with `torch.save()`), the PyTorch model classes and the tokenizer can be instantiated as <id...
4
Javascript
Javascript
initialize data object when replaced
9e06f90d14365e7a313acfa57042daf000989853
<ide><path>src/core/core.config.js <ide> function initOptions(config) { <ide> options.scales = mergeScaleConfig(config, options); <ide> } <ide> <del>function initConfig(config) { <del> config = config || {}; <del> <del> const data = config.data = config.data || {datasets: [], labels: []}; <add>function initData(da...
2
PHP
PHP
implement random fix from 5.0 in 5.1
08fc7fa9350032582ad4e775416e9642d8cde2a2
<ide><path>src/Illuminate/Support/Str.php <ide> public static function random($length = 16) <ide> if (function_exists('random_bytes')) { <ide> $bytes = random_bytes($length * 2); <ide> } elseif (function_exists('openssl_random_pseudo_bytes')) { <del> $bytes = openssl_random_pseudo...
1
Python
Python
add a test case for it
1657e6b6ff04e17025c5946915585d95992283ae
<ide><path>libcloud/test/dns/test_cloudflare.py <ide> def test_create_record(self): <ide> self.assertEqual(record.type, 'A') <ide> self.assertEqual(record.data, '127.0.0.3') <ide> <add> def test_create_record_error_with_error_chain(self): <add> zone = self.driver.list_zones()[0] <add> <add> ...
1
Javascript
Javascript
add missing field definition in contextdependency
5649b9c9a347f6642baef99adddcedf69eba1082
<ide><path>lib/dependencies/ContextDependency.js <ide> class ContextDependency extends Dependency { <ide> super(); <ide> this.options = options; <ide> this.userRequest = this.options.request; <add> this.critical = false; <ide> this.hadGlobalOrStickyRegExp = false; <ide> if (this.options.regExp.global || this...
1
Ruby
Ruby
fix the truffleruby branch
ff5e909b635bdc6ec0f915e101a44281dfd30b97
<ide><path>activesupport/lib/active_support/descendants_tracker.rb <ide> def direct_descendants(klass) <ide> # <ide> # JRuby for now doesn't have Class#descendant, but when it will, it will likely <ide> # have the same WeakMap semantic than Truffle so we future proof this as much as possible. <d...
1
Python
Python
take advantage of symmetry in leggauss
49427504787e46bc394305901997d629f039fd19
<ide><path>numpy/polynomial/legendre.py <ide> def leggauss(deg): <ide> # matrix is symmetric in this case in order to obtain better zeros. <ide> c = np.array([0]*deg + [1]) <ide> m = legcompanion(c) <del> x = la.eigvals(m) <add> x = la.eigvalsh(m) <ide> x.sort() <ide> <ide> # improve roots by...
1
Javascript
Javascript
handle blank shells in test-os.js
b5569dbe8dee7f259644ef6b73b756d9ea2ba090
<ide><path>test/parallel/test-os.js <ide> if (common.isWindows) { <ide> } else { <ide> is.number(pwd.uid); <ide> is.number(pwd.gid); <del> assert.ok(pwd.shell.includes(path.sep)); <add> assert.strictEqual(typeof pwd.shell, 'string'); <add> // It's possible for /etc/passwd to leave the user's shell blank. <add> ...
1
Text
Text
fix typo in .github/issue_template/bug_report.md
d82a127961a1e1db3d7afaa0c2ffa80f1332c547
<ide><path>.github/ISSUE_TEMPLATE/bug_report.md <ide> If you are using kubernetes, please attempt to recreate the issue using minikube <ide> <ide> If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action <ide> <del>You can include images using the .md sytle of <add...
1
Text
Text
add generics section
ddb81086a93b42ac724751675512387865dd52c2
<ide><path>guide/english/swift/generics/index.md <add>--- <add>title: Generics <add>--- <add> <add># Generics <add> <add>Write a name inside angle brackets to make a generic function or type. <add>```Swift <add>func makeArray<Item>(repeating item: Item, numberOfTimes: Int) -> [Item] { <add> var result = [Item]() <add> ...
1
Python
Python
update imdb_cnn.py to use globalmaxpooling1d
4cd83631ee003fb2847b78838880392101542517
<ide><path>examples/imdb_cnn.py <ide> <ide> from keras.preprocessing import sequence <ide> from keras.models import Sequential <del>from keras.layers import Dense, Dropout, Activation, Flatten <add>from keras.layers import Dense, Dropout, Activation <ide> from keras.layers import Embedding <del>from keras.layers impor...
1
Python
Python
improve asset fetching
126050f259c3bfbef43129bc156c0a6ac381d1f5
<ide><path>spacy/cli/project.py <ide> def project_assets(project_dir: Path) -> None: <ide> msg.warn(f"No assets specified in {CONFIG_FILE}", exits=0) <ide> msg.info(f"Fetching {len(assets)} asset(s)") <ide> variables = config.get("variables", {}) <add> fetched_assets = [] <ide> for asset in asset...
1
PHP
PHP
add "remember" to ignore list
ff525b995b21998aeba4d87ff97a54b0cb6c6df3
<ide><path>laravel/auth/drivers/eloquent.php <ide> public function retrieve($id) <ide> */ <ide> public function attempt($arguments = array()) <ide> { <del> $user = $this->model()->where(function($query) use($arguments) { <add> $user = $this->model()->where(function($query) use($arguments) <add> { <ide> $usern...
2
Javascript
Javascript
replace console.log/error with debuglog
41b1e87356ec73810d57c37c7058d186f8d574bd
<ide><path>test/parallel/test-cluster-setup-master-multiple.js <ide> require('../common'); <ide> const assert = require('assert'); <ide> const cluster = require('cluster'); <add>const debug = require('util').debuglog('test'); <ide> <ide> assert(cluster.isMaster); <ide> <ide> const configs = []; <ide> <ide> // Captur...
1
PHP
PHP
add a test for nulls
aa6fd355152276b7fee22e7503023b42c6d29c93
<ide><path>tests/TestCase/Shell/Helper/TableHelperTest.php <ide> public function testEmptyStrings() <ide> $this->assertEquals($expected, $this->stub->messages()); <ide> } <ide> <add> /** <add> * Test that output works when data contains just empty strings. <add> */ <add> public function testN...
1
Text
Text
fix typo in docs/manpage.md
05b4d264f06b5c2e4a336181646a58c0115281b8
<ide><path>docs/Manpage.md <ide> The search for *`text`* is extended online to `homebrew/core` and `homebrew/cask <ide> Print export statements. When run in a shell, this installation of Homebrew will be added to your `PATH`, `MANPATH`, and `INFOPATH`. <ide> <ide> The variables `HOMEBREW_PREFIX`, `HOMEBREW_CELLAR` and...
1
Python
Python
update quick_sort.py (#928)
34889fc6d8d3ac1cf5af11039cc1ec40185f778e
<ide><path>sorts/quick_sort.py <ide> def quick_sort(collection): <ide> if length <= 1: <ide> return collection <ide> else: <del> pivot = collection[0] <del> # Modify the list comprehensions to reduce the number of judgments, the speed has increased by more than 50%. <del> greater = ...
1
PHP
PHP
update firstorfail logic
f409e0433fd1d9186dc6dfb32e277adb74e96fdc
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function firstOrFail($key = null, $operator = null, $value = null) <ide> ? $this->operatorForWhere(...func_get_args()) <ide> : $key; <ide> <del> $items = $this->when($filter)->filter($filter); <add> $items = $this->...
2
Ruby
Ruby
store the singleton_class in a local variable
17cb1266c7b91c934dcef2afe38ea4dab677ef91
<ide><path>activesupport/lib/active_support/testing/time_helpers.rb <ide> def unstub_all! <ide> private <ide> <ide> def unstub_object(stub) <del> stub.object.singleton_class.send :undef_method, stub.method_name <del> stub.object.singleton_class.send :alias_method, stub.method_name, stub...
1
Python
Python
use openblas 0.3.10
22ac0da7f24787d274c36062507239402b5e0f09
<ide><path>tools/openblas_support.py <ide> <ide> from tempfile import mkstemp, gettempdir <ide> from urllib.request import urlopen, Request <add>from urllib.error import HTTPError <ide> <del>OPENBLAS_V = '0.3.9' <add>OPENBLAS_V = '0.3.10' <ide> # Temporary build of OpenBLAS to test a fix for dynamic detection of CPU ...
1
Java
Java
fix warnings in headermethodargumentresolver
6bb6b6e6b5620af0f82cd80fb8c65684097f22e5
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/HeaderMethodArgumentResolver.java <ide> <ide> package org.springframework.messaging.handler.annotation.support; <ide> <add>import java.util.List; <add>import java.util.Map; <add> <ide> import org.apache.commons.logging....
1
Text
Text
add better explanation of monad laws
bbbaca63c124f68e999bd34a72355ae051bb10fa
<ide><path>client/src/pages/guide/english/haskell/monad/index.md <ide> title: Monad <ide> # Monad Laws <ide> There are 3 laws which must be satisfied by a data type to be considered as monad <ide> <add>## Left Identity <add>`return a >>= f` must equal `f a` <ide> <add>This states that if we take a value and use `retu...
1
Ruby
Ruby
use the $stderr global variable
22a98624d2d249add58c31833e1b4e452c242d03
<ide><path>Library/Homebrew/utils.rb <ide> def oh1 title <ide> end <ide> <ide> def opoo warning <del> STDERR.puts "#{Tty.red}Warning#{Tty.reset}: #{warning}" <add> $stderr.puts "#{Tty.red}Warning#{Tty.reset}: #{warning}" <ide> end <ide> <ide> def onoe error <del> STDERR.puts "#{Tty.red}Error#{Tty.reset}: #{error}"...
1
Text
Text
replace stub with guide
f1ef10aeb0b68804f7653c05d9daebfb6fa2a9fe
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/basic-javascript/understand-string-immutability/index.md <ide> title: Understand String Immutability <ide> --- <ide> ## Understand String Immutability <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master...
1
Ruby
Ruby
move mysql2 test for when adapter will be loaded
8e2c0803f5e114f74ce0e8acc44ae43da97175e3
<ide><path>activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb <ide> def test_bad_connection_mysql <ide> end <ide> end <ide> <del> def test_bad_connection_mysql2 <del> assert_raise ActiveRecord::NoDatabaseError do <del> connection = ActiveRecord::Base.mysql2_connection(adapt...
2
Javascript
Javascript
add empty publicruntimeconfig to serverless tests
e7440858db5d23fe162549df762d93b0b543b04c
<ide><path>test/integration/serverless/next.config.js <ide> module.exports = { <ide> }, <ide> experimental: { <ide> publicDirectory: true <del> } <add> }, <add> // make sure error isn't thrown from empty publicRuntimeConfig <add> publicRuntimeConfig: {} <ide> }
1
Python
Python
add missing import
b1b8cf8b3a7789530a94def061de14c948c5c373
<ide><path>libcloud/py3.py <ide> def dictvalues(d): <ide> else: <ide> import httplib <ide> from StringIO import StringIO <add> import urllib <ide> import urllib2 <ide> import urlparse <ide>
1
Ruby
Ruby
set `m4` on linux when `bison` is a dependency
22db7aa516ef385949582cac1f12d8984e441f8b
<ide><path>Library/Homebrew/extend/os/linux/extend/ENV/super.rb <ide> def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a <ide> self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O2" <ide> self["HOMEBREW_DYNAMIC_LINKER"] = determine_dynamic_linker_path <ide> self["HOMEBREW_RPATH_PATHS"] = d...
1
Java
Java
fix measureinwindow for view-backed nodes
520f70bd57e8211a375990a9e0d805a0a738b176
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java <ide> private void measureHelper(int reactTag, boolean relativeToWindow, Callback call <ide> FlatShadowNode node = (FlatShadowNode) resolveShadowNode(reactTag); <ide> if (node.mountsToView()) { <ide> mStateBuilder.ensu...
1
Text
Text
fix translation in spanish readme.md
be74e5be01dc5c7243815c0e308bf02f98cb7666
<ide><path>docs/spanish/README.md <ide> </tr> <ide> </table> <ide> <del># Documentation Quick Reference <add># Documentación de referencia rápida <ide> <ide> ¡Hola 👋 ! <ide>
1
Mixed
Text
improve string#squish whitespaces matching
b5245da94a7c7667b57bb2184fa9aa7beb998da6
<ide><path>activesupport/CHANGELOG.md <ide> <ide> * Optimize log subscribers to check log level before doing any processing. *Brian Durand* <ide> <add>* Improve String#squish to handle Unicode whitespace. *Antoine Lyset* <add> <ide> Please check [3-2-stable](https://github.com/rails/rails/blob/3-2-stable/activesu...
4
Text
Text
add arquivei to companies list
c6824a34a9779675e42d9b8bc7025f3dbc942c3d
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [AltX](https://www.getaltx.com/about) [[@pedromduarte](https://github.com/pedromduarte)] <ide> 1. [Apigee](https://apigee.com) [[@btallman](https://github.com/btallman)] <ide> 1. [ARGO Labs](http://www.argolabs.org) [[California Data Collaborat...
1
Mixed
Javascript
update apollo links in examples
b990b29d2d64a7c12152752264fbd79e5371681b
<ide><path>examples/with-apollo-and-redux-saga/lib/withApollo.js <ide> export default ComposedComponent => { <ide> } catch (error) { <ide> // Prevent Apollo Client GraphQL errors from crashing SSR. <ide> // Handle them in components via the data.error prop: <del> // http://dev.apoll...
8
PHP
PHP
onceusingid()
a6ddacb568c1d4fa2d4b6e9f739830692c055973
<ide><path>tests/Auth/AuthGuardTest.php <ide> public function testLoginUsingIdFailure() <ide> $this->assertFalse($guard->loginUsingId(11)); <ide> } <ide> <add> public function testOnceUsingIdSetsUser() <add> { <add> list($session, $provider, $request, $cookie) = $this->getMocks(); <add> ...
1
Text
Text
note functional equivalence in reset task
d4863f30de023d0f6817afcddc114889493e6d3c
<ide><path>guides/source/migrations.md <ide> version to migrate to. <ide> <ide> ### Resetting the Database <ide> <del>The `rake db:reset` task will drop the database, recreate it and load the <del>current schema into it. <add>The `rake db:reset` task will drop the database and set it up again. This is <add>functional...
1
Ruby
Ruby
create homebrew_cache when needed
512073ad388953152ab88802237dd469c799983c
<ide><path>Library/Homebrew/cache_store.rb <ide> def created? <ide> # @return [DBM] db <ide> def db <ide> # DBM::WRCREAT: Creates the database if it does not already exist <del> @db ||= DBM.open(dbm_file_path, DATABASE_MODE, DBM::WRCREAT) <add> @db ||= begin <add> HOMEBREW_CACHE.mkpath <add> DBM...
1
Javascript
Javascript
remove an unnecessary warning
7443f63ae995a01f0b97675a17ca3b0d81bd0ad2
<ide><path>src/renderers/shared/reconciler/ReactUpdateQueue.js <ide> function enqueueUpdate(internalInstance) { <ide> } <ide> <ide> function getInternalInstanceReadyForUpdate(publicInstance, callerName) { <del> warning( <del> ReactCurrentOwner.current == null, <del> '%s(...): Cannot update during an existing st...
2
Text
Text
deprecate thenable support
1cea3918af6c8d5c0e4ab6b1604ccbbcc6442548
<ide><path>doc/api/deprecations.md <ide> should have the same effect. The receiving end should also check the <ide> [`readable.readableEnded`][] value on [`http.IncomingMessage`][] to get whether <ide> it was an aborted or graceful destroy. <ide> <add>### DEP0157: Thenable support in streams <add> <add><!-- YAML <add>...
1
Ruby
Ruby
routeset#rewrite => url_for
4d2470f7daad8cebd0a69f5ea0509a41af0596b8
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def build_request_uri(action, parameters) <ide> :relative_url_root => nil, <ide> :_path_segments => @request.symbolized_path_parameters) <ide> <del> url, query_string = @router.rewrite(options).split("?", 2) <add> ...
5
Python
Python
fix tapas issue
70f88eecccb54e344bd8ada1698b4e62ca7d79ff
<ide><path>src/transformers/models/tapas/modeling_tapas.py <ide> def _segment_reduce(values, index, segment_reduce_fn, name): <ide> <ide> segment_means = scatter( <ide> src=flat_values, <del> index=flat_index.indices.type(torch.long), <add> index=flat_index.indices.long(), <ide> dim=0...
2
Javascript
Javascript
improve docs for event names
5079d4efc5eb694354c3afb89f5af30aafb2fb54
<ide><path>packages/ember-views/lib/views/view.js <ide> class: <ide> <ide> ### Event Names <ide> <del> Possible events names for any of the responding approaches described above <del> are: <add> All of the event handling approaches described above respond to the same set <add> of events. The names of the built-...
1
Python
Python
fix gru activation
d04cac6526171af608baf38f68f9767af62b0555
<ide><path>keras/layers/recurrent.py <ide> def step(self, x, states): <ide> z = self.inner_activation(x_z + K.dot(h_tm1, self.U_z)) <ide> r = self.inner_activation(x_r + K.dot(h_tm1, self.U_r)) <ide> <del> hh = self.inner_activation(x_h + K.dot(r * h_tm1, self.U_h)) <add> hh = self.activa...
1
Text
Text
add v3.18.0-beta.1 to changelog
0e47aa17097bc515f16e93157aff4e965d89d994
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.18.0-beta.1 (March 5, 2020) <add> <add>- [#18774](https://github.com/emberjs/ember.js/pull/18774) [BUGFIX] Suspend observer deactivation during property changes <add>- [#18785](https://github.com/emberjs/ember.js/pull/18785) Drop Node 8 support. <add> <...
1
Ruby
Ruby
remove ogx mime type from tests
e3d658e319bd0ab179fc0e12329ed4dc18bce584
<ide><path>actionpack/test/dispatch/mime_type_test.rb <ide> class MimeTypeTest < ActiveSupport::TestCase <ide> <ide> test "parse application with trailing star" do <ide> accept = "application/*" <del> expect = [Mime[:html], Mime[:js], Mime[:xml], Mime[:rss], Mime[:atom], Mime[:yaml], Mime[:url_encoded_form], ...
1
Javascript
Javascript
use safeset to filter known special protocols
0d2311820d50e29b83eb9f885d961f9b43dfd165
<ide><path>lib/url.js <ide> const { toASCII } = process.binding('config').hasIntl ? <ide> <ide> const { hexTable } = require('internal/querystring'); <ide> <add>const { SafeSet } = require('internal/safe_globals'); <add> <ide> const { <ide> ERR_INVALID_ARG_TYPE <ide> } = require('internal/errors').codes; <ide> cons...
1
Ruby
Ruby
separate the brew info for multiple formulae
4303817ec78bbd7a36b919062f6fada64a337028
<ide><path>Library/Homebrew/cmd/info.rb <ide> def print_info <ide> puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}" <ide> end <ide> else <del> ARGV.named.each do |f| <add> ARGV.named.each_with_index do |f,i| <add> puts unless i == 0 <ide> begin <ide> ...
1
PHP
PHP
fix cs error
61f77ff1c89d3fba1de8959c00844432903d9d3d
<ide><path>tests/TestCase/Cache/SimpleCacheEngineTest.php <ide> <ide> namespace Cake\Test\TestCase\Cache; <ide> <del>use Cake\Cache\CacheEngine; <ide> use Cake\Cache\Engine\FileEngine; <ide> use Cake\Cache\SimpleCacheEngine; <ide> use Cake\TestSuite\TestCase;
1
PHP
PHP
update component.php
dae4e17286aa9d482f548c2883caa01e9435dd75
<ide><path>src/Illuminate/View/Component.php <ide> abstract class Component <ide> /** <ide> * Get the view / view contents that represent the component. <ide> * <del> * @return \Illuminate\View\View|string <add> * @return \Illuminate\View\View|\Closure|string <ide> */ <ide> abstract publi...
1
Text
Text
add missing entries for v1.6.0-rc.0/v1.6.0
baa30695f3378554a23c6796ff6444d25d9bb0de
<ide><path>CHANGELOG.md <ide> consolidating all the changes shown in the previous 1.6.0 release candidates.** <ide> - **ngModelOptions:** allow options to be inherited from ancestor `ngModelOptions` <ide> ([296cfc](https://github.com/angular/angular.js/commit/296cfce40c25e9438bfa46a0eb27240707a10ffa), <ide> [#10922...
1
Javascript
Javascript
fix breaking of pickerandroid when child is null.
cd18527e7768b3f1a29442094f10c65f823c1bf1
<ide><path>Libraries/Components/Picker/PickerAndroid.android.js <ide> class PickerAndroid extends React.Component< <ide> ): PickerAndroidState { <ide> let selectedIndex = 0; <ide> const items = React.Children.map(props.children, (child, index) => { <add> if (child === null) { <add> return; <add> ...
1
Python
Python
fix typo in test_views.py
05586d66572a990a802c4186933bfe41624e4947
<ide><path>tests/www/test_views.py <ide> def test_dt_nr_dr_form_default_parameters(self): <ide> def test_dt_nr_dr_form_with_execution_date_parameter_only(self): <ide> self.tester.test_with_execution_date_parameter_only() <ide> <del> def test_dt_nr_dr_form_with_base_date_and_num_runs_parmeters_only(self)...
1
Javascript
Javascript
fix a typo
725028b07dbd60d0f40b94be3fe191d4e8c93cc9
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * $resource} service. <ide> * <ide> * The $http API is based on the {@link ng.$q deferred/promise APIs} exposed by <del> * the $q service. While for simple usage patters this doesn't matter much, for advanced usage, <add> * the $q s...
1
Go
Go
drop queries in root doamin when ndots is set
db9a7021ac961169a1890cc5c3f7487f97d47684
<ide><path>libnetwork/resolver.go <ide> func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) { <ide> return <ide> } <ide> <add> // If the user sets ndots > 0 explicitly and the query is <add> // in the root domain don't forward it out. We will return <add> // failure and let the client retry with the s...
3
Javascript
Javascript
check non-existent attribute as well to be sure
e93ca40aa7ec4337a57fcdbc699d900e01b4c67e
<ide><path>test/unit/traversing.js <ide> test("filter(jQuery)", function() { <ide> }) <ide> <ide> test("closest()", function() { <del> expect(12); <add> expect(13); <ide> same( jQuery("body").closest("body").get(), q("body"), "closest(body)" ); <ide> same( jQuery("body").closest("html").get(), q("html"), "closest(ht...
1
Python
Python
fix flaky templatized call
ca030b93bdd531cbf2ad57c5d082ddfd0b96c0db
<ide><path>tests/sensors/test_python.py <ide> def test_python_callable_arguments_are_templatized(self): <ide> task.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE) <ide> <ide> ds_templated = DEFAULT_DATE.date().isoformat() <del> # 2 calls: first: at start, second: before timeout <del> ...
1
Text
Text
fix typo in rails 4.2 release notes
1154879e2f88f2c1e1523f413161c9fd175ff398
<ide><path>guides/source/4_2_release_notes.md <ide> method that sends the email asynchronously via a job in a queue, so it doesn't <ide> block the controller or model. <ide> <ide> The new [Global ID](https://github.com/rails/globalid) library makes it easy <del>to pass Active Record objects to jobs. The library stores...
1
PHP
PHP
fix errors with recursion in debug()
dca050fbd6a14db29f9748cef7a9fcef185c5a51
<ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php <ide> public function testNoDbCredentials() { <ide> $this->assertEquals($expected, $output); <ide> } <ide> <add>/** <add> * Test that exportVar() doesn't loop through recursive structures. <add> * <add> * @return void <add> */ <add> public function testExportVa...
2
Javascript
Javascript
adjust virtical alignment of tooptip items
d81914ea29aa8fd26a6aef286b37922a267b2252
<ide><path>src/core/core.tooltip.js <ide> var exports = Element.extend({ <ide> <ide> drawTitle: function(pt, vm, ctx) { <ide> var title = vm.title; <add> var length = title.length; <add> var titleFontSize, titleSpacing, i; <ide> <del> if (title.length) { <add> if (length) { <ide> pt.x = getAlignedX(vm, vm._...
3
Java
Java
refine use of substring operations
ab859fcc963195d612c2341986f2e7cda7e1dc0c
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java <ide> private PointcutBody getPointcutBody(String[] tokens, int startIndex) { <ide> } <ide> <ide> if (tokens[currentIndex].endsWith(")")) { <del> sb.append(tokens[currentIndex].substring(0, tokens[...
14
Text
Text
add readme files in nlp/modeling folder
ab6d40ca85a9d98f25347d2c059de44497e853c8
<ide><path>official/nlp/README.md <del># TensorFlow Natural Language Processing Models <add># TensorFlow Natural Language Processing Modelling Toolkit <ide> <del>tensorflow/models/official/nlp is a library of state-of-the-art models for <del>Natural Language Processing (NLP). <add>tensorflow/models/official/nlp provid...
6
Mixed
Text
allow pre-parsed data (to scale id's)
53c6c618c6fc8b30efdb1e7e75a1c4673fe179d2
<ide><path>docs/SUMMARY.md <ide> * [Usage](getting-started/usage.md) <ide> * [Migration Guide](getting-started/v3-migration.md) <ide> * [General](general/README.md) <add> * [Data structures](general/data-structures.md) <ide> * [Accessibility](general/accessibility.md) <ide> * [Responsive](general/responsive.md...
14
PHP
PHP
fix blank line before return statement
4ae2eda53ab99339e14842dc8be5b64a9cffb1e8
<ide><path>src/Routing/Router.php <ide> public static function routeExists($url = null, $full = false) <ide> { <ide> try { <ide> $route = static::url($url, $full); <add> <ide> return true; <ide> } catch (MissingRouteException $e) { <add> <ide> return false; <ide> ...
1
Javascript
Javascript
implement ssr=false support
b5a03a38964fba0e5f203c33941424b377c6ccd3
<ide><path>examples/with-dynamic-import/components/hello3.js <add>export default () => ( <add> <p>Hello World 3 (imported dynamiclly) </p> <add>) <ide><path>examples/with-dynamic-import/pages/index.js <ide> const DynamicComponentWithCustomLoading = dynamic( <ide> loading: () => (<p>...</p>) <ide> } <ide> ) <add>...
3
Javascript
Javascript
add response interceptors
188bdf7768c9594a01a18abae3fa9a3114802508
<ide><path>src/service/http.js <ide> function $HttpProvider() { <ide> } <ide> }; <ide> <add> var responseInterceptors = this.responseInterceptors = []; <add> <ide> this.$get = ['$httpBackend', '$browser', '$exceptionHandler', '$cacheFactory', '$rootScope', '$q', <ide> function($httpBackend, $browser, $e...
2
Javascript
Javascript
streamify template bindings
f839dcd89ad5ecc50d5403a06f507449380557b0
<ide><path>packages/ember-handlebars/lib/controls.js <ide> import Ember from "ember-metal/core"; // Ember.assert <ide> // var emberAssert = Ember.assert; <ide> <ide> import EmberHandlebars from "ember-handlebars-compiler"; <del>import { handlebarsGet } from "ember-handlebars/ext"; <add> <ide> /** <ide> @module ember <...
44
Javascript
Javascript
remove unused argument
0f56cfdd13b86c1d98a08a90715850b34bb46fde
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> // strip json vulnerability protection prefix <ide> data = data.replace(PROTECTION_PREFIX, ''); <ide> if (JSON_START.test(data) && JSON_END.test(data)) <del> data = fromJson(data, true); <add> data = fromJson(data...
1
Text
Text
add missing grave accent
e243e33cb4a116a11ddf91916cf38c695da49763
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> it. <ide> Rails 5 adds the ability to run tasks and tests through `bin/rails` instead of rake. Generally <ide> these changes are in parallel with rake, but some were ported over altogether. As the `rails` <ide> command already looks for and runs `bin/rails`, we ...
1
Ruby
Ruby
increase fail log lines, allow config
9aecb1be2b89843c66852ad11ba6c22ef10d2e64
<ide><path>Library/Homebrew/formula.rb <ide> def system(cmd, *args) <ide> $stdout.flush <ide> <ide> unless $?.success? <add> log_lines = ENV["HOMEBREW_FAIL_LOG_LINES"] <add> log_lines ||= "15" <add> <ide> log.flush <del> Kernel.system "/usr/bin/tail", "-n", "5", logfn unless ve...
1
Python
Python
add cyme to intersphinx
650c3c419f432498d6e9f9b0681f29bec6d04848
<ide><path>docs/conf.py <ide> "http://docs.python.org/dev": None, <ide> "http://kombu.readthedocs.org/en/latest/": None, <ide> "http://django-celery.readthedocs.org/en/latest": None, <add> "http://cyme.readthedocs.org/en/latest": None, <ide> } <ide> <ide> # The name of the Pygments (synt...
1
Ruby
Ruby
add formula check for crufy sourceforge urls
3c47f7918b47377732a26445b27566a226e85831
<ide><path>Library/Homebrew/test/formula_test.rb <ide> def test_for_misquoted_prefix <ide> assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}") <ide> end <ide> end <add> <add> def test_for_crufy_sourceforge_url <add> # Don't specify mirror for SourceForge downloads <add> Formul...
1
Javascript
Javascript
change modulegraph storage to weakmap
224ed2ac0ce8f1a8dae571fd5efe63b5e3bdca3c
<ide><path>lib/ModuleGraph.js <ide> class ModuleGraphModule { <ide> <ide> class ModuleGraph { <ide> constructor() { <del> /** @type {Map<Dependency, ModuleGraphConnection>} */ <del> this._dependencyMap = new Map(); <add> /** @type {WeakMap<Dependency, ModuleGraphConnection>} */ <add> this._dependencyMap = new Wea...
1
Javascript
Javascript
add hascrypto check to common flags check
2a02b9df6ef35b34b7d93cf8408ce53fb2f66b53
<ide><path>test/common/index.js <ide> const { <ide> <ide> const noop = () => {}; <ide> <add>const hasCrypto = Boolean(process.versions.openssl); <add> <ide> const isMainThread = (() => { <ide> try { <ide> return require('worker_threads').isMainThread; <ide> if (process.argv.length === 2 && <ide> const args ...
1
Python
Python
add tests for oauth authentication
1062d71f8be929f1f7e6910a8d573ac643082bae
<ide><path>rest_framework/tests/authentication.py <ide> from django.contrib.auth.models import User <ide> from django.http import HttpResponse <ide> from django.test import Client, TestCase <del>from rest_framework import HTTP_HEADER_ENCODING <add>import time <add>from rest_framework import HTTP_HEADER_ENCODING, status...
1
Go
Go
fix bug in deleteneighbor
6afe20096d0dc75a6cfac91dd34dc055a95ddcd1
<ide><path>libnetwork/osl/neigh_linux.go <ide> func (n *networkNamespace) DeleteNeighbor(dstIP net.IP, dstMac net.HardwareAddr, <ide> for i, nh := range n.neighbors { <ide> if nh.dstIP.Equal(dstIP) && bytes.Equal(nh.dstMac, dstMac) { <ide> n.neighbors = append(n.neighbors[:i], n.neighbors[i+1:]...) <add> break ...
1
Python
Python
add missing right parenthesis
2c408050c127c8155b36ac61e0e3d0e095dd1f1e
<ide><path>weave/ext_tools.py <ide> def build_information(self): <ide> info.append(func.customize) <ide> #redundant, but easiest place to make sure compiler is set <ide> for i in info: <del> i.set_compiler(self.compiler <add> i.set_compiler(self.compiler) <ide> ...
1
Text
Text
fix bug in email with name example code
fd984e850050710bfcba45c641757bce24072e12
<ide><path>guides/source/action_mailer_basics.md <ide> email address in the format `"Full Name <email>"`. <ide> ```ruby <ide> def welcome_email(user) <ide> @user = user <del> email_with_name = "#{@user.name} <#{@user.email}>" <add> email_with_name = %("#{@user.name}" <#{@user.email}>) <ide> mail(to: email_with_na...
1
Python
Python
replace assertions with valueerror exceptions
3187228206cce052c5df0a8643fe85d2fd50e6a0
<ide><path>src/transformers/generation_utils.py <ide> def _expand_inputs_for_generation( <ide> model_kwargs["attention_mask"] = attention_mask.index_select(0, expanded_return_idx) <ide> <ide> if is_encoder_decoder: <del> assert encoder_outputs is not None <add> if encoder_outp...
1
Python
Python
use entry_points to install the f2py scripts
f22a33b71dc767d81ed60f40c3b84456d2a33f79
<ide><path>numpy/f2py/__main__.py <ide> # See http://cens.ioc.ee/projects/f2py2e/ <ide> from __future__ import division, print_function <ide> <del>import os <del>import sys <del>for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]: <del> try: <del> i = sys.argv.index("--" + mode) <del> de...
5
Javascript
Javascript
improve landing page
b5c1775beb489653d06845480fd1f24d744a1c78
<ide><path>website/src/react-native/_index.js <ide> module.exports = React.createClass({ <ide> });`} <ide> </Prism> <ide> <del> <h2>Asynchronous</h2> <add> <h2>Asynchronous Execution</h2> <ide> <p> <del> All operations between the JavaScript application code and the nat...
1
Python
Python
clarify dropout and seed in tok2vec
709fc5e4ade928a779df3db787056e8e80ed4a57
<ide><path>spacy/ml/models/tok2vec.py <ide> def build_Tok2Vec_model( <ide> cols = [ID, NORM, PREFIX, SUFFIX, SHAPE, ORTH] <ide> with Model.define_operators({">>": chain, "|": concatenate, "**": clone}): <ide> norm = HashEmbed( <del> nO=width, nV=embed_size, column=cols.index(NORM), dropout=dr...
1
Javascript
Javascript
add linkedin id field to user model
0ced58c9f557aeb64f8452f39a87b95353a66bdc
<ide><path>models/User.js <ide> var userSchema = new mongoose.Schema({ <ide> twitter: { type: String, unique: true, sparse: true }, <ide> google: { type: String, unique: true, sparse: true }, <ide> github: { type: String, unique: true, sparse: true }, <add> linkedin: { type: String, unique: true, sparse: true },...
1
PHP
PHP
add coverage for iteractive path setting
a829aed32d50926c16658f3ff6667eabf993d06a
<ide><path>tests/TestCase/Command/I18nExtractCommandTest.php <ide> public function testExecute() <ide> $this->assertRegExp($pattern, $result); <ide> } <ide> <add> /** <add> * testExecute with no paths <add> * <add> * @return void <add> */ <add> public function testExecuteNoPathOption(...
1
Javascript
Javascript
add null check to outputlength logic
92ca2c208bf8c1a8abb21df800619b2890f72461
<ide><path>lib/internal/crypto/hash.js <ide> function Hash(algorithm, options) { <ide> if (!(this instanceof Hash)) <ide> return new Hash(algorithm, options); <ide> validateString(algorithm, 'algorithm'); <del> const xofLen = typeof options === 'object' ? options.outputLength : undefined; <add> const xofLen =...
2
PHP
PHP
reset default debugger output format
124248a2f20644c11e589104e03d345753ca52a9
<ide><path>tests/TestCase/Error/DebuggerTest.php <ide> public function testAddFormatCallback() <ide> $result = ob_get_clean(); <ide> $this->assertStringContainsString('Notice: I eated an error', $result); <ide> $this->assertStringContainsString('DebuggerTest.php', $result); <add> <add> De...
1
PHP
PHP
use array values
351e3b7694a804e8d6a613288419ccabd22bc012
<ide><path>src/Illuminate/Queue/SerializesModels.php <ide> public function __sleep() <ide> )); <ide> } <ide> <del> return array_filter(array_map(function ($p) { <add> return array_values(array_filter(array_map(function ($p) { <ide> return $p->isStatic() ? null : $p->getNam...
1
Ruby
Ruby
accept both regexps and strings for localhost
68b4720fd18796f337000f37bf57af905b0370a7
<ide><path>actionpack/lib/action_dispatch/middleware/show_exceptions.rb <ide> module ActionDispatch <ide> # This middleware rescues any exception returned by the application and renders <ide> # nice exception pages if it's being rescued locally. <ide> class ShowExceptions <del> LOCALHOST = [/^127\.0\.0\.\d{1,3...
1
Ruby
Ruby
use homebrew curl based on root domain
2f0a53c0daf1ee1f3039ab32213916d22ff7e277
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> require "livecheck/livecheck_version" <ide> require "livecheck/skip_conditions" <ide> require "livecheck/strategy" <add>require "addressable" <ide> require "ruby-progressbar" <ide> require "uri" <ide> <ide> def preprocess_url(url) <ide> url <ide> end <...
2