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 |
|---|---|---|---|---|---|
Text | Text | remove redundant warning information | 5242114d89652a217880c0a0f216bf46a51c1379 | <ide><path>doc/api/process.md
<ide> $ node --no-warnings
<ide> The `--trace-warnings` command-line option can be used to have the default
<ide> console output for warnings include the full stack trace of the warning.
<ide>
<del>#### Emitting custom warnings
<del>
<del>The [`process.emitWarning()`][process_emit_warning... | 1 |
PHP | PHP | deprecate the requireauth feature | e6493325eae490adb416cb22031f3bcd1123f2e9 | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> class SecurityComponent extends Component
<ide> * - `blackHoleCallback` - The controller method that will be called if this
<ide> * request is black-hole'd.
<ide> * - `requireSecure` - List of actions that require an SSL-secured connection... | 1 |
PHP | PHP | reduce duplication in code | 95ed471c41f61555b2b7f642422bfef8a279cfd4 | <ide><path>lib/Cake/Test/Case/Console/Command/Task/ControllerTaskTest.php
<ide> public function setUp() {
<ide> array($out, $out, $in)
<ide> );
<ide> $this->Task->Test = $this->getMock('TestTask', array(), array($out, $out, $in));
<add>
<add> if (!defined('ARTICLE_MODEL_CREATED')) {
<add> $this->markTestSkipp... | 1 |
Javascript | Javascript | handle undefined filename in geterrmessage | a5d86f8c4ebf201092a7a155691856e13639f0cb | <ide><path>lib/assert.js
<ide> function getBuffer(fd, assertLine) {
<ide>
<ide> function getErrMessage(call) {
<ide> const filename = call.getFileName();
<add> if (!filename) {
<add> return;
<add> }
<add>
<ide> const line = call.getLineNumber() - 1;
<ide> const column = call.getColumnNumber() - 1;
<ide> c... | 2 |
PHP | PHP | apply fixes from styleci | 66b42379183f24c74ad4c8549a826c820b97f79d | <ide><path>src/Illuminate/Auth/SessionGuard.php
<ide> use RuntimeException;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Http\Response;
<del>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contracts\Auth\UserProvider;
<add>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Contr... | 32 |
Java | Java | remove old android apis code from reactviewgroup | f829722b54b34f145c41a95edfa5b522c837f9fc | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java
<ide> * Backing for a React View. Has support for borders, but since borders aren't common, lazy
<ide> * initializes most of the storage needed for them.
<ide> */
<add>@TargetApi(Build.VERSION_CODES.KITKAT)
<ide> public class Rea... | 1 |
PHP | PHP | apply fixes from styleci | f0448d4df91dcec7c49b580d3fb96c21523c3b74 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function applyScopes()
<ide> continue;
<ide> }
<ide>
<del> $builder->callScope(function (Builder $builder) use ($scope) {
<add> $builder->callScope(function (self $builder) use ($scope) {
<ide> ... | 2 |
Python | Python | fix typo syntax err (sorry, c/p from my repo) | 472857c47f3b6a142a7aaa53836e33cd8543088d | <ide><path>pytorch_pretrained_bert/modeling_gpt2.py
<ide> def forward(self, input_ids, position_ids=None, token_type_ids=None, lm_labels=N
<ide> # in pytorch, it's [batch, num_classes, d_0, d_1, ..., d_{r-1}]
<ide> # We just flatten the tokens out this way.
<ide> loss_fct = CrossEntr... | 2 |
Text | Text | fix typo in 'installing with breeze' doc | 90384b10f25307282a1a39062316af622583b5e4 | <ide><path>dev/README.md
<ide> First copy all the provider packages .whl files to the `dist` folder.
<ide>
<ide> ```shell script
<ide> ./breeze start-airflow --install-airflow-version <VERSION>rc<X> \
<del> --python 3.7 --backend postgres --instal-wheels
<add> --python 3.7 --backend postgres --install-wheels
<id... | 1 |
Javascript | Javascript | add documentation stub for ember.router | 8bd4aa3358616b3ff19b5a93da7e4c3f850831ca | <ide><path>packages/ember-routing/lib/system/router.js
<ide> function setupLocation(router) {
<ide> }
<ide> }
<ide>
<add>/**
<add> The `Ember.Router` class manages the application state and URLs. Refer to
<add> the [routing guide](http://emberjs.com/guides/routing/) for documentation.
<add>
<add> @class Router
<a... | 1 |
PHP | PHP | add remove() to cookiecollection | 1b61694dd7f93f3fce305f5b43961992e41ea7ac | <ide><path>src/Http/Cookie/CookieCollection.php
<ide> public function has($name)
<ide> return isset($this->cookies[$key]);
<ide> }
<ide>
<add> /**
<add> * Remove a cookie from the collection
<add> *
<add> * If the cookie is not in the collection, this method will do nothing.
<add> *
<add... | 2 |
Ruby | Ruby | simplify nosuchkegerror condition | dce7b04ea572fdd4e19b8d611625a979b48a74ce | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def kegs
<ide> rack = HOMEBREW_CELLAR/canonical_name
<ide> dirs = rack.directory? ? rack.subdirs : []
<ide>
<del> raise NoSuchKegError.new(rack.basename.to_s) if not rack.directory? or dirs.empty?
<add> raise NoSuchKegError.new(rack.basename.to_s) ... | 1 |
Ruby | Ruby | fix app boot for ruby 2.4 | 555c1a3a5400dc257cee2ae5e209354f2dc4df8a | <ide><path>railties/lib/rails/all.rb
<ide> # frozen_string_literal: true
<ide>
<add># rubocop:disable Style/RedundantBegin
<add>
<ide> require "rails"
<ide>
<ide> %w(
<ide> rails/test_unit/railtie
<ide> sprockets/railtie
<ide> ).each do |railtie|
<del> require railtie
<del>rescue LoadError
<add> begin
<add> ... | 1 |
PHP | PHP | remove some bindings | 3928c224e16b85b49a7fa68b9d2e77c049a8fe1b | <ide><path>src/Illuminate/Foundation/Providers/ArtisanServiceProvider.php
<ide> public function register()
<ide> }
<ide>
<ide> $this->commands(
<del> 'command.changes', 'command.environment', 'command.event.cache',
<add> 'command.changes', 'command.environment',
<ide> 'command.route.cache', 'command.route.c... | 1 |
Javascript | Javascript | use querycache in image | 76ab5062e973dd70d52ee5e9b0ed2a0cc1def323 | <ide><path>Libraries/Image/Image.ios.js
<ide> function prefetch(url: string): any {
<ide> async function queryCache(
<ide> urls: Array<string>,
<ide> ): Promise<{[string]: 'memory' | 'disk' | 'disk/memory'}> {
<del> return await ImageViewManager.queryCache(urls);
<add> return await NativeImageLoader.queryCache(urls... | 1 |
Ruby | Ruby | add a `required` option to singular associations | 00f55516509770f58f9ce462d45afb80d8f649ca | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def has_many(name, scope = nil, options = {}, &extension)
<ide> # that is the inverse of this <tt>has_one</tt> association. Does not work in combination
<ide> # with <tt>:through</tt> or <tt>:as</tt> options.
<ide> # See ActiveRecor... | 4 |
PHP | PHP | turn the count into an expression | aafa11b45636841c4eb175e070450ae3a68aa544 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> protected function addHasWhere(Builder $hasQuery, Relation $relation, $operator,
<ide> {
<ide> $this->mergeWheresToHas($hasQuery, $relation);
<ide>
<add> $count = new Expression((int) $count);
<add>
<ide> return $this->where(new Expression('('.$hasQue... | 1 |
Javascript | Javascript | fix a typo with ie warning | 59c29e320a2c764e59f990e2064689b0b4fc33c7 | <ide><path>docs/src/ngdoc.js
<ide> Doc.prototype = {
<ide>
<ide> if (restrict.match(/E/)) {
<ide> dom.html('<p>');
<del> dom.text('This directive can be used as custom element, but we aware of ');
<add> dom.text('This directive can be used as custom element, but be aware of ');
<ide> ... | 1 |
Text | Text | specify the correct version for 3.2 | e8a577cc85653fb134cf507e946bcd986e74d95a | <ide><path>README.md
<ide> recommend using the [app skeleton](https://github.com/cakephp/app) as
<ide> a starting point. For existing applications you can run the following:
<ide>
<ide> ``` bash
<del>$ composer require cakephp/cakephp:"~3.1"
<add>$ composer require cakephp/cakephp:"~3.2"
<ide> ```
<ide>
<ide> ## Runn... | 1 |
Javascript | Javascript | do some logging of the outputted text | f0f16a6a4da1376575a26af4d6603cb76cf93ae5 | <ide><path>web/viewer.js
<ide> var TextLayerBuilder = function textLayerBuilder(textLayerDiv) {
<ide> textDiv.style.top = (text.geom.y - fontHeight) + 'px';
<ide>
<ide> // The content of the div is set in the `setTextContent` function.
<add> // For debug reasons, do the bidi thing here to compare it later o... | 1 |
Ruby | Ruby | prefer file.write for bulk writes | be9a32b65ff5e72f54365e79338516d46063e069 | <ide><path>railties/test/generators/actions_test.rb
<ide> def test_route_should_add_data_with_an_new_line
<ide> content.gsub!(/^ \#.*\n/, "")
<ide> content.gsub!(/^\n/, "")
<ide>
<del> File.open(route_path, "wb") { |file| file.write(content) }
<add> File.write(route_path, content)
<ide>
<ide> route... | 3 |
PHP | PHP | apply fixes from styleci | 648bdae04bd15f4b32f76c5dfee0294e067e90b1 | <ide><path>src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php
<ide> protected function inExceptArray($request)
<ide>
<ide> return false;
<ide> }
<del>
<ide> } | 1 |
Javascript | Javascript | remove unnatural indent in doc | 214f544e373597685adfc3ef6f30a72f774b925a | <ide><path>website/layout/AutodocsLayout.js
<ide> var APIDoc = React.createClass({
<ide> <Header level={2} toSlug={cls.name}>
<ide> class {cls.name}
<ide> </Header>
<del> <ul>
<add> <div>
<ide> {cls.docblock && <Marked>
<i... | 1 |
Javascript | Javascript | add raindrop.io to showcase | 10cc72bb880da7ca5058df6ce877010be393d904 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/posyt-anonymously-meet-right/id1037842845?mt=8',
<ide> author: 'Posyt.com',
<ide> },
<add> {
<add> name: 'Raindrop.io',
<add> icon: 'http://a5.mzstatic.com/us/r30/Purple3/v4/f0/a4/57/f0a4574e... | 1 |
Javascript | Javascript | verify expectations after flush() | 4aaa2f7f6b37f0ad8255e6a320e9136a89e329de | <ide><path>src/angular-mocks.js
<ide> angular.module.ngMock.$HttpBackendProvider = function() {
<ide> while (responses.length)
<ide> responses.shift()();
<ide> }
<add> $httpBackend.verifyNoOutstandingExpectation();
<ide> };
<ide>
<ide> $httpBackend.verifyNoOutstandingExpectation = ... | 3 |
Javascript | Javascript | replace var with let | 3000c2528cd901c205b2276b09b77662e6c91000 | <ide><path>lib/internal/util/comparisons.js
<ide> function areSimilarFloatArrays(a, b) {
<ide> if (a.byteLength !== b.byteLength) {
<ide> return false;
<ide> }
<del> for (var offset = 0; offset < a.byteLength; offset++) {
<add> for (let offset = 0; offset < a.byteLength; offset++) {
<ide> if (a[offset] !=... | 1 |
Text | Text | add the text 'my changes' to article | 425cb4d56da67fec29a8b130bb609d77e6482bb0 | <ide><path>guide/english/book-recommendations/index.md
<ide> title: Books to Read for Programmers
<ide> This list was compiled from multiple suggestion threads on Reddit and Stackoverflow.
<ide>
<ide> Please feel free to add more that you have found useful!
<add>
<add>## Programming Books for kids to get coding
<add>... | 1 |
Java | Java | fix ci build | a1980264691917813037c7015d9a886b938893b0 | <ide><path>spring-context-support/src/test/java/org/springframework/cache/jcache/interceptor/AnnotatedJCacheableService.java
<ide> public void earlyRemoveAllWithException(boolean matchFilter) {
<ide> public void noAnnotation() {
<ide> }
<ide>
<del> @CacheRemove
<del> @CacheRemoveAll
<del> public void multiAnnotation... | 2 |
PHP | PHP | refactor the view class | 3bf85e03a58e8d2bf3fe1d9d00575a0f17627bd7 | <ide><path>system/view.php
<ide> public function get()
<ide> // evaluate any sub-views or responses that are present.
<ide> foreach ($this->data as &$data)
<ide> {
<del> if ($data instanceof View or $data instanceof Response) $data = (string) $data;
<add> if ($data instanceof View or $data instanceof Response... | 1 |
Javascript | Javascript | throw invalid arg type from end of stream | fe7ca085a7332524738658b3368b3c23994c006e | <ide><path>lib/internal/streams/end-of-stream.js
<ide> const {
<ide> codes,
<ide> } = require('internal/errors');
<ide> const {
<add> ERR_INVALID_ARG_TYPE,
<ide> ERR_STREAM_PREMATURE_CLOSE
<ide> } = codes;
<ide> const { once } = require('internal/util');
<ide> function eos(stream, options, callback) {
<ide>
<ide>... | 3 |
Go | Go | remove engine usage from attach | c44f513248a8b40b1b2221726c7441881383e919 | <ide><path>api/server/server.go
<ide> func postContainersAttach(eng *engine.Engine, version version.Version, w http.Re
<ide> return fmt.Errorf("Missing parameter")
<ide> }
<ide>
<del> var (
<del> job = eng.Job("container_inspect", vars["name"])
<del> c, err = job.Stdout.AddEnv()
<del> )
<add> d := getDaemon(en... | 5 |
Go | Go | make testlogsapistdout a bit less racey | 960b8d9294356b5651938244a62e0d485da72211 | <ide><path>integration-cli/docker_api_logs_test.go
<ide> func (s *DockerSuite) TestLogsAPIWithStdout(c *check.C) {
<ide>
<ide> type logOut struct {
<ide> out string
<del> res *http.Response
<ide> err error
<ide> }
<add>
<ide> chLog := make(chan logOut)
<add> res, body, err := request.Get(fmt.Sprintf("/containe... | 1 |
Text | Text | add headless js guide | d91a5c4ffb20224e19e13424068098ea05438640 | <ide><path>docs/HeadlessJSAndroid.md
<add>---
<add>id: headless-js-android
<add>title: Headless JS
<add>layout: docs
<add>category: Guides (Android)
<add>permalink: docs/headless-js-android.html
<add>next: running-on-device-android
<add>previous: native-components-android
<add>---
<add>
<add>Headless JS is a way to run... | 3 |
Java | Java | update copyright year of changed file | b81c62d064f7b78fcca5deb973b10f6e49dc9af4 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0... | 1 |
Text | Text | add pr template | 8124f9b8fafb6bd5e7c834c789709c01fedd39f5 | <ide><path>.github/PULL_REQUEST_TEMPLATE.md
<add><!--
<add>Pull Requests without a descriptive title, thorough description or tests will be closed.
<add>
<add>Please include the benefit to end users; the reasons it does not break any existing features; how it makes building web applications easier, etc.
<add>--> | 1 |
PHP | PHP | remove nested conditionals | 7402eea9ebc230a20223bf324a212bd513340838 | <ide><path>lib/Cake/View/Helper.php
<ide> public function webroot($file) {
<ide> */
<ide> public function assetUrl($path, $options = array()) {
<ide> if (is_array($path)) {
<del> $path = $this->url($path, !empty($options['fullBase']));
<del> } elseif (strpos($path, '://') === false) {
<del> if (!array_key_exis... | 1 |
Text | Text | fix structure and typo in updating.md | 72983287a1bded61e5a664b354156a90da3de99a | <ide><path>UPDATING.md
<ide> assists users migrating to a new version.
<ide>
<ide> ## Master
<ide>
<add><!--
<add>
<add>I'm glad you want to write a new note. Remember that this note is intended for users.
<add>Make sure it contains the following information:
<add>
<add>- [ ] Previous behaviors
<add>- [ ] New behavio... | 1 |
Python | Python | preserve spaces in gpt-2 tokenizers | f1e8a51f08eeecacf0cde33d40702d70c737003b | <ide><path>src/transformers/pipelines.py
<ide> def pipeline(
<ide> config: Optional[Union[str, PretrainedConfig]] = None,
<ide> tokenizer: Optional[Union[str, PreTrainedTokenizer]] = None,
<ide> modelcard: Optional[Union[str, ModelCard]] = None,
<add> framework: Optional[str] = None,
<ide> **kwargs
<... | 7 |
Python | Python | add type hints for gptneox models | ef28a402a931a6fcbbb81c444a94470becc1299b | <ide><path>src/transformers/models/gpt_neox/modeling_gpt_neox.py
<ide> # limitations under the License.
<ide> """ PyTorch GPTNeoX model."""
<ide>
<add>from typing import Optional, Tuple, Union
<add>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> from torch import nn
<ide> def set_input_embeddings(self, v... | 1 |
Javascript | Javascript | add a safe computedstyle to videojs. | 9702618c0238461ec4a7444f52618fc0c29ae4bb | <ide><path>src/js/control-bar/progress-control/mouse-time-display.js
<ide> /**
<ide> * @file mouse-time-display.js
<ide> */
<del>import window from 'global/window';
<ide> import Component from '../../component.js';
<ide> import * as Dom from '../../utils/dom.js';
<ide> import * as Fn from '../../utils/fn.js';
<ide> i... | 4 |
Javascript | Javascript | improve perf of object model affecting view | 1520369d998c4cdeea95e2fe74b92fd6bc9c41c9 | <ide><path>packages/ember-handlebars/lib/helpers/collection.js
<ide> Ember.Handlebars.registerHelper('collection', function(path, options) {
<ide>
<ide> // Extract item view class if provided else default to the standard class
<ide> var itemViewClass, itemViewPath = hash.itemViewClass;
<del> var collectionPrototy... | 2 |
PHP | PHP | remove unused use statement | 0dbad225481a0fbdf1585f4660ccfe82ec5e24d8 | <ide><path>src/View/Helper/FormHelper.php
<ide> use Cake\Core\Exception\Exception;
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\Form\Form;
<del>use Cake\ORM\Entity;
<ide> use Cake\Routing\Router;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Inflector; | 1 |
Javascript | Javascript | fix change events for custom elements | 05a55a4b09b7b7c8f63778fb8252a001ca66f8d7 | <ide><path>packages/react-dom/src/__tests__/DOMPropertyOperations-test.js
<ide> describe('DOMPropertyOperations', () => {
<ide> ReactDOM = require('react-dom');
<ide> });
<ide>
<add> // Sets a value in a way that React doesn't see,
<add> // so that a subsequent "change" event will trigger the event handler.
<a... | 2 |
Ruby | Ruby | fix route recognition encoding test | 43b406bdb0a747392f30d3da404da3aa6fb29776 | <ide><path>actionpack/test/controller/routing_test.rb
<add># encoding: utf-8
<ide> require 'abstract_unit'
<ide> require 'controller/fake_controllers'
<ide> require 'active_support/dependencies'
<ide> def test_route_with_text_default
<ide> assert_equal({:controller => "content", :action => 'show_page', :id => 'foo'... | 1 |
Java | Java | add debug logs to fabricuimanager | c49afb174f76b74e390f531ee67d43997d76f71b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> public class FabricUIManager implements UIManager {
<ide>
<ide> private static final String TAG = FabricUIManager.class.getSimpleName();
<ide> private static final boolean DEBUG = true;
<add>
<ide> private final RootShadow... | 2 |
Ruby | Ruby | remove unnecessary else statement | 7554e5cdf49bbc337ebd7cc68c5dd459c6b296af | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def setup_subscriptions
<ide> path = payload[:virtual_path]
<ide> next unless path
<ide> partial = path =~ /^.*\/_[^\/]*$/
<add>
<ide> if partial
<ide> @partials[path] += 1
<ide> @partials[path.split("/").... | 1 |
Mixed | Javascript | add array.prototype.includes polyfill | ed47efe4a17a6fa3f0a2a8a36600efdcd1c65b86 | <ide><path>docs/JavaScriptEnvironment.md
<ide> ES6
<ide> * [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
<ide> * String.prototype.{[startsWith](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith), [endsWith... | 2 |
Go | Go | ensure clean engine shutdown on startup errors | 0e3f2f2ac07c69922bd837f864219a088d243248 | <ide><path>daemon/daemon.go
<ide> func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error)
<ide> trustStore: t,
<ide> statsCollector: newStatsCollector(1 * time.Second),
<ide> }
<del> if err := daemon.restore(); err != nil {
<del> return nil, err
<del> }
<del>
<del> // set up filesyste... | 2 |
PHP | PHP | fix action reference | 3d74b25c9f5c9c340d9d7a776ad878ce333bca5c | <ide><path>src/Illuminate/Notifications/Messages/SimpleMessage.php
<ide>
<ide> namespace Illuminate\Notifications\Messages;
<ide>
<add>use Illuminate\Notifications\Action;
<add>
<ide> class SimpleMessage
<ide> {
<ide> /** | 1 |
Python | Python | change depth_radius from 5 to 2 | 11733fcafdb148878052c47dda0e4b9e76736700 | <ide><path>tutorials/image/alexnet/alexnet_benchmark.py
<ide> def inference(images):
<ide> lrn1 = tf.nn.local_response_normalization(conv1,
<ide> alpha=1e-4,
<ide> beta=0.75,
<del> ... | 1 |
Ruby | Ruby | fix precedence error in failsafe rescue. closes | c5f00580d376a226956401e8802ab7f0ffced563 | <ide><path>railties/lib/dispatcher.rb
<ide> def dispatch(cgi = nil, session_options = ActionController::CgiRequest::DEFAULT_
<ide> end
<ide> rescue Exception => exception # errors from CGI dispatch
<ide> failsafe_response(cgi, output, '500 Internal Server Error', exception) do
<del> controller |... | 1 |
Ruby | Ruby | fix inflection regexes for mouse, mice | 6f253fb440d4979632ab7763e8cf353f9519cc35 | <ide><path>activesupport/lib/active_support/inflections.rb
<ide> module ActiveSupport
<ide> inflect.plural(/([^aeiouy]|qu)y$/i, '\1ies')
<ide> inflect.plural(/(x|ch|ss|sh)$/i, '\1es')
<ide> inflect.plural(/(matr|vert|ind)(?:ix|ex)$/i, '\1ices')
<del> inflect.plural(/([m|l])ouse$/i, '\1ice')
<del> infl... | 2 |
PHP | PHP | add appview as a starting default | 8c922926034ef6104cf5094f3daa53f83f3e4abb | <ide><path>src/View/ViewBuilder.php
<ide> use Cake\Event\EventManager;
<ide> use Cake\Network\Request;
<ide> use Cake\Network\Response;
<del>use Cake\View\View;
<ide> use Cake\View\Exception\MissingViewException;
<add>use Cake\View\View;
<ide>
<ide>
<ide> /**
<ide> public function className($name = null)
<ide> /*... | 2 |
PHP | PHP | use strict assertions | 03f2df5732a663c8eadb33fdd0a3ead84b34b1d9 | <ide><path>tests/TestCase/Database/Driver/SqlserverTest.php
<ide> public function testSelectLimitOldServer()
<ide> ])
<ide> ->offset(10);
<ide>
<del> $this->assertEquals(
<add> $this->assertSame(
<ide> 'SELECT * FROM (' .
<ide> 'SELECT id, ' .
<ide> ... | 2 |
Python | Python | fix failing dependencies for fab and celery | f76ab1f88236b3732fa402dbbf4ee7df671bb1cd | <ide><path>setup.py
<ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
<ide> 'celery~=4.4.2',
<ide> 'flower>=0.7.3, <1.0',
<ide> 'tornado>=4.2.0, <6.0', # Dep of flower. Pin to a version that works on Py3.5.2
<add> 'vine~=1.3', # https://stackoverflow.com/questions/3... | 1 |
Java | Java | use shared eventloopgroup in reactor2tcpclient | 5538863dc94364ef4fdbd10537ab0e2aba3f173d | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/AbstractPromiseToListenableFutureAdapter.java
<ide> public T get() throws InterruptedException {
<ide> @Override
<ide> public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
<ide>... | 2 |
PHP | PHP | add median function | e011ca3761653d8de194441d4f5e6f6a68f9fc08 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function average($key = null)
<ide> return $this->avg($key);
<ide> }
<ide>
<add> /**
<add> * Get the median of a given key.
<add> *
<add> * @param null $key
<add> * @return mixed|null
<add> */
<add> public function med... | 2 |
Ruby | Ruby | teach fetch to download patches | 86cdd812a2517e6dddfe9628220e5806ca6557fb | <ide><path>Library/Homebrew/cmd/fetch.rb
<ide> def fetch
<ide> fetch_formula(f.bottle)
<ide> else
<ide> fetch_formula(f)
<del> f.resources.each do |r|
<del> fetch_resource(r)
<del> end
<add> f.resources.each { |r| fetch_resource(r) }
<add> f.patchlist.select(&:... | 3 |
Go | Go | pass containerrmconfig as parameter | f3bce92a24300366c1f14e2a71361bceefd90e59 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) create(opts createOpts) (retC *container.Container, retErr
<ide> }
<ide> defer func() {
<ide> if retErr != nil {
<del> if err := daemon.cleanupContainer(ctr, true, true); err != nil {
<del> logrus.Errorf("failed to cleanup container on create error: %v", ... | 2 |
Javascript | Javascript | add resizing support to afterimagepass | 9e402e577be661179043699e3295f2b1def50042 | <ide><path>examples/js/postprocessing/AfterimagePass.js
<ide> THREE.AfterimagePass.prototype = Object.assign( Object.create( THREE.Pass.protot
<ide>
<ide> }
<ide>
<add> },
<add>
<add> setSize: function ( width, height ) {
<add>
<add> this.textureComp.setSize( width, height );
<add> this.textureOld.setSize( width,... | 1 |
Javascript | Javascript | remove artificial isenabled tests | 29a1fc2114b28b8fa25ba4dd88e807ead1f581d9 | <ide><path>packages/ember-metal/tests/features_test.js
<del>import { ENV } from 'ember-environment';
<del>import isEnabled, { FEATURES } from 'ember-metal/features';
<del>import assign from 'ember-metal/assign';
<del>
<del>var origFeatures, origEnableOptional;
<del>
<del>QUnit.module('isEnabled', {
<del> setup() {
<de... | 1 |
Javascript | Javascript | add news to the env file | 0369dfbf37caaf523b7d8c87a17cf72df2d08a25 | <ide><path>config/env.js
<ide> const {
<ide> HOME_LOCATION: home,
<ide> API_LOCATION: api,
<ide> FORUM_LOCATION: forum,
<add> NEWS_LOCATION: news,
<ide> LOCALE: locale,
<ide> } = process.env;
<ide>
<ide> const locations = {
<ide> homeLocation: home,
<ide> apiLocation: api,
<del> forumLocation: forum
<add... | 1 |
Javascript | Javascript | remove unused jquerydisabled flag | d26676cab6a1e60ae5cd7985675f8314c89cb2f4 | <ide><path>packages/ember-glimmer/tests/integration/event-dispatcher-test.js
<ide> import {
<ide> run
<ide> } from 'ember-metal';
<ide> import { EMBER_IMPROVED_INSTRUMENTATION } from 'ember/features';
<del>import { jQueryDisabled } from 'ember-views';
<ide>
<ide> let canDataTransfer = !!document.createEvent('HTMLEve... | 1 |
Text | Text | fix typo in cli.md | 472a8a7f8dc09dc0c0b2643d2449e3aa5ca58c71 | <ide><path>doc/api/cli.md
<ide> If `--use-openssl-ca` is enabled, this overrides and sets OpenSSL's directory
<ide> containing trusted certificates.
<ide>
<ide> *Note*: Be aware that unless the child environment is explicitly set, this
<del>evironment variable will be inherited by any child processes, and if they use
... | 1 |
Javascript | Javascript | cover vm with negative tests | ee14a645379e4eff58ab106f1eae7abc70a01d9e | <ide><path>test/parallel/test-vm-module-basic.js
<ide>
<ide> const common = require('../common');
<ide> const assert = require('assert');
<del>const { SourceTextModule, SyntheticModule, createContext } = require('vm');
<add>const {
<add> Module,
<add> SourceTextModule,
<add> SyntheticModule,
<add> createContext
<a... | 1 |
Java | Java | add finally0 to observable.java | e517f55833c7ec02676bd850e9cd8f302a8a713f | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public static <T> Observable<T> concat(Observable<T>... source) {
<ide> return _create(OperationConcat.concat(source));
<ide> }
<ide>
<add> /**
<add> * Emits the same objects as the given Observable, calling the given action
<add> * w... | 2 |
Ruby | Ruby | fix bogus line that was raising warning | 2044294a865a85c4c3144a3000bd9a48427e12c6 | <ide><path>Library/Homebrew/cmd/pull.rb
<ide> def verify_bintray_published(formulae_names)
<ide> # We're in the cache; make sure to force re-download
<ide> while true do
<ide> begin
<del> retry_count = retry_count
<ide> curl url, "-o", filename
<ide> break
<i... | 1 |
Javascript | Javascript | memorize the keyframetrack.setresult() | e9cd1a28124456ee10d080ac1e311e047cdb61de | <ide><path>src/animation/KeyframeTrack.js
<ide> THREE.KeyframeTrack = function ( name, keys ) {
<ide> this.result = THREE.AnimationUtils.clone( this.keys[0].value );
<ide> //console.log( 'constructor result', this.result )
<ide>
<add> // the index of the last result, used as a starting point for local search.
<add> ... | 1 |
Javascript | Javascript | use branchpattern where we are replacing * | 1a7e9de8d8efcb1b2453b5553fa4aad36521750f | <ide><path>lib/versions/version-info.js
<ide> var getTaggedVersion = function() {
<ide> if ( version && semver.satisfies(version, currentPackage.branchVersion)) {
<ide> version.codeName = getCodeName(tag);
<ide> version.full = version.version;
<del> version.branch = 'v' + currentPackage.branchVersi... | 1 |
Python | Python | fix regression in intersect1d | fc2df52313c6db5ba4ccbd10b233cee6b4acec2c | <ide><path>numpy/lib/arraysetops.py
<ide> def intersect1d(ar1, ar2, assume_unique=False, return_indices=False):
<ide> If True, the input arrays are both assumed to be unique, which
<ide> can speed up the calculation. Default is False.
<ide> return_indices : bool
<del> If True, the indices wh... | 2 |
Javascript | Javascript | remove useless shouldverify assignments | 5dab4be53ced9907ea27e7d8624a61031b31dd13 | <ide><path>lib/crypto.js
<ide> function Credentials (method) {
<ide> this.context.init();
<ide> }
<ide>
<del> this.shouldVerify = false;
<ide> }
<ide>
<ide> exports.Credentials = Credentials;
<ide> exports.createCredentials = function (options) {
<ide> if (options.cert) c.context.setCert(options.cert);
<ide>... | 1 |
Go | Go | remove unused features | 4fb1db7f742fb34a7a06621d0698063de87a572c | <ide><path>archive/archive.go
<ide> type Compression int
<ide>
<ide> type TarOptions struct {
<ide> Includes []string
<del> Excludes []string
<del> Recursive bool
<ide> Compression Compression
<del> CreateFiles []string
<ide> }
<ide>
<ide> const (
<ide> func DetectCompression(source []byte) Compression {
<i... | 4 |
Go | Go | add network method to return list of endpoints | f151cc23ab8d6032ea575990ef76f64367225361 | <ide><path>libnetwork/libnetwork_test.go
<ide> func TestSimplebridge(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide>
<add> epList := network.Endpoints()
<add> if len(epList) != 1 {
<add> t.Fatal(err)
<add> }
<add> if ep != epList[0] {
<add> t.Fatal(err)
<add> }
<add>
<ide> if err := ep.Delete(); err != nil {
<i... | 2 |
Go | Go | remove omitempty json tags from stucts | 44f4c95c0ece887023d3ad7ab9c4f147c81d9d3f | <ide><path>api/stats/stats.go
<ide> import "time"
<ide>
<ide> type ThrottlingData struct {
<ide> // Number of periods with throttling active
<del> Periods uint64 `json:"periods,omitempty"`
<add> Periods uint64 `json:"periods"`
<ide> // Number of periods when the container hit its throttling limit.
<del> ThrottledPer... | 1 |
Text | Text | add arabic translation for insertion sort | eb1c54a15e55b884db59b79d748ef9ddebeabbad | <ide><path>curriculum/challenges/arabic/08-coding-interview-prep/algorithms/implement-insertion-sort.arabic.md
<ide> localeTitle: ''
<ide> ---
<ide>
<ide> ## Description
<del>undefined
<add>طريقة الفرز التالية التي سنتعرف إليها هي فرز بالإدراج. تعمل هذه الطريقة عن طريق إنشاء مصفوفة مرتبة في بداية القائمة. تبدأ المصفوف... | 1 |
Javascript | Javascript | cover all http methods that parser supports | 1268737e7198b77817fd0abf18edef5e76b78b33 | <ide><path>test/parallel/test-http-methods.js
<ide> require('../common');
<ide> const assert = require('assert');
<ide> const http = require('http');
<del>const util = require('util');
<ide>
<del>assert(Array.isArray(http.METHODS));
<del>assert(http.METHODS.length > 0);
<del>assert(http.METHODS.includes('GET'));
<del>... | 1 |
Go | Go | add notary integration to `docker build` | 578b1521df85eae8a6205118131751c631323ba5 | <ide><path>api/client/build.go
<ide> package client
<ide>
<ide> import (
<add> "archive/tar"
<ide> "bufio"
<ide> "encoding/base64"
<ide> "encoding/json"
<ide> import (
<ide> "os/exec"
<ide> "path"
<ide> "path/filepath"
<add> "regexp"
<ide> "runtime"
<ide> "strconv"
<ide> "strings"
<ide> func (cli *DockerCli) ... | 1 |
PHP | PHP | remove redundancy in regex | b268a4da0e349b764cf6739b2c8b0b8188395606 | <ide><path>src/Database/Driver/SqlDialectTrait.php
<ide> public function quoteIdentifier(string $identifier): string
<ide> }
<ide>
<ide> // string.string with spaces
<del> if (preg_match('/^([\w-]+\.[\w][\w\s\-]*[\w])(.*)/u', $identifier, $matches)) {
<add> if (preg_match('/^([\w-]+\.[\w]... | 1 |
Python | Python | fix mypy errors at mst_kruskal | da71184b04837d2bc934f9947b4c262da096f349 | <ide><path>graphs/minimum_spanning_tree_kruskal.py
<del>from typing import List, Tuple
<del>
<del>
<del>def kruskal(num_nodes: int, num_edges: int, edges: List[Tuple[int, int, int]]) -> int:
<add>def kruskal(
<add> num_nodes: int, edges: list[tuple[int, int, int]]
<add>) -> list[tuple[int, int, int]]:
<ide> """
... | 2 |
Javascript | Javascript | add a temporary fix for re-evaluation support" | 49ef3ae90af7433b0ff29eb8519ae3bd6c9d58dd | <ide><path>lib/fs.js
<ide> const isWindows = process.platform === 'win32';
<ide>
<ide> const DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG);
<ide> const errnoException = util._errnoException;
<del>
<del>var printDeprecation;
<del>try {
<del> printDeprecation = require('internal/util').printDeprec... | 1 |
Javascript | Javascript | adjust function argument alignment | 8f5695865860ecf06868a89687923e7eb514b442 | <ide><path>test/internet/test-dgram-multicast-multi-process.js
<ide> function launchChildProcess(index) {
<ide> worker.pid, count);
<ide>
<ide> assert.strictEqual(count, messages.length,
<del> 'A worker received an invalid multicast message');
<add> ... | 29 |
Ruby | Ruby | fix inflector to respect default locale | 8cf88cc75ad0289f39fc2272c372f945b3934e76 | <ide><path>activesupport/lib/active_support/core_ext/string/inflections.rb
<ide> class String
<ide> # 'apple'.pluralize(2) # => "apples"
<ide> # 'ley'.pluralize(:es) # => "leyes"
<ide> # 'ley'.pluralize(1, :es) # => "ley"
<del> def pluralize(count = nil, locale = :en)
<add> def plural... | 2 |
Python | Python | return nonzero exit codes on pool import errors. | 397d9128b6abb201e4eafd4a1dd7ece9db5661c5 | <ide><path>airflow/cli/commands/pool_command.py
<ide> """Pools sub-commands"""
<ide> import json
<ide> import os
<add>import sys
<ide> from json import JSONDecodeError
<ide>
<ide> from tabulate import tabulate
<ide> def pool_delete(args):
<ide> @cli_utils.action_logging
<ide> def pool_import(args):
<ide> """Import... | 2 |
PHP | PHP | fix trace/context for errors wrapped by debug kit | 0228bc73b6d6b3ce279b4313b01019faa551a109 | <ide><path>src/Error/BaseErrorHandler.php
<ide> public function handleError(
<ide>
<ide> $debug = Configure::read('debug');
<ide> if ($debug) {
<add> // By default trim 3 frames off for the public and protected methods
<add> // used by ErrorHandler instances.
<add> $sta... | 2 |
Text | Text | remove unneeded headings | f93f0850fa12ae7fd9cb5bab5fc2034eae112d95 | <ide><path>.github/ISSUE_TEMPLATE.md
<del>#### Preamble
<ide> This is a (multiple allowed):
<ide> * [x] bug
<ide> * [ ] enhancement
<ide> * [ ] feature-discussion (RFC)
<ide>
<del>## DESCRIPTIVE TITLE HERE
<ide> * CakePHP Version: EXACT RELEASE VERSION OR COMMIT HASH, HERE.
<ide> * Platform and Target: YOUR WEB-SERVER... | 1 |
Javascript | Javascript | use types from schema | d48975c948320d7983a928c4eeede93e8540c503 | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> yoda: "error",
<ide> eqeqeq: "error",
<ide> "global-require": "off",
<del> "brace-style": "error",
<add> "brace-style": "off",
<ide> "eol-last": "error",
<ide> "no-extra-bind": "warn",
<ide> "no-process-exit": "warn",
<ide><path>lib/AmdMainTemplatePlu... | 11 |
Ruby | Ruby | fix eager load of serializers on active model | 486db21f919c39cef76b487be45290b7561307e8 | <ide><path>activemodel/lib/active_model.rb
<ide> module Serializers
<ide> end
<ide> end
<ide>
<del> def eager_load!
<add> def self.eager_load!
<ide> super
<del> ActiveModel::Serializer.eager_load!
<add> ActiveModel::Serializers.eager_load!
<ide> end
<ide> end
<ide> | 1 |
Javascript | Javascript | add requested changes from pr comments | 57c6c4323c0655a19fea1d2dc350d7fba5ffe7a5 | <ide><path>lib/WebpackOptionsDefaulter.js
<ide> class WebpackOptionsDefaulter extends OptionsDefaulter {
<ide> });
<ide> this.set("output.devtoolNamespace", "make", options => {
<ide> if (Array.isArray(options.output.library))
<del> return [].concat(options.output.library).join(".");
<add> return options.o... | 3 |
Python | Python | fix half of the tests that are failing in v1 | 1e859f75070ea2c145850bddc61a0de82f69db61 | <ide><path>keras/applications/imagenet_utils_test.py
<ide> def test_preprocess_input_symbolic(self, mode):
<ide> },
<ide> ])
<ide> def test_preprocess_input_symbolic_mixed_precision(self, mode):
<add> if not tf.__internal__.tf2.enabled():
<add> self.skipTest('The global policy can only be tested in Te... | 12 |
Go | Go | normalize comment formatting | 0fb563078469c76fbd16535d7a2bf10772cbec3a | <ide><path>pkg/system/chtimes_unix.go
<ide> import (
<ide> "time"
<ide> )
<ide>
<del>//setCTime will set the create time on a file. On Unix, the create
<del>//time is updated as a side effect of setting the modified time, so
<del>//no action is required.
<add>// setCTime will set the create time on a file. On Unix, t... | 3 |
PHP | PHP | remove unneeded trait | 749528db0c85c69349f8e8af564378cf9457a1d8 | <ide><path>app/Http/Controllers/Controller.php
<ide> use Illuminate\Routing\Controller as BaseController;
<ide> use Illuminate\Foundation\Validation\ValidatesRequests;
<ide> use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
<del>use Illuminate\Foundation\Auth\Access\AuthorizesResources;
<ide>
<ide> class Contr... | 1 |
Python | Python | implement like_num getter for dutch (via ) | adda08fe14479e465668bcf39dcedd238a4be20e | <ide><path>spacy/lang/nl/__init__.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from .stop_words import STOP_WORDS
<add>from .lex_attrs import LEX_ATTRS
<ide>
<ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS
<ide> from ..norm_exceptions import BASE_NORMS
<ide>
<ide> class DutchDefaults(Languag... | 2 |
Ruby | Ruby | add failing test case for parameters with periods | 3d8200318aab7458e019e2e434901cccc2532979 | <ide><path>actionpack/test/dispatch/routing_test.rb
<ide> def self.matches?(request)
<ide> get "profile" => "customers#profile", :as => :profile, :on => :member
<ide> post "preview" => "customers#preview", :as => :preview, :on => :new
<ide> end
<add> scope(':version', :version => /.+/... | 1 |
PHP | PHP | add strict_types to testsuite/constraint | 5a5b7b62b725fca79aa491b9eedbee1dd8106ff8 | <ide><path>src/TestSuite/Constraint/Console/ContentsBase.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide><path>src/TestSuite/Constraint/Console/ContentsC... | 48 |
Javascript | Javascript | move built flag into compilation | eb63cf80d6f2102270c2babfb620cfd78a2a33cb | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> this.compilationDependencies = undefined;
<ide> /** @type {boolean} */
<ide> this.needAdditionalPass = false;
<add> /** @type {WeakSet<Module>} */
<add> this.builtModules = new WeakSet();
<ide> /** @private @type {Map<Module, Callback[]>} */
<ide> ... | 11 |
Ruby | Ruby | add parentheses to hide ruby warning | 6d8ec0bc93d29ae16e74aa2baf9d361e558e7d12 | <ide><path>railties/test/queueing/threaded_consumer_test.rb
<ide> def teardown
<ide> sleep 0.1
<ide>
<ide> assert_equal 1, logger.logged(:error).size
<del> assert_match /Job Error: RuntimeError: Error!/, logger.logged(:error).last
<add> assert_match(/Job Error: RuntimeError: Error!/, logger.logged(:error... | 1 |
Text | Text | improve russian translation in challenge | c88b622ab9ad7a90fdf9cce061c02e8bb5ef68e5 | <ide><path>curriculum/challenges/russian/08-coding-interview-prep/algorithms/find-the-symmetric-difference.russian.md
<ide> localeTitle: Найти симметричную разницу
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Создайте функцию, которая принимает два или более массива и возвращает массив <dfn>сим... | 1 |
Javascript | Javascript | fix an incorrect comment in the attributes module | 5430c540dfedf1a64558d5f55f668904ee787817 | <ide><path>src/attributes/attr.js
<ide> jQuery.extend( {
<ide> return jQuery.prop( elem, name, value );
<ide> }
<ide>
<del> // All attributes are lowercase
<add> // Attribute hooks are determined by the lowercase version
<ide> // Grab necessary hook if one is defined
<ide> if ( nType !== 1 || !jQuery.isXMLD... | 1 |
Go | Go | set appropriate cflags on solaris | 4683f588ce893f3156ecfa63bfd16ebda1d09157 | <ide><path>pkg/system/meminfo_solaris.go
<ide> import (
<ide> "unsafe"
<ide> )
<ide>
<add>// #cgo CFLAGS: -std=c99
<ide> // #cgo LDFLAGS: -lkstat
<ide> // #include <unistd.h>
<ide> // #include <stdlib.h> | 1 |
Javascript | Javascript | add tests for false positives | eab6a1a38954efe09f6825289b6bc0beecebe43c | <ide><path>type-definitions/tests/immutable-flow.js
<ide> stringToNumber = Map({'a': 1}).mergeDeepIn([], [])
<ide>
<ide> anyMap = Map({'a': {}}).mergeIn(['a'], { b: 2 })
<ide> anyMap = Map({'a': {}}).mergeDeepIn(['a'], { b: 2 })
<add>// $ExpectError
<add>anyMap = Map({'a': {}}).mergeIn(['a'], 1)
<add>// $ExpectError
<... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.