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
Javascript
Javascript
resolve ref callbacks
3717b71c6444f813d44e10f7f42fe4e2c8f31023
<ide><path>src/renderers/shared/fiber/ReactChildFiber.js <ide> function ChildReconciler(shouldClone, shouldTrackSideEffects) { <ide> if (current == null || current.type !== element.type) { <ide> // Insert <ide> const created = createFiberFromElement(element, priority); <add> created.ref = element.r...
4
PHP
PHP
add a test for overriding raw tags
5b0bc6cc0218c0035466a66be75ab51098fa163c
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> public function testReversedEchosAreCompiled() <ide> } <ide> <ide> <add> public function testShortRawEchosAreCompiled() <add> { <add> $compiler = new BladeCompiler($this->getFiles(), __DIR__); <add> $compiler->setRawTags('{{', '}}'); <add> $this->assertEquals(...
1
Javascript
Javascript
add a comment
6538e7141a2e47be1ef6c21bb1dc3f250d9f88e3
<ide><path>src/devtools/views/Components/Element.js <ide> export default function ElementView({ index, style, data }: Props) { <ide> ); <ide> <ide> const rendererID = store.getRendererIDForElement(element.id) || null; <add> // Individual elements don't have a corresponding leave handler. <add> // Instead, it's i...
1
Text
Text
add html snippet and codepen link
0164c919fd00045b34afc5f1fa47f35604088c32
<ide><path>guide/english/certifications/responsive-web-design/basic-html-and-html5/add-images-to-your-website/index.md <ide> The main attributes of an img tag are src and alt: <ide> <ide> Attributes are key value pairs inserted into the tag. The syntax is `<tag key1="value1" key2="value2"> </tag>` or, in case of self-...
1
PHP
PHP
fix doc block issues
53a2867621da18a35e9aa2ea1380ae8744871cdf
<ide><path>src/Routing/RouteBuilder.php <ide> public function options($template, $target, $name = null) <ide> /** <ide> * Helper to create routes that only respond to a single HTTP method. <ide> * <add> * @param string $method The HTTP method name to match. <ide> * @param string $template The URL...
1
Javascript
Javascript
check arg type for dnspromises.resolve
0b85435c01cb1a6932a6b5b6cb6022d9dbf988e5
<ide><path>test/parallel/test-dns.js <ide> assert.deepStrictEqual(dns.getServers(), portsExpected); <ide> dns.setServers([]); <ide> assert.deepStrictEqual(dns.getServers(), []); <ide> <del>common.expectsError(() => { <del> dns.resolve('example.com', [], common.mustNotCall()); <del>}, { <del> code: 'ERR_INVALID_ARG_T...
1
Javascript
Javascript
treat it more like a pool
f028c779b16aa9a5986502f35d7e1941ca0abd88
<ide><path>spec/git-work-queue-spec.js <ide> fdescribe('GitWorkQueue', () => { <ide> let queue <ide> <ide> beforeEach(() => { <del> queue = new GitWorkQueue() <add> queue = new GitWorkQueue([{}]) <ide> }) <ide> <ide> describe('.enqueue', () => { <ide><path>src/git-work-queue.js <ide> <ide> // A queue u...
2
Text
Text
fix unbalanced emphasis
3e062762e4519dbb6817c2a47f9d28165f66b53f
<ide><path>doc/api/n-api.md <ide> scenario, because with those the async execution still happens on the main <ide> event loop. When using any other async mechanism, the following APIs are <ide> necessary to ensure an async operation is properly tracked by the runtime. <ide> <del>### *napi_async_init** <add>### napi_as...
1
Python
Python
fix typo in error message - systems -> system
f69201d71813e8101a5760d600eba9f995a3235b
<ide><path>tests/conftest.py <ide> def skip_if_not_marked_with_system(selected_systems, item): <ide> def skip_system_test(item): <ide> for marker in item.iter_markers(name="system"): <ide> pytest.skip("The test is skipped because it has system marker. " <del> "System tests are only run wh...
1
Python
Python
add flask.config_class feature
ec5b182f15d711aa92fe16480011fbe0fb9d3a63
<ide><path>flask/app.py <ide> def _set_request_globals_class(self, value): <ide> _set_request_globals_class) <ide> del _get_request_globals_class, _set_request_globals_class <ide> <add> #: The class that is used for the ``config`` attribute of this app. <add> #: Defaults ...
3
Python
Python
fix --gid option of celery_multi
990c892426689163d3c4bb84aa24d5f9da78d262
<ide><path>celery/platforms.py <ide> def setegid(gid): <ide> """Set effective group id.""" <ide> gid = parse_gid(gid) <ide> if gid != os.getgid(): <del> os.setegid <add> os.setegid(gid) <ide> <ide> <ide> def seteuid(uid):
1
Javascript
Javascript
remove nonexistant exports.adname
680dda802393ef1513a8a84a353dfc2ecfacacb2
<ide><path>lib/dns.js <ide> exports.NOTFOUND = 'ENOTFOUND'; <ide> exports.NOTIMP = 'ENOTIMP'; <ide> exports.REFUSED = 'EREFUSED'; <ide> exports.BADQUERY = 'EBADQUERY'; <del>exports.ADNAME = 'EADNAME'; <ide> exports.BADNAME = 'EBADNAME'; <ide> exports.BADFAMILY = 'EBADFAMILY'; <ide> exports.BADRESP = 'EBADRESP';
1
Javascript
Javascript
improve test case
f6a86d8c6c771c350bde59525e756f7b420a7c55
<ide><path>test/configCases/optimization/hashed-module-ids/index.js <del>var path = require("path"); <del> <ide> it("should have named modules ids", function() { <ide> for (var i = 1; i <= 5; i++) { <del> var expectedModuleId = "file" + i + ".js"; <ide> var moduleId = require("./files/file" + i + ".js"); <ide> <de...
1
Text
Text
add info on kebab case
5bd6b4f763b1955f2c082f2e6ed6f058028cbce7
<ide><path>guide/english/html/css-classes/index.md <ide> The order of the multiple classes you give to an element is irrelevant. If class <ide> ``` <ide> In this example, border of the element would be green even if the class "voice" comes second in html. <ide> <del>**Note:** Class names are traditionally all lowercas...
1
PHP
PHP
update @method in mailer in sync with
fac87fabe1614495446a287e5f94d16580806328
<ide><path>src/Mailer/Mailer.php <ide> * @method \Cake\Mailer\Email from($email = null, $name = null) <ide> * @method \Cake\Mailer\Email setSender($email, $name = null) <ide> * @method array getSender() <del> * @method \Cake\Mailer\Email sender($email = null, $name = null) <ide> * @method \Cake\Mailer\Email setRepl...
1
Ruby
Ruby
remove redundant check
1f7df4881232246409be800783a59fce6d377483
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_license <ide> <ide> github_license = GitHub.get_repo_license(user, repo) <ide> return unless github_license <del> return if github_license && (licenses + ["NOASSERTION"]).include?(github_license) <add> return if (licenses + ["NO...
1
Text
Text
update readme to warn about master being for 5.0
6cc1b5191bf3db67ffd302ba5931d6c1c49461ec
<ide><path>README.md <add>## Please Note! <add>The master branch is now the development branch for 5.0 and should be considered unstable until the first 5.0 release. If you're looking for the most recent stable release, please refer to the [stable branch](https://github.com/videojs/video.js/tree/stable). <add> <add> <i...
1
PHP
PHP
add core namespace
9e2b98076f1e6f99be8ede54b49c0bb56be9ff9c
<ide><path>src/Command/HelpCommand.php <ide> protected function asText($io, $commands) <ide> } <ide> <ide> /** <del> * @param string[] $names <add> * @param string[] $names Names <ide> * <ide> * @return string|null <ide> */ <ide> protected function findPrefixedName(array $names) <ide> ...
1
Javascript
Javascript
remove code that is not being used
96167d2ce66ff1fca87807fd9615df28003d92c8
<ide><path>src/worker.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <del>/* globals CanvasGraphics, error, globalScope, InvalidPDFException, log, <add>/* globals error, globalScope, InvalidPDFException, log, <ide> MissingPDFE...
1
Go
Go
remove the concept of a root dir out of engine
672edfe807c597a1c245bce996a150dfdf273a3c
<ide><path>docker/docker.go <ide> import ( <ide> "io/ioutil" <ide> "log" <ide> "os" <add> "runtime" <ide> "strings" <ide> <ide> "github.com/dotcloud/docker/api" <ide> func main() { <ide> } <ide> } <ide> <del> eng, err := engine.New(realRoot) <add> if err := checkKernelAndArch(); err != nil { <add> log.F...
8
Javascript
Javascript
convert algorithm to iterative, use less memory
beccf941a98643c57de81007e2ad12f914cfd745
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> } <ide> <ide> getChunkMaps(includeEntries, realHash) { <del> const chunksProcessed = new Set(); <ide> const chunkHashMap = Object.create(null); <ide> const chunkNameMap = Object.create(null); <del> const addChunk = chunk => { <del> if(chunksProcessed.has(chun...
1
Javascript
Javascript
use taskkill to stop the browser on windows
5cce7377afde8e6843199fe647415f1a1c7d3100
<ide><path>test/webbrowser.js <ide> var fs = require('fs'); <ide> var path = require('path'); <ide> var spawn = require('child_process').spawn; <ide> var testUtils = require('./testutils.js'); <add>var shelljs = require('shelljs'); <ide> <ide> var tempDirPrefix = 'pdfjs_'; <ide> <ide> WebBrowser.prototype = { <ide> ...
1
Text
Text
add release notes for 3.0.5
f6033cee87e367ec3a6ffcdd6897656b3e3c0493
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> ## 3.0.x series <ide> <ide> <add>### 3.0.5 <add> <add>**Date**: [10th February 2015][3.0.5-milestone]. <add> <add>* Fix a bug where `_closable_objects` breaks pickling. ([#1850][gh1850], [#2492][...
1
Javascript
Javascript
use rollup legacy mode for www builds
b6a7beefe48d7df9e04cc214b8ef8ea18fe80f39
<ide><path>scripts/rollup/build.js <ide> function createBundle(bundle, bundleType) { <ide> bundle.modulesToStub, <ide> bundle.featureFlags <ide> ), <add> // We can't use getters in www. <add> legacy: bundleType === FB_DEV || bundleType === FB_PROD, <ide> }) <ide> .then(result => <ide> ...
1
Text
Text
remove reference to attr_accessible
e8b26258d0365d57f51eb81b7162fe576da5f6da
<ide><path>guides/source/getting_started.md <ide> The model file, `app/models/post.rb` is about as simple as it can get: <ide> <ide> ```ruby <ide> class Post < ActiveRecord::Base <del> attr_accessible :text, :title <ide> end <ide> ``` <ide> <ide> your Rails models for free, including basic database CRUD (Create, Rea...
1
Python
Python
kick travis. meh
31f45907e559b379b662260032fdabaf7517db7f
<ide><path>rest_framework/__init__.py <ide> <ide> VERSION = __version__ # synonym <ide> <add> <ide> # Header encoding (see RFC5987) <ide> HTTP_HEADER_ENCODING = 'iso-8859-1'
1
Python
Python
add test for loadtxt with none as string type
8697b9cc58815efb16045542833ee30f2623325b
<ide><path>numpy/lib/tests/test_io.py <ide> def test_bad_line(self): <ide> # Check for exception and that exception contains line number <ide> assert_raises_regex(ValueError, "3", np.loadtxt, c) <ide> <add> def test_none_as_string(self): <add> # gh-5155, None should work as string when format...
1
Javascript
Javascript
move domain handling from events to domain
cf4448cbd48e2da0f9461709f27b6cb41ddd2c87
<ide><path>lib/domain.js <ide> const EventEmitter = require('events'); <ide> const errors = require('internal/errors'); <ide> const { createHook } = require('async_hooks'); <ide> <del>// communicate with events module, but don't require that <del>// module to have to load this one, since this module has <del>// a few ...
2
Python
Python
allow zip64 extensions in .npz files; allows > 2gb
68e31fe815e0cb6276970a1c365f21e187d10ca0
<ide><path>numpy/lib/npyio.py <ide> def __getattribute__(self, key): <ide> except KeyError: <ide> raise AttributeError, key <ide> <del> <add>def zipfile_factory(*args, **kwargs): <add> import zipfile <add> if sys.version_info >= (2, 5): <add> kwargs['allowZip64'] = True <add> return...
1
Python
Python
fix error with torch.no_grad and loss computation
2d07f945adfd41389b5dd45d85af37d404a09599
<ide><path>hubconfs/bert_hubconf.py <ide> def bertForSequenceClassification(*args, **kwargs): <ide> seq_classif_logits = model(tokens_tensor, segments_tensors) <ide> # Or get the sequence classification loss <ide> >>> labels = torch.tensor([1]) <del> >>> with torch.no_grad(): <del...
1
Javascript
Javascript
extract listener check as a function
a3d9168293b6646a3f183ad9d27d6f969b88576f
<ide><path>lib/events.js <ide> function lazyErrors() { <ide> return errors; <ide> } <ide> <add>function checkListener(listener) { <add> if (typeof listener !== 'function') { <add> const errors = lazyErrors(); <add> throw new errors.ERR_INVALID_ARG_TYPE('listener', 'Function', listener); <add> } <add>} <add> ...
1
Mixed
Ruby
fix controller test not resetting @_url_options
a351149e805910cd980bee1558e56e61c4a82db2
<ide><path>actionpack/CHANGELOG.md <add>* Fix URL generation in controller tests with request-dependent <add> `default_url_options` methods. <add> <add> *Tony Wooster* <add> <ide> Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionpack/CHANGELOG.md) for previous changes. <ide><path>a...
4
Javascript
Javascript
add pointerenter/leave priorities
148f8e497c7d37a3c7ab99f01dec2692427272b1
<ide><path>packages/react-dom/src/events/ReactDOMEventListener.js <ide> export function getEventPriority(domEventName: DOMEventName): * { <ide> // eslint-disable-next-line no-fallthrough <ide> case 'mouseenter': <ide> case 'mouseleave': <add> case 'pointerenter': <add> case 'pointerleave': <ide> ...
1
Text
Text
fix broken link
060a3b632f6f6ff2f84235d1be5da55020c40ff3
<ide><path>docs/api-guide/pagination.md <ide> The [`drf-proxy-pagination` package][drf-proxy-pagination] includes a `ProxyPagi <ide> <ide> ## link-header-pagination <ide> <del>The [`django-rest-framework-link-header-pagination` package][drf-link-header-pagination] includes a `LinkHeaderPagination` class which provide...
1
Ruby
Ruby
remove duplicate letter 'a'. [ci skip]
33eec08dfd5672ffdd84a9d00e6115144bfa8bc7
<ide><path>actionpack/lib/action_controller/metal/responder.rb <ide> module ActionController #:nodoc: <ide> # <ide> # respond_with(@project, location: root_path) <ide> # <del> # To customize the failure scenario, you can pass a a block to <add> # To customize the failure scenario, you can pass a block to <ide...
1
Javascript
Javascript
register initial route (#508)
af2d78c042e02fe79b52e68a6c313655c359787a
<ide><path>lib/router/router.js <del>import { parse } from 'url' <add>import { parse, format } from 'url' <ide> import evalScript from '../eval-script' <ide> import shallowEquals from '../shallow-equals' <ide> <ide> export default class Router { <ide> this.onPopState = this.onPopState.bind(this) <ide> <ide> i...
1
PHP
PHP
add tests for multi-row inserts
95155f772912f9b339e9da9fc1a61b9f19fdcc8b
<ide><path>tests/Database/DatabaseEloquentIntegrationTest.php <ide> public function testBasicMorphManyRelationship() <ide> $this->assertEquals('First Post', $photos[3]->imageable->name); <ide> } <ide> <add> <add> public function testMultiInsertsWithDifferentValues() <add> { <add> $date = '1970-01-01'; <add> $resu...
1
Javascript
Javascript
fix references to undefined `cb`
873297753642e77fb556d13a0e4bc228f34171bd
<ide><path>lib/_tls_wrap.js <ide> function oncertcb(info) { <ide> return self.destroy(err); <ide> <ide> if (!self._handle) <del> return cb(new Error('Socket is closed')); <add> return self.destroy(new Error('Socket is closed')); <ide> <ide> self._handle.certCbDone(); <ide> }); <i...
1
Javascript
Javascript
add accessor function to isvalid
7a36cb42187f15f08782807e33ee50de9ab24245
<ide><path>src/lib/duration/constructor.js <ide> export function Duration (duration) { <ide> var normalizedInput = normalizeObjectUnits(duration); <ide> <ide> this._isValid = isDurationValid(normalizedInput); <add> this.isValid = () => this._isValid; <ide> <ide> var years = this._isValid && normalizedI...
2
Text
Text
fix return value of language.update (closes )
7534f7cb44a950232ad427f217c99fbea5ca8b37
<ide><path>website/docs/api/language.md <ide> Update the models in the pipeline. <ide> | `drop` | float | The dropout rate. ...
1
Ruby
Ruby
fix a merge fail syntax issue
476aca0967730360c31bc9aa5c08cf6aa7c0c9fe
<ide><path>lib/action_cable/channel/base.rb <ide> class Base <ide> SUBSCRIPTION_CONFIRMATION_INTERNAL_MESSAGE = 'confirm_subscription'.freeze <ide> SUBSCRIPTION_REJECTION_INTERNAL_MESSAGE = 'reject_subscription'.freeze <ide> <del> attr_reader :params, :connection, ::identifier <add> attr_reader :...
1
Javascript
Javascript
check undefined tagname for svg event target
74eb17d7c8232f72f134bf2546f10fed7234d276
<ide><path>src/ngTouch/directive/ngClick.js <ide> 'use strict'; <ide> <del>/* global ngTouch: false */ <add>/* global ngTouch: false, <add> nodeName_: false <add>*/ <ide> <ide> /** <ide> * @ngdoc directive <ide> ngTouch.directive('ngClick', ['$parse', '$timeout', '$rootElement', <ide> lastLabelClickCoordinate...
3
PHP
PHP
remove extra space
8a980746e65ebb90614f680a31d4b139f1eb6ddc
<ide><path>src/View/View.php <ide> public function pluginSplit($name, $fallback = true) <ide> $name = $second; <ide> $plugin = $first; <ide> } <del> <ide> if (isset($this->plugin) && !$plugin && $fallback) { <ide> $plugin = $this->plugin; <ide> }
1
Java
Java
add space separator in jsonpathexpectationshelper
09341b996e17e3c526d77a0de3b3048771a4cbb3
<ide><path>spring-test/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java <ide> else if (actualValue != null && expectedValue != null) { <ide> assertEquals("For JSON path " + this.expression + " type of value", <ide> expectedValue.getClass(), actualValue.getClass()); <ide> } <del> as...
1
Javascript
Javascript
replace concatenation with template literals
c24a73d23c098e5cde7e55ce0c97f6daa11facc9
<ide><path>test/inspector/inspector-helper.js <ide> Harness.prototype.addStderrFilter = function(regexp, callback) { <ide> <ide> Harness.prototype.assertStillAlive = function() { <ide> assert.strictEqual(this.running_, true, <del> 'Child died: ' + JSON.stringify(this.result_)); <add> ...
3
Ruby
Ruby
move builderror and exceutionerror to global.h
a4e86bb3264a17e0d5227e058d8bc4ea17f3dfbb
<ide><path>Library/Homebrew/formula.rb <ide> # <ide> require 'download_strategy' <ide> <del>class ExecutionError <RuntimeError <del> def initialize cmd, args=[] <del> super "Failure while executing: #{cmd} #{args*' '}" <del> end <del>end <del>class BuildError <ExecutionError <del>end <ide> class FormulaUnavailabl...
2
Javascript
Javascript
convert doctype and names
e23a6a320ed7dfc229a3adf849513e2cbd293c17
<ide><path>src/ng/animate.js <ide> var $AnimateProvider = ['$provide', function($provide) { <ide> <ide> /** <ide> * <del> * @ngdoc function <del> * @name ng.$animate#setClass <del> * @methodOf ng.$animate <add> * @ngdoc method <add> * @name $animate#setClass <ide> * @f...
1
Python
Python
fix awkward log info in dbapi_hook
06cde6b05acca1620da97481553b120c4ffe35b6
<ide><path>airflow/hooks/dbapi_hook.py <ide> def insert_rows(self, table, rows, target_fields=None, commit_every=1000, <ide> if commit_every and i % commit_every == 0: <ide> conn.commit() <ide> self.log.info( <del> "Loaded %s...
1
Python
Python
remove an assert
98abe4b8aa7580e4a381fd03451741c0db45db53
<ide><path>official/modeling/model_training_utils.py <ide> def run_customized_training_loop( <ide> assert tf.executing_eagerly() <ide> <ide> if run_eagerly: <del> if steps_per_loop > 1: <del> raise ValueError( <del> 'steps_per_loop is used for performance optimization. When you want ' <del> ...
1
Text
Text
add information about modules cache behavior
6eae41480bb8944684f345e4ce82c8333e884a2f
<ide><path>doc/api/modules.md <ide> NODE_MODULES_PATHS(START) <ide> <ide> <!--type=misc--> <ide> <del>Modules are cached after the first time they are loaded. This means <del>(among other things) that every call to `require('foo')` will get <del>exactly the same object returned, if it would resolve to the same file. ...
1
Javascript
Javascript
add support for additional digest types
205d3a05ee2a1cce4a4b8d7c270beaee784cfe78
<ide><path>lib/util/hash/wasm-hash.js <ide> class WasmHash { <ide> const { exports, buffered, mem, digestSize } = this; <ide> exports.final(buffered); <ide> this.instancesPool.push(this); <del> return mem.toString("latin1", 0, digestSize); <add> const hex = mem.toString("latin1", 0, digestSize); <add> if (type...
1
Go
Go
fix windows tag in pkg/term
7b3492df0c3c92215c2ed6f3e8b6cd8f7cf11855
<ide><path>pkg/term/term_windows.go <ide> // +build windows <add> <ide> package term <ide> <ide> import (
1
Javascript
Javascript
remove the unnecessary this.buf in ccittfaxstream
33dd1b0c3c58acf677486c20e85d5bd3870e555d
<ide><path>src/core/stream.js <ide> var CCITTFaxStream = (function CCITTFaxStreamClosure() { <ide> this.inputBits = 0; <ide> this.inputBuf = 0; <ide> this.outputBits = 0; <del> this.buf = EOF; <ide> <ide> var code1; <ide> while ((code1 = this.lookBits(12)) === 0) { <ide> var CCITTFaxStream = (fu...
1
Ruby
Ruby
extract local cache middleware
cb172db3ff5ba1b08b0a2be4a22abdaca4267903
<ide><path>activesupport/lib/active_support/cache/strategy/local_cache.rb <ide> require 'active_support/core_ext/object/duplicable' <ide> require 'active_support/core_ext/string/inflections' <del>require 'rack/body_proxy' <ide> <ide> module ActiveSupport <ide> module Cache <ide> module Strategy <ide> # duratio...
2
Text
Text
improve readability of the russian text
b2925645d753db2ba84ad0103ff5388db9a629a2
<ide><path>guide/russian/javascript/if-else-statement/index.md <ide> localeTitle: If-Else Statement <ide> --- <ide> ## Введение <ide> <del>Оператор `if` выполняет оператор, если указанное условие `true` . Если условие `false` , другой оператор может быть выполнен с использованием инструкции `else` . <add>Оператор `if`...
1
Javascript
Javascript
update example to use a module
84dc989cf029b2a5940a04fb99ad3ff9e0728e19
<ide><path>src/ng/directive/ngEventDirs.js <ide> forEach( <ide> * ({@link guide/expression#-event- Event object is available as `$event`}) <ide> * <ide> * @example <del> <example> <add> <example module="submitExample"> <ide> <file name="index.html"> <ide> <script> <del> function Ctrl($scope) { ...
1
PHP
PHP
improve console testing with interactive input
eca8751c3223df4b19ae4f82c95ec6d11243f273
<ide><path>src/TestSuite/ConsoleIntegrationTestTrait.php <ide> <ide> use Cake\Console\Command; <ide> use Cake\Console\CommandRunner; <del>use Cake\Console\ConsoleInput; <ide> use Cake\Console\ConsoleIo; <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Core\Configure; <ide> use Cake\TestSuite\Constraint\C...
2
PHP
PHP
add an empty error bag for http exceptions
8dce475aac47fea67694bb5739e20746f99a0ac0
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> use Illuminate\Routing\Router; <ide> use Illuminate\Http\JsonResponse; <ide> use Illuminate\Support\Facades\Auth; <add>use Illuminate\Support\ViewErrorBag; <ide> use Illuminate\Filesystem\Filesystem; <ide> use Illuminate\Http\RedirectResponse; <ide> use ...
1
Javascript
Javascript
fix typo in test-inspector-cluster-port-clash.js
d6b1b84ca0b6465e1517d5e8380953426ace0f49
<ide><path>test/known_issues/test-inspector-cluster-port-clash.js <ide> if (process.config.variables.v8_enable_inspector === 0) { <ide> const cluster = require('cluster'); <ide> const net = require('net'); <ide> <del>common.crashOnUnhandleRejection(); <add>common.crashOnUnhandledRejection(); <ide> <ide> const ports =...
1
Javascript
Javascript
revert the anonymous use of define
80045bf006175da840d8542b0c0b46e50595bb29
<ide><path>moment.js <ide> } <ide> /*global define:false */ <ide> if (typeof define === "function" && define.amd) { <del> define(function () { <add> define("moment", [], function () { <ide> return moment; <ide> }); <ide> }
1
Mixed
Javascript
support uint8array input to methods
f2ef850f11736fdd0281da15eec39c0ae0c59c0f
<ide><path>doc/api/fs.md <ide> added: v0.0.2 <ide> --> <ide> <ide> * `fd` {Integer} <del>* `buffer` {String | Buffer} <add>* `buffer` {String | Buffer | Uint8Array} <ide> * `offset` {Integer} <ide> * `length` {Integer} <ide> * `position` {Integer} <ide> added: v0.1.21 <ide> --> <ide> <ide> * `fd` {Integer} <del>* `bu...
5
Ruby
Ruby
remove strange else block
19c144f1b3d441d2cc7b227c68b3971f12d42c0c
<ide><path>actionpack/lib/action_view/helpers/text_helper.rb <ide> def excerpt(text, phrase, *args) <ide> options.reverse_merge!(:radius => 100, :omission => "...") <ide> <ide> phrase = Regexp.escape(phrase) <del> if found_pos = text.mb_chars =~ /(#{phrase})/i <del> start_pos = [ found_...
1
Javascript
Javascript
move init into local-cli
29325d7cb3e6838b56494affda5d21e84ebebc83
<ide><path>local-cli/cli.js <ide> var spawn = require('child_process').spawn; <ide> var path = require('path'); <ide> <del>var init = require('../init.js'); <add>var init = require('./init.js'); <ide> var install = require('./install.js'); <ide> var bundle = require('./bundle.js'); <ide> <add><path>local-cli/init.js ...
2
PHP
PHP
fix 7.3 regression with short closure
416339e57a0b49f7df89b4425c2c07f7baea014b
<ide><path>src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php <ide> protected function compileAnsiOffset(Builder $query, $components) <ide> // move the bindings to the right position: right after "select". <ide> if ($this->queryOrderContainsSubquery($query)) { <ide> $preferredBindin...
1
Java
Java
change the textalign setter to support rtl
ba56043715f346eafa41e754af471eb385d4bd01
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java <ide> public void onCollectExtraUpdates(UIViewOperationQueue uiViewOperationQueue) { <ide> super.onCollectExtraUpdates(uiViewOperationQueue); <ide> if (mJsEventCount != UNSET) { <ide> ReactTextUpdate reactTextUpdate = <del> ...
1
Ruby
Ruby
redirect bundler stdout to stderr
07d571bebc5b05a86e5dc8ebf9c51ec9836da81d
<ide><path>Library/Homebrew/dev-cmd/vendor-gems.rb <ide> def vendor_gems <ide> end <ide> <ide> ohai "bundle install --standalone" <del> safe_system "bundle", "install", "--standalone" <add> safe_system_redirect_stdout_to_stderr "bundle", "install", "--standalone" <ide> <ide> ohai "bundle p...
3
Text
Text
allow spaces before brackets
4d620dea1a520e2f06cb0eed9a2a6a7ff7466755
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/use-bracket-notation-to-find-the-first-character-in-a-string.md <ide> assert(firstLetterOfLastName === 'L'); <ide> You should use bracket notation. <ide> <ide> ```js <del>assert(code.match(/firstLetterOfLastName\s*?=...
2
Javascript
Javascript
add @deprecated to rgbformat
920a716c719f79ec0705d777c7e174513dcbd4f6
<ide><path>src/constants.js <ide> export const UnsignedShort4444Type = 1017; <ide> export const UnsignedShort5551Type = 1018; <ide> export const UnsignedInt248Type = 1020; <ide> export const AlphaFormat = 1021; <del>export const RGBFormat = 1022; <add>export const RGBFormat = 1022; // @deprecated since r137 <ide> expor...
1
Python
Python
add the tests in setup file for testing package
640018fac45026b3fd70846c62297bfedac5afa3
<ide><path>numpy/testing/setup.py <ide> def configuration(parent_package='',top_path=None): <ide> from numpy.distutils.misc_util import Configuration <ide> config = Configuration('testing',parent_package,top_path) <add> <add> config.add_data_dir('tests') <ide> return config <ide> <ide> if __name__ == '_...
1
Python
Python
add '-' to separate git hash in version
a07ac0f4703cbac0e8747ac0e9e08f41cba9b896
<ide><path>setup.py <ide> def write_version_py(filename='numpy/version.py'): <ide> """ <ide> FULL_VERSION = VERSION <ide> if not ISRELEASED: <del> FULL_VERSION += '.dev' <ide> if os.path.exists('.git'): <ide> GIT_REVISION = git_version() <ide> elif os.path.exists(filename): <i...
1
PHP
PHP
add proper charset to web test runner
dec67ef2599e9985cc923b7f5cd81f55685db751
<ide><path>lib/Cake/TestSuite/Reporter/CakeHtmlReporter.php <ide> class CakeHtmlReporter extends CakeBaseReporter { <ide> */ <ide> public function paintHeader() { <ide> $this->_headerSent = true; <add> $this->sendContentType(); <ide> $this->sendNoCacheHeaders(); <ide> $this->paintDocumentStart(); <ide> $this...
1
Javascript
Javascript
improve tests and test infrastructure
e463c432f74d0b0340d33af2157db4ab896d1f72
<ide><path>test/ConfigTestCases.test.js <ide> describe("ConfigTestCases", () => { <ide> let content; <ide> let p; <ide> if (Array.isArray(module)) { <del> p = path.join(currentDirectory, module[0]); <del> content = module <add> p = path.join(currentDirec...
7
Javascript
Javascript
drop auth in `url.resolve()` if host changes
eb4201f07a1b1f430ddf4efad4f276f3088def97
<ide><path>lib/url.js <ide> Url.prototype.resolveObject = function(relative) { <ide> if (relative.protocol) { <ide> relative.hostname = null; <ide> relative.port = null; <add> result.auth = null; <ide> if (relative.host) { <ide> if (relPath[0] === '') relPath[0] = relative.host; <ide>...
2
Javascript
Javascript
fix frontpage example to retain selection
00adabc20dfcffb379b7f0b06fa2729ae1bff2a0
<ide><path>docs/_js/examples/timer.js <ide> var Timer = React.createClass({\n\ <ide> },\n\ <ide> render: function() {\n\ <ide> return React.DOM.div({},\n\ <del> 'Seconds Elapsed: ' + this.state.secondsElapsed\n\ <add> 'Seconds Elapsed: ', this.state.secondsElapsed\n\ <ide> );\n\ <ide> }\n\ <ide>...
1
Ruby
Ruby
handle more exceptions on uninstall
b4b17fa892404a67049f72ea0408ee7998117004
<ide><path>Library/Homebrew/keg.rb <ide> def self.find_some_installed_dependents(kegs) <ide> f = keg.to_formula <ide> keg_formulae << f <ide> [f.name, f.tap] <del> rescue FormulaUnavailableError <add> rescue <ide> # If the formula for the keg can't be found, <ide> # fall back to the ...
1
Javascript
Javascript
use global `angular` to access helpers in `they`
caa0b9dab3945ed824543781b1ffb65d763581c9
<ide><path>test/helpers/privateMocks.js <ide> /* globals xit */ <ide> <ide> function baseThey(msg, vals, spec, itFn) { <del> var valsIsArray = isArray(vals); <add> var valsIsArray = angular.isArray(vals); <ide> <del> forEach(vals, function(val, key) { <add> angular.forEach(vals, function(val, key) { <ide> var...
1
Python
Python
fix typograpical errors
d6a677b14bcfd56b22fafeb212a27c6068886e07
<ide><path>src/transformers/modeling_albert.py <ide> def forward(self, hidden_states, attention_mask=None, head_mask=None): <ide> <ide> class AlbertPreTrainedModel(PreTrainedModel): <ide> """ An abstract class to handle weights initialization and <del> a simple interface for dowloading and loading pretraine...
22
Java
Java
fix checkstyle violations
15321a31633c7a9d0f838783640e7148472e4d9a
<ide><path>spring-web/src/test/java/org/springframework/http/ContentDispositionTests.java <ide> public void parseEncodedFilenameWithInvalidName() { <ide> @Test // gh-23077 <ide> public void parseWithEscapedQuote() { <ide> <del> BiConsumer<String, String> tester = (description, filename) -> { <add> BiConsumer<Strin...
1
Ruby
Ruby
enforce conflicts_with placement
11a1c495f7aec573e0e5e2f286036f8e6f0aa1ad
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_file <ide> [/^ keg_only/, "keg_only"], <ide> [/^ option/, "option"], <ide> [/^ depends_on/, "depends_on"], <add> [/^ conflicts_with/, "conflicts_with"], <ide>...
1
Javascript
Javascript
remove private enumerablecontent{will,did}change
bb626b6b15479c477f3c46c86d38d6581b8455d6
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> export function arrayContentWillChange(array, startIdx, removeAmt, addAmt) { <ide> <ide> sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]); <ide> <del> array.enumerableContentWillChange(removeAmt, addAmt); <add> propertyWillChange(a...
1
PHP
PHP
remove elapsed time from front controller
04f7661292e1cefb11f7510964a83085df884659
<ide><path>public/index.php <ide> * @link http://laravel.com <ide> */ <ide> <add>// -------------------------------------------------------------- <add>// Tick... Tock... Tick... Tock... <add>// -------------------------------------------------------------- <ide> define('LARAVEL_START', microtime(true)); <ide> ...
1
Python
Python
fix misleading comment in babi_memnn.py
d3227855439b69883bfc5e0ed7d94efd704dec29
<ide><path>examples/babi_memnn.py <ide> def vectorize_stories(data, word_idx, story_maxlen, query_maxlen): <ide> output_dim=64, <ide> input_length=story_maxlen)) <ide> # output: (samples, story_maxlen, embedding_dim) <del># embed the question into a single vec...
1
Javascript
Javascript
add view config for pulltorefresh
9f8305a8375f7354f621c2feb7554ed7cd4b202d
<add><path>Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js <del><path>Libraries/Components/RefreshControl/RCTRefreshControlNativeComponent.js <ide> <ide> 'use strict'; <ide> <add>import type { <add> BubblingEvent, <add> WithDefault, <add> CodegenNativeComponent, <add>} from '../../Types/Cod...
4
PHP
PHP
suggest methods that exist in deprecation warnings
424c173ab87db8f30229e02d17047865d9faf82a
<ide><path>src/Controller/Controller.php <ide> public function __get($name) <ide> */ <ide> public function __set($name, $value) <ide> { <del> if (in_array($name, ['layout', 'view', 'theme', 'autoLayout', 'viewPath', 'layoutPath'], true)) { <add> $deprecated = [ <add> 'layout' => 'l...
2
Mixed
Python
parse args from .args file or json
1e616c0af33f128569c7b81a7759acb095b29675
<ide><path>examples/ner/README.md <ide> python3 run_ner.py --data_dir ./ \ <ide> <ide> If your GPU supports half-precision training, just add the `--fp16` flag. After training, the model will be both evaluated on development and test datasets. <ide> <add>### JSON-based configuration file <add> <add>Instead of passing...
2
Javascript
Javascript
add providedinfo test case
6eff5de1df62e1e60d2f6409ce8e81d49ea18d0a
<ide><path>test/cases/parsing/harmony-deep-exports/cjs2.js <add>module.exports = require("./cjs3"); <ide><path>test/cases/parsing/harmony-deep-exports/cjs3.js <add>exports.a = 1; <add>exports.b = 2; <add>exports.cjs3DefaultProvidedInfo = __webpack_exports_info__.default.provideInfo; <ide><path>test/cases/parsing/harmon...
4
Python
Python
improve tests for snowflake hook
9ea459a6bd8073f16dc197b1147f220293557dc8
<ide><path>airflow/providers/snowflake/hooks/snowflake.py <ide> def run( <ide> self.log.info("Statement execution info - %s", row) <ide> execution_info.append(row) <ide> <add> query_id = cur.sfqid <ide> self.log.info("Rows affected:...
2
Text
Text
fix bugs in rails_on_rack [ci-skip]
c04abbaa6366771db7434dea32f4f5b747fda1dc
<ide><path>guides/source/rails_on_rack.md <ide> WARNING: This guide assumes a working knowledge of Rack protocol and Rack concep <ide> Introduction to Rack <ide> -------------------- <ide> <del>bq. Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP reques...
1
PHP
PHP
apply fixes from styleci
04d90b85cd486b217961900ebca5be783367cb88
<ide><path>src/Illuminate/Http/Request.php <ide> protected function getInputSource() <ide> * @param \Illuminate\Http\Request|null $to <ide> * @return static <ide> */ <del> public static function createFrom(Request $from, $to = null) <add> public static function createFrom(self $from, $to = null) ...
1
Ruby
Ruby
remove extraneous file
c3c70f137bfaa651b9745529cffaac3f4b622840
<ide><path>scripts/helpers/parsed_file.rb <del>require 'fileutils' <del> <del>class ParsedFile <del> <del> def get_latest_file(directory) <del> puts "- retrieving latest file in directory: #{directory}" <del> Dir.glob("#{directory}/*").max_by(1) {|f| File.mtime(f)}[0] <del> end <del> <del> def save_to(director...
1
Ruby
Ruby
run tests for both build environments
38974ed6b52cd65e6ab6e6b150a6b00cd80bbc4f
<ide><path>Library/Homebrew/test/test_ENV.rb <ide> require 'testing_env' <ide> require 'extend/ENV' <ide> <del>class EnvironmentTests < Homebrew::TestCase <add>module SharedEnvTests <ide> def setup <ide> @env = {}.extend(EnvActivation) <del> @env.activate_extensions! <ide> end <ide> <ide> def test_switch...
1
Javascript
Javascript
add version property to reactdom
9944bf27fb75b330202f51f58a2ce5c0ea778bef
<ide><path>packages/react-dom/src/client/ReactDOM.js <ide> const ReactDOM: Object = { <ide> IsThisRendererActing, <ide> ], <ide> }, <add> <add> version: ReactVersion, <ide> }; <ide> <ide> if (exposeConcurrentModeAPIs) {
1
Javascript
Javascript
prevent unusual commas in iframe
9c386c829f1ee01706e66bf99474ae51aa699031
<ide><path>client/src/templates/Challenges/rechallenge/builders.js <ide> A required file can not have both a src and a link: src = ${src}, link = ${link} <ide> } <ide> return ''; <ide> }) <del> .reduce((head, element) => head.concat(element), []); <add> .join('\n'); <ide> <ide> const indexHtml ...
1
Text
Text
add notes on include and namespacing. closes
8dc95ee22181de6e38c7187426bca9fcee9d7927
<ide><path>docs/api-guide/routers.md <ide> This means you'll need to explicitly set the `base_name` argument when registeri <ide> <ide> --- <ide> <add>### Using `include` with routers <add> <add>The `.urls` attribute on a router instance is simply a standard list of URL patterns. There are a number of different style...
1
Javascript
Javascript
convert application_test to test resolver
e53c8d247965820b066eb1166f0ea3e055852fc2
<ide><path>packages/ember-application/tests/system/application_test.js <ide> import { <ide> _loaded <ide> } from 'ember-runtime'; <ide> import { compile } from 'ember-template-compiler'; <del>import { setTemplates, setTemplate } from 'ember-glimmer'; <add>import { setTemplates } from 'ember-glimmer'; <ide> import { p...
4
PHP
PHP
use minimal error layout
83ca9a7706a8091de9da17cb687a0852c9ef1960
<ide><path>src/Illuminate/Foundation/Exceptions/views/401.blade.php <del>@extends('errors::illustrated-layout') <add>@extends('errors::minimal') <ide> <del>@section('code', '401') <ide> @section('title', __('Unauthorized')) <del> <del>@section('image') <del><div style="background-image: url({{ asset('/svg/403.svg') }}...
8
Javascript
Javascript
stop immediate propagation on tap events
a7d624affe53ead68bf70bf0bb6eedee34f728da
<ide><path>src/js/component.js <ide> vjs.Component.prototype.emitTapEvents = function(){ <ide> <ide> // When the touch ends, measure how long it took and trigger the appropriate <ide> // event <del> this.on('touchend', function() { <add> this.on('touchend', function(event) { <add> event.stopImmediatePropagati...
2
Ruby
Ruby
remove needless blank lines [ci skip]
11c06d3cbf17bb6133108df4207440a545bdc052
<ide><path>actionview/lib/action_view/helpers/form_options_helper.rb <ide> def collection_select(object, method, collection, value_method, text_method, opt <ide> # array of child objects representing the <tt><option></tt> tags. It can also be any object that responds <ide> # to +call+, such as a +proc+,...
1
Go
Go
enable direct io
d18f5c3808f8df40fb8e3e153887e921bc71103b
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> func (a *Driver) aufsMount(ro []string, rw, target, mountLabel string) (err erro <ide> // Mount options are clipped to page size(4096 bytes). If there are more <ide> // layers then these are remounted individually using append. <ide> <del> b := make([]byte, syscall.Ge...
1
Ruby
Ruby
test that a datetime acts_like_date
6343227bb0b3bab1b4e3c9e71ce169b9c462ce0f
<ide><path>activesupport/test/core_ext/date_time_ext_test.rb <ide> def test_current_with_time_zone <ide> end <ide> end <ide> <add> def test_acts_like_date <add> assert DateTime.new.acts_like_date? <add> end <add> <ide> def test_acts_like_time <ide> assert DateTime.new.acts_like_time? <ide> end
1