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
allow throwable in stub renderer
f618b05c4ec86b4d424beeec525512d1cb34fac4
<ide><path>src/TestSuite/Stub/TestExceptionRenderer.php <ide> */ <ide> namespace Cake\TestSuite\Stub; <ide> <del>use Exception; <add>use Throwable; <ide> <ide> /** <ide> * Test Exception Renderer. <ide> class TestExceptionRenderer <ide> /** <ide> * Simply rethrow the given exception <ide> * <del> ...
1
Text
Text
update translation for chinese
930e1fefb3846aa295a6ff9450ed9e69657693ee
<ide><path>guide/chinese/python/if-elif-else-statements/index.md <ide> --- <ide> title: If Elif Else Statements <del>localeTitle: 如果Elif Else声明 <add>localeTitle: If / Elif / Else语句 <ide> --- <del>## 如果Elif Else声明 <add>## If / Elif / Else语句 <ide> <del>`if` / `elif` / `else`结构是控制程序流的常用方法,允许您根据某些数据的值执行特定的代码块。如果关键字`if`后面的...
1
Ruby
Ruby
remove duplicate test and fix a typo in the test
3e43edd5ae301892a702c19ffb90853c03a3fac1
<ide><path>actionpack/test/controller/parameters/dup_test.rb <ide> class ParametersDupTest < ActiveSupport::TestCase <ide> assert_not_equal @params, dupped_params <ide> end <ide> <del> test "changes tp a duplicate's permitted status do not affect the original" do <add> test "changes to a duplicate's permitted ...
2
Go
Go
implement teardown removeallimages
a9688cdca5577d6db65d76f38bcbe4c1e6f5994f
<ide><path>integration-cli/check_test.go <ide> type DockerSuite struct { <ide> <ide> func (s *DockerSuite) TearDownTest(c *check.C) { <ide> deleteAllContainers() <add> deleteAllImages() <ide> s.TimerSuite.TearDownTest(c) <ide> } <ide> <ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSui...
20
Text
Text
extend bash-ls and add fixes
87bbeb906902ddfe6c5ceccc50aa61bda985d104
<ide><path>guide/russian/bash/bash-ls/index.md <ide> --- <ide> title: Bash ls <ide> localeTitle: Bash ls <del>--- <ide>## Bash ls <del> <del>`ls` - это команда в Unix-подобных операционных системах для отображения содержимого каталога, например имен папок и файлов. <del> <del>### использование <del> <del>```bash <del>c...
1
Javascript
Javascript
add examples to the ember.computed docs
b0c6394ac68035298dd437a8d97387e034776d5d
<ide><path>packages/ember-metal/lib/computed.js <ide> function registerComputedWithProperties(name, macro) { <ide> } <ide> <ide> /** <add> A computed property that returns true of the value of the dependent <add> property is null, an empty string, empty array, or empty function. <add> <add> Note: When using `Ember....
1
Ruby
Ruby
avoid extra empty array allocation
98c085357e87ee49aec27d270f18502f2a062bef
<ide><path>activerecord/lib/active_record/associations/preloader/association.rb <ide> def associated_records_by_owner <ide> owners_map = owners_by_key <ide> owner_keys = owners_map.keys.compact <ide> <del> if klass.nil? || owner_keys.empty? <del> records = [] <del> else...
1
PHP
PHP
normalize all the line endings
ec0df100c5b97aeeb5e478e65ba5e5689365dd93
<ide><path>src/Illuminate/Hashing/HashServiceProvider.php <del><?php namespace Illuminate\Hashing; <del> <del>use Illuminate\Support\ServiceProvider; <del> <del>class HashServiceProvider extends ServiceProvider { <del> <del> /** <del> * Indicates if loading of the provider is deferred. <del> * <del> * @var bool <del...
38
Java
Java
fix deviceinfomodule lifecycleeventlistener
22735f6903d4101ec48946b1a63230c720b93880
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.java <ide> public class DeviceInfoModule extends BaseJavaModule implements <ide> public DeviceInfoModule(ReactApplicationContext reactContext) { <ide> this((Context) reactContext); <ide> mReactApplicationContext = rea...
1
Text
Text
add evanlucas to collaborators
8f9502a20a8851cfbf5f6181a52813baec23fe0f
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Thorsten Lorenz** ([@thlorenz](https://github.com/thlorenz)) &lt;thlorenz@gmx.de&gt; <ide> * **Stephen Belanger** ([@qard](https://github.com/qard)) &lt;admin@stephenbelanger.com&gt; <ide> * **Jeremiah Senkpiel** ([@fishrock...
1
Text
Text
add rgba, hsl, hsla for defining color
35162199c62496cac442abcf7db291d3d74386e1
<ide><path>guide/english/css/background/index.md <ide> h1 { <ide> ``` <ide> ![twobackground](https://user-images.githubusercontent.com/26467304/31036152-0607936a-a539-11e7-9e9f-a5e60ade042d.png) <ide> <del>In CSS color can be defined in a few different ways: <del>* A valid color name such as `blue` <del>* A HEX value ...
1
Text
Text
add error check to fs example
540cbf84afddfbdd2e88ecbb92c28b7dcc582498
<ide><path>doc/api/fs.md <ide> fs.open('myfile', 'wx', (err, fd) => { <ide> fs.exists('myfile', (exists) => { <ide> if (exists) { <ide> fs.open('myfile', 'r', (err, fd) => { <add> if (err) throw err; <ide> readMyData(fd); <ide> }); <ide> } else {
1
PHP
PHP
fix code markup for the docs
2b0710742e7644fd45b502ed59ec9eb6b0349302
<ide><path>src/Datasource/EntityTrait.php <ide> public function __unset($property) <ide> * <ide> * ### Example: <ide> * <del> * ``$entity->set('name', 'Andrew');`` <add> * ``` <add> * $entity->set('name', 'Andrew'); <add> * ``` <ide> * <ide> * It is also possible to mass-assign ...
1
PHP
PHP
fix code formatting
208d1b04fab8b07f911c78de020398c9f18b9bdd
<ide><path>src/Illuminate/Console/Command.php <ide> public function __construct() <ide> $this->specifyParameters(); <ide> } <ide> <add> /** <add> * Execute the console command. <add> * <add> * @return void <add> */ <add> abstract public function fire(); <add> <ide> /** <ide> * Specify the arguments and optio...
1
Python
Python
fix edge case that took the scheduler down
e9f09b339880a38a06ec27b0ee16e767c4818488
<ide><path>airflow/models.py <ide> def process_file(self, filepath, only_if_updated=True, safe_mode=True): <ide> # This failed before in what may have been a git sync <ide> # race condition <ide> dttm = datetime.fromtimestamp(os.path.getmtime(filepath)) <add> mod_name, fil...
1
PHP
PHP
add basic index support
62115e1cda1acc7f9fcf16f46df0cf5ef08ab2c6
<ide><path>lib/Cake/Database/Schema/Table.php <ide> */ <ide> namespace Cake\Database\Schema; <ide> <add>use Cake\Error; <add> <ide> /** <ide> * Represents a single table in a database schema. <ide> * <ide> class Table { <ide> 'charset' => null, <ide> ]; <ide> <add>/** <add> * The valid keys that can be used in ...
2
Ruby
Ruby
capture stdout during test_prefix
02e53d44cb23e5f798897ac97df357353c0e6242
<ide><path>Library/Homebrew/unittest.rb <ide> $:.unshift File.dirname(__FILE__) <ide> require 'test/unit' <ide> require 'brewkit' <add>require 'stringio' <ide> <ide> class TestFormula <Formula <ide> def initialize url, md5='nomd5' <ide> def initialize url, md5='nomd5' <ide> end <ide> end <ide> <add>def nostdout <...
1
Mixed
Ruby
raise missingattributeerror on query methods
4f107da4ffafa2b77d87fc5a6fb09fa34343184c
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Attribute predicate methods, such as `article.title?`, will now raise <add> `ActiveModel::MissingAttributeError` if the attribute being queried for <add> truthiness was not read from the database, instead of just returning f...
3
Go
Go
change reading order of tailfile
63904eb6745d553573ffe8b7cef43dfc0b8a07cf
<ide><path>integration-cli/docker_cli_logs_test.go <ide> func (s *DockerSuite) TestLogsTail(c *check.C) { <ide> id := strings.TrimSpace(out) <ide> dockerCmd(c, "wait", id) <ide> <del> out, _ = dockerCmd(c, "logs", "--tail", "5", id) <del> <add> out, _ = dockerCmd(c, "logs", "--tail", "0", id) <ide> lines := strings...
2
PHP
PHP
add tests and refactor
83ef6a7eae193ef11e03c400364f2a39fd92acb3
<ide><path>src/Illuminate/Routing/CompiledRouteCollection.php <ide> public function match(Request $request) <ide> <ide> $route = null; <ide> <del> $checkedDynamicRoutes = false; <del> $matchedCachedRouteIsFallback = false; <del> <ide> try { <ide> if ($result = $matcher->match...
2
Java
Java
remove synchronized block
e7d40f930f8e85d67b3d235ca26c7f2f076d6a58
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java <ide> protected long getLastModifiedInternal(HttpServletRequest request, HandlerMethod <ide> * (never {@code null}). <ide> */ <ide> private SessionAttributesHandler getSessionAttributesHan...
1
Java
Java
refactor the usages of choreographercompat
a5f3571770e9f5da454f4eb8eff8e57de7acd551
<ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.java <ide> public FpsView(ReactContext reactContext) { <ide> super(reactContext); <ide> inflate(reactContext, R.layout.fps_view, this); <ide> mTextView = (TextView) findViewById(R.id.fps_text); <del> mFrameCallback = new FpsDebug...
3
Go
Go
add missing json check
801a7fed19643b7b89929daf53b37e0630e05586
<ide><path>api/server/server.go <ide> func (s *Server) postContainerExecCreate(version version.Version, w http.Respons <ide> if err := parseForm(r); err != nil { <ide> return err <ide> } <add> if err := checkForJson(r); err != nil { <add> return err <add> } <ide> name := vars["name"] <ide> <ide> execConfig := &...
2
PHP
PHP
remove unnecessary whitespace
4341e3c9339f29b00289650a39b6244bbbcd04c1
<ide><path>config/broadcasting.php <ide> 'driver' => 'redis', <ide> 'connection' => 'default', <ide> ], <del> <add> <ide> 'log' => [ <ide> 'driver' => 'log', <ide> ],
1
Ruby
Ruby
fix a failing mailer test
6bf9b69bdeaba794d6ec55a6501723d24e7f98e0
<ide><path>actionmailer/test/mail_service_test.rb <ide> def test_starttls_is_not_enabled <ide> <ide> class InheritableTemplateRootTest < Test::Unit::TestCase <ide> def test_attr <del> expected = ("#{File.dirname(__FILE__)}/fixtures/path.with.dots").sub(/\.\//, '') <add> expected = "#{File.dirname(__FILE__)}/fi...
1
PHP
PHP
remove code duplication
68f61a0efa2b191cf59101868373231093c99594
<ide><path>src/Http/Client/Response.php <ide> namespace Cake\Http\Client; <ide> <ide> use Cake\Http\Cookie\CookieCollection; <del>use Cake\Http\Cookie\CookieInterface; <ide> use Psr\Http\Message\ResponseInterface; <ide> use RuntimeException; <ide> use SimpleXMLElement; <ide> public function getCookieData(string $name)...
2
PHP
PHP
fix error message
d65fd83656bca17ade879eed3861499c98f18bb1
<ide><path>src/Http/ActionDispatcher.php <ide> protected function _invoke(Controller $controller) <ide> <ide> $response = $controller->invokeAction(); <ide> if ($response !== null && !($response instanceof Response)) { <del> throw new LogicException('Controller actions can only Cake\Network\...
1
Javascript
Javascript
add pug to prism languages
deb7fcc362d17e44eb63e7eb2afb4c33f21a7956
<ide><path>client/.babelrc.js <ide> const config = { <ide> 'javascript', <ide> 'markup', <ide> 'mathml', <add> 'pug', <ide> 'python', <del> 'svg', <del> 'xml', <ide> 'sql', <del> 'typescript' <add> 'svg', <add> 'type...
1
Ruby
Ruby
improve serialization doc
e34a4014ad2bf1d52c934f06093d179f469c62ac
<ide><path>activemodel/lib/active_model/serialization.rb <ide> module ActiveModel <ide> # person.serializable_hash # => {"name"=>"Bob"} <ide> # <ide> # You need to declare an attributes hash which contains the attributes <del> # you want to serialize. When called, serializable hash will use <add> # you want...
1
Java
Java
fix expression cache
397aa8298492d74ab64bff900229c11d2f5c5112
<ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java <ide> protected class CacheOperationContext implements CacheOperationInvocationContext <ide> <ide> private final Collection<? extends Cache> caches; <ide> <add> private final MethodCacheKey methodCacheKey; <add> <...
6
Text
Text
fix 3.x examples. fixes
c5ce7d1ef93b077cdf7cb704b712242955717993
<ide><path>CHANGES.md <ide> x.domain(); // [0, 1] <ide> The *ordinal*.rangeBands and *ordinal*.rangeRoundBands methods have been replaced with a new subclass of ordinal scale: [band scales](https://github.com/d3/d3-scale#band-scales). The following code in 3.x: <ide> <ide> ```js <del>var x = d3.scaleOrdinal() <add>var...
1
Python
Python
remove 3.10 deprecations
db37512a6e4fa5ba793b7e401d7014dfd0984995
<ide><path>rest_framework/__init__.py <ide> default_app_config = 'rest_framework.apps.RestFrameworkConfig' <ide> <ide> <del>class RemovedInDRF310Warning(DeprecationWarning): <add>class RemovedInDRF311Warning(DeprecationWarning): <ide> pass <ide> <ide> <del>class RemovedInDRF311Warning(PendingDeprecationWarning)...
7
Javascript
Javascript
prepare semver (`@latest`) releases in ci
8f379427657ff1be5b25904864da54c7acfc8d64
<ide><path>scripts/rollup/build-all-release-channels.js <ide> function processStable(buildDir) { <ide> updatePackageVersions( <ide> buildDir + '/node_modules', <ide> versionsMap, <del> defaultVersionIfNotFound <add> defaultVersionIfNotFound, <add> true <ide> ); <ide> fs.renameSync...
1
Go
Go
add debug output to manifest list parsing
9a8cb9313c9c5eb535cf0bce25ca27f84bbfc570
<ide><path>distribution/pull_v2.go <ide> func (p *v2Puller) pullManifestList(ctx context.Context, ref reference.Named, mf <ide> return "", "", err <ide> } <ide> <add> logrus.Debugf("%s resolved to a manifestList object with %d entries; looking for a os/arch match", ref, len(mfstList.Manifests)) <ide> var manifestD...
1
Python
Python
add cluster instances to ec2 driver
bd88c2efeca57d50e53e38121d4946b35cac434d
<ide><path>libcloud/drivers/ec2.py <ide> 'disk': 1690, <ide> 'bandwidth': None <ide> }, <add> 'cg1.4xlarge': { <add> 'id': 'cg1.4xlarge', <add> 'name': 'Cluster GPU Quadruple Extra Large Instance', <add> 'ram': 22528, <add> 'disk': 1690, <add> 'bandwidth': None ...
2
Ruby
Ruby
allow select to have multiple arguments
e7f7439d068f587db91e959ef803606cae9e7cc5
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def preload(*args) <ide> relation <ide> end <ide> <del> def select(value = Proc.new) <add> def select(*args, &blk) <add> if !block_given? && args.blank? <add> raise ArgumentError <add> end <ide> if block_gi...
2
Javascript
Javascript
fix comma causing terser issue
e5dee9f88e021cfe11ebced3ddb013ed5c6d679a
<ide><path>src/scales/scale.linearbase.js <ide> function generateTicks(generationOptions, dataRange) { <ide> // until this point <ide> const decimalPlaces = Math.max( <ide> _decimalPlaces(spacing), <del> _decimalPlaces(niceMin), <add> _decimalPlaces(niceMin) <ide> ); <ide> factor = Math.pow(10, isNull...
1
Python
Python
move files to core/ and common/
9cbe3c2f2bce60bb45b382dff0d0cc04247713f0
<ide><path>official/common/__init__.py <add> <ide><path>official/common/flags.py <add># Lint as: python3 <add># Copyright 2020 The TensorFlow Authors. All Rights Reserved. <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...
6
Ruby
Ruby
recognize setuptools shim and refurbish args
fe16f36f3c19a29c5edfec4483d14b09cefdc175
<ide><path>Library/Homebrew/formula.rb <ide> def exec_cmd(cmd, args, out, logfn) <ide> # Turn on argument filtering in the superenv compiler wrapper. <ide> # We should probably have a better mechanism for this than adding <ide> # special cases to this method. <del> if cmd == "python" && %w[setup.py build...
1
PHP
PHP
add twicedailyat schedule frequency
70490255a2249045699d0c9878f9fe847ad659b3
<ide><path>src/Illuminate/Console/Scheduling/ManagesFrequencies.php <ide> public function dailyAt($time) <ide> * @return $this <ide> */ <ide> public function twiceDaily($first = 1, $second = 13) <add> { <add> return $this->twiceDailyAt($first, $second, 0); <add> } <add> <add> /** <add> ...
2
Javascript
Javascript
pass err to callback if buffer is too big
b6207906c452be4c5f049a098fc645fdfb897306
<ide><path>lib/fs.js <ide> function readFileAfterClose(err) { <ide> else <ide> buffer = context.buffer; <ide> <del> if (context.encoding) <del> buffer = buffer.toString(context.encoding); <add> if (err) return callback(err, buffer); <ide> <del> callback(err, buffer); <add> if (context.encoding) { <add> ...
2
Javascript
Javascript
fix recursive hydration of next/dynamic
dd9811b206bb554251b34f4daebb052eb67f9b69
<ide><path>packages/next-server/lib/loadable.js <ide> import React from 'react' <ide> import PropTypes from 'prop-types' <ide> <ide> const ALL_INITIALIZERS = [] <del>const READY_INITIALIZERS = new Map() <add>const READY_INITIALIZERS = [] <ide> let initialized = false <ide> <ide> function load (loader) { <ide> functio...
5
Javascript
Javascript
allow next export to build html pages
dcc32284293047803ba6fd1808b56ee6cc2861ec
<ide><path>server/document.js <ide> export class Head extends Component { <ide> <ide> return <head> <ide> <link rel='preload' href={`${assetPrefix}/_next/${buildId}/page${realPathname}`} as='script' /> <del> <link rel='preload' href={`${assetPrefix}/_next/${buildId}/page/_error`} as='script' /> <add> ...
2
Ruby
Ruby
add verbose flag
75aae9c8a87bbdd81cf1378e619265014e7b9cfb
<ide><path>Library/Homebrew/cmd/reinstall.rb <ide> def reinstall_args <ide> EOS <ide> switch "--display-times", <ide> description: "Print install times for each formula at the end of the run." <add> switch :verbose <ide> switch :debug <ide> end <ide> end
1
Javascript
Javascript
replace anonymous closure with arrow func
0fad875b3785123cc382f13c60df471985e403e5
<ide><path>test/parallel/test-stream2-unpipe-drain.js <ide> const src2 = new TestReader(); <ide> <ide> src1.pipe(dest); <ide> <del>src1.once('readable', function() { <del> process.nextTick(function() { <add>src1.once('readable', () => { <add> process.nextTick(() => { <ide> <ide> src2.pipe(dest); <ide> <del> ...
1
Go
Go
remove use of pkg/integration in pkg/idtools
acf7ce1aa0bcaaf0b541b695ce5fbd22676e9239
<ide><path>pkg/idtools/idtools_unix.go <ide> import ( <ide> "strings" <ide> "sync" <ide> <del> "github.com/docker/docker/pkg/integration/cmd" <ide> "github.com/docker/docker/pkg/system" <ide> "github.com/opencontainers/runc/libcontainer/user" <ide> ) <ide> func callGetent(args string) (io.Reader, error) { <ide> }...
4
Javascript
Javascript
add tests for d3.ascending and d3.descending
247a6c6e9db2c2ecfd11db5ebb748133e7950552
<ide><path>test/core/ascending-test.js <add>require("../env"); <add>require("../../d3"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("d3.ascending"); <add> <add>suite.addBatch({ <add> "numbers": { <add> "returns a negative number if a < b": functi...
2
Python
Python
remove extra parentheses
4dd71d68d2227cced7f1215a664343b20da8c804
<ide><path>rest_framework/fields.py <ide> def to_choices_dict(choices): <ide> # choices = [('Category', ((1, 'First'), (2, 'Second'))), (3, 'Third')] <ide> ret = OrderedDict() <ide> for choice in choices: <del> if (not isinstance(choice, (list, tuple))): <add> if not isinstance(choice, (list, ...
6
Javascript
Javascript
remove manual qunit fixture resetting
84b6a0beb1de193520bb5541c841cbecc7195a5b
<ide><path>build/tasks/qunit_fixture.js <ide> module.exports = function( grunt ) { <ide> "utf8" <ide> ).toString().replace( /\r\n/g, "\n" ) <ide> ) + <del> ";\n" + <del> "// Compat with QUnit 1.x:\n" + <del> "document.getElementById( \"qunit-fixture\" ).innerHTML = QUnit.config.fixture;\n" <add> ";\...
2
Javascript
Javascript
remove stale code
61978f57e6c3cfd8aeb3cc22490d10b1ea09f473
<ide><path>lib/dgram.js <ide> Socket.prototype.send = function(buffer, <ide> function afterSend(status, handle, req, buffer) { <ide> var self = handle.owner; <ide> <del> // CHECKME socket's been closed by user, don't call callback? <del> if (handle !== self._handle) <del> void(0); <del> <ide> if (req.cb) <ide...
1
PHP
PHP
add command alias to application configuration
818be60551237e1c7fd2cc30891468b2180baab2
<ide><path>application/config/application.php <ide> 'Blade' => 'Laravel\\Blade', <ide> 'Bundle' => 'Laravel\\Bundle', <ide> 'Cache' => 'Laravel\\Cache', <add> 'Command' => 'Laravel\CLI\Command', <ide> 'Config' => 'Laravel\\Config', <ide> 'Controller' => 'Laravel\\Routing\\Controller', ...
1
PHP
PHP
fix phpdoc blocks for responses
9dabd7ffab9c45d7558d2fe88dbf740fcc85d43b
<ide><path>src/Illuminate/Foundation/Http/FormRequest.php <ide> public function response(array $errors) <ide> /** <ide> * Get the response for a forbidden operation. <ide> * <del> * @return \Illuminate\Http\Response <add> * @return \Symfony\Component\HttpFoundation\Response <ide> */ <ide> ...
7
Java
Java
add samesite support in webflux session cookies
09d9450154be796349dabdc606ade57beae08724
<ide><path>spring-web/src/main/java/org/springframework/http/ResponseCookie.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use thi...
3
Ruby
Ruby
remove bottle api
89483abda9199d6c6ded1dd1f1163a41d4d8c2cd
<ide><path>Library/Homebrew/api.rb <ide> # frozen_string_literal: true <ide> <ide> require "api/analytics" <del>require "api/bottle" <ide> require "api/cask" <ide> require "api/cask-source" <ide> require "api/formula" <ide><path>Library/Homebrew/api/bottle.rb <del># typed: false <del># frozen_string_literal: true <del...
4
PHP
PHP
remove undersocre form protected property name
cf0e65fab9aa26d0a6f0912701fa2516e8e99922
<ide><path>src/ORM/Locator/TableLocator.php <ide> class TableLocator implements LocatorInterface <ide> * <ide> * @var array <ide> */ <del> protected $_locations = []; <add> protected $locations = []; <ide> <ide> /** <ide> * Configuration for aliases. <ide> protected function _getClassName...
1
Python
Python
fix assert_equal on time-like objects
f107d38b0513290307fa83dccebfe7db897d87b4
<ide><path>numpy/testing/nose_tools/utils.py <ide> def assert_equal(actual, desired, err_msg='', verbose=True): <ide> <ide> # Inf/nan/negative zero handling <ide> try: <del> # If one of desired/actual is not finite, handle it specially here: <del> # check that both are nan if any is a nan, and te...
2
Python
Python
fix inconsistent lemmas
fd759a881b02a7bc3488b1d9c005d5849cfc05f9
<ide><path>spacy/lang/ca/lemmatizer.py <ide> def rule_lemmatize(self, token: Token) -> List[str]: <ide> forms.append(self.lookup_lemmatize(token)[0]) <ide> if not forms: <ide> forms.append(string) <del> forms = list(set(forms)) <add> forms = list(dict.fromkeys(forms)) <ide>...
5
Text
Text
add docs for next dev and next start
8f3931a0bec102b858afc99e6fa4f1257a0da6c0
<ide><path>docs/api-reference/cli.md <ide> NODE_OPTIONS='--inspect' next <ide> <ide> The first load is colored green, yellow, or red. Aim for green for performant applications. <ide> <add>## Development <add> <add>`next dev` starts the application in development mode with hot-code reloading, error reporting, and more...
1
Ruby
Ruby
reduce block execution
c46172171b7beadcd28d71c1d5473b1bde0f7ede
<ide><path>actionpack/lib/action_controller/metal/instrumentation.rb <ide> def process_action(*) <ide> ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload) <ide> <ide> ActiveSupport::Notifications.instrument("process_action.action_controller", raw_payload) do |payload|...
1
PHP
PHP
remove dead code
9446ff7e0afaf978858a1923e3e4722e5c36c01c
<ide><path>src/Database/Type.php <ide> public static function set($name, TypeInterface $instance) <ide> */ <ide> public static function map($type, $className = null) <ide> { <del> if ($type === null) { <del> return static::$_types; <del> } <ide> if (is_array($type)) { <ide>...
1
Text
Text
remove legacy wpt integration guide
22f3ff9617019dc926e848498117fe04956f11f3
<ide><path>doc/guides/writing-tests.md <ide> functions worked correctly with the `beforeExit` event, then it might be named <ide> <ide> ### Web Platform Tests <ide> <del>Some of the tests for the WHATWG URL implementation (named <del>`test-whatwg-url-*.js`) are imported from the [Web Platform Tests Project][]. <del>T...
1
Text
Text
change http links to https in macos.md
cda38cd8cc1bb72e4f34a9ff5b0e912e7a693d56
<ide><path>docs/build-instructions/macOS.md <del>See the [Hacking on Atom Core](http://flight-manual.atom.io/hacking-atom/sections/hacking-on-atom-core/#platform-mac) section in the [Atom Flight Manual](http://flight-manual.atom.io). <add>See the [Hacking on Atom Core](https://flight-manual.atom.io/hacking-atom/section...
1
PHP
PHP
fix incorrect docs
93ed7f87f3fec486869b59eb78e8631287325b6e
<ide><path>src/Routing/RouteBuilder.php <ide> class RouteBuilder <ide> * <ide> * - `routeClass` - The default route class to use when adding routes. <ide> * - `extensions` - The extensions to connect when adding routes. <del> * - `namePrefix` - The prefix to append to all route names. <add> * - `...
1
Java
Java
fix missing sslinfo with reactor netty and http/2
9b615ed8c669c272530733b17d11b852fed8e3b9
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpRequest.java <ide> <ide> import javax.net.ssl.SSLSession; <ide> <add>import io.netty.channel.Channel; <ide> import io.netty.handler.codec.http.HttpHeaderNames; <ide> import io.netty.handler.codec.http.cookie.Cookie; <ide> im...
1
Javascript
Javascript
fix performance issue when large line
f3473d7db696f78b284c7a874ba33ec5e2b91309
<ide><path>lib/readline.js <ide> Interface.prototype._normalWrite = function(b) { <ide> this._sawReturn = false; <ide> } <ide> <add> // Run test() on the new string chunk, not on the entire line buffer. <add> var newPartContainsEnding = lineEnding.test(string); <add> <ide> if (this._line_buffer) { <ide> ...
1
Ruby
Ruby
fix sse3 detection on linux
5ab745574cd951e5e3be018f7872004f78ef624f
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> def features <ide> @features ||= flags[1..-1].map(&:intern) <ide> end <ide> <del> %w[aes altivec avx avx2 lm sse3 ssse3 sse4 sse4_2].each do |flag| <add> %w[aes altivec avx avx2 lm ssse3 sse4 sse4_2].each do |flag| <ide> ...
1
Python
Python
fix multiple spaces after operator
44b25b80b2fe0928378efd115c9a290ae1623445
<ide><path>keras/layers/recurrent.py <ide> def call(self, inputs, mask=None, initial_state=None, training=None): <ide> if not isinstance(states, (list, tuple)): <ide> states = [states] <ide> else: <del> states = list(states) <add> states = list(stat...
1
PHP
PHP
allow numerics for unix timestamps
da62677cea29ce3f5e6348c416218f11459ca3d6
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateDate($attribute, $value) <ide> return true; <ide> } <ide> <del> if (! is_string($value) || strtotime($value) === false) { <add> if ((! is_string($value) && ! is_numeric($value)) || strtotime($value) ==...
1
Javascript
Javascript
ignore dom writes outside the batch in reactperf
3b2860222051cd3978529a89e4eb3193e23c6c26
<ide><path>src/test/ReactDefaultPerfAnalysis.js <ide> function getUnchangedComponents(measurement) { <ide> // the amount of time it took to render the entire subtree. <ide> var cleanComponents = {}; <ide> var writes = measurement.writes; <add> var hierarchy = measurement.hierarchy; <ide> var dirtyComposites = ...
2
Javascript
Javascript
update shallowcompare to accept nextcontext
8ea1cf4ee0f5315c4190a9e67e15f0f7404cb0cf
<ide><path>src/addons/ReactComponentWithPureRenderMixin.js <ide> var shallowCompare = require('shallowCompare'); <ide> * See https://facebook.github.io/react/docs/pure-render-mixin.html <ide> */ <ide> var ReactComponentWithPureRenderMixin = { <del> shouldComponentUpdate: function(nextProps, nextState) { <del> ret...
2
Go
Go
fix testparserunvolumes with go 1.3 randomization
f6e6cf9071b098f3e38b42597d94cd0768b17219
<ide><path>runconfig/config_test.go <ide> package runconfig <ide> <ide> import ( <add> "fmt" <ide> "strings" <ide> "testing" <ide> <ide> func mustParse(t *testing.T, args string) (*Config, *HostConfig) { <ide> return config, hostConfig <ide> } <ide> <add>// check if (a == c && b == d) || (a == d && b == c) <add>/...
1
Python
Python
add fp16 to 8 gpu fp16 tests.
ba0a6f60a5305839c82b5d62d63222d2da5ea414
<ide><path>official/resnet/keras/keras_imagenet_benchmark.py <ide> def benchmark_8_gpu_fp16(self): <ide> self._setup() <ide> <ide> FLAGS.num_gpus = 8 <add> FLAGS.dtype = 'fp16' <ide> FLAGS.enable_eager = True <ide> FLAGS.distribution_strategy = 'default' <ide> FLAGS.model_dir = self._get_model_d...
1
Python
Python
include host info in image.extra for kvm
1104beb447410562a75262605aea41ab9e077fda
<ide><path>libcloud/compute/drivers/libvirt_driver.py <ide> def list_images(self, location=IMAGES_LOCATION): <ide> if output: <ide> for image in output.strip().split('\n'): <ide> name = image.replace(IMAGES_LOCATION + '/', '') <del> nodeimage = NodeImage(id=image, name...
1
Java
Java
fix image orientation on android for local uris
1f501a9431a56a357987dcf42520c0626b713b50
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageView.java <ide> public void maybeUpdateView() { <ide> ImageRequest imageRequest = ImageRequestBuilder.newBuilderWithSource(mUri) <ide> .setPostprocessor(postprocessor) <ide> .setResizeOptions(resizeOptions) <add> ....
1
Javascript
Javascript
fix typo in test description
9a06439a460196347d50092ae42dbbc1bc198429
<ide><path>packages/ember-routing/tests/utils_test.js <ide> QUnit.test('converts array style into verbose object style', function(assert) { <ide> equal(normalized[paramName].scope, 'model', 'defaults scope to model'); <ide> }); <ide> <del>QUnit.test('converts object stlye [{foo: \'an_alias\'}]', function(assert) { <...
1
Ruby
Ruby
fix hash#from_xml with frozen strings
dd829df07e632209404b025423f57d63148d0867
<ide><path>activesupport/lib/active_support/xml_mini/rexml.rb <ide> def parse(data) <ide> data = StringIO.new(data || '') <ide> end <ide> <del> char = data.getc <del> if char.nil? <add> if data.eof? <ide> {} <ide> else <del> data.ungetc(char) <ide> silence_warn...
2
Go
Go
add test for dns options
e4f3bcb696d3ea3580ab7c93d2e41f02108aa011
<ide><path>libnetwork/service_common_test.go <ide> import ( <ide> "net" <ide> "testing" <ide> <add> "github.com/docker/libnetwork/resolvconf" <add> "github.com/stretchr/testify/assert" <ide> "github.com/stretchr/testify/require" <ide> ) <ide> <ide> func TestCleanupServiceDiscovery(t *testing.T) { <ide> t.Fatalf(...
1
Ruby
Ruby
use each instead of for...in
de6660b5ec4aa8c0e2415f3483aa9346ef8c9223
<ide><path>actionpack/lib/action_view/base.rb <ide> module ActionView #:nodoc: <ide> # xml.language "en-us" <ide> # xml.ttl "40" <ide> # <del> # for item in @recent_items <add> # @recent_items.each do |item| <ide> # xml.item do <ide> # xml.title(item_title(item)) <i...
2
Text
Text
clarify repack, fix a couple broken links
7133fd85167c4f33d305d54408825fd6b06ecf31
<ide><path>CONTRIBUTING.md <ide> These HTML files are self-contained and run their own tests -- open a browser JS <ide> <ide> > **Note**: These in-browser tests should work for simple JavaScript challenges. But other types of challenges may not fare so well. For HTML challenges, challenge tests assume that the solutio...
1
Text
Text
add docker-exec to main manpage
fc75ade4f81229d5f6c36150b1c99c0edb7a8e8f
<ide><path>docs/man/docker-exec.md <ide> % Docker Community <ide> % SEPT 2014 <ide> # NAME <del>docker-exec - Run a command in an existing container <add>docker-exec - Run a command in an active container <ide> <ide> # SYNOPSIS <ide> **docker exec** <ide><path>docs/man/docker.1.md <ide> unix://[/path/to/socket] to use...
2
Python
Python
remove commented lines
0431e38ef2cf50da0c3e5c1d3f63f3a0ec30759d
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_get_subnetwork(self, name, region=None): <ide> """ <ide> region_name = None <ide> if name.startswith('https://'): <del> #parts = self._get_components_from_path(name) <del> #name = parts['name'] <del> #region...
1
Ruby
Ruby
remove double underscore on test method
e0d4fa58df7ddbaddbe90a7fddab15945b8b324f
<ide><path>activerecord/test/cases/relation/where_chain_test.rb <ide> def test_associated_with_multiple_associations <ide> end <ide> end <ide> <del> def test_associated__with_invalid_association_name <add> def test_associated_with_invalid_association_name <ide> e = assert_raises(ArgumentError) do...
1
Text
Text
update the contributing guide for docusaurus
00f726b0eaeeaad177ded228a00cb4c4e0c9e529
<ide><path>docs/docs/developers/contributing.md <ide> The following commands are now available from the repository root: <ide> > gulp lint // perform code linting (ESLint) <ide> > gulp test // perform code linting and run unit tests <ide> > gulp test --browsers ... // test with specifie...
1
Go
Go
name the ingress sandbox explicitly
e31db5d6af5a4c111435b65dbed486a968e1170f
<ide><path>libnetwork/controller.go <ide> func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s <ide> <ide> if sb.ingress { <ide> c.ingressSandbox = sb <add> sb.id = "ingress_sbox" <ide> } <ide> c.Unlock() <ide> defer func() {
1
Javascript
Javascript
terminate statement in matrix4 test
7cdc5db5b137ae4f7c6ae416a98c74aa2085ddae
<ide><path>test/unit/math/Matrix4.js <ide> test( "makeBasis/extractBasis", function() { <ide> var identity = new THREE.Matrix4(); <ide> ok( matrixEquals4( a, identity ), "Passed!" ); <ide> <del> var testBases = [ [ new THREE.Vector3( 0, 1, 0 ), new THREE.Vector3( -1, 0, 0 ), new THREE.Vector3( 0, 0, 1 ) ] ] <add> va...
1
Text
Text
add links to get to know more info
b634228c1613f9271618c089cf6cff6ae1a34454
<ide><path>guide/english/agile/continuous-delivery/index.md <ide> Continuous delivery (CD) is a software engineering approach in which teams produ <ide> <ide> It aims at building, testing, and releasing software faster and more frequently. The approach helps reduce the cost, time, and risk of delivering changes by all...
1
Java
Java
release fix for race condition on startsurface
d71a0be6fa0ed4d38d58f1bce30e532581a7bfca
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> public void showDevOptionsDialog() { <ide> @ThreadConfined(UI) <ide> private void clearReactRoot(ReactRoot reactRoot) { <ide> UiThreadUtil.assertOnUiThread(); <del> if (ReactFeatureFlags.enableStartSurfaceRaceConditionFi...
2
Python
Python
add time sleep in the incomming loop
d153dd29cf7d5fdcd0424a5b78b9e3ced35c9b4d
<ide><path>glances/core/glances_autodiscover.py <ide> <ide> # Import system libs <ide> import socket <add>import time <ide> try: <ide> import netifaces <ide> netifaces_tag = True <ide> def addService(self, zeroconf, srv_type, srv_name): <ide> self.servers.add_server(srv_name, new_server_ip, new_ser...
2
Javascript
Javascript
allow modifiers on inline ng-pattern
12b6deb1ce99df64e2fc91a06bf05cd7f4a3a475
<ide><path>src/ng/directive/input.js <ide> function textInputType(scope, element, attr, ctrl, $sniffer, $browser) { <ide> <ide> // pattern validator <ide> var pattern = attr.ngPattern, <del> patternValidator; <add> patternValidator, <add> match; <ide> <ide> var validate = function(regexp, value) ...
2
Javascript
Javascript
update variable name and doc type to be accurate
c4b9b938cf5f40637deb9a27c21154785abd81e4
<ide><path>src/browser/ui/ReactMount.js <ide> var ReactMount = { <ide> /** <ide> * Take a component that's already mounted into the DOM and replace its props <ide> * @param {ReactComponent} prevComponent component instance already in the DOM <del> * @param {ReactComponent} nextComponent component instance to ...
1
Ruby
Ruby
add brew doctor check for spaces in xcode path
80335bba7498e484997a6ccf4bbfccef2bb251f9
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_homebrew_prefix <ide> end <ide> end <ide> <add>def check_xcode_prefix <add> prefix = MacOS.xcode_prefix <add> return if prefix.nil? <add> if prefix.to_s.match(' ') <add> puts <<-EOS.undent <add> Xcode is installed to a folder with a space in the na...
1
Javascript
Javascript
fix failing tests
cf66cccb19922c40df0fcf38acec3dd3e6768df8
<ide><path>test/geom/voronoi-test.js <ide> suite.addBatch({ <ide> }, <ide> "returns two cells with the expected geometry": function(cells) { <ide> assert.inDelta(cells, [ <del> [[-178046.7857142857, 1e6], [179096.07142857145, -1e6], [-1e6, 1e6], [1e6, 1e6]], <del> [[-1780...
1
PHP
PHP
fix bug in eloqueny hydrator
8af11e6d61446ab195fc987d71c5ba2969346595
<ide><path>laravel/database/eloquent/query.php <ide> public function hydrate($model, $results, $include = true) <ide> $new->$key = $value; <ide> } <ide> <add> $new->original = $new->attributes; <add> <ide> $models[$result[$this->model->key()]] = $new; <ide> } <ide>
1
Go
Go
update logic of history
5a3236d9e8ee8c0051c0cc758ec359fa089b3291
<ide><path>api/client/history.go <ide> func (cli *DockerCli) CmdHistory(args ...string) error { <ide> return nil <ide> } <ide> <add> var imageID string <add> var createdBy string <add> var created string <add> var size string <add> <ide> fmt.Fprintln(w, "IMAGE\tCREATED\tCREATED BY\tSIZE\tCOMMENT") <ide> for _, en...
1
Java
Java
add support for `overflow` on android
6110a4cc75bf8f285ff091cc175b9ebf737f88fc
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java <ide> public static boolean isLayoutOnly(ReadableMap map, String prop) { <ide> return map.isNull(BORDER_RIGHT_WIDTH) || map.getDouble(BORDER_RIGHT_WIDTH) == 0d; <ide> case BORDER_BOTTOM_WIDTH: <ide> return map....
2
Go
Go
remove unused code
153248b60f551d4cb92bce4f35b08084f554c62c
<ide><path>deviceset.go <del>package docker <del> <del>type DeviceSet interface { <del> AddDevice(hash, baseHash string) error <del> SetInitialized(hash string) error <del> DeactivateDevice(hash string) error <del> RemoveDevice(hash string) error <del> MountDevice(hash, path string) error <del> UnmountDevice(hash, path...
5
Java
Java
add annotationconfigapplicationcontext constructor
f05d0885ef4076b6430f144ddb8e47627e5eee80
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/AnnotationConfigApplicationContext.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "L...
1
Java
Java
fix checkstyle violations
2146bc816a93caa0b12c2ec5d8896fe166253490
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java <ide> private Object getValueFromMetaAnnotation(int attributeIndex, <ide> value = this.mapping.getMappedAnnotationValue(attributeIndex, forMirrorResolution); <ide> } <ide> if (value == null) { <del> Method attrib...
1
Javascript
Javascript
add @since tag to doc for the hash helper
602b92dc92a2e36763d6c3c54c1e11e170eec8ce
<ide><path>packages/ember-glimmer/lib/helpers/hash.js <ide> @for Ember.Templates.helpers <ide> @param {Object} options <ide> @return {Object} Hash <add> @since 2.3.0 <ide> @public <ide> */ <ide>
1
Javascript
Javascript
delay the require of the vscode-ripgrep module
0cbd329e34613c64cebc761ceead2dd84ef62b1b
<ide><path>src/ripgrep-directory-searcher.js <ide> function updateTrailingContexts (message, pendingTrailingContexts, options) { <ide> } <ide> <ide> module.exports = class RipgrepDirectorySearcher { <del> constructor () { <del> this.rgPath = require('vscode-ripgrep').rgPath <del> } <del> <ide> canSearchDirector...
1