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 tests for radio options and string disabled | 49299f7f43262c257d3b39d6d2ff5f2abca456f3 | <ide><path>tests/TestCase/View/Widget/RadioTest.php
<ide> public function testRenderDisabled() {
<ide> ];
<ide> $this->assertTags($result, $expected);
<ide>
<add> $data['disabled'] = 'a string';
<add> $result = $radio->render($data);
<add> $this->assertTags($result, $expected);
<add>
<ide> $data['disabled'] =... | 1 |
PHP | PHP | add unsigned support to mysql | 9e4c94b0a87f406f42047f6ff49f1a64bf737de2 | <ide><path>Cake/Database/Schema/MysqlSchema.php
<ide> <?php
<ide> /**
<del> * PHP Version 5.4
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide>
<ide> /**
<ide> * Schema generation/reflection ... | 2 |
Text | Text | improve the workflow to test release binaries | 7ceb624dcec8cea3086f2ef78e53f5d1f554057f | <ide><path>doc/contributing/releases.md
<ide> the build before moving forward. Use the following list as a baseline:
<ide> must be in the expected updated version)
<ide> * npm version (check it matches what we expect)
<ide> * Run the test suite against the built binaries (optional)
<add> * Remember to use the propos... | 1 |
Mixed | Javascript | fix unallocated deprecation code | 193926ecabe144d622e38aad89ba442df3e2114a | <ide><path>doc/api/deprecations.md
<ide> Type: Runtime
<ide>
<ide> `REPLServer.parseREPLKeyword()` was removed from userland visibility.
<ide>
<del><a id="DEP00XX"></a>
<del>### DEP00XX: tls.parseCertString()
<add><a id="DEP0076"></a>
<add>### DEP0076: tls.parseCertString()
<ide>
<ide> Type: Runtime
<ide>
<ide><pat... | 2 |
Javascript | Javascript | remove unused frustum bounding box | bdf738fb9048c279b7599889c60800e92e0f2b78 | <ide><path>examples/jsm/csm/FrustumBoundingBox.js
<del>/**
<del> * @author vHawk / https://github.com/vHawk/
<del> */
<del>
<del>export default class FrustumBoundingBox {
<del>
<del> constructor() {
<del>
<del> this.min = {
<del> x: 0,
<del> y: 0,
<del> z: 0
<del> };
<del> this.max = {
<del> x: 0,
<del> y:... | 1 |
Javascript | Javascript | fix lint warnings | 753bfcf7c7f39fcee26ea23fc71554c2e6129f87 | <ide><path>extensions/firefox/bootstrap.js
<add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
<add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<add>
<add>'use strict';
<add>
<ide> let Cc = Components.classes;
<ide> let Ci = Components.interfaces;
<ide> let Cm =... | 3 |
PHP | PHP | fix behavior in postgres | 7eac855e7ff3ec1dae0e2d998d1f0af39bac0b32 | <ide><path>src/TestSuite/Fixture/SchemaLoader.php
<ide> public function loadFiles(
<ide> $cleaner->dropTables($connectionName);
<ide> }
<ide>
<add> /** @var \Cake\Database\Connection $connection */
<ide> $connection = ConnectionManager::get($connectionName);
<ide> foreach ($f... | 1 |
Ruby | Ruby | build changed dependencies first | 0031e1947df198f16b86d9c1bf2b39ad15b1178e | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def run
<ide> end
<ide>
<ide> class Test
<del> attr_reader :log_root, :category, :name, :formulae, :steps
<add> attr_reader :log_root, :category, :name, :steps
<ide>
<ide> def initialize argument, tap=nil
<ide> @hash = nil
<ide> def formula formula
<... | 1 |
Go | Go | restore netns on teardown | afa41b16eacee43f75e83c088712e4b7a24b48e2 | <ide><path>libnetwork/osl/sandbox_linux_test.go
<ide> import (
<ide> "net"
<ide> "os"
<ide> "path/filepath"
<del> "runtime"
<ide> "strings"
<ide> "syscall"
<ide> "testing"
<ide> func TestDisableIPv6DAD(t *testing.T) {
<ide> if err != nil {
<ide> t.Fatalf("Failed to create a new sandbox: %v", err)
<ide> }
<del... | 2 |
PHP | PHP | fix typos in namespaces | 10605040813ead7499c742e009f044a758a0fa95 | <ide><path>src/Database/Query.php
<ide> protected function _makeJoin($table, $conditions, $type)
<ide> * @param array $types associative array of type names used to bind values to query
<ide> * @param bool $overwrite whether to reset conditions with passed list or not
<ide> * @see \Cake\Database\Type
<de... | 2 |
PHP | PHP | initialize $fixtures to null | 0c9622514c34b9e93aa33291f6e786df4fcd8629 | <ide><path>src/TestSuite/TestCase.php
<ide> abstract class TestCase extends BaseTestCase
<ide> */
<ide> public $fixtureManager;
<ide>
<add> /**
<add> * Fixtures used by this test case.
<add> *
<add> * @var array|string
<add> */
<add> public $fixtures = null;
<add>
<add>
<ide> /**
<id... | 1 |
Go | Go | implement env within docker builder | e45aef0c82044be6a427502d4bbb0979074c2ba1 | <ide><path>builder.go
<ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e
<ide> image, base *Image
<ide> config *Config
<ide> maintainer string
<add> env map[string]string = make(map[string]string)
<ide> tmpContainers map[string]struct{} = make(map[str... | 1 |
Javascript | Javascript | remove circular dependencies in react core | 2ee66262db9fb91b0d0e9d64cefeb223074f8e05 | <ide><path>src/core/ReactComponent.js
<ide> var getReactRootElementInContainer = require('getReactRootElementInContainer');
<ide> var ReactCurrentOwner = require('ReactCurrentOwner');
<ide> var ReactDOMIDOperations = require('ReactDOMIDOperations');
<del>var ReactID = require('ReactID');
<ide> var ReactMarkupChecksum =... | 21 |
Text | Text | add v3.24.3, v3.25.2, and v3.25.3 to changelog.md | 56c3520b0e52e5bc7f357b5865c34a23eefd98e7 | <ide><path>CHANGELOG.md
<ide> - [#19298](https://github.com/emberjs/ember.js/pull/19298) [BUGFIX] Route serialize did not extract param off proxy
<ide> - [#19326](https://github.com/emberjs/ember.js/pull/19326) [BUGFIX] Lazily setup the router in non-application tests for <LinkTo> component
<ide>
<add>
<add>### v3.25.... | 1 |
Text | Text | add note about aur to arch build instructions | 3c8bcd7ea9a35c357c7342dd73ea079e95750d58 | <ide><path>docs/build-instructions/linux.md
<ide> Ubuntu LTS 12.04 64-bit is the recommended platform.
<ide>
<ide> ### Arch
<ide>
<del>* `sudo pacman -S gconf base-devel git nodejs npm libgnome-keyring python2`
<del>* `export PYTHON=/usr/bin/python2` before building Atom.
<add>* To automatically build Atom from sourc... | 1 |
Go | Go | restore network settings at startup | f1087c5fcf070f151601f643418f3963facfea84 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> registeredContainers = append(registeredContainers, container)
<ide> }
<ide>
<add> // Restore networking of registered containers.
<add> // This must be performed prior to any IP allocation, otherwise we might
<add> // end up giving awa... | 1 |
Ruby | Ruby | push parent up to the superclass | 217aedf1bf4255696c4f95976ee5056054dc9231 | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb
<ide> class JoinAssociation < JoinPart # :nodoc:
<ide> # The reflection of the association represented
<ide> attr_reader :reflection
<ide>
<del> # A JoinBase instance representing the active record we are ... | 3 |
PHP | PHP | fix digestauthenticate with simulated http methods | 8b9dfc43e813f57c937a4418a27c248a26288514 | <ide><path>src/Auth/DigestAuthenticate.php
<ide> public function getUser(Request $request) {
<ide> $password = $user[$field];
<ide> unset($user[$field]);
<ide>
<del> $hash = $this->generateResponseHash($digest, $password, $request->env('REQUEST_METHOD'));
<add> $hash = $this->generateResponseHash($digest, $passw... | 4 |
Mixed | Go | provide a knob dm.xfs_nospace_max_retries | 4f0017b9ad7dfa2e9dcdee69d000b98595893e60 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> type DeviceSet struct {
<ide> uidMaps []idtools.IDMap
<ide> gidMaps []idtools.IDMap
<ide> minFreeSpacePercent uint32 //min free space percentage in thinpool
<add> xfsNospaceRetries string // max retries when xfs receives ENO... | 2 |
Go | Go | protect the health status with mutex | 7db30ab0cdf072956d2ceda833b7de22fe17655c | <ide><path>container/health.go
<ide> type Health struct {
<ide>
<ide> // String returns a human-readable description of the health-check state
<ide> func (s *Health) String() string {
<del> // This happens when the monitor has yet to be setup.
<del> if s.Status == "" {
<del> return types.Unhealthy
<del> }
<add> statu... | 4 |
Ruby | Ruby | add methods to strongparameters | 3f2ac413b7c455ca951944da510683f52cb964da | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> class Parameters
<ide> cattr_accessor :permit_all_parameters, instance_accessor: false
<ide> cattr_accessor :action_on_unpermitted_parameters, instance_accessor: false
<ide>
<del> delegate :keys, :key?, :has_key?, :empty?, :include... | 2 |
Ruby | Ruby | improve help text formatting | 6b8724431fb73b75f003064cb4b70c20e9e665e0 | <ide><path>Library/Homebrew/cli_parser.rb
<ide> def initialize(&block)
<ide> @constraints = []
<ide> @conflicts = []
<ide> @processed_options = []
<del> @desc_line_length = 48
<add> @desc_line_length = 43
<ide> instance_eval(&block)
<ide> post_initialize
<ide> ... | 3 |
PHP | PHP | set connection while retrieving models | 7392014bee4601a054f070f95451037d99df4ce7 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function orWhere($column, $operator = null, $value = null)
<ide> */
<ide> public function hydrate(array $items)
<ide> {
<del> $instance = $this->model->newInstance();
<add> $instance = $this->model->newInstance()->setConnect... | 3 |
Java | Java | fix typo and use of componentry | 65d2e9bb547e15df4b9eda1dcf36ec17f8f3a60a | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java
<ide> * setting of the <em>thread name prefix</em> of the {@code Executor}; this is because
<ide> * the {@code <task:executor>} element does not expose such an attribute. This
<ide> * demonstrates how the JavaConfig-ba... | 4 |
Java | Java | leave query un-encoded in mockmvc request builder | 0b8554f94a73b1620d8c34d1a68b3eb8e56d482a | <ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java
<ide> public final MockHttpServletRequest buildRequest(ServletContext servletContext)
<ide>
<ide> try {
<ide> if (this.uriComponents.getQuery() != null) {
<del> String query = UriUtils.decode(th... | 2 |
Javascript | Javascript | simplify implementation of angular.string.todate() | 42855e436327eb75050f98e2c1791b5448a49e9d | <ide><path>src/apis.js
<ide> var angularString = {
<ide> }
<ide> return chars.join('');
<ide> },
<add>
<add> /**
<add> * Tries to convert input to date and if successful returns the date, otherwise returns the input.
<add> * @param {string} string
<add> * @return {(Date|string)}
<add> */
<ide> 'toD... | 1 |
Javascript | Javascript | fix some lint issues | 36b58b235eeca4e9580162a697d8a96c41263ebc | <ide><path>src/widgets.js
<ide> function valueAccessor(scope, element) {
<ide> format = formatter.format;
<ide> parse = formatter.parse;
<ide> if (requiredExpr) {
<del> scope.$watch(requiredExpr, function(newValue) {required = newValue; validate();});
<add> scope.$watch(requiredExpr, function(newValue) {
<a... | 2 |
Text | Text | move changelog entry in railties to the top | 149b86d97bd14b26cdf1d408567a414418710bcf | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* Support for PostgreSQL's ltree data type.
<add>* Support for PostgreSQL's `ltree` data type.
<ide>
<ide> *Rob Worley*
<ide>
<ide> This is a soft-deprecation for `update_attributes`, although it will still work without ... | 3 |
Ruby | Ruby | convert edit test to spec | 3ef51dba055700ecca9a4f10e1fe0e714b7f9889 | <add><path>Library/Homebrew/cask/spec/cask/cli/edit_spec.rb
<del><path>Library/Homebrew/cask/test/cask/cli/edit_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> # monkeypatch for testing
<ide> module Hbc
<ide> def self.editor_commands
<ide> end
<ide>
<ide> describe Hbc::CLI::Edit do
<del> be... | 1 |
Python | Python | add test for non native bytetypes | a4bb3bc1dc2e5c7114e77e4a92df04d57ee02c9b | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def test_inplace_fancy_indexing(self):
<ide> np.add.at(a, [0,1], 3)
<ide> assert_array_equal(orig, np.arange(4))
<ide>
<add> dt = np.dtype(np.intp).newbyteorder()
<add> index = np.array([1,2,3], dt)
<add> dt = np.dtype(np.float_).newb... | 1 |
Go | Go | fix typo mistake | fa9e54fbf112c44de05a66330fc22303b1681d05 | <ide><path>daemon/execdriver/termconsole.go
<ide> func (s *StdConsole) AttachPipes(command *exec.Cmd, pipes *Pipes) error {
<ide>
<ide> // Resize implements Resize method of Terminal interface
<ide> func (s *StdConsole) Resize(h, w int) error {
<del> // we do not need to reside a non tty
<add> // we do not need to res... | 1 |
Text | Text | remove docs for unimplemented api | dd83b5f2ac3a9684044b4aa5ad0b3832ea63694b | <ide><path>doc/api/perf_hooks.md
<ide> the Performance Timeline or any of the timestamp properties provided by the
<ide> `PerformanceNodeTiming` class. If the named `endMark` does not exist, an
<ide> error will be thrown.
<ide>
<del>### performance.nodeFrame
<del><!-- YAML
<del>added: v8.5.0
<del>-->
<del>
<del>* {Per... | 1 |
Python | Python | add roles to create_user test | a1a32f7c7c2df41e6150f2594a3a41bfecb76fb0 | <ide><path>tests/www/views/test_views_base.py
<ide> def test_create_user(app, admin_client, non_exist_username):
<ide> 'last_name': 'fake_last_name',
<ide> 'username': non_exist_username,
<ide> 'email': 'fake_email@email.com',
<add> 'roles': [1],
<ide> 'passwor... | 1 |
Text | Text | fix all github issues and prs query params | 4d60346fc4691881ccf448c7b0e8076c882ee52f | <ide><path>docs/_posts/2017-09-08-dom-attributes-in-react-16.md
<ide> It uses React 16 RC, and you can [help us by testing the RC in your project!](ht
<ide>
<ide> ## Thanks
<ide>
<del>This effort was largely driven by [Nathan Hunzaker](https://github.com/nhunzaker) who has been a [prolific outside contributor to Reac... | 4 |
Ruby | Ruby | remove unneeded yaml_as declaration | 452dba72f5bac3118a3405408665ae372ebbe6a1 | <ide><path>activesupport/lib/active_support/core_ext/big_decimal/conversions.rb
<ide> class BigDecimal
<ide> YAML_TAG = 'tag:yaml.org,2002:float'
<ide> YAML_MAPPING = { 'Infinity' => '.Inf', '-Infinity' => '-.Inf', 'NaN' => '.NaN' }
<ide>
<del> yaml_as YAML_TAG
<del>
<ide> # This emits the number without any sc... | 1 |
Text | Text | update chinese translation of es6 | 83957bb15080b7324beceb05cad08930c5aa4d1d | <ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/es6/compare-scopes-of-the-var-and-let-keywords.chinese.md
<ide> id: 587d7b87367417b2b2512b40
<ide> title: Compare Scopes of the var and let Keywords
<ide> challengeType: 1
<del>videoUrl: ''
<del>localeTitle: 比较var的范围并让关键字
<add>forumTo... | 36 |
PHP | PHP | add some fluent methods to routes | 1c095f839d3b983784b360a4899a743a0a472243 | <ide><path>src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php
<ide> public function boot(Router $router)
<ide> $this->loadCachedRoutes();
<ide> } else {
<ide> $this->loadRoutes();
<add>
<add> // We still want name look-ups to be fast, even if names were speci... | 3 |
Text | Text | fix a spelling mistake in the docs | 35c82f422d5db64baec6739490900f7f8fa7d7fd | <ide><path>docs/reference/commandline/logs.md
<ide> The `docker logs` command batch-retrieves logs present at the time of execution.
<ide> > **Note**: this command is only functional for containers that are started with
<ide> > the `json-file` or `journald` logging driver.
<ide>
<del>For more information about selecti... | 2 |
Javascript | Javascript | use process.nexttick() instead of setimmediate() | 8dd635eb41ff05162b4851026a5a68a3360e5bbf | <ide><path>lib/internal/js_stream_socket.js
<ide> class JSStreamSocket extends Socket {
<ide>
<ide> const handle = this._handle;
<ide>
<del> setImmediate(() => {
<add> process.nextTick(() => {
<ide> // Ensure that write is dispatched asynchronously.
<ide> this.stream.end(() => {
<ide> th... | 1 |
Javascript | Javascript | add comment for animationcurve-less node | 09d75ad29ad2461f0bbc3d99993a93ed7733ab8f | <ide><path>examples/js/loaders/FBXLoader.js
<ide> if ( curveNode.attr === 'R' ) {
<ide>
<ide> var curves = curveNode.curves;
<add>
<add> // Seems like some FBX files have AnimationCurveNode
<add> // which doesn't have any connected AnimationCurve.
<add> // Setting animation parameter for them here.
<ad... | 1 |
Ruby | Ruby | add a failure message to be_detected_from matcher | 557105640b5154e3fe1299aa31abdc106aa71df5 | <ide><path>Library/Homebrew/test/version_spec.rb
<ide>
<ide> describe "::detect" do
<ide> matcher :be_detected_from do |url, specs = {}|
<del> match do |version|
<del> Version.detect(url, specs) == version
<add> detected = Version.detect(url, specs)
<add>
<add> match do |expected|
<add> ... | 1 |
Javascript | Javascript | fix bug in ie where clone removes whitespace nodes | 8e40e7070d44d11332adc1426b7076c2be570b2b | <ide><path>src/Angular.js
<ide> if (msie) {
<ide> };
<ide> }
<ide>
<add>function quickClone(element) {
<add> return jqLite(element[0].cloneNode(true));
<add>}
<add>
<ide> function isVisible(element) {
<ide> var rect = element[0].getBoundingClientRect(),
<ide> width = (rect.width || (rect.right||0 - rect.lef... | 3 |
Text | Text | add ronnyvotel@ to maintainers list | 4648f6dc2dbe137f1f52c5ee203dc2572225c84a | <ide><path>research/object_detection/README.md
<ide> https://scholar.googleusercontent.com/scholar.bib?q=info:l291WsrB-hQJ:scholar.go
<ide>
<ide> * Jonathan Huang, github: [jch1](https://github.com/jch1)
<ide> * Vivek Rathod, github: [tombstone](https://github.com/tombstone)
<add>* Ronny Votel, github: [ronnyvotel](ht... | 1 |
Mixed | Java | add support for extrapolation | 6d978c3c8b1e3929e59439db0c0a34dd094253cf | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> class AnimatedInterpolation extends AnimatedWithChildren {
<ide> }
<ide>
<ide> __getNativeConfig(): any {
<del> NativeAnimatedHelper.validateInterpolation(this._config);
<add> if (__DEV__) {
<add> NativeAnimatedHelper.validateInterpolatio... | 5 |
PHP | PHP | add a unit test for stringtype | 33c03f446456bea4f3e4c13eaaadf61c22463644 | <ide><path>tests/TestCase/Database/Type/StringTypeTest.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license inf... | 1 |
Javascript | Javascript | add videojs to window directly. fix #448 | b1b0ac0377b3fefe9c09c9d09bd83421c14672c7 | <ide><path>src/js/core.js
<ide> var vjs = function(id, options, ready){
<ide>
<ide> // Extended name, also available externally, window.videojs
<ide> var videojs = vjs;
<add>window.videojs = window.vjs = vjs;
<ide>
<ide> // CDN Version. Used to target right flash swf.
<ide> vjs.CDN_VERSION = 'GENERATED_CDN_VSN'; | 1 |
PHP | PHP | add routes() hook | 5ab8de4468c00ada8a1323da88be1acb8811a421 | <ide><path>src/Http/BaseApplication.php
<ide> public function bootstrap()
<ide> require_once $this->configDir . '/bootstrap.php';
<ide> }
<ide>
<add> /**
<add> * Define the routes for an application.
<add> *
<add> * By default this will load `config/routes.php` for ease of use and backwards ... | 5 |
Ruby | Ruby | move batch finders to relation | dc3cc6c608b93209b23bbebd2ade04835abd6f6c | <ide><path>activerecord/lib/active_record.rb
<ide> module ActiveRecord
<ide> autoload :Calculations
<ide> autoload :PredicateBuilder
<ide> autoload :SpawnMethods
<add> autoload :Batches
<ide> end
<ide>
<ide> autoload :Base
<del> autoload :Batches
<ide> autoload :Callbacks
<ide> ... | 5 |
Python | Python | pass initkwargs stored on view to instance | f1ca71ce217a0477bc1f54dfd551b5da23386e41 | <ide><path>rest_framework/utils/breadcrumbs.py
<ide> def breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen):
<ide> # Check if this is a REST framework view,
<ide> # and if so add it to the breadcrumbs
<ide> cls = getattr(view, 'cls', None)
<add> initkwargs = getatt... | 1 |
Go | Go | rename some tests to be more descriptive | a9c5a40087348ac47d94f2cc71a8d76e946a1b98 | <ide><path>pkg/system/chtimes_linux_test.go
<ide> import (
<ide> "time"
<ide> )
<ide>
<del>// TestChtimesLinux tests Chtimes access time on a tempfile on Linux
<del>func TestChtimesLinux(t *testing.T) {
<add>// TestChtimesATime tests Chtimes access time on a tempfile.
<add>func TestChtimesATime(t *testing.T) {
<ide> ... | 3 |
Ruby | Ruby | add test case to relation select | ccbba229386bdc629be5f5f4ef765ab5e29e7da7 | <ide><path>activerecord/test/cases/relation/select_test.rb
<add># frozen_string_literal: true
<add>
<add>require "cases/helper"
<add>require "models/post"
<add>
<add>module ActiveRecord
<add> class SelectTest < ActiveRecord::TestCase
<add> fixtures :posts
<add>
<add> def test_select_with_nil_agrument
<add> ... | 1 |
PHP | PHP | allow only keys directly on safe | 5e4ded83bacc64e5604b6f71496734071c53b221 | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> protected function failedAuthorization()
<ide> /**
<ide> * Get a validated input container for the validated input.
<ide> *
<del> * @return \Illuminate\Support\ValidatedInput
<add> * @param array|null $keys
<add> * @return \Illu... | 2 |
Ruby | Ruby | remove superfluous tests directive | 888a2927b65889465ce7a1a71e87d37640a2b41b | <ide><path>actionpack/test/template/prototype_helper_test.rb
<ide> class Author::Nested < Author; end
<ide>
<ide>
<ide> class PrototypeHelperBaseTest < ActionView::TestCase
<del> tests ActionView::Helpers::PrototypeHelper
<del>
<ide> attr_accessor :template_format
<ide>
<ide> def setup | 1 |
Text | Text | change "monsterstats" element to "#monsterstats" | 374b69ab23b0e502bbef124244f0116b21d81d70 | <ide><path>curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62a23d1c5f1c93161f3582ae.md
<ide> Similar to your `#stats` element, your `#monsterStats` element needs two `span`
<ide>
<ide> # --hints--
<ide>
<del>Your `monsterStats` eleme... | 1 |
Mixed | Text | remove em dashes | b6cd2155c3442a8c56aa6f6ffa0dc9b6a308a7b1 | <ide><path>CHANGELOG.md
<ide>
<ide> Select a Node.js version below to view the changelog history:
<ide>
<del>* [Node.js 13](doc/changelogs/CHANGELOG_V13.md) - **Current**
<del>* [Node.js 12](doc/changelogs/CHANGELOG_V12.md) - **Long Term Support**
<del>* [Node.js 11](doc/changelogs/CHANGELOG_V11.md) - End-of-Life
<de... | 15 |
Ruby | Ruby | update license checks to new style | e215b3df75bbc355e0e1872258055ab270db4844 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> # Check style in a single batch run up front for performance
<ide> style_results = Style.check_style_json(style_files, options) if style_files
<ide> # load licenses
<del> spdx_data = SPDX.spdx_data
<add> spdx_license_data = SPDX.licens... | 2 |
Go | Go | remove unused function in server_unit_test.go | 641a7ec9ad61a42b255d203b7791198431761104 | <ide><path>api/server/server_unit_test.go
<ide> package server
<ide>
<ide> import (
<del> "bytes"
<ide> "encoding/json"
<ide> "fmt"
<ide> "io"
<ide> import (
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/api"
<del> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/engine"
<ide> "gith... | 1 |
Javascript | Javascript | add support to parse `do` | 742ba1e308d785eda289c1741587709845bb2291 | <ide><path>moment.js
<ide> parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
<ide> parseTokenT = /T/i, // T (ISO separator)
<ide> parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
<add> parseTokenOrdinal = /\d{1,2}/,
<ide>
<ide> ... | 1 |
Mixed | Ruby | keep index names when using with sqlite3 | d01f913f8d21230b387c70d13b5646a838ba2915 | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Keep index names when using `alter_table` with sqlite3.
<add> Fix #3489
<add>
<add> *Yves Senn*
<add>
<ide> * Add ability for postgresql adapter to disable user triggers in disable_referential_integrity.
<ide> Fix #552... | 3 |
Javascript | Javascript | use === in _http_server and _tls_wrap | 20fa6e7d07c8c593548330b478c1869adaaf1456 | <ide><path>lib/_http_server.js
<ide> function connectionListener(socket) {
<ide> }
<ide>
<ide> if (req.headers.expect !== undefined &&
<del> (req.httpVersionMajor == 1 && req.httpVersionMinor == 1)) {
<add> (req.httpVersionMajor === 1 && req.httpVersionMinor === 1)) {
<ide> if (continueExpr... | 2 |
Mixed | PHP | fix some typos and links | 7027bc6b2138b44e48e5704c857e81f6aaab5ec5 | <ide><path>src/Database/README.md
<ide> SELECT CONCAT(title, :c0) ...;
<ide>
<ide> ### Other SQL Clauses
<ide>
<del>Read of all other SQL clases that the builder is capable of generating in the [official API docs](http://api.cakephp.org/3.0/class-Cake.Database.Query.html)
<add>Read of all other SQL clauses that the b... | 6 |
Go | Go | remove unused id | a44f547343299d609d6840306851102a0c78b70e | <ide><path>registry/session.go
<ide> import (
<ide> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/pkg/ioutils"
<ide> "github.com/docker/docker/pkg/jsonmessage"
<del> "github.com/docker/docker/pkg/stringid"
<ide> "github.com/pkg/errors"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide> import (
... | 1 |
PHP | PHP | startswith etc | df945ea3a74cd2d79885b21cf5af994c61088a41 | <ide><path>tests/Support/SupportStrTest.php
<ide> public function testStartsWith()
<ide> $this->assertTrue(Str::startsWith('jason', 'jas'));
<ide> $this->assertTrue(Str::startsWith('jason', 'jason'));
<ide> $this->assertTrue(Str::startsWith('jason', ['jas']));
<add> $this->assertTrue(Str:... | 1 |
Ruby | Ruby | warn people about tapped, deprecated taps | 67cbb129ffa5b6519be668fe0e61508b1b2d721c | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_coretap_git_branch
<ide> EOS
<ide> end
<ide>
<add> def check_deprecated_official_taps
<add> tapped_deprecated_taps =
<add> Tap.select(&:official?).map(&:repo) & DEPRECATED_OFFICIAL_TAPS
<add> return if tapped_deprecated... | 1 |
PHP | PHP | support aliases on withcount | dd29bbcb9cdeba47286d22666692d00dd9a3a35d | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function withCount($relations)
<ide> $relations = is_array($relations) ? $relations : func_get_args();
<ide>
<ide> foreach ($this->parseWithRelations($relations) as $name => $constraints) {
<del> // If relation string match... | 1 |
Javascript | Javascript | improve readfile performance | eb2d4161f56efa7d82a6364734c674757f1f3ea4 | <ide><path>lib/fs.js
<ide> function readFileAfterStat(err, stats) {
<ide>
<ide> const size = context.size = isFileType(stats, S_IFREG) ? stats[8] : 0;
<ide>
<del> if (size === 0) {
<del> context.buffers = [];
<del> context.read();
<del> return;
<del> }
<del>
<ide> if (size > kMaxLength) {
<ide> err... | 2 |
Java | Java | register runtime hints for @sql scripts | e57b5f1dfcff0b993408f5e8b26e551b345f0a5c | <ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java
<ide> package org.springframework.test.context.jdbc;
<ide>
<ide> import java.lang.reflect.Method;
<add>import java.util.Arrays;
<ide> import java.util.List;
<ide> import java.util.Set;
<add>import java.util.... | 2 |
Ruby | Ruby | use method compilation for association methods | 6e57d5c5840716b63851f02a6a806ba968065bca | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def define_accessors
<ide> end
<ide>
<ide> def define_readers
<del> name = self.name
<del> mixin.redefine_method(name) do |*params|
<del> association(name).reader(*params)
<del> end
<add> mixin.class_... | 12 |
Text | Text | fix bug in validators documentation | 614bd87b601c84f7687c94de616daacad8a3734a | <ide><path>docs/api-guide/validators.md
<ide> A validator may be any callable that raises a `serializers.ValidationError` on f
<ide> def even_number(value):
<ide> if value % 2 != 0:
<ide> raise serializers.ValidationError('This field must be an even number.')
<add> return value
<ide>
<id... | 1 |
Text | Text | rectify layout errors | 85afde04e5f69e94efef33388cf87a74132bb5eb | <ide><path>guide/english/css/comments-in-css/index.md
<ide> Here are a few exmples to get you started of CSS comments you can use in your da
<ide> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ide> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
<ide>
<add... | 1 |
Mixed | Javascript | add options to http.createserver() | a899576c977aef32d85074ac09d511e4590e28d7 | <ide><path>doc/api/http.md
<ide> A collection of all the standard HTTP response status codes, and the
<ide> short description of each. For example, `http.STATUS_CODES[404] === 'Not
<ide> Found'`.
<ide>
<del>## http.createServer([requestListener])
<add>## http.createServer([options][, requestListener])
<ide> <!-- YAML... | 9 |
PHP | PHP | add method for marking password confirmed | fb3f45aa0142764c5c29b97e8bcf8328091986e9 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function setPreviousUrl($url)
<ide> $this->put('_previous.url', $url);
<ide> }
<ide>
<add> /**
<add> * Specify that the user has confirmed their password.
<add> *
<add> * @return void
<add> */
<add> public function passwordConfi... | 1 |
Ruby | Ruby | avoid referencing rubygems | ec0d4efd7985df6c03c47db845292b919d24eaf0 | <ide><path>activesupport/test/isolation_test.rb
<ide> class ParentIsolationTest < ActiveSupport::TestCase
<ide> File.open(File.join(File.dirname(__FILE__), "fixtures", "isolation_test"), "w") {}
<ide>
<ide> ENV["CHILD"] = "1"
<del> OUTPUT = `#{Gem.ruby} -I#{File.dirname(__FILE__)} "#{File.expand_path(__FILE... | 1 |
Python | Python | remove unused imports | 6d709f42cd3305c8e6cb629ce2d16d0174e2ce80 | <ide><path>libcloud/drivers/dreamhost.py
<ide> """
<ide> DreamHost Driver
<ide> """
<del>import uuid
<ide>
<del>from libcloud.interface import INodeDriver
<ide> from libcloud.base import ConnectionKey, Response, NodeDriver, Node
<del>from libcloud.base import NodeSize, NodeImage, NodeLocation
<add>from libcloud.base i... | 1 |
Javascript | Javascript | move cjs type check behind flag | 2825e1183d87354507e2e847f0891116d48b1a38 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> Module.prototype._compile = function(content, filename) {
<ide>
<ide> // Native extension for .js
<ide> Module._extensions['.js'] = function(module, filename) {
<del> if (filename.endsWith('.js')) {
<add> if (experimentalModules && filename.endsWith('.js')) {
<ide>... | 2 |
Javascript | Javascript | set input .type before .value always | 07c0bc6166013fc56edd8310bd97267549e5c708 | <ide><path>src/renderers/dom/client/wrappers/ReactDOMInput.js
<ide> var ReactDOMInput = {
<ide> var value = LinkedValueUtils.getValue(props);
<ide> var checked = LinkedValueUtils.getChecked(props);
<ide>
<del> var nativeProps = assign({}, props, {
<add> var nativeProps = assign({
<add> // Make sure ... | 2 |
Ruby | Ruby | add test for keg#mach_o_files hardlink behavior | 62d7079684cdb568600e22531c62888622a71ff1 | <ide><path>Library/Homebrew/test/test_keg.rb
<ide> def test_removes_broken_symlinks_that_conflict_with_directories
<ide> keg.unlink
<ide> keg.uninstall
<ide> end
<add>
<add> def test_mach_o_files_skips_hardlinks
<add> a = HOMEBREW_CELLAR.join("a", "1.0")
<add> a.join("lib").mkpath
<add> FileUtils.cp... | 3 |
Java | Java | fix issue with suffix pattern match | 9cc4bd892a6bb3aca9fea4b2423369181cebea9a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMapping.java
<ide> public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
<ide>
<ide> private boolean useSuffixPatternMatch = true;
<ide>
<add> private boolean useRegisteredSuff... | 2 |
Text | Text | use lowercase for zlib | 005363ad372cf6f98572f0d0da3caf9b74448fde | <ide><path>doc/api/index.md
<ide> * [V8](v8.html)
<ide> * [VM](vm.html)
<ide> * [Worker Threads](worker_threads.html)
<del>* [ZLIB](zlib.html)
<add>* [Zlib](zlib.html)
<ide>
<ide> <div class="line"></div>
<ide> | 1 |
PHP | PHP | add relation not found exception | f8ead240b1c9af58365ee885807cf950ca5f66d5 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide>
<ide> namespace Illuminate\Database\Eloquent;
<ide>
<add>use BadMethodCallException;
<ide> use Closure;
<ide> use Illuminate\Support\Arr;
<ide> use Illuminate\Support\Str;
<ide> public function getRelation($name)
<ide> // not have to remove these w... | 3 |
Text | Text | fix dependencyparser.predict docs (resolves ) | 6cfa1e1f47e8963519ff974eebe17ed414a4c2c5 | <ide><path>website/docs/api/dependencyparser.md
<ide> Apply the pipeline's model to a batch of docs, without modifying them.
<ide> > scores = parser.predict([doc1, doc2])
<ide> > ```
<ide>
<del>| Name | Type | Description ... | 1 |
Javascript | Javascript | replace common.fixturesdir w/common.fixtures | 4716a9d3494037beadef3400a8b3a8f3f5e2af91 | <ide><path>test/parallel/test-module-require-depth.js
<ide> // Flags: --expose_internals
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> const assert = require('assert');
<ide> const internalModule = require('internal/mo... | 1 |
Ruby | Ruby | add support for ordering on expressions | 85882d1b26b033afb2643865afe6410673949d32 | <ide><path>lib/arel.rb
<ide> require 'arel/expressions'
<ide> require 'arel/predications'
<ide> require 'arel/math'
<add>require 'arel/order_predications'
<ide> require 'arel/table'
<ide> require 'arel/attributes'
<ide> require 'arel/compatibility/wheres'
<ide><path>lib/arel/attributes/attribute.rb
<ide> module Attribu... | 7 |
Java | Java | improve handlermethod#bridgedmethod initialization | caf88ff2cc311b345f5fc0a5ced54d24bd9d553f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/HandlerMethod.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 6 |
Javascript | Javascript | fix some iframe edge cases | 9c961c0a279e31015b8df987bd86e6fec7548614 | <ide><path>packages/react-dom/src/client/ReactDOMSelection.js
<ide> export function getModernOffsetsFromPoints(
<ide> */
<ide> export function setOffsets(node, offsets) {
<ide> const doc = node.ownerDocument || document;
<del> const win = doc ? doc.defaultView : window;
<add> const win = (doc && doc.defaultView) |... | 1 |
Ruby | Ruby | fix post-bottling dylib id relocation | c7de544fe8b7671a02399b895abfdeb8823f982c | <ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb
<ide> def relocate_dynamic_linkage(relocation)
<ide> mach_o_files.each do |file|
<ide> file.ensure_writable do
<ide> if file.dylib?
<del> id = relocated_name_for(dylib_id_for(file), relocation)
<del> change_dylib_id(id, file) ... | 1 |
Ruby | Ruby | remove unused "developer" fixtures from tests | 3502e6ed7c7a720e6b4d358d9ff7b3242e52a36f | <ide><path>activerecord/test/cases/callbacks_test.rb
<ide> class ChildDeveloper < ParentDeveloper
<ide>
<ide> end
<ide>
<del>class RecursiveCallbackDeveloper < ActiveRecord::Base
<del> self.table_name = 'developers'
<del>
<del> before_save :on_before_save
<del> after_save :on_after_save
<del>
<del> attr_reader :o... | 1 |
Text | Text | fix example for animation | c91f95a092051c44bb9e241f7551f47cfdce8e36 | <ide><path>docs/docs/09.1-animation.md
<ide> React provides a `ReactTransitionGroup` addon component as a low-level API for a
<ide>
<ide> `ReactCSSTransitionGroup` is the interface to `ReactTransitions`. This is a simple element that wraps all of the components you are interested in animating. Here's an example where ... | 1 |
Text | Text | add relay blog post | 531add88c4862e3cbe62d11d4b87e04d8292dd3b | <ide><path>docs/_posts/2015-02-20-introducing-relay-and-graphql.md
<add>---
<add>title: "Introducing Relay and GraphQL"
<add>layout: post
<add>author: Greg Hurrell
<add>---
<add>
<add>## Data fetching for React applications
<add>
<add>There's more to building an application than creating a user interface. Data fetching... | 1 |
Python | Python | update help to > set flask_app=hello.py | a72583652329da810fc2a04e8541a0e2efd47ee1 | <ide><path>flask/cli.py
<ide> def shell_command():
<ide> Example usage:
<ide>
<ide> \b
<del> %(prefix)s%(cmd)s FLASK_APP=hello
<add> %(prefix)s%(cmd)s FLASK_APP=hello.py
<ide> %(prefix)s%(cmd)s FLASK_DEBUG=1
<ide> %(prefix)sflask run
<ide> """ % { | 1 |
Python | Python | handle errors while multiprocessing | b120fb35113d95be25af9a6091a4a511d78254b5 | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> E202 = ("Unsupported alignment mode '{mode}'. Supported modes: {modes}.")
<ide>
<ide> # New errors added in v3.x
<add> E871 = ("Error encountered in nlp.pipe with multiprocessing:\n\n{error}")
<ide> E872 = ("Unable to copy tokenizer from base model du... | 3 |
Go | Go | move validation into parsenetworkoptions() | 4e39cdd9bbbf6600a435200c8f19d57bf6fd31fa | <ide><path>libnetwork/drivers/ipvlan/ipvlan_network.go
<ide> func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo
<ide> }
<ide> config.processIPAM(ipV4Data, ipV6Data)
<ide>
<del> // verify the ipvlan mode from -o ipvlan_mode option
<del> switch config.IpvlanMode {
<del> case "", modeL2:
<d... | 1 |
Go | Go | reset the encryption keys on swarm leave | 6e965c03ad0f6c3eda701c1de203b143beb94aa7 | <ide><path>libnetwork/agent.go
<ide> func (c *controller) agentClose() {
<ide> c.agent.epTblCancel()
<ide>
<ide> c.agent.networkDB.Close()
<add>
<add> c.Lock()
<ide> c.agent = nil
<add> c.Unlock()
<ide> }
<ide>
<ide> func (n *network) isClusterEligible() bool {
<ide><path>libnetwork/controller.go
<ide> func (c *co... | 2 |
Javascript | Javascript | add detox tests for switch | 4dea677b4fd8ea8841bbe34c99e307557773cd04 | <add><path>RNTester/e2e/__tests__/Button-test.js
<del><path>RNTester/e2e/__tests__/sanity-test.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @emails oncall+react_native
<add> * @format
<ide> */
<ide>... | 3 |
Go | Go | move udevwait from defer to inline | 5206d45e70512f5fc06006047fb67b2f478b304d | <ide><path>pkg/devicemapper/devmapper.go
<ide> func RemoveDevice(name string) error {
<ide> if err := task.setCookie(cookie, 0); err != nil {
<ide> return fmt.Errorf("devicemapper: Can not set cookie: %s", err)
<ide> }
<del> defer UdevWait(cookie)
<ide>
<ide> dmSawBusy = false // reset before the task is run
<ide... | 1 |
Ruby | Ruby | remove more dependencies from the view | 2f683fd870d0e4c5aff38510ef03c7e5144a1ea4 | <ide><path>actionpack/lib/action_view/base.rb
<ide> def initialize(lookup_context = nil, assigns_for_first_render = {}, controller =
<ide> lookup_context : ActionView::LookupContext.new(lookup_context)
<ide> @_lookup_context.formats = formats if formats
<ide>
<del> @_renderer = ActionView::Renderer.... | 5 |
Python | Python | update t5 tf | 8669598abd7af877bd33890d62ae70ec1623f145 | <ide><path>transformers/tests/modeling_tf_t5_test.py
<ide> def prepare_config_and_inputs(self):
<ide> token_labels = ids_tensor([self.batch_size, self.seq_length], self.vocab_size)
<ide>
<ide> config = T5Config(
<del> vocab_size_or_config_json_file=self.vocab_size,
<add> ... | 1 |
Go | Go | add a test for mount.getmounts | a7e181c8576e0413da888bea95fb7155173714ea | <ide><path>pkg/mount/mount_test.go
<ide> func TestMountReadonly(t *testing.T) {
<ide> t.Fatal("Should not be able to open a ro file as rw")
<ide> }
<ide> }
<add>
<add>func TestGetMounts(t *testing.T) {
<add> mounts, err := GetMounts()
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add>
<add> root := false
<add> ... | 1 |
Javascript | Javascript | remove unused global types from type-parser | 6ac3c44012cf0a52c3d586c4fcf473d98fce69ef | <ide><path>tools/doc/type-parser.js
<ide> const jsPrimitives = {
<ide>
<ide> const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
<ide> const jsGlobalTypes = [
<del> 'Array', 'ArrayBuffer', 'AsyncFunction', 'DataView', 'Date', 'Error',
<del> 'EvalError', 'Float32Array', 'Float64Array', 'Function', '... | 1 |
Java | Java | fix typo in javadoc | 961c6419733926d6dfa2ca75af1edf7a886b2f66 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/DispatcherHandler.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.