content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
reduce memory allocations
4ea64630aa3f0699f1fa6872b10faf1d0e1a9cd8
<ide><path>actionpack/lib/action_dispatch/journey/router/utils.rb <ide> class UriEncoder # :nodoc: <ide> US_ASCII = Encoding::US_ASCII <ide> UTF_8 = Encoding::UTF_8 <ide> EMPTY = (+"").force_encoding(US_ASCII).freeze <del> DEC2HEX = (0..255).to_a.map { |i| ENCODE % i }.map ...
1
Javascript
Javascript
add nested flatlist rntester example
be620298cd99b0fa995b2a64f08a67e4ea621541
<ide><path>packages/rn-tester/js/examples/FlatList/FlatList-nested.js <add>/** <add> * Copyright (c) Meta Platforms, Inc. and affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <add> * @flow ...
2
PHP
PHP
remove useless braces in constructors.
cfc5264204b83309226412e6104313ad6e6f1023
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function detectEnvironment(Closure $callback) <ide> { <ide> $args = isset($_SERVER['argv']) ? $_SERVER['argv'] : null; <ide> <del> return $this['env'] = (new EnvironmentDetector())->detect($callback, $args); <add> return $this[...
35
PHP
PHP
add unicode to message
30016408a6911afba4aa7739d69948d13612ea06
<ide><path>src/Illuminate/Notifications/Channels/NexmoSmsChannel.php <ide> public function send($notifiable, Notification $notification) <ide> } <ide> <ide> return $this->nexmo->message()->send([ <del> 'type' => 'unicode', <add> 'type' => $message->type, <ide> 'from' =...
3
Javascript
Javascript
avoid race in file write stream handle tests
4e6fdb3e12b3a19cf7bcabc18a2aaa1d03181a07
<ide><path>test/parallel/test-fs-write-stream-file-handle-2.js <add>'use strict'; <add>const common = require('../common'); <add>const fs = require('fs'); <add>const path = require('path'); <add>const assert = require('assert'); <add>const tmpdir = require('../common/tmpdir'); <add>const file = path.join(tmpdir.path, '...
2
Javascript
Javascript
fix the tests to not use global msie
affcbad501ad5e17b8cb30ad8a2c0d1de6686722
<ide><path>test/ngMock/angular-mocksSpec.js <ide> describe('ngMock', function() { <ide> }); <ide> }); <ide> <add> <ide> // We don't run the following tests on IE8. <ide> // IE8 throws "Object does not support this property or method." error, <ide> // when thrown from a function defined ...
1
Javascript
Javascript
remove temporary files
f2064b87e62c8aa4cd7ca908ac5394ea7464f1e2
<ide><path>test/ChangesAndRemovalsTemp/temp-file.js <del>module.exports = function temp() {return 'temp file';}; <del> require('./temp-file2') <ide>\ No newline at end of file <ide><path>test/ChangesAndRemovalsTemp/temp-file2.js <del>module.exports = function temp2() {return 'temp file 2';}; <ide>\ No newline at end of...
2
Ruby
Ruby
make most parameters to the aliastracker required
c24ea241e224b2d58e3184fa119beddac096b1f2
<ide><path>activerecord/lib/active_record/associations/alias_tracker.rb <ide> class AliasTracker # :nodoc: <ide> attr_reader :aliases, :table_joins, :connection <ide> <ide> # table_joins is an array of arel joins which might conflict with the aliases we assign here <del> def initialize(connection = Ba...
2
Text
Text
add author credit for [ci skip]
497353ebe9bc294ed1097ffbbc2596d5a360fc38
<ide><path>activerecord/CHANGELOG.md <ide> otherwise specified. This will reduce memory pressure for applications which <ide> do not generally mutate string properties of Active Record objects. <ide> <del> *Sean Griffin* <add> *Sean Griffin*, *Ryuta Kamizono* <ide> <ide> * Deprecate `map!` and `collec...
1
PHP
PHP
add @link to set methods
708ae873a59b2ab3b23657bbdfb8adf9cdf5bffb
<ide><path>lib/Cake/Utility/Set.php <ide> class Set { <ide> * @param array $arr1 Array to be merged <ide> * @param array $arr2 Array to merge with <ide> * @return array Merged array <add> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/set.html#Set::merge <ide> */ <ide> public static function merge($...
1
Ruby
Ruby
remove env access from debug_exceptions
feb248ca76de7bd3c1cbb08914d0bba66c5b41be
<ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb <ide> def call(env) <ide> response <ide> rescue Exception => exception <ide> raise exception unless request.show_exceptions? <del> render_exception(env, exception) <add> render_exception(request, exception) <ide> end ...
1
Python
Python
add tasks to build arch specifics wininst
644588a77e2d320375ec96a3c8f426317dad7c06
<ide><path>pavement.py <ide> DMG_CONTENT = paver.path.path('numpy-macosx-installer') / 'content' <ide> <ide> options(sphinx=Bunch(builddir="build", sourcedir="source", docroot='doc'), <del> virtualenv=Bunch(script_name=BOOTSTRAP_SCRIPT)) <add> virtualenv=Bunch(script_name=BOOTSTRAP_SCRIPT), <add> ...
1
PHP
PHP
update copyright statements in docblocks
5ae1c29836e57550c06e49b197ee87c2d11ddc7c
<ide><path>src/Console/Error/ConsoleException.php <ide> <?php <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> ...
80
PHP
PHP
implement timestamp behavior
2e01e08da5818e130431ba4314456a5dcd7d9804
<ide><path>Cake/Model/Behavior/TimestampBehavior.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license informati...
2
Ruby
Ruby
fail parallel tests if workers exit early
9fd02d181a0706cd3a98e08b2caa7c9ed3c39b50
<ide><path>activesupport/lib/active_support/testing/parallelization.rb <ide> def <<(o) <ide> @queue << o <ide> end <ide> <add> def length <add> @queue.length <add> end <add> <ide> def pop; @queue.pop; end <ide> end <ide> <ide> def <<(work) <ide> def shutdow...
2
Python
Python
fix e731 flake8 warning (x3)
7dce8dc7ac061f81a0ba2062cf586db52cd1ffd8
<ide><path>examples/summarization/run_summarization.py <ide> def save_rouge_scores(str_scores): <ide> def build_data_iterator(args, tokenizer): <ide> dataset = load_and_cache_examples(args, tokenizer) <ide> sampler = SequentialSampler(dataset) <del> collate_fn = lambda data: collate(data, tokenizer, block_si...
3
PHP
PHP
unskip relevant select() tests
9d0ebce8c4ef47902ad23b9cd7938d7ec2b334f8
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testDomIdSuffixCollisionResolvement() { <ide> * @return void <ide> */ <ide> public function testSelect() { <del> $this->markTestIncomplete('Need to revisit once models work again.'); <ide> $result = $this->Form->select('Model.field', a...
1
Python
Python
add gif as known mime type for `make server`
7a8a9b9d93ad0f4a273fea8653f96471a283c656
<ide><path>test/test.py <ide> def prompt(question): <ide> '.svg': 'image/svg+xml', <ide> '.pdf': 'application/pdf', <ide> '.xhtml': 'application/xhtml+xml', <add> '.gif': 'image/gif', <ide> '.ico': 'image/x-icon', <ide> '.log': 'text/plain' <ide> }
1
Python
Python
fix word embedding example
b7a5d4de702b863eaa86d609da5b2c77a8c96240
<ide><path>examples/skipgram_word_embeddings.py <ide> and compute a proximity score between the embeddings (= p(context|word)), <ide> trained with our positive and negative labels. <ide> <del> We then use the weights computed by WordContextProduct to instantiate <del> a simple Embedding, which we use to ...
1
Java
Java
restore sleep interval between recovery attempt
bb45fb4538d723ecdc136ceaaba032bcf8cdb42c
<ide><path>spring-jms/src/main/java/org/springframework/jms/listener/DefaultMessageListenerContainer.java <ide> public void run() { <ide> } <ide> catch (Throwable ex) { <ide> clearResources(); <add> if (!this.lastMessageSucceeded) { <add> // We failed more than once in a row or on startup - sleep befor...
1
Javascript
Javascript
remove redundant logic
a775a767a1d61ef07024cbe9adc9e8f4099d9546
<ide><path>packages/react-reconciler/src/ReactFiberScheduler.js <ide> function computeExpirationForFiber(currentTime: ExpirationTime, fiber: Fiber) { <ide> // This is an interactive update. Keep track of the lowest pending <ide> // interactive expiration time. This allows us to synchronously flush <ide> // ...
1
Ruby
Ruby
remove unused var
bc556a21e2d5722f42dfac810c04d453076e09fb
<ide><path>activerecord/lib/active_record/associations/has_many_through_association.rb <ide> def insert_record(record, force = true, validate = true) <ide> end <ide> <ide> through_association = @owner.send(@reflection.through_reflection.name) <del> through_record = through_association.crea...
1
Ruby
Ruby
prevent duplicate dependency display
e547438ff43426e31dac3ef070b2feecd8a4621b
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info_formula f <ide> unless f.deps.empty? <ide> ohai "Dependencies" <ide> %w{build required recommended optional}.map do |type| <del> deps = f.deps.send(type) <add> deps = f.deps.send(type).uniq <ide> puts "#{type.capitalize}: #{dec...
2
Javascript
Javascript
add test case for global in harmony modules
bd45bdc6fbb6ae3688a564f8d7c334765fd85442
<ide><path>test/configCases/parsing/harmony-global/index.js <add>require("should"); <add>it("should be able to use global in a harmony module", function() { <add> var x = require("./module1"); <add> (x.default === global).should.be.ok(); <add>}); <ide><path>test/configCases/parsing/harmony-global/module.js <add>export ...
4
PHP
PHP
improve _readerror to not use deprecated methods
7e2cb9b630f4fcd0912099f6547f695abbf2b2fd
<ide><path>src/Datasource/EntityTrait.php <ide> protected function _nestedErrors($field) <ide> */ <ide> protected function _readError($object, $path = null) <ide> { <add> if ($path !== null && $object instanceof EntityInterface) { <add> return $object->getError($path); <add> } <ide...
1
PHP
PHP
remove unnecessary else
6b7dbc7144b6a1e6d5ff5490e8769b071ea0fb23
<ide><path>src/Illuminate/Queue/Console/ListFailedCommand.php <ide> protected function matchJobName($payload) <ide> <ide> if (isset($matches[1])) { <ide> return $matches[1]; <del> } else { <del> return $payload['job'] ?? null; <ide> } <add> <add> return $payload['jo...
1
PHP
PHP
add a way to restore 3.x behavior for last=true
8dc0da258714d6b6c46ecaaf416896936a1dc78d
<ide><path>src/Validation/Validator.php <ide> class Validator implements ArrayAccess, IteratorAggregate, Countable <ide> */ <ide> protected $_allowEmptyFlags = []; <ide> <add> /** <add> * Whether to apply last flag to generated rule(s). <add> * <add> * @var bool <add> */ <add> protected ...
2
Javascript
Javascript
fix more headers tables
1c78d8fdb40216ab4cefe2a0b857f9b9363d35ba
<ide><path>fonts.js <ide> var Font = (function () { <ide> <ide> // Wrap the CFF data inside an OTF font file <ide> data = this.convert(name, cff, properties); <add> writeToFile(data, "/tmp/file." + fontName + "-" + fontCount + ".otf"); <ide> break; <ide> <ide> case "TrueType": <id...
1
Javascript
Javascript
fix path.relative unc path result
c1e47ed8c883afba3c240e89d763a28a57ec1373
<ide><path>lib/path.js <ide> const win32 = { <ide> <ide> // We found a mismatch before the first common path separator was seen, so <ide> // return the original `to`. <del> // TODO: do this just for device roots (and not UNC paths)? <ide> if (i !== length && lastCommonSep === -1) { <del> if (toStar...
2
Python
Python
improve unit test coverage
908d86655831e153bb11aa8ce2c9bdaf821b1154
<ide><path>keras/datasets/imdb.py <ide> def load_data(path="imdb.pkl", nb_words=None, skip_top=0, <ide> new_labels.append(y) <ide> X = new_X <ide> labels = new_labels <del> <add> if not X: <add> raise Exception('After filtering for sequences shorter than maxlen=' + <add> ...
4
Python
Python
fix bart tests
9a0399e18d094e17a21521407a781f2f55c394b0
<ide><path>tests/test_modeling_bart.py <ide> BartForSequenceClassification, <ide> BartModel, <ide> BartTokenizer, <del> BartTokenizerFast, <ide> pipeline, <ide> ) <ide> from transformers.models.bart.modeling_bart import BartDecoder, BartEncoder, shift_tokens_right <ide> cl...
1
Javascript
Javascript
remove trailing comma
c3309ee9b9f52aa9a4d9fdad67dda81fc9bfe0bd
<ide><path>src/main-process/atom-window.js <ide> class AtomWindow extends EventEmitter { <ide> <ide> Object.defineProperty(this.browserWindow, 'loadSettingsJSON', { <ide> get: () => JSON.stringify(Object.assign({ <del> userSettings: this.atomApplication.configFile.get(), <add> userSettings: thi...
1
Python
Python
add file mistakenly left out of r12986. refs
a288f97a2a99ee238e984cf155643d4afc25a46b
<ide><path>tests/regressiontests/templates/templatetags/broken_tag.py <add>from django import Xtemplate
1
PHP
PHP
apply fixes from styleci
f16eb62f70d25e1a8ed85e35d486615d8d245a19
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> public function getOriginal($key = null, $default = null) <ide> <ide> /** <ide> * Get a subset of the model's attributes. <del> * <add> * <ide> * @param array|mixed $attributes <ide> * @return array <ide> */
1
Python
Python
use importlib instead of __import__
66897eb475c60748bd93a5f673aa1508fecdc501
<ide><path>celery/backends/__init__.py <ide> import sys <add>import importlib <ide> <ide> from billiard.utils.functional import curry <ide> from carrot.utils import rpartition <ide> def resolve_backend(backend): <ide> <ide> def _get_backend_cls(backend): <ide> backend_module_name, backend_cls_name = resolve_backe...
1
Python
Python
improve printing of arrays with multi-line reprs
1511c1f267c35b8e619b3b1c913f336ae7505910
<ide><path>numpy/core/arrayprint.py <ide> def array2string(a, max_line_width=None, precision=None, <ide> def _extendLine(s, line, word, line_width, next_line_prefix, legacy): <ide> needs_wrap = len(line) + len(word) > line_width <ide> if legacy != '1.13': <del> s# don't wrap lines if it won't help <add> ...
2
Python
Python
fix mypy errors in google cloud provider
a22d5bd07696d9cafe10a3e246ea9f3a381585ee
<ide><path>airflow/providers/google/cloud/example_dags/example_cloud_build.py <ide> from pathlib import Path <ide> from typing import Any, Dict <ide> <add>import yaml <ide> from future.backports.urllib.parse import urlparse <ide> <ide> from airflow import models <ide> create_build_from_file = CloudBuildCreateBuil...
28
Python
Python
add failing test for `listfield` schema generation
b1048984a7a839234ca604d199edbc9985c8a059
<ide><path>tests/schemas/test_openapi.py <ide> def test_list_field_mapping(self): <ide> (serializers.ListField(child=serializers.CharField()), {'items': {'type': 'string'}, 'type': 'array'}), <ide> (serializers.ListField(child=serializers.IntegerField(max_value=4294967295)), <ide> {...
1
Python
Python
handle relative import in ccompiler
f7dd25718e2e8135be2287bfa22967c1c7981448
<ide><path>numpy/distutils/ccompiler.py <ide> def CCompiler_compile(self, sources, output_dir=None, macros=None, <ide> # method to support pre Python 2.3 distutils. <ide> if not sources: <ide> return [] <del> from fcompiler import FCompiler <add> # FIXME:RELATIVE_IMPORT <add> if sys.version_inf...
1
Ruby
Ruby
remove multibyte utils
51648a6fee31c9642d3ce8899a1c718e1604f4bc
<ide><path>activesupport/lib/active_support/multibyte.rb <ide> def self.proxy_class=(klass) <ide> def self.proxy_class <ide> @proxy_class ||= ActiveSupport::Multibyte::Chars <ide> end <del> <del> # Regular expressions that describe valid byte sequences for a character <del> VALID_CHARACTER = { <del>...
3
Python
Python
return boolean value according to the doc
4f6c3b5d184455b0fdacd7968bbba53583dddb03
<ide><path>celery/platforms.py <ide> def reset_alarm(self): <ide> def supported(self, name): <ide> """Return true value if signal by ``name`` exists on this platform.""" <ide> try: <del> return self.signum(name) <add> self.signum(name) <ide> except AttributeError: <del>...
1
Javascript
Javascript
fix events to go through the navigation bar layers
db69004300faf1d850f8127a57859d88205450a7
<ide><path>Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js <ide> var NavigatorNavigationBar = React.createClass({ <ide> ref={(ref) => { <ide> this._components[componentName] = this._components[componentName].set(route, ref); <ide> }} <add> pointerEvents="box-none" <ide> ...
1
Ruby
Ruby
remove outdated comment [ci skip]
8b18feb077410219be27c4dea90b95516339e420
<ide><path>activerecord/test/cases/validations/i18n_validation_test.rb <ide> def replied_topic <ide> # [ "given on condition", {on: :save}, {}] <ide> ] <ide> <del> # validates_uniqueness_of w/ mocha <del> <ide> COMMON_CASES.each do |name, validation_options, generate_message_options| <ide> ...
1
Javascript
Javascript
use countdown in test file
0a28f94df6e23f7669fd0fa9e52f7174175f78c4
<ide><path>test/parallel/test-http-pipeline-regr-3332.js <ide> 'use strict'; <ide> require('../common'); <del>const assert = require('assert'); <ide> const http = require('http'); <ide> const net = require('net'); <add>const Countdown = require('../common/countdown'); <ide> <ide> const big = Buffer.alloc(16 * 1024, 'A...
1
Javascript
Javascript
remove unnecessary object check
35e233661d991cce084681f8ad72d3008b793529
<ide><path>Libraries/Image/Image.ios.js <ide> let Image = ( <ide> } <ide> } <ide> <del> const resizeMode = props.resizeMode || (style || {}).resizeMode || 'cover'; // Workaround for flow bug t7737108 <del> const tintColor = (style || {}).tintColor; // Workaround for flow bug t7737108 <add> const resizeMode = ...
1
Go
Go
lock os threads when exec'ing with pdeathsig
1f22b15030e6869fb38256fd73d3b94bc94e3c58
<ide><path>daemon/graphdriver/overlay2/mount.go <ide> func mountFrom(dir, device, target, mType string, flags uintptr, label string) e <ide> output := bytes.NewBuffer(nil) <ide> cmd.Stdout = output <ide> cmd.Stderr = output <add> <add> // reexec.Command() sets cmd.SysProcAttr.Pdeathsig on Linux, which <add> // cause...
6
Javascript
Javascript
remove usage of require('util')
01a129635cad8f645b7b2aa12526eeb2ba826527
<ide><path>lib/internal/worker/io.js <ide> const { <ide> <ide> const { Readable, Writable } = require('stream'); <ide> const EventEmitter = require('events'); <del>const util = require('util'); <add>const { inspect } = require('internal/util/inspect'); <ide> <ide> let debuglog; <ide> function debug(...args) { <ide> M...
1
Ruby
Ruby
fix missed reference to cookies.rb in cd1aeda0a9
c26b65382e94c4c9ad48c15ba839a2ae2ccb0775
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def config_when_updating <ide> end <ide> <ide> if options[:api] <del> unless cookies_config_exist <del> remove_file "config/initializers/cookies.rb" <add> unless cookie_serializer_config_exist <add> re...
1
Ruby
Ruby
add some note on adding index to habtm table
f0be2cb19274bb6029f84ca274a72c4d7fbee2d3
<ide><path>activerecord/lib/active_record/associations.rb <ide> def belongs_to(name, options = {}) <ide> # end <ide> # end <ide> # <add> # It's also a good idea to add indexes to each of those columns to speed up the joins process. <add> # However, in MySQL it is advised to add a compo...
1
Text
Text
translate tips 11 to korean
78f59da8dff0a35808ad5fcaadb63a2b82bebd4c
<ide><path>docs/docs/03-interactivity-and-dynamic-uis.ko-KR.md <ide> React에서의 이벤트 핸들러는 HTML에서 그러던 것처럼 간단히 <ide> <ide> <ide> ## 기본 구현: 오토바인딩과 이벤트 델리게이션 <add><a name="under-the-hood-autobinding-and-event-delegation"></a> <ide> <ide> 코드를 고성능으로 유지하고 이해하기 쉽게 하기 위해, React는 보이지 않는 곳에서 몇 가지 일을 수행합니다. <ide> <ide><path>docs...
2
PHP
PHP
add test for unmanaged fixtures
d04265aa1be32bbe6d570b3f574fc638ed862b86
<ide><path>tests/Fixture/UnmanagedFixture.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, p...
2
Text
Text
clarify that path on windows accepts / and \
86067f0129a7f0dc30ad867a5a50941ceb00263b
<ide><path>doc/api/path.md <ide> path.isAbsolute('.') // false <ide> On Windows: <ide> <ide> ```js <del>path.isAbsolute('//server') // true <del>path.isAbsolute('C:/foo/..') // true <del>path.isAbsolute('bar\\baz') // false <del>path.isAbsolute('.') // false <add>path.isAbsolute('//server') // true...
1
Go
Go
fix some ineffectual assignments
ba0afd70e89562aa3c668c87fb9191ed9edb7260
<ide><path>integration-cli/docker_cli_build_unix_test.go <ide> func (s *DockerSuite) TestBuildCancellationKillsSleep(c *check.C) { <ide> buildCmd.Dir = ctx.Dir <ide> <ide> stdoutBuild, err := buildCmd.StdoutPipe() <add> c.Assert(err, checker.IsNil) <add> <ide> if err := buildCmd.Start(); err != nil { <ide> c.Fata...
13
Go
Go
use prctl() from x/sys/unix
6c9d715a8c64a7c782b8c7b57925e1dc19b29517
<ide><path>pkg/sysinfo/sysinfo_linux.go <ide> import ( <ide> "golang.org/x/sys/unix" <ide> ) <ide> <del>const ( <del> // SeccompModeFilter refers to the syscall argument SECCOMP_MODE_FILTER. <del> SeccompModeFilter = uintptr(2) <del>) <del> <ide> func findCgroupMountpoints() (map[string]string, error) { <ide> cgMoun...
2
Text
Text
fix typo in changelog
5e751962b4bf1a589da4bf75632da37c0b7b44a0
<ide><path>railties/CHANGELOG.md <del>* Add Yarn support in new apps using --yarn option. This add a package.json <add>* Add Yarn support in new apps using --yarn option. This adds a package.json <ide> and the settings needed to get npm modules integrated in new apps. <ide> <ide> *Liceth Ovalles*, *Guiller...
1
Go
Go
migrate some copy tests to integration
00d409f03ed825f623b6ef8ec5a3a91cd26194c2
<ide><path>integration-cli/docker_cli_cp_from_container_test.go <ide> import ( <ide> "github.com/go-check/check" <ide> ) <ide> <del>// docker cp CONTAINER:PATH LOCALPATH <del> <ide> // Try all of the test cases from the archive package which implements the <ide> // internals of `docker cp` and ensure that the behavio...
4
PHP
PHP
add deprecation warning for global state usage
8e746c6c7a5e76b73e7e28a1b5089f2dfae70e60
<ide><path>src/Routing/Route/Route.php <ide> namespace Cake\Routing\Route; <ide> <ide> use Cake\Http\ServerRequest; <add>use Cake\Http\ServerRequestFactory; <ide> use Cake\Routing\Router; <ide> use InvalidArgumentException; <ide> use Psr\Http\Message\ServerRequestInterface; <ide> public function parse($url, $method = ...
3
PHP
PHP
replace network with http
56698ec023179ece25b56cb65fc39c8096b6bb57
<ide><path>src/Routing/Router.php <ide> public static function reverseToArray($params) <ide> * are used for CakePHP internals and should not normally be part of an output URL. <ide> * <ide> * @param \Cake\Http\ServerRequest|array $params The params array or <del> * Cake\Network\Request object tha...
2
Ruby
Ruby
favor composition over inheritance
494610792530bc21f5c284a4eb66278b07953a5b
<ide><path>railties/lib/rails/paths.rb <ide> module Paths <ide> # path.eager_load? # => true <ide> # path.is_a?(Rails::Paths::Path) # => true <ide> # <del> # The +Path+ object is simply an array and allows you to easily add extra paths: <add> # The +Path+ object is simply an enumerab...
2
PHP
PHP
change visibility of some belongstomany methods
601e395a130df9f673de1d62d58a255e75fdfffa
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php <ide> protected function attachNew(array $records, array $current, $touch = true) <ide> * @param bool $touch <ide> * @return void <ide> */ <del> protected function updateExistingPivot($id, array $attributes, $touch) <add> public function u...
1
Javascript
Javascript
fix scope issue
30e3cfe40679f2247179bfe54f4768f2cbbc8161
<ide><path>packages/react-dom/src/events/DOMPluginEventSystem.js <ide> export function accumulateSinglePhaseListeners( <ide> enableCreateEventHandleAPI && <ide> enableScopeAPI && <ide> tag === ScopeComponent && <del> lastHostComponent !== null <add> lastHostComponent !== null && <add> s...
1
Text
Text
add v4.8.1 to changelog
53ca013f87509315200c5969a8f55417af913786
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.8.1 (November 2, 2022) <add> <add>- [CVE pending](https://emberjs.com/blog/ember-4-8-1-released) Fix a prototype pollution vulnerability in `set` and `setProperties` <add> <ide> ### v4.4.4 (November 2, 2022) <ide> <ide> - [CVE pending](https://emberjs....
1
Javascript
Javascript
fix typo on $eval
c0b9e94dec21a89784febd96fbd2036abb31b14f
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * <ide> * @description <ide> * Executes the `expression` on the current scope returning the result. Any exceptions in the <del> * expression are propagated (uncaught). This is useful when evaluating engular expressions....
1
Ruby
Ruby
use digest#file if it's available
93d8e716410bdf04346791e64b7446528371dfed
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def text_executable? <ide> %r[^#!\s*\S+] === open('r') { |f| f.read(1024) } <ide> end <ide> <del> def incremental_hash(hasher) <del> incr_hash = hasher.new <del> buf = "" <del> open('rb') { |f| incr_hash << buf while f.read(1024, buf) } <del> incr...
1
Javascript
Javascript
touch support to trackballcontrols
5816003656333fd317e5b978ee52e2ffbb7d7c26
<ide><path>examples/js/controls/TrackballControls.js <ide> THREE.TrackballControls = function ( object, domElement ) { <ide> <ide> } <ide> <add> function touchstart( event ) { <add> <add> if ( ! _this.enabled ) return; <add> <add> event.preventDefault(); <add> <add> switch ( event.touches.length ) { <add> <add> ...
1
Python
Python
reduce tests for applications
1365ed5d9a872631b0d451f8508cc61d79228dc0
<ide><path>tests/integration_tests/applications_test.py <ide> reason='Runs only when the relevant files have been modified.') <ide> <ide> <del>MOBILENET_LIST = [(applications.MobileNet, 1024), <del> (applications.MobileNetV2, 1280)] <del>DENSENET_LIST = [(applications.DenseNet121, 1024), <del> ...
1
Text
Text
add instructions to re-seed the changed files
762ac787b98279df60c0053973d3e02804514bd7
<ide><path>CONTRIBUTING.md <ide> For more about creating challenges, see [seed/README](seed/README.md) and [seed/ <ide> <ide> #### Changes to the seed files <ide> <del>If you made changes to any file in the `/seed` directory, you need to run <add>If you made changes to any file in the `/seed` directory, you then need...
1
Javascript
Javascript
fix script after video dom
fd798f3dac7f8594ffc492b5d02bf2426d050ca4
<ide><path>src/js/setup.js <ide> vjs.one(window, 'load', function(){ <ide> }); <ide> <ide> // Run Auto-load players <del>vjs.autoSetup(); <add>// You have to wait at least once in case this script is loaded after your video in the DOM (weird behavior only with minified version) <add>vjs.autoSetupTimeout(1);
1
Javascript
Javascript
omit transitionhydrationlane from transitionlanes
483358c38f8623358dd44a3e57476bc02e6357bc
<ide><path>packages/react-reconciler/src/ReactFiberLane.new.js <ide> const InputContinuousLane: Lanes = /* */ 0b0000000000000000000 <ide> export const DefaultHydrationLane: Lane = /* */ 0b0000000000000000000000001000000; <ide> export const DefaultLane: Lanes = /* */ 0b000...
2
PHP
PHP
add separate method to discover plugin commands
d96c60094a280f6823a0bb85b18561f19dd700c5
<ide><path>src/Console/CommandCollection.php <ide> public function count() <ide> return count($this->commands); <ide> } <ide> <add> /** <add> * Auto-discover shell & commands from the named plugin. <add> * <add> * Discovered commands will have their names de-duplicated with <add> * exist...
3
Python
Python
fix bug in the clean up code
784b67cdef76dfb31c7722371aeb955829bf9106
<ide><path>integration/storage/test_azure_blobs.py <ide> <ide> from integration.storage.base import Integration, random_string <ide> <add># Prefix which is added to all the groups created by tests <add>RESOURCE_GROUP_NAME_PREFIX = 'libcloud' <add># RESOURCE_GROUP_NAME_PREFIX = 'libcloud-tests-' <ide> DEFAULT_TIMEOUT_...
1
Javascript
Javascript
add hasevent method for sniffing events
a22e0699bef61a7083b0b628fb6043531c0ca1c0
<ide><path>src/ng/sniffer.js <ide> * @description <ide> * This is very simple implementation of testing browser's features. <ide> */ <del>function $SnifferProvider(){ <del> this.$get = ['$window', function($window){ <add>function $SnifferProvider() { <add> this.$get = ['$window', function($window) { <add> var e...
2
Javascript
Javascript
add resourcequery to contextmodule identifier
b608ee7f7b82c06384f57d85e969e506a757a75c
<ide><path>lib/ContextModule.js <ide> class ContextModule extends Module { <ide> <ide> identifier() { <ide> let identifier = this.context; <add> if(this.options.resourceQuery) <add> identifier += ` ${this.options.resourceQuery}`; <ide> if(this.options.mode) <ide> identifier += ` ${this.options.mode}`; <ide>...
1
Text
Text
fix typo in test runner code examples
391690c9822c734c544ef78ee7e3e3edc789f0ea
<ide><path>doc/api/test.md <ide> before each subtest of the current suite. <ide> <ide> ```js <ide> describe('tests', async () => { <del> beforeEach(() => t.diagnostics('about to run a test')); <add> beforeEach(() => t.diagnostic('about to run a test')); <ide> it('is a subtest', () => { <ide> assert.ok('some re...
1
Text
Text
fix small typos in documentation files
d1e72baa15fb81a6dcf80e6727b884fc8ff67335
<ide><path>docs/misc/deprecated.md <ide> The following double-dash options are deprecated and have no replacement: <ide> docker search --trusted <ide> <ide> ### Auto-creating missing host paths for bind mounts <del>**Deprected in Release: v1.9** <add>**Deprecated in Release: v1.9** <ide> <ide> **Target for Remova...
8
PHP
PHP
throw an exception instead of triggering a notice
2cb85337a6235ce4aedab7a29a4dbfd468bf2392
<ide><path>src/Database/SqlDialectTrait.php <ide> protected function _updateQueryTranslator($query) <ide> * <ide> * @param \Cake\Database\Query $query The query to process. <ide> * @return \Cake\Database\Query The modified query. <add> * @throws \RuntimeException In case the processed query contains ...
2
Ruby
Ruby
remove unnecessary nil check
89ed0c544b75dd828a0cfbc7d8a9902330c16f4b
<ide><path>Library/Homebrew/os/mac.rb <ide> def gcc_42_build_version <ide> @gcc_42_build_version ||= <ide> begin <ide> gcc = MacOS.locate("gcc-4.2") || HOMEBREW_PREFIX.join("opt/apple-gcc42/bin/gcc-4.2") <del> if gcc && gcc.exist? && gcc.realpath.basename.to_s !~ /^llvm/ <add> ...
1
PHP
PHP
add iterable type into generator doc
d40d4cd78f8a7a218257528e18194fac81b6c4fa
<ide><path>src/Core/PluginCollection.php <ide> public function valid(): bool <ide> * Filter the plugins to those with the named hook enabled. <ide> * <ide> * @param string $hook The hook to filter plugins by <del> * @return \Generator A generator containing matching plugins. <add> * @return \Gene...
1
PHP
PHP
add docblock for exception
3414dcfcbe27cf0f4deee0670f022983e8016392
<ide><path>src/Illuminate/Console/Application.php <ide> public static function forgetBootstrappers() <ide> * @param array $parameters <ide> * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer <ide> * @return int <add> * <add> * @throws \Symfony\Component\Console\Exce...
1
PHP
PHP
fix sorting of `datetimeimmutable` instances
162336b66979aed0fbe805cd83ce1096a976d6aa
<ide><path>src/Collection/Iterator/SortIterator.php <ide> namespace Cake\Collection\Iterator; <ide> <ide> use Cake\Collection\Collection; <del>use DateTime; <add>use DateTimeInterface; <ide> <ide> /** <ide> * An iterator that will return the passed items in order. The order is given by <ide> public function __constr...
2
Javascript
Javascript
add test for async event dispatching
fc6a9f1a1ebb5585c543126d397cc945a95f3196
<ide><path>packages/react-dom/src/events/__tests__/DOMEventResponderSystem-test.internal.js <ide> describe('DOMEventResponderSystem', () => { <ide> <ide> expect(eventLog).toEqual(['magic event fired', 'magicclick']); <ide> }); <add> <add> it('async event dispatching works', () => { <add> let eventLog = []; <...
1
Go
Go
fix a bug in idm.getidinrange()
b495131861e0b6c0873bc341184b11537562236f
<ide><path>libnetwork/idm/idm.go <ide> type Idm struct { <ide> handle *bitseq.Handle <ide> } <ide> <del>// New returns an instance of id manager for a set of [start-end] numerical ids <add>// New returns an instance of id manager for a [start,end] set of numerical ids <ide> func New(ds datastore.DataStore, id string,...
2
PHP
PHP
add parameter comments
103e5793652265534112eae72425450da3c58316
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function assertResponseNotContains($content, $message = '') <ide> /** <ide> * Asserts that the response body matches a given regular expression. <ide> * <del> * @param string $pattern <del> * @param string $message <add> * @param st...
1
Text
Text
add a changelog entry for [ci skip]
5d5beccc8ce0e844dca3ebac6e0ec8dd3fcc1b91
<ide><path>activerecord/CHANGELOG.md <add>* Calling `delete_all` on an unloaded `CollectionProxy` no longer <add> generates a SQL statement containing each id of the collection: <add> <add> Before: <add> <add> DELETE FROM `model` WHERE `model`.`parent_id` = 1 <add> AND `model`.`id` IN (1, 2, 3...)...
1
Go
Go
use checker for docker_cli_run_unix_test.go
7a82429b3d0fc7a93f61406117c170aaf9a4f9be
<ide><path>integration-cli/docker_cli_run_unix_test.go <ide> import ( <ide> func (s *DockerSuite) TestRunRedirectStdout(c *check.C) { <ide> checkRedirect := func(command string) { <ide> _, tty, err := pty.Open() <del> if err != nil { <del> c.Fatalf("Could not open pty: %v", err) <del> } <add> c.Assert(err, chec...
1
Text
Text
change info to note
29051b60a26951ee71d9129a4eb5bc399f9a6cb0
<ide><path>guides/source/active_storage_overview.md <ide> production: <ide> - s3_west_coast <ide> ``` <ide> <add>NOTE: Files are served from the primary service. <add> <ide> Mirrored services can be used to facilitate a migration between services in <ide> production. You can start mirroring to the new service, cop...
1
Ruby
Ruby
restore old winch trap
be41b12e4c0dd0adb013b831dcfe56be58203b5a
<ide><path>Library/Homebrew/sandbox.rb <ide> def exec(*args) <ide> seatbelt.close <ide> @start = Time.now <ide> <del> $stdin.raw! if $stdin.tty? <del> stdin_thread = T.let(nil, T.nilable(Thread)) <del> <ide> begin <ide> command = [SANDBOX_EXEC, "-f", seatbelt.path, *args] <ide> # Start sa...
1
Python
Python
set version to v2.0.5
a6b43729c66916defbeb4a97554c8d4c7f59c3aa
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.5.dev0' <add>__version__ = '2.0.5' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https://s...
1
Ruby
Ruby
add test to make sure form_for is not affected by
d82b7061843994897db9339a301b01c51d37f9fc
<ide><path>actionview/test/template/form_helper_test.rb <ide> def test_form_for <ide> assert_dom_equal expected, output_buffer <ide> end <ide> <add> def test_form_for_is_not_affected_by_form_with_generates_ids <add> old_value = ActionView::Helpers::FormHelper.form_with_generates_ids <add> ActionView::Help...
1
Mixed
Javascript
update context documentation
aae8a06c37c0fd9ae60ae76c50735bcdcbef77da
<ide><path>docs/docs/general/options.md <ide> A plugin can provide `additionalOptionScopes` array of paths to additionally loo <ide> Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument `context` representing contextual information (see [opt...
2
Ruby
Ruby
check xcode installed before using version
e300713f253029ef91a86bc4006d316582fc6d13
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def version <ide> def detect_version <ide> # CLT isn't a distinct entity pre-4.3, and pkgutil doesn't exist <ide> # at all on Tiger, so just count it as installed if Xcode is installed <del> return MacOS::Xcode.version if MacOS::Xcode.versio...
1
Javascript
Javascript
remove lanepriority from computeexpirationtime
77be527297402a11523cb6321bcb2a0ae2b4be6c
<ide><path>packages/react-reconciler/src/ReactFiberLane.new.js <ide> export function getMostRecentEventTime(root: FiberRoot, lanes: Lanes): number { <ide> } <ide> <ide> function computeExpirationTime(lane: Lane, currentTime: number) { <del> // TODO: Expiration heuristic is constant per lane, so could use a map. <del>...
2
Ruby
Ruby
remove some more globals from tests
5d4fce640ef80b2e50589625320dd011d1097dda
<ide><path>railties/test/application/multiple_applications_test.rb <ide> def test_initialize_new_application_with_all_previous_initialization_variables <ide> end <ide> <ide> def test_rake_tasks_defined_on_different_applications_go_to_the_same_class <del> $run_count = 0 <add> run_count = 0 <ide> <ide...
1
Javascript
Javascript
remove duplicate assignment
9012ab9ace5086fc7c56f5e3be4690d78e398845
<ide><path>lib/ContextModule.js <ide> class ContextModule extends Module { <ide> identifier += " strict namespace object"; <ide> else if (this.options.namespaceObject) identifier += " namespace object"; <ide> <del> this._identifier = identifier; <del> <ide> return identifier; <ide> } <ide>
1
Text
Text
clearify changelog for [ci skip]
ffded19faf497c0a0bb392c07f98d9eee62f6925
<ide><path>activesupport/CHANGELOG.md <del>* Fix parsing JSON time in `YYYY-MM-DD hh:mm:ss` (without `Z`). <del> Before such time was considered in UTC timezone, now, to comply with standard, it uses local timezone. <add>* Support parsing JSON time in ISO8601 local time strings in <add> `ActiveSupport::JSON.d...
2
PHP
PHP
change the name of the tags class to tagset
6bbfa3bf5a698e75bc2f417a44fe63eefd038ba6
<add><path>src/Illuminate/Cache/TagSet.php <del><path>src/Illuminate/Cache/Tags.php <ide> <?php namespace Illuminate\Cache; <ide> <del>class Tags { <add>class TagSet { <ide> <ide> /** <ide> * The cache store implementation. <ide> class Tags { <ide> protected $names = array(); <ide> <ide> /** <del> * Create a n...
2
Javascript
Javascript
run bintestcases without deprecations
3f453a4f3ce37666dd5732b061fd12cbade549e8
<ide><path>test/BinTestCases.test.js <ide> const child_process = require("child_process"); <ide> <ide> function spawn(args, options) { <ide> if(process.env.running_under_istanbul) { <del> args = [require.resolve("istanbul/lib/cli.js"), "cover", "--report", "none", "--print", "none", "--include-pid", "--dir", path.re...
1
PHP
PHP
fix styleci stuff
ba6f51822405f4a6ee4e3cb12b651504f95f31e4
<ide><path>tests/Database/DatabaseQueryBuilderTest.php <ide> public function testPostgresUpdateWrappingJsonArrayAndObject() <ide> $builder->getConnection()->shouldReceive('update') <ide> ->with('update "users" set "options" = ?, "meta" = jsonb_set("meta"::jsonb, \'{"tags"}\', ?), "group_id" = 45', [...
1
Ruby
Ruby
upload documentation to the new server
928206259bfcceb282a4e2aa6994ecdb216b22c3
<ide><path>release.rb <ide> `cd release/railties && rake template=jamis package` <ide> <ide> # Upload documentation <del>`cd release/rails/doc/api && scp -r * davidhh@comox.textdrive.com:public_html/rails` <add>`cd release/rails/doc/api && scp -r * davidhh@wrath.rubyonrails.com:public_html/rails` <ide> PACKAGES.each d...
1
PHP
PHP
add test case
93f5d920ef75cf49acad1fa0113a83209c23f00c
<ide><path>tests/TestCase/Database/Type/DateTimeTypeTest.php <ide> public function marshalProvider() <ide> [1392387900, new Time('@1392387900')], <ide> ['2014-02-14 00:00:00', new Time('2014-02-14 00:00:00')], <ide> ['2014-02-14 13:14:15', new Time('2014-02-14 13:14:15')], <add> ...
1