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 failing test
c01f45fa59db126e928affccad596eca45c8c202
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java <ide> package org.springframework.web.servlet.config.annotation; <ide> <ide> import java.util.ArrayList; <add>import java.util.Collections; <ide> import java.util.HashMap; <ide> import java.util.Lis...
2
PHP
PHP
move method lower in class
d876eb34ff07ebd54fd48b0264135f795c0bad0c
<ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php <ide> public function transaction(callable $callback = null) <ide> : tap($transaction, $callback)->exec(); <ide> } <ide> <del> /** <del> * Execute a raw command. <del> * <del> * @param array $parameters <del> * @ret...
1
Ruby
Ruby
make homebrew_brew_file a pathname object
12a452557d7695dba69f488a95a77a2650d28251
<ide><path>Library/Homebrew/config.rb <ide> def mkpath <ide> # Where brews installed via URL are cached <ide> HOMEBREW_CACHE_FORMULA = HOMEBREW_CACHE+"Formula" <ide> <del>HOMEBREW_BREW_FILE = ENV["HOMEBREW_BREW_FILE"] <del>unless HOMEBREW_BREW_FILE <add>if ENV["HOMEBREW_BREW_FILE"] <add> HOMEBREW_BREW_FILE = Pathname...
5
PHP
PHP
add accessor method for view properties
c1a1a209af378c8b9e8ce380656b7090d61a7297
<ide><path>src/Controller/Controller.php <ide> public function __get($name) <ide> { <ide> if (in_array($name, ['layout', 'view', 'theme', 'autoLayout', 'viewPath', 'layoutPath'], true)) { <ide> trigger_error( <del> sprintf('Controller::$%s is deprecated. Use $this->getView()->%s i...
3
Javascript
Javascript
fix responsive issue when the chart is recreated
3fe198c86098ae50d5d5e9b74d111d5f8fa74bf0
<ide><path>src/platforms/platform.dom.js <ide> function watchForRender(node, handler) { <ide> addEventListener(node, type, proxy); <ide> }); <ide> <add> // #4737: Chrome might skip the CSS animation when the CSS_RENDER_MONITOR class <add> // is removed then added back immediately (same animation frame?). Accessing ...
3
PHP
PHP
extract duplicate code into a helper
4cafa1e36a28d8c88f041e04eb4ece2e0e86376a
<ide><path>src/Network/Response.php <ide> public function cors(Request $request, $allowedDomains = [], $allowedMethods = [ <ide> */ <ide> public function file($path, array $options = []) <ide> { <add> $file = $this->validateFile($path); <ide> $options += [ <ide> 'name' => null, <...
1
Ruby
Ruby
add test for root
8e48a5ef0ca488b2264acd2b38bdae14970c011f
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def self.matches?(request) <ide> scope ':access_token', :constraints => { :access_token => /\w{5,5}/ } do <ide> resources :rooms <ide> end <add> <add> root :to => 'projects#index' <ide> end <ide> end <ide> <ide> def test_acc...
1
PHP
PHP
remove use of file in shell and extracttask
3fbf46e521f432431da3ead73b08e5ae9b75bb09
<ide><path>src/Console/Shell.php <ide> use Cake\Console\Exception\ConsoleException; <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Core\App; <add>use Cake\Core\Exception\Exception; <ide> use Cake\Datasource\ModelAwareTrait; <del>use Cake\Filesystem\File; <add>use Cake\Filesystem\Filesystem; <ide> use Ca...
3
Javascript
Javascript
use duration object in relativetime
af40f1dc864279850f503d4cee24c846f4b9d21b
<ide><path>moment.js <ide> <ide> // default relative time thresholds <ide> relativeTimeThresholds = { <del> s: 45, //seconds to minutes <del> m: 45, //minutes to hours <del> h: 22, //hours to days <del> dd: 25, //days to month (month == 1) <del> dm: 4...
3
Ruby
Ruby
make sure duplicates are remove from `path`
e70f2ec33233422b70db047338aa85d9e2088042
<ide><path>Library/Homebrew/PATH.rb <ide> def initialize(*paths) <ide> end <ide> <ide> def prepend(*paths) <del> @paths.unshift(*parse(*paths)) <add> @paths = parse(*paths, *@paths) <ide> self <ide> end <ide> <ide> def append(*paths) <del> @paths.concat(parse(*paths)) <add> @paths = parse(*@pa...
2
Python
Python
restore data test
322def29f7d88e67ee9bdcb715c58a3b2801fab4
<ide><path>official/recommendation/data_test.py <ide> def _test_fresh_randomness(self, constructor_type): <ide> <ide> self.assertLess(deviation, 0.2) <ide> <del> # def test_end_to_end_materialized(self): <del> # self._test_end_to_end("materialized") <del> # <del> # def test_end_to_end_bisection(self): <de...
1
Text
Text
remove cluster.setupmaster() myth
779091ffdb5ea6d93e81f8dd732699fb8836bb0b
<ide><path>doc/api/cluster.md <ide> values are `"rr"` and `"none"`. <ide> After calling `.setupMaster()` (or `.fork()`) this settings object will contain <ide> the settings, including the default values. <ide> <del>It is effectively frozen after being set, because `.setupMaster()` can <del>only be called once. <del> <...
1
Text
Text
fix merge conflict
e2047576c483a419f02ac0a2a5e77cd52c075699
<ide><path>website/docs/api/cli.md <ide> All output files generated by this command are compatible with <ide> | `conll`, `conllu`, `conllubio` | Universal Dependencies `.conllu` or `.conll` format. ...
1
Go
Go
delete the logging code
e7c0587d541cd9f224df622b2f97c918e68cfb05
<ide><path>pkg/tarsum/tarsum.go <ide> import ( <ide> "strings" <ide> <ide> "github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar" <del> <del> log "github.com/Sirupsen/logrus" <ide> ) <ide> <ide> const ( <ide> func (ts *tarSum) Sum(extra []byte) string { <ide> h.Write(extra) <ide> } <ide> ...
1
Ruby
Ruby
add tests for interrupting transactions
9cdf93a05ca8c86913ee7fe430a3aac68795f5e8
<ide><path>activerecord/test/cases/adapters/postgresql/transaction_test.rb <ide> class Sample < ActiveRecord::Base <ide> end <ide> end <ide> <add> test "raises Interrupt when canceling statement via interrupt" do <add> start_time = Time.now <add> thread = Thread.new do <add> Sample.transa...
1
Python
Python
fix nightly runs
72eaaf6d55e0a9a35dfcdef91dd23661a26f5da0
<ide><path>.circleci/create_circleci_config.py <ide> def create_circleci_config(folder=None): <ide> <ide> if len(jobs) > 0: <ide> config = {"version": "2.1"} <del> config["parameters"] = {"tests_to_run": {"type": "string", "default": test_list}} <add> config["parameters"] = { <add> ...
1
Javascript
Javascript
improve hasher to always use 31bit ints
6e270ddb4c03a295499cc087ab6ea173f55e94fd
<ide><path>dist/Immutable.dev.js <ide> function hashValue(o) { <ide> var type = typeof o; <ide> if (type === 'number') { <ide> if ((o | 0) === o) { <del> return o % HASH_MAX_VAL; <add> return o & HASH_MAX_VAL; <ide> } <ide> o = '' + o; <ide> type = 'string'; <ide> function cachedHashString...
3
Java
Java
avoid accidental usage of junit 4 assumptions
5d5f9aceca7e953fa8c783e9730478205f7d3e2a
<ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/AbstractHttpHandlerIntegrationTests.java <ide> protected void startServer(HttpServer httpServer) throws Exception { <ide> <ide> @AfterEach <ide> void stopServer() { <del> this.server.stop(); <del> this.port = 0; <add> if (this.server != ...
4
Javascript
Javascript
fix windows mispotionning issue
2e7df014592624b62b1aec74345c016713e52afa
<ide><path>fonts.js <ide> var Font = (function () { <ide> string16(properties.ascent) + // Typographic Ascent <ide> string16(properties.descent) + // Typographic Descent <ide> "\x00\x00" + // Line Gap <del> "\x00\xFF" + // advanceWidthMax <add> ...
1
Javascript
Javascript
fix error in treesitterhighlightiterator.seek
e09ee1c1fa8ac10dbec10a0fc47253bb51c7bbd7
<ide><path>spec/tree-sitter-language-mode-spec.js <ide> describe('TreeSitterLanguageMode', () => { <ide> <ide> buffer.setLanguageMode(new TreeSitterLanguageMode({buffer, grammar})) <ide> buffer.setText('aa.bbb = cc(d.eee());') <del> expectTokensToEqual(editor, [ <add> expectTokensToEqual(editor, ...
2
Java
Java
fix issue with parsing x-forwarded-host header
1e90d029735e809a8ddb1c60f35e76083b1fe084
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java <ide> public static ServletUriComponentsBuilder fromRequestUri(HttpServletRequest requ <ide> public static ServletUriComponentsBuilder fromRequest(HttpServletRequest request) { <ide> String scheme = reques...
2
Python
Python
add xfailing test for
231bc7bb7bd7e373d4b4c9a3e33d6539d0637828
<ide><path>spacy/tests/regression/test_issue3345.py <add>"""Test interaction between preset entities and sentence boundaries in NER.""" <add>import spacy <add>from spacy.tokens import Doc <add>from spacy.pipeline import EntityRuler, EntityRecognizer <add> <add> <add>@pytest.mark.xfail <add>def test_issue3345(): <add> ...
1
Go
Go
remove events package
d487ca03e6e897e4bb5f9ba28b268450f059fc0d
<ide><path>events/events.go <del>package events <del> <del>import ( <del> "bytes" <del> "encoding/json" <del> "fmt" <del> "io" <del> "strings" <del> "sync" <del> "time" <del> <del> "github.com/docker/docker/engine" <del> "github.com/docker/docker/pkg/jsonmessage" <del> "github.com/docker/docker/pkg/parsers/filters" <de...
2
PHP
PHP
remove unused import
de04ffe9626850cc69d2150eb4f2c06a36f6f01e
<ide><path>src/Core/Plugin.php <ide> */ <ide> namespace Cake\Core; <ide> <del>use ArgumentCountError; <ide> use DirectoryIterator; <ide> <ide> /**
1
Javascript
Javascript
implement challenge schema
c754880476d09b17d48f9c5d687c7891ac7915a4
<ide><path>index.js <ide> const utils = require('../server/utils'); <ide> const getChallenges = require('./getChallenges'); <ide> const app = require('../server/server'); <ide> const createDebugger = require('debug'); <add>const { validateChallenge } = require('./schema/challengeSchema'); <ide> <ide> const log = creat...
2
Ruby
Ruby
remove useless spec
365d2b214e681626b2f6203ff7fe4419ae3f76c8
<ide><path>Library/Homebrew/test/cask/cmd_spec.rb <ide> ]) <ide> end <ide> <del> it "ignores the `--language` option, which is handled in `OS::Mac`" do <del> cli = described_class.new("--language=en") <del> expect(cli).to receive(:detect_internal_command).with(no_args) <del> cli.r...
1
PHP
PHP
prepare query bindings for exception
ef8a2da67113ddea36f30b38646c1ad5cf52f159
<ide><path>src/Illuminate/Database/Connection.php <ide> protected function run($query, $bindings, Closure $callback) <ide> // lot more helpful to the developer instead of just the database's errors. <ide> catch (\Exception $e) <ide> { <del> throw new QueryException($query, $bindings, $e); <add> throw new Quer...
1
Go
Go
make testpsgroupportrange fast
cfa8aaf16f1f3b777851555afc83a1112c4f8879
<ide><path>integration-cli/docker_cli_ps_test.go <ide> func TestPsLinkedWithNoTrunc(t *testing.T) { <ide> func TestPsGroupPortRange(t *testing.T) { <ide> defer deleteAllContainers() <ide> <del> portRange := "3300-3900" <add> portRange := "3800-3900" <ide> out, _, err := runCommandWithOutput(exec.Command(dockerBinary...
1
Java
Java
add generics to abstractcachemanager#caches
42cbee883fb07fdb05da80e5dc9119b8cef8cb8f
<ide><path>org.springframework.context/src/main/java/org/springframework/cache/support/AbstractCacheManager.java <ide> public abstract class AbstractCacheManager implements CacheManager, Initializing <ide> <ide> <ide> public void afterPropertiesSet() { <del> Collection<Cache> caches = loadCaches(); <add> Collectio...
2
Go
Go
remove not necessary -d
faf4604dac41b4fdb88b3e6552d24d5ea5e3f16c
<ide><path>integration-cli/docker_api_volumes_test.go <ide> func (s *DockerSuite) TestVolumesApiCreate(c *check.C) { <ide> <ide> func (s *DockerSuite) TestVolumesApiRemove(c *check.C) { <ide> prefix, _ := getPrefixAndSlashFromDaemonPlatform() <del> dockerCmd(c, "run", "-d", "-v", prefix+"/foo", "--name=test", "busybo...
3
Text
Text
add pr template
3caf6420d03b65d11c786a58de9d30f0b6a754d0
<ide><path>.github/pull_request_template.md <add><!-- <add>Thanks for opening a PR! Your contribution is much appreciated. <add>In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. <add>Choose the right checklist for the change that you're making: <ad...
1
Go
Go
fix reference counting in graphdriver
7fab9b8a6054270763508ce88cb06c584cfeb153
<ide><path>daemon/graphdriver/windows/windows.go <ide> func (d *Driver) Get(id, mountLabel string) (string, error) { <ide> mountPath, err := hcsshim.GetLayerMountPath(d.info, rID) <ide> if err != nil { <ide> d.ctr.Decrement(rID) <add> if err := hcsshim.UnprepareLayer(d.info, rID); err != nil { <add> logrus.Warnf...
1
Ruby
Ruby
set a name for bottles
5d11b5e7a5b05728f05b143c6b07ab8b9bca8989
<ide><path>Library/Homebrew/software_spec.rb <ide> class Bottle <ide> <ide> attr_reader :resource, :prefix, :cellar, :revision <ide> <del> def_delegators :resource, :url, :fetch, :verify_download_integrity <add> def_delegators :resource, :name, :url, :fetch, :verify_download_integrity <ide> def_delegators :reso...
1
Python
Python
add optional session argument to xcom_push.
22f6db7969b4c7dac45651f8b4a0fd6cf378af94
<ide><path>airflow/models/taskinstance.py <ide> def set_duration(self) -> None: <ide> self.duration = None <ide> self.log.debug("Task Duration set to %s", self.duration) <ide> <add> @provide_session <ide> def xcom_push( <del> self, <del> key: str, <del> value...
1
Python
Python
add examples for np.arg[min|max|sort]
a94c15fcd6456c6df3a060a5fdae797649eb787e
<ide><path>numpy/core/fromnumeric.py <ide> def argsort(a, axis=-1, kind='quicksort', order=None): <ide> array([[0, 1], <ide> [0, 1]]) <ide> <add> Indices of the sorted elements of a N-dimensional array: <add> >>> np.unravel_index(np.argsort(x, axis=None), x.shape) <add> (array([0, 1, 1, 0]), ar...
1
Ruby
Ruby
use arel for building the sti type condition
d200d080041bc4cefba8a8d39943b233ee2630a0
<ide><path>activerecord/lib/active_record/base.rb <ide> def array_of_strings?(o) <ide> o.is_a?(Array) && o.all?{|obj| obj.is_a?(String)} <ide> end <ide> <del> def type_condition(table_alias=nil) <del> quoted_table_alias = self.connection.quote_table_name(table_alias || table_name) <de...
1
Ruby
Ruby
fix syntax error
8116411abcb7dd887f06a1fe63885e105ea862e8
<ide><path>activerecord/test/cases/associations/has_many_through_associations_test.rb <ide> def test_has_many_through_obeys_order_on_through_association <ide> <ide> club.reload <ide> assert_equal [member], club.favourites <add> end <ide> <ide> def test_has_many_through_unscope_default_scope <ide> post ...
1
Java
Java
add missing variants of getbeannamesfortype
2ee1ce61c038c27fb163316961d3180de42f8297
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/BeanFactoryUtils.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 "License"); <ide> * you ma...
7
Javascript
Javascript
catch error in runaschild callback
449d1786c2e253f7f725bd85dc4f4246f81f397d
<ide><path>lib/Compiler.js <ide> class Compiler { <ide> */ <ide> runAsChild(callback) { <ide> const startTime = Date.now(); <add> <add> const finalCallback = (err, entries, compilation) => { <add> try { <add> if (err) return callback(err); <add> callback(null, entries, compilation); <add> } catch (e) { ...
1
Python
Python
fix logic for determining dagrun states
24a7072990fb232a6fe23c9eb3fdb72ba0695c96
<ide><path>airflow/models.py <ide> def subdags(self): <ide> <ide> def get_active_runs(self): <ide> """ <del> Maintains and returns the currently active runs as a list of dates <add> Maintains and returns the currently active runs as a list of dates. <add> <add> A run is considered a SU...
1
Text
Text
add note for using `getstaticprops` with `404.js`
006eba32256ef67b1fa9cb0b466effca249b1921
<ide><path>docs/advanced-features/custom-error-page.md <ide> export default function Custom404() { <ide> } <ide> ``` <ide> <add>> **Note**: You can use [`getStaticProps`](/docs/basic-features/data-fetching.md#getstaticprops-static-generation) inside this page if you need to fetch data at build time. <add> <ide> ## 500...
1
Go
Go
use prefix naming for rmi tests
2e2422b0eb163829127692250973472456d0ed77
<ide><path>integration-cli/docker_cli_rmi_test.go <ide> import ( <ide> "testing" <ide> ) <ide> <del>func TestImageRemoveWithContainerFails(t *testing.T) { <add>func TestRmiWithContainerFails(t *testing.T) { <ide> errSubstr := "is using it" <ide> <ide> // create a container <ide> func TestImageRemoveWithContainerFa...
1
Javascript
Javascript
remove undocumented .onclose property
6da82b1057afb4dbc94e3eada224dfdb97d6a533
<ide><path>lib/internal/worker/io.js <ide> Object.defineProperty(MessagePort.prototype, onInitSymbol, { <ide> <ide> // This is called after the underlying `uv_async_t` has been closed. <ide> function onclose() { <del> if (typeof this.onclose === 'function') { <del> // Not part of the Web standard yet, but there ar...
1
PHP
PHP
support empty strings
871fca6144fabc08c6ebf892098c1d8c8ea8140a
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function compileExtensions($value) <ide> protected function compileStatements($value) <ide> { <ide> return preg_replace_callback( <del> '/\B@(@?\w+(?:::\w+)?)([ \t]*)(\( ( (?>\'[^\']+\') | (?>"[^"]+") | (?>[^()\'"]+) |...
2
PHP
PHP
use less strictness where necessary
177136c6bc288e6c0f9d9e790273f27b455fea10
<ide><path>src/Database/Query.php <ide> class Query implements ExpressionInterface, IteratorAggregate <ide> /** <ide> * Statement object resulting from executing this query. <ide> * <del> * @var \Cake\Database\StatementInterface <add> * @var \Cake\Database\StatementInterface|null <ide> */ <de...
2
Javascript
Javascript
add tests for push stream error handling
1aca135cb9a8cacda5d01206d7a8e4a31c521d44
<ide><path>lib/internal/http2/core.js <ide> class ServerHttp2Stream extends Http2Stream { <ide> break; <ide> case NGHTTP2_ERR_STREAM_ID_NOT_AVAILABLE: <ide> err = new errors.Error('ERR_HTTP2_OUT_OF_STREAMS'); <del> process.nextTick(() => this.emit('error', err)); <add> process.nextTi...
5
Ruby
Ruby
enable query cache on all connection pools
11e32c1d841c08bd85842eb059fbf30536e804dc
<ide><path>activerecord/lib/active_record/query_cache.rb <ide> def uncached(&block) <ide> end <ide> <ide> def self.run <del> caching_pool = ActiveRecord::Base.connection_pool <del> caching_was_enabled = caching_pool.query_cache_enabled <add> ActiveRecord::Base.connection_handler.connection_pool_...
2
Ruby
Ruby
update string references to mxcl/homebrew
d7c13f84b62d730389e72cf4283da1863993be5f
<ide><path>Library/Contributions/cmd/brew-pull.rb <ide> def tap arg <ide> <ide> ARGV.named.each do|arg| <ide> if arg.to_i > 0 <del> url = 'https://github.com/mxcl/homebrew/pull/' + arg <add> url = 'https://github.com/Homebrew/homebrew/pull/' + arg <ide> else <ide> url_match = arg.match HOMEBREW_PULL_OR_C...
7
PHP
PHP
support old namespace for now
b800fa6c7c0c295ec266db0df9bfafb6fad2880e
<ide><path>src/Mailer/Email.php <ide> protected function _constructTransport($name) <ide> } <ide> <ide> $className = App::className($config['className'], 'Mailer/Transport', 'Transport'); <add> if (!$className) { <add> $className = App::className($config['className'], 'Network/Email',...
1
Python
Python
raise memory limit for test
518edc70744faa0bd1443c9f9ce76a1c01d7749e
<ide><path>numpy/lib/tests/test_io.py <ide> def test_unicode_and_bytes_fmt(self, fmt, iotype): <ide> <ide> @pytest.mark.skipif(sys.platform=='win32', reason="files>4GB may not work") <ide> @pytest.mark.slow <del> @requires_memory(free_bytes=7e9) <add> @requires_memory(free_bytes=8e9) <ide> def test_l...
1
PHP
PHP
add some filesystem tests
c3eb81c341d5be7df1df22acd03e5ba748c07044
<ide><path>tests/Filesystem/FilesystemTest.php <ide> <ide> namespace Illuminate\Tests\Filesystem; <ide> <add>use Mockery as m; <ide> use PHPUnit\Framework\TestCase; <ide> use League\Flysystem\Adapter\Ftp; <ide> use Illuminate\Filesystem\Filesystem; <ide> public function setUp() <ide> <ide> public function tearDo...
1
Java
Java
extend annotationmetadata and methodmetadata
8e445f3a211395d43895f747d04158ff7f9c0913
<ide><path>spring-core/src/main/java/org/springframework/core/type/AnnotatedElementUtils.java <add>/* <add> * Copyright 2002-2013 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>...
11
Text
Text
add deeper instructions on project tags
a8cc73c5e674e5b3e6a6a91b99da27812a7a7843
<ide><path>docs/getting-started.md <ide> list of all symbols in the current file, which you can fuzzy filter similarly to <ide> `cmd-t`. <ide> <ide> To search for symbols across your project, use `cmd-shift-r`. First you'll need <del>to make sure you have ctags installed and a tags file generated for your <del>project...
1
Javascript
Javascript
add missing assertion
c5e3353953bb5a332cb5125616f9115fda71b944
<ide><path>test/parallel/test-dgram-multicast-set-interface.js <ide> const dgram = require('dgram'); <ide> socket.bind(0); <ide> socket.on('listening', common.mustCall(() => { <ide> // Try to set with an invalid interfaceAddress (wrong address class) <add> // <add> // This operation succeeds on some platf...
1
Text
Text
remove the paypal badge
4e4fe95369c15e62364f7d6a6bfc9464c1143dc6
<ide><path>README.md <ide> <a href="https://github.com/TheAlgorithms/Python/blob/master/CONTRIBUTING.md"> <ide> <img src="https://img.shields.io/static/v1.svg?label=Contributions&message=Welcome&color=0059b3&style=flat-square" height="20" alt="Contributions Welcome"> <ide> </a> <del> <a href="https://www.paypa...
1
Ruby
Ruby
add transfer_encoding= setter deprecation
2d567e470adb9241b400e02ccb0501efb7d09b14
<ide><path>actionmailer/lib/action_mailer/tmail_compat.rb <ide> def transfer_encoding(value = nil) <ide> old_transfer_encoding <ide> end <ide> end <del> <add> <add> def transfer_encoding=(value) <add> ActiveSupport::Deprecation.warn('Message#transfer_encoding= is deprecated, please call ' ...
2
Ruby
Ruby
set a name for bottles."
35093b7a372e492fa28f0f23dff159c018b26a6f
<ide><path>Library/Homebrew/software_spec.rb <ide> class Bottle <ide> <ide> attr_reader :resource, :prefix, :cellar, :revision <ide> <del> def_delegators :resource, :name, :url, :fetch, :verify_download_integrity <add> def_delegators :resource, :url, :fetch, :verify_download_integrity <ide> def_delegators :reso...
1
Javascript
Javascript
add node.fs prefix to some constants. oops
2fe090b7f6026d6b2a05f484f7e3c994d1892842
<ide><path>src/file.js <ide> node.fs.File = function (options) { <ide> <ide> var internal_methods = { <ide> open: function (path, mode) { <del> var m = node.fs.O_RDONLY; <add> var flags; <ide> switch (mode) { <ide> case "r": <del> m = node.fs.O_RDONLY; <add> flags = node...
1
Ruby
Ruby
reduce calls to get path info when finding routes
9ec803bb0700a747a32157c78b748349e5763278
<ide><path>actionpack/lib/action_dispatch/journey/router.rb <ide> def filter_routes(path) <ide> end <ide> <ide> def find_routes(req) <del> routes = filter_routes(req.path_info).concat custom_routes.find_all { |r| <del> r.path.match?(req.path_info) <add> path_info = req.path...
1
PHP
PHP
add test
fab61079afd17483ec91e6a897a912fd3990d97e
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testWithCountAndSelect() <ide> $this->assertSame('select "id", (select count(*) from "eloquent_builder_test_model_close_related_stubs" where "eloquent_builder_test_model_parent_stubs"."foo_id" = "eloquent_builder_test_model_close_re...
1
Javascript
Javascript
avoid inline assignments
b2571e8976b084e466f336c192fd0a2e4b5491e3
<ide><path>src/project.js <ide> class Project extends Model { <ide> // * `projectPath` {String} The path to remove. <ide> removePath (projectPath) { <ide> // The projectPath may be a URI, in which case it should not be normalized. <del> let needle <del> if ((needle = projectPath, !this.getPaths().includes...
1
Javascript
Javascript
update devtools injection
5470972f6a61111da661b0092d71645751bf1259
<ide><path>src/renderers/native/ReactNative/ReactNative.js <ide> <ide> // Require ReactNativeDefaultInjection first for its side effects of setting up <ide> // the JS environment <add>var ReactNativeComponentTree = require('ReactNativeComponentTree'); <ide> var ReactNativeDefaultInjection = require('ReactNativeDefault...
1
Text
Text
add info about building n-api addons
cb36fa67d77ff6891a48db0b473d1c51888e23ed
<ide><path>doc/api/n-api.md <ide> changes in the underlying JavaScript engine and allow modules <ide> compiled for one major version to run on later major versions of Node.js without <ide> recompilation. The [ABI Stability][] guide provides a more in-depth explanation. <ide> <del>Addons are built/packaged with the sam...
1
Go
Go
return bufio error if set in parseenvfile
e8484940170e81eef1866f55f79030731e3d3d69
<ide><path>opts/envfile.go <ide> func ParseEnvFile(filename string) ([]string, error) { <ide> } <ide> } <ide> } <del> return lines, nil <add> return lines, scanner.Err() <ide> } <ide> <ide> var whiteSpaces = " \t"
1
PHP
PHP
improve foreignkeydefinition meta class
eb73a500f8bf3a42c3ca80845484589796ae5a55
<ide><path>src/Illuminate/Database/Schema/ForeignKeyDefinition.php <ide> use Illuminate\Support\Fluent; <ide> <ide> /** <del> * @method ForeignKeyDefinition references(string $table) Specify the referenced table <del> * @method ForeignKeyDefinition on(string $column) Specify the referenced column <add> * @method Forei...
1
Python
Python
add hf hub to env version command
ab2f8d12a7c04e351cc397942db6736a74d6a00c
<ide><path>src/transformers/commands/env.py <ide> import platform <ide> from argparse import ArgumentParser <ide> <add>import huggingface_hub <add> <ide> from .. import __version__ as version <ide> from ..file_utils import is_flax_available, is_tf_available, is_torch_available <ide> from . import BaseTransformersCLICo...
1
Ruby
Ruby
remove extra flat_map array
242d70278689a0f7e6c6f415992c8de0aa5caee0
<ide><path>activerecord/lib/active_record/associations/preloader/association.rb <ide> def associated_records_by_owner <ide> # Some databases impose a limit on the number of ids in a list (in Oracle it's 1000) <ide> # Make several smaller queries if necessary or make one query if the adapter supp...
1
Text
Text
update core ideas.md
a8048875ce8b9b3ded1e89e05d31d7622afbbfa1
<ide><path>docs/Basics/Core Ideas.md <ide> Redux can be described in three fundamental principles: <ide> * **The only way to mutate the state is to emit an *action*, an object describing what happened.** This ensures that the views or the network callbacks never write directly to the state, and instead express the inte...
1
Javascript
Javascript
throw a decent error on missing font
40102adda0cccdaf17a5e794e6e6fad0c254d920
<ide><path>src/extras/FontUtils.js <ide> THREE.FontUtils = { <ide> <ide> getFace: function () { <ide> <del> return this.faces[ this.face ][ this.weight ][ this.style ]; <add> try { <add> <add> return this.faces[ this.face ][ this.weight ][ this.style ]; <add> <add> } catch (e) { <add> <add> throw "The font " ...
1
PHP
PHP
fix failing test
ad7db4cc541e2258178d4d76d145d81388eae544
<ide><path>cake/tests/cases/libs/view/view.test.php <ide> function testRenderLayoutWithMockCacheHelper() { <ide> Configure::write('Cache.check', true); <ide> <ide> $Controller =& new ViewPostsController(); <del> $Controller->cacheAction = '1 day'; <add> $Controller->cacheAction = '+1 day'; <ide> $View =& new V...
1
Javascript
Javascript
use a getter for stream options
81c01bbdbaa414c0bbceec6deaf0046cdcaaa95d
<ide><path>lib/internal/quic/core.js <ide> const kContinueBind = Symbol('kContinueBind'); <ide> const kDestroy = Symbol('kDestroy'); <ide> const kEndpointBound = Symbol('kEndpointBound'); <ide> const kEndpointClose = Symbol('kEndpointClose'); <del>const kGetStreamOptions = Symbol('kGetStreamOptions'); <ide> const kHand...
1
Text
Text
update faq about hls and dash with vhs
808d818c7d8ee8467003e6958172840736b6389c
<ide><path>docs/guides/faq.md <ide> Video.js is an extendable framework/library around the native video element. It <ide> * Offers an extendable and themable UI <ide> * Ensures accessibility for keyboard and screen reader users <ide> * Has a set of core plugins that offer support for additional video formats: <del> * ...
1
Javascript
Javascript
strengthen flowtype of measurelayout
bcc58bce02acf51f6d5cff6e5457f447f12b1e30
<ide><path>Libraries/Renderer/shims/ReactNativeTypes.js <ide> class ReactNativeComponent<Props> extends React.Component<Props> { <ide> measure(callback: MeasureOnSuccessCallback): void {} <ide> measureInWindow(callback: MeasureInWindowOnSuccessCallback): void {} <ide> measureLayout( <del> relativeToNativeNode:...
1
Javascript
Javascript
remove dump from test
b641181b938270af4a468e0718fe8a250538402f
<ide><path>test/ngAnimate/animateCssSpec.js <ide> describe("ngAnimate $animateCss", function() { <ide> // Let's flush the remaining amout of time for the timeout timer to kick in <ide> $timeout.flush(500); <ide> <del> dump(element.attr('style')); <ide> expect(element.css(prefix +...
1
Javascript
Javascript
use object static properties from primordials
a8806535d9e7db7bf20b3b3ef8f911320baf7511
<ide><path>lib/internal/abort_controller.js <ide> // in https://github.com/mysticatea/abort-controller (MIT license) <ide> <ide> const { <del> Object, <add> ObjectAssign, <add> ObjectDefineProperties, <ide> Symbol, <ide> } = primordials; <ide> <ide> function customInspect(self, obj, depth, options) { <ide> if ...
4
Go
Go
add flag to set default graph driver
6dbeed89c061b85551ab638f93282d87de8ab929
<ide><path>config.go <ide> type DaemonConfig struct { <ide> BridgeIface string <ide> DefaultIp net.IP <ide> InterContainerCommunication bool <add> GraphDriver string <ide> } <ide> <ide> // ConfigFromJob creates and returns a new DaemonConfig object <ide> func Config...
4
Text
Text
update image preprocessing docs
34b8b57c2fdf10e3490753bae1f358f81dba966f
<ide><path>docs/templates/preprocessing/image.md <ide> keras.preprocessing.image.ImageDataGenerator(featurewise_center=False, <ide> cval=0., <ide> horizontal_flip=False, <ide> vertical_flip=False, <del> dim_ordering='th') <add> rescale=None, <add> dim_ordering=K.image_dim_ordering()) <ide> ``` <ide...
1
Mixed
Ruby
add bigint primary key support for mysql
a327a9dc583e8b7fea030cfe9cda74af632ef210
<ide><path>activerecord/CHANGELOG.md <add>* Add bigint primary key support for MySQL. <add> <add> Example: <add> <add> create_table :foos, id: :bigint do |t| <add> end <add> <add> *Ryuta Kamizono* <add> <ide> * Support for any type primary key. <ide> <ide> Fixes #14194. <ide><path>activerec...
5
PHP
PHP
add documentation for form
db1681f7298305dc420c90880b123f8f8a8c4555
<ide><path>src/Form/Form.php <ide> * or to other permanent datastores. Ideal for implement forms on top of <ide> * API services, or contact forms. <ide> * <add> * ### Building a form <add> * <add> * This class is most useful when subclassed. In a subclass you <add> * should define the `_buildSchema`, `_buildValidato...
2
Ruby
Ruby
reduce calls to scope_level
374d66be3e9e994bbe8ad2702ee2209c24b581b0
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def root(path, options={}) <ide> raise ArgumentError, "must be called with a path and/or options" <ide> end <ide> <del> if @scope.scope_level == :resources <add> if @scope.resources? <ide> with_scope_l...
1
Java
Java
fix incomplete log message
d554229981381979d63c3228ae0195a376fa3b18
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java <ide> private void scheduleSessionTask() { <ide> if (this.sessionCleanupTask != null) { <ide> return; <ide> } <del> final List<String> removedSessionIds = new ArrayList<String>(); <i...
1
Python
Python
replace pipe type with callable in language
6f9d630f7e9c11d8d5f7ba37e3764ef3630c172d
<ide><path>spacy/cli/debug_data.py <ide> from ..training import Example, remove_bilu_prefix <ide> from ..training.initialize import get_sourced_components <ide> from ..schemas import ConfigSchemaTraining <add>from ..pipeline import TrainablePipe <ide> from ..pipeline._parser_internals import nonproj <ide> from ..pipeli...
4
Go
Go
restrict domain name to 255 characters
b2f05c220721d5ef9a31fc259e3f6c2c057ab4ab
<ide><path>opts/opts.go <ide> func validateDomain(val string) (string, error) { <ide> return "", fmt.Errorf("%s is not a valid domain", val) <ide> } <ide> ns := domainRegexp.FindSubmatch([]byte(val)) <del> if len(ns) > 0 { <add> if len(ns) > 0 && len(ns[1]) < 255 { <ide> return string(ns[1]), nil <ide> } <ide> ...
2
Python
Python
make sqlmigrate ignore the runpython operation
8a3e543f268ba027a631274d1cfe44db64ad9025
<ide><path>django/db/migrations/executor.py <ide> def collect_sql(self, plan): <ide> with self.connection.schema_editor(collect_sql=True) as schema_editor: <ide> project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False) <ide> if not ...
3
PHP
PHP
handle command
5b65863336fe08e3bbdf5a00336530d9d6304094
<ide><path>src/Illuminate/Database/Console/Seeds/SeederMakeCommand.php <ide> public function __construct(Filesystem $files, Composer $composer) <ide> */ <ide> public function handle() <ide> { <del> parent::fire(); <add> parent::handle(); <ide> <ide> $this->composer->dumpAutoloads(); ...
5
PHP
PHP
apply fixes from styleci
4288dbb7df86f95687d514a4d7b33b93c8200fc8
<ide><path>src/Illuminate/Console/Concerns/InteractsWithIO.php <ide> use Symfony\Component\Console\Formatter\OutputFormatterStyle; <ide> use Symfony\Component\Console\Helper\Table; <ide> use Symfony\Component\Console\Input\InputInterface; <del>use Symfony\Component\Console\Output\ConsoleOutput; <ide> use Symfony\Compon...
1
Javascript
Javascript
compile all next module files
59280f7747b807fa9d1f5810e1d762d4f147124c
<ide><path>packages/next/build/webpack-config.js <ide> function externalsConfig (isServer, target) { <ide> } <ide> <ide> // Default pages have to be transpiled <del> if (res.match(/next[/\\]dist[/\\]pages/) || res.match(/next[/\\]dist[/\\]client/) || res.match(/node_modules[/\\]@babel[/\\]runtime[/\\]...
1
Text
Text
add version info for types
dd6481a183d38c7b48864c558ca5383164825b01
<ide><path>doc/api/n-api.md <ide> consumed by the various APIs. These APIs should be treated as opaque, <ide> introspectable only with other N-API calls. <ide> <ide> ### napi_status <add><!-- YAML <add>added: v8.0.0 <add>napiVersion: 1 <add>--> <ide> Integral status code indicating the success or failure of a N-API ca...
1
PHP
PHP
remove runtime errors for router deprecations
62683ba557918c86fc2b69197661adb66f89170c
<ide><path>src/Routing/Router.php <ide> public static function connect($route, $defaults = [], $options = []) <ide> */ <ide> public static function redirect($route, $url, $options = []) <ide> { <del> trigger_error( <del> 'Router::redirect() is deprecated. Use Router::scope() and $routes->...
2
Python
Python
fix assertion error
ee69348e566e20c6ff2931059ddaa8b9e57a2b9f
<ide><path>celery/tests/worker/test_autoscale.py <ide> def test_no_negative_scale(self): <ide> x.body() <ide> total_num_processes.append(self.pool.num_processes) <ide> <del> self. assertTrue(all(i <= x.min_concurrency for i in total_num_processes) <del> ) <del> ...
1
Go
Go
fix hack in old integration test for new init
9694209241074c10d4cc625b24dfedcb2387de93
<ide><path>integration/runtime_test.go <ide> import ( <ide> "github.com/docker/docker/engine" <ide> "github.com/docker/docker/image" <ide> "github.com/docker/docker/nat" <add> "github.com/docker/docker/reexec" <ide> "github.com/docker/docker/runconfig" <del> "github.com/docker/docker/sysinit" <ide> "github.com/doc...
1
Python
Python
simplify test for string-likes
0ab1a2b12baabe3bd7063e2963c83482a4f57016
<ide><path>numpy/core/numeric.py <ide> def count_nonzero(a, axis=None): <ide> if issubdtype(a.dtype, np.number): <ide> return (a != 0).sum(axis=axis, dtype=np.intp) <ide> <del> if (issubdtype(a.dtype, np.string_) or <del> issubdtype(a.dtype, np.unicode_)): <add> if issubdtype(a.dtype, np.c...
1
Ruby
Ruby
cask dsl caveats
7603d05d053db11c7a7606d5fc414cee3b23df13
<ide><path>Library/Homebrew/cask/lib/hbc/dsl/caveats.rb <ide> def eval_caveats(&block) <ide> <ide> brew cask install java <ide> EOS <del> elsif java_version.include?("9") || java_version.include?("+") <add> elsif java_version.include?("10") || java_version.include?("+") <ide> ...
1
Python
Python
allow relative imports in dynamic code
0b072304099e14f86dc62b59ca84f7eb5676af4e
<ide><path>src/transformers/models/auto/dynamic.py <ide> from pathlib import Path <ide> from typing import Dict, Optional, Union <ide> <add>from huggingface_hub import HfFolder, model_info <add> <ide> from ...file_utils import ( <ide> HF_MODULES_CACHE, <ide> TRANSFORMERS_DYNAMIC_MODULE_NAME, <ide> def check_im...
3
Javascript
Javascript
fix error routes (#595)
897c60b4fd7e7f2204a8ba176754a868ea58d064
<ide><path>lib/router/router.js <ide> export default class Router extends EventEmitter { <ide> error <ide> } = await this.getRouteInfo(route, pathname, query) <ide> <del> if (error) { <add> if (error && error.cancelled) { <ide> this.emit('routeChangeError', error, as) <del> // We don't need ...
3
Python
Python
add support for partial serializer updates
c3644234cda5c457d72baf1fbf145f12f49a1fa4
<ide><path>rest_framework/fields.py <ide> def __init__(self, source=None, read_only=False, required=None, <ide> self.widget = widget <ide> <ide> def validate(self, value): <del> if value in validators.EMPTY_VALUES and self.required: <add> if value in validators.EMPTY_VALUES and self.required ...
3
PHP
PHP
fix cs errors
9b181ecd72bcabc97980f5f45a6e08c54af769f3
<ide><path>src/View/Form/ArrayContext.php <ide> public function isCreate(): bool <ide> * context record. <ide> * - `schemaDefault`: Boolean indicating whether default value from <ide> * context's schema should be used if it's not explicitly provided. <del> * <ide> * @return mixed <ide>...
1
Go
Go
remove unused variable
12117f349dbf544c4fa3422e389919ea291d1c53
<ide><path>libnetwork/endpoint.go <ide> func (ep *endpoint) buildHostsFiles() error { <ide> } <ide> } <ide> <del> name := container.config.hostName <del> if container.config.domainName != "" { <del> name = name + "." + container.config.domainName <del> } <del> <ide> for _, extraHost := range container.config.extr...
1
PHP
PHP
fix incorrect fixture
70bd04385cb72ab2fec79255eab52a88d4b1b9fa
<ide><path>lib/Cake/Test/Fixture/PersonFixture.php <ide> class PersonFixture extends TestFixture { <ide> 'name' => ['type' => 'string', 'null' => false, 'length' => 32], <ide> 'mother_id' => ['type' => 'integer', 'null' => false], <ide> 'father_id' => ['type' => 'integer', 'null' => false], <del> '_indexes' => [...
1
Text
Text
add missing verb
877d00d9ba581b310dace838e985e4e3e150d439
<ide><path>docs/docs/02.1-jsx-in-depth.md <ide> var myDivElement = <div className="foo" />; <ide> React.render(myDivElement, document.body); <ide> ``` <ide> <del>To render a React Component, just a local variable that starts with an upper-case letter: <add>To render a React Component, just create a local variable that...
1