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 |
|---|---|---|---|---|---|
Java | Java | fix regression in httpputformcontentfilter | af83d2332a0011d83a4a775d57e2d28b9eb53bee | <ide><path>spring-web/src/main/java/org/springframework/web/filter/HttpPutFormContentFilter.java
<ide> public InputStream getBody() throws IOException {
<ide> }
<ide> };
<ide> MultiValueMap<String, String> formParameters = this.formConverter.read(null, inputMessage);
<del> HttpServletRequest wrapper = new H... | 2 |
Javascript | Javascript | fix false positive hydration warnings | f468816ef1000b2fe0086feabc0115b86f299cad | <ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
<ide> describe('ReactDOMFizzServer', () => {
<ide> );
<ide> });
<ide>
<add> // @gate experimental
<add> it('#23331: does not warn about hydration mismatches if something suspended in an earlier sibling', async () => {
<add> const makeApp... | 7 |
Javascript | Javascript | remove code duplication | 62a1474db5d7a654c707dc4f2ffdf09c50748a39 | <ide><path>lib/ExportsInfo.js
<ide> class ExportsInfo {
<ide> case UsageState.NoInfo:
<ide> return null;
<ide> case UsageState.Unknown:
<del> return true;
<ide> case UsageState.OnlyPropertiesUsed:
<ide> case UsageState.Used:
<ide> return true; | 1 |
Javascript | Javascript | add `caseinsensitivematch` option for url matching | 5e18a15fb01d2e81adda68503754289fa9655082 | <ide><path>src/ng/route.js
<ide> function $RouteProvider(){
<ide> * If the option is set to `false` and url in the browser changes, then
<ide> * `$routeUpdate` event is broadcasted on the root scope.
<ide> *
<add> * - `[caseInsensitiveMatch=false]` - {boolean=} - match routes without being case ... | 2 |
Text | Text | add more information about defaultvalue | 95a810ac013db23c6d1be039ad4443358c454a50 | <ide><path>docs/docs/07-forms.md
<ide> An `<input>` that does not supply a `value` (or sets it to `null`) is an *uncont
<ide>
<ide> This will render an input that starts off with an empty value. Any user input will be immediately reflected by the rendered element. If you wanted to listen to updates to the value, you c... | 1 |
PHP | PHP | replace simple cases with a simple regex | 1d97a7ff1cde8d9bdf50caef93555a6e65aa5bb1 | <ide><path>src/Database/SqlDialectTrait.php
<ide> public function quoteIdentifier($identifier) {
<ide> return '*';
<ide> }
<ide>
<add> if ($identifier === '') {
<add> return '';
<add> }
<add>
<add> // string
<add> if (preg_match('/^[\w-]+$/', $identifier)) {
<add> return $this->_startQuote . $identifier .... | 1 |
PHP | PHP | remove unused var | f3b216dfe26a90b23afccc17787bc5458492f3a1 | <ide><path>lib/Cake/Console/Command/UpgradeShell.php
<ide> public function basics() {
<ide> * @return void
<ide> */
<ide> public function request() {
<del> $core = App::core();
<ide> $views = array_diff(App::path('views'), App::core('views'));
<ide> $controllers = array_diff(App::path('controllers'), App::core(... | 1 |
Text | Text | fix wrong link for the notebook file | 3bedfd334763cb5676c2fe92705390ac57d8de5f | <ide><path>notebooks/README.md
<ide> Pull Request and we'll review it so it can be included here.
<ide> | [Getting Started Transformers](02-transformers.ipynb) | How to easily start using transformers | [](https://colab.research.google.com/git... | 1 |
Ruby | Ruby | update usage notes to verify | 939017487d6fb3ad255f98079deadcef1e4054b0 | <ide><path>actionpack/lib/action_controller/verification.rb
<ide> def self.included(base) #:nodoc:
<ide> # :add_flash => { "alert" => "Failed to create your message" },
<ide> # :redirect_to => :category_url
<ide> #
<add> # Note that these prerequisites are not business rules. They d... | 1 |
Javascript | Javascript | fix nav state persistence | 7ac1cc744cac061acbbb90a25562a19acb1ef400 | <ide><path>Examples/UIExplorer/js/UIExplorerApp.ios.js
<ide> const AsyncStorage = require('AsyncStorage');
<ide> const Linking = require('Linking');
<ide> const React = require('react');
<ide> const ReactNative = require('react-native');
<del>const UIExplorerList = require('./UIExplorerList.ios');
<ide> const UIExplore... | 1 |
Ruby | Ruby | clarify test cases | d967523339275ca461ee98d2fbb936ba0b38c316 | <ide><path>activerecord/test/cases/tasks/mysql_rake_test.rb
<ide> def test_create_when_database_exists_outputs_info_to_stderr
<ide> private
<ide>
<ide> def with_stubbed_connection_establish_connection
<del> ActiveRecord::Base.stub(:establish_connection, true) do
<add> ActiveRecord::Base... | 3 |
PHP | PHP | fix possible unwanted loading of boolean operator | 9857193607b53373c078eb591771779d9f3812d8 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function leftJoin($table, $first, $operator = null, $second = null)
<ide> */
<ide> public function where($column, $operator = null, $value = null, $boolean = 'and')
<ide> {
<add> if ($this->invalidOperatorAndValue($operator, $value))
<add> {
<add> ... | 1 |
Mixed | Javascript | add signal support to spawn | 738cd60418ee1fc6b696d6f10d7604d667f01a23 | <ide><path>doc/api/child_process.md
<ide> changes:
<ide> `'/bin/sh'` on Unix, and `process.env.ComSpec` on Windows. A different
<ide> shell can be specified as a string. See [Shell requirements][] and
<ide> [Default Windows shell][]. **Default:** `false` (no shell).
<del> * `signal` {AbortSignal} allows ab... | 3 |
Python | Python | fix python3 compatibility | 5964848bdfb6dd6848148e7c86fda5d2d458e52d | <ide><path>keras/layers/core.py
<ide> def __init__(self, layers, mode='sum', concat_axis=-1, dot_axes=-1):
<ide> raise Exception("Invalid type for dot_axes - should be a list.")
<ide> if len(dot_axes) != 2:
<ide> raise Exception("Invalid format for dot_axes - shou... | 2 |
PHP | PHP | fix bug with pushmiddleware | 1054fd2523913e59e980553b5411a22f16ecf817 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function prependMiddlewareToGroup($group, $middleware)
<ide> */
<ide> public function pushMiddlewareToGroup($group, $middleware)
<ide> {
<del> if (isset($this->middlewareGroups[$group]) && ! in_array($middleware, $this->middlewareGroups[$grou... | 1 |
Python | Python | add show statements to hql filtering | 5248b94d745981371d454fc804ad945c10088da2 | <ide><path>airflow/hooks/hive_hooks.py
<ide> def _get_results(self, hql, schema='default', fetch_size=None, hive_conf=None):
<ide> lowered_statement = statement.lower().strip()
<ide> if (lowered_statement.startswith('select') or
<ide> lowered_statement.startswith('wit... | 1 |
Ruby | Ruby | add uuid type support to postgresql adapter | 12e9a75f227ea7bcc23e2717e9ff5a72ec64e1f1 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
<ide> def self.registered_type?(name)
<ide> alias_type 'bit', 'text'
<ide> alias_type 'varbit', 'text'
<ide> alias_type 'macaddr', 'text'
<add> alias_type 'uuid', 'text'
<ide>
<ide> # FIXM... | 6 |
Javascript | Javascript | avoid jsx in reactcsstransitiongroup code | ec54dcbd8ff666801ac2ad2a36f2eb632e23a379 | <ide><path>src/addons/transitions/ReactCSSTransitionGroup.js
<ide> *
<ide> * @typechecks
<ide> * @providesModule ReactCSSTransitionGroup
<del> * @jsx React.DOM
<ide> */
<ide>
<ide> "use strict";
<ide> var ReactCSSTransitionGroup = React.createClass({
<ide> // We need to provide this childFactory so that
<ide> ... | 1 |
Javascript | Javascript | remove unnecessary skipifworker() | 91ef9c4c3f7d8acc21ad934dd520071b8bdfcab8 | <ide><path>test/sequential/test-inspector-port-cluster.js
<ide> const common = require('../common');
<ide>
<ide> common.skipIfInspectorDisabled();
<del>common.skipIfWorker();
<ide>
<ide> const assert = require('assert');
<ide> const cluster = require('cluster'); | 1 |
PHP | PHP | remove more php5 mentions | 5e315091165e066f8e1f9123643484fb08ef84b1 | <ide><path>src/Error/ErrorHandler.php
<ide> protected function _clearOutput(): void
<ide> }
<ide>
<ide> /**
<del> * Logs both PHP5 and PHP7 errors.
<del> *
<del> * The PHP5 part will be removed with 4.0.
<add> * Log internal errors.
<ide> *
<ide> * @param \Throwable $exception Excepti... | 1 |
Python | Python | add a test on the output dimensions | f08f59075261bd6c9ba10a5be665e1d242ea6874 | <ide><path>tests/auto/keras/layers/test_recurrent.py
<ide> def _runner(layer_class):
<ide>
<ide> for train in [True, False]:
<ide> out = layer.get_output(train).eval()
<add> if ret_seq:
<add> assert(out.shape == (nb_samples, timesteps, output_dim))
<add> ... | 1 |
Ruby | Ruby | fix filename reference | 44b8ac48e36672a0b63b225ec19eacc8d64e7e09 | <ide><path>lib/active_file/blob.rb
<ide> class ActiveFile::Blob < ActiveRecord::Base
<ide> class << self
<ide> def build_after_upload(io:, filename:, content_type: nil, metadata: nil)
<ide> new.tap do |blob|
<del> blob.filename = name
<ide> blob.content_type = content_type # Marcel::MimeType.... | 1 |
Javascript | Javascript | fix race condition setting suicide prop | 9571be12f6e6ebdd097c8a032a872bada9972d56 | <ide><path>lib/cluster.js
<ide> function masterInit() {
<ide> else if (message.act === 'listening')
<ide> listening(worker, message);
<ide> else if (message.act === 'suicide')
<del> worker.suicide = true;
<add> suicide(worker, message);
<ide> else if (message.act === 'close')
<ide> clo... | 3 |
PHP | PHP | remove old matcher methods | 2f01b93c9e918dc83532aa19a8960a3c810c0357 | <ide><path>src/Illuminate/View/Compilers/BladeCompiler.php
<ide> public function extend(callable $compiler)
<ide> $this->extensions[] = $compiler;
<ide> }
<ide>
<del> /**
<del> * Get the regular expression for a generic Blade function.
<del> *
<del> * @param string $function
<del> * @return string
<del> */
<... | 2 |
Text | Text | update react version to rc in react-18 doc | 0ad4ad6dcd018973a04efa87174acb7d35d2cccc | <ide><path>docs/advanced-features/react-18.md
<ide>
<ide> [React 18](https://reactjs.org/blog/2021/06/08/the-plan-for-react-18.html) adds new features including, Suspense, automatic batching of updates, APIs like `startTransition`, and a new streaming API for server rendering with support for `React.lazy`.
<ide>
<del... | 1 |
Go | Go | add support for multiple level cli commands | e1b968f1981f21470a67ed617c36f1c6802bd0a7 | <ide><path>api/client/cli.go
<ide> var funcMap = template.FuncMap{
<ide> },
<ide> }
<ide>
<del>func (cli *DockerCli) getMethod(name string) (func(...string) error, bool) {
<del> if len(name) == 0 {
<del> return nil, false
<add>func (cli *DockerCli) getMethod(args ...string) (func(...string) error, bool) {
<add> came... | 2 |
Javascript | Javascript | require standard class stringification | 602fa698a54ea82628617561aab30099b6cf93ef | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad, strictDi) {
<ide> }
<ide> var result = func.$$ngIsClass;
<ide> if (!isBoolean(result)) {
<del> // Support: Edge 12-13 only
<del> // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/61561... | 1 |
Text | Text | update contrib docs for gocheck | a09ab40f0d980b2a6d6656db638f1fc5d73f5b8b | <ide><path>docs/sources/project/test-and-docs.md
<ide> Most test targets require that you build these precursor targets first:
<ide>
<ide> ## Running individual or multiple named tests
<ide>
<add>We use [gocheck](https://labix.org/gocheck) for our integration-cli tests.
<ide> You can use the `TESTFLAGS` environment... | 1 |
Ruby | Ruby | remove anchor from mapping | e38a456faf6d4ab90c1ea7a3f9310ea47af35049 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> class Mapping #:nodoc:
<ide> ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
<ide>
<ide> attr_reader :requirements, :conditions, :defaults
<del> attr_reader :to, :default_controller, :default_action, :as, :anchor
<add> ... | 2 |
Mixed | Javascript | change isaix to isaix | fb37922cf350f56a3da6e4b083951241750d380f | <ide><path>test/common/README.md
<ide> the number of calls.
<ide>
<ide> Checks whether free BSD Jail is true or false.
<ide>
<del>### isAix
<add>### isAIX
<ide> * return [<Boolean>]
<ide>
<ide> Platform check for Advanced Interactive eXecutive (AIX).
<ide><path>test/common/index.js
<ide> exports.PORT = +process.e... | 20 |
PHP | PHP | fix tests to work with 3.7 | 1cb44d4ba4675332248bc53af2729c5083529374 | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function generateUrlParams(array $options = [], $model = null)
<ide> $paging += ['page' => null, 'sort' => null, 'direction' => null, 'limit' => null];
<ide>
<ide> if (!empty($paging['sort']) && !empty($options['sort']) && strpos($options['sor... | 2 |
Javascript | Javascript | use #index instead of #openindex | 14afb4967694f90497823568869e39c74054d35f | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> .then(relativePath => {
<ide> return this.repoPool.enqueue(() => {
<ide> return this.getRepo()
<del> .then(repo => repo.openIndex())
<add> .then(repo => repo.index())
<ide> ... | 1 |
Ruby | Ruby | require ruby-vips before downloading blob | c5133f00108140cd59a85d7c38417c53705d2c80 | <ide><path>activestorage/lib/active_storage/analyzer/image_analyzer/vips.rb
<ide> def self.accept?(blob)
<ide>
<ide> private
<ide> def read_image
<del> download_blob_to_tempfile do |file|
<add> begin
<ide> require "ruby-vips"
<add> rescue LoadError
<add> logger.info "S... | 1 |
Text | Text | add v5.5.10 release notes | c5e231f953b02c605ab8c29f1f0b3fe9d9ebc26c | <ide><path>CHANGELOG-5.5.md
<ide> # Release Notes for 5.5.x
<ide>
<add>## v5.5.10 (2017-09-21)
<add>
<add>### Added
<add>- Added `Route::respondWithRoute($name)` method ([#21299](https://github.com/laravel/framework/pull/21299), [66c5e46](https://github.com/laravel/framework/commit/66c5e462dbdb9d0c9d23114da3a3dc1b6e9f... | 1 |
PHP | PHP | change comment wording | 658d1dfb2af301f6c8b02dfd3b6b9dec6e5bee12 | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> protected function getValidatorInstance()
<ide> }
<ide>
<ide> /**
<del> * Get validation data from request.
<add> * Get data to be validated from the request.
<ide> *
<ide> * @return array
<ide> */ | 1 |
Javascript | Javascript | fix crazy grammar | 0d62733f3089fe35ecbfb497320116d2372e9ef6 | <ide><path>packages/ember-application/lib/system/resolver.js
<ide> Ember.DefaultResolver = Ember.Object.extend({
<ide> factory = get(parsedName.root, className);
<ide> if (factory) { return factory; }
<ide> },
<add>
<ide> /**
<ide> Returns a human-readable description for a fullName. Used by the
<de... | 1 |
Text | Text | fix typo in part-8-rtk-query-advanced.md | 26be7242f12f061621075ffd256c392635f0eb95 | <ide><path>docs/tutorials/essentials/part-8-rtk-query-advanced.md
<ide> Uh-oh. The entire `<PostsList>` component was grayed out, because we just refetc
<ide>
<ide> ### Implementing Optimistic Updates
<ide>
<del>For a small update like adding a reaction, we probably don't need to re-fetch the entire list of posts. In... | 1 |
Go | Go | remove the open from cmdbuild | ebb59c1125d194716f26b8cc53863fa9910c4b3f | <ide><path>commands.go
<ide> import (
<ide> "log"
<ide> "net/http"
<ide> "net/url"
<del> "os"
<del> "path/filepath"
<ide> "runtime"
<ide> "strconv"
<ide> "strings" | 1 |
Javascript | Javascript | fix setnativeselectedposition native command | 078e386024474edc9b464f6c0fd8a1429e922289 | <ide><path>Libraries/Components/Picker/PickerAndroid.android.js
<ide> function PickerAndroid(props: Props): React.Node {
<ide> props.mode === 'dropdown'
<ide> ? AndroidDropdownPickerCommands
<ide> : AndroidDialogPickerCommands;
<del> Commands.setNativeSelectedPosition(current, s... | 1 |
Ruby | Ruby | remove rack cors initializer when updating | 5a9cc012a0b2c8bc059abb8f5663f0c66258583c | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def config_when_updating
<ide> active_record_belongs_to_required_by_default_config_exist = File.exist?('config/initializers/active_record_belongs_to_required_by_default.rb')
<ide> action_cable_config_exist = File.exist?('config/cable.... | 2 |
Ruby | Ruby | shuffle a few things in aid of easier debugging | 41ae432f492bfedadc6977012c8d38665bda3ae2 | <ide><path>activejob/test/support/integration/adapters/sidekiq.rb
<ide> def clear_jobs
<ide> end
<ide>
<ide> def start_workers
<del> fork do
<del> logfile = Rails.root.join("log/sidekiq.log").to_s
<del> pidfile = Rails.root.join("tmp/sidekiq.pid").to_s
<del> ::Process.daemon(true, true)
<del> ... | 1 |
Python | Python | fix static checks after pre-commit upgrades | a5d7f9b3220621d7e2d5f0f31370baf03bb1c752 | <ide><path>airflow/sensors/base.py
<ide> def _get_next_poke_interval(self, started_at: Any, run_duration: Callable[[], in
<ide> min_backoff = int(self.poke_interval * (2 ** (try_number - 2)))
<ide>
<ide> run_hash = int(
<del> hashlib.sha1(
<del> f"{self.dag_id}... | 4 |
Ruby | Ruby | fix ruby_has_encoding call regression | 61ffa47fd9dc179ddff792db1dc6f55464f6c16b | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def run
<ide> verbose = ARGV.verbose?
<ide> # Step may produce arbitrary output and we read it bytewise, so must
<ide> # buffer it as binary and convert to UTF-8 once complete
<del> output = Homebrew.ruby_has_encoding? ? "".encode!("BINARY") :... | 1 |
PHP | PHP | improve comments in route\parser | c55b4c5b7b46b6fdc8567fa858237b30b517ff15 | <ide><path>system/route/parser.php
<ide> class Parser {
<ide> */
<ide> public static function parameters($uri, $route)
<ide> {
<del> // --------------------------------------------------------------
<del> // Split the request URI into segments.
<del> // -----------------------------------------------------------... | 1 |
Text | Text | clarify wsl support | d8debd8448a1d325a564c42e5639655973b7641b | <ide><path>BUILDING.md
<ide> note1 - The gcc4.8-libs package needs to be installed, because node
<ide> In "Git bash" if you call the node shell alias (`node` without the `.exe`
<ide> extension), `winpty` is used automatically.
<ide>
<add>The Windows Subsystem for Linux (WSL) is not directly supported, but the
<add... | 1 |
Text | Text | add php tag + update coding style | 063257939b148091ab10da0dccbb0cbdb4e46a7a | <ide><path>guide/english/php/class/index.md
<ide> class Lab { // class keyword is mandatory identifier for class creation, after c
<ide> return $this->name;
<ide> }
<ide>
<del> public function say_my_name() {
<add> public function sayMyName() {
<ide> $name = $this->getName();
<ide> return $name;
<ide> ... | 1 |
Text | Text | remove note about yarn 2 support. | 232209b51330414f8dc002eb533e90ba2ac00cc9 | <ide><path>docs/getting-started.md
<ide> npm install next react react-dom
<ide> yarn add next react react-dom
<ide> ```
<ide>
<del>> **Note**: [Yarn 2](https://yarnpkg.com/getting-started/install) is supported as best-effort within Next.js. For best results, use NPM or Yarn 1.
<del>
<ide> Open `package.json` and add t... | 1 |
Javascript | Javascript | allow _ in hostnames | ddfc6b78cc15202789e58b9220c1897e9d9aa525 | <ide><path>lib/url.js
<ide> var protocolPattern = /^([a-z0-9]+:)/i,
<ide> .concat(unwise).concat(autoEscape),
<ide> nonAuthChars = ['/', '@', '?', '#'].concat(delims),
<ide> hostnameMaxLen = 255,
<del> hostnamePartPattern = /^[a-zA-Z0-9][a-z0-9A-Z-]{0,62}$/,
<del> hostnamePartStart = /^([a-zA-Z0-9][... | 2 |
Javascript | Javascript | read jshint version from package.json | 25299904da20d857468af2daf8b2fd73c7ec5fc0 | <ide><path>make.js
<ide> target.lint = function() {
<ide> var jshintPath = path.normalize('./node_modules/.bin/jshint');
<ide> if (!test('-f', jshintPath)) {
<ide> echo('jshint is not installed -- installing...');
<del> exec('npm install jshint@2.4.x'); // TODO read version from package.json
<add> // Read... | 1 |
Text | Text | add links to the issue id | 9a7b0755eb3332d73874246e38b12738ffa3f568 | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> **Date**: [December 2014][3.0.1-milestone]
<ide>
<del>* More helpful error message when the default Serializer `create()` fails (#2013)
<del>* Raise error when attempting to save serializer... | 1 |
Python | Python | add tests for german noun chunker | 7825b7554813c83e0423cec48ba293959d006840 | <ide><path>spacy/tests/unit/test_parser.py
<ide> def ex3_en(self, EN):
<ide> ], dtype='int32'))
<ide> return example
<ide>
<del> def test_standard_chunk(self, ex1_en):
<add> # @pytest.fixture(score="class")
<add> # def ex1_de(self, DE):
<add> # example = EN.tokenizer.tokens_from_lis... | 1 |
Java | Java | simplify context creation (android) | 739651afa1c0b90bf0fb75d9c09047645ff55388 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/HeadlessJsTaskService.java
<ide> public void onReactContextInitialized(ReactContext reactContext) {
<ide> reactInstanceManager.removeReactInstanceEventListener(this);
<ide> }
<ide> });
<del> if (!reactInstanceManager.hasStartedC... | 3 |
Javascript | Javascript | fix issue with nonprofit show views not loading | 7b85031a8ae32f8d9d53113b0782f7816ae92ead | <ide><path>server/boot/nonprofits.js
<ide> module.exports = function(app) {
<ide> return res.redirect('../nonprofit/' + dashedNameFull);
<ide> }
<ide>
<del> var buttonActive = false;
<del> if (
<del> req.user &&
<del> req.user.uncompletedBonfires.length === 0 &&
<del> ... | 1 |
Text | Text | remove reference to therubyracer from readme.md | 778f5a069a4027a85ab659645edca592d857732b | <ide><path>README.md
<ide> NOTE: Due to the rename, these instructions may be in flux
<ide> builds of Ember.js
<ide>
<ide> If you are building under Linux, you will need a JavaScript runtime for
<del>minification. You can either install nodejs or `gem install
<del>therubyracer`.
<add>minification, for which we rec... | 1 |
Java | Java | simplify lambda expression | 58a5138f26fd4a2f9a769ea34a0b3017909e4723 | <ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpResponse.java
<ide> public HttpStatus getStatusCode() {
<ide> public MultiValueMap<String, ResponseCookie> getCookies() {
<ide> MultiValueMap<String, ResponseCookie> result = new LinkedMultiValueMap<>();
<ide> this.respon... | 1 |
Text | Text | document the ready event for http2stream | f98a441bf75f2b0b698a0f9dace218f56386ec4a | <ide><path>doc/api/http2.md
<ide> argument identifying the frame type, and an integer argument identifying the
<ide> error code. The `Http2Stream` instance will be destroyed immediately after the
<ide> `'frameError'` event is emitted.
<ide>
<add>#### Event: `'ready'`
<add><!-- YAML
<add>added: v8.4.0
<add>-->
<add>
<a... | 1 |
Ruby | Ruby | move code out to active_record_deprecated_finders | d961f490ff1624b7c24a69d546a613768906f05c | <ide><path>activerecord/lib/active_record/relation/batches.rb
<ide> def find_each(options = {})
<ide> # group.each { |person| person.party_all_night! }
<ide> # end
<ide> def find_in_batches(options = {})
<add> options.assert_valid_keys(:start, :batch_size)
<add>
<ide> relation = self
<ide> ... | 1 |
Javascript | Javascript | explain meaning of elements in secondary_toolbar | 838802c2d3fcd1a2fd048c74ffb3a4b124d567b6 | <ide><path>web/secondary_toolbar.js
<ide> var SecondaryToolbar = {
<ide>
<ide> // Attach the event listeners.
<ide> var elements = [
<add> // Button to toggle the visibility of the secondary toolbar:
<ide> { element: this.toggleButton, handler: this.toggle },
<add> // All items within the secon... | 1 |
Text | Text | add link to references in net.socket | 42766a818338150f2d5001c451b7e3314362fb27 | <ide><path>doc/api/net.md
<ide> Construct a new socket object.
<ide> `fd` allows you to specify the existing file descriptor of socket.
<ide> Set `readable` and/or `writable` to `true` to allow reads and/or writes on this
<ide> socket (NOTE: Works only when `fd` is passed).
<del>About `allowHalfOpen`, refer to `createS... | 1 |
PHP | PHP | return null if no referrer is found | ee48b20d1e96a1533b417f3b977d448f8ab38b51 | <ide><path>src/Http/ServerRequest.php
<ide> public function getTrustedProxies(): array
<ide> *
<ide> * @param bool $local Attempt to return a local address.
<ide> * Local addresses do not contain hostnames.
<del> * @return string The referring address for this request.
<add> * @return string|nu... | 2 |
Javascript | Javascript | fetch existing package details as json | be2eea05cffef91a6670f512f0f2e3a34dab21ed | <ide><path>script/lib/upload-linux-packages.js
<ide> module.exports = async function (packageRepoName, apiToken, version, artifacts)
<ide> const existingPackageDetails =
<ide> await request({
<ide> uri: `https://${apiToken}:@packagecloud.io/api/v1/repos/AtomEditor/${packageRepoName}/package/${ty... | 1 |
Go | Go | remove comment that is no longer relevant | 7b277f62cce939fca8fec4edb8c4b719e492dbeb | <ide><path>daemon/images/service.go
<ide> func (i *ImageService) CreateLayer(container *container.Container, initFunc laye
<ide> StorageOpt: container.HostConfig.StorageOpt,
<ide> }
<ide>
<del> // Indexing by OS is safe here as validation of OS has already been performed in create() (the only
<del> // caller), and ... | 1 |
Python | Python | add command option --executable | 21b86d3e9ee73a84d5ff458c8520314efe2138a8 | <ide><path>celery/bin/base.py
<ide>
<ide> Optional directory to change to after detaching.
<ide>
<add>.. cmdoption:: --executable
<add>
<add> Executable to use for the detached process.
<add>
<ide> """
<ide> from __future__ import absolute_import, print_function, unicode_literals
<ide>
<ide> def daemon_option... | 3 |
Text | Text | add note of caution about non-conforming streams | d67c37725adebfbdee6cb78ea4261833448ddf4c | <ide><path>doc/api/stream.md
<ide> of a stream that are intended for use by consumers (as described in the
<ide> [API for Stream Consumers][] section). Doing so may lead to adverse side effects
<ide> in application code consuming the stream.
<ide>
<add>Avoid overriding public methods such as `write()`, `end()`, `cork(... | 1 |
Text | Text | add the title "more information " to the article | 77246a193d40fde1c3ec3fb436797e826403b527 | <ide><path>guide/english/c/conditional-statements/index.md
<del>---
<del>title: Conditional Statements
<del>---
<del># Conditional Statements in C
<del>Conditional Statements are also known as Branching Statements. They are so called because the program chooses to follow one branch or another.
<del>
<del>## 1. if state... | 1 |
Go | Go | fix flaky test `testgetcontainerstatsrmrunning` | 9a9ce80a0f5214011ddf68f93894b1c046435a8d | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestGetContainerStatsRmRunning(c *check.C) {
<ide>
<ide> buf := &integration.ChannelBuffer{make(chan []byte, 1)}
<ide> defer buf.Close()
<del> chErr := make(chan error)
<add> chErr := make(chan error, 1)
<ide> go func() {
<ide> _... | 1 |
Ruby | Ruby | add master key to `gitignore` on `rails new` | f27319a72a4ccfbffc575b752e4d91136f23725e | <ide><path>railties/lib/rails/generators/rails/app/app_generator.rb
<ide> def master_key
<ide> return if options[:pretend] || options[:dummy_app]
<ide>
<ide> require "rails/generators/rails/master_key/master_key_generator"
<del> Rails::Generators::MasterKeyGenerator.new([], quiet: options[:quiet]).add... | 4 |
Ruby | Ruby | fix the doc on the `indexdefinition` [ci skip] | ee8beaa41bbe6ed47d40be45ce37abb3fb1b79be | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
<ide> module ActiveRecord
<ide> module ConnectionAdapters #:nodoc:
<ide> # Abstract representation of an index definition on a table. Instances of
<ide> # this type are typically created and returned by methods in dat... | 1 |
PHP | PHP | simplify authentication. remove service | d5f285ba8b36e4533b4b9b228285dd2c941866cc | <ide><path>app/Http/Controllers/Auth/AuthController.php
<del><?php namespace App\Http\Controllers\Auth;
<del>
<del>use App\Http\Controllers\Controller;
<del>use Illuminate\Contracts\Auth\Guard;
<del>use Illuminate\Contracts\Auth\Registrar;
<del>use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
<del>
<del>c... | 3 |
Go | Go | add a getprefixandslashfromdaemonplatform … | 382c96ee7b02f393e7515e4cc4882738398b86a6 | <ide><path>integration-cli/docker_api_volumes_test.go
<ide> import (
<ide> )
<ide>
<ide> func (s *DockerSuite) TestVolumesApiList(c *check.C) {
<del> prefix := ""
<del> if daemonPlatform == "windows" {
<del> prefix = "c:"
<del> }
<add> prefix, _ := getPrefixAndSlashFromDaemonPlatform()
<ide> dockerCmd(c, "run", "-d"... | 6 |
Text | Text | use sentence case in issues.md headers | ad6ea3cf1e116742ff7fda33cc5c9346e5a9b38c | <ide><path>doc/guides/contributing/issues.md
<ide> # Issues
<ide>
<del>* [Asking for General Help](#asking-for-general-help)
<add>* [Asking for general help](#asking-for-general-help)
<ide> * [Discussing non-technical topics](#discussing-non-technical-topics)
<del>* [Submitting a Bug Report](#submitting-a-bug-report)
... | 1 |
Javascript | Javascript | ensure default name for record in tostring | d7e63459b952a1c2a1c0a181e44c892c6bf08aa5 | <ide><path>dist/immutable.js
<ide> }
<ide>
<ide> function recordName(record) {
<del> return record._name || record.constructor.name;
<add> return record._name || record.constructor.name || 'Record';
<ide> }
<ide>
<ide> function deepEqual(a, b) {
<ide><path>dist/immutable.min.js
<ide> * LICENSE file in... | 3 |
Javascript | Javascript | fix comments for ember.view.context | 0a3adbe6ad46a9bf8a9592d210055a7d0065e48a | <ide><path>packages/ember-views/lib/views/view.js
<ide> Ember.View = Ember.Object.extend(Ember.Evented,
<ide>
<ide> The context of a view is looked up as follows:
<ide>
<del> 1. Specified controller
<del> 2. Supplied context (usually by Handlebars)
<add> 1. Supplied context (usually by Handlebars)
<add> ... | 1 |
Java | Java | delete unused imports in spring-context-indexer | 1af2fbfbbb68fda04797df666e56c1eb7dbe9da5 | <ide><path>spring-context-indexer/src/main/java/org/springframework/context/index/IndexedStereotypesProvider.java
<ide> import javax.lang.model.element.AnnotationMirror;
<ide> import javax.lang.model.element.Element;
<ide> import javax.lang.model.element.ElementKind;
<del>import javax.lang.model.type.DeclaredType;
<del... | 2 |
Javascript | Javascript | remove function wrappers in domselection | 9a13393ce367a06258f0ee2b155b02493632d472 | <ide><path>src/browser/ui/ReactDOMSelection.js
<ide> var ReactDOMSelection = {
<ide> /**
<ide> * @param {DOMElement} node
<ide> */
<del> getOffsets: function(node) {
<del> var getOffsets = document.selection ? getIEOffsets : getModernOffsets;
<del> return getOffsets(node);
<del> },
<add> getOffsets: do... | 1 |
Javascript | Javascript | correct typo in optionalfeatures warning | c445e04b6add358e92a42f311b8ed6e9f6cb6134 | <ide><path>lib/index.js
<ide> module.exports = {
<ide> }
<ide> } else {
<ide> this.ui.writeWarnLine(
<del> 'The Ember Classic edition has been deprecated. Speciying "classic" in your package.json, or not specifying a value at all, will no longer be supported. You must explicitly set the "ember.ed... | 1 |
Javascript | Javascript | remove odd construct in normalizetuples | 9250abaf5e12084cd12ee62a7d1e335a5ee7c5f1 | <ide><path>packages/ember-metal/lib/accessors.js
<ide> Ember.normalizeTuple = function(target, path) {
<ide> return normalizeTuple(target, path);
<ide> };
<ide>
<del>Ember.normalizeTuple.primitive = normalizeTuple;
<del>
<ide> Ember.getWithDefault = function(root, key, defaultValue) {
<ide> var value = get(root, k... | 2 |
Ruby | Ruby | remove intermediate assignments | 4b87854e541a47a485bb3b34dc6d090a48b8cc9c | <ide><path>activerecord/lib/active_record/associations/builder/association.rb
<ide> def initialize(name, scope, options)
<ide>
<ide> validate_options
<ide>
<del> if @scope && @scope.arity == 0
<del> prev_scope = @scope
<del> @scope = proc { instance_exec(&prev_scope) }
<add> if scope && ... | 2 |
Text | Text | fix text to follow language's syntax | aea570b498692bbeb3784cd1781dcd24d7cf51f2 | <ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.portuguese.md
<ide> localeTitle: Adicione Superpotências Flex ao Tweet Incorporado
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> À direita está o tweet incorporado que será us... | 1 |
Javascript | Javascript | fix slovenian locale (redo ) | 6fb5fde5a501a62372b4f25299e6889a7371c7ef | <ide><path>src/locale/sl.js
<ide>
<ide> import moment from '../moment';
<ide>
<del>function translate(number, withoutSuffix, key) {
<add>function processRelativeTime(number, withoutSuffix, key, isFuture) {
<ide> var result = number + ' ';
<ide> switch (key) {
<add> case 's':
<add> return withoutSuff... | 2 |
Text | Text | fix a typo in api/process.md | 27f4c9407f1b052512e2bbd8262a627ab785fa20 | <ide><path>doc/api/process.md
<ide> too many listeners have been added to an event
<ide>
<ide> ```txt
<ide> $ node
<del>> event.defaultMaxListeners = 1;
<add>> events.defaultMaxListeners = 1;
<ide> > process.on('foo', () => {});
<ide> > process.on('foo', () => {});
<ide> > (node:38638) Warning: Possible EventEmitter m... | 1 |
Ruby | Ruby | tap tapdependency recursively | ac713863731b792e45776e990131f8774f5a7f65 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def formula(formula_name)
<ide> reqs |= formula.devel.requirements.to_a
<ide> end
<ide>
<add> begin
<add> formula.recursive_dependencies
<add> rescue TapFormulaUnavailableError => e
<add> raise if e.tap.installed?
<add> safe... | 1 |
Text | Text | move eljefedelrodeodeljefe to emeritus | 822101f570478ffa15e4ed0e00cd0d67b9cc789e | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Hitesh Kanwathirtha** <digitalinfinity@gmail.com> (he/him)
<ide> * [edsadr](https://github.com/edsadr) -
<ide> **Adrian Estrada** <edsadr@gmail.com> (he/him)
<del>* [eljefedelrodeodeljefe](https://github.com/... | 1 |
PHP | PHP | fix merge conflicts | 539750de5499f58cce061b431ab61f79257614f9 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php
<ide> public function __construct(Model $parent, $attributes, $table, $exists = false)
<ide> // The pivot model is a "dynamic" model since we will set the tables dynamically
<ide> // for the instance. This allows it work for any intermediate tables for... | 7 |
Mixed | Ruby | add a source attribute | c9a2bc284c3c3ef11839fa0a0222339f0fd7c2c0 | <ide><path>activesupport/CHANGELOG.md
<add>* `ActiveSupport::ErrorReporter` now accepts and forward a `source:` parameter.
<add>
<add> This allow libraries to signal the origin of the errors, and reporters
<add> to easily ignore some sources.
<add>
<add> *Jean Boussier*
<add>
<ide> * Fix and add protection... | 7 |
Python | Python | remove superfluous parenthesis | cd77205cf921845d5615805562a28924e8724199 | <ide><path>glances/plugins/glances_sensors.py
<ide> def msg_curse(self, args=None):
<ide>
<ide> for i in self.stats:
<ide> # Do not display anything if no battery are detected
<del> if (i['type'] == 'battery' and i['value'] == []):
<add> if i['type'] == 'battery' and i['value'... | 1 |
Javascript | Javascript | fix missed version bump | 56583406394d44c8f9e0c1ac2c9a8a227852c26c | <ide><path>packages/ember-metal/lib/core.js
<ide> Ember.toString = function() { return "Ember"; };
<ide> /**
<ide> @property VERSION
<ide> @type String
<del> @default '1.0.0-rc.6'
<add> @default '1.0.0-rc.6.1'
<ide> @final
<ide> */
<del>Ember.VERSION = '1.0.0-rc.6';
<add>Ember.VERSION = '1.0.0-rc.6.1';
<ide>
<... | 1 |
Ruby | Ruby | convert string concatenations to substitutions | 4a1e2c32532ee0f6ee08563d7970c9220d9e2773 | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def indexes(table, stream)
<ide> if (indexes = @connection.indexes(table)).any?
<ide> add_index_statements = indexes.map do |index|
<ide> statement_parts = [
<del> ('add_index ' + remove_prefix_and_suffix(index.t... | 1 |
Javascript | Javascript | remove special case try/catch in isplainobject | 3dccf62c81b5fbecc3a0431a8927ed1d30806fc6 | <ide><path>src/core.js
<ide> jQuery.extend({
<ide> return false;
<ide> }
<ide>
<del> // Support: Firefox <20
<del> // The try/catch suppresses exceptions thrown when attempting to access
<del> // the "constructor" property of certain host objects, ie. |window.location|
<del> // https://bugzilla.mozilla.org/sh... | 1 |
Javascript | Javascript | fix bad require | 725e3eba6e0fd3d5d08c4b9e7febcd1b09e5e954 | <ide><path>private-cli/src/dependencies/dependencies.js
<ide> const fs = require('fs');
<ide> const log = require('../util/log').out('dependencies');
<ide> const parseCommandLine = require('../../../packager/parseCommandLine');
<ide> const path = require('path');
<del>const Promise = require('Promise');
<add>const Prom... | 1 |
PHP | PHP | fix strict warnings on php 5.4 | 7e5f326300c19d701b576c53304e0b473285d166 | <ide><path>lib/Cake/Model/Datasource/DataSource.php
<ide> public function create(Model $model, $fields = null, $values = null) {
<ide> *
<ide> * @param Model $model The model being read.
<ide> * @param array $queryData An array of query data used to find the data you want
<add> * @param integer $recursive Number of ... | 1 |
Go | Go | fix a race in maintaining the journald reader list | 4d200cd6938c1416e34bf43576b0d528b73e8ba3 | <ide><path>daemon/logger/journald/read.go
<ide> drain:
<ide> }
<ide>
<ide> func (s *journald) followJournal(logWatcher *logger.LogWatcher, config logger.ReadConfig, j *C.sd_journal, pfd [2]C.int, cursor string) {
<add> s.readers.mu.Lock()
<add> s.readers.readers[logWatcher] = logWatcher
<add> s.readers.mu.Unlock()
<id... | 1 |
Ruby | Ruby | ignore dependencies of build-time-dependency | 6d0c6d0604f4e93920491851479776c9a8f5516e | <ide><path>Library/Homebrew/dependency.rb
<ide> def expand(dependent, deps = dependent.deps, cache_key: nil, ignore_missing: fal
<ide> expanded_deps << dep
<ide> else
<ide> next if @expand_stack.include? dep.name
<add> next if dep.tags.include?(:build)
<ide>
<ide> expande... | 1 |
Text | Text | update changelog for database_resolver_context | 4295aaf758838fc4d3eb7d41ac26dde26a5d61db | <ide><path>activerecord/CHANGELOG.md
<ide> ```
<ide> config.active_record.database_selector = { delay: 2.seconds }
<ide> config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
<del> config.active_record.database_operations = ActiveRecord::Middleware::DatabaseSelecto... | 1 |
Text | Text | add changes for 1.3.0-rc.1 and 1.2.24 | c54990ca6e1edfa02a6d1e08819ec8c3ef8fc11e | <ide><path>CHANGELOG.md
<add><a name="1.3.0-rc.1"></a>
<add># 1.3.0-rc.1 backyard-atomicity (2014-09-09)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** render nested transclusion at the root of a template
<add> ([6d1e7cdc](https://github.com/angular/angular.js/commit/6d1e7cdc51c074139639e870b66997fb0df4523f)... | 1 |
Python | Python | remove autograph verbosity in the test | fa479cf5f6931e2284e9625bd9954c36e4aa83a3 | <ide><path>keras/engine/training_test.py
<ide> def metrics(self):
<ide>
<ide> @keras_parameterized.run_all_keras_modes(always_skip_v1=True)
<ide> def test_ema_overwrite(self):
<del> tf.autograph.set_verbosity(10)
<add>
<ide> model = sequential.Sequential()
<ide> model.add(input_layer.Input(shape=(4,)))
... | 1 |
Ruby | Ruby | fix error with formulae without taps | 8ab9465ad2ac9b8d4b2d72180d6000b755478a9d | <ide><path>Library/Homebrew/formula_auditor.rb
<ide> def self.aliases
<ide> SYNCED_VERSIONS_FORMULAE_FILE = "synced_versions_formulae.json"
<ide>
<ide> def audit_synced_versions_formulae
<add> return unless formula.tap
<add>
<ide> synced_versions_formulae_file = formula.tap.path/SYNCED_VERSIONS_FORM... | 1 |
Text | Text | fix grammatical errors in redux actions document | c013738c70eab78f878f6976e2d3ac20e37987bb | <ide><path>guide/english/redux/redux-actions/index.md
<ide> title: Redux Actions
<ide> ## Redux Actions
<ide>
<ide> Redux action is a simple object that describes what sort of event has happened in your application. They can even contain
<del>data that needs to be send from the application to the Redux store. Action c... | 1 |
Python | Python | fix django 3.0 deprecations | 95d4843abeecea96754a147f4f2cca33e620ad09 | <ide><path>rest_framework/fields.py
<ide> parse_date, parse_datetime, parse_duration, parse_time
<ide> )
<ide> from django.utils.duration import duration_string
<del>from django.utils.encoding import is_protected_type, smart_text
<add>from django.utils.encoding import is_protected_type, smart_str
<ide> from django.... | 5 |
Ruby | Ruby | escape multibyte line terminators in json encoding | 9b8ee8e006db581eb34dc0fa1d230653b7a1c956 | <ide><path>activesupport/lib/active_support/json/encoding.rb
<ide> def check_for_circular_references(value)
<ide> "\010" => '\b',
<ide> "\f" => '\f',
<ide> "\n" => '\n',
<add> "\xe2\x80\xa8" => '\u2028',
<add> "\xe2\x80\xa9" => '\u2029',
<ide> "\r" => '\r',
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.