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
PHP
PHP
update reverse route matching to default to get
1085ced35f37f8222d69ebbb5476a3def5a0f902
<ide><path>src/Routing/Route/Route.php <ide> protected function _matchMethod($url) <ide> $url['_method'] = $url['[method]']; <ide> } <ide> if (empty($url['_method'])) { <del> return false; <add> $url['_method'] = 'GET'; <ide> } <ide> $methods = array_map...
1
Text
Text
graduate whatwg url from experimental
10754b60d0ab6956825b172baa8885e9ee15e151
<ide><path>doc/api/url.md <ide> The formatting process operates as follows: <ide> added: v7.6.0 <ide> --> <ide> <del>> Stability: 1 - Experimental <del> <ide> * `URL` {URL} A [WHATWG URL][] object <ide> * `options` {Object} <ide> * `auth` {boolean} `true` if the serialized URL string should include the <ide> console...
1
Text
Text
provide hints+solution to svg/d3 challenge
65bccdb9bdbb1be88509f183f75fe29d22769354
<ide><path>guide/english/certifications/data-visualization/data-visualization-with-d3/learn-about-svg-in-d3/index.md <ide> title: Learn About SVG in D3 <ide> --- <ide> ## Learn About SVG in D3 <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/data-visualiza...
1
Ruby
Ruby
fix typo in action_controller responder.rb
25a5c5f23654e863e0df6109ba1a4180a90b5c26
<ide><path>actionpack/lib/action_controller/metal/responder.rb <ide> def has_errors? <ide> resource.respond_to?(:errors) && !resource.errors.empty? <ide> end <ide> <del> # Check whether the neceessary Renderer is available <add> # Check whether the necessary Renderer is available <ide> def has_rend...
1
Text
Text
fix curly quotes
0544554b00fecfa0cf7f8a5c045551bf3017743c
<ide><path>curriculum/challenges/english/08-coding-interview-prep/rosetta-code/9-billion-names-of-god-the-integer.english.md <ide> challengeType: 5 <ide> <section id='description'> <ide> This task is a variation of the <a href='https://en.wikipedia.org/wiki/The Nine Billion Names of God#Plot_summary' title='wp: The Nin...
5
PHP
PHP
skip wincache tests if wincache.enablecli is off
02cb70eabd62cfb99edea5539586aea52ac7ed7c
<ide><path>src/Cache/Engine/WincacheEngine.php <ide> <?php <ide> /** <del> * Wincache storage engine for cache. <del> * <del> * Supports wincache 1.1.0 and higher. <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation...
2
Go
Go
use archive.copywithtar in vfs.create
3ab5251f5620e7b8b052ee331f9ac1fbdbb725b1
<ide><path>daemon/graphdriver/vfs/driver.go <ide> import ( <ide> "path" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <add> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/libcontainer/label" <ide> ) <ide> <ide> func isGNUcoreutils() bool { <ide> return false <ide> } <ide> <del>func c...
1
PHP
PHP
add _middleware to parse results
48b882aaf03d10ab143d5f737d656687003a9d46
<ide><path>src/Routing/Route/Route.php <ide> public function parse($url, $method = '') <ide> } <ide> } <ide> $route['_matchedRoute'] = $this->template; <add> if (count($this->middleware) > 0) { <add> $route['_middleware'] = $this->middleware; <add> } <ide> <ide> ...
2
Text
Text
remove two ideas from why react to add clarity
38818189a518fe307681915995177f748e2115ba
<ide><path>docs/docs/01-why-react.md <ide> next: displaying-data.html <ide> --- <ide> React is a JavaScript library for creating user interfaces by Facebook and Instagram. Many people choose to think of React as the **V** in **[MVC](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)**. <ide> <del>We ...
1
PHP
PHP
add tests to ensure is fixed
56085cd3384c80885d3cee3028007663816ff3b0
<ide><path>tests/TestCase/Utility/InflectorTest.php <ide> public function testInflectingSingulars() <ide> $this->assertEquals('files_metadata', Inflector::singularize('files_metadata')); <ide> $this->assertEquals('address', Inflector::singularize('addresses')); <ide> $this->assertEquals('sieve',...
1
Javascript
Javascript
remove obsolete line, and link to guide
496e08a60538bfc17e1e0eb096d62da6287b1e6f
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider() { <ide> * A root scope can be retrieved using the {@link ng.$rootScope $rootScope} key from the <ide> * {@link auto.$injector $injector}. Child scopes are created using the <ide> * {@link ng.$rootScope.Scope#$new $new()} method. (Most sco...
1
Ruby
Ruby
fix typo in activejob #retry_job doc
6e27481dc73e7db6a5c6cb24e91946353b0aed1c
<ide><path>activejob/lib/active_job/enqueuing.rb <ide> def job_or_instantiate(*args) <ide> # <ide> # ==== Examples <ide> # <del> # class SiteScrapperJob < ActiveJob::Base <add> # class SiteScraperJob < ActiveJob::Base <ide> # rescue_from(ErrorLoadingSite) do <ide> # retry_job queue: ...
1
Javascript
Javascript
fix posix path.resolve() perf regression
e38d62a8c9e3494a464c0de6218178329f245440
<ide><path>lib/path.js <ide> <ide> const { <ide> FunctionPrototypeBind, <del> RegExp, <ide> StringPrototypeCharCodeAt, <ide> StringPrototypeIndexOf, <ide> StringPrototypeLastIndexOf, <ide> const { <ide> validateString, <ide> } = require('internal/validators'); <ide> <add>const platformIsWin32 = (process.pl...
1
Python
Python
add missing emoticons
ba8721953c1b9ef166656723ea7e21778b52f770
<ide><path>spacy/language_data/emoticons.py <ide> 0_o <ide> o_0 <ide> 0_0 <add>o.O <add>O.o <add>O.O <add>o.o <add>0.0 <add>o.0 <add>0.o <ide> <ide> <3 <ide> <33
1
Text
Text
update writable.write return value
7f20c8a3d4eacfe5a5661628b2ab08ce631fdaf0
<ide><path>doc/api/stream.md <ide> occurs, the `callback` *may or may not* be called with the error as its <ide> first argument. To reliably detect write errors, add a listener for the <ide> `'error'` event. <ide> <del>The return value is `true` if the internal buffer does not exceed <add>The return value is `true` if...
1
Javascript
Javascript
fix null check in style transition
f5c60ecfded3080cc56c13b9ea164aac3858ac30
<ide><path>d3.js <ide> d3_transitionPrototype.styleTween = function(name, tween, priority) { <ide> return this.tween("style." + name, function(d, i) { <ide> var f = tween.call(this, d, i, window.getComputedStyle(this, null).getPropertyValue(name)); <ide> return f && function(t) { <del> if ((t = f(t))) { ...
3
Ruby
Ruby
accept head urls
75c196c1fc7347661bc888ae1ead8be49e5494eb
<ide><path>Library/Homebrew/cmd/create.rb <ide> def url=(url) <ide> @url = url <ide> path = Pathname.new(url) <ide> if @name.nil? <del> %r{github.com/\S+/(\S+)/archive/}.match url <del> @name ||= $1 <del> /(.*?)[-_.]?#{path.version}/.match path.basename <del> @name ||= $1 <add> case...
1
Python
Python
improve synchronized shuffle in datasets
ee4b0bcc2cbac3c79c9b0b2c30036d189654bed4
<ide><path>keras/datasets/boston_housing.py <ide> def load_data(path='boston_housing.npz', test_split=0.2, seed=113): <ide> f.close() <ide> <ide> np.random.seed(seed) <del> np.random.shuffle(x) <del> np.random.seed(seed) <del> np.random.shuffle(y) <add> indices = np.arange(len(x)) <add> np.rando...
3
Text
Text
remove random single quote
b3f1c85d54b5384328e5db806ec98d1753a3924e
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/longest-string-challenge.md <ide> assert(typeof longestString == 'function'); <ide> assert(Array.isArray(longestString(['a', 'bb', 'ccc', 'ee', 'f', 'ggg']))); <ide> ``` <ide> <del>`longestString(["a", "bb", "ccc", "ee", "f", "ggg"])` shoul...
1
Python
Python
fix url tests
3ba7c167a8c1f51eab20b055540bcffd4c097ae9
<ide><path>spacy/tests/tokenizer/test_urls.py <ide> <ide> # Punctuation we want to check is split away before the URL <ide> PREFIXES = [ <del> "(", '"', "...", ":", "<", ">", ")" <add> "(", '"', "...", ">" <ide> ] <ide> <ide> # Punctuation we want to check is split away after the URL <ide> SUFFIXES = [ <del> ...
1
Text
Text
add blueapron and gh handles to user list
7b73f0ebb69b0fa54b7c02774a39cf24bca93f32
<ide><path>README.md <ide> # Airflow <ide> <del>Airflow is a platform to programmatically author, schedule and monitor <add>Airflow is a platform to programmatically author, schedule and monitor <ide> workflows. <ide> <del>When workflows are defined as code, they become more maintainable, <add>When workflows are de...
1
PHP
PHP
allow multiple folders for migrations
cc6666e6e448906c17fc129130aedb6474172a48
<ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php <ide> public function fire() <ide> // we will use the path relative to the root of this installation folder <ide> // so that migrations may be run for any path within the applications. <ide> if (! is_null($path = $this->inp...
8
PHP
PHP
improve error message
a1d3b76ba3411cb8aba3a281a5260bce57e90977
<ide><path>src/Controller/ControllerFactory.php <ide> protected function getActionArgs(Closure $action, array $passedParams): array <ide> throw new InvalidParameterException([ <ide> 'template' => 'missing_dependency', <ide> 'parameter' => $parameter->getName(), <a...
3
Go
Go
fix empty-lines (revive)
e9f1b83a4a47a2d9ecf0d4e0c04ebb10c19ae86b
<ide><path>testutil/daemon/plugin.go <ide> func withPluginInspect(name string, f func(*types.Plugin, poll.LogT) poll.Result <ide> } <ide> return f(plugin, t) <ide> } <del> <ide> } <ide> <ide> func withClient(t testing.TB, d *Daemon, f func(client.APIClient, poll.LogT) poll.Result) func(poll.LogT) poll.Result { <i...
3
Python
Python
convert ibm driver to ex_ prefix
52750e0cd8d674a6a78e7eb8fea02fd0409b0205
<ide><path>libcloud/drivers/ibm.py <ide> def create_node(self, **kwargs): <ide> <ide> See L{NodeDriver.create_node} for more keyword args. <ide> <del> @keyword configurationData: Image-specific configuration parameters. <add> @keyword ex_configurationData: Image-specific configurat...
1
Javascript
Javascript
allow pattern in linting
c13cefe8e80c5f14efee7e6910e096e4a0ee9265
<ide><path>test/Schemas.lint.js <ide> describe("Schemas", () => { <ide> "description", <ide> "enum", <ide> "minLength", <add> "pattern", <ide> "minimum", <ide> "maximum", <ide> "required",
1
Javascript
Javascript
improve runtime code
6fbcd415d45933010249d31e28d657cce028e5a5
<ide><path>lib/sharing/ConsumeSharedRuntimeModule.js <ide> class ConsumeSharedRuntimeModule extends RuntimeModule { <ide> ] <ide> )};`, <ide> `var getInvalidSingletonVersionMessage = ${runtimeTemplate.basicFunction( <del> "key, version, requiredVersion, from", <add> "scope, key, version, requiredVersion...
1
Javascript
Javascript
remove unused variables
01ef12884b92dc481776e27f8da972c3bf62eeee
<ide><path>test/ngAnimate/animateSpec.js <ide> describe("ngAnimate", function() { <ide> }; <ide> }); <ide> }); <del> inject(function($compile, $rootScope, $animate, $sniffer, $rootElement, $timeout) { <add> inject(function($compile, $rootScope, $animate, $sniffer, $...
1
Javascript
Javascript
load random commit if none specified
6e7cadb2e7982a6ea1f5c34724001b53c58e64ff
<ide><path>server/boot/commit.js <ide> function findNonprofit(name) { <ide> }); <ide> } <ide> <del> nonprofit = nonprofit || nonprofits[0]; <add> nonprofit = nonprofit || nonprofits[ _.random(0, nonprofits.length - 1) ]; <ide> return nonprofit; <ide> } <ide>
1
Ruby
Ruby
change local variable
4bbcab235b69e44affc31a47179a80a818b50c3e
<ide><path>Library/Homebrew/install.rb <ide> def install_formulae( <ide> if dry_run <ide> formulae_name_to_install = formulae_to_install.map(&:name) <ide> if formulae_name_to_install.present? <del> plural = "package".pluralize(casks_to_install.count) <add> plural = "package".plur...
1
Javascript
Javascript
fix incorrect iteration
1b07821739f1c2dd57e0be20f3ac7999a72280bd
<ide><path>lib/FileSystemInfo.js <ide> class Snapshot { <ide> const result = it.next(); <ide> if (!result.done) return result; <ide> state = 0; <add> break; <ide> } <del> /* falls through */ <ide> case 2: { <ide> const children = snapshot.children; <ide...
1
Python
Python
remove test for removed deprecation warning
793890cb4d5f400d950edaff49c833a8cf8069d3
<ide><path>spacy/tests/doc/test_token_api.py <ide> def test_is_sent_start(en_tokenizer): <ide> assert doc[5].is_sent_start is None <ide> doc[5].is_sent_start = True <ide> assert doc[5].is_sent_start is True <del> # Backwards compatibility <del> with pytest.warns(DeprecationWarning): <del> asser...
1
Ruby
Ruby
add api to pg for enabling / disabling hstore
439ac72013fc1b819e711d66642b0b5b563fd72e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def supports_transaction_isolation? <ide> false <ide> end <ide> <add> # Does this adapter support database extensions? As of this writing <add> # only postgresql does. <add> def supports_extensions? <a...
3
PHP
PHP
fix method order
18eb5caa48888e3e21228a652c97490ecfea01cd
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function monthly() <ide> } <ide> <ide> /** <del> * Schedule the event to run yearly. <add> * Schedule the event to run quarterly. <ide> * <ide> * @return $this <ide> */ <del> public function yearly() <add> public f...
1
Ruby
Ruby
drop string allocations in the log subscriber
68b7e381f1c9a0ee9689ea56f14ae2a3ac8fd182
<ide><path>actionview/lib/action_view/log_subscriber.rb <ide> module ActionView <ide> # <ide> # Provides functionality so that Rails can output logs from Action View. <ide> class LogSubscriber < ActiveSupport::LogSubscriber <del> VIEWS_PATTERN = /^app\/views\//.freeze <add> VIEWS_PATTERN = /^app\/views\// <...
1
PHP
PHP
add an instance config trait
474fdb320008434a0b39ec1be4ba3d640fe5bdb5
<ide><path>src/Core/InstanceConfigTrait.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, pleas...
2
Ruby
Ruby
bring body(hash) behavior back
a0374582ff6d403a48b018df666b064f4c261f20
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer #:nodoc: <ide> # bcc ["bcc@example.com", "Order Watcher <watcher@example.com>"] <ide> # from "system@example.com" <ide> # subject "New account information" <del> # <del> # @account = recipient <add> ...
3
PHP
PHP
add update + join support
fe2ba01e2f77ad0ff0f104170cb669f7e4dcf449
<ide><path>lib/Cake/Database/Query.php <ide> protected function _traverseDelete(callable $visitor) { <ide> * @return void <ide> */ <ide> protected function _traverseUpdate(callable $visitor) { <del> $parts = ['update', 'set', 'where']; <add> $parts = ['update', 'join', 'set', 'where']; <ide> foreach ($parts as $...
2
Javascript
Javascript
add coverage for escape key switch case
b88195716f409bbd5830d99d23d4b6de05018207
<ide><path>test/parallel/test-readline-keys.js <ide> addTest('\b\x7f\x1b\b\x1b\x7f \x1b ', [ <ide> { name: 'space', sequence: '\x1b ', meta: true }, <ide> ]); <ide> <add>// escape key <add>addTest('\x1b\x1b\x1b', [ <add> { name: 'escape', sequence: '\x1b\x1b\x1b', meta: true }, <add>]); <add> <ide> // control keys ...
1
PHP
PHP
fix array type
22647cb376c084d298fbb96ae1dc83de72cbdb91
<ide><path>src/Utility/Text.php <ide> public static function isMultibyte(string $string): bool <ide> * to the decimal value of the character <ide> * <ide> * @param string $string String to convert. <del> * @return array<int|float> <add> * @return array<int> <ide> */ <ide> public static f...
1
PHP
PHP
make minutes/hours wrap around correctly
80c355baa5c0ceb93bbd879b345ad49c3bca8ab6
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testInputTime() { <ide> $this->assertRegExp('#<option value="pm"[^>]*>pm</option>#', $result); <ide> } <ide> <add>/** <add> * Test interval + selected near the hour roll over. <add> * <add> * @return void <add> */ <add> public functi...
2
Javascript
Javascript
fix interleavedbufferattribute acessor assignement
9d3f35969330cb23b96220c1f9f2267a2b798141
<ide><path>src/core/InterleavedBufferAttribute.js <ide> function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normal <ide> <ide> } <ide> <del>Object.assign( InterleavedBufferAttribute.prototype, { <del> <del> constructor: InterleavedBufferAttribute, <add>Object.defineProperties( InterleavedBufferA...
1
Python
Python
add session_parameters option to snowflake_hook
9276607b58bedfb2128c63fabec85d77e7dba07f
<ide><path>airflow/providers/snowflake/hooks/snowflake.py <ide> def __init__(self, *args, **kwargs) -> None: <ide> self.role = kwargs.pop("role", None) <ide> self.schema = kwargs.pop("schema", None) <ide> self.authenticator = kwargs.pop("authenticator", None) <add> self.session_parameters...
3
Python
Python
fix some spacing
96e2c0eee5f44a3cc820f6dacd2c229e410ec2dc
<ide><path>official/mnist/dataset.py <ide> def read32(bytestream): <ide> <ide> def check_image_file_header(filename): <ide> """Validate that filename corresponds to images for the MNIST dataset.""" <del> with tf.gfile.Open(filename,'rb') as f: <add> with tf.gfile.Open(filename, 'rb') as f: <ide> magic = read32...
1
Javascript
Javascript
remove remaining references to effect list
d2e914ab4eb265bec82c01a083f608208f50d833
<ide><path>packages/react-reconciler/src/ReactChildFiber.new.js <ide> function ChildReconciler(shouldTrackSideEffects) { <ide> // Noop. <ide> return; <ide> } <del> // Deletions are added in reversed order so we add it to the front. <del> // At this point, the return fiber's effect list is empty ex...
9
Python
Python
remove unused method
3cb27f233c6495be92cbd7be8064d6dedf20c418
<ide><path>glances/outputs/glances_bottle.py <ide> def _favicon(self): <ide> # Return the static file <ide> return static_file('favicon.ico', root=self.STATIC_PATH) <ide> <del> def enable_cors(self): <del> """Enable CORS""" <del> response.headers['Access-Control-Allow-Origin'] = '*' <d...
1
Python
Python
add tag_map argument to cli debug-data and train
ff184b7a9c64d954a7c7445e00c7505ed1d930f0
<ide><path>spacy/cli/debug_data.py <ide> lang=("model language", "positional", None, str), <ide> train_path=("location of JSON-formatted training data", "positional", None, Path), <ide> dev_path=("location of JSON-formatted development data", "positional", None, Path), <add> tag_map_path=("Location of JS...
2
Text
Text
add info how to run single tests to building.md
5a30621d1620b2ef06e3c611b69ce6ad1fa58269
<ide><path>BUILDING.md <ide> file a new issue. <ide> <ide> ## Table of Contents <ide> <del>* [Supported platforms](#supported-platforms) <del> * [Input](#input) <del> * [Strategy](#strategy) <del> * [Supported platforms](#supported-platforms-1) <del> * [Supported toolchains](#supported-toolchains) <del> * [Uni...
1
Text
Text
update korean translation to 84af306
1c14477a476d6def93427b9def0a313e6319e00b
<ide><path>docs/docs/02-displaying-data.ko-KR.md <ide> UI를 가지고 할 수 있는 가장 기초적인 것은 데이터를 표시하 <ide> <meta charset="UTF-8" /> <ide> <title>Hello React</title> <ide> <script src="https://fb.me/react-{{site.react_version}}.js"></script> <add> <script src="https://fb.me/react-dom-{{site.react_version}}.js"></scr...
37
Javascript
Javascript
remove unused elementtransclusion argument
5d68c763e241e6e5caae07f9bc9d06cab325c08c
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> <ide> if (nodeLinkFn.transcludeOnThisElement) { <ide> childBoundTranscludeFn = createBoundTranscludeFn( <del> scope, nodeLinkFn.transclude, parentBoundTranscludeFn, <del> ...
1
Python
Python
copy info function from numarray
4974823c8379443620f1372f4f0683931c189301
<ide><path>numpy/lib/utils.py <ide> from numpy.core.numerictypes import issubclass_, issubsctype, issubdtype <ide> from numpy.core import product, ndarray, ufunc <ide> <del>__all__ = ['issubclass_', 'issubsctype', 'issubdtype', <del> 'deprecate', 'deprecate_with_doc', 'get_numarray_include', <del> 'get_i...
1
Python
Python
fix typo in app.py
7481844c98e4536ae01764aa08eec681c493ef2e
<ide><path>flask/app.py <ide> def __init__(self, import_name, static_path=None, static_url_path=None, <ide> self._before_request_lock = Lock() <ide> <ide> # Add a static route using the provided static_url_path, static_host, <del> # and static_folder iff there is a configured static_folder. <add...
1
PHP
PHP
add missing return type
9ee5efaa2d750a40a85fbf94219b65617f47b865
<ide><path>lib/Cake/Network/CakeRequest.php <ide> public function parseAccept() { <ide> * {{{ CakeRequest::acceptLanguage('es-es'); }}} <ide> * <ide> * @param string $language The language to test. <del> * @return If a $language is provided, a boolean. Otherwise the array of accepted languages. <add> * @return mixed...
1
Ruby
Ruby
fix tests for validation of default_timezone
eee0c03c98b5e68712f124fb97fe1bebf935e3f1
<ide><path>activerecord/lib/active_record.rb <ide> module Tasks <ide> singleton_class.attr_accessor :legacy_connection_handling <ide> self.legacy_connection_handling = true <ide> <add> singleton_class.attr_reader :default_timezone <add> <ide> # Determines whether to use Time.utc (using :utc) or Time.local (usin...
3
Go
Go
update resolve.conf in containers on file creation
11c7c9710a670ad1f49de8f2814caa51d2f7adb6
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) setupResolvconfWatcher() error { <ide> for { <ide> select { <ide> case event := <-watcher.Events: <del> if event.Op&fsnotify.Write == fsnotify.Write { <add> if event.Name == "/etc/resolv.conf" && <add> (event.Op&fsnotify.Write == fsnotify.Write |...
2
Javascript
Javascript
add better multi-slot transclusion information
f5ebcbacf8d5683dba014dc8a3f8075b2701dfe1
<ide><path>src/ng/compile.js <ide> * * `$element` - Current element <ide> * * `$attrs` - Current attributes object for the element <ide> * * `$transclude` - A transclude linking function pre-bound to the correct transclusion scope: <del> * `function([scope], cloneLinkingFn, futureParentElement)`. <del> * * `sco...
1
PHP
PHP
fix little typo in test function name
94f0c26186b3df2f34ac71767a75a0cb100bc823
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testPluckReturnsTheDateAttributesOfAModel() <ide> $this->assertEquals(['date_2010-01-01 00:00:00', 'date_2011-01-01 00:00:00'], $builder->pluck('created_at')->all()); <ide> } <ide> <del> public function testPluckWithoutModel...
1
Javascript
Javascript
test more http response splitting scenarios
a9ad31fb3dab270e47fa243612502c781d1ef636
<ide><path>test/parallel/test-http-header-response-splitting.js <ide> var common = require('../common'), <ide> assert = require('assert'), <ide> http = require('http'); <ide> <del>var testIndex = 0, <del> responses = 0; <add>var testIndex = 0; <add>const testCount = 4 * 6; <add>const responseBody = 'Hi mars...
1
Javascript
Javascript
use single quotes in getcomponentname return
a774502e0ff2a82e3c0a3102534dbc3f1406e5ea
<ide><path>packages/shared/getComponentName.js <ide> function getComponentName(type: mixed): string | null { <ide> case REACT_PORTAL_TYPE: <ide> return 'Portal'; <ide> case REACT_PROFILER_TYPE: <del> return `Profiler`; <add> return 'Profiler'; <ide> case REACT_STRICT_MODE_TYPE: <ide> r...
1
Go
Go
use /proc/mounts instead of mount(8)
c6119da33925fccf6af3f232f7aa7c75de41493b
<ide><path>utils.go <ide> import ( <ide> "os" <ide> "os/exec" <ide> "path/filepath" <del> "regexp" <ide> "runtime" <ide> "strings" <ide> "sync" <ide> func CompareKernelVersion(a, b *KernelVersionInfo) int { <ide> } <ide> <ide> func FindCgroupMountpoint(cgroupType string) (string, error) { <del> output, err := ex...
1
Ruby
Ruby
fix more book references
432bc68a2ca2a37e07c572b49fd48ed2b3061287
<ide><path>activerecord/test/cases/encryption/uniqueness_validations_test.rb <ide> require "models/author_encrypted" <ide> <ide> class ActiveRecord::Encryption::UniquenessValidationsTest < ActiveRecord::EncryptionTestCase <del> fixtures :books <del> <ide> test "uniqueness validations work" do <ide> EncryptedBoo...
1
Javascript
Javascript
avoid nan in progress reporting
bbb9842dd5783832a09c2b4d6bf0d469e4bc279f
<ide><path>lib/ProgressPlugin.js <ide> class ProgressPlugin { <ide> const items = []; <ide> const percentByModules = <ide> doneModules / <del> Math.max(lastModulesCount || this.modulesCount, modulesCount); <add> Math.max(lastModulesCount || this.modulesCount || 1, modulesCount); <ide> const percentBy...
1
Ruby
Ruby
check partial request support with accept-ranges
df0915e33f554cf0139e83359cae867393d31b6f
<ide><path>Library/Homebrew/utils/curl.rb <ide> def curl_download(*args, to: nil, try_partial: true, **options) <ide> destination.dirname.mkpath <ide> <ide> if try_partial <del> range_stdout = curl_output("--location", "--range", "0-1", <del> "--dump-header", "-", <...
1
Java
Java
use linkedhashmap to preserve insert order
3be35c053d14d4700f17b3ac4b27e06aa7c6d12e
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java <ide> <ide> package org.springframework.web.servlet.handler; <ide> <del>import java.util.HashMap; <add>import java.util.LinkedHashMap; <ide> import java.util.Map; <ide> import java.util.Properties; <ide> <ide>...
3
Ruby
Ruby
translate built_on to platform os
495450592052a7e42377e1f78bca5ef92d20fa68
<ide><path>Library/Homebrew/github_packages.rb <ide> class GitHubPackages <ide> DOCKER_PREFIX = "docker://#{URL_DOMAIN}/" <ide> URL_REGEX = %r{(?:#{Regexp.escape(URL_PREFIX)}|#{Regexp.escape(DOCKER_PREFIX)})([\w-]+)/([\w-]+)}.freeze <ide> <add> # Translate Homebrew built_on.os to OCI platform.os <add> BUILT_ON_O...
1
Python
Python
add a benchmark for indices
0808bca3158c2e3b8828277551082eba144c434a
<ide><path>benchmarks/benchmarks/bench_core.py <ide> def time_unpackbits_axis0(self): <ide> <ide> def time_unpackbits_axis1(self): <ide> np.unpackbits(self.d2, axis=1) <add> <add> <add>class Indices(Benchmark): <add> def time_indices(self): <add> np.indices((1000, 500))
1
Javascript
Javascript
remove writing to benchmark directory
c2cf47a23953f4fed7275bf37371d258113035c2
<ide><path>benchmark/module/module-loader.js <ide> const fs = require('fs'); <ide> const path = require('path'); <ide> const common = require('../common.js'); <ide> <del>const tmpDirectory = path.join(__dirname, '..', 'tmp'); <del>const benchmarkDirectory = path.join(tmpDirectory, 'nodejs-benchmark-module'); <add>cons...
1
Go
Go
use specific apis for shared mount-point behaviour
1571e9331b4c56cc350bdf339b9aacd72eb3bbbd
<ide><path>integration/container/mounts_linux_test.go <ide> func TestContainerVolumesMountedAsShared(t *testing.T) { <ide> <ide> // Convert this directory into a shared mount point so that we do <ide> // not rely on propagation properties of parent mount. <del> if err := mount.Mount(tmpDir1.Path(), tmpDir1.Path(), "...
1
Javascript
Javascript
fix script paths in plnkr for examples with deps
6d997f56a31cc85d6abb4c72adeecec42015fcaa
<ide><path>docs/config/services/deployments/production.js <ide> var angularCodeUrl = '//code.angularjs.org/'; <ide> <ide> var cdnUrl = googleCdnUrl + versionInfo.cdnVersion; <ide> <del>// The "examplesCdnUrl" here applies to the examples when they are opened in plnkr.co. <add>// The "examplesDependencyPath" here appl...
1
Ruby
Ruby
allow any allowed host with port
c681aaba811f968e48fb8f81a807d0259dbf8c76
<ide><path>actionpack/lib/action_dispatch/middleware/host_authorization.rb <ide> module ActionDispatch <ide> # responds with <tt>403 Forbidden</tt>. The body of the response contains debug info <ide> # if +config.consider_all_requests_local+ is set to true, otherwise the body is empty. <ide> class HostAuthorizati...
3
Mixed
Text
replace links to basics/advanced pages
7842337e114ca39f5f482ac7f522cd99544e6050
<ide><path>docs/faq/Actions.md <ide> hide_title: true <ide> <ide> ## Table of Contents <ide> <del>- [Why should type be a string, or at least serializable? Why should my action types be constants?](#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants) <del>- [Is there always a...
19
Javascript
Javascript
improve bookmarklets to include author name
dad6e290f8d102ed24ea563c2cfafbb126dab041
<ide><path>bots/pr-inactivity-bookmarklet.js <add>javascript:(function(){$('#new_comment_field')[0].value='Hey @' + $(".timeline-comment-header-text").first().find(".author").text() + '! Thanks for making the pull request, but we are closing it due to inactivity (' + Math.round(Math.abs((Date.now() - new Date($(".timel...
2
PHP
PHP
remove unnecessary closure nesting
a1fb266f8485a8ebbdb67cf5868dbcf5f1116dfc
<ide><path>src/I18n/TranslatorRegistry.php <ide> */ <ide> namespace Cake\I18n; <ide> <del>use Closure; <del> <ide> /** <ide> * Constructs and stores instances of translators that can be <ide> * retrieved by name and locale. <ide> */ <ide> class TranslatorRegistry <ide> { <add> /** <add> * Fallback loader na...
2
Javascript
Javascript
reduce brittleness of tab complete test
0eb3ed50baf680577f30097bccf3cf00854f5ff1
<ide><path>test/parallel/test-repl-tab-complete.js <ide> putIn.run([ <ide> 'var proxy = new Proxy({}, {ownKeys: () => { throw new Error(); }});' <ide> ]); <ide> <del>const proxyElements = [ [ <del> 'proxy.__defineGetter__', <del> 'proxy.__defineSetter__', <del> 'proxy.__lookupGetter__', <del> 'proxy.__lookupSett...
1
Javascript
Javascript
revert behavioral changes
df8960d95c6ecdacf8ebcc9fd6cd2dd0d6ef404c
<ide><path>lib/overrides.js <ide> function* walkAddonTree(project, pathToAddon = []) { <ide> } <ide> } <ide> <del>const requirementFor = (pkg, deps = {}) => deps[pkg]; <add>function requirementFor(pkg, deps = {}) { <add> return deps[pkg]; <add>} <ide> <ide> const KNOWN_DORMANT_ADDONS = Object.freeze([ <ide> 'emb...
1
PHP
PHP
add test for option parser generation
3a606ce21da81d41c7d3e9b8705d85489b222f7c
<ide><path>tests/TestCase/Console/Command/BakeShellTest.php <ide> public function testMain() { <ide> $this->Shell->main(); <ide> } <ide> <add>/** <add> * Test that the generated option parser reflects all tasks. <add> * <add> * @return void <add> */ <add> public function testGetOptionParser() { <add> $this->Shell-...
1
Text
Text
add link to safe integer definition
cc60347f02514d69b9d52886f6fcaa3c9820c7b4
<ide><path>doc/api/crypto.md <ide> Return a random integer `n` such that `min <= n < max`. This <ide> implementation avoids [modulo bias][]. <ide> <ide> The range (`max - min`) must be less than 2<sup>48</sup>. `min` and `max` must <del>be safe integers. <add>be [safe integers][]. <ide> <ide> If the `callback` funct...
1
PHP
PHP
apply fixes from styleci
9e4dfccb19d4a181dfbc3d838c2ea52851124cb5
<ide><path>src/Illuminate/Routing/Router.php <ide> public function auth(array $options = []) <ide> } <ide> <ide> // Password Confirmation Routes... <del> if ($options['confirm'] ?? <add> if ($options['confirm'] ?? <ide> class_exists($this->prependGroupNamespace('Auth\ConfirmP...
1
Python
Python
fix auto models
28a30af6d184c84b5d844add96c15bf023a53f7f
<ide><path>pytorch_transformers/modeling_tf_auto.py <ide> from .modeling_tf_openai import TFOpenAIGPTModel, TFOpenAIGPTLMHeadModel <ide> from .modeling_tf_gpt2 import TFGPT2Model, TFGPT2LMHeadModel <ide> from .modeling_tf_transfo_xl import TFTransfoXLModel, TFTransfoXLLMHeadModel <del>from .modeling_tf_xlnet import TFX...
1
Ruby
Ruby
fix small typo in routing test
20dcc0ab0acd67f3146cea35bed8127f7628943a
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def app; APP end <ide> <ide> include Routes.url_helpers <ide> <del> test "url helpers raise a helpful error message whem generation fails" do <add> test "url helpers raise a helpful error message when generation fails" do <ide> url, missing = { action:...
1
Javascript
Javascript
prevent electron crash
7385de9fc233cc78572951bb26055e996823bc44
<ide><path>packages/react-devtools-core/webpack.standalone.js <ide> module.exports = { <ide> { <ide> loader: 'css-loader', <ide> options: { <del> sourceMap: true, <add> // WARNING It's important that we disable CSS source maps for production builds. <add> ...
3
PHP
PHP
add controller inspector
f622f516740371b6217d36448f04d407a7594c3f
<ide><path>src/Illuminate/Routing/ControllerInspector.php <add><?php namespace Illuminate\Routing; <add> <add>use ReflectionClass, ReflectionMethod; <add> <add>class ControllerInspector { <add> <add> /** <add> * An array of HTTP verbs. <add> * <add> * @var array <add> */ <add> protected $verbs = array( <add> 'any'...
3
Python
Python
return extra_specs in openstacknodesize
271813f59cd9f0b5b67f829b4d5427fe62a352b7
<ide><path>libcloud/compute/drivers/openstack.py <ide> def _to_size(self, el): <ide> # XXX: needs hardcode <ide> vcpus=vcpus, <ide> bandwidth=None, <del> extra=el.get('extra_specs') <add> ...
1
Javascript
Javascript
make work wrapinner(fn) work consistently. fixes
9f17e70ae95cc2d4b945bc94283b87cc5b8b23db
<ide><path>src/manipulation.js <ide> jQuery.fn.extend({ <ide> }, <ide> <ide> wrapInner: function( html ) { <add> if ( jQuery.isFunction( html ) ) { <add> return this.each(function(i) { <add> jQuery(this).wrapInner( html.call(this, i) ); <add> }); <add> } <add> <ide> return this.each(function() { <ide> ...
2
Ruby
Ruby
add timeout for all specs
4bc174cc628010daac0a9605f0e62363042583b0
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> require "rubocop/rspec/support" <ide> require "find" <ide> require "byebug" <add>require "timeout" <ide> <ide> $LOAD_PATH.push(File.expand_path("#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/test/support/lib")) <ide> <ide> def find_files <ide> $stderr.reopen(File::N...
1
Python
Python
add missing license header
86c97f8381c83b0c85cabc81220d533985186951
<ide><path>test/compute/test_ktucloud.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Ap...
1
Python
Python
fix input in run_glue for distilbert
702f589848baba97ea4897aa3f0bb937e1ec3bcf
<ide><path>examples/run_glue.py <ide> def train(args, train_dataset, model, tokenizer): <ide> batch = tuple(t.to(args.device) for t in batch) <ide> inputs = {'input_ids': batch[0], <ide> 'attention_mask': batch[1], <del> 'token_type_ids': batch[2] ...
1
Javascript
Javascript
fix some missing assertions
f62b53d9085157717e09a19c82bfd63e8b60e09b
<ide><path>packages/react-dom/src/__tests__/ReactDOMComponent-test.js <ide> describe('ReactDOMComponent', () => { <ide> return (str + '').replace(/([.?*+\^$\[\]\\(){}|-])/g, '\\$1'); <ide> } <ide> <del> function toHaveAttribute(actual, expected) { <add> function expectToHaveAttribute(actual, expected) ...
2
Ruby
Ruby
fetch mirrors in json format
0a9f5c68678f77ea3340de5638db5f4d6bc906e5
<ide><path>Library/Homebrew/download_strategy.rb <ide> def ext <ide> # Detect and download from Apache Mirror <ide> class CurlApacheMirrorDownloadStrategy < CurlDownloadStrategy <ide> def _fetch <del> # Fetch mirror list site <ide> require 'open-uri' <del> mirror_list = open(@url).read() <add> require 'v...
1
Javascript
Javascript
examine the document more carefully
2cb1989d12f7fa3acaafb8d762c91b156edd8603
<ide><path>src/ng/animateRunner.js <ide> var $$AnimateRunnerFactoryProvider = function() { <ide> <ide> this._doneCallbacks = []; <ide> this._tick = function(fn) { <del> if ($document[0].hidden) { <add> var doc = $document[0]; <add> <add> // the document may not be ready or attached <ad...
1
Ruby
Ruby
add test cases for
249fcbec4aa64a5f9e9f1671bf9180db4ebf9a37
<ide><path>activerecord/test/cases/transactions_test.rb <ide> def test_restore_frozen_state_after_double_destroy <ide> assert_not topic.frozen? <ide> end <ide> <add> def test_restore_id_after_rollback <add> topic = Topic.new <add> <add> Topic.transaction do <add> topic.save! <add> raise ActiveRe...
1
Text
Text
add challenge solution
786cda262767cec8cfab0a551fe8a8c1853989da
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/add-borders-around-your-elements.english.md <ide> tests: <ide> <ide> </div> <ide> <del> <del> <ide> </section> <ide> <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><link href="ht...
1
Javascript
Javascript
force no body on http 204 and 304
3934cb54853ca23cee7ef3c6206a5b1264f8ba6d
<ide><path>lib/http.js <ide> function OutgoingMessage (socket) { <ide> this.flushing = false; <ide> this.headWritten = false; <ide> <add> this._hasBody = true; <add> <ide> this.finished = false; <ide> } <ide> sys.inherits(OutgoingMessage, events.EventEmitter); <ide> OutgoingMessage.prototype.sendHeaderLines = f...
2
PHP
PHP
add a containter test
bea4f7629ab7d74d901204e29a5a5ef14fc4b10b
<ide><path>tests/Container/ContainerTest.php <ide> public function testBindingAnInstanceReturnsTheInstance() <ide> $this->assertSame($bound, $resolved); <ide> } <ide> <add> public function testBindingAnInstanceAsShared() <add> { <add> $container = new Container; <add> $bound = new stdCl...
1
Javascript
Javascript
remove babel/register from pm2 script start
00b81f408b384ffe28ca52fd729c68d3ad410af0
<ide><path>pm2Start.js <del>require('babel/register'); <ide> var pm2 = require('pm2'); <ide> pm2.connect(function() { <ide> pm2.start({
1
PHP
PHP
fix incorrect type
94c1b8a72250b07d4a16233f545f1ec8bc195f9a
<ide><path>src/Illuminate/Http/Exceptions/PostTooLargeException.php <ide> class PostTooLargeException extends HttpException <ide> /** <ide> * Create a new "post too large" exception instance. <ide> * <del> * @param string|null $message <add> * @param string $message <ide> * @param \Throw...
1
Go
Go
remove container name not empty check
98f857772f3be0985ab87c4bc6bd91e80e122c53
<ide><path>api/client/diff.go <ide> func (cli *DockerCli) CmdDiff(args ...string) error { <ide> cmd.Require(flag.Exact, 1) <ide> cmd.ParseFlags(args, true) <ide> <add> if cmd.Arg(0) == "" { <add> return fmt.Errorf("Container name cannot be empty") <add> } <add> <ide> rdr, _, err := cli.call("GET", "/containers/"+c...
3
Ruby
Ruby
replace files atomically when relocating, take two
ad7911bb7518574b8faac9d418ab7d5fdcf55c11
<ide><path>Library/Homebrew/keg_fix_install_names.rb <ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, optio <ide> end <ide> end <ide> <del> (pkgconfig_files | libtool_files | script_files).each do |file| <del> file.ensure_writable do <del> file.open('rb') do |f|...
1
Ruby
Ruby
add unit tests for exception extensions
8103d373e698351029e6803ef59686a94a5d1207
<ide><path>activesupport/test/core_ext/exception_test.rb <add>require 'test/unit' <add>require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/exception' <add> <add>class ExceptionExtTests < Test::Unit::TestCase <add> <add> def get_exception(cls = RuntimeError, msg = nil, trace = nil) <add> begin rai...
1
Javascript
Javascript
fix undefine style
0a57273f0000421639c926d4d180680e3a64c0f7
<ide><path>src/directives.js <ide> angularDirective("ng:hide", function(expression, element){ <ide> angularDirective("ng:style", function(expression, element){ <ide> return function(element){ <ide> this.$onEval(function(){ <del> element.css(this.$eval(expression)); <add> element.css(this.$eval(expressio...
2