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
Text
Text
change "paste" to "type"
3e181b85b0b2be9f5ed5c7ec9789f9718e532070
<ide><path>docs/GettingStartedOnLinux.md <ide> See [Android Setup](/react-native/docs/android-setup.html) for details. <ide> <ide> The first thing you need to do is to install NodeJS, a popular Javascript implementation. <ide> <del>Fire up the Terminal and paste the following commands to install NodeJS from the [Node...
1
Javascript
Javascript
convert numeric hash targets to string
9062bae05c002934fe7bfd76043dcc3de9acfde6
<ide><path>src/ng/anchorScroll.js <ide> function $AnchorScrollProvider() { <ide> } <ide> <ide> function scroll(hash) { <del> hash = isString(hash) ? hash : $location.hash(); <add> // Allow numeric hashes <add> hash = isString(hash) ? hash : isNumber(hash) ? hash.toString() : $location.hash(); <i...
2
Go
Go
extract a function
9ea5e02e92d2d39e771d10eb0acf341ba9b58ceb
<ide><path>builder/dockerfile/builder.go <ide> func (b *Builder) build(stdout io.Writer, stderr io.Writer, out io.Writer) (stri <ide> } <ide> } <ide> <del> // check if there are any leftover build-args that were passed but not <del> // consumed during build. Return a warning, if there are any. <del> leftoverArgs :=...
1
Mixed
Javascript
expose btoa and atob as globals
d1e2184c8ea0362ad695d51fb6409fc1741a227b
<ide><path>.eslintrc.js <ide> module.exports = { <ide> TextDecoder: 'readable', <ide> queueMicrotask: 'readable', <ide> globalThis: 'readable', <add> btoa: 'readable', <add> atob: 'readable', <ide> }, <ide> }; <ide><path>doc/api/buffer.md <ide> accessed using `require('buffer')`. <ide> added: REPLAC...
6
Javascript
Javascript
update browsers to the latest version
e5ad6d6ecd22852c67720af946b86de52f5a0a10
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> 'SL_Chrome': { <ide> base: 'SauceLabs', <ide> browserName: 'chrome', <del> version: '34' <add> version: '39' <ide> }, <ide> 'SL_Firefox': { <ide> base: 'SauceLabs', <i...
1
Javascript
Javascript
remove firefox workaround
e94bd460a795180c7bf5b45245c89f4c23c37ab6
<ide><path>src/Chart.Core.js <ide> var width = this.width = computeDimension(context.canvas,'Width') || context.canvas.width; <ide> var height = this.height = computeDimension(context.canvas,'Height') || context.canvas.height; <ide> <del> // Firefox requires this to work correctly <del> context.canvas.width = w...
1
Javascript
Javascript
fix global namespace polution with invalidwidgets
451a711343f0d902e0a652a98c54d9aa94451b9b
<ide><path>src/widgets.js <ide> function valueAccessor(scope, element) { <ide> requiredExpr = element.attr('ng:required'), <ide> formatterName = element.attr('ng:format') || NOOP, <ide> formatter = angularFormatter(formatterName), <del> format, parse, lastError, required; <add> format, parse...
1
Javascript
Javascript
flow strict textprops
79274979b775e89d5f54a557a34062f873134199
<ide><path>Libraries/Text/Text.js <ide> import type {PressRetentionOffset, TextProps} from 'TextProps'; <ide> <ide> type ResponseHandlers = $ReadOnly<{| <ide> onStartShouldSetResponder: () => boolean, <del> onResponderGrant: (event: SyntheticEvent<>, dispatchID: string) => void, <del> onResponderMove: (event: Synt...
2
PHP
PHP
remove extra strtolower() calls
df84dac6950c640254ecd2780765eff3cf023ea5
<ide><path>lib/Cake/Routing/Route/Route.php <ide> public function getName() { <ide> } <ide> $name = ''; <ide> if (isset($this->defaults['plugin'])) { <del> $name = strtolower($this->defaults['plugin']) . '.'; <add> $name = $this->defaults['plugin'] . '.'; <ide> } <ide> foreach (array('controller', 'action...
1
Javascript
Javascript
handle single node in d3.layout.cluster
d49c499c68e6dda9b5c4a8e3559470543057d5a4
<ide><path>d3.layout.js <ide> d3.layout.cluster = function() { <ide> // Second walk, normalizing x & y to the desired size. <ide> d3_layout_treeVisitAfter(root, function(node) { <ide> node.x = (node.x - x0) / (x1 - x0) * size[0]; <del> node.y = (1 - node.y / root.y) * size[1]; <add> node.y = (1 ...
5
Text
Text
move leeroy under docker
9bc502ecdef3175cf9141d93ddeb12c92bd7dc06
<ide><path>project/TOOLS.md <ide> pull request using GitHub's <ide> with pending, success, failure, or error statuses. <ide> <ide> The leeroy repository is maintained at <del>[github.com/jfrazelle/leeroy](https://github.com/jfrazelle/leeroy). <add>[github.com/docker/leeroy](https://github.com/docker/leeroy). <ide> <i...
1
Text
Text
add 1.7.5 release notes
33f801e7c2b17ec893058ac2e6af6fa851bcd6fd
<ide><path>CHANGELOG.md <add><a name="1.7.5"></a> <add># 1.7.5 anti-prettification (2018-10-04) <add> <add>## Bug Fixes <add>- **ngClass:** do not break on invalid values <add> ([f3a565](https://github.com/angular/angular.js/commit/f3a565872d802c94bb213944791b11b483d52f73), <add> [#16697](https://github.com/angular/a...
1
Go
Go
allow multiple syntaxes for cmd
13e687e5790f05552f9be84bf1d60d37fca4c078
<ide><path>builder_client.go <ide> func (b builderClient) CmdEnv(args string) error { <ide> <ide> func (b builderClient) CmdCmd(args string) error { <ide> b.needCommit = true <del> b.config.Cmd = []string{"/bin/sh", "-c", args} <add> var cmd []string <add> if err := json.Unmarshal([]byte(args), &cmd); err != nil { <a...
1
Python
Python
add a "returns" section for `np.frombuffer`
162d000f2a32cb9e534b5e250653e8039e60f18c
<ide><path>numpy/core/_add_newdocs.py <ide> <ide> .. versionadded:: 1.20.0 <ide> <add> Returns <add> ------- <add> out : ndarray <add> <ide> Notes <ide> ----- <ide> If the buffer has data that is not in machine byte-order, this should
1
PHP
PHP
add test for event payload of type object
4be35a5023050c27680336bb256e54a331fefc71
<ide><path>tests/Events/EventsDispatcherTest.php <ide> public function testClassesWork() <ide> $this->assertSame('baz', $_SERVER['__event.test']); <ide> } <ide> <add> public function testEventClassesArePayload() <add> { <add> unset($_SERVER['__event.test']); <add> $d = new Dispatcher; <...
1
Javascript
Javascript
expose jobs board to production
c354ddf1ac340be0a5651f5a1917f2323238a60f
<ide><path>server/boot/a-react.js <ide> const devRoutes = [ <ide> export default function reactSubRouter(app) { <ide> var router = app.loopback.Router(); <ide> <del> if (process.env.BETA) { <del> routes.forEach((route) => { <del> router.get(route, serveReactApp); <del> }); <del> } <add> // These routes...
1
Javascript
Javascript
remove unused dependencies
f5bc3ed9b4bfaeac105a8e662f76649c9f63137d
<ide><path>src/ng/templateRequest.js <ide> var $compileMinErr = minErr('$compile'); <ide> /** <ide> * @ngdoc provider <ide> * @name $templateRequestProvider <del> * <ide> * @description <ide> * Used to configure the options passed to the {@link $http} service when making a template request. <ide> * <ide><path>test...
2
Python
Python
add global lex_attrs
e666f14d2080491b55804feae7609783d707225c
<ide><path>spacy/lang/lex_attrs.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import unicodedata <add>import regex as re <add> <add> <add>_like_email = re.compile(r'([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)').match <add> <add> <add>def is_alpha(text): <add> return text.isalpha...
1
PHP
PHP
fix version numbers
a09b58d3a6e7e4c016b9b7e2830a568690223785
<ide><path>src/Utility/Crypto/Mcrypt.php <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * @link http://cakephp.org CakePHP(tm) Project <del> * @since 0.10.0 <add> * @since 3.0.0 <ide> * @license http://www.opensource.org/l...
2
Python
Python
improve notrainer examples
d156898f3b9b2c990e5963f5030a7143d57921a2
<ide><path>examples/pytorch/image-classification/run_image_classification_no_trainer.py <ide> def parse_args(): <ide> parser.add_argument( <ide> "--with_tracking", <ide> action="store_true", <del> help="Whether to load in all available experiment trackers from the environment and use them for...
10
Ruby
Ruby
add custom polymorphic mapping
3bf47b018be912fc7946342315e67b2ac6c33eaf
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def concerns(*args) <ide> end <ide> <ide> module DirectUrls <del> # Define a custom url helper that will be added to the url helpers <del> # module. This allows you override and/or replace the default behavior <add> # De...
6
PHP
PHP
adjust test response
786b7821e0009a4288bff032443f2b1a273ee459
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertExactJson(array $data) <ide> /** <ide> * Assert that the response contains the given JSON fragment. <ide> * <del> * @param array $data <del> * @param bool $negate <add> * @param array $data <ide> ...
1
Python
Python
fix equality in strings
2a76796d87291e7a893d092cbf106cf3b9ad42c9
<ide><path>tests/test_multiprocessing.py <ide> def custom_generator(use_weights=False): <ide> # - BUT on Windows, `multiprocessing` won't marshall generators across <ide> # process boundaries -> make sure `fit_generator()` raises ValueError <ide> # exception and does not attempt to run the generat...
1
Text
Text
add the javascript exponentiation operator
b7d4fd7349f579ed258e1e4eb013cfb084f7d1f4
<ide><path>guide/english/javascript/arithmetic-operation/index.md <ide> Also referred to as the "modulus" or "modulo" operator. <ide> <ide> _!Important!_ You **cannot** perform any sort of operations on `Infinity`. <ide> <add>## Exponentiation <add> <add>**Syntax** <add> <add>`a ** b` <add> <add>**Usage** <add> <...
1
PHP
PHP
add missing param doc comment
0cd74de0fe7203215626bdfebe414370c70530db
<ide><path>src/Console/HelpFormatter.php <ide> public function __construct(ConsoleOptionParser $parser) <ide> /** <ide> * Set the alias <ide> * <add> * @param string $alias The alias <ide> * @return void <ide> * @throws \Cake\Console\Exception\ConsoleException When alias is not a string. <id...
1
Javascript
Javascript
increase coverage for stream
4d22dd329b5890387356806e45cc007b7004ee65
<ide><path>test/parallel/test-readable-from.js <ide> const { mustCall } = require('../common'); <ide> const { once } = require('events'); <ide> const { Readable } = require('stream'); <del>const { strictEqual } = require('assert'); <add>const { strictEqual, throws } = require('assert'); <add> <add>{ <add> throws(() =>...
3
Ruby
Ruby
define attribute methods in `init_from_db`
a01de4deab59f57874965a69e9a4c83112b3cb47
<ide><path>activerecord/lib/active_record/core.rb <ide> def init_from_db(attributes) <ide> @new_record = false <ide> @attributes = attributes <ide> <add> self.class.define_attribute_methods <add> <ide> yield self if block_given? <ide> <ide> _run_find_callbacks
1
Javascript
Javascript
add disable_minification environment variable
57da44f58a519f4eb7493610065ddbc17d944c13
<ide><path>ember-cli-build.js <ide> function buildBundles(packagesES, dependenciesES, templateCompilerDependenciesES <ide> return new MergeTrees( <ide> [ <ide> emberProdBundle, <del> emberMinBundle, <add> process.env.DISABLE_MINIFICATION !== '1' && emberMinBundle, <ide> emberProdTestsBundle,...
1
Javascript
Javascript
introduce transformer `cachekey`
b5f80065d48e2196f4b648cbb734e47b84284d0e
<ide><path>packager/react-packager/src/Bundler/index.js <ide> class Bundler { <ide> mtime = ''; <ide> } <ide> <add> const cacheKeyParts = [ <add> 'react-packager-cache', <add> version, <add> opts.cacheVersion, <add> opts.projectRoots.join(',').split(path.sep).join('-'), <add> mti...
1
Go
Go
add some debug
06afc2d1e6f8c5052af71e8815266d30e29ed664
<ide><path>integration-cli/docker_api_swarm_test.go <ide> func (s *DockerSwarmSuite) TestAPISwarmLeaderElection(c *check.C) { <ide> } <ide> <ide> // wait for an election to occur <add> c.Logf("Waiting for election to occur...") <ide> waitAndAssert(c, defaultReconciliationTimeout, checkLeader(d2, d3), checker.True) ...
3
Text
Text
add xu-cheng to maintainers
7926ea171c84b8fe5439cb4969533f316a941d8e
<ide><path>README.md <ide> Second, read the [Troubleshooting Checklist](https://github.com/Homebrew/homebre <ide> Please report security issues to security@brew.sh. <ide> <ide> ## Who Are You? <del>Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo), [Adam Vandenberg](https://github.com/ad...
1
Javascript
Javascript
improve coverage for `arrayproxy` + `{{#each}}`
639763a81183e17cbc9ee218899c0fefab1de8b4
<ide><path>packages/ember-glimmer/tests/integration/syntax/each-test.js <ide> class AbstractEachTest extends RenderingTest { <ide> <ide> /* abstract */ <ide> makeList() { <del> // this.list = ...; <add> // this.list = this.delegate = ...; <ide> throw new Error('Not implemented: `makeList`'); <ide> } <i...
1
Javascript
Javascript
add jsdoc typings for util
767d91b72db1e314072d04513d3d95c462045760
<ide><path>lib/util.js <ide> const { <ide> <ide> let internalDeepEqual; <ide> <add>/** <add> * @deprecated since v4.0.0 <add> * @param {any} arg <add> * @returns {arg is boolean} <add> */ <ide> function isBoolean(arg) { <ide> return typeof arg === 'boolean'; <ide> } <ide> <add>/** <add> * @deprecated since v4.0.0 ...
1
Javascript
Javascript
fix openssl tests
6cbed959e6dc61991e50bb95b3a9b1f530a50c0d
<ide><path>test/simple/test-tls-ext-key-usage.js <ide> // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <del> <del> <del> <del>// There is a bug with 'openssl s_server' which makes it not flush certain <del>// important events to stdout ...
2
Mixed
Python
release notes for 3.1.1 and version bump
164be174ea06694eca23a85a6df0a54df11e2a61
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> <ide> ## 3.0.x series <ide> <add>### 3.1.1 <add> <add>**Date**: [19th March 2015][3.1.1-milestone]. <add> <add>* Fix missing anchor closing tag after next button. ([#2691][gh2691]) <add>* Fix `lo...
2
Javascript
Javascript
remove yoda statements
f2d93795bfe61a3260bf743d2247b56b83fc6f70
<ide><path>lib/_stream_readable.js <ide> function resume_(stream, state) { <ide> <ide> Readable.prototype.pause = function() { <ide> debug('call pause flowing=%j', this._readableState.flowing); <del> if (false !== this._readableState.flowing) { <add> if (this._readableState.flowing !== false) { <ide> debug('pa...
11
Ruby
Ruby
install a bottle from an url
ffe1ee1636bba266b2d8180300375dc1a86794cd
<ide><path>Library/Homebrew/formulary.rb <ide> def load_file <ide> # Loads formulae from bottles. <ide> class BottleLoader < FormulaLoader <ide> def initialize(bottle_name) <del> @bottle_filename = Pathname(bottle_name).realpath <add> case bottle_name <add> when %r{(https?|ftp|file)://} <add> ...
1
Javascript
Javascript
fix thousands separator
d4e1f61a55f583a4d1435efb7d6ea1723a3716b2
<ide><path>src/locale/sv-SE.js <ide> import "locale"; <ide> <ide> var d3_locale_svSE = d3.locale({ <ide> decimal: ",", <del> thousands: "\0xa0", <add> thousands: "\xa0", <ide> grouping: [3], <ide> currency: ["", "SEK"], <ide> dateTime: "%A den %d %B %Y %X",
1
Javascript
Javascript
fix return type in onlychild's jsdoc
416f315c962c74e057e420b5c24e4e89744174f0
<ide><path>src/isomorphic/children/onlyChild.js <ide> var invariant = require('invariant'); <ide> * of children. <ide> * <ide> * @param {?object} children Child collection structure. <del> * @return {ReactComponent} The first and only `ReactComponent` contained in the <add> * @return {ReactElement} The first and onl...
1
Text
Text
change "储存" to "只读存储器" & "记忆" to "随机存取存储器"
7237cb45a61f60a0b869334bfc43a99959fea62b
<ide><path>guide/chinese/computer-hardware/index.md <ide> localeTitle: 电脑硬件 <ide> <ide> ![Nvidia Titan XP](https://cdn.arstechnica.net/wp-content/uploads/2017/04/nvidia-titan-x.jpg) <ide> <del>### 存储(SSD或HDD) <add>### 只读存储器(SSD或HDD) <ide> <ide> 固态硬盘(SSD)或硬盘驱动器(HDD)用于在计算机上存储信息。它即使在断电后也能保留内存。 <ide> <ide> ![SSD](https...
1
Text
Text
give more details about js require
e919567323ce9e66ac625b9de786958911f41dab
<ide><path>docs/NativeModulesAndroid.md <ide> var { NativeModules } = require('react-native'); <ide> module.exports = NativeModules.ToastAndroid; <ide> ``` <ide> <del>Now, from your JavaScript file you can call the method like this: <add>Save the above code into a file named "ToastAndroid.js". Now, from your other Jav...
1
Text
Text
guide fix. [ci skip]
ce392d948403a4b5cb7348669cb597a3c93b8d3c
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> secrets, you need to: <ide> ``` <ide> <ide> 2. Use your existing `secret_key_base` from the `secret_token.rb` initializer to <del> set the SECRET_KEY_BASE environment variable for whichever users that are running the <add> set the SECRET_KEY_BASE enviro...
1
Javascript
Javascript
improve console output of tls-server-verify
e6ccdcc1fe03fda02fdc99b9ad3283fc76403dbc
<ide><path>test/parallel/test-tls-server-verify.js <ide> var serverKey = loadPEM('agent2-key'); <ide> var serverCert = loadPEM('agent2-cert'); <ide> <ide> <del>function runClient(port, options, cb) { <add>function runClient(prefix, port, options, cb) { <ide> <ide> // Client can connect in three ways: <ide> // - ...
1
Javascript
Javascript
remove morph target changes
add08253d3962f0b1e234b54cf921327a7bee3c4
<ide><path>examples/jsm/loaders/FBXLoader.js <ide> var FBXLoader = ( function () { <ide> <ide> }, <ide> <add> <ide> // Parse single node mesh geometry in FBXTree.Objects.Geometry <ide> parseMeshGeometry: function ( relationships, geoNode, deformers ) { <ide> <ide> var skeletons = deformers.skeletons; <del> ...
1
Java
Java
remove unnecessary assertion
19a9bc4747028e68d0fc9ce71c302488cfbfa978
<ide><path>spring-web/src/main/java/org/springframework/web/server/session/InMemoryWebSessionStore.java <ide> public class InMemoryWebSessionStore implements WebSessionStore { <ide> /** Minimum period between expiration checks */ <ide> private static final Duration EXPIRATION_CHECK_PERIOD = Duration.ofSeconds(60); <i...
1
PHP
PHP
remove nested conditions
cd21ea38a06cff3f25424467105f1967d1d0abe2
<ide><path>lib/Cake/Core/ClassLoader.php <ide> public function unregister() { <ide> * @return boolean <ide> */ <ide> public function loadClass($className) { <del> if (substr($className, 0, $this->namespaceLength) === $this->namespace) { <del> $path = $this->includePath . DS . str_replace('\\', DS, $className) . $...
1
PHP
PHP
tidy doc block
cf4a9f420f6f88e9761e59aa38bcd403f6c4f21e
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> protected function _getModel($model) { <ide> * <ide> * The $key parameter accepts the following list of values: <ide> * <del> * - key: Returns the name of the primary key for the model <del> * - fields: Returns the model schema <del> * - validates: returns the li...
1
Ruby
Ruby
make #with chainable
b4ca49dd9f2ea15fe34dd5f01215afad834f2f40
<ide><path>lib/arel/select_manager.rb <ide> def with *subqueries <ide> node_class = Nodes::With <ide> end <ide> @ast.with = node_class.new(subqueries.flatten) <add> <add> self <ide> end <ide> <ide> def take limit <ide><path>test/test_select_manager.rb <ide> def test_join_sources <ide> ...
2
Javascript
Javascript
inspect extra properties
d385e2cc5a85e150538fd1f41087db9b38943c49
<ide><path>lib/buffer.js <ide> const { <ide> kStringMaxLength <ide> } = internalBinding('buffer'); <ide> const { isAnyArrayBuffer } = internalBinding('types'); <add>const { <add> getOwnNonIndexProperties, <add> propertyFilter: { <add> ALL_PROPERTIES, <add> ONLY_ENUMERABLE <add> } <add>} = internalBinding('ut...
3
Python
Python
add a test function to the ctypeslib module
5d9449f721b3a2ab6dceeabd23e9f50348c4282a
<ide><path>numpy/ctypeslib.py <del>__all__ = ['ctypes_load_library', 'ndpointer'] <add>__all__ = ['ctypes_load_library', 'ndpointer', 'test'] <ide> <ide> import sys, os <ide> from numpy import integer, product, ndarray, dtype as _dtype <ide> def ndpointer(dtype=None, ndim=None, shape=None, flags=None): <ide> ...
1
Javascript
Javascript
remove global controller definitions
68e84acec9ebd29daafb35ae7e9435e2ba285530
<ide><path>src/ngRoute/directive/ngView.js <ide> ngRouteModule.directive('ngView', ngViewFillContentFactory); <ide> </file> <ide> <ide> <file name="script.js"> <del> angular.module('ngViewExample', ['ngRoute', 'ngAnimate'], <del> function($routeProvider, $locationProvider) { <del> ...
1
Javascript
Javascript
fix stylesheet registery
68664ac1061c01a7245533c8681cd810cd048a29
<ide><path>Libraries/StyleSheet/StyleSheet.js <ide> */ <ide> 'use strict'; <ide> <del>var PixelRatio = require('PixelRatio'); <del>var ReactNativePropRegistry = require('ReactNativePropRegistry'); <del>var ReactNativeStyleAttributes = require('ReactNativeStyleAttributes'); <del>var StyleSheetValidation = require('Sty...
1
Ruby
Ruby
avoid accurate assertions on error messages
586fe4471d3a71b7500f734d26b28427332b6e43
<ide><path>actionpack/test/dispatch/debug_exceptions_test.rb <ide> def setup <ide> <ide> assert_response 500 <ide> assert_select '#Application-Trace' do <del> assert_select 'pre code', /\(eval\):1: syntax error, unexpected/ <add> assert_select 'pre code', /syntax error, unexpected/ <ide> end <ide...
2
Ruby
Ruby
use loaded records where possible when preloading
605acb961777d9d3ac8712ecd4841c6dcd46d1cc
<ide><path>activerecord/lib/active_record/associations/preloader/association.rb <ide> def hash <ide> end <ide> <ide> def records_for(loaders) <del> ids = loaders.flat_map(&:owner_keys).uniq <del> <del> scope.where(association_key_name => ids).load do |record| <del> ...
4
Ruby
Ruby
replace files atomically in inreplace
7b389fbfed442fda8a013af9bdf5b65a4f5934dd
<ide><path>Library/Homebrew/utils/inreplace.rb <ide> module Utils <ide> module Inreplace <ide> def inreplace paths, before=nil, after=nil <ide> Array(paths).each do |path| <del> f = File.open(path, 'rb') <del> s = f.read <add> s = File.open(path, "rb", &:read) <ide> <ide> if be...
1
Javascript
Javascript
reuse socket only when it is drained
93e0bf9abf350637d772bcce14a5d9527b733300
<ide><path>lib/_http_client.js <ide> function parserOnIncomingClient(res, shouldKeepAlive) { <ide> <ide> // Add our listener first, so that we guarantee socket cleanup <ide> res.on('end', responseOnEnd); <del> req.on('prefinish', requestOnPrefinish); <add> req.on('finish', requestOnFinish); <ide> socket.on('ti...
3
Text
Text
fix typo s/inherit_from/inherit_all/ [ci skip]
8ecb0e22d7b8ffd1a48c6ba9217bfb6b099959cb
<ide><path>activesupport/CHANGELOG.md <del>* ActiveSupport::Subscriber#attach_to now accepts an inherit_from: argument. When set to true, <del> it allows a subscriber to receive events for methods defined in the subscriber's ancestor class(es) <add>* `ActiveSupport::Subscriber#attach_to` now accepts an `inherit_...
1
Python
Python
fix occasional cleartask failures
6f035290737dfb488a85ffc8e6c16c62d5aec454
<ide><path>tests/models/test_cleartasks.py <ide> def test_clear_task_instances(self, dag_maker): <ide> ti1.run() <ide> <ide> with create_session() as session: <del> qry = session.query(TI).filter(TI.dag_id == dag.dag_id).all() <add> # we use order_by(task_id) here because for the ...
1
Ruby
Ruby
remove legacy processing and content_length
b53f00690173797a39ff46e55dd25c20581c3d00
<ide><path>actionpack/lib/action_dispatch/http/response.rb <ide> def initialize <ide> @header = Rack::Utils::HeaderHash.new <ide> end <ide> <add> def status=(status) <add> @status = status.to_i <add> end <add> <ide> # The response code of the request <ide> def response_code <del> stat...
4
Javascript
Javascript
remove unused argument from copyobject()
e432c2bfaab27c1917426257aa56269fe74bc893
<ide><path>lib/fs.js <ide> function getOptions(options, defaultOptions) { <ide> return options; <ide> } <ide> <del>function copyObject(source, target) { <del> target = arguments.length >= 2 ? target : {}; <add>function copyObject(source) { <add> const target = {}; <ide> for (const key in source) <ide> target...
1
Python
Python
remove beam search
c0443df5939d980abbe5bb28b31f08d1628469c6
<ide><path>transformers/generate/beam_search.py <del># coding=utf-8 <del># MIT License <del> <del># Copyright (c) 2017-Present OpenNMT <del> <del># Permission is hereby granted, free of charge, to any person obtaining a copy of <del># this software and associated documentation files (the "Software"), to deal in <del># ...
2
Ruby
Ruby
teach pathname how to scan for metafiles
489ebd78d6a95c4b92ebce6d1cfc5902c93ad395
<ide><path>Library/Homebrew/build.rb <ide> def install f <ide> end <ide> <ide> # Find and link metafiles <del> install_meta_files Pathname.pwd, f.prefix <add> f.prefix.install_metafiles Pathname.pwd <ide> end <ide> end <ide> end <ide> <del>def install_meta_files src_path, dst_path <del> s...
2
Ruby
Ruby
singularize association names before camelization
bcfa2bf958ebd9e381944bd93ee2f436a1edd375
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def can_find_inverse_of_automatically?(reflection) <ide> end <ide> <ide> def derive_class_name <del> class_name = name.to_s.camelize <add> class_name = name.to_s <ide> class_name = class_name.singularize if collec...
1
Text
Text
add credit karma to company list
661b6b65455e223a433f2f136c224351548e85d7
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Clover Health](https://www.cloverhealth.com) [[@gwax](https://github.com/gwax) & [@vansivallab](https://github.com/vansivallab)] <ide> 1. Chartboost [[@cgelman](https://github.com/cgelman) & [@dclubb](https://github.com/dclubb)] <ide> 1. [Cota...
1
Python
Python
add missing `require_tf` for `tfoptgenerationtest`
ad5045e3e39442f86a6b08cd87c04338134dd55a
<ide><path>tests/models/opt/test_modeling_tf_opt.py <ide> def test_logits(self): <ide> self.assertTrue(np.allclose(logits, logits_meta, atol=1e-4)) <ide> <ide> <add>@require_tf <ide> @slow <ide> class TFOPTGenerationTest(unittest.TestCase): <ide> @property
1
Text
Text
add caveats section to custom error page
5f4947e5a2c75099f7466a6ba8274d8ab4240e6c
<ide><path>docs/advanced-features/custom-error-page.md <ide> export default function Page({ errorCode, stars }) { <ide> The `Error` component also takes `title` as a property if you want to pass in a text message along with a `statusCode`. <ide> <ide> If you have a custom `Error` component be sure to import that one i...
1
Javascript
Javascript
fix devtools test target
c3cb2c2b30b2d5e767ab57a461441d157bbb5a1e
<ide><path>scripts/jest/jest-cli.js <ide> function logError(message) { <ide> } <ide> function isWWWConfig() { <ide> return ( <del> argv.releaseChannel === 'www-classic' || <del> argv.releaseChannel === 'www-modern' <add> (argv.releaseChannel === 'www-classic' || <add> argv.releaseChannel === 'www-modern...
1
Text
Text
update readme to fix broken links.
c4508d1d13c2fabb6169d7a304200177ecc7d137
<ide><path>packages/next/README.md <ide> Please see our [contributing.md](/contributing.md). <ide> <ide> ## Authors <ide> <del>- Arunoda Susiripala ([@arunoda](https://twitter.com/arunoda)) – [Vercel](https://vercel.com/about/arunoda-zeit) <ide> - Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens)) – [Verc...
1
PHP
PHP
use view path constants in view->find() method
a4e8375febaa45cb89461a8e3f70b1d93360e07e
<ide><path>system/view.php <ide> public function get() <ide> */ <ide> protected function find() <ide> { <del> if (file_exists($path = APP_PATH.'views/'.$this->view.EXT)) <add> if (file_exists($path = VIEW_PATH.$this->view.EXT)) <ide> { <ide> return $path; <ide> } <del> elseif (file_exists($path = SYS_PATH...
1
Text
Text
add godoc and travis build link/images to readme
7cb68713552d2b153ed18bc6dcdcee5b69ef0a5f
<ide><path>README.md <ide> Under the hood, Docker is built on the following components: <ide> Contributing to Docker <ide> ====================== <ide> <add>[![GoDoc](https://godoc.org/github.com/docker/docker?status.png)](https://godoc.org/github.com/docker/docker) <add>[![Travis](https://travis-ci.org/docker/docker....
1
Javascript
Javascript
introduce meshgouraudmaterial
82c1a91b42e34c33ee7c51bca45b62be08608a29
<ide><path>examples/jsm/materials/MeshGouraudMaterial.js <add>/** <add> * MeshGouraudMaterial <add> * <add> * Lambert illumination model with Gouraud (per-vertex) shading <add> * <add> */ <add> <add>import { UniformsUtils, UniformsLib, ShaderMaterial, Color, MultiplyOperation } from 'three'; <add> <add>const GouraudSha...
3
PHP
PHP
improve code readability for humans and ides
2f7270e9fce8f5b9b16181138c8e511f3b169666
<ide><path>src/TestSuite/TestCase.php <ide> public function loadFixtures() <ide> * Useful to test how plugins being loaded/not loaded interact with other <ide> * elements in CakePHP or applications. <ide> * <del> * @param array $plugins list of Plugins to load <add> * @param array $plugins List o...
1
Go
Go
improve error message
8fa6e2b103e436435ad0f0ae00e8cc9af4c58ad4
<ide><path>runtime.go <ide> func (runtime *Runtime) Create(config *Config, name string) (*Container, []strin <ide> <ide> // Set the enitity in the graph using the default name specified <ide> if _, err := runtime.containerGraph.Set(name, id); err != nil { <add> if strings.HasSuffix(err.Error(), "name are not unique...
1
Python
Python
add assertion in test
8fa82822a07854a7036bfae84dfa9db3b4a0a61c
<ide><path>rest_framework/tests/serializer.py <ide> def test_datetime_validation_failure(self): <ide> serializer = CommentSerializer(data=data) <ide> self.assertEquals(serializer.is_valid(), False) <ide> <del> # TODO: check validation error value <add> self.assertIn('created', serializer....
1
Javascript
Javascript
fix validation test
39ef8f67e424865a6c5c0fcfaca169b22e46ceda
<ide><path>test/Validation.test.js <ide> describe("Validation", () => { <ide> }, <ide> message: [ <ide> " - configuration.entry should be one of these:", <del> " object { <key>: non-empty string | [non-empty string] } | non-empty string | [non-empty string] | function", <add> " function | object { <...
1
Javascript
Javascript
remove util from common
6f14b3a7db93d3d2e2c20b3489dd7ddb7171ee97
<ide><path>test/common.js <ide> var fs = require('fs'); <ide> var assert = require('assert'); <ide> var os = require('os'); <ide> var child_process = require('child_process'); <del>var util = require('util'); <ide> <ide> <ide> exports.testDir = path.dirname(__filename); <ide> exports.getServiceName = function getServ...
1
Javascript
Javascript
55~ 60fps
abfcd4aa188f978d07592e4f494ad30d945a171a
<ide><path>examples/js/MarchingCubes.js <ide> THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors ) <ide> <ide> this.field = new Float32Array( this.size3 ); <ide> this.normal_cache = new Float32Array( this.size3 * 3 ); <del> this.palette = new Float32Array( this.size3 * 4 ); <add> this...
1
PHP
PHP
apply suggestions from code review
45ba3d780dcd369c7b9b501f1e4276b1d41bcb90
<ide><path>src/ORM/EagerLoader.php <ide> protected function _collectKeys(array $external, Query $query, $statement): arra <ide> protected function _groupKeys(BufferedStatement $statement, array $collectKeys): array <ide> { <ide> $keys = []; <del> foreach ($statement->fetchAll('assoc') as $result)...
1
Go
Go
fix tty set issue for ioctl error
1c1cf54b0aa44553b714b82a1960b4f1199ac33a
<ide><path>container.go <ide> func (container *Container) startPty() error { <ide> // stdin <ide> if container.Config.OpenStdin { <ide> container.process.Stdin = ptySlave <add> container.process.SysProcAttr.Setctty = true <ide> go func() { <ide> defer container.stdin.Close() <ide> utils.Debugf("startPty: b...
2
Ruby
Ruby
extract package into new temporary directory
a3182a6386cdb3d5d581cc300ef27e55a388865d
<ide><path>Library/Homebrew/dev-cmd/bump-unversioned-casks.rb <ide> def self.guess_cask_version(cask, installer) <ide> .uniq <ide> <ide> if packages.count == 1 <del> extract_dir = dir/pkg_path.stem <del> system_command! "pkgutil", args: ["--expand-full", pkg_path, extract_dir] <add>...
1
Javascript
Javascript
add missing credit to header in esperanto locale
90f565fe67056916d5796bfd607dceb9845b4a33
<ide><path>src/locale/eo.js <ide> //! moment.js locale configuration <ide> //! locale : Esperanto [eo] <ide> //! author : Colin Dean : https://github.com/colindean <del>//! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. <del>//! Se ne, bonvolu korekti kaj avizi min por ke mi povas...
1
Javascript
Javascript
add ios 9 support tests results
1c2b5362ef40058d5b375a40362c88559f81a293
<ide><path>test/unit/support.js <ide> testIframeWithCallback( <ide> "radioValue": true, <ide> "reliableMarginLeft": false <ide> }; <add> } else if ( /iphone os 9/i.test( userAgent ) ) { <add> expected = { <add> "ajax": true, <add> "boxSizingReliable": true, <add> "checkClone": true, <add> "checkOn": tr...
1
Ruby
Ruby
remove todo comment i didn't mean to commit
5680a51dcbaf4239b53481fd1ae39a6f4ee4034d
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def self.visitor_for(pool) # :nodoc: <ide> adapter = pool.spec.config[:adapter] <ide> <ide> if Arel::Visitors::VISITORS[adapter] <del> # TODO: Add a test for this <del> <ide> ActiveSupport::Deprec...
1
Ruby
Ruby
add usage note to ncurses_define
20986e3ff5121e267b2791c067b9acb673b6ed7a
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def fcflags; self['FCFLAGS']; end <ide> <ide> # Snow Leopard defines an NCURSES value the opposite of most distros <ide> # See: http://bugs.python.org/issue6848 <add> # Currently only used by aalib in core <ide> def ncurses_define <ide> append 'CPPFLAGS'...
1
Text
Text
fix typos in http.md
e1bca102a7f0587bdc84c77f53d07ca76fa8e15b
<ide><path>doc/api/http.md <ide> before closing keep alive connection. <ide> <ide> A value of `null` will disable the limit. <ide> <del>When limit is reach it will set `Connection` header value to `closed`, <add>When the limit is reached it will set the `Connection` header value to `close`, <ide> but will not actuall...
1
Python
Python
fix callback issue with sequential model
1206120d1084cbe45dc2876f002cb572a97e3844
<ide><path>keras/engine/training.py <ide> def _fit_loop(self, f, ins, out_labels=[], batch_size=32, <ide> # Returns <ide> `History` object. <ide> ''' <del> self.training_data = ins <del> self.validation_data = val_ins <ide> do_validation = False <ide> if val_f a...
2
Ruby
Ruby
add missing requires to core_ext/integer/time
d963ff433cb6d80c69a315acf8ab038d78bd3fc0
<ide><path>activesupport/lib/active_support/core_ext/integer/time.rb <add>require 'active_support/duration' <add>require 'active_support/core_ext/numeric/time' <add> <ide> class Integer <ide> # Enables the use of time calculations and declarations, like <tt>45.minutes + <ide> # 2.hours + 4.years</tt>.
1
Python
Python
add th test
1abf472068ef700c66da4dc0f4beadb3ccd7c718
<ide><path>spacy/tests/conftest.py <ide> from ..bn import Bengali <ide> from ..he import Hebrew <ide> from ..nb import Norwegian <add>from ..th import Thai <ide> <ide> <ide> from ..tokens import Doc <ide> def he_tokenizer(): <ide> def nb_tokenizer(): <ide> return Norwegian.Defaults.create_tokenizer() <ide> <add>...
2
PHP
PHP
change lang back to __
da1e2b6bf8010e06eb3f72e692663a6a7e7df99c
<ide><path>laravel/helpers.php <ide> function e($value) <ide> * @param string $language <ide> * @return string <ide> */ <del>function lang($key, $replacements = array(), $language = null) <add>function __($key, $replacements = array(), $language = null) <ide> { <ide> return Laravel\Lang::line($key, $replacements,...
1
PHP
PHP
fix style ci
87cf8f1b38b6e9c3e99048e0956b5f622434d0d9
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testWhereNotBetween() <ide> $c = new Collection([['v' => 1], ['v' => 2], ['v' => 3], ['v' => '3'], ['v' => 4]]); <ide> <ide> $this->assertEquals([['v' => 1]], $c->whereNotBetween('v', [2, 4])->values()->all()); <del> $this-...
1
PHP
PHP
remove deprecated code from query class
96b756a375ac3c5c1386348aa9120f21beb9ef83
<ide><path>src/Database/Query.php <ide> public function getConnection() <ide> return $this->_connection; <ide> } <ide> <del> /** <del> * Sets the connection instance to be used for executing and transforming this query <del> * When called with a null argument, it will return the current connecti...
2
Ruby
Ruby
use rubocop 0.39
b70e4341fe1a217d51f2bf75b5e2fdb1f4e602d9
<ide><path>Library/Homebrew/cmd/style.rb <ide> def style <ide> ARGV.formulae.map(&:path) <ide> end <ide> <del> Homebrew.install_gem_setup_path! "rubocop", "0.37.2" <add> Homebrew.install_gem_setup_path! "rubocop", "0.39" <ide> <ide> args = [ <ide> "--format", "simple", "--force-exclusion", "...
1
Javascript
Javascript
fix netinfo for android
cf892a96d693af778679278549fc8fa354326f43
<ide><path>Libraries/Network/NetInfo.js <ide> var Platform = require('Platform'); <ide> var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); <ide> var RCTNetInfo = NativeModules.NetInfo; <ide> <del>var DEVICE_REACHABILITY_EVENT = 'networkDidChange'; <add>var DEVICE_REACHABILITY_EVENT = 'reachabilityDidChange'...
1
Text
Text
add example use cases for expansion cards
93bdd1973e48ba8415863ac0eb7a8fd796f358c8
<ide><path>client/src/pages/guide/english/computer-hardware/expansion-cards/index.md <ide> The primary purpose of an expansion card is to provide or expand on features not <ide> <ide> In the case of expansion of on-board capability, a motherboard may provide a single serial RS232 port or Ethernet port. An expansion ca...
1
PHP
PHP
add htmlable contract, htmlstring helper class
471d608150a263aac9ca25b96054eae2e61be649
<ide><path>src/Illuminate/Contracts/Support/Htmlable.php <add><?php <add> <add>namespace Illuminate\Contracts\Support; <add> <add>interface Htmlable <add>{ <add> /** <add> * Get content as a string of HTML <add> * <add> * @return string <add> */ <add> public function toHtml(); <add>} <ide><path>sr...
5
Javascript
Javascript
remove some closures
1122e66b56b3aa6ef7cca57eaefc0cd1a6a63ff5
<ide><path>packages/ember-htmlbars/lib/attr_nodes/quoted_class.js <ide> function ClassNode(stream, renderable) { <ide> this.lastValue = null; <ide> this.currentValue = null; <ide> this.isDirty = false; <del> var node = this; <del> stream.subscribe(function(){ <del> node.update(); <del> }); <add> stream.sub...
3
Go
Go
initialize log levels
0c8be9da3763d86c2a6e847e1667410056d6071d
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func setCloseOnExec(name string) { <ide> } <ide> <ide> func (devices *DeviceSet) DMLog(level int, file string, line int, dmError int, message string) { <del> if level >= 7 { <del> return // Ignore _LOG_DEBUG <add> if level >= devicemapper.LogLevelDebug { <add...
1
Javascript
Javascript
fix version in moment.js
af9c20c96444ed95c28769fe807f8559b292b221
<ide><path>src/moment.js <ide> //! moment.js <del>//! version : 2.8.3 <add>//! version : 2.9.0 <ide> //! authors : Tim Wood, Iskren Chernev, Moment.js contributors <ide> //! license : MIT <ide> //! momentjs.com <ide> <ide> import { hooks as moment, setHookCallback } from "./lib/utils/hooks"; <ide> <del>moment.version...
1
Text
Text
correct a mistake in writing
a9e4075a80db06c37a1d2800e90a6e92089aef94
<ide><path>threejs/lessons/threejs-load-gltf.md <ide> the new `Object3D` a `cars` array. <ide> + <ide> + root.updateMatrixWorld(); <ide> + for (const car of loadedCars.children.slice()) { <del>+ const fix = fixes.find(fix => car.name.startsWith+(fix.prefix)); <add>+ const fix = fixes.find(fix => car.nam...
1
Mixed
Ruby
fix some grammar in docs [ci skip]
5d3abc06c39a366cc4da3cda1725d92809e2f168
<ide><path>actionpack/lib/action_dispatch/system_test_case.rb <ide> class SystemTestCase < IntegrationTest <ide> # end <ide> # end <ide> # <del> # When generating an application or scaffold a +application_system_test_case.rb+ <add> # When generating an application or scaffold, an +application_sy...
2