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
add unit tests
2c4ad58d16d6c137e3d26ff494450f3064364d02
<ide><path>Library/Homebrew/test/software_spec/bottle_spec.rb <ide> end <ide> end <ide> <add> describe "#compatible_locations?" do <add> it "checks if the bottle cellar is relocatable" do <add> expect(bottle_spec.compatible_locations?).to be false <add> end <add> end <add> <add> describe "#tag_to_c...
1
Ruby
Ruby
remove support of symbols on classify and camelize
3718ccd2a61c2c189913bcfd487912f592fa0660
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> module Inflector <ide> # "words".pluralize # => "words" <ide> # "CamelOctopus".pluralize # => "CamelOctopi" <ide> def pluralize(word) <add> word = deprecate_symbol(word) <ide> result = word.to_str.dup <ide> ...
4
Text
Text
broaden json standardisation by patching
975f5b0c281fe579336fc0ffeb49ac0907465a5a
<ide><path>docs/sources/reference/api/docker_remote_api_v1.0.md <ide> Inspect changes on container `id`'s filesystem <ide> <ide> [ <ide> { <del> "Path":"/dev", <del> "Kind":0 <add> "Path": "/dev", <add> "Kind": 0 <ide>...
17
Javascript
Javascript
expand test coverage of events.js
bee83e0bbc4f61c3bef3bb18043e3f39ea40a336
<ide><path>test/parallel/test-event-emitter-num-args.js <ide> const assert = require('assert'); <ide> const events = require('events'); <ide> <ide> const e = new events.EventEmitter(); <del>const num_args_emited = []; <add>const num_args_emitted = []; <ide> <ide> e.on('numArgs', function() { <ide> const numArgs = a...
4
Ruby
Ruby
add support for "presentation" gallery attribute
2bd0f608f268d6e98ad014ae6a2151e291ebce7c
<ide><path>lib/action_text/attachment.rb <ide> class Attachment <ide> <ide> TAG_NAME = "action-text-attachment" <ide> SELECTOR = TAG_NAME <del> ATTRIBUTES = %w( sgid content-type url href filename filesize width height previewable caption ) <add> ATTRIBUTES = %w( sgid content-type url href filename files...
2
PHP
PHP
remove unused test
4e0f246c6eebd1a610a4ec44f15af1709f8a9b88
<ide><path>tests/TestCase/Utility/SecurityTest.php <ide> class SecurityTest extends TestCase <ide> { <ide> <del> /** <del> * testGenerateAuthkey method <del> * <del> * @return void <del> */ <del> public function testGenerateAuthkey() <del> { <del> $this->assertEquals(strlen(Security::ge...
1
Javascript
Javascript
fix crash during server render in react 16.4.1.
c35a1e74835d2b4c07f1e14779a22ae8ca5a0d10
<ide><path>packages/react-scheduler/src/ReactScheduler.js <ide> if (__DEV__) { <ide> // this module is initially evaluated. <ide> // We want to be using a consistent implementation. <ide> const localDate = Date; <del>const localSetTimeout = setTimeout; <del>const localClearTimeout = clearTimeout; <add> <add>// This ini...
1
Python
Python
fix failing tests
62ccc1a306ba59cb843dbb8fb2b1c2e21c84166a
<ide><path>rest_framework/templatetags/rest_framework.py <ide> def optional_login(request): <ide> """ <ide> try: <ide> login_url = reverse('rest_framework:login') <del> except NoReverseMatch: <add> except: <ide> return '' <ide> <ide> snippet = "<a href='%s?next=%s'>Log in</a>" % (logi...
1
Python
Python
simplify deprecation test decorator
29a45efa15cf3992ab01b1535d51189319a7592d
<ide><path>numpy/testing/decorators.py <ide> """ <ide> from __future__ import division, absolute_import, print_function <ide> <del>import warnings <ide> import collections <ide> <del>from .utils import SkipTest <add>from .utils import SkipTest, assert_warns <add> <ide> <ide> def slow(t): <ide> """ <ide> def depr...
2
Javascript
Javascript
add missing types
1e969d24c154eb196e11be5b8321587b4ebde2ab
<ide><path>lib/Cache.js <ide> class Cache { <ide> const gotHandlers = []; <ide> this.hooks.get.callAsync(identifier, etag, gotHandlers, (err, result) => { <ide> if (err) { <del> callback(err); <add> callback(/** @type {WebpackError} */ (err)); <ide> return; <ide> } <ide> if (gotHandlers.length > ...
6
PHP
PHP
update deprecation warnings
44a2c08b79cad1c3ef9a8324fdeb6200d38697e5
<ide><path>src/ORM/Locator/LocatorAwareTrait.php <ide> trait LocatorAwareTrait <ide> * <ide> * @param \Cake\ORM\Locator\LocatorInterface|null $tableLocator LocatorInterface instance. <ide> * @return \Cake\ORM\Locator\LocatorInterface <del> * @deprecated 3.5.0 Use getter/setter instead. <add> * @d...
2
Ruby
Ruby
add mime-info to gnome folders
6a83404fd537205f0894acce6f9224df765fb25d
<ide><path>Library/Homebrew/keg.rb <ide> def link mode=OpenStruct.new <ide> share_mkpaths.concat((1..8).map { |i| "man/man#{i}" }) <ide> share_mkpaths.concat((1..8).map { |i| "man/cat#{i}" }) <ide> # Paths used by Gnome Desktop support <del> share_mkpaths.concat %w[applications icons pixmaps sounds] <add...
1
Text
Text
add number and range field to form helpers article
b0a3d113a306d6bdec1ed13261ef051d367c7160
<ide><path>guides/source/form_helpers.md <ide> make it easier for users to click the inputs. <ide> <ide> ### Other Helpers of Interest <ide> <del>Other form controls worth mentioning are textareas, password fields, hidden fields, search fields, telephone fields, date fields, time fields, color fields, datetime fields...
1
Javascript
Javascript
add typecheck, cleanup
2dc24fc2343b6120d8b80df9e9e070917cc197d9
<ide><path>src/core/ReactMount.js <ide> var ReactMount = { <ide> * Unmounts and destroys the React component rendered in the `container`. <ide> * <ide> * @param {DOMElement} container DOM element containing a React component. <add> * @return {boolean} True if a component was found in and unmounted from <add>...
1
Python
Python
use weak-references in promises when possible
b52d44f1a2c916ccfebb0d144589ff74ac0079b7
<ide><path>celery/result.py <ide> def __init__(self, id, backend=None, <ide> self.id = id <ide> self.backend = backend or self.app.backend <ide> self.parent = parent <del> self.on_ready = promise(self._on_fulfilled) <add> self.on_ready = promise(self._on_fulfilled, weak=True) <ide>...
1
Javascript
Javascript
improve error handling in beforeloaders hook
9c648cf90f6ef08e3875b61a29a67a5e6a0980aa
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> <ide> const hooks = NormalModule.getCompilationHooks(compilation); <ide> <del> hooks.beforeLoaders.call(this.loaders, this, loaderContext); <add> try { <add> hooks.beforeLoaders.call(this.loaders, this, loaderContext); <add> } catch...
1
PHP
PHP
add exception on parse failure
edcb3dc629a506d3566fa14a174dfe34bf75f1a9
<ide><path>src/Core/StaticConfigTrait.php <ide> public static function configured() <ide> * <ide> * @param string $dsn The DSN string to convert to a configuration array <ide> * @return array The configuration array to be stored after parsing the DSN <del> * @throws \InvalidArgumentException If not p...
2
Ruby
Ruby
include default route for formats
54bc5ca8d97b7ef8640686e50168ba25d7f23d27
<ide><path>railties/configs/routes.rb <ide> # -- just remember to delete public/index.html. <ide> # map.root :controller => "welcome" <ide> <del> # Install the default route as the lowest priority. <add> # Install the default routes as the lowest priority. <ide> map.connect ':controller/:action/:id' <del>end <...
1
Javascript
Javascript
fix module ids of initial require calls
f83c86941149704bdb061a707a77482f14bc7200
<ide><path>packager/react-packager/src/Bundler/Bundle.js <ide> class Bundle extends BundleBase { <ide> const name = 'require-' + moduleId; <ide> super.addModule(new ModuleTransport({ <ide> name, <del> id: this._numRequireCalls - 1, <add> id: -this._numRequireCalls - 1, <ide> code, <ide> ...
1
PHP
PHP
use assertcount
60478992946c71cb7067b84b0118cf9c86d49ab1
<ide><path>tests/Database/DatabaseEloquentIntegrationTest.php <ide> public function testBelongsToManyRelationshipModelsAreProperlyHydratedOverChunke <ide> $friend = $user->friends()->create(['email' => 'abigailotwell@gmail.com']); <ide> <ide> EloquentTestUser::first()->friends()->chunk(2, function ($fr...
2
Ruby
Ruby
refactor the type casting of booleans in mysql
fbdd58081e3d8a14bef68c824848571c873af21b
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/quoting.rb <ide> def type_cast(value, column) <ide> case value <ide> when String, ActiveSupport::Multibyte::Chars <ide> value.to_s <del> when true then 't' <del> when false then 'f' <add> whe...
2
Text
Text
add quotes to static paths in fallback section
99eedc4b86b5ab1108bff9734d0fbce93bcd9158
<ide><path>docs/basic-features/data-fetching.md <ide> function Post({ post }) { <ide> export async function getStaticPaths() { <ide> return { <ide> // Only `/posts/1` and `/posts/2` are generated at build time <del> paths: [{ params: { id: 1 } }, { params: { id: 2 } }], <add> paths: [{ params: { id: '1' } }...
1
Go
Go
add info to fatal log
eb0f9f664116ca28d844144929f4b578fe2d1dc8
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunEnvironment(c *check.C) { <ide> } <ide> sort.Strings(goodEnv) <ide> if len(goodEnv) != len(actualEnv) { <del> c.Fatalf("Wrong environment: should be %d variables, not: %q\n", len(goodEnv), strings.Join(actualEnv, ", ")) <add> c.Fa...
1
Go
Go
fix race between container cleanup and inspect/ps
93d6adf8a19855edf118d27d0239222f572d8292
<ide><path>daemon/monitor.go <ide> func (m *containerMonitor) Start() error { <ide> exitStatus int <ide> ) <ide> <add> // this variable indicates that we under container.Lock <add> underLock := true <add> <ide> // ensure that when the monitor finally exits we release the networking and unmount the rootfs <del> def...
1
PHP
PHP
add debuginfo to response for better debugging
6eb1196ae6fdbd34018876c209b8166d4ca920f0
<ide><path>src/Network/Response.php <ide> public function stop($status = 0) <ide> { <ide> exit($status); <ide> } <add> <add> /** <add> * Returns an array that can be used to describe the internal state of this <add> * object. <add> * <add> * @return array <add> */ <add> public ...
2
Java
Java
remove unneeded conditional logic
ad6d183a0614adaa0bb1493a9500a4a9b412c1e2
<ide><path>spring-core/src/main/java/org/springframework/core/convert/support/ConversionUtils.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * y...
1
Go
Go
remove job from resize&execresize
e290a22dc935c2472e08be7362b7d3b0f6303615
<ide><path>api/server/server.go <ide> func postContainersResize(eng *engine.Engine, version version.Version, w http.Re <ide> if vars == nil { <ide> return fmt.Errorf("Missing parameter") <ide> } <del> if err := eng.Job("resize", vars["name"], r.Form.Get("h"), r.Form.Get("w")).Run(); err != nil { <add> <add> height,...
3
Javascript
Javascript
allow multiple json vulnerability prefixes
fe633dd0cf3d52f84ce73f486bcbd4e1d3058857
<ide><path>src/service/http.js <ide> function $HttpProvider() { <ide> // transform in-coming reponse data <ide> transformResponse: function(data) { <ide> if (isString(data)) { <del> if (/^\)\]\}',\n/.test(data)) data = data.substr(6); <add> // strip json vulnerability protection prefix <add>...
2
Text
Text
update restart description
c32ec8b93b199168425f29cab040d9d8cc23566f
<ide><path>docs/reference/run.md <ide> Or, to get the last time the container was (re)started; <ide> $ docker inspect -f "{{ .State.StartedAt }}" my-container <ide> # 2015-03-04T23:47:07.691840179Z <ide> <del>You cannot set any restart policy in combination with <del>["clean up (--rm)"](#clean-up-rm). Setting ...
1
Java
Java
add tests to demonstrate bugs
fb22a73a7df3ccada20d3f2e7b0da2db806bcb2e
<ide><path>rxjava-core/src/main/java/rx/operators/OperationTake.java <ide> public void testTake2() { <ide> verify(aObserver, times(1)).onCompleted(); <ide> } <ide> <add> @Test <add> public void testTakeDoesntLeakErrors() { <add> Observable<String> source = Observable.concat...
1
PHP
PHP
add tests for configuring cookie creation
b9113aa5cde8de9cb08eb376990c06d75bd0a75f
<ide><path>Cake/Controller/Component/CsrfComponent.php <ide> class CsrfComponent extends Component { <ide> * the request is a GET request, and the cookie value <ide> * is absent a cookie will be set. <ide> * <add> * RequestAction requests do not get checked, nor will <add> * they set a cookie should it be missing. <...
2
Mixed
Javascript
add trace-events for time and count
9c82a1e7ba8d5ce7e743f99348cf992965594f0a
<ide><path>doc/api/tracing.md <ide> The available categories are: <ide> The [`async_hooks`] events have a unique `asyncId` and a special `triggerId` <ide> `triggerAsyncId` property. <ide> * `node.bootstrap` - Enables capture of Node.js bootstrap milestones. <add>* `node.console` - Enables capture of `console.time()...
3
PHP
PHP
add dashedroute class
3bfa4ca2177af7e3fda3a7e104dbfe0f33a48d4e
<ide><path>src/Routing/Route/DashedRoute.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, plea...
2
Python
Python
fix typo in variable name
6aa659951a63d7c491f1a06aea0605ea30ec699f
<ide><path>numpy/core/numeric.py <ide> def binary_repr(num, width=None): <ide> '11101' <ide> <ide> """ <del> def warn_if_insufficient(width, binwdith): <add> def warn_if_insufficient(width, binwidth): <ide> if width is not None and width < binwidth: <ide> warnings.warn( <ide> ...
1
Ruby
Ruby
fix another race condition
30b0e5848c5a91c0bfd1ef33ec4b9bc36bcead0b
<ide><path>activerecord/lib/active_record/attribute_methods.rb <ide> require 'active_support/core_ext/enumerable' <ide> require 'active_support/deprecation' <del>require 'thread' <ide> <ide> module ActiveRecord <ide> # = Active Record Attribute Methods <ide> module ClassMethods <ide> def define_attribute_metho...
3
Go
Go
introduce failing test case for
4cbb6ce13bf93df2a9e251dfa87fbce9952ab8a6
<ide><path>container_test.go <ide> func TestMultipleVolumesFrom(t *testing.T) { <ide> t.Fail() <ide> } <ide> } <add> <add>func TestRestartGhost(t *testing.T) { <add> runtime := mkRuntime(t) <add> defer nuke(runtime) <add> <add> container, err := runtime.Create(&Config{ <add> Image: GetTestImage(runtime).ID, <add>...
1
Ruby
Ruby
remove requirement that query ends with comments
990af3d203fd573e55140a84fc48ee1a06db5587
<ide><path>activerecord/test/cases/query_logs_test.rb <ide> def test_empty_comments_are_not_added <ide> def test_custom_basic_tags <ide> ActiveRecord::QueryLogs.tags = [ :application, { custom_string: "test content" } ] <ide> <del> assert_sql(%r{/\*application:active_record,custom_string:test content\*/$}) do...
1
Python
Python
fix warningc context tests, uncover bug?
e8dda96dd2a50d2e23134d924cbcabd545af54a1
<ide><path>numpy/testing/tests/test_utils.py <ide> def test_clear_and_catch_warnings(): <ide> warnings.simplefilter('ignore') <ide> warnings.warn('Some warning') <ide> assert_equal(my_mod.__warningregistry__, {}) <del> # Without specified modules, don't clear warnings during context <add> # Wi...
1
Text
Text
address maintainer feedback
9d8b101ede241df5973b1d4ec5290a7fbc0d56dc
<ide><path>docs/Maintainer-Guidelines.md <ide> is a good opportunity to do it) provided the line itself has some kind <ide> of modification that is not whitespace in it. But be careful about <ide> making changes to inline patches—make sure they still apply. <ide> <del>### Adding formulae <del>Only one maintainer is ne...
1
PHP
PHP
write docblock to testaddmany() test method
cd4c892dfb9c21e71c4b22ef8c05ee6363da73f6
<ide><path>tests/TestCase/Http/Client/FormDataTest.php <ide> public function testAddSimple() <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add> /** <add> * Test addMany method. <add> * <add> * @return void <add> */ <ide> public function testAddMany() <ide> { <ide>...
1
Python
Python
use the correct add_start_docstrings
42049b8e12dbeea4377b491cdd519b25c83ddaff
<ide><path>src/transformers/tokenization_marian.py <ide> <ide> import sentencepiece <ide> <del>from .file_utils import add_start_docstrings_to_callable <add>from .file_utils import add_start_docstrings <ide> from .tokenization_utils import BatchEncoding, PreTrainedTokenizer <ide> from .tokenization_utils_base import ...
3
PHP
PHP
rendersections()
7bebac8dd5282918f16a3b553dbd6f4e1089a8b9
<ide><path>src/Illuminate/View/View.php <ide> protected function renderContents() <ide> */ <ide> public function renderSections() <ide> { <del> $env = $this->factory; <del> <del> return $this->render(function ($view) use ($env) { <del> return $env->getSections(); <add> retur...
1
Ruby
Ruby
fix overzealous regex
152490b7b00ddeac71eb5cb27d145797c981d55c
<ide><path>Library/Homebrew/bottle_version.rb <ide> def self._parse spec <ide> return m.captures.first unless m.nil? <ide> <ide> # e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz <del> m = /-(\d+)/.match(stem) <add> m = /-(\d{8})/.match(stem) <ide> return m.captures.first unless m.nil? ...
1
Ruby
Ruby
pass regex into strategy blocks
fef4512b35fb30eaf5a3efbf2de675077bab5089
<ide><path>Library/Homebrew/livecheck/strategy/git.rb <ide> def self.find_versions(url, regex = nil, &block) <ide> tags_only_debian = tags_data[:tags].all? { |tag| tag.start_with?("debian/") } <ide> <ide> if block <del> case (value = block.call(tags_data[:tags])) <add> case (v...
3
PHP
PHP
add missing use statement
150be2d7b55dc694a6acfcc664a374deeab9727c
<ide><path>src/Collection/CollectionTrait.php <ide> use Cake\Collection\Iterator\TreeIterator; <ide> use Cake\Collection\Iterator\UnfoldIterator; <ide> use Cake\Collection\Iterator\ZipIterator; <add>use Countable; <ide> use Iterator; <ide> use LimitIterator; <ide> use RecursiveIteratorIterator;
1
Text
Text
update debugging docs with yellowbox/redbox
157b5274b75ffb4a338d35272ba2ae49e7054558
<ide><path>docs/Debugging.md <ide> To access the in-app developer menu: <ide> > 1. For iOS open your project in Xcode and select `Product` → `Scheme` → `Edit Scheme...` (or press `⌘ + <`). Next, select `Run` from the menu on the left and change the Build Configuration to `Release`. <ide> > 2. For Android, by default, d...
1
PHP
PHP
fix identifier typos
a1ae31e554545c1982201ea68457c50e17f2429f
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testSecuredFormUrlWorksWithNamedParameter() { <ide> } <ide> <ide> /** <del> * Test that URL, HTML and identifer show up in their hashs. <add> * Test that URL, HTML and identifier show up in their hashs. <ide> * <ide> * @return void <...
1
Javascript
Javascript
improve assert test hygiene
5624a6f8a77b8215b25e7ca27d4ac4ed66f72aee
<ide><path>test/parallel/test-assert-builtins-not-read-from-filesystem.js <del>// Flags: --expose-internals <del> <ide> 'use strict'; <ide> <del>require('../common'); <add>// Do not read filesystem when creating AssertionError messages for code in <add>// builtin modules. <ide> <add>require('../common'); <ide> const ...
1
Javascript
Javascript
fix decode artefacts
d2bb59bdae63702be9d88418c649ce0312dec916
<ide><path>src/renderers/shaders/ShaderChunk/packing.glsl.js <ide> vec4 encodeHalfRGBA ( vec2 v ) { <ide> } <ide> <ide> vec2 decodeHalfRGBA( vec4 v ) { <add> v = floor( v * 255.0 + 0.5 ) / 255.0; <ide> return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) ); <ide> } <ide>
1
Mixed
Ruby
fix `content_tag_for` with array html option
540ebe37cd1a9551b739c552a0d4efd2adc7ff22
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Fix `content_tag_for` with array html option. <add> It would embed array as string instead of joining it like `content_tag` does: <add> <add> content_tag(:td, class: ["foo", "bar"]){} <add> #=> '<td class="foo bar">...
3
Text
Text
add name check and post publish instructions
e279c75653d2cef9fa067e7fff641cbc0d89fcd4
<ide><path>docs/publishing-a-package.md <ide> This guide will show you how to publish a package or theme to the <ide> [atom.io][atomio] package registry. <ide> <del>Publishing a package allows other people to install it and use it. It is a <del>great way to share what you've made and get feedback and contributions fr...
1
Go
Go
remove valentina tereshkova
0f052eb4f56c05dcb8c444823ebde6ce0fac7197
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Helen Brooke Taussig - American cardiologist and founder of the field of paediatric cardiology. https://en.wikipedia.org/wiki/Helen_B._Taussig <ide> "taussig", <ide> <del> // Valentina Tereshkova is a Russian engineer, cosmonaut and politician....
1
Javascript
Javascript
use different regexp for extended and basic iso
329e9a4fd35f30032f1461475e5404a1ae3e71cd
<ide><path>src/lib/create/from-string.js <ide> import getParsingFlags from './parsing-flags'; <ide> <ide> // iso 8601 regex <ide> // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) <del>var isoRegex = /^\s*((?:[+-]\d{6}|\d{4})-?(?:\d\d-?\d\d|W\d\d-?\d|W\d\d|\d\...
2
Text
Text
remove experimental status for json documentation
956e08e6f077b9e162f653438352699937429579
<ide><path>doc/api/documentation.md <ide> attaching a listener to the [`'warning'`][] event. <ide> added: v0.6.12 <ide> --> <ide> <del>> Stability: 1 - Experimental <del> <del>Every `.html` document has a corresponding `.json` document presenting <del>the same information in a structured manner. This feature is <del>e...
1
Go
Go
fix init layer
446ca4b57b228a2d030f0c816e08948ff7da1d79
<ide><path>builder.go <ide> func (builder *Builder) Create(config *Config) (*Container, error) { <ide> container.HostnamePath = path.Join(container.root, "hostname") <ide> ioutil.WriteFile(container.HostnamePath, []byte(container.Config.Hostname+"\n"), 0644) <ide> <del> hostsContent := []byte("127.0.0.1\tlocalhost\n...
2
Java
Java
remove obsolete suppression of deprecation warning
8027e1f1090e01ed0eeafcea4699c86def37edbf
<ide><path>spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <id...
1
PHP
PHP
add missing use statement
bc348de6dd75f2c94a264f2f8abec3ffd6833f8e
<ide><path>src/Controller/Component/AuthComponent.php <ide> namespace Cake\Controller\Component; <ide> <ide> use Cake\Controller\Component; <add>use Cake\Controller\ComponentRegistry; <ide> use Cake\Controller\Controller; <ide> use Cake\Core\App; <ide> use Cake\Core\Configure;
1
Ruby
Ruby
escape options for the stylesheet_link_tag method
5ffa69793fd3e1d4af41ebc719a6736163eb7433
<ide><path>actionpack/lib/action_view/helpers/asset_tag_helpers/stylesheet_tag_helpers.rb <ide> def extension <ide> <ide> def asset_tag(source, options) <ide> # We force the :request protocol here to avoid a double-download bug in IE7 and IE8 <del> tag("link", { "rel" => "stylesheet", "type"...
2
Python
Python
add link to swagger ui to navbar
57d34f22bd1f97f2d44fb391ca589284394dfab9
<ide><path>airflow/config_templates/airflow_local_settings.py <ide> 'level': FAB_LOG_LEVEL, <ide> 'propagate': True, <ide> }, <add> 'connexion': { <add> 'handler': ['console'], <add> 'level': LOG_LEVEL, <add> 'propagate': True, <add> } <ide>...
3
PHP
PHP
use events, duh
ace7f04ae579146ca3adf1c5992256c50ddc05a8
<ide><path>src/Illuminate/Queue/Console/WorkCommand.php <ide> use Illuminate\Queue\Worker; <ide> use Illuminate\Console\Command; <ide> use Illuminate\Contracts\Queue\Job; <add>use Illuminate\Queue\Events\JobFailed; <add>use Illuminate\Queue\Events\JobProcessed; <ide> use Symfony\Component\Console\Input\InputOption; <id...
1
Ruby
Ruby
support both luas
3369c55dc69815c4a4992e131645576950d5f559
<ide><path>Library/Homebrew/requirements/language_module_requirement.rb <ide> def the_test <ide> case @language <ide> when :chicken then %W[/usr/bin/env csi -e (use\ #{@import_name})] <ide> when :jruby then %W[/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'] <del> when :lua then %W[/usr/bin/en...
1
Javascript
Javascript
provide all jquery functions as futures
60eeeb9f20be3220dbb891abef848fe3754437da
<ide><path>src/scenario/DSL.js <ide> angular.scenario.dsl.repeater = function(selector) { <ide> }; <ide> <ide> angular.scenario.dsl.element = function(selector) { <del> var nameSuffix = "element '" + selector + "'"; <del> return $scenario.addFuture('Find ' + nameSuffix, function(done) { <del> var self = this, rep...
2
Ruby
Ruby
remove debugging statement
9ee1302f86e2b2f7cf0aec9fad8a89e05eaf9195
<ide><path>actionpack/lib/action_controller/caching.rb <ide> def expire_page(options = {}) <ide> # If no options are provided, the current +options+ for this action is used. Example: <ide> # cache_page "I'm the cached content", :controller => "lists", :action => "show" <ide> def cache_page(content =...
1
PHP
PHP
remove unused group tag
a96e9027b73f925c29bd9f2438743835df0503e5
<ide><path>tests/TestCase/ORM/EntityTest.php <ide> public function testErrors() <ide> /** <ide> * Tests error getters and setters <ide> * <del> * @group fish <ide> * @return void <ide> */ <ide> public function testGetAndSetErrors()
1
Python
Python
attach existing volume in create_node
92970e12aa707a0ce0401fb830b67fbeb0e9ee74
<ide><path>libcloud/compute/drivers/digitalocean.py <ide> def list_volumes(self): <ide> return list(map(self._to_volume, data)) <ide> <ide> def create_node(self, name, size, image, location, ex_create_attr=None, <del> ex_ssh_key_ids=None, ex_user_data=None): <add> ex_s...
1
PHP
PHP
fix class references
871309ac986bd1c020ad6392756836bfd838d155
<ide><path>src/Error/Debugger.php <ide> use Cake\Error\Debug\ScalarNode; <ide> use Cake\Error\Debug\SpecialNode; <ide> use Cake\Error\Debug\TextFormatter; <del>use Cake\Error\Renderer\HtmlRenderer; <del>use Cake\Error\Renderer\TextRenderer; <add>use Cake\Error\Renderer\HtmlErrorRenderer; <add>use Cake\Error\Renderer\Te...
2
Ruby
Ruby
add has_named_route? to the mapper api
378ea96905e5f95be1a413b7bdd6fbb000265129
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def with_default_scope(scope, &block) <ide> end <ide> end <ide> <add> # Query if the following named route was already defined. <add> def has_named_route?(name) <add> @set.named_routes.routes[name.to_sym] <add> ...
2
PHP
PHP
add mockbuilder with muted reflection errors
7688bd0aac48f498b78713a9abb03d0a17217d5b
<ide><path>src/TestSuite/MockBuilder.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please...
3
Mixed
Javascript
inspect arraybuffers contents as well
aa07dd6248764006d1b201700a18173250b281de
<ide><path>doc/api/util.md <ide> stream.write('With ES6'); <ide> <!-- YAML <ide> added: v0.3.0 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/25006 <add> description: ArrayBuffers now also show their binary contents. <ide> - version: v11.5.0 <ide> pr-url: https:...
5
Javascript
Javascript
fix typo in evented mixin
737c2872ef21f973dd265031764631515d6ed716
<ide><path>packages/ember-runtime/lib/mixins/evented.js <ide> Ember.Evented = Ember.Mixin.create({ <ide> event. <ide> <ide> ```javascript <del> person.on('didEat', food) { <add> person.on('didEat', function(food) { <ide> console.log('person ate some ' + food); <ide> }); <ide>
1
Ruby
Ruby
remove unnecessary code since as beta1 is out
8a3327526fab96745850606a45f7ccf5ad9e868a
<ide><path>lib/arel/algebra/core_extensions/object.rb <ide> def let <ide> yield(self) <ide> end <ide> <del> # TODO remove this when ActiveSupport beta1 is out. <del> # Returns the object's singleton class. <del> def singleton_class <del> class << self <del> self <del> end <del> e...
1
Text
Text
clarify changelog entry added in [ci skip]
ff718abcba6fd8ca5972f019524836bbd1d068d2
<ide><path>railties/CHANGELOG.md <del>* Make :null_store the default store in the test environment. <add>* Make `ActiveSupport::Cache::NullStore` the default cache store in the test environment. <ide> <ide> *Michael C. Nelson* <ide>
1
Text
Text
update bert readme
afd348a8f68e36338dd7acd11f5fad7ab74e9d4f
<ide><path>official/nlp/bert/README.md <ide> python ../data/create_finetuning_data.py \ <ide> --fine_tuning_task_type=squad --max_seq_length=384 <ide> ``` <ide> <add>Note: To create fine-tuning data with SQUAD 2.0, you need to add flag `--version_2_with_negative=True` <add> <ide> ## Fine-tuning with BERT <ide> <ide>...
1
Python
Python
add __eq__ and __ne__ to poly1d
3e5fdde668f661e82789bdd764ee6846f43efe84
<ide><path>numpy/lib/polynomial.py <ide> def __rdiv__(self, other): <ide> other = poly1d(other) <ide> return polydiv(other, self) <ide> <add> def __eq__(self, other): <add> return (self.coeffs == other.coeffs).all() <add> <add> def __ne__(self, other): <add> return (self.coe...
1
PHP
PHP
add stringable tests
fe9711b86f02704869c688ede0a79579db067f12
<ide><path>src/Illuminate/Support/Stringable.php <ide> class Stringable <ide> * @param string $value <ide> * @return void <ide> */ <del> public function __construct($value) <add> public function __construct($value = '') <ide> { <ide> $this->value = (string) $value; <ide> } <ide> p...
2
Java
Java
adjust uricomponentsbuilder#touristring behavior
b219c6ce15637a7a190a657f864e631e428b5378
<ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java <ide> public URI build(Map<String, ?> uriVariables) { <ide> } <ide> <ide> /** <del> * Build a URI String. This is a shortcut for: <add> * Build a URI String. <add> * <p>Effectively, a shortcut for building, encoding, and re...
1
Java
Java
remove superfluous oncomplete
27650908d26170ba9dac9c610b9dd20388ac1a2f
<ide><path>rxjava-core/src/main/java/rx/operators/OperatorFromIterable.java <ide> public OperatorFromIterable(Iterable<? extends T> iterable) { <ide> public void call(Operator<? super T> o) { <ide> for (T i : is) { <ide> if (o.isUnsubscribed()) { <del> break; <add> ...
1
Ruby
Ruby
use hash#fetch instead of testing for #key?
6960e481cb87964bd450ec3fbaa1087f44c3b860
<ide><path>actionpack/lib/sprockets/railtie.rb <ide> class Railtie < ::Rails::Railtie <ide> env.version = ::Rails.env + "-#{config.assets.version}" <ide> <ide> if config.assets.logger != false <del> env.logger = config.assets.logger || ::Rails.logger <add> env.logger = config.assets....
2
Go
Go
add experimenta btrfs driver
e51af36a85126aca6bf6da5291eaf960fd82aa56
<ide><path>graphdriver/btrfs/btrfs.go <add>// +build linux <add> <add>package btrfs <add> <add>/* <add>#include <stdlib.h> <add>#include <sys/ioctl.h> <add>#include <linux/fs.h> <add>#include <errno.h> <add>#include <sys/types.h> <add>#include <dirent.h> <add>#include <linux/btrfs.h> <add> <add>*/ <add>import "C" <add>...
4
Mixed
Ruby
catch invalidurierror on bad paths on redirect
e23b3149458b22cf07382d6aeb2264585e28a339
<ide><path>actionpack/CHANGELOG.md <add>* Handle InvalidURIError on bad paths on redirect route. <add> <add> *arthurnn* <add> <ide> * Deprecate passing first parameter as `Hash` and default status code for `head` method. <ide> <ide> *Mehmet Emin İNAÇ* <ide><path>actionpack/lib/action_dispatch/routing/redire...
3
Javascript
Javascript
use faster variant for rss
4ad7338398eadf20ddbe20600979e89c1b386ab8
<ide><path>test/sequential/test-net-bytes-per-incoming-chunk-overhead.js <ide> const receivedChunks = []; <ide> const N = 250000; <ide> <ide> const server = net.createServer(common.mustCall((socket) => { <del> baseRSS = process.memoryUsage().rss; <add> baseRSS = process.memoryUsage.rss(); <ide> <ide> socket.setNo...
1
PHP
PHP
fix cs error
4c545b9facec53043a8ed6b574b1dc1fd172bed3
<ide><path>tests/TestCase/Utility/XmlTest.php <ide> public function testFromArray() <ide> */ <ide> public function testFromArrayZeroValue() <ide> { <del> $xml = array( <del> 'tag' => array( <add> $xml = [ <add> 'tag' => [ <ide> '@' => 0, <ide> ...
1
PHP
PHP
fix merge conflict with 62f8dea
32e7943b00c1481e3ff194556aa02e0acad05932
<ide><path>lib/Cake/Test/Case/Model/Behavior/ContainableBehaviorTest.php <ide> public function tearDown() { <ide> * @return void <ide> */ <ide> public function testContainments() { <del> $r = $this->__containments($this->Article, array('Comment' => array('conditions' => array('Comment.user_id' => 2)))); <add> $r =...
1
Javascript
Javascript
remove target.pagesrepo, commit here (not bot)
790f60830b677d49b913a6f927faac62a53accbf
<ide><path>make.js <ide> target.generic = function() { <ide> target.web = function() { <ide> target.generic(); <ide> target.extension(); <del> target.pagesrepo(); <ide> <del> cd(ROOT_DIR); <ide> echo(); <ide> echo('### Creating web site'); <ide> <add> if (test('-d', GH_PAGES_DIR)) <add> rm('-rf', GH_PAG...
1
Javascript
Javascript
add documentation for render buffer
40f7d959cce2c431fb4b40076e1d0ef0c6aa8f99
<ide><path>packages/sproutcore-views/lib/system/render_buffer.js <ide> <ide> var get = SC.get, set = SC.set; <ide> <del>/* <del> TODO Document SC.RenderBuffer class itself <del>*/ <del> <ide> /** <ide> @class <add> <add> SC.RenderBuffer gathers information regarding the a view and generates the <add> final repr...
1
PHP
PHP
fix wincache test
081b1231d1d2c2aa2d3ec5d00cf280e22148dd74
<ide><path>tests/TestCase/Cache/Engine/WincacheEngineTest.php <ide> public function testClear() <ide> wincache_ucache_set('not_cake', 'safe'); <ide> Cache::write('some_value', 'value', 'wincache'); <ide> <del> $result = Cache::clear(false, 'wincache'); <add> $result = Cache::clear('wincac...
1
Java
Java
add onerror callback to deferredresult
e0678ba5835eb6f0a8d8b3ac344c8728102c4a4d
<ide><path>spring-orm/src/main/java/org/springframework/orm/hibernate5/support/AsyncRequestInterceptor.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
27
Ruby
Ruby
fix frozen string usage in odeprecated
6325db9e37c4ea55ea82a8e6be767b119e403e87
<ide><path>Library/Homebrew/utils.rb <ide> def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call <ide> next unless match = line.match(HOMEBREW_TAP_PATH_REGEX) <ide> <ide> tap = Tap.fetch(match[:user], match[:repo]) <del> tap_message = "\nPlease report this to the #{tap} tap" <add>...
1
Python
Python
fix punctuation in system check
676aa772234421cbb338cca31b6eaf00a482b47e
<ide><path>rest_framework/checks.py <ide> def pagination_system_check(app_configs, **kwargs): <ide> if api_settings.PAGE_SIZE and not api_settings.DEFAULT_PAGINATION_CLASS: <ide> errors.append( <ide> Warning( <del> "You have specified a default PAGE_SIZE pagination rest_framework ...
1
Ruby
Ruby
escape dep before regexp interpolation
a3863394c0cbf38255d9b71cb589710729bbbcc6
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_line(line) <ide> end <ide> <ide> def audit_conditional_dep(dep, condition, line) <add> dep = Regexp.escape(dep) <ide> case condition <ide> when /if build\.include\? ['"]with-#{dep}['"]$/, /if build\.with\? ['"]#{dep}['"]$/ <ide> problem %{Re...
1
Go
Go
update devicemapper to pass mount flag
ae006493054e524ed35c08863f1713986fe0a22c
<ide><path>daemon/graphdriver/devmapper/driver.go <ide> package devmapper <ide> <ide> import ( <ide> "fmt" <del> "github.com/dotcloud/docker/daemon/graphdriver" <del> "github.com/dotcloud/docker/utils" <ide> "io/ioutil" <ide> "os" <ide> "path" <add> <add> "github.com/dotcloud/docker/daemon/graphdriver" <add> "gith...
1
Ruby
Ruby
remove trailing whitespace
3caca406c8cadbd4a42e50bfbb3e2794fd8d985e
<ide><path>activesupport/lib/active_support/whiny_nil.rb <ide> # classes in NilClass::WHINERS the error message suggests which could be the <ide> # actual intended class: <ide> # <del># $ rails runner nil.destroy <add># $ rails runner nil.destroy <ide> # ... <ide> # You might have expected an instance of Activ...
1
Javascript
Javascript
prefer === to ==
84c448eafbbf968241bc72b5020081fcc0ebc522
<ide><path>lib/net.js <ide> function Socket(options) { <ide> } else if (options.fd !== undefined) { <ide> this._handle = createHandle(options.fd); <ide> this._handle.open(options.fd); <add> // options.fd can be string (since it user-defined), <add> // so changing this to === would be semver-major <add> ...
1
Text
Text
update readme with charter
f31d0fc964239d8275bc71b8112d9f5f675813d3
<ide><path>README.md <del>Immutable collections for JavaScript <del>==================================== <add>Immutable collections for JavaScript: Community Maintained Edition <add>================================================================== <ide> <del>[![Build Status](https://travis-ci.org/facebook/immutable-j...
1
Javascript
Javascript
use relative imports in ember-template-compiler
c56e2152b4d01b38a4c4e227e8e4ca295fb46da0
<ide><path>packages/ember-template-compiler/lib/plugins/assert-reserved-named-arguments.js <ide> import { assert } from 'ember-metal/debug'; <del>import calculateLocationDisplay from 'ember-template-compiler/system/calculate-location-display'; <add>import calculateLocationDisplay from '../system/calculate-location-disp...
6
Text
Text
add model card for t5-base-squad
9ddd3a65481ca19280e0715ebc3aa8b9d1e9d939
<ide><path>model_cards/valhalla/t5-base-squad/README.md <add># T5 for question-answering <add>This is T5-base model fine-tuned on SQuAD1.1 for QA using text-to-text approach <add> <add>## Model training <add>This model was trained on colab TPU with 35GB RAM for 4 epochs <add> <add>## Results: <add>| Metric | #Valu...
1
Text
Text
add changelog for [ci skip]
7709ea3d59b049d8b566763a823befc212724dc3
<ide><path>actionview/CHANGELOG.md <ide> <ide> *Peter Schilling*, *Matthew Draper* <ide> <add>* Add `:skip_pipeline` option to several asset tag helpers <add> <add> `javascript_include_tag`, `stylesheet_link_tag`, `favicon_link_tag`, <add> `image_tag` and `audio_tag` now accept a `:skip_pipeline` option w...
1
Text
Text
change links to https in benchmark guide
0b57175813831e7f748475e0ed9bb7adfb54826c
<ide><path>doc/guides/writing-and-running-benchmarks.md <ide> Supported options keys are: <ide> [autocannon]: https://github.com/mcollina/autocannon <ide> [wrk]: https://github.com/wg/wrk <ide> [t-test]: https://en.wikipedia.org/wiki/Student%27s_t-test#Equal_or_unequal_sample_sizes.2C_unequal_variances <del>[git-for-wi...
1
Ruby
Ruby
fix typo in apparently-dead will_unload? method
582bff71c465075d01b6e062d64b13ac3df4ad56
<ide><path>activesupport/lib/active_support/dependencies.rb <ide> def autoloaded?(desc) <ide> <ide> # Will the provided constant descriptor be unloaded? <ide> def will_unload?(const_desc) <del> autoloaded?(desc) || <add> autoloaded?(const_desc) || <ide> explicitly_unloadable_constants.include...
1
Python
Python
allow extra args on pretrain and debug_data
5e683d03fea143c5000a9e4fd1e8f30919ec9bfc
<ide><path>spacy/cli/debug_data.py <ide> BLANK_MODEL_THRESHOLD = 2000 <ide> <ide> <del>@app.command("debug-data") <add>@app.command( <add> "debug-data", <add> context_settings={"allow_extra_args": True, "ignore_unknown_options": True}, <add>) <ide> def debug_data_cli( <ide> # fmt: off <ide> ctx: typer.C...
2