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
move boolean value handling logic into radiowidget
0a0bff0e11ca7a26065829a826e3624d1330691a
<ide><path>src/View/Widget/Radio.php <ide> public function __construct($templates, $label) { <ide> * - `val` - A string of the option to mark as selected. <ide> * - `label` - Either false to disable label generation, or <ide> * an array of attributes for all labels. <add> * - `required` - Set to true to add the re...
3
Text
Text
update example render for react v18
e912da964dbf5f84bf8c4e78e0ac218362bc074e
<ide><path>README.md <ide> You can improve it by sending pull requests to [this repository](https://github. <ide> We have several examples [on the website](https://reactjs.org/). Here is the first one to get you started: <ide> <ide> ```jsx <add>import { createRoot } from 'react-dom/client'; <add> <ide> function HelloM...
1
Javascript
Javascript
use collision detection for dorling cartogram
bb5d7873a772c63f33e899f14be64df51428e2fd
<ide><path>examples/cartogram/dorling.js <ide> var data = [ <ide> ]; <ide> <ide> var force = d3.layout.force() <del> .gravity(.015) <add> .gravity(0) <add> .charge(0) <ide> .distance(function(l) { <ide> return l.length; <ide> }) <ide> .size([960, 500]); <ide> <del>var svg = d3.select("#char...
1
Ruby
Ruby
remove consts if loading failed
90e9d177894f76b5f5081d3be2a92245b2aafeda
<ide><path>Library/Homebrew/formulary.rb <ide> def self.load_formula(name, path, contents, namespace, flags:) <ide> mod.const_set(:BUILD_FLAGS, flags) <ide> mod.module_eval(contents, path) <ide> rescue NameError, ArgumentError, ScriptError, MethodDeprecatedError => e <add> remove_const(namespace) <...
1
Python
Python
introduce weighting of labels
11e961fdf848808bb63489bd698908d80119910e
<ide><path>keras/models.py <ide> def standardize_y(y): <ide> if not hasattr(y, 'shape'): <ide> y = np.asarray(y) <ide> if len(y.shape) == 1: <del> y = np.reshape(y, (len(y), 1)) <add> y = np.expand_dims(y, 1) <ide> return y <ide> <ide> def make_batches(size, batch_size): <ide> def sli...
3
Python
Python
add another randomness into the password generator
4b43a2f50740bbeab95f64137eb8993ed8ac4617
<ide><path>other/password_generator.py <ide> import string <del>from random import * <add>import random <ide> <del>letters = string.ascii_letters <del>digits = string.digits <del>symbols = string.punctuation <add>letters = [letter for letter in string.ascii_letters] <add>digits = [digit for digit in string.digits] <ad...
1
PHP
PHP
hastable
0a26661949db13fb3f3c878177f77d8d3a8fa987
<ide><path>src/Illuminate/Database/PostgresConnection.php <ide> <ide> namespace Illuminate\Database; <ide> <add>use Illuminate\Database\Schema\PostgresBuilder; <ide> use Doctrine\DBAL\Driver\PDOPgSql\Driver as DoctrineDriver; <ide> use Illuminate\Database\Query\Processors\PostgresProcessor; <ide> use Illuminate\Datab...
3
Javascript
Javascript
remove license header from third-party code
5fae86fb962e024582f24502bb39c4a87ada4430
<ide><path>flow-typed/npm/base64-js_v1.x.x.js <ide> /** <del> * (c) Facebook, Inc. and its affiliates. Confidential and proprietary. <del> * <ide> * @flow strict <ide> * @format <ide> */ <ide><path>flow-typed/npm/pretty-format_v26.x.x.js <ide> /** <del> * (c) Facebook, Inc. and its affiliates. Confidential and propr...
6
PHP
PHP
remove some spacial overkill
ec619eec04397df8ad2b780baaa46cabbfad548a
<ide><path>lib/Cake/Console/Command/Task/DbConfigTask.php <ide> protected function _verify($config) { <ide> $this->out(__d('cake_console', 'The following database configuration will be created:')); <ide> $this->hr(); <ide> $this->out(__d('cake_console', "Name: %s", $name)); <del> $this->out(__d('cake_con...
1
Javascript
Javascript
remove donation message for unauthorized users
99a30d4b6552eda134892e2311d19faeb13c5cd9
<ide><path>client/src/client-only-routes/ShowCertification.js <ide> class ShowCertification extends Component { <ide> if ( <ide> !isDonationDisplayed && <ide> userComplete && <add> signedInUserName && <ide> signedInUserName === username && <ide> !isDonating <ide> ) {
1
Go
Go
fix cleanup for tests
4508bd94b0efd07a0ef48cd090786615e6b8cbb7
<ide><path>pkg/symlink/fs_test.go <ide> func TestFollowSymLinkUnderLinkedDir(t *testing.T) { <ide> if err != nil { <ide> t.Fatal(err) <ide> } <add> defer os.RemoveAll(dir) <ide> <ide> os.Mkdir(filepath.Join(dir, "realdir"), 0700) <ide> os.Symlink("realdir", filepath.Join(dir, "linkdir"))
1
Javascript
Javascript
fix indentation of inline snapshots in tests
ee01be3462a142fd8d75efee5b1855111817f9ab
<ide><path>Libraries/Lists/__tests__/VirtualizedList-test.js <ide> describe('VirtualizedList', () => { <ide> Array [ <ide> Array [ <ide> "A VirtualizedList contains a cell which itself contains more than one VirtualizedList of the same orientation as the parent list. You must pass a unique...
1
Go
Go
fix breakouts from git root during build
7f7ebeffe81760e2e0a711eb480dd0e0e8cf24dc
<ide><path>utils/git.go <ide> import ( <ide> "path/filepath" <ide> "strings" <ide> <add> "github.com/docker/docker/pkg/symlink" <ide> "github.com/docker/docker/pkg/urlutil" <ide> ) <ide> <ide> func checkoutGit(fragment, root string) (string, error) { <ide> } <ide> <ide> if len(refAndDir) > 1 && len(refAndDir[1]...
2
Text
Text
add r2curl in ecosystem
299e827c577c2f1461e17678282f4d19a753e6f2
<ide><path>ECOSYSTEM.md <ide> This is a list of axios related libraries and resources. If you have a suggestio <ide> * [axios-curlirize](https://www.npmjs.com/package/axios-curlirize) - Logs axios requests as curl commands, also adds a property to the response object with the curl command as value. <ide> * [axios-actio...
1
Ruby
Ruby
tell the user when build logs are copied
aef580261b2452eda2ebad666f27692e94cbf7ef
<ide><path>Library/Homebrew/formula.rb <ide> def brew <ide> yield self <ide> rescue Interrupt, RuntimeError, SystemCallError => e <ide> unless ARGV.debug? <del> logs = File.expand_path '~/Library/Logs/Homebrew/' <del> if File.exist? 'config.log' <del> mkdir_p logs <del...
2
Javascript
Javascript
use less container trickery
6a71ff26042f2e6f9516f9616d88159a2acd8bec
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Namespace.extend(DeferredMixin, { <ide> <ide> // For the default instance only, set the view registry to the global <ide> // Ember.View.views hash for backwards-compatibility. <del> var registry = instance.applicationReg...
1
Ruby
Ruby
remove time calculatiosn extension
ff9b38a7b556d103f94ab84aab237406a72dd61a
<ide><path>activesupport/lib/active_support/file_update_checker.rb <add>require 'active_support/core_ext/time/calculations' <add> <ide> module ActiveSupport <ide> # FileUpdateChecker specifies the API used by Rails to watch files <ide> # and control reloading. The API depends on four methods:
1
PHP
PHP
remove tests which are not expected to pass
8ac036a078d1a8263432f0f102971ca6e324709a
<ide><path>tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php <ide> public function testCustomTableLocator() <ide> $this->assertNotSame($this->getTableLocator(), $behaviorLocator); <ide> } <ide> <del> /** <del> * Tests that using matching doesn't cause an association property to be created. <del>...
1
PHP
PHP
use strict typing for routing package
ee78231c2feab109cafac8e116db8d8bdd515650
<ide><path>src/Controller/Component/AuthComponent.php <ide> public function redirectUrl($url = null): string <ide> if ($url !== null) { <ide> $redirectUrl = $url; <ide> } elseif ($redirectUrl) { <del> if (Router::normalize($redirectUrl) === Router::normalize($this->_config['loginA...
30
Python
Python
add exceptions for `batch_dot`
918c5991faa21cbb48de07566124c57cf16c0cf0
<ide><path>keras/backend/cntk_backend.py <ide> def batch_dot(x, y, axes=None): <ide> if axes is None: <ide> # behaves like tf.batch_matmul as default <ide> axes = [len(x_shape) - 1, len(y_shape) - 2] <add> if b_any([isinstance(a, (list, tuple)) for a in axes]): <add> raise ValueError('Mult...
3
Text
Text
add document describing the rn ecosystem.
a1250da64625c1da581fe600f805fd321cd12d4f
<ide><path>ECOSYSTEM.md <add># The React Native Ecosystem <add> <add>We aim to build a vibrant and inclusive ecosystem of partners, core contributors, and community that goes beyond the main React Native GitHub repository. This document explains the roles and responsibilities of various stakeholders and provides guidel...
2
Go
Go
move the kernel detection to arch specific files
16aeb77d5155cf33d1637073b9ca56728d472b49
<ide><path>getKernelVersion_darwin.go <add>package docker <add> <add>func getKernelVersion() (*KernelVersionInfo, error) { <add> return nil, fmt.Errorf("Kernel version detection is not available on darwin") <add>} <ide><path>getKernelVersion_linux.go <add>package docker <add> <add>import ( <add> "strconv" <add> "string...
3
Ruby
Ruby
remove stray space
5561d3d09c760effce6621628a6612df16f5ec66
<ide><path>Library/Homebrew/requirements/python_dependency.rb <ide> def minor <ide> end <ide> end <ide> <del> def initialize(default_version="2.6", tags=[] ) <add> def initialize(default_version="2.6", tags=[]) <ide> tags = [tags].flatten <ide> # Extract the min_version if given. Default to default_ver...
1
Ruby
Ruby
handle multiple results
2056e24a12a48b9776e78992cfe77494d64ca3f8
<ide><path>Library/Homebrew/macos.rb <ide> def app_with_bundle_id id <ide> end <ide> <ide> def mdfind attribute, id <del> path = `mdfind "#{attribute} == '#{id}'"`.strip <add> path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first.strip <ide> Pathname.new(path) unless path.empty? <ide> end <ide>
1
Javascript
Javascript
favor arrow function in callback
21522cb713250cb353d8fb43a70f936e32b88eaf
<ide><path>test/parallel/test-zlib-close-after-write.js <ide> const common = require('../common'); <ide> const zlib = require('zlib'); <ide> <del>zlib.gzip('hello', common.mustCall(function(err, out) { <add>zlib.gzip('hello', common.mustCall((err, out) => { <ide> const unzip = zlib.createGunzip(); <ide> unzip.writ...
1
Python
Python
write failing test
0ad41a09ae7d4d48cd3ba402296ee7d3022b7fa2
<ide><path>t/unit/tasks/test_canvas.py <ide> def test_app_when_app_in_task(self): <ide> x = chord([t1], body=t2) <ide> assert x.app is t2._app <ide> <add> def test_app_when_header_is_empty(self): <add> x = chord([], self.add.s(4, 4)) <add> assert x.app is self.add.app <add> <ide> @...
1
PHP
PHP
fix failing tests
389415f628b6881d587b5498d3df3de7871b7bcf
<ide><path>tests/TestCase/Core/PluginTest.php <ide> public function testUnload() <ide> */ <ide> public function testLoadSingleWithAutoload() <ide> { <del> $this->assertFalse(class_exists('Company\TestPluginThree\Utility\Hello')); <del> Plugin::load('Company/TestPluginThree', [ <add> $t...
1
Ruby
Ruby
fix printing of unexpected bin/lib files
5f6b10f39adbf6fc256eaf58945f5c95db0cbd14
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_jars <ide> Installing JARs to "lib" can cause conflicts between packages. <ide> For Java software, it is typically better for the formula to <ide> install to "libexec" and then symlink or wrap binaries into "bin". <del> ...
1
Text
Text
add clarification to question and escape backslash
da166363eb5dadd15a298a74088f3ab68a28e01e
<ide><path>curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/regular-expressions.english.md <ide> videoId: Yud_COr6pZo <ide> ```yml <ide> question: <ide> text: | <del> Which regex only matches a white space character? <add> Which regex matches only a white space character? <...
1
Java
Java
refine precomputefieldfeature logging
bfe37c290e033aa1684faf61941bbbceb1d3324d
<ide><path>spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java <ide> private void iterateFields(DuringAnalysisAccess access, Class<?> subtype) { <ide> System.out.println("Field " + fieldIdentifier + " set to " + fieldValue + " at build time"); <ide> } <ide> c...
1
Javascript
Javascript
implement platform specific protocolforurl
6591d689689e3c1203fc3dc94d1ba234433328a1
<ide><path>packages/ember-glimmer/lib/environment.js <ide> import { default as normalizeClassHelper } from './helpers/-normalize-class'; <ide> import { default as htmlSafeHelper } from './helpers/-html-safe'; <ide> import { OWNER } from 'container'; <ide> <add>import installPlatformSpecificProtocolForURL from './proto...
2
Text
Text
improve write style consistency
86454cbd139d21b5646bb704971b6a27a32b379d
<ide><path>CHANGELOG.md <ide> repository and therefore can be seen as an extension to v0.11. <ide> <ide> - The V8 JavaScript engine bundled with io.js was upgraded dramatically, from version 3.14.5.9 in Node.js v0.10.35 and 3.26.33 in Node.js v0.11.14 to 3.31.74.1 for io.js v1.0.0. This brings along many fixes and per...
1
Ruby
Ruby
add audit check for url schema
e363889d27bb7fddaea513fb733c3c050d3af144
<ide><path>Library/Homebrew/cask/lib/hbc/audit.rb <ide> def run! <ide> check_url <ide> check_generic_artifacts <ide> check_token_conflicts <add> check_https_availability <ide> check_download <ide> check_single_pre_postflight <ide> check_single_uninstall_zap <ide> def core_formul...
1
Javascript
Javascript
fix breaking test in chrome
659773348f1fca0fb609f92271013f2a087f3247
<ide><path>src/effects.js <ide> jQuery.fn.extend({ <ide> <ide> if ( parts ) { <ide> var end = parseFloat( parts[2] ), <del> unit = parts[3] || jQuery.cssNumber[ name ] ? "" : "px"; <add> unit = parts[3] || ( jQuery.cssNumber[ name ] ? "" : "px" ); <ide> <ide> // We need to compute startin...
2
Ruby
Ruby
add actioncable.server singleton
c811bed8e1fd67869452acb4818c3264e82d627c
<ide><path>lib/action_cable.rb <ide> module ActionCable <ide> autoload :RemoteConnection, 'action_cable/remote_connection' <ide> autoload :RemoteConnections, 'action_cable/remote_connections' <ide> autoload :Broadcaster, 'action_cable/broadcaster' <add> <add> # Singleton instance of the server <add> module_func...
1
Javascript
Javascript
fix printing regression from
c9f23905675a16251fe688fcbd05847acad8c9a4
<ide><path>web/viewer.js <ide> var PDFView = { <ide> bindOnAfterDraw(pageView, thumbnailView); <ide> pages.push(pageView); <ide> thumbnails.push(thumbnailView); <add> if (!PDFJS.disableAutoFetch) { <add> pagePromises.push(pdfDocument.getPage(pageNum).then( <add> functi...
1
Javascript
Javascript
rewrite the suspense logic
0f536bba5c4354838d4dc1f3fdf226d1b0e67ee9
<ide><path>src/backend/renderer.js <ide> import { <ide> TREE_OPERATION_ADD, <ide> TREE_OPERATION_REMOVE, <ide> TREE_OPERATION_RESET_CHILDREN, <add> TREE_OPERATION_RECURSIVE_REMOVE_CHILDREN, <ide> TREE_OPERATION_UPDATE_TREE_BASE_DURATION, <ide> } from '../constants'; <ide> import { getUID } from '../utils'; <id...
3
Go
Go
add missing comments to runtime.go
6a9f4ecf9bc4263baef8e9a1d86f1474f9c66d31
<ide><path>runtime.go <ide> func init() { <ide> sysInitPath = utils.SelfPath() <ide> } <ide> <add>// List returns an array of all containers registered in the runtime. <ide> func (runtime *Runtime) List() []*Container { <ide> containers := new(History) <ide> for e := runtime.containers.Front(); e != nil; e = e.Next...
1
Text
Text
update euler-50 solution with prime sieve
4be4bf36242a6406e10594e5b53575eea2c819d0
<ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-50-consecutive-prime-sum.md <ide> consecutivePrimeSum(1000000); <ide> # --solutions-- <ide> <ide> ```js <del>function consecutivePrimeSum(limit) { <del> function isPrime(num) { <del> if (num < 2) { <del> return false; <del...
1
Javascript
Javascript
enlarge clickable area of tutorial nav buttons
d3491083a54b6d653687a4d96720cd8fc3efaac5
<ide><path>docs/src/templates/js/docs.js <ide> docsApp.directive.docTutorialNav = function(templateMerge) { <ide> element.addClass('btn-group'); <ide> element.addClass('tutorial-nav'); <ide> element.append(templateMerge( <del> '<li class="btn btn-primary"><a href="tutorial/{{prev}}"><i class="i...
1
Javascript
Javascript
update code style
cc96ff069288d5979e9a056b82ff141a59827f32
<ide><path>editor/js/Sidebar.Material.js <ide> Sidebar.Material = function ( editor ) { <ide> <ide> } <ide> <del> if ( material.depthPacking !== undefined) { <add> if ( material.depthPacking !== undefined ) { <add> <add> var depthPacking = parseInt( materialDepthPacking.getValue() ); <add> if ( material....
1
Javascript
Javascript
fix isdict when type is missing in dictionary
a79f0055276a04671711686e137a8739543a21bc
<ide><path>src/util.js <ide> function isCmd(v, cmd) { <ide> } <ide> <ide> function isDict(v, type) { <del> return v instanceof Dict && (!type || v.get('Type').name == type); <add> if (!(v instanceof Dict)) { <add> return false; <add> } <add> if (!type) { <add> return true; <add> } <add> var dictType = v.ge...
2
Java
Java
fix definition of nativeanimated.isempty
bf405d70837e1319cfa83e4c5cbb7c9a69abd820
<ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java <ide> private class ConcurrentOperationQueue { <ide> <ide> @AnyThread <ide> boolean isEmpty() { <del> return mQueue.isEmpty(); <add> return mQueue.isEmpty() && mPeekedOperation != null; <ide> } <ide> <ide...
1
Text
Text
add olegas as collaborator
11ed5f31abc6fc58e6f4b57a6088c7ea0043cdd2
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Alex Kocharin** ([@rlidwka](https://github.com/rlidwka)) &lt;alex@kocharin.ru&gt; <ide> * **Christopher Monsanto** ([@monsanto](https://github.com/monsanto)) &lt;chris@monsan.to&gt; <ide> * **Ali Ijaz Sheikh** ([@ofrobots](h...
1
Ruby
Ruby
fix bug in any_bottle_tag
f70a2c67da7dfb4abf7c6ae0044abb248d518781
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> def bottle_info_any <ide> end <ide> <ide> def any_bottle_tag <del> tag = Utils::Bottles.tag <add> tag = Utils::Bottles.tag.to_s <ide> # Prefer native bottles as a convenience for download caching <ide> bottle_tags.include?(tag) ? tag : bot...
1
Python
Python
add flags for adam hyperparameters
f3be93a730ed41e2dea5c593e0f8c1cf7186290c
<ide><path>official/recommendation/ncf_main.py <ide> def run_ncf(_): <ide> "tpu": FLAGS.tpu, <ide> "tpu_zone": FLAGS.tpu_zone, <ide> "tpu_gcp_project": FLAGS.tpu_gcp_project, <add> "beta1": FLAGS.beta1, <add> "beta2": FLAGS.beta2, <add> "epsilon": FLAGS.epsilon, ...
2
Python
Python
use sparse meshgrid instead of indices().tolist()
39fbc1b1e7aee9220c62d8aeaa47eb885a4fde96
<ide><path>numpy/ma/core.py <ide> def sort(self, axis= -1, kind='quicksort', order=None, <ide> filler = maximum_fill_value(self) <ide> else: <ide> filler = fill_value <del> idx = np.indices(self.shape) <add> idx = np.meshgrid(*[np.arange(x) for x in ...
1
Javascript
Javascript
fix uniforms to support fog
10710ebf2cbaee16d742094bf41d74a7c2304c91
<ide><path>examples/jsm/loaders/LDrawLoader.js <ide> import { <ide> MeshPhongMaterial, <ide> MeshStandardMaterial, <ide> ShaderMaterial, <add> UniformsLib, <add> UniformsUtils, <ide> Vector3 <ide> } from '../../../build/three.module.js'; <ide> <ide> var LDrawLoader = ( function () { <ide> edgeMaterial.userData...
1
Text
Text
fix typo in buffer.md
fb93b713075caa302b617a6cdb495f649bc45622
<ide><path>doc/api/buffer.md <ide> added: v15.7.0 <ide> * `type` {string} The content-type for the new `Blob` <ide> <ide> Creates and returns a new `Blob` containing a subset of this `Blob` objects <del>data. The original `Blob` is not alterered. <add>data. The original `Blob` is not altered. <ide> <ide> ### `blob.te...
1
Javascript
Javascript
replace _binding with _handle
5344d0c1034b28f9e6de914430d8c8436ad85105
<ide><path>lib/crypto.js <ide> exports.createHash = exports.Hash = Hash; <ide> function Hash(algorithm, options) { <ide> if (!(this instanceof Hash)) <ide> return new Hash(algorithm, options); <del> this._binding = new binding.Hash(algorithm); <add> this._handle = new binding.Hash(algorithm); <ide> LazyTransf...
2
Text
Text
update hasfipscrypto in test/common/readme
2111207f445f591a412a9420464d451ef748975a
<ide><path>test/common/README.md <ide> Indicates whether OpenSSL is available. <ide> ### hasFipsCrypto <ide> * [&lt;boolean>] <ide> <del>Indicates `hasCrypto` and `crypto` with fips. <add>Indicates that Node.js has been linked with a FIPS compatible OpenSSL library, <add>and that FIPS as been enabled using `--enable-f...
1
Text
Text
fix typo for rewrites to rewrite.
5646e43f8347db00a94f5deb103ec45a9a50236f
<ide><path>docs/api-reference/next/server.md <ide> export function middleware(request: NextRequest) { <ide> const { device } = userAgent(request) <ide> const viewport = device.type === 'mobile' ? 'mobile' : 'desktop' <ide> url.searchParams.set('viewport', viewport) <del> return NextResponse.rewrites(url) <add> ...
3
PHP
PHP
add autoloaders for testapp and test plugins
44b31a0b2c51fe954af9753820704d0dd0ab4f02
<ide><path>lib/Cake/Test/init.php <ide> define('WWW_ROOT', APP . WEBROOT_DIR . DS); <ide> define('TESTS', APP . 'Test' . DS); <ide> <add>define('TEST_APP', ROOT . '/lib/Cake/Test/TestApp/'); <add> <ide> //@codingStandardsIgnoreStart <ide> @mkdir(LOGS); <ide> @mkdir(CACHE); <ide> <ide> (new Cake\Core\ClassLoader('Cake...
1
PHP
PHP
add early return
05bb2b83df8f4c6dfd94b52c50e66b71e8f46729
<ide><path>src/Illuminate/Translation/Translator.php <ide> public function get($key, array $replace = [], $locale = null, $fallback = true) <ide> if (! is_null($line = $this->getLine( <ide> $namespace, $group, $locale, $item, $replace <ide> ))) { <del> ...
1
Javascript
Javascript
improve the usage of typeerror[invalid_arg_type]
e22b8d0c46728ebdaf64176191ffa2bdd0f56be9
<ide><path>lib/_http_client.js <ide> function ClientRequest(options, cb) { <ide> // when createConnection is provided. <ide> } else if (typeof agent.addRequest !== 'function') { <ide> throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'Agent option', <del> ['Agent-like object', '...
55
Javascript
Javascript
add some path benchmarks for
0d15161c2402be7bcdb575bc425307d8c9fef32b
<ide><path>benchmark/path/format.js <add>var common = require('../common.js'); <add>var path = require('path'); <add> <add>var bench = common.createBenchmark(main, { <add> type: ['win32', 'posix'], <add> n: [1e7], <add>}); <add> <add>function main(conf) { <add> var n = +conf.n; <add> var p = path[conf.type]; <add> ...
6
Text
Text
finalize changelog for 1.8.0
e996eacc3c684814b534fce469f37b4579846b62
<ide><path>CHANGELOG.md <ide> <ide> * [BREAKING] Require Handlebars 2.0. See [blog post](http://emberjs.com/blog/2014/10/16/handlebars-update.html) for details. <ide> <del>### Ember 1.8.0-beta.3 (September, 27, 2014) <del> <add>### Ember 1.8.0 (October, 28, 2014) <add> <add>* [BUGFIX] Ensure published builds do not u...
1
Go
Go
fix login command
05c18a2434ab7bd68a86c87fe866bc7107ac1941
<ide><path>registry/service.go <ide> func (s *Service) Auth(job *engine.Job) engine.Status { <ide> authConfig.ServerAddress = endpoint.String() <ide> } <ide> <del> if _, err := Login(authConfig, HTTPRequestFactory(nil)); err != nil { <add> status, err := Login(authConfig, HTTPRequestFactory(nil)) <add> if err != ni...
1
PHP
PHP
add attachfromstorage to mailables
0fa361d0e2e111a1a684606a675b414ebd471257
<ide><path>src/Illuminate/Mail/Mailable.php <ide> use Illuminate\Contracts\Translation\Translator; <ide> use Illuminate\Contracts\Mail\Mailer as MailerContract; <ide> use Illuminate\Contracts\Mail\Mailable as MailableContract; <add>use Illuminate\Contracts\Filesystem\Factory as FilesystemFactory; <ide> <ide> class Mai...
1
Go
Go
remove an image
de1c361a6eea95c867c43619fc1e7a7b8a147750
<ide><path>dockerd/dockerd.go <ide> func (srv *Server) CmdInspect(stdin io.ReadCloser, stdout io.Writer, args ...str <ide> return nil <ide> } <ide> <add>// 'docker rmi NAME' removes all images with the name NAME <add>func (srv *Server) CmdRmi(stdin io.ReadCloser, stdout io.Writer, args ...string) error { <add> cmd :=...
2
Python
Python
remove explicit id column setting in test
abccbcf52da4a0f0c388b8a770b5de04d6d6e64c
<ide><path>tests/migrations/test_operations.py <ide> def test_create_model_m2m(self): <ide> operation.database_forwards("test_crmomm", editor, project_state, new_state) <ide> self.assertTableExists("test_crmomm_stable") <ide> self.assertTableExists("test_crmomm_stable_ponies") <del> s...
1
Javascript
Javascript
fix reducer import in test
f2542fe69fd76d4992b28b85804a1e711acba4b0
<ide><path>examples/todos/test/reducers/todos.spec.js <ide> import expect from 'expect' <del>import { todos } from '../../reducers/todos' <add>import todos from '../../reducers/todos' <ide> <ide> describe('todos reducer', () => { <ide> it('should handle initial state', () => {
1
Python
Python
add contextmanager methods to testing pipeline
043f7935654798e949897c6bd0c70ebd5a6dfe90
<ide><path>celery/tests/backends/test_redis.py <ide> def add_step(*args, **kwargs): <ide> return self <ide> return add_step <ide> <add> def __enter__(self): <add> return self <add> <add> def __exit__(self, type, value, traceback): <add> pass <add> <ide> def execute(self): <i...
1
Javascript
Javascript
add test for gh-2177
a639cf7d84c49a963f628db6fc9f2118a00f4efd
<ide><path>test/simple/test-dgram-send-error.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software without r...
1
Text
Text
fix code example in readme
dbc95e81810a06600669dbc101d90753b5bae2a5
<ide><path>src/Console/README.md <ide> exit($runner->run($argv)); <ide> For our `Application` class we can start with: <ide> <ide> ```php <del>namespace App <add>namespace App; <ide> <ide> use App\Command\HelloCommand; <del>use Cake\Core\BaseApplication; <add>use Cake\Core\ConsoleApplicationInterface; <ide> <del>cla...
1
Text
Text
add missing space
ab0146075ab063f601030178f3e1da56e886199e
<ide><path>actionpack/CHANGELOG.md <ide> <ide> See PR [#26703](https://github.com/rails/rails/pull/26703) <ide> <del> *Eileen M.Uchitelle* <add> *Eileen M. Uchitelle* <ide> <ide> * Remove deprecated `.to_prepare`, `.to_cleanup`, `.prepare!` and `.cleanup!` from `ActionDispatch::Reloader`. <ide>
1
Javascript
Javascript
remove useless docs heading
1de7411c8bff2bf2c3d8dab40c4d6a5ad247084b
<ide><path>src/ng/directive/ngPluralize.js <ide> * @restrict EA <ide> * <ide> * @description <del> * # Overview <ide> * `ngPluralize` is a directive that displays messages according to en-US localization rules. <ide> * These rules are bundled with angular.js, but can be overridden <ide> * (see {@link guide/i18n A...
1
Python
Python
add an executor for end-to-end running
e6f7f4533c183800c2a9ac526d8ee8887e96ac5d
<ide><path>django/db/migrations/executor.py <add>from .loader import MigrationLoader <add>from .recorder import MigrationRecorder <add> <add> <add>class MigrationExecutor(object): <add> """ <add> End-to-end migration execution - loads migrations, and runs them <add> up or down to a specified set of targets. <a...
7
PHP
PHP
add fieldtype to form\schema
ff289fbc1c13f0dc93bc06436c3bd28464bfa661
<ide><path>src/Form/Schema.php <ide> public function isRequired($name) { <ide> return (bool) $field['required']; <ide> } <ide> <add>/** <add> * Get the type of the named field. <add> * <add> * @param string $field The name of the field. <add> * @return string|null Either the field type or null if the <add> * fiel...
2
Mixed
Text
add quick start pages
6c8055194a580a2ddf63394faf51ff277332fa5b
<ide><path>docs/tutorials/quick-start.md <add>--- <add>id: quick-start <add>title: Quick Start <add>sidebar_label: Quick Start <add>hide_title: true <add>--- <add> <add>&nbsp; <add> <add># Redux Toolkit Quick Start <add> <add>:::tip What You'll Learn <add> <add>- How to set up and use Redux Toolkit with React-Redux <ad...
4
Go
Go
add default path to 'scratch' images
d3ea7e80e879b506bddffd51c3ab65b8078a34f4
<ide><path>builder/dockerfile/dispatchers.go <ide> func from(b *Builder, args []string, attributes map[string]bool, original string <ide> <ide> name := args[0] <ide> <add> var ( <add> image builder.Image <add> err error <add> ) <add> <ide> // Windows cannot support a container with no base image. <ide> if name...
3
Python
Python
add tests using matrices
ff459fd2dc3641486b35c672e0d48855669a13a5
<ide><path>numpy/lib/tests/test_nanfunctions.py <ide> def test_matrices(self): <ide> assert_(res.shape == (3, 1)) <ide> res = f(mat) <ide> assert_(np.isscalar(res)) <add> # check that rows of nan are dealt with for subclasses (#4628) <add> mat[1] = np.nan <add> f...
1
Text
Text
fix typo in the changelog entry
790b4011b27b4d4454c1613922887ed944aa6c8d
<ide><path>railties/CHANGELOG.md <del>* Added `--model-name` scaffld\_controller\_generator option. <add>* Added `--model-name` option to `ScaffoldControllerGenerator`. <ide> <ide> *yalab* <ide>
1
Ruby
Ruby
add empty string test
29070e5cbecad6553b29bb482ce94352682b9c64
<ide><path>Library/Homebrew/test/rubocops/formula_desc_cop_spec.rb <ide> class Foo < Formula <ide> end <ide> end <ide> <add> it "reports an offense when desc is an empty string" do <add> source = <<-EOS.undent <add> class Foo < Formula <add> url 'http://example.com/foo-1.0.tgz' <add> ...
1
PHP
PHP
add stubs for postgres + sqlite schema dialects
5de0541c926899defe1365d0f7e6bc0d5a56d0e6
<ide><path>lib/Cake/Database/Dialect/PostgresDialectTrait.php <ide> public function convertFieldDescription($row, $fieldParams = []) { <ide> return $schema; <ide> } <ide> <add>/** <add> * Get the schema dialect. <add> * <add> * Used by Cake\Schema package to reflect schema and <add> * generate schema. <add> * <add>...
2
Java
Java
polish various test classes
1ade9b54331d199534b729d10340bab211b3272c
<ide><path>spring-core/src/test/java/org/springframework/core/AbstractGenericsTests.java <del>/* <del> * Copyright 2002-2006 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> * Yo...
7
Ruby
Ruby
remove warnings on ruby 2.1
5402b72faafecfa1eda8afce0e0f194fcf385fe3
<ide><path>activesupport/lib/active_support/hash_with_indifferent_access.rb <ide> def deep_symbolize_keys; to_hash.deep_symbolize_keys! end <ide> def to_options!; self end <ide> <ide> def select(*args, &block) <del> dup.tap {|hash| hash.select!(*args, &block)} <add> dup.tap { |hash| hash.select!(*arg...
2
Java
Java
use dynamicfromobject to avoid maps
a46fba5dd366144d76a56a6e780c5183a14d18cb
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/DynamicFromObject.java <add>/** <add> * Copyright (c) Facebook, Inc. and its 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> <add>pac...
8
Text
Text
clarify usage of tmpdir.refresh()
127f47e3e83389605079544f6e73b32459b39b1a
<ide><path>test/common/README.md <ide> The realpath of the testing temporary directory. <ide> <ide> Deletes and recreates the testing temporary directory. <ide> <del>The first time `refresh()` runs, it adds a listener to process `'exit'` that <add>The first time `refresh()` runs, it adds a listener to process `'exit...
1
Javascript
Javascript
fix eslint warnings using 'yarn lint --fix'
edb6ca72fdc04576a503aa8e5f34c32d2f727750
<ide><path>Libraries/Alert/Alert.js <ide> type Options = { <ide> <ide> /** <ide> * Launches an alert dialog with the specified title and message. <del> * <add> * <ide> * See http://facebook.github.io/react-native/docs/alert.html <ide> */ <ide> class Alert { <ide> <ide> /** <ide> * Launches an alert dialog wi...
22
PHP
PHP
add attribute pattern matching
31181f58d6b9b60225cd3a225d8d40d1265fb70a
<ide><path>lib/Cake/Test/Case/Utility/Set2Test.php <ide> public function testExtractAttributeMultiple() { <ide> $this->assertEquals(4, $expected[0]['user_id']); <ide> } <ide> <add>/** <add> * Test attribute pattern matching. <add> * <add> * @return void <add> */ <add> public function testExtractAttributePattern() {...
2
Javascript
Javascript
make test for source.buffer more strict
6e383cfbab3b18b88cccde4d4ceb99234d3fce8c
<ide><path>lib/Compiler.js <ide> class Compiler extends Tapable { <ide> // get the binary (Buffer) content from the Source <ide> /** @type {Buffer} */ <ide> let content; <del> if (source.buffer) { <add> if (typeof source.buffer === "function") { <ide> content = source.buffer(); ...
1
Text
Text
fix default config init in transformer api docs
d0236136a22d0b3019c6a68343c26e193d7f5510
<ide><path>website/docs/api/transformer.md <ide> on the transformer architectures and their arguments and hyperparameters. <ide> > #### Example <ide> > <ide> > ```python <del>> from spacy_transformers import Transformer, DEFAULT_CONFIG <add>> from spacy_transformers import Transformer <add>> from spacy_transformers.pip...
1
PHP
PHP
apply fixes from styleci
618b49a38bfc88717ea61869284c2254aca5bbfb
<ide><path>tests/Mail/MailLogTransportTest.php <ide> use Psr\Log\LoggerInterface; <ide> use Orchestra\Testbench\TestCase; <ide> use Monolog\Handler\StreamHandler; <del>use Monolog\Handler\RotatingFileHandler; <ide> use Illuminate\Mail\Transport\LogTransport; <ide> <ide> class MailLogTransportTest extends TestCase
1
Python
Python
remove `xcom_push` flag from `bashoperator`
05b7a625aec759ccdc4276c11ec0b827aebdb013
<ide><path>airflow/operators/bash.py <ide> def __init__( <ide> self.skip_exit_code = skip_exit_code <ide> self.cwd = cwd <ide> self.append_env = append_env <del> if kwargs.get('xcom_push') is not None: <del> raise AirflowException("'xcom_push' was deprecated, use 'BaseOperator....
1
Go
Go
add trust key creation on client
ac8d964b28f23c9790102462a040054e7857cb26
<ide><path>docker/docker.go <ide> import ( <ide> "fmt" <ide> "io/ioutil" <ide> "os" <add> "path" <ide> "strings" <ide> <ide> log "github.com/Sirupsen/logrus" <ide> import ( <ide> flag "github.com/docker/docker/pkg/mflag" <ide> "github.com/docker/docker/pkg/reexec" <ide> "github.com/docker/docker/utils" <add> "...
1
Ruby
Ruby
fix rdoc code formatting for railtie [ci skip]
8859978b43eeb24f53c73afd9c8e57cdbd5a1d5c
<ide><path>railties/lib/rails/railtie.rb <ide> module Rails <ide> # this less confusing for everyone. <ide> # It can be used like this: <ide> # <del> # class MyRailtie < Rails::Railtie <del> # server do <del> # WebpackServer.start <add> # class MyRailtie < Rails::Railtie <add> # server do <add> ...
1
Go
Go
fix govet warnings
2457d2549f28e2091397168be99bc356c80214f2
<ide><path>libnetwork/drivers.go <ide> func RegisterNetworkType(name string, creatorFn interface{}, creatorArg interfac <ide> ctorArg := []reflect.Type{reflect.TypeOf((*string)(nil)), reflect.TypeOf(creatorArg)} <ide> ctorRet := []reflect.Type{reflect.TypeOf((*Network)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem...
3
Javascript
Javascript
add feature flags for scheduler experiments
b0b53ae2c1f38a7bf82b537dafb5f60f1bf14d0d
<ide><path>packages/scheduler/src/SchedulerFeatureFlags.js <ide> export const enableSchedulerDebugging = false; <ide> export const enableIsInputPending = false; <ide> export const enableProfiling = false; <add>export const enableIsInputPendingContinuous = false; <add>export const frameYieldMs = 5; <add>export const con...
4
Go
Go
add fixedcidrv6 test
882f4d7e741eb6f0c28dc74431162d5bb4c4c7ca
<ide><path>libnetwork/drivers/bridge/setup_fixedcidrv6.go <ide> package bridge <ide> <ide> import ( <add> "fmt" <add> <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/networkdriver/ipallocator" <ide> ) <ide> <ide> func SetupFixedCIDRv6(i *Interface) error { <ide> log.Debugf("Using IPv6...
2
Go
Go
use pipes for save/load tests
b81105eaca56e7b22c97e24b7314419ee0a4f2a9
<ide><path>integration-cli/docker_cli_save_load_test.go <ide> import ( <ide> <ide> // save a repo using gz compression and try to load it using stdout <ide> func TestSaveXzAndLoadRepoStdout(t *testing.T) { <del> tempDir, err := ioutil.TempDir("", "test-save-xz-gz-load-repo-stdout") <del> if err != nil { <del> t.Fatal...
2
Ruby
Ruby
add tests for existing timestamp behaviour
eba75952498d5ea9cc2bc91ae231b3c9c7ffdb1f
<ide><path>activerecord/test/cases/insert_all_test.rb <ide> require "models/author" <ide> require "models/book" <ide> require "models/cart" <add>require "models/ship" <ide> require "models/speedometer" <ide> require "models/subscription" <ide> require "models/subscriber" <ide> def test_upsert_all_uses_given_updated_on_...
1
Javascript
Javascript
add enableasyncsubtreeapi to host config
26d70fd3347b7c730644d32b70c4fa752a29a610
<ide><path>src/renderers/dom/fiber/ReactDOMFiber.js <ide> var DOMRenderer = ReactFiberReconciler({ <ide> scheduleDeferredCallback: ReactDOMFrameScheduling.rIC, <ide> <ide> useSyncScheduling: !ReactDOMFeatureFlags.fiberAsyncScheduling, <add> enableAsyncSubtreeAPI: ReactDOMFeatureFlags.enableAsyncSubtreeAPI, <ide> ...
3
PHP
PHP
simplify pattern and fix mistakes
b05bc8d4eda7dc69586379f2423f730f0a37cc92
<ide><path>src/Console/CommandCollection.php <ide> public function add($name, $command) <ide> "Cannot use '$class' for command '$name' it is not a subclass of Cake\Console\Shell or Cake\Console\Command." <ide> ); <ide> } <del> if (!preg_match('/^[\p{L}\p{N}\-_:.]+(?:(?: [\p{L}...
2
Javascript
Javascript
add testid to newappscreen header component
41f145fa47a338cb9daca0cc1d0e9dd0cc30b88a
<ide><path>Libraries/NewAppScreen/components/Header.js <ide> const Header = (): Node => { <ide> return ( <ide> <ImageBackground <ide> accessibilityRole="image" <add> testID="new-app-screen-header" <ide> source={require('./logo.png')} <ide> style={[ <ide> styles.background,
1
PHP
PHP
fix doc string
71dafc7034b61ea3a573aff827b3db0540123ab6
<ide><path>src/Http/Cookie/CookieCollection.php <ide> public static function createFromHeader(array $header) <ide> /** <ide> * Create a new collection from the cookies in a ServerRequest <ide> * <del> * @param \Psr\Http\Message\ServerRequestInterface $request The array of set-cookie header values. <ad...
1
Javascript
Javascript
replace csspropsaware branch
272b8d69dcff771ffdb61ccd33c4e83eaea8ca50
<ide><path>src/css.js <ide> jQuery.extend({ <ide> <ide> css: function( elem, name, extra ) { <ide> // Make sure that we're working with the right name <del> var ret, origName = jQuery.camelCase( name ), <del> hooks = jQuery.cssHooks[ origName ]; <del> <del> name = jQuery.cssProps[ origName ] || origName; <add> ...
2
Go
Go
move chunkedencoding from integration
7c574b9e9d62f14c8d73ea358a557a771dcd8d4d
<ide><path>integration-cli/docker_api_containers_test.go <ide> import ( <ide> "encoding/json" <ide> "io" <ide> "net/http" <add> "net/http/httputil" <ide> "os" <ide> "os/exec" <ide> "strings" <ide> func (s *DockerSuite) TestContainerApiDeleteRemoveVolume(c *check.C) { <ide> c.Fatalf("expected to get ErrNotExist ...
1
Javascript
Javascript
slice the right buffer in _writeout
684740c23200be67368fb1b225140e06c1fec295
<ide><path>lib/net.js <ide> Stream.prototype._writeOut = function (data, encoding) { <ide> this._writeWatcher.start(); <ide> <ide> // Slice out the data left. <del> var leftOver = data.slice(off + bytesWritten, off + len); <add> var leftOver = buffer.slice(off + bytesWritten, off + len); <ide> leftOver.used = ...
1
PHP
PHP
remove duplicate bootstrap reference
26fce312c5e5d51ae32e97128a06599b7cfd2d21
<ide><path>resources/views/app.blade.php <ide> <title>Laravel</title> <ide> <ide> <!-- Bootstrap --> <del> <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"> <ide> <link href="/css/app.css" rel="stylesheet"> <ide> <ide> <!-- Fonts -->
1