content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | move header allocation to a helper method | c6cfcc6124fdef4df3a406f389ba32be486cd437 | <ide><path>actionpack/test/dispatch/header_test.rb
<ide> require "abstract_unit"
<ide>
<ide> class HeaderTest < ActiveSupport::TestCase
<add> def make_headers(hash)
<add> ActionDispatch::Http::Headers.new hash
<add> end
<add>
<ide> setup do
<del> @headers = ActionDispatch::Http::Headers.new(
<add> @header... | 1 |
Java | Java | fix javadoc typo | dba1ef0b264c0251078f0558d09fff261c18d348 | <ide><path>spring-context/src/main/java/org/springframework/validation/Errors.java
<ide> void rejectValue(@Nullable String field, String errorCode,
<ide> /**
<ide> * Add all errors from the given {@code Errors} instance to this
<ide> * {@code Errors} instance.
<del> * <p>This is a onvenience method to avoid repea... | 1 |
Text | Text | improve table accessibility | b123e0806f267d4517d54876e2066726f73586d8 | <ide><path>doc/api/n-api.md
<ide> from version 3 with some additions. This means that it is not necessary
<ide> to recompile for new versions of Node.js which are
<ide> listed as supporting a later version.
<ide>
<del>| | 1 | 2 | 3 | 4 | 5 | 6 |
<del>|-------|---------... | 1 |
Python | Python | fill auth_user_info in v3 connection | ce49cc61bbefe08146618aaafe40d269034aad46 | <ide><path>libcloud/common/openstack_identity.py
<ide> def authenticate(self, force=False):
<ide> self.auth_token_expires = parse_date(expires)
<ide> # Note: catalog is not returned for unscoped tokens
<ide> self.urls = body['token'].get('catalog', None)
<del> ... | 1 |
Ruby | Ruby | fix warning message | 741e68766368b4ad18120a81b2180743790b529e | <ide><path>Library/Homebrew/cask/test/cask/accessibility_test.rb
<ide> @installer.stubs(bundle_identifier: "com.example.BasicCask")
<ide>
<ide> capture_io { @installer.disable_accessibility_access }[1]
<del> .must_match("Warning: Accessibility access was enabled for with-accessibility-access, but it... | 1 |
Text | Text | improve changelog entry [ci skip] | 17c1143af91fac5d1b6465ed5ad26315b1a2ec27 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> *Ben Tucker*
<ide>
<del>* Fixed a bug in ActiveRecord#sanitize_sql_hash_for_conditions in which
<del> `self.class` is an argument to PredicateBuilder#build_from_hash
<del> causing PredicateBuilder to call non-existant method
<del> Class#reflect_on_associ... | 1 |
Text | Text | use code markup/markdown in headers | f64842adebe5cc89039488d2e54a6dfc89cd56d3 | <ide><path>CPP_STYLE_GUIDE.md
<ide> codebase not related to stylistic issues.
<ide> * [Align function arguments vertically](#align-function-arguments-vertically)
<ide> * [Initialization lists](#initialization-lists)
<ide> * [CamelCase for methods, functions, and classes](#camelcase-for-methods-functions-and-class... | 5 |
PHP | PHP | apply fixes from styleci | 5dfafef41f9b2ebbdbf3f24b64f783ee49fb266d | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testMySqlWrappingJsonWithBooleanAndIntegerThatLooksLikeOne()
<ide>
<ide> public function testJsonPathEscaping()
<ide> {
<del> $expectedWithJsonEscaped = <<<SQL
<add> $expectedWithJsonEscaped = <<<'SQL'
<ide> select json_... | 1 |
PHP | PHP | remove extraneous word | de1ff69da097f8c37e41b32fbb494f8a40aacebc | <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 the being listened for.'],
<add> ... | 1 |
Javascript | Javascript | add property types in json documentation | ab45390e01c01a713ac1fe68c87ac25dd3d4ec5d | <ide><path>tools/doc/json.js
<ide> function processList(section) {
<ide> // copy the data up to the section.
<ide> var value = values[0] || {};
<ide> delete value.name;
<del> section.typeof = value.type;
<add> section.typeof = value.type || section.typeof;
<ide> delete value.type;
<ide... | 1 |
Mixed | Ruby | add deprecations for a smooth transition after | a8f773b05734b9a798ae9755d280ef95004ec711 | <ide><path>activesupport/CHANGELOG.md
<add>* `ActiveSupport::Cache::Store#namespaced_key`,
<add> `ActiveSupport::Cache::MemCachedStore#escape_key`, and
<add> `ActiveSupport::Cache::FileStore#key_file_path`
<add> are deprecated and replaced with `normalize_key` that now calls `super`.
<add>
<add> `A... | 6 |
Text | Text | update index.md description | f04d98dcbb62ff38b74a8c324d5f04c7c76aa58c | <ide><path>guide/english/computer-science/index.md
<ide> title: Computer Science
<ide> ---
<ide> # Computer Science
<ide>
<del>Computer Science is the study of computers and the concepts that make computers possible.
<add>Computer Science is the study of computers and the concepts that make computers possible. It is a... | 1 |
Python | Python | clarify the after_request argument | dfae2679a6be1d3e61eaa9f83e85e0daf655187c | <ide><path>flask/app.py
<ide> def before_first_request(self, f):
<ide>
<ide> @setupmethod
<ide> def after_request(self, f):
<del> """Register a function to be run after each request. Your function
<del> must take one parameter, a :attr:`response_class` object and return
<del> a new respon... | 1 |
Javascript | Javascript | remove process.mixin dependency from all tests | 5861db8a69695e4f1a8c82ad2de55e4b07ab981a | <ide><path>test/common.js
<ide> var path = require("path");
<ide>
<add>exports = module.exports = global;
<add>
<ide> exports.testDir = path.dirname(__filename);
<ide> exports.fixturesDir = path.join(exports.testDir, "fixtures");
<ide> exports.libDir = path.join(exports.testDir, "../lib");
<ide> exports.PORT = 12346;
... | 77 |
Go | Go | correct the spelling error of driver | 054e479bfae694194d40b4b68c63e5819a436b29 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> // if the container has restart policy, do not
<ide> // prepare the mountpoints since it has been done on restarting.
<ide> // This is to speed up the daemon start when a restart container
<del> // has a volume and the volume dirver ... | 1 |
Text | Text | fix typo for `decipher.final` | ca9784e358cb92bf3e7a1061ab68ee57a23a9fbf | <ide><path>doc/api/crypto.md
<ide> added: v0.1.94
<ide> -->
<ide>
<ide> Returns any remaining deciphered contents. If `output_encoding`
<del>parameter is one of `'latin1'`, `'base64'` or `'hex'`, a string is returned.
<add>parameter is one of `'latin1'`, `'ascii'` or `'utf8'`, a string is returned.
<ide> If an `output... | 1 |
Ruby | Ruby | remove dead code | d2a44869f0b49f210c42bfe12787fa215a6c150e | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def resolve_test_tap
<ide> end
<ide> end
<ide>
<del> if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
<del> # Also can get tap from Jenkins GIT_URL.
<del> url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
<del> begin
<d... | 1 |
Go | Go | fix netns test cleanup | 73baee2dcf546b2561bdd9a500b0af08cb62b1be | <ide><path>internal/test/daemon/daemon_unix.go
<ide> func cleanupNetworkNamespace(t testingT, execRoot string) {
<ide> // new exec root.
<ide> netnsPath := filepath.Join(execRoot, "netns")
<ide> filepath.Walk(netnsPath, func(path string, info os.FileInfo, err error) error {
<del> if err := unix.Unmount(path, unix.M... | 1 |
Javascript | Javascript | update gulpfile.js to use in strict mode | 14399ffe372ebabcb66bab20827b45594e7fc204 | <ide><path>gulpfile.js
<ide> var yargs = require('yargs');
<ide> var path = require('path');
<ide> var fs = require('fs');
<ide> var htmllint = require('gulp-htmllint');
<del>var package = require('./package.json');
<add>var pkg = require('./package.json');
<ide>
<ide> var argv = yargs
<ide> .option('force-output', ... | 1 |
Text | Text | add more verbosity to index.md for groovy | 62ba46f9ce9ea4acd9a2f1abdc3cacbb7aa7a376 | <ide><path>guide/english/groovy/index.md
<ide> title: Groovy
<ide> ---
<ide> ## Groovy
<del>Apache Groovy or Groovy is a powerful and dynamic language with static compilation and typing capabilities for the Java platform and was designed to increase productivity with its concise and familiar syntax. It integrates with ... | 1 |
PHP | PHP | remove unnecessary use on verification controller | 2c5633d334f26efbf9da3083677169b08d23ee36 | <ide><path>app/Http/Controllers/Auth/VerificationController.php
<ide>
<ide> namespace App\Http\Controllers\Auth;
<ide>
<del>use Illuminate\Http\Request;
<ide> use Illuminate\Routing\Controller;
<ide> use Illuminate\Foundation\Auth\VerifiesEmails;
<ide> | 1 |
Python | Python | use inline if | d920683237bd2eb17d110a80fc09708a67340f01 | <ide><path>rest_framework/decorators.py
<ide> def api_view(http_method_names=None):
<ide> Decorator that converts a function-based view into an APIView subclass.
<ide> Takes a list of allowed methods for the view as an argument.
<ide> """
<del> if http_method_names is None:
<del> http_method_names... | 1 |
PHP | PHP | replace deprecated table helper | b55b0e6ab5d7c9a3c9c369705838e022c1b39874 | <ide><path>src/Illuminate/Console/Command.php
<ide> <?php namespace Illuminate\Console;
<ide>
<add>use Symfony\Component\Helper\Table;
<ide> use Symfony\Component\Console\Input\ArrayInput;
<ide> use Symfony\Component\Console\Output\NullOutput;
<ide> use Symfony\Component\Console\Question\Question;
<ide> public functio... | 1 |
PHP | PHP | add getters and setters to eloquentuserprovider | ef359c9845e1850af7d3b58779c8b84ba4d3dff9 | <ide><path>src/Illuminate/Auth/EloquentUserProvider.php
<ide> public function createModel()
<ide>
<ide> return new $class;
<ide> }
<add>
<add> /**
<add> * Gets the hasher implementation.
<add> *
<add> * @return \Illuminate\Contracts\Hashing\Hasher
<add> */
<add> public function getHas... | 1 |
Go | Go | add support for named pipe protocol | 0906195fbbd6f379c163b80f23e4c5a60bcfc5f0 | <ide><path>api/client/cli.go
<ide> func getServerHost(hosts []string, tlsOptions *tlsconfig.Options) (host string,
<ide> return "", errors.New("Please specify only one -H")
<ide> }
<ide>
<del> defaultHost := opts.DefaultTCPHost
<del> if tlsOptions != nil {
<del> defaultHost = opts.DefaultTLSHost
<del> }
<del>
<del... | 9 |
Text | Text | add test for event.preventdefault | f4b0b0b1b57e21d57147a198b6fdb3d74695270a | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/create-a-controlled-form.md
<ide> The `MyForm` component is set up with an empty `form` with a submit handler. The
<ide>
<ide> We've added a button which submits the form. You can see it has the `type` set to `submit` indicating it is the button con... | 1 |
Mixed | Javascript | fix some time rounding problems | c3f765857edf974f1136e2162e00d931bc2400bc | <ide><path>docs/01-Scales.md
<ide> The time scale extends the core scale class with the following tick template:
<ide> parser: false,
<ide> // string - By default, unit will automatically be detected. Override with 'week', 'month', 'year', etc. (see supported time measurements)
<ide> unit: false,
<add>
<add> //... | 4 |
Python | Python | fix minor typo in comment | 1c2212501798ad5c011dfef0503a6f206600cf0e | <ide><path>numpy/core/einsumfunc.py
<ide> def einsum_path(*operands, optimize='greedy', einsum_call=False):
<ide>
<ide>
<ide> def _einsum_dispatcher(*operands, out=None, optimize=None, **kwargs):
<del> # Arguably we dispatch on more arguments that we really should; see note in
<add> # Arguably we dispatch on mo... | 1 |
Text | Text | add aqrln to collaborators | 6581c3578701f92714a51c1d4432c93e67b17f21 | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> **Andras** <andras@kinvey.com>
<ide> * [AndreasMadsen](https://github.com/AndreasMadsen) -
<ide> **Andreas Madsen** <amwebdk@gmail.com> (he/him)
<add>* [aqrln](https://github.com/aqrln) -
<add>**Alexey Orlenko... | 1 |
PHP | PHP | add note about expire time | 3bab2d4487be7cf0d2fa46187aec0f444a661eb1 | <ide><path>app/views/emails/auth/reminder.blade.php
<ide> <h2>Password Reset</h2>
<ide>
<ide> <div>
<del> To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
<add> To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.<br/>
<add> Th... | 1 |
Ruby | Ruby | prefer https/s over ftp where known available | 331fdba29d9364ba20e99e1fa8db074ac482ca9c | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> end
<ide> end
<ide>
<add> # Prefer HTTP/S when possible over FTP protocol due to possible firewalls.
<add> urls.each do |p|
<add> case p
<add> when %r{^ftp://ftp\.mirrorservice\.org}
<add> problem "Please use https:// ... | 1 |
PHP | PHP | add seneca quote to inspire command | 6b1075e479eacda7d131ccb0da525be2dfe33eb3 | <ide><path>src/Illuminate/Foundation/Inspiring.php
<ide> public static function quote()
<ide> 'Well begun is half done. - Aristotle',
<ide> 'He who is contented is rich. - Laozi',
<ide> 'Very little is needed to make a happy life. - Marcus Antoninus',
<add> 'It is quality ... | 1 |
Go | Go | increase timeout for swarm requests | 85b1fdf15ce2ad1b373748554d3aa218e2eb5a5f | <ide><path>daemon/cluster/cluster.go
<ide> import (
<ide> const swarmDirName = "swarm"
<ide> const controlSocket = "control.sock"
<ide> const swarmConnectTimeout = 20 * time.Second
<add>const swarmRequestTimeout = 20 * time.Second
<ide> const stateFile = "docker-state.json"
<ide> const defaultAddr = "0.0.0.0:2377"
<ide... | 1 |
Java | Java | correct outdated error message | 51fb49be344524abd4a92098a8a62c83d62ecb9a | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/annotation/support/MessagingRSocket.java
<ide> private Flux<Payload> handleAndReply(Payload firstPayload, FrameType frameType,
<ide> }
<ide> })
<ide> .thenMany(Flux.defer(() -> responseRef.get() != null ?
<del> responseRef... | 1 |
Text | Text | add informations about queries in graphql | 04790915a85e9f5e253fb357d350a2a7e72890f2 | <ide><path>guide/english/graphql/index.md
<ide> npm install graphql --save
<ide> ```
<ide>
<ide> ## Queries
<del><!-- This section is a stub. Consider contributing by forking this repository and submitting a Pull Request with your changes! -->
<add>
<add>A query is the shape of the request that get back the exact dat... | 1 |
Java | Java | add jmh benchmark for stringdecoder | cfc3522641e000946876ecca61d2d3ffe88d7c62 | <ide><path>spring-core/src/jmh/java/org/springframework/core/codec/StringDecoderBenchmark.java
<add>/*
<add> * Copyright 2002-2020 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add... | 1 |
PHP | PHP | update migrator.php | 2d6d02abc87edfc73a4b5154337c86c5933c5c8e | <ide><path>src/Illuminate/Database/Migrations/Migrator.php
<ide> protected function rollbackMigrations(array $migrations, $paths, array $options)
<ide>
<ide> $this->fireMigrationEvent(new MigrationsStarted('down'));
<ide>
<del> $this->write(Info::class, 'Rollbacking migrations.');
<add> $this->w... | 2 |
Python | Python | fix bug in _sorted_checkpoints | 048dd6cf10937cb188d0116b25d7a3005b6686fe | <ide><path>src/transformers/trainer.py
<ide> def _sorted_checkpoints(self, checkpoint_prefix=PREFIX_CHECKPOINT_DIR, use_mtime
<ide> # Make sure we don't delete the best model.
<ide> if self.state.best_model_checkpoint is not None:
<ide> best_model_index = checkpoints_sorted.index(self.state.... | 1 |
Javascript | Javascript | add a threshold of 30s for the liveui to show | 47349c8e2909b477bf9117315d52a2ceee694edb | <ide><path>src/js/live-tracker.js
<ide> import document from 'global/document';
<ide> import * as browser from './utils/browser.js';
<ide> import * as Fn from './utils/fn.js';
<ide>
<add>const defaults = {
<add> // Number of seconds of live window (seekableEnd - seekableStart) that
<add> // a video needs to have bef... | 4 |
Javascript | Javascript | fix orberby documentation error | 4c762bfe5c6421560af9d4388ddc6506421b9c45 | <ide><path>src/apis.js
<ide> var angularArray = {
<ide> * {@link angular.Array} for more info.
<ide> *
<ide> * @param {Array} array The array to sort.
<del> * @param {function(*, *)|string|Array.<(function(*, *)|string)>} expression A predicate to be
<add> * @param {function(*)|string|Array.<(function(*)|s... | 1 |
PHP | PHP | fix typehint in docblock | ea8e6d0fa69eec9f3ab275db607121b53aa92436 | <ide><path>src/Database/Schema/TableSchemaAwareInterface.php
<ide> public function getTableSchema();
<ide> /**
<ide> * Get and set the schema for this fixture.
<ide> *
<del> * @param \Cake\Database\Schema\TableSchemaInterface$schema $schema The table to set.
<add> * @param \Cake\Database\Schema\Ta... | 1 |
Javascript | Javascript | use wheeldelta instead of delta | 77c685a1b7d285cc58e5fc4a59c7e190109becd9 | <ide><path>src/text-editor-component.js
<ide> class TextEditorComponent {
<ide> didMouseWheel (event) {
<ide> const scrollSensitivity = this.props.model.getScrollSensitivity() / 100
<ide>
<del> let {deltaX, deltaY} = event
<add> let {wheelDeltaX, wheelDeltaY} = event
<ide>
<del> if (Math.abs(deltaX) > ... | 1 |
Text | Text | improve explanation of prefers-reduced-motion | cd9a7334a089f5d356a07d74e3c341d06942d775 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/6148e41c728f65138addf9cc.md
<ide> dashedName: step-66
<ide>
<ide> # --description--
<ide>
<del>Setting the `scroll-behavior` to `smooth` is preferred by most users. However, some users find this to be too slow,... | 1 |
Javascript | Javascript | remove redundant existence checks | 7b9c1a19535eb334c9caf39bf6a946987c9582fe | <ide><path>packages/ember-runtime/lib/compare.js
<ide> export default function compare(v, w) {
<ide> let type1 = typeOf(v);
<ide> let type2 = typeOf(w);
<ide>
<del> if (Comparable) {
<del> if (type1 === 'instance' && Comparable.detect(v) && v.constructor.compare) {
<del> return v.constructor.compare(v, w)... | 1 |
PHP | PHP | define initial array value | 3c8d033c03b7e0d1af4d83da718ac7e269010e43 | <ide><path>src/ORM/EntityValidator.php
<ide> protected function _buildPropertyMap($include) {
<ide> return [];
<ide> }
<ide>
<add> $map = [];
<ide> foreach ($include['associated'] as $key => $options) {
<ide> if (is_int($key) && is_scalar($options)) {
<ide> $key = $options;
<ide> protected function _bui... | 1 |
Javascript | Javascript | remove duplicate flow type for touchableprops | fb5276c1897982f0be96f2e7074d839ae8fffdc8 | <ide><path>Libraries/Components/ScrollView/ScrollView.js
<ide> export type ScrollResponderType = {
<ide> ...typeof ScrollResponder.Mixin,
<ide> };
<ide>
<del>type TouchableProps = $ReadOnly<{|
<del> onTouchStart?: (event: PressEvent) => void,
<del> onTouchMove?: (event: PressEvent) => void,
<del> onTouchEnd?: (ev... | 1 |
Text | Text | add command before bash output | c8f50ef02bcf5dc8b9d42e174581cae27a160821 | <ide><path>guides/source/active_record_validations_callbacks.md
<ide> end
<ide> We can see how it works by looking at some `rails console` output:
<ide>
<ide> ```ruby
<add>$ rails console
<ide> >> p = Person.new(:name => "John Doe")
<ide> => #<Person id: nil, name: "John Doe", created_at: nil, updated_at: nil>
<ide> >... | 1 |
PHP | PHP | add test for | dd7fc712149c5dc9020322060ec378319d9d3467 | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> use Cake\Error\Renderer\HtmlErrorRenderer;
<ide> use Cake\Form\Form;
<ide> use Cake\Log\Log;
<add>use Cake\ORM\Table;
<ide> use Cake\TestSuite\TestCase;
<ide> use InvalidArgumentException;
<ide> use MyClass;
<ide> public function testExportVarInvalidDebugInfo(): vo... | 1 |
PHP | PHP | apply fixes from styleci | eee8c84f5d8be26d7acef2292a97ff391e2de320 | <ide><path>tests/Integration/Notifications/SendingMailNotificationsTest.php
<ide> use Orchestra\Testbench\TestCase;
<ide> use Illuminate\Contracts\Mail\Mailer;
<ide> use Illuminate\Support\Facades\Schema;
<del>use Illuminate\Database\Eloquent\Model;
<ide> use Illuminate\Contracts\Mail\Mailable;
<add>use Illuminate\Data... | 1 |
Javascript | Javascript | add known issue about end-symbol in expression | c95a3d8088de29a54c96f161704a387a12a2cfb2 | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> * </file>
<ide> * </example>
<ide> *
<add> * @knownIssue
<add> * It is currently not possible for an interpolated expression to contain the interpolation end
<add> * symbol. For example, `{{ '}}' }}` will be incor... | 1 |
Ruby | Ruby | compare actual version for casks | 94a33b1d2ed98335e7e8ff4182f1c5f1b0821e6e | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def run_checks(
<ide> Version.new(formula_or_cask.version)
<ide> end
<ide>
<add> current_str = current.to_s
<add> current = actual_version(formula_or_cask, current)
<add>
<ide> latest = if formula&.head_only?
<ide> ... | 1 |
Java | Java | fix broken javadoc links | a8feb792da01128223c44c4b945c4d94f0eec241 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/converter/ProtobufJsonFormatMessageConverter.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the... | 3 |
Ruby | Ruby | teach activejob to set configs on itself | b4fffc3c68d7be96acd0fc2ccc40023a31a2ad6e | <ide><path>activejob/lib/active_job.rb
<ide> module ActiveJob
<ide> # :singleton-method:
<ide> # If false, Rails will preserve the legacy serialization of BigDecimal job arguments as Strings.
<ide> # If true, Rails will use the new BigDecimalSerializer to (de)serialize BigDecimal losslessly.
<del> # This behavio... | 4 |
PHP | PHP | fix indention for blade component inline | 49f542bbc10afa02fc947eb99d96b916776bb522 | <ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php
<ide> protected function buildClass($name)
<ide> if ($this->option('inline')) {
<ide> return str_replace(
<ide> 'DummyView',
<del> "<<<'blade'\n<div>\n ".Inspiring::quote()."\n</div>\nblade",
<add... | 1 |
Javascript | Javascript | use sha1 instead of murmurhash | cc2ec6ff0739a6f2a59b6eb62288790136b6983d | <ide><path>packager/src/lib/TransformCache.js
<ide>
<ide> 'use strict';
<ide>
<add>const crypto = require('crypto');
<ide> const debugRead = require('debug')('RNP:TransformCache:Read');
<ide> const fs = require('fs');
<del>/**
<del> * We get the package "for free" with "write-file-atomic". MurmurHash3 is a
<del> * fa... | 3 |
Javascript | Javascript | clamp easing functions to [0,1] | e7ac548105765301eee615859d5c415bc11a6f30 | <ide><path>d3.js
<ide> d3.ease = function(name) {
<ide> var i = name.indexOf("-"),
<ide> t = i >= 0 ? name.substring(0, i) : name,
<ide> m = i >= 0 ? name.substring(i + 1) : "in";
<del> return d3_ease_mode[m](d3_ease[t].apply(null, Array.prototype.slice.call(arguments, 1)));
<add> return d3_ease_clamp(d... | 5 |
Go | Go | add options to route map | dd53c457d75a49e6e140c6d71642b237f3ee9056 | <ide><path>api.go
<ide> func postBuild(srv *Server, version float64, w http.ResponseWriter, r *http.Requ
<ide> return nil
<ide> }
<ide>
<add>func optionsHandler(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
<add> w.WriteHeader(http.StatusOK)
<add> return nil
<ad... | 1 |
Go | Go | log active configuration when reloading | 8378dcf46d017c70df97d6f851e0196b113b422e | <ide><path>daemon/config/config.go
<ide> type CommonConfig struct {
<ide> sync.Mutex
<ide> // FIXME(vdemeester) This part is not that clear and is mainly dependent on cli flags
<ide> // It should probably be handled outside this package.
<del> ValuesSet map[string]interface{}
<add> ValuesSet map[string]interface{} `... | 2 |
Ruby | Ruby | skip some flaky tests for now | 50c964df2ebda125366a94f0e8701eaeb0d98fa7 | <ide><path>Library/Homebrew/test/test_uninstall.rb
<ide> def handle_unsatisfied_dependents
<ide> end
<ide>
<ide> def test_check_for_testball_f2s_when_developer
<add> skip "Flaky test"
<ide> assert_match "Warning", handle_unsatisfied_dependents
<ide> refute_predicate Homebrew, :failed?
<ide> end
<ide> ... | 1 |
Text | Text | add documentation for common.mustnotcall() | 163c0780ead0e245d8ff2e68955b7e7a906399cd | <ide><path>test/common/README.md
<ide> fail.
<ide>
<ide> If `fn` is not provided, `common.noop` will be used.
<ide>
<add>### mustNotCall([msg])
<add>* `msg` [<String>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) default = 'function should not have been called'
<add>* return... | 1 |
Python | Python | add mean bias deviation in scoring functions | 80bdfbb9f9f828f39633e6f59deb7559340b4700 | <ide><path>machine_learning/scoring_functions.py
<del>import numpy
<add>import numpy as np
<ide>
<ide> """ Here I implemented the scoring functions.
<ide> MAE, MSE, RMSE, RMSLE are included.
<ide> def rmse(predict, actual):
<ide> actual = np.array(actual)
<ide>
<ide> difference = predict - actual
<del> ... | 1 |
Text | Text | fix version in spanruler docs | 763dcbf885d026be1412ea6b2219ceaad6125377 | <ide><path>website/docs/api/spanruler.md
<ide> title: SpanRuler
<ide> tag: class
<ide> source: spacy/pipeline/span_ruler.py
<del>new: 3.3
<add>new: 3.3.1
<ide> teaser: 'Pipeline component for rule-based span and named entity recognition'
<ide> api_string_name: span_ruler
<ide> api_trainable: false
<ide><path>website/do... | 2 |
Java | Java | testsubscriber javadoc improvements | acb1259c35377058220c7a664011a8d4c30cd510 | <ide><path>src/main/java/rx/observers/TestSubscriber.java
<ide> public void onCompleted() {
<ide> }
<ide>
<ide> /**
<del> * Get the {@link Notification}s representing each time this {@link Subscriber} was notified of sequence
<add> * Returns the {@link Notification}s representing each time this {@link ... | 1 |
Ruby | Ruby | handle referenced cask in livecheck | 77273fe2b3b56ab84dce4d03b47b1129c949e19e | <ide><path>Library/Homebrew/cask/audit.rb
<ide> def check_download
<ide> def check_livecheck_version
<ide> return unless appcast?
<ide>
<add> referenced_cask, = Homebrew::Livecheck.resolve_livecheck_reference(cask)
<add>
<add> # Respect skip conditions for a referenced cask
<add> if referenced... | 6 |
Ruby | Ruby | fix autoload tests | 1bf522084c5289b05904beeebbe9f00c6c8d534d | <ide><path>activesupport/test/autoload_test.rb
<ide> module Autoload
<ide> end
<ide> end
<ide>
<add> def setup
<add> @some_class_path = File.expand_path("test/fixtures/autoload/some_class.rb")
<add> @another_class_path = File.expand_path("test/fixtures/autoload/another_class.rb")
<add> end
<add>
<ide> ... | 1 |
Javascript | Javascript | update other remote test urls as well | 83a97f5c21a3c8c063e05f0df40efe13069c82f2 | <ide><path>test/unit/ajax.js
<ide> test("jQuery.ajax() - JSONP, Remote", function() {
<ide> test("jQuery.ajax() - script, Remote", function() {
<ide> expect(2);
<ide>
<del> var base = window.location.href.replace(/\?.*$/, "");
<add> var base = window.location.href.replace(/[^\/]*$/, "");
<ide>
<ide> stop();
<ide>
... | 1 |
Python | Python | move string cleanup under a setting flag | 8fec7268eb7cbd8e3c0374fee7dc2101336ce5cb | <ide><path>spacy/language.py
<ide> def pipe(self, texts, as_tuples=False, n_threads=2, batch_size=1000,
<ide> # in the string store.
<ide> recent_refs = weakref.WeakSet()
<ide> old_refs = weakref.WeakSet()
<del> # If there is anything that we have inside — after iterations we should
<del>... | 1 |
PHP | PHP | add other test | 2f5a4ccf7834c82c465767fc6fcbf8e7b8278b61 | <ide><path>tests/Database/DatabaseEloquentBuilderTest.php
<ide> public function testHasWithContraintsAndHavingInSubquery()
<ide> $this->assertEquals(['baz', 'qux', 'quuux'], $builder->getBindings());
<ide> }
<ide>
<add> public function testHasWithContraintsAndJoinAndHavingInSubquery()
<add> {
<add> ... | 1 |
Javascript | Javascript | add primordials to arguments comment | e1b90be3b7c687fcf263db72862b6a199d239f89 | <ide><path>lib/internal/bootstrap/node.js
<ide>
<ide> // This file is compiled as if it's wrapped in a function with arguments
<ide> // passed by node::RunBootstrapping()
<del>/* global process, require, internalBinding */
<add>/* global process, require, internalBinding, primordials */
<ide>
<ide> setupPrepareStackT... | 1 |
Ruby | Ruby | remove lonely number sign | 93bcb0c268c6df0cd6e14a7c880897ef7fa42df1 | <ide><path>railties/test/generators/namespaced_generators_test.rb
<ide> def test_routes_should_not_be_namespaced
<ide> run_generator
<ide> assert_file "config/routes.rb", /get "account\/foo"/, /get "account\/bar"/
<ide> end
<del>#
<add>
<ide> def test_invokes_default_template_engine_even_with_no_action
<ide... | 1 |
PHP | PHP | fix lint error on testemail in emailtest.php | 14fb128d17fd9086ff3724b7f9cbab66690512de | <ide><path>tests/TestCase/Mailer/EmailTest.php
<ide> public function getContentTransferEncoding()
<ide> {
<ide> return $this->_getContentTransferEncoding();
<ide> }
<del>
<ide> }
<ide>
<ide> /** | 1 |
PHP | PHP | return $this instead of void | a446bf91df53aa62abf4174c7f19317354cdc58f | <ide><path>src/ORM/Locator/TableLocator.php
<ide> public function __construct(?array $locations = null)
<ide> * Set if fallback class should be used.
<ide> *
<ide> * @param bool $enable Flag to enable or disable fallback
<del> * @return void
<add> * @return $this
<ide> */
<del> public fun... | 2 |
Python | Python | allow more recursion depth for scalar tests | a100272b6f8cbfad2b18dfd638a0fb2bf51563d6 | <ide><path>numpy/core/tests/test_scalarmath.py
<ide> def recursionlimit(n):
<ide> @settings(verbosity=Verbosity.verbose)
<ide> def test_operator_object_left(o, op, type_):
<ide> try:
<del> with recursionlimit(100):
<add> with recursionlimit(200):
<ide> op(o, type_(1))
<ide> except Type... | 1 |
PHP | PHP | fix weird wording | 3f223fba974bf56551d576618109ec50429fe0b2 | <ide><path>src/Illuminate/Database/Console/Migrations/StatusCommand.php
<ide> class StatusCommand extends BaseCommand {
<ide> *
<ide> * @var string
<ide> */
<del> protected $description = 'Show a list of migrations up/down';
<add> protected $description = 'Show the status of each migration';
<ide>
<ide> /**
<id... | 1 |
PHP | PHP | allow cell name containing "cell" | 0bcd72c3b73e719fd2d1f904273dc015968a9417 | <ide><path>src/View/Cell.php
<ide> public function render($template = null)
<ide> $render = function () use ($template) {
<ide> $className = explode('\\', get_class($this));
<ide> $className = array_pop($className);
<del> $name = substr($className, 0, strpos($className, 'Cell'... | 1 |
Go | Go | remove pre-defined networks from package init | 22801e071f071e82b663347107b70ed9a68b37ae | <ide><path>libnetwork/drivers/bridge/bridge_test.go
<ide> import (
<ide> "github.com/docker/libnetwork/types"
<ide> )
<ide>
<add>func init() {
<add> ipamutils.InitNetworks()
<add>}
<add>
<ide> func getIPv4Data(t *testing.T) []driverapi.IPAMData {
<ide> ipd := driverapi.IPAMData{AddressSpace: "full"}
<ide> nw, _, er... | 6 |
Python | Python | remove surviving, unused, list comprehension | fe3412fde8990ff08405f3324d309e521aff1d7d | <ide><path>numpy/polynomial/_polybase.py
<ide> def _repr_latex_(self):
<ide> )
<ide> needs_parens = True
<ide>
<del> # filter out uninteresting coefficients
<del> filtered_coeffs = [
<del> (i, c)
<del> for i, c in enumerate(self.coef)
<del> # if no... | 1 |
Javascript | Javascript | simplify spawn argument parsing | 4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84 | <ide><path>lib/child_process.js
<ide> function normalizeSpawnArguments(file, args, options) {
<ide> }
<ide>
<ide> // Validate windowsVerbatimArguments, if present.
<del> if (options.windowsVerbatimArguments != null &&
<del> typeof options.windowsVerbatimArguments !== 'boolean') {
<add> let { windowsVerbatim... | 5 |
Ruby | Ruby | add stub for configuring your package manager | e13d232150921cdf0ec3d713caefa628d235152e | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<del>require 'digest/md5'
<add>require 'digest/md5'
<ide> require 'active_support/secure_random'
<ide> require 'rails/version' unless defined?(Rails::VERSION)
<ide>
<ide> def create_config_files
<ide> end
<ide> end
<ide>
<add> def creat... | 4 |
Go | Go | add logdrivers to executor from swarmkit | 8a50315f3ce89b24e3556dba288b2ce7b4daf026 | <ide><path>daemon/cluster/executor/container/container.go
<ide> func getMountMask(m *api.Mount) string {
<ide> }
<ide>
<ide> func (c *containerConfig) hostConfig() *enginecontainer.HostConfig {
<del> return &enginecontainer.HostConfig{
<add> hc := &enginecontainer.HostConfig{
<ide> Resources: c.resources(),
<ide> ... | 1 |
PHP | PHP | fix unused imports | 9835a8b9c4478313914f70e5aafebb4bbda5b3e1 | <ide><path>src/Controller/ErrorController.php
<ide> namespace Cake\Controller;
<ide>
<ide> use Cake\Event\EventInterface;
<del>use Cake\Http\Response;
<ide>
<ide> /**
<ide> * Error Handling Controller
<ide><path>tests/test_app/TestApp/Controller/Admin/ErrorController.php
<ide>
<ide> use Cake\Controller\Controller;
... | 3 |
Go | Go | remove engine usage for events | c9eb37f9752d72d9a4280d703368e5e73adfffa1 | <ide><path>api/server/server.go
<ide> package server
<ide> import (
<ide> "bufio"
<ide> "bytes"
<add> "time"
<ide>
<ide> "encoding/base64"
<ide> "encoding/json"
<ide> import (
<ide> "github.com/docker/docker/daemon"
<ide> "github.com/docker/docker/daemon/networkdriver/bridge"
<ide> "github.com/docker/docker/eng... | 11 |
Java | Java | update javadoc for lazyinittargetsourcecreator | e8335c94d5e7ab57b2b43dd6b809c81c1e997fbd | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/target/LazyInitTargetSourceCreator.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "... | 1 |
Python | Python | fix prediction on run-squad.py example | aa90e0c36adc0034ece203c857d0d993c82ae65a | <ide><path>examples/run_squad.py
<ide> def main():
<ide> parser.add_argument("--num_train_epochs", default=3.0, type=float,
<ide> help="Total number of training epochs to perform.")
<ide> parser.add_argument("--warmup_proportion", default=0.1, type=float,
<del> hel... | 1 |
PHP | PHP | remove unused reflectionmethod in scanners | 6892e6bf4620e3bda723869602f0e5b7bc4873e6 | <ide><path>src/Illuminate/Events/Annotations/Scanner.php
<ide>
<ide> use SplFileInfo;
<ide> use ReflectionClass;
<del>use ReflectionMethod;
<ide> use Symfony\Component\Finder\Finder;
<ide> use Doctrine\Common\Annotations\AnnotationRegistry;
<ide> use Doctrine\Common\Annotations\SimpleAnnotationReader;
<ide><path>src/I... | 2 |
PHP | PHP | fix doc block | 7931724ee9518b82ffd2f7476a4b2af335ae32cc | <ide><path>src/Illuminate/Foundation/AliasLoader.php
<ide> class AliasLoader {
<ide> protected static $instance;
<ide>
<ide> /**
<del> * Singleton shouln't allow instantiation
<add> * Create a new AliasLoader instance.
<add> *
<add> * @param array $aliases
<ide> */
<ide> private function __construct($aliase... | 1 |
Text | Text | update the link | ee292e0365a9621b8d4bb9252a1078fabf4dfd49 | <ide><path>research/object_detection/g3doc/running_on_mobile_tensorflowlite.md
<ide> are named 'TFLite_Detection_PostProcess', 'TFLite_Detection_PostProcess:1',
<ide> 'TFLite_Detection_PostProcess:2', and 'TFLite_Detection_PostProcess:3' and
<ide> represent four arrays: detection_boxes, detection_classes, detection_sco... | 1 |
Ruby | Ruby | remove unused `row` class in `selectmanager` | 386e2c7357d8e15ab52f63c7d79101458561fbb1 | <ide><path>activerecord/lib/arel/select_manager.rb
<ide> def source
<ide> @ctx.source
<ide> end
<ide>
<del> class Row < Struct.new(:data) # :nodoc:
<del> def id
<del> data["id"]
<del> end
<del>
<del> def method_missing(name, *args)
<del> name = name.to_s
<del> return da... | 1 |
Javascript | Javascript | add abort functionality in fetch stream | 949c3e9417ded8588df2d99024c8697987b6265e | <ide><path>src/display/fetch_stream.js
<ide> import {
<ide> validateRangeRequestCapabilities, validateResponseStatus
<ide> } from './network_utils';
<ide>
<del>function createFetchOptions(headers, withCredentials) {
<add>function createFetchOptions(headers, withCredentials, abortController) {
<ide> return {
<ide> ... | 1 |
Java | Java | remove trailing whitespace from source code | 61824b1aded8f975f3e02e0b1a7ace63a993a6fb | <ide><path>spring-context/src/test/java/org/springframework/context/expression/FactoryBeanAccessTests.java
<ide> public void factoryBeanAccess() { // SPR9511
<ide> } catch (BeanIsNotAFactoryException binafe) {
<ide> // success
<ide> }
<del>
<add>
<ide> // No such bean
<ide> try {
<ide> expr = new SpelE... | 6 |
Python | Python | fix dummy objects for quantization | 1a92bc578866bc0eee1104d253dbad98b89ecc3b | <ide><path>src/transformers/utils/dummy_flax_objects.py
<ide> class FlaxBertForNextSentencePrediction:
<ide> def __init__(self, *args, **kwargs):
<ide> requires_backends(self, ["flax"])
<ide>
<add> @classmethod
<add> def from_pretrained(cls, *args, **kwargs):
<add> requires_backends(cls, ["fla... | 5 |
PHP | PHP | simplify lazy collection | 68359835771a43ee2432735b0d25de8d8c41b02c | <ide><path>src/Illuminate/Support/LazyCollection.php
<ide> public function mode($key = null)
<ide> */
<ide> public function collapse()
<ide> {
<del> $original = clone $this;
<del>
<del> return new static(function () use ($original) {
<del> foreach ($original as $values) {
<add> ... | 1 |
Text | Text | release notes for 3.1.2 | 5c8df2c56b35ecb3f3320bab2c017eafa5f28d96 | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ## 3.1.x series
<ide>
<add>### 3.1.2
<add>
<add>**Date**: [13rd May 2015][3.1.2-milestone].
<add>
<add>* DateField to_representation can handle str and empty values. ([#2656](gh2656), [#268... | 1 |
Go | Go | remove endpoint list | 410a8612f481e67265ce0edaf78ed1d96f6dffcf | <ide><path>daemon/oci_windows.go
<ide> func (daemon *Daemon) createSpec(c *container.Container) (*libcontainerd.Spec, e
<ide> s.Root.Path = c.BaseFS
<ide> s.Root.Readonly = c.HostConfig.ReadonlyRootfs
<ide>
<del> // In s.Windows.Networking
<del> // Connect all the libnetwork allocated networks to the container
<del>... | 6 |
Ruby | Ruby | use an if statement instead of a case statement | 2c3ba1fb40609918db0264ccace00b3a058a3588 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def port
<ide> # req = ActionDispatch::Request.new 'HTTP_HOST' => 'example.com:8080'
<ide> # req.standard_port # => 80
<ide> def standard_port
<del> case protocol
<del> when "https://" then 443
<del> else 80
<add> ... | 1 |
Ruby | Ruby | add parentheses to if statement | 322d5c67ec636dd44ce17f835dd6ec5cd36a9625 | <ide><path>Library/Homebrew/cask/cask.rb
<ide> def outdated_versions(greedy: false, greedy_latest: false, greedy_auto_updates:
<ide> # special case: tap version is not available
<ide> return [] if version.nil?
<ide>
<del> if greedy || greedy_latest && greedy_auto_updates || greedy_auto_updates && auto... | 1 |
Javascript | Javascript | fix the clerical error | f1b13681b425bd3384c856a23be060c8b4b5b071 | <ide><path>website/src/react-native/index.js
<ide> var GeoInfo = React.createClass({
<ide> - (void)processString:(NSString *)input callback:(RCTResponseSenderBlock)callback
<ide> {
<ide> RCT_EXPORT(); // available as NativeModules.MyCustomModule.processString
<del> callback(@[[input stringByReplacingOccurrencesOfStr... | 1 |
PHP | PHP | apply fixes from styleci | e656932002588bcaaa94476f1ed1850747eb4708 | <ide><path>app/Http/Controllers/Auth/RegisterController.php
<ide>
<ide> namespace App\Http\Controllers\Auth;
<ide>
<del>use App\User;
<ide> use App\Http\Controllers\Controller;
<add>use App\User;
<add>use Illuminate\Foundation\Auth\RegistersUsers;
<ide> use Illuminate\Support\Facades\Hash;
<ide> use Illuminate\Suppor... | 15 |
Java | Java | remove unused imports | 5356fe475567bfbf1e6d37fa3cb4316b7075669c | <ide><path>src/test/java/io/reactivex/processors/UnicastProcessorTest.java
<ide>
<ide> package io.reactivex.processors;
<ide>
<del>import org.junit.Test;
<ide> import static org.junit.Assert.assertEquals;
<ide>
<ide> import java.util.concurrent.atomic.AtomicBoolean;
<ide>
<add>import org.junit.Test;
<add>
<add>impo... | 2 |
PHP | PHP | change language files | ef958716c37fcdf0ea80bb89ba0c93394ae0b157 | <ide><path>resources/lang/en/auth.php
<add><?php
<add>
<add>return [
<add>
<add> /*
<add> |--------------------------------------------------------------------------
<add> | Authentication Language Lines
<add> |--------------------------------------------------------------------------
<add> |
<add> | ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.