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
Go
Go
remove testdockersuite func
9b428a3d33acd4ca55f178bf3ad7fdac241f88bd
<ide><path>integration-cli/check_test.go <ide> func ensureTestEnvSetup(t *testing.T) { <ide> }) <ide> } <ide> <del>func TestDockerSuite(t *testing.T) { <del> ensureTestEnvSetup(t) <del> suite.Run(t, &DockerAPISuite{ds: &DockerSuite{}}) <del> suite.Run(t, &DockerBenchmarkSuite{ds: &DockerSuite{}}) <del> suite.Run(t, &...
1
Javascript
Javascript
move meta viewport to _app.js
3922fa0584ff481f15cd1b4de689967df88159b5
<ide><path>examples/with-react-native-web/pages/_app.js <add>import * as React from 'react' <add>import Head from 'next/head' <add> <add>function MyApp({ Component, pageProps }) { <add> return ( <add> <> <add> <Head> <add> <meta name="viewport" content="width=device-width, initial-scale=1" /> <add> ...
2
Mixed
Javascript
add es6 class transform
d9c13c73b6f6c1e928258f6686939dd5503e7408
<ide><path>npm-react-codemod/README.md <ide> are using the master version (>0.13.1) of React as it is using <ide> namespaced name for the mixin. `mixins: [React.addons.PureRenderMixin]` will <ide> not currently work. <ide> <add>`class.js` transforms `React.createClass` calls into ES6 classes. <add> <add> * `rea...
9
Javascript
Javascript
remove unused argument to oneway
7d15e7d99cab555bf6c86d56b6bb30f5c57280e7
<ide><path>packages/ember-metal/lib/binding.js <ide> Binding.prototype = /** @scope Ember.Binding.prototype */ { <ide> means that if you change the "to" side directly, the "from" side may have <ide> a different value. <ide> <del> @param {Boolean} flag <del> (Optional) passing nothing here will make the...
1
Python
Python
fix dag audit_log route
c5878315f3df0854a0902d91668cc369e7466405
<ide><path>airflow/www/views.py <ide> def robots(self): <ide> (permissions.ACTION_CAN_READ, permissions.RESOURCE_AUDIT_LOG), <ide> ] <ide> ) <add> def legacy_audit_log(self): <add> """Redirect from url param.""" <add> return redirect(url_for('Airflow.audit_log', **request.args))...
2
Java
Java
add classpath check for context-propagation
6c3a7192b726c96db7069ba3dd77bba91b999b23
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ReactiveTypeHandler.java <ide> import org.springframework.http.server.ServerHttpResponse; <ide> import org.springframework.lang.Nullable; <ide> import org.springframework.util.Assert; <add>import org.springframework.util.ClassU...
1
Go
Go
move "load" to graph/load.go
f2029f7be19c75ccc291608d1bd07bc0de220276
<ide><path>graph/load.go <add>package graph <add> <add>import ( <add> "encoding/json" <add> "io" <add> "io/ioutil" <add> "os" <add> "path" <add> <add> "github.com/docker/docker/archive" <add> "github.com/docker/docker/engine" <add> "github.com/docker/docker/image" <add> "github.com/docker/docker/utils" <add>) <add> <ad...
4
Javascript
Javascript
convert values to uint, not int
d6df1b91579e95283768935ec3f43eb34e2dc818
<ide><path>lib/buffer.js <ide> exports.INSPECT_MAX_BYTES = 50; <ide> <ide> <ide> Buffer.poolSize = 8 * 1024; <del>var poolSize = Buffer.poolSize; <del>var poolOffset = 0; <del>var allocPool = alloc({}, poolSize); <add>var poolSize, poolOffset, allocPool; <ide> <ide> <ide> function createPool() { <ide> poolSize = ...
1
Javascript
Javascript
use number type for bitfields
488b973d6838610a8f651d1c812fa82d74cf8bbd
<ide><path>src/renderers/shared/fiber/ReactTypeOfInternalContext.js <ide> <ide> 'use strict'; <ide> <del>export type TypeOfInternalContext = 0 | 1; <add>export type TypeOfInternalContext = number; <ide> <ide> module.exports = { <ide> NoContext: 0, <ide><path>src/renderers/shared/fiber/ReactTypeOfSideEffect.js <ide...
2
Ruby
Ruby
remove tests for `brew cask search`
a8bfe09c499d725972543c1857365768d5739329
<ide><path>Library/Homebrew/test/cask/cli/search_spec.rb <del>require_relative "shared_examples/invalid_option" <del> <del>describe Hbc::CLI::Search, :cask do <del> before do <del> allow(Tty).to receive(:width).and_return(0) <del> end <del> <del> it_behaves_like "a command that handles invalid options" <del> <del...
1
PHP
PHP
remove failing test
7c593cbf4dea40f87d9bd2bfa65e56c9ae7f19be
<ide><path>tests/TestCase/Collection/CollectionTest.php <ide> public function testTransposeUnEvenLengthShouldThrowException() <ide> <ide> $collection->transpose(); <ide> } <del> <del> /** <del> * Tests the chunk method with preserved keys <del> * <del> * @return void <del> */ <del> pu...
1
Javascript
Javascript
write variable names in correct manner
3522ce6f34b63f5d9922835307f31980de1fe0b9
<ide><path>api-server/src/server/utils/donation.test.js <ide> describe('donation', () => { <ide> Authorization: `Bearer ${mockAccessToken}` <ide> } <ide> }; <del> const successVerificationResponce = { <add> const successVerificationResponse = { <ide> data: { <ide> verification_stat...
1
Go
Go
check symlink error when saving layer
8616b0690a3ac905fc6ee06ff7524c837fcb8c92
<ide><path>image/tarexport/save.go <ide> import ( <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docker/pkg/system" <ide> "github.com/docker/docker/reference" <add> "github.com/pkg/errors" <ide> ) <ide> <ide> type imageDescriptor struct { <ide> func (s *saveSession) saveLayer(id layer.ChainID...
1
Go
Go
fix issue with exec tty caused by 15446
5ffcecf130aea8c0b92d1be728e2c302cf2c6c70
<ide><path>api/server/exec.go <ide> func (s *Server) postContainerExecStart(version version.Version, w http.Response <ide> } <ide> var ( <ide> execName = vars["name"] <del> stdin, inStream io.ReadCloser <add> stdin io.ReadCloser <ide> stdout, stderr, outStream io.W...
2
Java
Java
fix bug that ignored custom json prefix
ead0124b393fab17e71f6d879af54a7eefb28d56
<ide><path>spring-web/src/main/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverter.java <ide> import java.lang.reflect.Type; <ide> import java.nio.charset.Charset; <ide> <del>import com.fasterxml.jackson.core.JsonEncoding; <del>import com.fasterxml.jackson.core.JsonGenerator; <del>import c...
5
Ruby
Ruby
use yield instead block argument
f0eaf11c0e29e6f30a82b52f7e63d24b9675281f
<ide><path>activerecord/lib/active_record/identity_map.rb <ide> def current <ide> repositories[current_repository_name] ||= Weakling::WeakHash.new <ide> end <ide> <del> def with_repository(name = :default, &block) <add> def with_repository(name = :default) <ide> old_repository = self.cu...
1
Javascript
Javascript
improve the coverage of the validator
302fd02f7140ff06d511eaae807944e335682177
<ide><path>lib/internal/validators.js <ide> const validateInteger = hideStackFrames( <ide> const validateInt32 = hideStackFrames( <ide> (value, name, min = -2147483648, max = 2147483647) => { <ide> // The defaults for min and max correspond to the limits of 32-bit integers. <add> if (typeof value !== 'number')...
2
Text
Text
fix corepack grammar for `--force` flag
43a267f67344faeebf0996069aab2ff2ee0d147e
<ide><path>doc/api/corepack.md <ide> install. To avoid this problem, consider one of the following options: <ide> binaries anyway and will ensure that the requested versions are always <ide> available, so installing the package managers explicitly isn't needed anymore. <ide> <del>* Add the `--force` to `npm instal...
1
Javascript
Javascript
add param name
3c6821b9ad10331a37a995b87a92b1cb7594a70c
<ide><path>src/ngAnimate/animate.js <ide> angular.module('ngAnimate', ['ng']) <ide> * @methodOf ngAnimate.$animate <ide> * @function <ide> * <del> * @param {boolean=} If provided then set the animation on or off. <add> * @param {boolean=} value If provided then set the animati...
1
Javascript
Javascript
use object writer for thrown errors
a0778a97e19fb6e661a4277f18f758443d20470c
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> (_, pre, line) => pre + (line - 1)); <ide> } <ide> } <del> errStack = util.inspect(e); <add> errStack = self.writer(e); <ide> <ide> // Remove one line error braces to keep the ol...
2
Java
Java
use valid example in javadoc for @enablewebflux
91c0fbaadbb5e17f1f44261f3ae641fbad9aae22
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/config/EnableWebFlux.java <ide> * &#064;EnableWebFlux <ide> * &#064;ComponentScan(basePackageClasses = MyConfiguration.class) <ide> * public class MyConfiguration implements WebFluxConfigurer { <add> * <add> * private ObjectMapper objectMa...
1
Python
Python
fix common backend styles
01e2148732e4083b4850345e5ce4dd499cb5999e
<ide><path>keras/backend/common.py <ide> <ide> <ide> def epsilon(): <del> """Returns the value of the fuzz <del> factor used in numeric expressions. <add> """Returns the value of the fuzz factor used in numeric expressions. <ide> <ide> # Returns <ide> A float. <ide> def epsilon(): <ide> <ide> ...
3
Python
Python
update download_url for beta
5a55922baa5356d34d1c5b6c0ffee29fb7f7c66a
<ide><path>setup.py <ide> def fullsplit(path, result=None): <ide> author = 'Django Software Foundation', <ide> author_email = 'foundation@djangoproject.com', <ide> description = 'A high-level Python Web framework that encourages rapid development and clean, pragmatic design.', <del> download_url = 'http:...
1
Python
Python
add exception handling for bbox values
5e941bece26cee3edc08e7f9fb3c1e03c1742ad7
<ide><path>src/transformers/modeling_layoutlm.py <ide> def forward( <ide> <ide> words_embeddings = inputs_embeds <ide> position_embeddings = self.position_embeddings(position_ids) <del> left_position_embeddings = self.x_position_embeddings(bbox[:, :, 0]) <del> upper_position_embeddings = ...
1
Python
Python
add debug message for glances server announce
d503fca2b0afa5e57c184540919ecb87b64c18a3
<ide><path>glances/core/glances_autodiscover.py <ide> def get_servers_list(self): <ide> <ide> def add_server(self, name, ip, port): <ide> """Add a new server to the dict""" <del> self._server_dict[name] = {'name': name.split(':')[0], 'ip': ip, 'port': port} <del> logger.debug("Servers list: %...
1
Javascript
Javascript
remove an extra allocation for open source bundles
f93e34e98052d7bb6594bd02012e13432e039445
<ide><path>packages/react-dom/src/events/EventListener.js <add>/** <add> * Copyright (c) 2013-present, Facebook, Inc. <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> * @flow <add> */ <add> <add>export function ...
5
Go
Go
fix delete on nonexistent container
1d9546fc62c559dbcbb3dbdce40318fb7c4d67a2
<ide><path>container/view.go <ide> func (db *memDB) Delete(c *Container) error { <ide> txn.Delete(memdbNamesTable, nameAssociation{name: name}) <ide> } <ide> <del> if err := txn.Delete(memdbContainersTable, NewBaseContainer(c.ID, c.Root)); err != nil { <del> return err <del> } <add> // Ignore error - the con...
2
Ruby
Ruby
remove unneeded tests
4edb4976762dcb94c8aa2deca4dc96d498d6418a
<ide><path>activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb <ide> def test_connection_no_db <ide> end <ide> end <ide> <del> def test_connection_no_adapter <del> assert_raises(ArgumentError) do <del> Base.sqlite3_connection :database => ':memory:' <del> end <del...
1
Javascript
Javascript
fix drawerlayoutandroid method parameter
d66b94472711d2d85d75a1e3b314c4f4cef8616a
<ide><path>Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js <ide> var DrawerLayoutAndroid = React.createClass({ <ide> /** <ide> * Opens the drawer. <ide> */ <del> openDrawer: function(test: number) { <add> openDrawer: function() { <ide> UIManager.dispatchViewManagerCommand( <ide> th...
1
Go
Go
fix circular import for windows vfs graphdriver
49834e8d5922f8c256124177b188d89007af03f6
<ide><path>daemon/daemon.go <ide> import ( <ide> "github.com/docker/docker/daemon/execdriver" <ide> "github.com/docker/docker/daemon/execdriver/execdrivers" <ide> "github.com/docker/docker/daemon/graphdriver" <add> _ "github.com/docker/docker/daemon/graphdriver/vfs" <ide> "github.com/docker/docker/daemon/logger" <i...
3
Python
Python
fix syntax error and update docs
ef714529bbf6a7060230a327415a3c955f9f643d
<ide><path>celery/backends/tyrant.py <ide> <ide> <ide> class Backend(BaseBackend): <del> """Tokyo Cabinet based task backend store.""" <add> """Tokyo Cabinet based task backend store. <add> <add> .. attribute:: tyrant_host <add> <add> The hostname to the Tokyo Tyrant server. <add> <add> .. attr...
1
Javascript
Javascript
preserve prototype chain when copying objects
b59b04f98a0b59eead53f6a53391ce1bbcbe9b57
<ide><path>src/Angular.js <ide> function copy(source, destination, stackSource, stackDest) { <ide> } else if (isRegExp(source)) { <ide> destination = new RegExp(source.source); <ide> } else if (isObject(source)) { <del> destination = copy(source, {}, stackSource, stackDest); <add> var ...
2
Java
Java
allow binary messages in stompsubprotocolhandler
4a29e164a8ca222fd8b0d2043e1d44494e84544e
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/StompSubProtocolHandler.java <ide> import org.springframework.messaging.support.MessageHeaderAccessor; <ide> import org.springframework.messaging.support.MessageHeaderInitializer; <ide> import org.springframework.util.Assert; <add>import...
1
PHP
PHP
fix some docblocks
53ee4fa0dbe028fe91d1ec93d1196f2cb635b6e1
<ide><path>src/Illuminate/Routing/UrlGenerator.php <ide> public function previous() <ide> * <ide> * @param string $path <ide> * @param mixed $extra <del> * @param bool $secure <add> * @param bool|null $secure <ide> * @return string <ide> */ <ide> public function to($path, $extra = array(), $secure ...
1
PHP
PHP
add test to prove
7df6477526d15861cfa23e085f6ffb19cfa79cc2
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testCreateCustomRoute() { <ide> */ <ide> public function testCreateWithInputDefaults() { <ide> $this->Form->create('User', array( <del> 'inputDefaults' => array('div' => false, 'label' => false) <add> 'inputDefaults' => array( <a...
1
Javascript
Javascript
increase browserstack timeout to 10min
fd4b99936e6ef14e9ff04e10a95410d31f063d71
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> startTunnel: false, <ide> project: 'AngularJS', <ide> name: specificOptions.testName, <del> build: process.env.TRAVIS_BUILD_NUMBER <add> build: process.env.TRAVIS_BUILD_NUMBER, <add> timeout...
1
Java
Java
remove view managers from @reactmodulelist
c91a2b36d7eea0712fd1b70dc0844ebc1f88905a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java <ide> * @return List of Native modules in the package. <ide> */ <ide> Class<? extends NativeModule>[] nativeModules(); <del> <del> /** <del> * The View Managers in this list should be annotated with {@link ReactM...
1
Javascript
Javascript
set directive param name to directive name
e0cc84ad7b7cdeb22cc56a75ab0775b90791da06
<ide><path>src/directive/ngBind.js <ide> * `<span ng-bind="expression"></span>` when the template is compiled. <ide> * <ide> * @element ANY <del> * @param {expression} expression {@link guide/dev_guide.expressions Expression} to evaluate. <add> * @param {expression} ng-bind {@link guide/dev_guide.expressions Express...
8
Javascript
Javascript
fix linting errors (using new stricter settings)
a5d7e0ff7effbe9d26a38d94c8453ddf8dfe24ff
<ide><path>bin/run-tests.js <ide> #!/usr/bin/env node <del> <add>/* globals QUnit */ <ide> /* eslint-disable no-console */ <ide> <ide> var execa = require('execa'); <ide><path>packages/ember-environment/lib/index.js <del>/* globals module */ <ide> import global from './global'; <ide> import { defaultFalse, defaultTrue...
7
Javascript
Javascript
add documentation for onmomentumscrollend
b8118d1b79f0bac567fc747b95a7dbd03033db7d
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ScrollView = createReactClass({ <ide> * @platform ios <ide> */ <ide> minimumZoomScale: PropTypes.number, <add> /** <add> * Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop). <add> */...
1
Text
Text
add spacy contributor agreement
b639b4c6b4027b5cedeb3d6035bce709a20eb5d1
<ide><path>.github/contributors/MathiasDesch.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or proje...
1
Javascript
Javascript
move enumerable mixin methods into array mixins
1a29eb96a49e642ad8a7b8d07a96ffc0f3f2a6a4
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> @module @ember/array <ide> */ <ide> <del>// .......................................................... <del>// HELPERS <del>// <ide> import { symbol, toString } from 'ember-utils'; <del>import Ember, { // ES6TODO: Ember.A <add>import { <ide> get, <add> set...
4
Python
Python
fix train loop to avoid swallowing tracebacks
c04bab6bae214ca31ba5c11ce6e46e4cb23923ac
<ide><path>spacy/training/loop.py <ide> def train( <ide> batcher = T["batcher"] <ide> train_logger = T["logger"] <ide> before_to_disk = create_before_to_disk_callback(T["before_to_disk"]) <add> <add> # Helper function to save checkpoints. This is a closure for convenience, <add> # to avoid passing in ...
1
PHP
PHP
add testcase for network/email/cakeemail.php
f541260350e132d60ac42f8ec006aafe1fd2b337
<ide><path>lib/Cake/Test/Case/Network/Email/CakeEmailTest.php <ide> public function testHeaderEncoding() { <ide> } <ide> <ide> public function testWrapLongLine() { <del> $message = '<a href="http://cakephp.org">' . str_repeat('1234567890', 100) . "</a>"; <add> $message = '<a href="http://cakephp.org">' . str_repea...
1
Python
Python
update the tf backend documentation
9090704f1d4f36958ee9080f8a3ba89866512cca
<ide><path>keras/backend/tensorflow_backend.py <ide> def clear_session(): <ide> <ide> <ide> def manual_variable_initialization(value): <del> '''Returns a boolean: <del> whether variables should be initialized <add> '''Sets the manual variable initialization flag. <add> <add> This boolean flag determines w...
1
Java
Java
fix white space in reactimagemanager.java
ebb92ad2cce8e35ec2bd9ff17170e2c18ea94b1e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java <ide> public ReactImageView createViewInstance(ThemedReactContext context) { <ide> public void setSource(ReactImageView view, @Nullable String source) { <ide> view.setSource(source); <ide> } <del> <add> <ide> @ReactP...
1
Ruby
Ruby
add additional specs for `path`
9f1b64a9d44650ac36f8bfacfc325c67364a2837
<ide><path>Library/Homebrew/PATH.rb <ide> def reject(&block) <ide> end <ide> <ide> def to_ary <del> @paths <add> @paths.dup.to_ary <ide> end <ide> alias to_a to_ary <ide> <ide><path>Library/Homebrew/test/PATH_spec.rb <ide> it "returns a PATH array" do <ide> expect(described_class.new("/path1",...
2
Javascript
Javascript
loosen timeout in spawnsync-test for freebsd
ccc91aea35c70fbae152a09253879da96f41dfd9
<ide><path>test/parallel/test-child-process-spawnsync-timeout.js <ide> var assert = require('assert'); <ide> var spawnSync = require('child_process').spawnSync; <ide> <ide> var TIMER = 200; <del>var SLEEP = 1000; <add>var SLEEP = 5000; <ide> <ide> switch (process.argv[2]) { <ide> case 'child':
1
Go
Go
add map() method to layerstore interface
148aef9199ef0af6d03ea53e616c9fbd23b7c5ec
<ide><path>distribution/xfer/download_test.go <ide> func createChainIDFromParent(parent layer.ChainID, dgsts ...layer.DiffID) layer. <ide> return createChainIDFromParent(layer.ChainID(dgst), dgsts[1:]...) <ide> } <ide> <add>func (ls *mockLayerStore) Map() map[layer.ChainID]layer.Layer { <add> layers := map[layer.Chai...
3
Go
Go
remove unused remote.rootdir
7b0bd43a27ceb6d713a6589e73352658e1d0b704
<ide><path>libcontainerd/supervisor/remote_daemon.go <ide> type remote struct { <ide> daemonStartCh chan error <ide> daemonStopCh chan struct{} <ide> <del> rootDir string <ide> stateDir string <ide> } <ide> <ide> type DaemonOpt func(c *remote) error <ide> // Start starts a containerd daemon and monitors it <ide>...
1
Text
Text
add nodeedkeygenparams to cryptokey.algorithm
f825341bab8839c3a9a02c26bbacdf3553054e63
<ide><path>doc/api/webcrypto.md <ide> added: v15.0.0 <ide> <ide> <!--lint disable maximum-line-length remark-lint--> <ide> <del>* Type: {AesKeyGenParams|RsaHashedKeyGenParams|EcKeyGenParams|HmacKeyGenParams|NodeDsaKeyGenParams|NodeDhKeyGenParams} <add>* Type: {AesKeyGenParams|RsaHashedKeyGenParams|EcKeyGenParams|Hmac...
1
Ruby
Ruby
fix ant_dep for linux
54a086e2fe06218c8a336fb7033da60078db7d78
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_class_spec(spec, tags) <ide> end <ide> <ide> def ant_dep(spec, tags) <del> if MacOS.version >= :mavericks <add> if MacOS.version >= :mavericks || !OS.mac? <ide> Dependency.new(spec.to_s, tags) <ide> end <ide> end <ide><path>Libra...
2
Javascript
Javascript
increase coverage for events
7c767622bf81cbe379fe63d6b904844fbf9f45b3
<ide><path>test/parallel/test-event-emitter-max-listeners.js <ide> for (const obj of throwsObjs) { <ide> } <ide> <ide> e.emit('maxListeners'); <add> <add>{ <add> const { EventEmitter, defaultMaxListeners } = events; <add> for (const obj of throwsObjs) { <add> assert.throws(() => EventEmitter.setMaxListeners(obj),...
4
Javascript
Javascript
change loop var to let
b6c407b90f5f1542cb6b1766fbea58672d7bd393
<ide><path>lib/internal/tls.js <ide> const { Object } = primordials; <ide> function parseCertString(s) { <ide> const out = Object.create(null); <ide> const parts = s.split('\n'); <del> for (var i = 0, len = parts.length; i < len; i++) { <add> for (let i = 0, len = parts.length; i < len; i++) { <ide> const sep...
2
Ruby
Ruby
provide file name for fixture erb
32045717e6bb62d9f3bec6e003dd6c4a74369ae2
<ide><path>activerecord/lib/active_record/fixture_set/file.rb <ide> def raw_rows <ide> end <ide> end <ide> <add> def prepare_erb(content) <add> erb = ERB.new(content) <add> erb.filename = @file <add> erb <add> end <add> <ide> def render(content) <ide> ...
2
Ruby
Ruby
remove docker mediatype
07639e8cebd5c791ab3bee9f6f4802688c3e5fe4
<ide><path>Library/Homebrew/github_packages.rb <ide> def write_image_config(platform_hash, tar_sha256, blobs) <ide> <ide> def write_image_index(manifests, blobs, annotations) <ide> image_index = { <del> # Currently needed for correct multi-arch display in GitHub Packages UI <del> mediaType: "applic...
1
PHP
PHP
use method to detect the application environment
a879fd1428713913bd0d67b2eb7612d1dd4edd19
<ide><path>src/Illuminate/Console/ConfirmableTrait.php <ide> public function confirmToProceed($warning = 'Application In Production!', $callb <ide> protected function getDefaultConfirmCallback() <ide> { <ide> return function () { <del> return $this->getLaravel()->environment() === 'production...
2
Go
Go
remove /containers/ps from the api router
b5cc077864665290456c5ec724427c1f0d7bc96b
<ide><path>api/server/server.go <ide> func createRouter(s *Server) *mux.Router { <ide> "/images/{name:.*}/get": s.getImagesGet, <ide> "/images/{name:.*}/history": s.getImagesHistory, <ide> "/images/{name:.*}/json": s.getImagesByName, <del> "/containers/ps": s.getCont...
1
Ruby
Ruby
fix .subdomain regression
6b79463ed8d04c7807c0695fcb3d4c11e4be9fa2
<ide><path>actionpack/lib/action_dispatch/http/url.rb <ide> def subdomains(tld_length = @@tld_length) <ide> # such as 2 to catch <tt>["www"]</tt> instead of <tt>"www.rubyonrails"</tt> <ide> # in "www.rubyonrails.co.uk". <ide> def subdomain(tld_length = @@tld_length) <del> subdomains(tld_length)...
2
Python
Python
use tuple, not a list
0ac17ff5a770142cb1433a9ef4f019e5a6a605b2
<ide><path>libcloud/compute/ssh.py <ide> <ide> PARAMIKO_VERSION_TUPLE = tuple([int(x) for x in paramiko.__version__.split(".")]) <ide> except ImportError: <del> PARAMIKO_VERSION_TUPLE = [] <add> PARAMIKO_VERSION_TUPLE = () <ide> <ide> # Depending on your version of Paramiko, it may cause a deprecation <ide>...
1
PHP
PHP
remove celltrait from controller
0e90bbfe8c4ce2903f8c83057152b7fc97a84ee8
<ide><path>src/Controller/Controller.php <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Inflector; <ide> use Cake\Utility\MergeVariablesTrait; <del>use Cake\View\CellTrait; <ide> use Cake\View\View; <ide> use Cake\View\ViewVarsTrait; <ide> <ide> */ <ide> class Controller implements EventListener { <ide> <del>...
1
Javascript
Javascript
add $provide.service() for registering a class
0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3
<ide><path>src/Injector.js <ide> function inferInjectionArgs(fn) { <ide> * <ide> * A short hand for configuring services if only `$get` method is required. <ide> * <del> * @param {string} name The name of the instance. NOTE: the provider will be available under `name + 'Provider'` key. <add> * @param {string} name T...
4
Go
Go
identify tty correctly, fix resize problem
0532dcf3dc1fa34fab5a9cdee6c4d87af66a6cdf
<ide><path>pkg/term/winconsole/console_windows.go <ide> func StdStreams() (stdIn io.ReadCloser, stdOut io.Writer, stdErr io.Writer) { <ide> } <ide> handler.screenBufferInfo = screenBufferInfo <ide> <del> // Set the window size <del> SetWindowSize(stdoutHandle, DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_HEIGHT) <ide>...
1
Ruby
Ruby
add test for cookie being modified by rotation
36b25aa1c4863cc70c74fd783fb54ba44a3a128e
<ide><path>actionpack/test/dispatch/cookies_test.rb <ide> def test_encrypted_cookie_rotating_secret <ide> assert_equal 45, encryptor.decrypt_and_verify(@response.cookies["foo"]) <ide> end <ide> <add> def test_cookie_with_hash_value_not_modified_by_rotation <add> @request.env["action_dispatch.signed_cookie_di...
1
PHP
PHP
remove default options from scriptstart()
0a2158ef5c3437c36248ce4221e7297e4b2d0643
<ide><path>src/View/Helper/HtmlHelper.php <ide> public function scriptBlock($script, array $options = []) <ide> * <ide> * ### Options <ide> * <del> * - `safe` Whether the code block should contain a CDATA <add> * - `safe` (boolean) Whether or not the $script should be wrapped in `<![CDATA[ ]]>`. ...
1
PHP
PHP
use boolean for switch conditions sort and verbose
e7c82062da0401ced0bf2a168dd6493503d6b945
<ide><path>src/Command/RoutesCommand.php <ide> public function execute(Arguments $args, ConsoleIo $io): ?int <ide> $methods, <ide> ]; <ide> <del> if ($args->getOption('verbose') !== null) { <add> if ($args->getOption('verbose') === true) { <ide> ksort($...
1
Text
Text
add section of ci builds
1ee9223348c81c903a1d53d3378032beb16c3cbe
<ide><path>README.md <ide> See the [Micro-Benchmarks](https://github.com/spring-projects/spring-framework/w <ide> <ide> See the [Build from Source](https://github.com/spring-projects/spring-framework/wiki/Build-from-Source) Wiki page and the [CONTRIBUTING.md](CONTRIBUTING.md) file. <ide> <add>## Continuous Integratio...
1
Javascript
Javascript
minimize allocation of imperative functions
7bcc6f9b4dd2f973d8439c07e836e867f3662eb7
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> function InternalTextInput(props: Props): React.Node { <ide> } <ide> }, [inputRef]); <ide> <del> function clear(): void { <del> if (inputRef.current != null) { <del> viewCommands.setTextAndSelection( <del> inputRef.current, <del> ...
1
Text
Text
fix typo in networking.md
cbdce9912d9f904b237e29dd2a1196367337628b
<ide><path>docs/sources/articles/networking.md <ide> bridge* that automatically forwards packets between any other network <ide> interfaces that are attached to it. This lets containers communicate <ide> both with the host machine and with each other. Every time Docker <ide> creates a container, it creates a pair of ...
1
Java
Java
simplify some control flow code
87f28ce48ebc672ffaea31f9524a6e770a01aa1f
<ide><path>spring-web/src/main/java/org/springframework/web/bind/support/WebRequestDataBinder.java <ide> public void bind(WebRequest request) { <ide> */ <ide> private boolean isMultipartRequest(WebRequest request) { <ide> String contentType = request.getHeader("Content-Type"); <del> return (contentType != null &&...
2
Ruby
Ruby
use tap abstraction
b52af53e711d442f2b7097a449a6c077664eb7f3
<ide><path>Library/Homebrew/cmd/audit.rb <ide> require "extend/ENV" <ide> require "formula_cellar_checks" <ide> require "official_taps" <del>require "tap_migrations" <ide> require "cmd/search" <ide> require "date" <del>require "formula_renames" <ide> <ide> module Homebrew <ide> def audit <ide> def audit_caveats <ide...
5
Go
Go
fix issue with mkdir within docker build
9a394041270d2a8ba648f215dacc186473140552
<ide><path>buildfile.go <ide> func (b *buildFile) CmdAdd(args string) error { <ide> origPath := path.Join(b.context, orig) <ide> destPath := path.Join(container.RootfsPath(), dest) <ide> <del> if err := os.MkdirAll(path.Dir(destPath), 0700); err != nil { <del> return err <del> } <del> <ide> fi, err := os.Stat(orig...
1
Python
Python
fix typo in schemas
0f5dfe8b3cc8a635208b1e24aa27eb465d4fb5ab
<ide><path>rest_framework/schemas/generators.py <ide> def is_api_view(callback): <ide> coreapi.Link for URL path {value_url} cannot be inserted into schema. <ide> Position conflicts with coreapi.Link for URL path {target_url}. <ide> <del>Attemped to insert link with keys: {keys}. <add>Attempted to insert link with key...
2
Text
Text
add a "tip" section to the article
8e4b2795ab644be4be357c7ace118548c1b11114
<ide><path>guide/english/bash/bash-cat/index.md <ide> title: Bash Cat <ide> <ide> ## Bash Cat <ide> <del>Cat is one of the most frequently used commands in Unix operating systems. <add>`cat` is one of the most frequently used commands in Unix operating systems. <ide> <del>Cat is used to read a file sequentially and ...
1
Python
Python
improve test coverage for complex fpe cast errors
b463a7fcee642eb75ec7fd5faa33f3fabbcfb258
<ide><path>numpy/core/tests/test_casting_floatingpoint_errors.py <ide> def values_and_dtypes(): <ide> yield param(np.finfo(np.longdouble).max, "float64", <ide> id="longdouble-to-f8") <ide> <add> # Cast to complex32: <add> yield param(2e300, "complex64", id="float-to-c8") <add> yiel...
1
Python
Python
fix indent and improve error message
9bc0bc308b86bcd3ad8da1154f1c4807d9288ae6
<ide><path>keras/layers/convolutional.py <ide> def call(self, inputs): <ide> if self.data_format == 'channels_first': <ide> if ((inputs.shape[2] is not None and sum(self.cropping[0]) >= inputs.shape[2]) or <ide> (inputs.shape[3] is not None and sum(self.cropping[1]) >= inputs.shape[3])): <del> ...
1
Java
Java
add materialize() and dematerialize()
bc9d59441c189ede38b986ba9839017719126f37
<ide><path>src/main/java/io/reactivex/Completable.java <ide> import io.reactivex.internal.operators.completable.*; <ide> import io.reactivex.internal.operators.maybe.*; <ide> import io.reactivex.internal.operators.mixed.*; <del>import io.reactivex.internal.operators.single.SingleDelayWithCompletable; <add>import io.rea...
12
Text
Text
update description of our community and curriculum
cd9db324c80966626e276fda306ad4d78d93a19b
<ide><path>README.md <ide> Welcome to Free Code Camp's open source codebase and curriculum! <ide> ======================= <ide> <del>Free Code Camp is an open-source community where you learn to code and help nonprofits. <add>Free Code Camp is a friendly open-source community where you learn to code and help nonprofit...
1
Javascript
Javascript
remove unused dependency
61cd5961377e04f0bc91b88c78a8e6b8a8094de4
<ide><path>Libraries/Components/TextInput/AndroidTextInputNativeComponent.js <ide> import type {ColorValue} from '../../StyleSheet/StyleSheet'; <ide> import requireNativeComponent from '../../ReactNative/requireNativeComponent'; <ide> import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; <ide> impo...
1
Ruby
Ruby
add test case for
787617760cb63b46bc176b94d8ebbf59b5c848cc
<ide><path>actionpack/test/controller/mime_responds_test.rb <ide> def all_types_with_layout <ide> end <ide> end <ide> <del> <ide> def iphone_with_html_response_type <ide> request.format = :iphone if request.env["HTTP_ACCEPT"] == "text/iphone" <ide> <ide> class PostController < AbstractPostController <ide>...
1
Javascript
Javascript
fix @babel/env modules config
a9b1383b5d27aea18b5509b09f118a9be69dfdab
<ide><path>build/babel/preset.js <ide> module.exports = (context, opts = {}) => ({ <ide> [require('@babel/preset-env').default, { <ide> // In the test environment `modules` is often needed to be set to true, babel figures that out by itself using the `'auto'` option <ide> // In production/development th...
1
Javascript
Javascript
fix lint error
228f12eb61b5212d0831a2a7d204bdf2a99263f6
<ide><path>src/tree-sitter-language-mode.js <ide> class TreeSitterLanguageMode { <ide> } <ide> <ide> if (end.column < lineText.length) { <del> for (const _ of iterator.getCloseScopeIds()) { <add> const closeScopeCount = iterator.getCloseScopeIds().length; <add> for (let i = 0; i < clos...
1
Java
Java
use httpmessagenotwritableexception instead of ise
c32299f734521e907585de50d70a46dcd8018f13
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractMessageWriterResultHandler.java <ide> import org.springframework.core.codec.Hints; <ide> import org.springframework.http.MediaType; <ide> import org.springframework.http.codec.HttpMessageWriter; <add>import org.spr...
4
Text
Text
use pk for url conf and views.
3f6004c5a9edab6336e93da85ce3849dee0b1311
<ide><path>docs/tutorial/1-serialization.md <ide> Note that because we want to be able to POST to this view from clients that won' <ide> We'll also need a view which corresponds to an individual snippet, and can be used to retrieve, update or delete the snippet. <ide> <ide> @csrf_exempt <del> def snippet_detail...
6
PHP
PHP
add test for loadmodel() exception
824d41e5f5d40c8952d42e7e21ea7ba1ab3cb8cf
<ide><path>tests/TestCase/Datasource/ModelAwareTraitTest.php <ide> public function testLoadModel() <ide> $this->assertSame('PaginatorPosts', $result->getAlias()); <ide> } <ide> <add> /** <add> * Test that calling loadModel() without $modelClass argument when default <add> * $modelClass property ...
1
Python
Python
resolve model name properly in cli.info
e39ad78267c49c5b340a78cd28e22f0c95b16998
<ide><path>spacy/cli/info.py <ide> <ide> def info(model=None, markdown=False): <ide> if model: <del> data_path = util.get_data_path() <del> data = util.parse_package_meta(data_path / model, require=True) <del> model_path = Path(__file__).parent / data_path / model <add> model_path = uti...
1
Go
Go
fix typo to run tests grouped by rununprivileged
a36f6a140bb7987c18a8177115cbc315672f9e53
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunPrivilegedCanMknod(c *check.C) { <ide> } <ide> } <ide> <del>func (s *DockerSuite) TestRunUnPrivilegedCanMknod(c *check.C) { <add>func (s *DockerSuite) TestRunUnprivilegedCanMknod(c *check.C) { <ide> cmd := exec.Command(dockerBinary,...
1
Javascript
Javascript
use native class for promise inheritance test
d4645deaf0f3c7d462895c63a08b0bd20338001d
<ide><path>packages/ember-runtime/tests/mixins/promise_proxy_test.js <ide> QUnit.test('unhandled rejects still propagate to RSVP.on(\'error\', ...) ', func <ide> }); <ide> <ide> QUnit.test('should work with promise inheritance', function(assert) { <del> function PromiseSubclass() { <del> RSVP.Promise.apply(this, a...
1
Java
Java
make configurationclassbeandefinitionreader public
4f7bdbd3de8e1ca91ad84ea41afc4f525e1b4fd8
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java <ide> * @since 3.0 <ide> * @see ConfigurationClassParser <ide> */ <del>class ConfigurationClassBeanDefinitionReader { <add>public class ConfigurationClassBeanDefinitionReader { <ide...
1
Mixed
Text
add valid suffixes for remaining duration options
32b12a28fcab98b79c9176fb78b5620a46906916
<ide><path>cli/command/service/opts.go <ide> func addServiceFlags(cmd *cobra.Command, opts *serviceOptions) { <ide> flags.Var(&opts.resources.limitMemBytes, flagLimitMemory, "Limit Memory") <ide> flags.Var(&opts.resources.resCPU, flagReserveCPU, "Reserve CPUs") <ide> flags.Var(&opts.resources.resMemBytes, flagReserv...
3
Text
Text
add 2.16.0 to changelog.md
64dfd70b4e875c8b5b0fe0def3da5b358fdea904
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.16.0-beta.2 (October, 2, 2017) <add>### 2.16.0 (October 9, 2017) <ide> <add>- [#15604](https://github.com/emberjs/ember.js/pull/15604) Data Adapter: Only trigger model type update if the record live array count actually changed <add>- [#15610](https://g...
1
Text
Text
fix changelog for csp pr [ci skip]
5910c1d24107d7e5e0f43fb342c37bdb388e56bf
<ide><path>actionpack/CHANGELOG.md <ide> about the Content-Security-Policy header see MDN: <ide> <ide> https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy <del> <add> <ide> Example global policy: <del> <add> <ide> # config/initializers/content_security_policy.r...
1
Python
Python
add files via upload
0e857d89053016397f1f339a2c9ec6729c5b0ce7
<ide><path>dynamic_programming/max_sub_array.py <add>""" <add>author : Mayank Kumar Jha (mk9440) <add>""" <add> <add>import time <add>import matplotlib.pyplot as plt <add>from random import randint <add>def find_max_sub_array(A,low,high): <add> if low==high: <add> return low,high,A[low] <add> else : <add> ...
1
Text
Text
fix typo in active_job_basics.md
cdfecb800cf21ee988db8d47634c45a85a834e3c
<ide><path>guides/source/active_job_basics.md <ide> class GuestsCleanupJob < ApplicationJob <ide> #.... <ide> end <ide> <del># Now your job will use `resque` as it's backend queue adapter overriding what <add># Now your job will use `resque` as its backend queue adapter overriding what <ide> # was configured in `con...
1
Ruby
Ruby
pass busy timeout for sqlite3 integration tests
f08bd27398f11420a2bae5ac0be5f169650683a6
<ide><path>actionpack/test/active_record_unit.rb <ide> def setup <ide> <ide> def setup_connection <ide> if Object.const_defined?(:ActiveRecord) <add> defaults = { :database => ':memory:' } <ide> begin <del> connection_options = {:adapter => 'sqlite3', :dbfile => ':memory:'} <del> ...
1
PHP
PHP
add info about csrf protection technique used
e52cbce5e55493f75030e95bff43cbad7e61e0c3
<ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php <ide> * Provides CSRF protection & validation. <ide> * <ide> * This middleware adds a CSRF token to a cookie. The cookie value is compared to <del> * request data, or the X-CSRF-Token header on each PATCH, POST, <del> * PUT, or DELETE request. <add> * token...
1
PHP
PHP
remove tags for removed components
c8201ae8047306c1422dd0dfec09b19431228e03
<ide><path>src/Controller/Controller.php <ide> * Called after each action is complete and after the view is rendered. <ide> * <ide> * @property \Cake\Controller\Component\AuthComponent $Auth <del> * @property \Cake\Controller\Component\CookieComponent $Cookie <del> * @property \Cake\Controller\Component\CsrfCompon...
1
Python
Python
add cinder support libcloud-874
1761c77c836faa0af53f390bc9ae012ab56e653b
<ide><path>libcloud/compute/drivers/openstack.py <ide> class OpenStackNetworkConnection(OpenStackBaseConnection): <ide> service_region = 'RegionOne' <ide> <ide> <del>class OpenStackVolumeConnection(OpenStackBaseConnection): <del> service_type = 'volume' <add>class OpenStackVolumeV2Connection(OpenStackBaseConne...
1
PHP
PHP
remove unused variables
4d305df1a0f00e90553d34370aef3249236a650b
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function respondAs($type, array $options = []): bool <ide> $cType = $type; <ide> $controller = $this->getController(); <ide> $response = $controller->getResponse(); <del> $request = $controller->getRequest(); <id...
2
Ruby
Ruby
fix typo in test
469befa7efd20860dd48a9bf8a87f1d7c955e09d
<ide><path>activesupport/test/callbacks_test.rb <ide> def test_save <ide> <ide> class PerKeyOptionDeprecationTest < ActiveSupport::TestCase <ide> <del> def test_per_key_option_deprecaton <add> def test_per_key_option_deprecation <ide> assert_raise NotImplementedError do <ide> Phone.class_eval do...
1