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 | remove paths that don't exist | e0e884d8fed32e091df569f2933129bd1800fe80 | <ide><path>Cake/View/View.php
<ide> protected function _paths($plugin = null, $cached = true) {
<ide> }
<ide> $paths = array();
<ide> $viewPaths = App::path('View');
<del> $corePaths = array_merge(App::core('View'), App::core('Console/Templates/skel/View'));
<add> $corePaths = App::core('View');
<ide>
<ide> ... | 1 |
Java | Java | change converter ordering in message broker config | 670c216d3838807fef46cd28cc82165f9abaeb45 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/converter/AbstractMessageConverter.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License"... | 6 |
Python | Python | escape single quote in s3_keys | 8a34d25049a060a035d4db4a49cd4a0d0b07fb0b | <ide><path>airflow/providers/snowflake/transfers/s3_to_snowflake.py
<ide> def execute(self, context: Any) -> None:
<ide> f"FROM @{self.stage}/{self.prefix or ''}",
<ide> ]
<ide> if self.s3_keys:
<del> files = ", ".join(f"'{key}'" for key in self.s3_keys)
<add> files = "... | 2 |
Text | Text | add missing quotes in default string values | 321c178faa51d1f9e7c8ac60790aeca187a50e1f | <ide><path>doc/api/crypto.md
<ide> added: REPLACEME
<ide> - `curve` {string}
<ide> - `inputEncoding` {string}
<ide> - `outputEncoding` {string}
<del>- `format` {string} **Default:** `uncompressed`
<add>- `format` {string} **Default:** `'uncompressed'`
<ide> - Returns: {Buffer | string}
<ide>
<ide> Converts the EC Diff... | 5 |
PHP | PHP | add comment for empty functions. | c0f3538710d3fb8501a78cae7f4a7cf0aa70ad22 | <ide><path>src/Illuminate/Http/RedirectResponse.php
<ide> protected function parseErrors($provider)
<ide> */
<ide> public function getOriginalContent()
<ide> {
<add> //
<ide> }
<ide>
<ide> /** | 1 |
Text | Text | fix misprint in ar changelog | 2baa8ba9535bf181714b40375c85c20d0d06e524 | <ide><path>activerecord/CHANGELOG.md
<ide> has_one :account
<ide> end
<ide>
<del> user.build_account{ |a| a.credit_limit => 100.0 }
<add> user.build_account{ |a| a.credit_limit = 100.0 }
<ide>
<ide> The block is called after the instance has been initialized. *Andrew White*
<ide> | 1 |
Ruby | Ruby | improve test coverage | 945c53e7b54eff25e1cc1cf81ba6c96cce6664de | <ide><path>activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
<ide> def test_insert_sql_with_returning_disabled
<ide> @connection.use_returning = true
<ide> end
<ide>
<add> def test_exec_insert_with_returning_disabled
<add> @connection.use_returning = false
<add> re... | 1 |
Python | Python | extend trainer logging for sm | 49c61a4ae7f269c5f590d62334c33832a29e0c7d | <ide><path>src/transformers/trainer.py
<ide> import os
<ide> import re
<ide> import shutil
<add>import sys
<ide> import time
<ide> import warnings
<add>from logging import StreamHandler
<ide> from pathlib import Path
<ide> from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Tuple, Union
<ide>
<ide> ... | 2 |
Go | Go | switch version to -dev | 0089dd05e910852d5b821074c73287e730040630 | <ide><path>commands.go
<ide> import (
<ide> "unicode"
<ide> )
<ide>
<del>const VERSION = "0.5.0"
<add>const VERSION = "0.5.0-dev"
<ide>
<ide> var (
<ide> GITCOMMIT string | 1 |
Mixed | Javascript | add onmouseover and onmouseout events | a2e352ea76a711de67d891568301fa497a93a39c | <ide><path>docs/docs/ref-05-events.md
<ide> Event names:
<ide> ```
<ide> onClick onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave
<ide> onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave
<del>onMouseMove onMouseUp
<add>onMouseMove onMouseOut onMouseOver onMouseUp
<ide> ```
<ide>
<ide>... | 2 |
Ruby | Ruby | avoid uninitialized variable warning | d0621fde885ca0b61c75d0fd0b03bd431d736b42 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def setup_controller_request_and_response
<ide>
<ide> @request.env.delete('PATH_INFO')
<ide>
<del> if @controller
<add> if defined?(@controller) && @controller
<ide> @controller.request = @request
<ide> @controlle... | 1 |
Javascript | Javascript | stop findposition at a fullscreenelement | 541f2e584b7a1fc8e3547ada32d7d9ceb586a1f6 | <ide><path>src/js/utils/dom.js
<ide> */
<ide> import document from 'global/document';
<ide> import window from 'global/window';
<add>import fs from '../fullscreen-api';
<ide> import log from './log.js';
<ide> import {isObject} from './obj';
<ide> import computedStyle from './computed-style';
<ide> export function find... | 1 |
Ruby | Ruby | remove extra spaces from deprecation message | 08780eff79f93f5741dc80fb1fb1a091b9a9c94e | <ide><path>activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
<add>require 'active_support/core_ext/string/strip'
<add>
<ide> module ActiveRecord
<ide> module AttributeMethods
<ide> module TimeZoneConversion
<ide> def create_time_zone_conversion_attribute?(name, cast_type)
<ide> ... | 2 |
Text | Text | fix typo in stream doc | f7dd3bc19ffe031d4610b0250f7a0f6fa5c6eba9 | <ide><path>doc/api/stream.md
<ide> used to fill the read buffer).
<ide> Data is buffered in Writable streams when the
<ide> [`writable.write(chunk)`][stream-write] method is called repeatedly. While the
<ide> total size of the internal write buffer is below the threshold set by
<del>`highWaterMark`, calls to `writable.... | 1 |
Text | Text | add movember to users list | 25f435b4b4c586e6afb313fee5627cd0cbe35e9c | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [MFG Labs](https://github.com/MfgLabs)
<ide> 1. [MiNODES](https://www.minodes.com) [[@dice89](https://github.com/dice89), [@diazcelsa](https://github.com/diazcelsa)]
<ide> 1. [Modernizing Medicine](https://www.modmed.com/)[[@kehv1n](https://git... | 1 |
Javascript | Javascript | change default template context to controller | a4e4033d7ec4db777bac463efa9b7e3e6e7da53e | <ide><path>packages/ember-handlebars/tests/handlebars_test.js
<ide> test("bindings should respect keywords", function() {
<ide> museumOpen: true,
<ide>
<ide> controller: {
<add> museumOpen: true,
<ide> museumDetails: Ember.Object.create({
<ide> name: "SFMoMA",
<ide> price: 20
<ide> t... | 3 |
Python | Python | add tests for hermfit with deg specified as list | b8180bbf97505a544324c90f407cdf2c5913c612 | <ide><path>numpy/polynomial/tests/test_hermite.py
<ide> def test_hermfit(self):
<ide> def f(x):
<ide> return x*(x - 1)*(x - 2)
<ide>
<add> def f2(x):
<add> return x**4 + x**2 + 1
<add>
<ide> # Test exceptions
<ide> assert_raises(ValueError, herm.hermfit, [1], [1], ... | 1 |
Javascript | Javascript | fix typo in keyframetrack.optimize() | 0bb92db3df41179adce5320447798b25f672d5cd | <ide><path>src/animation/KeyframeTrack.js
<ide> Object.assign( KeyframeTrack.prototype, {
<ide>
<ide> // remove adjacent keyframes scheduled at the same time
<ide>
<del> if ( time !== timeNext && ( i !== 1 || time !== time[ 0 ] ) ) {
<add> if ( time !== timeNext && ( i !== 1 || time !== times[ 0 ] ) ) {
<ide> ... | 1 |
Ruby | Ruby | remove dead, unused vendor/db2.rb | d9fb021845c0481c5119eebdc534aec427072f7d | <ide><path>activerecord/lib/active_record/vendor/db2.rb
<del>require 'db2/db2cli.rb'
<del>
<del>module DB2
<del> module DB2Util
<del> include DB2CLI
<del>
<del> def free() SQLFreeHandle(@handle_type, @handle); end
<del> def handle() @handle; end
<del>
<del> def check_rc(rc)
<del> if ![SQL_SUCCESS, SQL... | 1 |
Ruby | Ruby | fix nounzip strategy ignoring block | 85eb346fb756fc8177f95024f6ad357f45820815 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> UnpackStrategy::Uncompressed.new(cached_location)
<ide> .extract(basename: basename,
<ide> verbose: verbose? && !quiet?)
<add> yield if block_given?
<ide> end
<ide> e... | 1 |
Ruby | Ruby | fix env for python3 | 370df177c46e9f13415b2da99b868fe56546764c | <ide><path>Library/Homebrew/requirements/python_requirement.rb
<ide> class PythonRequirement < Requirement
<ide> ENV.prepend_path "PATH", Formula["python"].opt_bin
<ide> end
<ide>
<del> if python_binary == "python"
<del> ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages... | 1 |
Javascript | Javascript | remove unnecessary check | a6e9174a2774007e22ce0b2c257a2cd3f39563dd | <ide><path>src/ng/parse.js
<ide> function ensureSafeMemberName(name, fullExpression) {
<ide> return name;
<ide> }
<ide>
<del>function getStringValue(name, fullExpression) {
<del> // From the JavaScript docs:
<add>function getStringValue(name) {
<ide> // Property names must be strings. This means that non-string o... | 2 |
Text | Text | explore definition an usage for opacity | 0e8891956a403dce2d9af0777f321afcae770c4b | <ide><path>guide/english/css/image-opacity-and-transparency/index.md
<ide> The ```opacity``` property allows you to make an image transparent by lowering h
<ide> ```Opacity``` takes a value between 0.0 and 1.0.
<ide>
<ide> 1.0 is the default value for any image. It is fully opaque.
<add>(default)
<add>
<add>Note: When... | 1 |
Java | Java | use jpa from jakarta | e90225336a57fa269ec40d6e238e4a27541b56fc | <ide><path>spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/JpaEntityListenerTests.java
<ide>
<ide> import java.util.List;
<ide>
<del>import javax.persistence.EntityManager;
<del>import javax.persistence.EntityManagerFactory;
<del>import javax.persistence.PersistenceContext;
<ide> import j... | 4 |
PHP | PHP | remove deprecated method of 3.x | 69e8eac63d3922ef86af3ce82885aee8c551f318 | <ide><path>src/Datasource/EntityTrait.php
<ide> public function getVisible(): array
<ide> return array_diff($fields, $this->_hidden);
<ide> }
<ide>
<del> /**
<del> * Gets the list of visible fields.
<del> *
<del> * @deprecated 4.0.0 Use getVisible() instead. Will be removed in 5.0.
<del> ... | 2 |
Text | Text | add more notes to issue template | b5686dd3522f620aee760044d18e506d2de90239 | <ide><path>.github/ISSUE_TEMPLATE.md
<add><!-- Please don't delete this template or we'll close your issue -->
<ide> <!-- Before creating an issue please make sure you are using the latest version of webpack. -->
<add><!-- Also consider trying the webpack@beta version, maybe it's already fixed. -->
<ide>
<ide> **Do yo... | 1 |
Javascript | Javascript | add key for items in textinputexample of rntester | 25f7657cf6bb49d365249ae834847ab0996da20c | <ide><path>RNTester/js/TextInputExample.ios.js
<ide> exports.examples = [
<ide> ];
<ide> const examples = clearButtonModes.map(mode => {
<ide> return (
<del> <WithLabel label={mode}>
<add> <WithLabel key={mode} label={mode}>
<ide> <TextInput
<del> key={mode... | 1 |
Ruby | Ruby | add comment to a table without model | f036862c0fa0377c78007daf7b79715f5cb8ff32 | <ide><path>activerecord/test/schema/postgresql_specific_schema.rb
<ide> rescue #This version of PostgreSQL either has no XML support or is was not compiled with XML support: skipping table
<ide> end
<ide>
<add> # This table is to verify if the :limit option is being ignored for text and binary columns
<ide> creat... | 1 |
Javascript | Javascript | move call to `$digest` into `compileinput` helper | 0ef17276e9aa0aefe5f9aa6f04da5b35dd0f9466 | <ide><path>test/ng/directive/inputSpec.js
<ide> describe('input', function() {
<ide> formElm = jqLite('<form name="form"></form>');
<ide> formElm.append(inputElm);
<ide> $compile(formElm)(scope);
<add> scope.$digest();
<ide> }
<ide>
<ide> beforeEach(inject(function($injector, _$sniffer_, _$browser_)... | 1 |
Java | Java | fix javadoc in responseentityexceptionhandler | 1c03aaaddc6ab1034d6455ffc8d82fe9d05c54fb | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseEntityExceptionHandler.java
<ide> * individual methods that handle a specific exception, override
<ide> * {@link #handleExceptionInternal} to override common handling of all exceptions,
<ide> * or {@link #createRespo... | 1 |
Javascript | Javascript | update example to use a module | a5f6a92c8c29115eb85b6987e64fe5987fe2694a | <ide><path>src/ngSanitize/filter/linky.js
<ide> <span ng-bind-html="linky_expression | linky"></span>
<ide> *
<ide> * @example
<del> <example module="ngSanitize" deps="angular-sanitize.js">
<add> <example module="linkyExample" deps="angular-sanitize.js">
<ide> <file name="index.html">
<ide> <script... | 1 |
Javascript | Javascript | add smarter test for moment.locales | 87127e1f48114e2004b3e9dc442f29bdf8847d00 | <ide><path>src/test/moment/locale.js
<ide> test('defineLocale', function (assert) {
<ide> });
<ide>
<ide> test('locales', function (assert) {
<del> assert.equal(moment.locales().length > 0, true, 'locales returns an array of defined locales');
<add> moment.defineLocale('dude', {months: ['Movember']});
<add> a... | 1 |
Javascript | Javascript | return different functions in timerify | 3d0fc13ba374d539cfb9a70e44310877cb6f7ceb | <ide><path>lib/internal/perf/timerify.js
<ide> const {
<ide> MathCeil,
<ide> ReflectApply,
<ide> ReflectConstruct,
<del> Symbol,
<ide> } = primordials;
<ide>
<ide> const { InternalPerformanceEntry } = require('internal/perf/performance_entry');
<ide> const {
<ide> enqueue,
<ide> } = require('internal/perf/obs... | 2 |
Java | Java | fix deadlock issue in deferredresult | db596d23dea7a8f35b52581d92b00a18c3f45335 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/async/DeferredResult.java
<ide> private boolean setResultInternal(Object result) {
<ide> return false;
<ide> }
<ide> this.result = result;
<del> if (this.resultHandler != null) {
<del> this.resultHandler.handleResult(this.result)... | 1 |
PHP | PHP | remove unused code | 0667ff21568dbddaec4775bc6fbe98a8342f892a | <ide><path>src/Console/Command/Task/ControllerTask.php
<ide> public function getHelpers() {
<ide> return $helpers;
<ide> }
<ide>
<del>/**
<del> * Interact with the user and get a list of additional components
<del> *
<del> * @return array Components the user wants to use.
<del> */
<del> public function doComponents... | 1 |
Ruby | Ruby | fix meson template | 4cdee1b53d0fb2573d5f2ca71d63b3d6e6156f12 | <ide><path>Library/Homebrew/dev-cmd/create.rb
<ide> class #{Formulary.class_s(name)} < Formula
<ide> <% if mode == :cmake %>
<ide> depends_on "cmake" => :build
<ide> <% elsif mode == :meson %>
<del> depends_on "meson" => :build
<add> depends_on "meson-internal" => :build
<ide> ... | 1 |
Python | Python | use less memory when dropout is disabled | a2fdc323818af677f88870890669f41ded0c1827 | <ide><path>keras/layers/recurrent.py
<ide> def step(self, x, states):
<ide> # states only contains the previous output.
<ide> assert len(states) == 3 # 1 state and 2 constants
<ide> prev_output = states[0]
<del> B_W = states[1]
<del> B_U = states[2]
<add> if self.dropout_W =... | 1 |
Text | Text | add sub domain to host in url | 9acd6c9aef399dbafa8a57399fbbb45376d7a81b | <ide><path>doc/api/url.md
<ide> When parsed, a URL object is returned containing properties for each of these
<ide> components.
<ide>
<ide> The following details each of the components of a parsed URL. The example
<del>`'http://user:pass@host.com:8080/p/a/t/h?query=string#hash'` is used to
<add>`'http://user:pass@sub.... | 1 |
Javascript | Javascript | add symbol test for assert.deepequal() | 0f99320aa0d13c83e41d14f3cbbdbd12884ce5eb | <ide><path>test/parallel/test-assert.js
<ide> assert.throws(makeBlock(a.deepEqual, 'a', ['a']), a.AssertionError);
<ide> assert.throws(makeBlock(a.deepEqual, 'a', {0: 'a'}), a.AssertionError);
<ide> assert.throws(makeBlock(a.deepEqual, 1, {}), a.AssertionError);
<ide> assert.throws(makeBlock(a.deepEqual, true, {}), a.A... | 1 |
Go | Go | remove uses of pkg/urlutil.istransporturl() | 2e831c76c245b262597d3b9f26ef035e8dec0230 | <ide><path>daemon/logger/gelf/gelf.go
<ide> import (
<ide> "github.com/Graylog2/go-gelf/gelf"
<ide> "github.com/docker/docker/daemon/logger"
<ide> "github.com/docker/docker/daemon/logger/loggerutils"
<del> "github.com/docker/docker/pkg/urlutil"
<ide> "github.com/sirupsen/logrus"
<ide> )
<ide>
<ide> func parseAddre... | 2 |
Text | Text | fix links in readme.md | 3607bf489a961207d6171ea0c8a38dbdb2721261 | <ide><path>im2txt/README.md
<ide> Each caption is a list of words. During preprocessing, a dictionary is created
<ide> that assigns each word in the vocabulary to an integer-valued id. Each caption
<ide> is encoded as a list of integer word ids in the `tf.SequenceExample` protos.
<ide>
<del>We have provided a script t... | 1 |
Ruby | Ruby | require ruby-debug from new_base/abstract_unit | d1d9a6c26113cf4a0decb504c46e4e7fe4351ce6 | <ide><path>actionpack/test/new_base/abstract_unit.rb
<ide>
<ide> $tags[:new_base] = true
<ide>
<add>begin
<add> require 'ruby-debug'
<add> Debugger.settings[:autoeval] = true
<add> Debugger.start
<add>rescue LoadError
<add> # Debugging disabled. `gem install ruby-debug` to enable.
<add>end
<ide>
<ide> ActiveSupp... | 1 |
Go | Go | add unit test for validateip4address | 5a9cf7e75442ce1c76876da717b8c2f321fc04ae | <ide><path>opts_unit_test.go
<add>package docker
<add>
<add>import (
<add> "testing"
<add>)
<add>
<add>func TestValidateIP4(t *testing.T) {
<add> if ret, err := ValidateIp4Address(`1.2.3.4`); err != nil || ret == "" {
<add> t.Fatalf("ValidateIp4Address(`1.2.3.4`) got %s %s", ret, err)
<add> }
<add>
<add> if ret, err :... | 1 |
PHP | PHP | state | d787947998089e6eac4883d90418601fdb5c529d | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> protected function expandAttributes(array $definition)
<ide> /**
<ide> * Add a new state transformation to the model definition.
<ide> *
<del> * @param (callable(array<string, mixed>, \Illuminate\Database\Eloquent\Model|null=): a... | 1 |
Ruby | Ruby | give more context from `associationmismatcherror` | 0991c4c6fc0c04764f34c6b65a42adce190440c3 | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> def raise_on_type_mismatch!(record)
<ide> unless record.is_a?(reflection.klass)
<ide> fresh_class = reflection.class_name.safe_constantize
<ide> unless fresh_class && record.is_a?(fresh_class)
<del> ... | 2 |
Python | Python | fix some issues in spanish examples | 3d50b1a9898d91c1a3bf796af0e849020d564480 | <ide><path>spacy/lang/es/examples.py
<ide> sentences = [
<ide> "Apple está buscando comprar una startup del Reino Unido por mil millones de dólares.",
<ide> "Los coches autónomos delegan la responsabilidad del seguro en sus fabricantes.",
<del> "San Francisco analiza prohibir los robots delivery.",
<add> ... | 1 |
Text | Text | fix url bug in docs | 4c6726918ecabeec858134a14766c8adf727a7b1 | <ide><path>docs/introduction/Ecosystem.md
<ide> A cross-platform Electron app for inspecting React and React Native apps, includ
<ide>
<ide> #### DevTools Monitors
<ide>
<del>**[Log Monitor](https://github.com/reduxjs/redux-devtools-log-monitor)** <br />
<add>**[Log Monitor](https://github.com/reduxjs/redux-devtools/... | 1 |
Ruby | Ruby | bring config.allow_concurrency back | 9ee6f3cc8ef1cd50648ec2882803943d3bd1f24a | <ide><path>railties/lib/rails/application.rb
<ide> def reload_dependencies? #:nodoc:
<ide> def default_middleware_stack #:nodoc:
<ide> ActionDispatch::MiddlewareStack.new.tap do |middleware|
<ide> app = self
<del> if rack_cache = config.action_dispatch.rack_cache
<del> begin
<del> ... | 3 |
Ruby | Ruby | trim unnecessary 'the' | 142be05c0f6070c71fa3dc38e86711bdca372fb5 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_access_share_man
<ide>
<ide> def check_access_homebrew_repository
<ide> unless HOMEBREW_REPOSITORY.writable_real? then <<-EOS.undent
<del> The #{HOMEBREW_REPOSITORY} is not writable.
<add> #{HOMEBREW_REPOSITORY} is not writable.
... | 1 |
Ruby | Ruby | ignore case in origin comparison | b24e96e28da945cf063f5868f32afeed7e002dd1 | <ide><path>Library/Homebrew/diagnostic.rb
<ide> def check_coretap_git_origin
<ide> properly. You can solve this by adding the Homebrew remote:
<ide> git -C "#{coretap_path}" remote add origin #{Formatter.url(CoreTap.instance.default_remote)}
<ide> EOS
<del> elsif origin !~ %r{... | 1 |
Javascript | Javascript | allow wildcards in common name | 4dd70bb12c4c7be47d661ae2e950600ed7ab560d | <ide><path>lib/tls.js
<ide> function checkServerIdentity(host, cert) {
<ide> dnsNames = dnsNames.concat(uriNames);
<ide>
<ide> // And only after check if hostname matches CN
<del> // (because CN is deprecated, but should be used for compatiblity anyway)
<ide> var commonNames = cert.subject.CN;
<ide> ... | 1 |
Javascript | Javascript | add deprecation for quoteless outlet names | 788c825b27b7c9b884a91635207742de1fcad8c1 | <ide><path>packages/ember-routing-handlebars/lib/helpers/outlet.js
<ide> export function outletHelper(property, options) {
<ide> property = 'main';
<ide> }
<ide>
<add> Ember.deprecate(
<add> "Using {{outlet}} with an unquoted name is not supported. " +
<add> "Please update to quoted usage '{{outlet \"" + ... | 3 |
Ruby | Ruby | allow both 'rake' and 'rails' | 5c99a4b93e99cac2bc00fa79da6d79aa37582890 | <ide><path>railties/lib/rails/generators/actions.rb
<ide> def generate(what, *args)
<ide> in_root { run_ruby_script("bin/rails generate #{what} #{argument}", verbose: false) }
<ide> end
<ide>
<del> # Runs the supplied rake task
<add> # Runs the supplied rake task (invoked with 'rake ...')
<ide>... | 2 |
Text | Text | note python compatibility | e919cb1b57a27f581c07080e341a86421df78a88 | <ide><path>docs/topics/2.2-announcement.md
<ide> Django 1.6's Python 3 support is expected to be officially labeled as 'productio
<ide>
<ide> If you want to start ensuring that your own projects are Python 3 ready, we can highly recommend Django's [Porting to Python 3][porting-python-3] documentation.
<ide>
<add>Djan... | 1 |
Javascript | Javascript | fix typo in a link | 72d63dbcc09ecfcb2e12cc3ecfbcff94648fbbfc | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> * {@link ng.directive:ngController controllers} or in
<ide> * {@link ng.$compileProvider#directive directives}.
<ide> * Instead, you should call {@link ng.$rootScope.Scope#$apply $apply()} (typically from within
<del> *... | 1 |
Python | Python | remove obsolete comment | 025733bae3dae4200577cb35ef3229cc0f47a5b2 | <ide><path>numpy/distutils/from_template.py
<ide> def namerepl(mobj):
<ide>
<ide> def process_str(allstr):
<ide> newstr = allstr
<del> writestr = '' #_head # using _head will break free-format files
<add> writestr = ''
<ide>
<ide> struct = parse_structure(newstr)
<ide> | 1 |
Javascript | Javascript | fix failing tests for outerhtml fallback | f870e8e98d3c09297388fd7e7e5424456e20cd22 | <ide><path>packages/ember-views/lib/system/render_buffer.js
<ide> Ember._RenderBuffer.prototype =
<ide> string: function() {
<ide> if (this._hasElement && this._element) {
<ide> // Firefox versions < 11 do not have support for element.outerHTML.
<del> return this.element().outerHTML ||
<del> new... | 2 |
PHP | PHP | change cache path | b9de404ce384611e477e4fc5d8fca2a24f2ad562 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function eventsAreCached()
<ide> */
<ide> public function getCachedEventsPath()
<ide> {
<del> return $_ENV['APP_EVENTS_CACHE'] ?? $this->storagePath().'/framework/cache/events.php';
<add> return $_ENV['APP_EVENTS_CACHE'] ?? $th... | 1 |
Text | Text | add 2.10.0-beta.3 to changelog.md | 2ca045698802cf1563599561aaaff2105803c66a | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### 2.10.0-beta.3 (November 2, 2016)
<add>
<add>- [#14537](https://github.com/emberjs/ember.js/pull/14537) [BUGFIX] Improve behavior for QPs with undefined values
<add>- [#14545](https://github.com/emberjs/ember.js/pull/14545) [BUGFIX] Refactor loading/error s... | 1 |
Text | Text | fix typo in run command documentation | b3913024e252e9cb1e7cba75e3f95cb23cedaf9b | <ide><path>docs/reference/commandline/run.md
<ide> Options:
<ide> -P, --publish-all Publish all exposed ports to random ports
<ide> --read-only Mount the container's root filesystem as read only
<ide> --restart string Restart policy to apply when a container ... | 1 |
Javascript | Javascript | add support for the "sftp" protocol in links | 5f76bc60976fd2d28f793fa72dd6ce49daf645d6 | <ide><path>src/ng/sanitizeUri.js
<ide> * Private service to sanitize uris for links and images. Used by $compile and $sanitize.
<ide> */
<ide> function $$SanitizeUriProvider() {
<del> var aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/,
<add> var aHrefSanitizationWhitelist = /^\s*(https?|s?ftp|mail... | 6 |
PHP | PHP | add helper methods for consoleio | 3b5f42006917b8b7c43aed0b4de88b12ad551bcb | <ide><path>src/Console/ConsoleIo.php
<ide> public function out($message = '', $newlines = 1, $level = ConsoleIo::NORMAL)
<ide> return true;
<ide> }
<ide>
<add> /**
<add> * Convenience method for out() that wraps message between <info /> tag
<add> *
<add> * @param string|array|null $message A... | 2 |
Ruby | Ruby | allow overriding macos.version | d94636cde921288aa7a33a0f368a3101fd8f3df3 | <ide><path>Library/Homebrew/cask/lib/hbc/cli.rb
<ide> def self.run_command(command, *rest)
<ide> end
<ide>
<ide> def self.process(arguments)
<add> unless ENV["MACOS_VERSION"].nil?
<add> MacOS.full_version = ENV["MACOS_VERSION"]
<add> end
<add>
<ide> command_string, *rest = *arguments
<id... | 2 |
Java | Java | avoid npe when setting warnlogcategory | ef72ef54fac1a0cde43e9ca2023f8ea1ea64d769 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/handler/AbstractHandlerExceptionResolver.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lic... | 1 |
Mixed | Javascript | remove magic mode | 4893f70d12691208abf8c668d8347240df561f14 | <ide><path>doc/api/deprecations.md
<ide> The `tls.createSecurePair()` API was deprecated in documentation in Node.js
<ide> <a id="DEP0065"></a>
<ide> ### DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic
<ide>
<del>Type: Documentation-only
<add>Type: End-of-Life
<ide>
<ide> The `repl` module's `REPL_MODE_MAGIC` ... | 4 |
Text | Text | update changelog for 15.6 | ac2f14272989b1b4eb3060098a38ebaf5a538dd7 | <ide><path>CHANGELOG.md
<del>## 15.6.0 [Unreleased]
<del><details>
<del> <summary>Changes we plan to include in the 15.6.0 release.</summary>
<add>## 15.6.0 (June 13, 2017)
<ide>
<ide> ### React
<ide>
<ide>
<ide> * Remove PropTypes dependency from ReactLink. ([@gaearon](https://github.com/gaearon) in [#9766](https:... | 1 |
Ruby | Ruby | update error message when inlineadapter is used | a1e925db7096483626263de088a3294ad6259d3f | <ide><path>activejob/lib/active_job/queue_adapters/inline_adapter.rb
<ide> def enqueue(job) #:nodoc:
<ide> end
<ide>
<ide> def enqueue_at(*) #:nodoc:
<del> raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at https://github.com/rails/activejob")
<ad... | 1 |
Python | Python | add xfailing test for reverse pattern (see ) | 34a3cc26a91e50ee2461df650271fb50c064562b | <ide><path>spacy/tests/regression/test_issue1971.py
<ide> def test_issue1971(en_vocab):
<ide> # the real problem here is that it returns a duplicate match for a match_id
<ide> # that's not actually in the vocab!
<ide> assert all(match_id in en_vocab.strings for match_id, start, end in matcher(doc))
<add>
<a... | 1 |
Python | Python | improve code example | 61ee26a89260611c51a277b69155710316ae54ac | <ide><path>src/transformers/models/glpn/modeling_glpn.py
<ide> def forward(
<ide>
<ide> ```python
<ide> >>> from transformers import GLPNFeatureExtractor, GLPNForDepthEstimation
<add> >>> import torch
<add> >>> import numpy as np
<ide> >>> from PIL import Image
<ide> >>> i... | 1 |
PHP | PHP | accept -1 or 1 as # of rows on insert | cc7d7f27f3d0672d4079e8c448ba1dbab74907be | <ide><path>src/ORM/Table.php
<ide> protected function _insert($entity, $data) {
<ide> ->values($data)
<ide> ->execute();
<ide>
<del> if ($statement->rowCount() > 0) {
<add> if ($statement->rowCount() !== 0) {
<ide> $success = $entity;
<ide> $entity->set($filteredKeys, ['guard' => false]);
<ide> foreac... | 1 |
Python | Python | fix bug in escape_curly_brackets | 37dcd553705421201f00fb7f6a75a6214afb9d60 | <ide><path>rest_framework/routers.py
<ide> def escape_curly_brackets(url_path):
<ide> """
<ide> Double brackets in regex of url_path for escape string formatting
<ide> """
<del> if ('{' and '}') in url_path:
<del> url_path = url_path.replace('{', '{{').replace('}', '}}')
<del> return url_path
<... | 1 |
Ruby | Ruby | add fortran configuration to env.rb | 8991d9bf15678fd236b2c70b5f7e5a825e122d7e | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def llvm
<ide> self.O4
<ide> end
<ide>
<add> def fortran
<add> if self['FC']
<add> ohai "Building with an alternative Fortran compiler. This is unsupported."
<add> self['F77'] = self['FC'] unless self['F77']
<add>
<add> if ARGV.include? '--defaul... | 1 |
PHP | PHP | remove deprecated code in filesystem and error | ee0eff1ca830105927dda2a7331ffdcb3206505f | <ide><path>src/Error/Debugger.php
<ide> public static function setOutputFormat($format)
<ide> $self->_outputFormat = $format;
<ide> }
<ide>
<del> /**
<del> * Get/Set the output format for Debugger error rendering.
<del> *
<del> * @deprecated 3.5.0 Use getOutputFormat()/setOutputFormat() inst... | 4 |
PHP | PHP | add tests modifying the dsn class map | b69cf9c3c5b601019718072ff53315a12dd7e5a5 | <ide><path>src/Core/StaticConfigTrait.php
<ide> public static function parseDsn($dsn) {
<ide> */
<ide> public static function dsnClassMap($map = null) {
<ide> if ($map) {
<del> static::$_dsnClassMap = $map + $_dsnClassMap;
<add> static::$_dsnClassMap = $map + static::$_dsnClassMap;
<ide> }
<ide> return stat... | 2 |
PHP | PHP | allow usage of the worker without pcntl | f6715f4f7514c2bba44c9f80dc452fef078f19de | <ide><path>src/Illuminate/Queue/Console/WorkCommand.php
<ide> namespace Illuminate\Queue\Console;
<ide>
<ide> use Carbon\Carbon;
<add>use RuntimeException;
<ide> use Illuminate\Queue\Worker;
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Queue\WorkerOptions;
<ide> protected function runWorker($connection, ... | 2 |
Javascript | Javascript | fix key requirements in asymmetric cipher | 78dbe74520d36de7f7bc17707848ec8ec63e67a5 | <ide><path>lib/internal/crypto/cipher.js
<ide> function rsaFunctionFor(method, defaultPadding, keyType) {
<ide> const publicEncrypt = rsaFunctionFor(_publicEncrypt, RSA_PKCS1_OAEP_PADDING,
<ide> 'public');
<ide> const publicDecrypt = rsaFunctionFor(_publicDecrypt, RSA_PKCS1_PADDING,... | 2 |
PHP | PHP | unskip more tests related to secured forms | 85ccc83deea3e6fc4131d1bea677a6d78df51855 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testFormSecurityMultipleInputFields() {
<ide> * @return void
<ide> */
<ide> public function testFormSecurityArrayFields() {
<del> $this->markTestIncomplete('Need to revisit once models work again.');
<del> $key = 'testKey';
<del> $this... | 1 |
Python | Python | fix malformed docstrings in ma. | 02d66ecd80a1851c3b206f4d778687b38c9d2c36 | <ide><path>numpy/ma/extras.py
<ide> def getdoc(self):
<ide> the new masked array version of the function. A note on application
<ide> of the function to the mask is appended.
<ide>
<del> .. warning::
<del> If the function docstring already contained a Notes section, the
<del> n... | 1 |
PHP | PHP | fix strict typing error | f9a541f361d70a697803d3a0f83634999dcfd217 | <ide><path>tests/test_app/TestApp/Controller/TestsAppsController.php
<ide> public function index()
<ide>
<ide> public function some_method()
<ide> {
<del> return $this->response->withStringBody(5);
<add> return $this->response->withStringBody('5');
<ide> }
<ide>
<ide> public function set... | 1 |
Javascript | Javascript | add test double http benchmarker | a3e71a8901bc326bcc701820d10e10d9de4d338a | <ide><path>benchmark/_http-benchmarkers.js
<ide> 'use strict';
<ide>
<ide> const child_process = require('child_process');
<add>const path = require('path');
<add>const fs = require('fs');
<ide>
<ide> // The port used by servers and wrk
<ide> exports.PORT = process.env.PORT || 12346;
<ide>
<del>function AutocannonBe... | 2 |
Python | Python | change version to 2.2 | f5747a5b00d308d5af10cb60d92c63a4868bef60 | <ide><path>glances/__init__.py
<ide> """Init the Glances software."""
<ide>
<ide> __appname__ = 'glances'
<del>__version__ = '2.2_BETA'
<add>__version__ = '2.2'
<ide> __author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
<ide> __license__ = 'LGPL'
<ide> | 1 |
Python | Python | create a pluggable dataseteventmanager | 28165eef2ac26c66525849e7bebb55553ea5a451 | <ide><path>airflow/datasets/manager.py
<add>#
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licenses this file
<add># to you... | 4 |
Javascript | Javascript | fix arrow styling | 28045696dd3ea7207b1162c2343ba142e1f75e5d | <ide><path>airflow/www/static/js/dag_dependencies.js
<ide> const renderGraph = () => {
<ide>
<ide> // Set edges
<ide> edges.forEach((edge) => {
<del> g.setEdge(edge.u, edge.v);
<add> g.setEdge(edge.u, edge.v, {
<add> curve: d3.curveBasis,
<add> arrowheadClass: 'arrowhead',
<add> });
<ide> });
... | 1 |
Java | Java | normalize indentation of apache license url | 9f5fd3afcf7196dcae1ba5813f78561f9ee0f0a1 | <ide><path>org.springframework.aop/src/test/java/org/springframework/aop/interceptor/DebugInterceptorTests.java
<ide> * you may not use this file except in compliance with the License.
<ide> * You may obtain a copy of the License at
<ide> *
<del> * http://www.apache.org/licenses/LICENSE-2.0
<add> * http://ww... | 34 |
Go | Go | publish empty stats on error | 0a30ef4c593607aebf2f3fd948665f2be0f74261 | <ide><path>daemon/stats/collector.go
<ide> func (s *Collector) Run() {
<ide>
<ide> default:
<ide> logrus.Errorf("collecting stats for %s: %v", pair.container.ID, err)
<add> pair.publisher.Publish(types.StatsJSON{
<add> Name: pair.container.Name,
<add> ID: pair.container.ID,
<add> })
<ide> }
<... | 1 |
Javascript | Javascript | reduce some constant duplication | b4658f2daa4990ef8057335cd7202b479bd8d41a | <ide><path>packages/react-dom/src/events/DOMEventProperties.js
<ide> export const topLevelEventsToReactNames: Map<
<ide> string | null,
<ide> > = new Map();
<ide>
<add>// NOTE: Capitalization is important in this list!
<add>//
<add>// E.g. it needs "pointerDown", not "pointerdown".
<add>// This is because we derive ... | 1 |
Go | Go | fix restart monitor stopping on manual restart | 20390f65c487cfbe18e1f21650086a00e41eadff | <ide><path>container/container.go
<ide> func (container *Container) FullHostname() string {
<ide> func (container *Container) RestartManager(reset bool) restartmanager.RestartManager {
<ide> if reset {
<ide> container.RestartCount = 0
<add> container.restartManager = nil
<ide> }
<ide> if container.restartManager ... | 2 |
Text | Text | fix a typo | f8527ea270e00031665e9581583f5ed3aaddd6f4 | <ide><path>guide/russian/xml/index.md
<ide> localeTitle: Расширяемый язык разметки (XML)
<ide> XML - расширяемый язык разметки. Предназначен для описания произвольных документов. Он расширяемый, поскольку не использует предопределенный набор элементов (тэгов) для описания структуры документа. Вместо этого он обеспечива... | 1 |
PHP | PHP | fix cs error | 7ab8924ed24ce5772992ba952082ddd9e4d9d6a0 | <ide><path>src/Console/Command/Task/FixtureTask.php
<ide> */
<ide> namespace Cake\Console\Command\Task;
<ide>
<del>use Cake\Console\ConsoleOutput;
<ide> use Cake\Console\ConsoleInput;
<add>use Cake\Console\ConsoleOutput;
<ide> use Cake\Console\Shell;
<ide> use Cake\Core\Configure;
<ide> use Cake\Database\Schema\Table... | 1 |
Javascript | Javascript | fix failing tests | 975aef2ad2fcb6e276244822b11ddaf39b13857c | <ide><path>docs/spec/ngdocSpec.js
<ide> describe('ngdoc', function(){
<ide> expect(doc.requires).toEqual([
<ide> {name:'$service', text:'<p>for \n<code>A</code></p>'},
<ide> {name:'$another', text:'<p>for <code>B</code></p>'}]);
<del> expect(doc.html()).toContain('<a href="#!angular.s... | 2 |
Ruby | Ruby | skip empty files | 7501d33159aadaabe2435373ceca2bb371aa8ef8 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def write_jar_script(target_jar, script_name, java_opts = "", java_version: nil)
<ide> def install_metafiles(from = Pathname.pwd)
<ide> Pathname(from).children.each do |p|
<ide> next if p.directory?
<add> next if File.zero?(p)
<ide> next unless... | 2 |
Ruby | Ruby | add support for xz-compressed tarballs | ffd5b7d7ab9b616408d00b895f4ec0b2d38f6dd4 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def stage
<ide> # Use more than 4 characters to not clash with magicbytes
<ide> magic_bytes = "____pkg"
<ide> else
<del> # get the first four bytes
<del> File.open(@tarball_path) { |f| magic_bytes = f.read(4) }
<add> # get the first s... | 3 |
Python | Python | fix tf savedmodel in roberta | 3a134f7c67c0eb4ac6887050964c9b6285651df8 | <ide><path>src/transformers/modeling_tf_longformer.py
<ide> class TFLongformerEmbeddings(tf.keras.layers.Layer):
<ide> """
<ide>
<ide> def __init__(self, config, **kwargs):
<del> super().__init__(config, **kwargs)
<add> super().__init__(**kwargs)
<ide>
<ide> self.padding_idx = 1
<ide> ... | 2 |
Javascript | Javascript | fix default port | 72ad2c94df3f67674076b9d81b4e30f0cf448266 | <ide><path>lib/_http_client.js
<ide> function ClientRequest(options, cb) {
<ide> var self = this;
<ide> OutgoingMessage.call(self);
<ide>
<add> options = util._extend({}, options);
<add>
<ide> self.agent = util.isUndefined(options.agent) ? globalAgent : options.agent;
<ide>
<del> var defaultPort = options.def... | 3 |
Javascript | Javascript | fix typo in descriptions | 3c7f0f7a367eb5e333843a120f29fbf44f017687 | <ide><path>test/ng/filter/filterSpec.js
<ide> describe('Filter: filter', function() {
<ide> expect(filter(items, function(i) {return i.done;}).length).toBe(1);
<ide> });
<ide>
<del> it('should take object as perdicate', function() {
<add> it('should take object as predicate', function() {
<ide> var items =... | 1 |
Javascript | Javascript | add jquery.uniquesort; deprecate jquery.unique | e1090c3d2b2a988a5b41f1f1ed9f8d6dcae02200 | <ide><path>src/selector-sizzle.js
<ide> define([
<ide> jQuery.find = Sizzle;
<ide> jQuery.expr = Sizzle.selectors;
<ide> jQuery.expr[":"] = jQuery.expr.pseudos;
<del>jQuery.unique = Sizzle.uniqueSort;
<add>jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
<ide> jQuery.text = Sizzle.getText;
<ide> jQuery.isXMLDoc =... | 5 |
Text | Text | update the link | e05fe7c42bb96d50d41a39ee319919b0a152d607 | <ide><path>README.md
<ide> - Intercept request and response
<ide> - Transform request and response data
<ide> - Cancel requests
<del>- Automatic transforms for JSON data
<add>- Automatic transforms for [JSON](https://www.json.org/json-en.html) data
<ide> - 🆕 Automatic data object serialization to `multipart/form-data`... | 1 |
Go | Go | add grpc.withblock option | 9f73396dabf087a8dd5fa74296c2cd4c188ff889 | <ide><path>daemon/daemon.go
<ide> func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
<ide> registerMetricsPluginCallback(d.PluginStore, metricsSockPath)
<ide>
<ide> gopts := []grpc.DialOption{
<add> // WithBlock makes sure that the following containerd request
<add> // is reliable.
<a... | 1 |
Java | Java | fix conversion of message<?> payload for replies | 72894b26c24b1ea31c6dda4634cfde67e7dc3050 | <ide><path>spring-jms/src/main/java/org/springframework/jms/listener/adapter/AbstractAdaptableMessageListener.java
<ide> /*
<del> * Copyright 2002-2014 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 3 |
PHP | PHP | fix merge conflicts | a6235ca2a8e454c88083c7dab57aee3772034faa | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> protected function _authRequired(Controller $controller)
<ide> * Validate submitted form
<ide> *
<ide> * @param \Cake\Controller\Controller $controller Instantiating controller
<add><<<<<<< HEAD
<ide> * @throws \Cake\Controller\Exceptio... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.