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 | add typehints to form widgets | 87879693ddaf91e8030a501f562c958bc516ed15 | <ide><path>src/View/Widget/BasicWidget.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> public function __construct($templates)
<ide> * @param \Ca... | 13 |
Text | Text | add missing parenthesis | b63898bb782661949f8d5c4b29696db533d8e96d | <ide><path>docs/recipes/reducers/SplittingReducerLogic.md
<ide> For clarity, these terms will be used to distinguish between different types of
<ide> - ***root reducer***: the reducer function that is actually passed as the first argument to `createStore`. This is the only part of the reducer logic that _must_ have th... | 1 |
Text | Text | add v3.15.0 to changelog | c76e584adef6a613799e4611499b6078eedafd99 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.15.0-beta.5 (December 4, 2019)
<del>
<del>- [#18582](https://github.com/emberjs/ember.js/pull/18582) [BUGFIX] Ensure `loader.js` is transpiled to the applications specified targets (from `config/targets.js`).
<del>
<del>### v3.15.0-beta.4 (November 25, ... | 1 |
Text | Text | remove reference to mad libs | 6d7b49ffe029c7e2950ef9673459d690a896e4ea | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/word-blanks.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<del>`wordBlanks` should contain all of the words assigned to the variables `myNoun`, `myVerb`, `myAdjective` and `myAdverb` separated by non-word characters (and... | 1 |
PHP | PHP | use output buffering instead of a log file | 5f86f594aa09fb6a61e3c5b86bbdf646800cc69a | <ide><path>tests/TestCase/Console/ShellTest.php
<ide> public function testRunCommandHittingTaskInSubcommand()
<ide> */
<ide> public function testDispatchShell()
<ide> {
<del> $this->skipIf(!touch(TEST_APP . 'shell.log'), 'Can\'t write shell test log file');
<ide> $Shell = new TestingDispatch... | 2 |
Javascript | Javascript | fix dragcontrols for containers not at (0,0) | 5b1b197305a7bdfa58e118ece1ee7375a6560dbf | <ide><path>examples/js/controls/DragControls.js
<ide> THREE.DragControls = function ( _objects, _camera, _domElement ) {
<ide>
<ide> event.preventDefault();
<ide>
<del> _mouse.x = ( event.clientX / _domElement.clientWidth ) * 2 - 1;
<del> _mouse.y = - ( event.clientY / _domElement.clientHeight ) * 2 + 1;
<add> v... | 1 |
Text | Text | improve rinfo object documentation | 109bfd21d881f9559d08c1cf5f99822a054ed44f | <ide><path>doc/api/dgram.md
<ide> datagram messages. This occurs as soon as UDP sockets are created.
<ide> added: v0.1.99
<ide> -->
<ide>
<add>The `'message'` event is emitted when a new datagram is available on a socket.
<add>The event handler function is passed two arguments: `msg` and `rinfo`.
<ide> * `msg` {Buffer... | 1 |
Mixed | Javascript | add compile time to statistics | e60514aac19986481ae1fa7ecb98e8e9f8554429 | <ide><path>README.md
<ide> else `stats` as json:
<ide> ``` javascript
<ide> {
<ide> hash: "52bd9213...38d",
<add> time: 1234, // in ms
<ide> chunkCount: 2,
<ide> modulesCount: 10,
<ide> modulesIncludingDuplicates: 10,
<ide><path>lib/formatOutput.js
<ide> module.exports = function(stats, options) {
<ide> }
<ide>
<... | 3 |
PHP | PHP | convert log to use new registry object | 9778b62879b56a910da84b3d79014f0ed95c6bd1 | <ide><path>lib/Cake/Log/Log.php
<ide> protected static function _init() {
<ide> */
<ide> protected static function _loadConfig() {
<ide> $loggers = Configure::read('Log');
<del> foreach ((array)$loggers as $key => $config) {
<del> static::$_registry->load($key, $config);
<add> foreach ((array)$loggers as $name ... | 2 |
Text | Text | fix indent on as changelog [ci skip] | aaa5463cc0d81e400ddfb4fdacc0caee319fd587 | <ide><path>activesupport/CHANGELOG.md
<ide>
<ide> Imported from https://github.com/37signals/concerning#readme
<ide>
<del> class Todo < ActiveRecord::Base
<del> concerning :EventTracking do
<del> included do
<del> has_many :events
<del> end
<del>
<del> def latest_... | 1 |
Go | Go | support zstd with skippable frame | 23abee412ba02db8f322ae67687cd2e0c6af0c1d | <ide><path>pkg/archive/archive.go
<ide> import (
<ide> "compress/bzip2"
<ide> "compress/gzip"
<ide> "context"
<add> "encoding/binary"
<ide> "fmt"
<ide> "io"
<ide> "os"
<ide> func IsArchivePath(path string) bool {
<ide> return err == nil
<ide> }
<ide>
<add>const (
<add> zstdMagicSkippableStart = 0x184D2A50
<add>... | 2 |
Javascript | Javascript | use strict comparison for isselected with selectas | 9e305948e4965fb86b0c79985dc6e8c59a9c66af | <ide><path>src/ng/directive/select.js
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<ide> if (multiple) {
<ide> return isDefined(selectedSet.remove(callExpression(compareValueFn, key, value)));
<ide> } else {
<del> return viewValue =... | 2 |
Ruby | Ruby | pass the starting env and session to build_request | 3cae6bc5fc8765b5a06fd3d123528159d1f850b7 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def setup_controller_request_and_response
<ide> end
<ide> end
<ide>
<del> @request = build_request
<add> @request = build_request({}, TestRequest.new_session)
<ide> @request.env["rack.request.cookie... | 2 |
Go | Go | remove rules for linkgraph.db sqlite database | e553a03627c20cbedb97f5f8cb4b02a0ff47c54e | <ide><path>contrib/apparmor/template.go
<ide> profile /usr/bin/docker (attach_disconnected, complain) {
<ide> capability,
<ide> owner /** rw,
<ide> @{DOCKER_GRAPH_PATH}/** rwl,
<del> @{DOCKER_GRAPH_PATH}/linkgraph.db k,
<ide> @{DOCKER_GRAPH_PATH}/network/files/boltdb.db k,
<ide> @{DOCKER_GRAPH_PATH}/network/... | 1 |
Javascript | Javascript | redirect old wiki urls to root of forum | 88557bfa4be92b7f966d3025473f28bda1d9cb70 | <ide><path>server/boot/t-wiki.js
<ide> module.exports = function(app) {
<ide> var router = app.loopback.Router();
<del> router.get('/wiki/*', showWiki);
<del> router.get('/wiki', (req, res) => res.redirect(301, '/wiki/en/'));
<add> router.get('/wiki/*', showForum);
<ide>
<ide> app.use(router);
<ide>
<del> fun... | 1 |
Python | Python | clarify documentation for np.fft.ifft | 44293bb2834f2a4495dacee4ba112a3bfeef5b0c | <ide><path>numpy/fft/fftpack.py
<ide> def ifft(a, n=None, axis=-1, norm=None):
<ide> see `numpy.fft`.
<ide>
<ide> The input should be ordered in the same way as is returned by `fft`,
<del> i.e., ``a[0]`` should contain the zero frequency term,
<del> ``a[1:n/2]`` should contain the positive-frequency term... | 1 |
Python | Python | remove get_session() call in multi_gpu_utils.py | 408a344e50ef809812febc6e8dcabd34cfc11c60 | <ide><path>keras/utils/multi_gpu_utils.py
<ide>
<ide>
<ide> def _get_available_devices():
<del> return [x.name for x in K.get_session().list_devices()]
<add> return K.tensorflow_backend._get_available_gpus()
<ide>
<ide>
<ide> def _normalize_device_name(name):
<ide> def multi_gpu_model(model, gpus=None, cpu_me... | 1 |
Python | Python | fix classifier dropout in albertformultiplechoice | 3f52c685c135394e0a238bc821460ad4df891bd7 | <ide><path>src/transformers/models/albert/modeling_albert.py
<ide> def __init__(self, config):
<ide> super().__init__(config)
<ide>
<ide> self.albert = AlbertModel(config)
<del> self.dropout = nn.Dropout(config.hidden_dropout_prob)
<add> self.dropout = nn.Dropout(config.classifier_dropout... | 1 |
Python | Python | add tests for inputs set dynamically | 13548e8b212b504c9f506495b01855de6d9f6117 | <ide><path>tests/keras/engine/test_training.py
<ide>
<ide> import keras
<ide> from keras import losses
<del>from keras.layers import Dense, Dropout, Conv2D
<add>from keras.layers import Activation, Dense, Dropout, Conv2D
<ide> from keras.engine import Input
<ide> from keras.engine.training import Model
<ide> from kera... | 1 |
Ruby | Ruby | add test for json-based cask config loader | dd3267ece0b2252c13f23e10a8d905f96f067406 | <ide><path>Library/Homebrew/cask/config.rb
<ide> def self.clear
<ide>
<ide> def self.for_cask(cask)
<ide> if cask.config_path.exist?
<del> from_file(cask.config_path)
<add> from_json(File.read(cask.config_path))
<ide> else
<ide> global
<ide> end
<ide> end
<ide>
<del> ... | 2 |
Text | Text | update documentation for imagedatagenerator | 98b95762b63598e7d69410d8b6fbd69013377b1e | <ide><path>docs/templates/preprocessing/image.md
<ide> keras.preprocessing.image.ImageDataGenerator(featurewise_center=False,
<ide> horizontal_flip=False,
<ide> vertical_flip=False,
<ide> rescale=None,
<add> preprocessing_function=None,
<ide> data_format=K.image_data_format())
<ide> ```
<ide>
<ide> ... | 1 |
Ruby | Ruby | remove unused hash.ruby2_keywords_hash? backport | dce43bb01d85d09c0f7423719b1052d59a6ab3b0 | <ide><path>activejob/lib/active_job/arguments.rb
<ide> def deserialize(arguments)
<ide> private_constant :PERMITTED_TYPES, :RESERVED_KEYS, :GLOBALID_KEY,
<ide> :SYMBOL_KEYS_KEY, :RUBY2_KEYWORDS_KEY, :WITH_INDIFFERENT_ACCESS_KEY
<ide>
<del> unless Hash.respond_to?(:ruby2_keywords_hash?) && Hash.respo... | 1 |
Text | Text | update active record changelog for | db8460ca0f1131ac322f708063b63586b008ec69 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Rails now raise an exception when you're trying to run a migration that has an invalid
<add> file name. Only lower case letters, numbers, and '_' are allowed in migration's file name.
<add> Please see #7419 for more details.... | 1 |
PHP | PHP | correct exception handler doc | 846f7a193a6c4ff92b6595596c9bbcb3cf8c426e | <ide><path>app/Exceptions/Handler.php
<ide> class Handler extends ExceptionHandler
<ide> *
<ide> * @param \Exception $exception
<ide> * @return void
<add> *
<add> * @throws \Exception
<ide> */
<ide> public function report(Exception $exception)
<ide> {
<ide> public function report(E... | 1 |
Text | Text | improve wording and style of buffer docs | 87a097da51a0b113975f4a4672656db3b1fc5e15 | <ide><path>doc/api/buffer.md
<ide> resized.
<ide> The `Buffer` class is a global within Node.js, making it unlikely that one
<ide> would need to ever use `require('buffer').Buffer`.
<ide>
<add>Examples:
<add>
<ide> ```js
<ide> // Creates a zero-filled Buffer of length 10.
<ide> const buf1 = Buffer.alloc(10);
<ide> val... | 1 |
Javascript | Javascript | load common.js in all tests | c78091d689d0d4d56b3231b9050d52ca69ecb449 | <ide><path>test/addons/async-hello-world/test.js
<ide> 'use strict';
<add>require('../../common');
<ide> var assert = require('assert');
<ide> var binding = require('./build/Release/binding');
<ide> var called = false;
<ide><path>test/addons/at-exit/test.js
<ide> 'use strict';
<add>require('../../common');
<ide> var bi... | 10 |
PHP | PHP | update listenermakecommand.php | 9adce329ede8750b92dd96eb791434e0cf9aa7e2 | <ide><path>src/Illuminate/Foundation/Console/ListenerMakeCommand.php
<ide> protected function getDefaultNamespace($rootNamespace)
<ide> protected function getOptions()
<ide> {
<ide> return [
<del> ['event', null, InputOption::VALUE_REQUIRED, 'The event class being listened for.'],
<add> ... | 1 |
Python | Python | fix failing static checks in main | 60848a6ea78e29f20004a5e9f177335e6b99c706 | <ide><path>airflow/utils/log/file_task_handler.py
<ide> def _read(self, ti, try_number, metadata=None):
<ide> response.encoding = "utf-8"
<ide>
<ide> if response.status_code == 403:
<del> log += "*** !!!! Please make sure that all your webservers and workers have" \
<... | 1 |
Ruby | Ruby | add deprecation note for sourceannotationextractor | 92dac547fdf073e034c11a452d3b965a38a0f948 | <ide><path>railties/lib/rails/source_annotation_extractor.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "active_support/deprecation"
<add>
<add># Remove this deprecated class in the next minor version
<add>#:nodoc:
<add>SourceAnnotationExtractor = ActiveSupport::Deprecation::DeprecatedConstantProxy.
<add> ... | 1 |
PHP | PHP | fix styleci lint | 87bb1352e9e15c28700ffdd3656b429ceddf4e7d | <ide><path>src/Illuminate/Support/Stringable.php
<ide> public function explode($delimiter, $limit = PHP_INT_MAX)
<ide> {
<ide> return collect(explode($delimiter, $this->value, $limit));
<ide> }
<del>
<add>
<ide> /**
<ide> * Split string by a regular expression.
<ide> *
<ide> public fun... | 1 |
Ruby | Ruby | require provided_content to be a string | 8b5e334be48f0589a5d0c1fc376e161ff73ea49e | <ide><path>Library/Homebrew/livecheck/strategy/page_match.rb
<ide> def self.page_matches(content, regex, &block)
<ide> def self.find_versions(url, regex, provided_content = nil, &block)
<ide> match_data = { matches: {}, regex: regex, url: url }
<ide>
<del> content = if provided_content.prese... | 1 |
Javascript | Javascript | remove odd evented view tests | 6eab29284fcab388d6d9ba4003e7658a4075b6e9 | <ide><path>packages/ember-views/tests/views/view/evented_test.js
<del>import run from 'ember-metal/run_loop';
<del>import EmberObject from 'ember-runtime/system/object';
<del>import EmberView from 'ember-views/views/view';
<del>
<del>let view;
<del>
<del>QUnit.module('EmberView evented helpers', {
<del> teardown() {
<... | 1 |
Text | Text | fix typo and simplify autoload paths intro | d122ae6143856c1c4a0045afcb81aab2f2c10db1 | <ide><path>guides/source/autoloading_and_reloading_constants.md
<ide> Please, check the [Zeitwerk documentation](https://github.com/fxn/zeitwerk#file-
<ide> Autoload paths
<ide> --------------
<ide>
<del>We call _autoload paths_ to the list of application directories whose contents are to be autoloaded. For example, `... | 1 |
Go | Go | modify test to accept error from mkcontainer | ced93bcabdc0dd0f6dcfa52174be552adf6c5bd1 | <ide><path>server_test.go
<ide> func TestContainerTop(t *testing.T) {
<ide> srv := &Server{runtime: runtime}
<ide> defer nuke(runtime)
<ide>
<del> c, hostConfig := mkContainer(runtime, []string{"_", "/bin/sh", "-c", "sleep 2"}, t)
<add> c, hostConfig, err := mkContainer(runtime, []string{"_", "/bin/sh", "-c", "sleep... | 1 |
PHP | PHP | add mailable assertions | 4bc8737955c01a7e04b0fd47e84cd16ac42acba3 | <ide><path>src/Illuminate/Mail/Mailable.php
<ide> public function hasMetadata($key, $value)
<ide> (method_exists($this, 'envelope') && $this->envelope()->hasMetadata($key, $value));
<ide> }
<ide>
<add> /**
<add> * Assert that the mailable is from the given address.
<add> *
<add> * @pa... | 2 |
Python | Python | add missing skipunless(django_filters) | 4cb164b66c0784ce79054925d4744deb5b18d8b2 | <ide><path>tests/test_filters.py
<ide> def setUp(self):
<ide> for d in data:
<ide> DjangoFilterOrderingModel.objects.create(**d)
<ide>
<add> @unittest.skipUnless(django_filters, 'django-filter not installed')
<ide> def test_default_ordering(self):
<ide> class DjangoFilterOrderingView... | 1 |
Python | Python | fix issues with gantt view | 506ee1f06c9771b3459c129266187599b21db05f | <ide><path>airflow/www/views.py
<ide> def gantt(self, session=None):
<ide> )
<ide> )
<ide>
<del> # determine bars to show in the gantt chart
<del> gantt_bar_items = []
<del>
<ide> tasks = []
<ide> for ti in tis:
<del> end_date = ti.end_date or timezone.utcno... | 1 |
Javascript | Javascript | remove redundant code in doc/html.js | 974df9c2be11910d7aef381d73cb11a4bb547c20 | <ide><path>test/doctool/test-doctool-html.js
<ide> const testData = [
<ide> file: fixtures.path('order_of_end_tags_5873.md'),
<ide> html: '<h3>ClassMethod: Buffer.from(array) <span> ' +
<ide> '<a class="mark" href="#foo_class_method_buffer_from_array" ' +
<del> 'id="foo_class_method_buffer_from_array... | 2 |
Javascript | Javascript | reuse queueitem for module leaving | e66b51b8f710a9bc619ef9458f9e54042cc7fd93 | <ide><path>lib/buildChunkGraph.js
<ide> const visitModules = (
<ide> nextFreeModulePreOrderIndex++;
<ide> }
<ide>
<del> queue.push({
<del> action: LEAVE_MODULE,
<del> block,
<del> module,
<del> chunk,
<del> chunkGroup,
<del> chunkGroupInfo
<del> });
<add> // reuse q... | 1 |
Javascript | Javascript | remove beginwork shortcut | 1d437dc9ad11567e8da785534f1111755aff9e3e | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, TI, C>(config : HostConfig<T, P, I, TI, C>, g
<ide> reconcileChildren(current, workInProgress, workInProgress.pendingProps);
<ide> // A yield component is just a placeholder, we can just run through the... | 2 |
Javascript | Javascript | fix meta jquery.extend issue | 8348aba5031aa8cce8b3bb9a14be94b52af527ec | <ide><path>packages/ember-metal/lib/utils.js
<ide> if (Object.freeze) Object.freeze(EMPTY_META);
<ide>
<ide> var isDefinePropertySimulated = Ember.platform.defineProperty.isSimulated;
<ide>
<add>function Meta(obj) {
<add> this.descs = {};
<add> this.watching = {};
<add> this.cache = {};
<add> this.source = obj;
<... | 1 |
PHP | PHP | fix unpack error in validationrule | 77209131bafcc91d39807888714ea53b27692425 | <ide><path>src/Validation/ValidationRule.php
<ide> public function process($value, array $providers, array $context = [])
<ide> }
<ide>
<ide> if ($this->_pass) {
<del> $args = array_merge([$value], $this->_pass, [$context]);
<add> $args = array_values(array_merge([$value], $this->... | 2 |
Javascript | Javascript | fix server.listen error message | 47759429578952672ef9d1079412ed56aad77c4d | <ide><path>lib/net.js
<ide> Server.prototype.listen = function() {
<ide> return this;
<ide> }
<ide>
<del> throw new Error('Invalid listen argument: ' + options);
<add> throw new Error('Invalid listen argument: ' + util.inspect(options));
<ide> };
<ide>
<ide> function lookupAndListen(self, port, address, backl... | 3 |
Python | Python | close some filehandlers and pipes after being done | b831444bee734537daeaffd1455eb88663ee3763 | <ide><path>numpy/distutils/fcompiler/gnu.py
<ide> def _can_target(cmd, arch):
<ide> """Return true if the architecture supports the -arch flag"""
<ide> newcmd = cmd[:]
<ide> fid, filename = tempfile.mkstemp(suffix=".f")
<add> fid.close()
<ide> try:
<ide> d = os.path.dirname(filename)
<ide> ... | 3 |
Python | Python | check platform.system for npymath | 2a26477c67bf319428ddcb78a5b6a8777754b845 | <ide><path>numpy/core/setup.py
<ide> import copy
<ide> import sysconfig
<ide> import warnings
<add>import platform
<ide> from os.path import join
<del>from numpy.distutils import log, customized_ccompiler
<add>from numpy.distutils import log
<ide> from distutils.dep_util import newer
<ide> from distutils.sysconfig impo... | 1 |
Go | Go | remove daemon dependency from api/server | 1af76ef5970202bdbc7024d825c0fcfcc4ec6ede | <ide><path>api/server/router/container/backend.go
<ide> import (
<ide> "time"
<ide>
<ide> "github.com/docker/docker/api/types/backend"
<del> "github.com/docker/docker/daemon/exec"
<ide> "github.com/docker/docker/pkg/archive"
<ide> "github.com/docker/docker/pkg/version"
<ide> "github.com/docker/engine-api/types"
<... | 7 |
Java | Java | avoid synthesizing annotations unnecessarily | 31fa1569c54649c7f3cbf7ec330e2a7232c7cd3a | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java
<ide> private <T extends Map<String, Object>> Object adaptValueForMapOptions(Method at
<ide> }
<ide>
<ide> @Override
<add> @SuppressWarnings("unchecked")
<ide> protected A createSynthesized() {
<add> if (this.rootAtt... | 2 |
Ruby | Ruby | dump config directly | a150403eb9878045696e5860a1a7488838a7a0d2 | <ide><path>Library/Contributions/cmd/brew-gist-logs.rb
<ide> require 'formula'
<add>require 'cmd/config'
<ide> require 'net/http'
<ide> require 'net/https'
<add>require 'stringio'
<ide>
<ide> def gist_logs f
<ide> if ARGV.include? '--new-issue'
<ide> def load_logs name
<ide> end
<ide>
<ide> def append_config files
... | 1 |
Javascript | Javascript | update error log | 71cc102af1be92d952ceb29d8e632b1c3edcc4f2 | <ide><path>lib/runtime/PublicPathRuntimeModule.js
<ide> class PublicPathRuntimeModule extends RuntimeModule {
<ide> if ("currentScript" in window.document) {
<ide> return window.document.currentScript.src.replace(/[^\\/]+$/, "");
<ide> } else {
<del> throw new Error("Webpack: Auto public path is not su... | 1 |
Ruby | Ruby | improve check for 'install_name_tool'" | eb137dc9248cf3b975b35fae2226c45d3dd9a0ab | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_for_stray_developer_directory
<ide> def check_for_bad_install_name_tool
<ide> return if MacOS.version < "10.9"
<ide>
<del> install_name_tool = OS::Mac.install_name_tool
<del> libs = Pathname.new(install_name_tool).dynamically_linked_... | 1 |
PHP | PHP | fix failing tests for setdefaultoutputtimezone() | 62ae2ba9694d22e41512005c2b79bd3a5f8666fa | <ide><path>src/I18n/DateFormatTrait.php
<ide> public function i18nFormat($format = null, $timezone = null, $locale = null)
<ide> $time = $this;
<ide>
<ide> if ($time instanceof Time || $time instanceof FrozenTime) {
<del> // Remove before merge:
<del> // if ((is_string($time->time... | 2 |
PHP | PHP | remove trailing whitespace | 14a2badcc5251e2750a898d3eecba957a044183d | <ide><path>src/I18n/Time.php
<ide> public function toUnixString()
<ide> public function timeAgoInWords(array $options = [])
<ide> {
<ide> $time = $this;
<del>
<add>
<ide> $timezone = null;
<ide> $format = static::$wordFormat;
<ide> $end = static::$wordEnd; | 1 |
Text | Text | add polidea as airflow user | a00d0b19b77504d71b01edc92f9e9869b49a75db | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [Plaid](https://www.plaid.com/) [[@plaid](https://github.com/plaid), [@AustinBGibbons](https://github.com/AustinBGibbons) & [@jeeyoungk](https://github.com/jeeyoungk)]
<ide> 1. [Playbuzz](https://www.playbuzz.com/) [[@clintonboys](https://githu... | 1 |
PHP | PHP | fix memcache tests | 92693ab792b60890e4706ea31a478a4e267cb0ae | <ide><path>lib/Cake/Cache/Engine/MemcacheEngine.php
<ide> <?php
<ide> /**
<del> * Memcache storage engine for cache
<del> *
<del> *
<del> * PHP 5
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide>... | 2 |
Javascript | Javascript | remove duplicated expression | 51d0808c908f33db34382024b8011d27e0943fa7 | <ide><path>lib/_stream_readable.js
<ide> function readableAddChunk(stream, state, chunk, encoding, addToFront) {
<ide> stream.emit('error', er);
<ide> } else if (chunk === null) {
<ide> state.reading = false;
<del> if (!state.ended)
<del> onEofChunk(stream, state);
<add> onEofChunk(stream, state);
... | 1 |
Ruby | Ruby | dry fake models for testing | 0157608508cdb432b37324e1653b60d6b2e8c692 | <ide><path>actionview/test/actionpack/controller/render_test.rb
<ide> require "abstract_unit"
<ide> require "active_model"
<add>require "controller/fake_models"
<ide>
<ide> class ApplicationController < ActionController::Base
<ide> self.view_paths = File.join(FIXTURE_LOAD_PATH, "actionpack")
<ide> end
<ide>
<del>Cu... | 2 |
Text | Text | add a notice about memory accounting overhead | 56b33e9f27fa9dc50cec16392ca01bd4234390f9 | <ide><path>docs/installation/ubuntulinux.md
<ide> When users run Docker, they may see these messages when working with an image:
<ide> WARNING: Your kernel does not support cgroup swap limit. WARNING: Your
<ide> kernel does not support swap limit capabilities. Limitation discarded.
<ide>
<del>To prevent these ... | 1 |
Ruby | Ruby | put constant strings in a constant | 7c5e0eb507f65418a8e721fa584de05f8122a7c5 | <ide><path>Library/Homebrew/keg.rb
<ide> def initialize path
<ide> case d when 'LinkedKegs' then HOMEBREW_LIBRARY/d else HOMEBREW_PREFIX/d end
<ide> end
<ide>
<add> # These paths relative to the keg's share directory should always be real
<add> # directories in the prefix, never symlinks.
<add> SHARE_PATHS = ... | 1 |
Javascript | Javascript | move toast to oss | 4a4f087a9c17db8a9a329b87d30f982a6b2a3d21 | <ide><path>Libraries/Components/ToastAndroid/ToastAndroid.ios.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional gr... | 2 |
Go | Go | add provenance pull flow for official images | 7c88e8f13d9f0c68de6da0cd467a541231304dd5 | <ide><path>daemon/daemon.go
<ide> import (
<ide> "github.com/docker/docker/pkg/sysinfo"
<ide> "github.com/docker/docker/pkg/truncindex"
<ide> "github.com/docker/docker/runconfig"
<add> "github.com/docker/docker/trust"
<ide> "github.com/docker/docker/utils"
<ide> "github.com/docker/docker/volumes"
<ide> )
<ide> typ... | 11 |
Python | Python | simplify the assertion message | f7d8310a16d4734dd4887f56e13d7d1616acfbdb | <ide><path>celery/concurrency/asynpool.py
<ide> def verify_process_alive(proc):
<ide> if proc._is_alive() and proc in waiting_to_start:
<ide> assert proc.outqR_fd in fileno_to_outq
<ide> assert fileno_to_outq[proc.outqR_fd] is proc
<del> assert proc.outqR_fd in... | 1 |
Javascript | Javascript | defer error to next tick | f2b01cba7b48c2410a692fe1cb29b2e88a6c5cab | <ide><path>lib/internal/child_process.js
<ide> function setupChannel(target, channel) {
<ide> if (typeof callback === 'function') {
<ide> process.nextTick(callback, ex);
<ide> } else {
<del> this.emit('error', ex); // FIXME(bnoordhuis) Defer to next tick.
<add> process.nextTick(() => this.emit(... | 1 |
Javascript | Javascript | fix eslint issues | 2130482198ca387a48f02d8ee0126a72b4efd07e | <ide><path>bin/changelog.js
<ide> #!/usr/bin/env node
<add>
<add>/* eslint-disable no-console, node/shebang */
<add>
<ide> 'use strict';
<ide>
<ide> /*
<ide> * bin/changelog.js
<ide> */
<ide>
<del>var RSVP = require('rsvp');
<add>var RSVP = require('rsvp');
<ide> var GitHubApi = require('github');
<del>var exe... | 1 |
PHP | PHP | remove unneeded code | f1e43d1e55453126bc21747762a7e528a1e1a23b | <ide><path>src/Illuminate/Queue/QueueManager.php
<ide> public function connection($name = null)
<ide> $this->connections[$name] = $this->resolve($name);
<ide>
<ide> $this->connections[$name]->setContainer($this->app);
<del>
<del> $this->connections[$name]->setEncrypter($this->app['en... | 2 |
Go | Go | prefix all logs with daemon-id | 2b3957d0b168a697c7f1bb6fcfa4b2c66c9b8ae0 | <ide><path>testutil/daemon/daemon.go
<ide> func (d *Daemon) NewClientT(t testing.TB, extraOpts ...client.Opt) *client.Clien
<ide> t.Helper()
<ide>
<ide> c, err := d.NewClient(extraOpts...)
<del> assert.NilError(t, err, "cannot create daemon client")
<add> assert.NilError(t, err, "[%s] could not create daemon client"... | 3 |
Python | Python | increase required cython version on python 3.7 | 323458c4cd80935b61d2021181a47794ba81ccf3 | <ide><path>tools/cythonize.py
<ide> def process_pyx(fromfile, tofile):
<ide> else:
<ide> # check the version, and invoke through python
<ide> from distutils.version import LooseVersion
<del> if LooseVersion(cython_version) < LooseVersion('0.19'):
<del> raise Exception('Building %s ... | 1 |
Javascript | Javascript | make key of queueconnect a chunkgroupinfo | 35e2e1c97c825ef511f158ecddf98da906fc9191 | <ide><path>lib/buildChunkGraph.js
<ide> const visitModules = (
<ide> // correct order
<ide> queue.reverse();
<ide>
<del> /** @type {Map<ChunkGroup, Set<ChunkGroup>>} */
<add> /** @type {Map<ChunkGroupInfo, Set<ChunkGroup>>} */
<ide> const queueConnect = new Map();
<ide> /** @type {Set<ChunkGroupInfo>} */
<ide> co... | 1 |
Mixed | Text | move videos and newsletter to support | d662628ee3d7a42c24176344a6f9c6068523ea44 | <ide><path>docs/Newsletter.md
<del>---
<del>id: newsletter
<del>title: Newsletter
<del>layout: docs
<del>category: Community Resources
<del>permalink: http://reactnative.cc/
<del>next: style
<del>---
<ide><path>docs/SampleApplication-F8App.md
<ide> title: F8 2016 App
<ide> layout: docs
<ide> category: Sample Applicatio... | 4 |
Javascript | Javascript | add missing item type | 7bb81ad97fdb0904373e43148d52abe53ccaa8cb | <ide><path>packages/ember-application/lib/system/application.js
<ide> Ember.Application.reopenClass({
<ide> This allows the application to register default injections in the container
<ide> that could be overridden by the normal naming convention.
<ide>
<add> @method resolverFor
<ide> @param {Ember.Namespace} n... | 3 |
PHP | PHP | add serialize option to array cache config | c9cf57a00c76c58afec25a822846f0798661e372 | <ide><path>config/cache.php
<ide>
<ide> 'array' => [
<ide> 'driver' => 'array',
<add> 'serialize' => false,
<ide> ],
<ide>
<ide> 'database' => [ | 1 |
Text | Text | update http method override middleware example | f5470ab9e292c7321377ae1f43f85e311d94975f | <ide><path>docs/topics/browser-enhancements.md
<ide> For example:
<ide>
<ide> METHOD_OVERRIDE_HEADER = 'HTTP_X_HTTP_METHOD_OVERRIDE'
<ide>
<del> class MethodOverrideMiddleware(object):
<del> def process_view(self, request, callback, callback_args, callback_kwargs):
<del> if request.method != ... | 1 |
Javascript | Javascript | improve validatedomnesting message for whitespace | 6a659606415d4853026df6e6d525274fdc7d35ea | <ide><path>src/renderers/dom/client/validateDOMNesting.js
<ide> if (__DEV__) {
<ide>
<ide> var didWarn = {};
<ide>
<del> validateDOMNesting = function(childTag, childInstance, ancestorInfo) {
<add> validateDOMNesting = function(
<add> childTag,
<add> childText,
<add> childInstance,
<add> ancestorInfo
... | 4 |
Python | Python | remove django 1.5 urlvalidator fallback | e625cff8a5e4e4353d280fdd4c305dc6dbeed999 | <ide><path>rest_framework/compat.py
<ide> def __init__(self, *args, **kwargs):
<ide> super(MaxLengthValidator, self).__init__(*args, **kwargs)
<ide>
<ide>
<del># URLValidator only accepts `message` in 1.6+
<del>if django.VERSION >= (1, 6):
<del> from django.core.validators import URLValidator
<del>else... | 2 |
Java | Java | fix various typos | e9f78f6043d8391121ba93d496b66beaa13a1dca | <ide><path>spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
<ide> public class DelegatePerTargetObjectIntroductionInterceptor extends Introduction
<ide> public DelegatePerTargetObjectIntroductionInterceptor(Class<?> defaultImplType, Class<?> interfaceType) {
... | 37 |
Java | Java | get ripple drawables by id | c8ed2dbbb287deed05a8782fb8665c1edf45bbac | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.java
<ide> import android.os.Build;
<ide> import android.util.TypedValue;
<ide> import androidx.annotation.Nullable;
<add>
<ide> import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
<ide> import com.facebook.react... | 1 |
Ruby | Ruby | remove stray ## | ccd1c21fe52a8183dc4470f08dd9c85f4b53afec | <ide><path>lib/active_job/enqueuing.rb
<ide>
<ide> module ActiveJob
<ide> module Enqueuing
<del> ##
<ide> # Push a job onto the queue. The arguments must be legal JSON types
<ide> # (string, int, float, nil, true, false, hash or array) or
<ide> # ActiveModel::GlobalIdentication instances. Arbitrary ... | 1 |
Text | Text | strengthen isbinarysearchtree test | 5f956e9a16b45186aa7f3ed8590c1d23ba997624 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/check-if-binary-search-tree.md
<ide> In this challenge, you will create a utility for your tree. Write a JavaScript m
<ide> ```yml
<ide> tests:
<ide> - text: Your Binary Search Tree should return true when checked with <code>isBinarySea... | 1 |
Python | Python | enable external api use when running cpychecker | 92fbc04cee0c1024bc76b95a3a33e5a54c9a1fb9 | <ide><path>numpy/core/code_generators/generate_numpy_api.py
<ide>
<ide> import numpy_api
<ide>
<add># use annotated api when running under cpychecker
<ide> h_template = r"""
<del>#ifdef _MULTIARRAYMODULE
<add>#if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE)
<ide>
<ide> typ... | 1 |
Ruby | Ruby | assign plain metadata for now | 97aa328bb1e9d43bba1bcae2c8ddbaed397770c0 | <ide><path>lib/active_vault/blob.rb
<ide> def build_after_upload(io:, filename:, content_type: nil, metadata: nil)
<ide> new.tap do |blob|
<ide> blob.filename = filename
<ide> blob.content_type = content_type
<add> blob.metadata = metadata
<ide>
<ide> blob.upload io
<ide> ... | 1 |
Text | Text | fix eventemitter#eventnames() example | c1f2df9782f76733b93ff6fcb590058f370eb826 | <ide><path>doc/api/events.md
<ide> myEE.on('bar', () => {});
<ide> const sym = Symbol('symbol');
<ide> myEE.on(sym, () => {});
<ide>
<del>console.log(myErr.eventNames());
<del> // Prints ['foo', 'bar', Symbol('symbol')]
<add>console.log(myEE.eventNames());
<add> // Prints [ 'foo', 'bar', Symbol(symbol) ]
<ide> ```
<... | 1 |
Javascript | Javascript | fix validation test | 6023bb7a11de3db0c6ad542e9b75ee217b3a3a35 | <ide><path>test/Validation.test.js
<ide> describe("Validation", () => {
<ide> },
<ide> message: [
<ide> " - configuration.entry should be one of these:",
<del> " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function",
<add> " function | object { <... | 1 |
Go | Go | remove hardcoded error | 8b02d85e1728b48729b2fb8553b2ec4b56a30d37 | <ide><path>builder/evaluator.go
<ide> package builder
<ide>
<ide> import (
<del> "errors"
<ide> "fmt"
<ide> "io"
<ide> "os"
<ide> import (
<ide> "github.com/docker/docker/utils"
<ide> )
<ide>
<del>var (
<del> ErrDockerfileEmpty = errors.New("Dockerfile cannot be empty")
<del>)
<del>
<ide> // Environment variable ... | 2 |
Text | Text | add reference to docker-reg-client | 48354301659d870bd23e643c6e916a5a652ae93c | <ide><path>docs/sources/reference/api/registry_api_client_libraries.md
<ide> page_keywords: API, Docker, index, registry, REST, documentation, clients, C#, E
<ide>
<ide> These libraries have not been tested by the Docker maintainers for
<ide> compatibility. Please file issues with the library owners. If you find
<del>... | 1 |
Text | Text | improve changelog entries in ar | 01e67316d8c802df3928b53d0e0ce9153044f5ad | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* Change behaviour with empty array in where clause,
<del> the SQL generated when when were passed an empty array was insecure in some cases
<add>* Raise `ArgumentError` instead of generating `column IN (NULL)` SQL when
<add> ... | 1 |
Text | Text | add visual studio 2010 sp1 download url | 124c517056279ba8ae76756391b9d8a146ae1567 | <ide><path>docs/build-instructions/windows.md
<ide> ## Requirements
<ide>
<ide> * Windows 7 or later
<del> * [Visual C++ 2010 SP1 Express](http://www.visualstudio.com/en-us/downloads/download-visual-studio-vs#DownloadFamilies_4)
<add> * [Visual C++ 2010 Express](http://www.visualstudio.com/en-us/downloads/download... | 1 |
Javascript | Javascript | prefer require.cache over native module cache | e27418ca3f1f4700a457145de899c0d67343ee77 | <ide><path>src/node.js
<ide> var id = resolved[0];
<ide> var filename = resolved[1];
<ide>
<add> var cachedModule = moduleCache[filename];
<add> if (cachedModule) return cachedModule.exports;
<add>
<ide> // With natives id === request
<ide> // We deal with these first
<ide> if (... | 2 |
Java | Java | introduce dedicated 'cache' subpackage in the tcf | 5cbe4b948d15fceb98ba2800d7309a632db163d6 | <ide><path>spring-test/src/main/java/org/springframework/test/context/BootstrapUtils.java
<ide> abstract class BootstrapUtils {
<ide>
<ide> private static final String DEFAULT_BOOTSTRAP_CONTEXT_CLASS_NAME = "org.springframework.test.context.support.DefaultBootstrapContext";
<ide>
<del> private static final String DE... | 14 |
Javascript | Javascript | use smart scrolling | 403f150ade08082c6d2bc5a5104e59e045fe8189 | <ide><path>src/devtools/views/Components/Tree.js
<ide> export default function Tree(props: Props) {
<ide> // This is helpful for things like the owners list and search.
<ide> useLayoutEffect(() => {
<ide> if (selectedElementIndex !== null && listRef.current != null) {
<del> listRef.current.scrollToItem(sel... | 1 |
PHP | PHP | add use exception | 2edeb3ac8d840d26948df7f1a4362d11f0fb11a2 | <ide><path>tests/Integration/Cache/RedisCacheLockTest.php
<ide>
<ide> namespace Illuminate\Tests\Integration\Cache;
<ide>
<add>use Exception;
<ide> use Illuminate\Support\Carbon;
<ide> use Orchestra\Testbench\TestCase;
<ide> use Illuminate\Support\Facades\Cache;
<ide> public function test_redis_locks_with_failed_bloc... | 1 |
Javascript | Javascript | add support for disabling an option | da9eac8660343b1cd9fdcf9d2d1bda06067142d7 | <ide><path>src/ng/directive/ngOptions.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> * * `label` **`for`** `value` **`in`** `array`
<ide> * * `select` **`as`** `label` **`for`** `value` **`in`** `array`
<ide> * * `label` **`group by`** `group` **`for`** `value` **`in`** `array`
<add> * * `... | 2 |
Javascript | Javascript | remove side-effects of one attributes test | f9ea869ab5e887dad28088f6b477fa2ecac747a9 | <ide><path>test/unit/attributes.js
<ide> QUnit.test( "attr(non-ASCII)", function( assert ) {
<ide> QUnit.test( "attr - extending the boolean attrHandle", function( assert ) {
<ide> assert.expect( 1 );
<ide> var called = false,
<del> _handle = jQuery.expr.attrHandle.checked || $.noop;
<add> origAttrHandleHadChecked ... | 1 |
Ruby | Ruby | upgrade virtualenv to 16.4.3 | 9dbd04ac094c8b47aeba242165fbb810c79de9ed | <ide><path>Library/Homebrew/language/python_virtualenv_constants.rb
<ide> PYTHON_VIRTUALENV_URL =
<del> "https://files.pythonhosted.org/packages/51/aa" \
<del> "/c395a6e6eaaedfa5a04723b6446a1df783b16cca6fec66e671cede514688" \
<del> "/virtualenv-16.4.0.tar.gz".freeze
<add> "https://files.pythonhosted.org/packages/37... | 1 |
Javascript | Javascript | update the copyright from 2009 to 2010 | 25ee9cee26c9c4170693908fbe233154e8158d69 | <ide><path>src/intro.js
<ide> * jQuery JavaScript Library v@VERSION
<ide> * http://jquery.com/
<ide> *
<del> * Copyright 2009, John Resig
<add> * Copyright 2010, John Resig
<ide> * Dual licensed under the MIT or GPL Version 2 licenses.
<ide> * http://docs.jquery.com/License
<ide> *
<ide> * Includes Sizzle.js
<id... | 1 |
Ruby | Ruby | fix one line formatting bug | 8b5eb2bacc9e61c6a23b85c03933ef6e2071fab8 | <ide><path>activesupport/lib/active_support/core_ext/time/calculations.rb
<ide> def ago(seconds)
<ide> end
<ide>
<ide> # Returns a new Time representing the time a number of seconds since the instance time, this is basically a wrapper around
<del> #the Numeric extension. Do not use this method i... | 1 |
PHP | PHP | fix code style 4 | b3a61698a6455dc9ff4e0134bed9a8239d8b9d70 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function qualifyColumn($column)
<ide> public function qualifyColumns($columns)
<ide> {
<ide> $columns = is_array($columns) ? $columns : func_get_args();
<del>
<ide> $qualifiedArray = [];
<ide>
<ide> foreach ($col... | 1 |
PHP | PHP | change visiblity of properties on pluralizer | 4fb411ec9ac803073065a5c6e56c43f9656ed2e8 | <ide><path>src/Illuminate/Support/Pluralizer.php
<ide> class Pluralizer {
<ide> *
<ide> * @var array
<ide> */
<del> protected static $plural = array(
<add> public static $plural = array(
<ide> '/(quiz)$/i' => "$1zes",
<ide> '/^(ox)$/i' => "$1en",
<ide> '/([m|l])ouse$/i' => "$1ice",
<ide> class Pluralizer {
... | 1 |
Javascript | Javascript | remove trycatch in canvas fill | 063ca95f5fb829d930733926c65c0fbeedaffe11 | <ide><path>src/display/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> ctx.fill();
<ide> ctx.mozFillRule = 'nonzero';
<ide> } else {
<del> try {
<del> ctx.fill('evenodd');
<del> } catch (ex) {
<del> // shouldn't really ha... | 2 |
Java | Java | fix amb backpressure problems | 9585c6e2a54d89f032ab9f2082395eada69b3512 | <ide><path>src/main/java/rx/internal/operators/OnSubscribeAmb.java
<ide> public static <T> OnSubscribe<T> amb(final Iterable<? extends Observable<? exten
<ide>
<ide> private final Subscriber<? super T> subscriber;
<ide> private final Selection<T> selection;
<add> private boolean chosen;
<ide>
<... | 2 |
Mixed | Javascript | remove malfunctioning linux manpage linker | cc9ac42111c3a9aed4b191f8d6d56929d7b50519 | <ide><path>doc/api/os.md
<ide> added: v0.3.3
<ide> Returns the operating system as a string.
<ide>
<ide> On POSIX systems, the operating system release is determined by calling
<del>[uname(3)][]. On Windows, `GetVersionExW()` is used. See
<add>[`uname(3)`][]. On Windows, `GetVersionExW()` is used. See
<ide> <https://e... | 2 |
Javascript | Javascript | fix race condition in unrefd interval test | 6de82c69a00a1515dbf4019c4f27bb1f82c508e0 | <ide><path>test/parallel/test-timers-unrefd-interval-still-fires.js
<ide> /*
<ide> * This test is a regression test for joyent/node#8900.
<ide> */
<del>require('../common');
<del>var assert = require('assert');
<add>const common = require('../common');
<add>const assert = require('assert');
<ide>
<del>var N = 5;
<ad... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.