content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
add ability to reference casks from brew uninstall
90c26dadc7ec5021716fc0674b4b8b8dd8965293
<ide><path>Library/Homebrew/cask/cmd/uninstall.rb <ide> def initialize(*) <ide> <ide> def run <ide> casks.each do |cask| <del> odebug "Uninstalling Cask #{cask}" <add> uninstall_cask cask, binaries?, verbose?, force? <add> end <add> end <ide> <del> raise CaskNotIns...
2
Ruby
Ruby
fix missing formula reference
fd343c0578e4a8f6c7b5d33c3dfce85bf1c0305f
<ide><path>Library/Homebrew/cmd/info.rb <ide> def print_info <ide> args.named.each_with_index do |f, i| <ide> puts unless i.zero? <ide> begin <del> Formulary.factory(f) <add> formula = Formulary.factory(f) <ide> if args.analytics? <ide> Utils::Analytics.form...
1
Ruby
Ruby
improve fault tolerance for redis cache store
bd54991d20aa30a76815ce80912c8122a2e4ffd3
<ide><path>activesupport/lib/active_support/cache/redis_cache_store.rb <ide> def delete_matched(matcher, options = nil) <ide> # Failsafe: Raises errors. <ide> def increment(name, amount = 1, options = nil) <ide> instrument :increment, name, amount: amount do <del> redis.with { |c| c.incrby ...
5
Javascript
Javascript
support windows for snapshot
e6864e4ac6b47b0cfecedf7be564a409db63aa4c
<ide><path>test/Errors.test.js <ide> const fs = require("fs"); <ide> const webpack = require(".."); <ide> const prettyFormat = require("pretty-format"); <ide> <del>const CWD_PATTERN = new RegExp(`${process.cwd()}`.replace(/\/|\\/, "/"), "gm"); <add>const CWD_PATTERN = new RegExp(process.cwd().replace(/\\/g, "/"), "gm"...
1
PHP
PHP
fix failing test
28372576223c5063bcd1fefe01190c14575780ab
<ide><path>src/Http/Response.php <ide> public function getType(): string <ide> * @param string $contentType Either a file extension which will be mapped to a mime-type or a concrete mime-type. <ide> * @return static <ide> */ <del> public function withType(string $contentType): ResponseInterface <add> ...
4
Javascript
Javascript
prefer module over global for isempty
3309e21d01ec1e1d06104659b973636c8074f24f
<ide><path>packages/ember-routing/lib/system/route.js <ide> import { <ide> calculateCacheKey <ide> } from 'ember-routing/utils'; <ide> import { getOwner } from 'container/owner'; <del> <add>import isEmpty from 'ember-metal/is_empty'; <ide> var slice = Array.prototype.slice; <ide> <ide> function K() { return this; } ...
1
Ruby
Ruby
omit the default limit for float columns
7ff3bc125373c76e58f46463f6cff6dac15b15dd
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> class AbstractMysqlAdapter < AbstractAdapter <ide> string: { name: "varchar", limit: 255 }, <ide> text: { name: "text", limit: 65535 }, <ide> integer: { name: "int", limit: 4 }, <del> ...
3
Ruby
Ruby
use deep_dup in the deep_transform_keys tests
b0ebdf3e744baa935c0d9325780121e7fcac9d9a
<ide><path>activesupport/test/core_ext/hash_ext_test.rb <ide> def test_transform_keys <ide> assert_equal @upcase_strings, @mixed.transform_keys{ |key| key.to_s.upcase } <ide> end <ide> <add> def test_transform_keys_not_mutates <add> transformed_hash = @mixed.dup <add> transformed_hash.transform_keys{ |key...
1
Text
Text
add documentation for core layers
25ad4000f9eadde485a293e29f0c081b736251db
<ide><path>README.md <ide> model.add(Activation('relu')) <ide> model.add(MaxPooling2D(poolsize=(2, 2))) <ide> model.add(Dropout(0.25)) <ide> <del>model.add(Flatten(64*8*8)) <add>model.add(Flatten()) <ide> model.add(Dense(64*8*8, 256)) <ide> model.add(Activation('relu')) <ide> model.add(Dropout(0.5)) <ide> model.add(Co...
5
Javascript
Javascript
introduce nganimateswap directive
78297d252de7c80f73ecf9e291ed71bd52578361
<ide><path>angularFiles.js <ide> var angularFiles = { <ide> 'src/ngAnimate/animateQueue.js', <ide> 'src/ngAnimate/animateRunner.js', <ide> 'src/ngAnimate/animation.js', <add> 'src/ngAnimate/ngAnimateSwap.js', <ide> 'src/ngAnimate/module.js' <ide> ], <ide> 'ngCookies': [ <ide><path>s...
4
Text
Text
remove snippet that is not recommended.
b9b35d406cd95e1cfeff03e7e5e4640db39eb300
<ide><path>docs/api-reference/next.config.js/custom-webpack-config.md <ide> In order to extend our usage of `webpack`, you can define a function that extend <ide> ```js <ide> module.exports = { <ide> webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { <del> // Note: we provide webpack above...
1
Python
Python
fix bug when checking for existence of a variable
93d2a1626d4da4ae372f5c5edb47a12afc388d33
<ide><path>airflow/models/variable.py <ide> def update( <ide> """ <ide> cls.check_for_write_conflict(key) <ide> <del> if cls.get_variable_from_secrets(key) is None: <add> if cls.get_variable_from_secrets(key=key) is None: <ide> raise KeyError(f'Variable {key} does not exist') ...
3
Go
Go
remove unnecessary cmdwithargs
c0d2f7b33869cf749efcbab003bdb9bd2f665cec
<ide><path>integration-cli/daemon.go <ide> func (d *Daemon) getBaseDeviceSize(c *check.C) int64 { <ide> <ide> // Cmd will execute a docker CLI command against this Daemon. <ide> // Example: d.Cmd("version") will run docker -H unix://path/to/unix.sock version <del>func (d *Daemon) Cmd(name string, arg ...string) (strin...
6
Mixed
Text
fix i.e. typos in markdown and ruby
6cf394c236d7a3ab067c8c408e5437afb1d75232
<ide><path>activerecord/CHANGELOG.md <ide> <ide> * Add option to run `default_scope` on all queries. <ide> <del> Previously, a `default_scope` would only run on select or insert queries. In some cases, like non-Rails tenant sharding solutions, it may be desirable to run `default_scope` on all queries in order to...
4
PHP
PHP
add postgres support for collation() on columns
9775c6079e27441d20b2fca4c08c145c8c2286ba
<ide><path>src/Illuminate/Database/Schema/ColumnDefinition.php <ide> * @method ColumnDefinition autoIncrement() Set INTEGER columns as auto-increment (primary key) <ide> * @method ColumnDefinition change() Change the column <ide> * @method ColumnDefinition charset(string $charset) Specify a character set for the col...
3
Java
Java
fix a nodes crash when removing children
e5c81e1c1bebd0cd6bcc9ac2ed453eec353312f8
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java <ide> import javax.annotation.Nullable; <ide> <ide> import java.util.ArrayList; <add>import java.util.Arrays; <ide> import java.util.List; <ide> <ide> import com.facebook.infer.annotation.Assertions; <ide> private void removeChild...
1
Python
Python
add no_cuda args in extract_features
27ee0fff3ce5f9d1c1169061d49200745ea3ba4e
<ide><path>examples/extract_features.py <ide> def main(): <ide> type=int, <ide> default=-1, <ide> help = "local_rank for distributed training on gpus") <add> parser.add_argument("--no_cuda", <add> default=False, <add> ...
1
PHP
PHP
add haserror and error to entitycontext
d7d94e774bde40b4bd2d92fad01186ced3daa8e6
<ide><path>src/View/Form/EntityContext.php <ide> public function attributes($field) { <ide> return array_intersect_key($column, $whitelist); <ide> } <ide> <add>/** <add> * Check whether or not a field has an error attached to it <add> * <add> * @param string $field A dot separated path to check errors on. <add> * @...
2
Javascript
Javascript
add uiexplorer example of swipeablelistview
7971cca4f05109c4420edbaeb4d205217aeb83dc
<ide><path>Examples/UIExplorer/js/SwipeableListViewExample.js <add>/** <add> * The examples provided by Facebook are for non-commercial testing and <add> * evaluation purposes only. <add> * <add> * Facebook reserves all rights not expressly granted. <add> * <add> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ...
3
Javascript
Javascript
fix invalid assertion
ffedc10ea3c11ff17040175b28d3bbe3bfda24a3
<ide><path>packages/ember-views/tests/views/select_test.js <ide> QUnit.test("XSS: does not escape label value when it is a SafeString", function( <ide> append(); <ide> <ide> equal(select.$('option').length, 2, "Should have two options"); <del> equal(select.$('option[value=1] b').length, 1, "Should have child elem...
1
Go
Go
add platform to image store
6c336849876c2117381618b577f1b24f1fb85571
<ide><path>daemon/daemon.go <ide> func NewDaemon(config *config.Config, registryService registry.Service, containe <ide> return nil, err <ide> } <ide> <del> d.imageStore, err = image.NewImageStore(ifs, d.layerStore) <add> // TODO LCOW @jhowardmsft. For now assume it's the runtime OS. This will be modified <add> // ...
5
PHP
PHP
fix another skipped test for select()
e68618a3cd2f3f92d9e4f54219e1fddb8cfff7a0
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testSelectRequired() { <ide> * @return void <ide> */ <ide> public function testNestedSelect() { <del> $this->markTestIncomplete('Need to revisit once models work again.'); <ide> $result = $this->Form->select( <ide> 'Model.field', <i...
1
Python
Python
fix impossible location condition
048d31835c5ce7c7a5a0248d29267b2796d1fb04
<ide><path>libcloud/compute/drivers/azure_arm.py <ide> def ex_list_publishers(self, location=None): <ide> :rtype: ``list`` <ide> """ <ide> <del> if location is None and self.default_location: <del> location = self.default_location <del> else: <del> raise ValueError("...
1
Javascript
Javascript
add benchmark on async_hooks enabled http server
bf7265ffc699a621c70bb1767204dc5c0e61b6dc
<ide><path>benchmark/async_hooks/http-server.js <add>'use strict'; <add>const common = require('../common.js'); <add> <add>const bench = common.createBenchmark(main, { <add> asyncHooks: ['init', 'before', 'after', 'all', 'disabled', 'none'], <add> connections: [50, 500] <add>}); <add> <add>function main({ asyncHooks,...
2
PHP
PHP
fix docblock indentation in basics.php
94d9c5a9ea0608949631e3561c23089bdef79e1c
<ide><path>src/basics.php <ide> use Cake\Core\Configure; <ide> use Cake\Error\Debugger; <ide> <del>/** <del> * Basic defines for timing functions. <del> */ <add> /** <add> * Basic defines for timing functions. <add> */ <ide> define('SECOND', 1); <ide> define('MINUTE', 60); <ide> define('HOUR', 3...
1
PHP
PHP
fix $_files parsing
45725b870dfff5a5d82fabd8079fe6ccd355d46e
<ide><path>src/Network/Request.php <ide> protected static function _base() { <ide> protected function _processFiles($post, $files) { <ide> if (is_array($files)) { <ide> foreach ($files as $key => $data) { <del> if (!is_numeric($key)) { <del> $this->_processFileData($post, '', $data, $key); <del> } else ...
2
Go
Go
simplify containerfs type
95824f2b5f44cd90096c865b093ed9a68342377a
<ide><path>builder/builder-next/adapters/snapshot/snapshot.go <ide> func (s *snapshotter) Mounts(ctx context.Context, key string) (snapshot.Mountabl <ide> return nil, nil, err <ide> } <ide> return []mount.Mount{{ <del> Source: rootfs.Path(), <add> Source: string(rootfs), <ide> Type: "b...
44
Ruby
Ruby
delegate more path methods
346621dd5b7ef93fb658f89b9427841cb17a2824
<ide><path>Library/Homebrew/service.rb <ide> def environment_variables(variables = {}) <ide> end <ide> end <ide> <del> delegate [:bin, :var, :etc, :opt_bin, :opt_sbin, :opt_prefix] => :@formula <add> delegate [:bin, :etc, :libexec, :opt_bin, :opt_libexec, :opt_pkgshare, :opt_prefix, :opt_sbin, :var] =>...
1
Javascript
Javascript
use regular timeout times for armv8
668449ad1442645c0657a75d190bd791d0a59532
<ide><path>test/common.js <ide> exports.platformTimeout = function(ms) { <ide> if (process.arch !== 'arm') <ide> return ms; <ide> <del> if (process.config.variables.arm_version === '6') <add> const armv = process.config.variables.arm_version; <add> <add> if (armv === '6') <ide> return 7 * ms; // ARMv6 <i...
1
Text
Text
update some more docs for package split
0faf4b752f43a18598dcac3541dda257a2a656af
<ide><path>docs/docs/10-addons.md <ide> prev: tooling-integration.html <ide> next: animation.html <ide> --- <ide> <del>`React.addons` is where we park some useful utilities for building React apps. **These should be considered experimental** but will eventually be rolled into core or a blessed utilities library: <add>...
12
Javascript
Javascript
fix a race condition or two in net.js
4681e34c1e74e96f3027e88523dadf6b27a611c3
<ide><path>lib/net.js <ide> function initStream (self) { <ide> //debug('bytesRead ' + bytesRead + '\n'); <ide> <ide> if (bytesRead === 0) { <add> // EOF <ide> self.readable = false; <ide> self._readWatcher.stop(); <ide> <add> if (!self.writable) self.destroy(); <add> // Note: 'close...
1
Python
Python
fix export for multiple materials per mesh
4f29dbb180772ae44d8d97544113709e226eeb87
<ide><path>utils/exporters/blender/addons/io_three/exporter/api/object.py <ide> def cast_shadow(obj): <ide> ret = None <ide> return ret <ide> elif obj.type == MESH: <del> mat = material(obj) <del> if mat: <del> return data.materials[mat].use_cast_shadows <del> els...
2
Go
Go
remove daemon dependency on api packages
f4106b46db47524b4f38abeee48137d42e3fe4eb
<ide><path>api/server/router/network/backend.go <ide> type Backend interface { <ide> DeleteNetwork(networkID string) error <ide> NetworksPrune(ctx context.Context, pruneFilters filters.Args) (*types.NetworksPruneReport, error) <ide> } <add> <add>// ClusterBackend is all the methods that need to be implemented <add>//...
4
Text
Text
fix broken wikipedia link
deeeaef6d2f49edb4eda0cfbab7f585a3eb520be
<ide><path>guides/source/i18n.md <ide> If you found this guide useful, please consider recommending its authors on [wor <ide> Footnotes <ide> --------- <ide> <del>[^1]: Or, to quote [Wikipedia](http://en.wikipedia.org/wiki/Internationalization_and_localization:) _"Internationalization is the process of designing a sof...
1
Javascript
Javascript
attempt #5 to fix format
87a778288ee3a34846b19cd01cabc82df97f8425
<ide><path>test/lang/ms-my.js <ide> exports["lang:ms-my"] = { <ide> ['m mm', '25 25'], <ide> ['s ss', '50 50'], <ide> ['a A', 'petang petang'], <del> ['h\\a\\ri ke DD...
1
Python
Python
return attention mask in int32
5c14fceac0a275a47b2f097333b6e36fbe300000
<ide><path>src/transformers/models/speech_to_text/feature_extraction_speech_to_text.py <ide> def __call__( <ide> <ide> attention_mask = padded_inputs.get("attention_mask") <ide> if attention_mask is not None: <del> padded_inputs["attention_mask"] = [np.asarray(array, dtype=np.bool) for array...
2
Javascript
Javascript
fix tga parsing bug of horizontal origin
318c4ccfe77a2ac6541145f7491a95d5f37105ae
<ide><path>examples/js/loaders/TGALoader.js <ide> THREE.TGALoader.prototype._parser = function ( buffer ) { <ide> x_start = 0; <ide> x_step = 1; <ide> x_end = width; <del> y_start = 0; <del> y_step = 1; <del> y_end = height; <add> y_start = height - 1; <add> y_step = -1; <add> y_end = -1; ...
1
Javascript
Javascript
add missing tests for ember.dag
4011c54de066748eca84c47c6bb5fb8548c61847
<ide><path>packages/ember-application/tests/system/dag_test.js <add>import DAG from "ember-application/system/dag"; <add>import EmberError from "ember-metal/error"; <add> <add>QUnit.module("Ember.DAG"); <add> <add>test("detects circular dependencies when added", function(){ <add> var graph = new DAG(); <add> graph.ad...
1
Ruby
Ruby
use correct variable in `secure_compare!`
971cd757eaeb6da34a256b35457749d067073c03
<ide><path>activesupport/lib/active_support/secure_compare_rotator.rb <ide> def initialize(value, **_options) <ide> @value = value <ide> end <ide> <del> def secure_compare!(other_value, on_rotation: @rotation) <add> def secure_compare!(other_value, on_rotation: @on_rotation) <ide> secure_compare(...
2
PHP
PHP
use accessor instead of property
fc94940ae9e6b14e9a75eb428b41f01fb7b27c3e
<ide><path>src/View/Cell.php <ide> public function render($template = null) <ide> $className = explode('\\', get_class($this)); <ide> $className = array_pop($className); <ide> $name = substr($className, 0, strrpos($className, 'Cell')); <del> $this->_view->subDir = 'Cell' ....
1
Javascript
Javascript
add plugin test for event order
c6a855cf744cd2b5f591d9a959eeae5e5c5a15ff
<ide><path>test/unit/plugins.js <ide> test('Plugin should overwrite plugin of same name', function(){ <ide> player2.dispose(); <ide> }); <ide> <add> <add>test('Plugins should get events in registration order', function() { <add> var order = []; <add> var expectedOrder = []; <add> var pluginName = 'orderPlugin'; ...
1
Text
Text
fix a typo in contributing.md
cce360c7b0136f91fdce6e15ec7fb83eb14153f2
<ide><path>CONTRIBUTING.md <ide> the contributors guide. <ide> <p> <ide> Register for the Docker Community Slack at <ide> <a href="https://community.docker.com/registrations/groups/4316" target="_blank">https://community.docker.com/registrations/groups/4316</a>. <del> We use the #moby-project chan...
1
Text
Text
update react installation guide to make it shorter
789746aaca237849b4f81c68245dd31bb76af302
<ide><path>guide/english/react/installation/index.md <ide> --- <ide> title: Installation <ide> --- <add> <ide> ## Installing React <del>### Creating a new React project <del>You could just embed the React library in your webpage like so<sup>2</sup>: <add>There are several different methods to get started with using Rea...
1
Javascript
Javascript
strip any leading /private/
28326b3674b183fc425c7c220152fc92069f7d65
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> return _path <ide> } <ide> <add> // Depending on where the paths come from, they may have a '/private/' <add> // prefix. Standardize by stripping that out. <add> _path = _path.replace(/^\/private\//, '/') <a...
1
Text
Text
improve spanish translations
c0f9eb66f80c8d5fa654a7375b7618ca08e20ff8
<ide><path>guide/spanish/react/component/index.md <ide> localeTitle: React - Componentes <ide> --- <ide> ## React - Componentes <ide> <del>Los componentes son reutilizables en react.js. Puede inyectar valor en los accesorios como se indica a continuación: <add>Los componentes son reutilizables en react.js. Puedes inye...
1
Text
Text
remove flash messages view helper
491aebc63a0be3780b73e5bab1a875e0d44a94ad
<ide><path>README.md <ide> Features <ide> - **Local Authentication** using Email and Password <ide> - **OAuth 1.0a Authentication** via Twitter <ide> - **OAuth 2.0 Authentication** via Facebook, Google or GitHub <del>- Sweet Error and Success flash notifications with animations by *animate.css* <add>- Awesome flash not...
1
Java
Java
improve example in javadoc for httpentity
b3eb1a2ad725ab4e8c9af7e1fe51840fa01289d0
<ide><path>spring-web/src/main/java/org/springframework/http/HttpEntity.java <ide> * <pre class="code"> <ide> * HttpHeaders headers = new HttpHeaders(); <ide> * headers.setContentType(MediaType.TEXT_PLAIN); <del> * HttpEntity&lt;String&gt; entity = new HttpEntity&lt;String&gt;(helloWorld, headers); <add> * HttpEntit...
1
Java
Java
fix javadoc description of share()
03295a2b2c7049273d2b3c366439661b830c3ac2
<ide><path>src/main/java/rx/Observable.java <ide> public final Observable<T> serialize() { <ide> <ide> /** <ide> * Returns a new {@link Observable} that multicasts (shares) the original {@link Observable}. As long as <del> * there is more than one {@link Subscriber} this {@link Observable} will be subscri...
1
Text
Text
remove links to contributor covenant coc
d81e2a23b9f45927e73a60a2f7eb194ed195e9ab
<ide><path>CONTRIBUTING.md <ide> These are just guidelines, not rules, use your best judgment and feel free to pr <ide> <ide> ### Code of Conduct <ide> <del>This project adheres to the [Contributor Covenant 1.3](http://contributor-covenant.org/version/1/3/0) (see [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)). <add>This ...
2
Javascript
Javascript
fix missing dispatch argument
4d0d97b0f414ea7d9b8c1cd87a2ac3450dda61b6
<ide><path>examples/universal/common/containers/App.js <ide> const mapStateToProps = (state) => ({ <ide> counter: state.counter <ide> }) <ide> <del>const mapDispatchToProps = () => { <add>const mapDispatchToProps = (dispatch) => { <ide> return bindActionCreators(CounterActions, dispatch) <ide> } <ide>
1
Ruby
Ruby
sanitize argv options
fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8
<ide><path>Library/Homebrew/cmd/test.rb <ide> def test <ide> #{f.path} <ide> ].concat(ARGV.options_only) <ide> <add> if f.head? <add> args << "--HEAD" <add> elsif f.devel? <add> args << "--devel" <add> end <add> <ide> if Sandbox.available? && ARGV.sandbo...
1
Javascript
Javascript
fix z-index of yellowbox
407973ab27212616cdfac4509875beb6d20c1222
<ide><path>Libraries/ReactNative/YellowBox.js <ide> var styles = StyleSheet.create({ <ide> right: 0, <ide> top: 0, <ide> bottom: 0, <add> elevation: Number.MAX_VALUE <ide> }, <ide> inspector: { <ide> backgroundColor: backgroundColor(0.95), <ide> flex: 1, <ide> paddingTop: 5, <add> elev...
1
Text
Text
fix typos in text
51077f1dfddef4e17a0f63694f4f1f07758db31b
<ide><path>guide/english/vim/macros/index.md <ide> Recording macros is a way to make some repetitive tasks automatically in VIM. <ide> <ide> ### Recording Macros <ide> <del>Macros use one of the VIM registers to be storage, each register is indentify by a letter `a` to `z`. <add>Macros use one of the VIM registers to...
1
Java
Java
reinstate removal of jsessionid from lookup path
eb11c6fa233092506d360fb46d40d489107efd5f
<ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java <ide> protected String determineEncoding(HttpServletRequest request) { <ide> * @return the updated URI string <ide> */ <ide> public String removeSemicolonContent(String requestUri) { <del> return (this.removeSemicolonContent ? rem...
4
Go
Go
add build test for absolute symlink
134f8e6b474d07e12712e0f2d55b901246e6482e
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildCopyDisallowRemote(t *testing.T) { <ide> logDone("build - copy - disallow copy from remote") <ide> } <ide> <add>func TestBuildAddBadLinks(t *testing.T) { <add> const ( <add> dockerfile = ` <add> FROM scratch <add> ADD links.tar / <add> ADD...
1
Python
Python
add arg cache_enabled
3dcff62578799ac92e62d2deccf55b5a54f9ecb9
<ide><path>keras/layers/core.py <ide> class Layer(object): <ide> def __init__(self, **kwargs): <ide> allowed_kwargs = {'input_shape', <ide> 'trainable', <del> 'batch_input_shape'} <add> 'batch_input_shape', <add> ...
1
Python
Python
add new oauth2 tests
8809c46ab5d2a09d5a956ccffcb2ae2db95c5c1b
<ide><path>rest_framework/tests/authentication.py <ide> def _create_authorization_header(self, token=None): <ide> def _client_credentials_params(self): <ide> return {'client_id': self.CLIENT_ID, 'client_secret': self.CLIENT_SECRET} <ide> <add> @unittest.skipUnless(oauth2_provider, 'django-oauth2-provide...
1
Go
Go
fix unclosed file-handles in tests
553b0edb4c44bdddfad36524ba2b39c8c3b58ddd
<ide><path>daemon/graphdriver/driver_test.go <ide> func TestIsEmptyDir(t *testing.T) { <ide> d = filepath.Join(tmp, "dir-with-empty-file") <ide> err = os.Mkdir(d, 0755) <ide> assert.NilError(t, err) <del> _, err = os.CreateTemp(d, "file") <add> f, err := os.CreateTemp(d, "file") <ide> assert.NilError(t, err) <add> ...
6
Javascript
Javascript
use correct arg name in assert benchmark
967d80594c7ab736ea7374f6b6a2cf75d782410a
<ide><path>test/parallel/test-benchmark-assert.js <ide> require('../common'); <ide> const runBenchmark = require('../common/benchmark'); <ide> <ide> runBenchmark( <del> 'assert', ['len=1', 'method=', 'n=1', 'prim=null', 'size=1', 'type=Int8Array'] <add> 'assert', <add> [ <add> 'len=1', <add> 'method=', <add> ...
1
Ruby
Ruby
remove incorrect comment
6197eae3d4eefd621c857773020c0c2a05e1674b
<ide><path>Library/Homebrew/mach.rb <ide> def mach_data <ide> end <ide> mach_data <ide> rescue <del> # read() will raise if it sees EOF, which should only happen if the <del> # file is < 8 bytes. Otherwise, we raise if the file is not a Mach-O <del> # binary. In both cases, we want to re...
1
Go
Go
address more todos
3fea79bfd835960e3f6c9972305e350ee2e256b2
<ide><path>daemon/daemon.go <ide> import ( <ide> "github.com/docker/docker/pkg/graphdb" <ide> "github.com/docker/docker/pkg/ioutils" <ide> "github.com/docker/docker/pkg/namesgenerator" <add> "github.com/docker/docker/pkg/nat" <ide> "github.com/docker/docker/pkg/stringid" <ide> "github.com/docker/docker/pkg/sysinfo...
3
Ruby
Ruby
fix railties tests in master
14c175c5727467e708ccbfaac1ae98c8f817b37d
<ide><path>railties/test/isolation/abstract_unit.rb <ide> module Generation <ide> # Build an application by invoking the generator and going through the whole stack. <ide> def build_app(options = {}) <ide> @prev_rails_env = ENV['RAILS_ENV'] <del> ENV['RAILS_ENV'] = 'development' <add> ENV['RAILS...
1
Java
Java
reuse mock request from the tcf in spring mvc test
bf06bf33abbf0d3169ae6465757808cf3bc9e4ab
<ide><path>spring-test/src/main/java/org/springframework/test/context/web/ServletTestExecutionListener.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
7
Java
Java
add support for rxjava 2 maybe type
2075932780b9801c22222ddd2016ed63f360c894
<ide><path>spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java <ide> <ide> import io.reactivex.BackpressureStrategy; <ide> import io.reactivex.Flowable; <add>import io.reactivex.Maybe; <ide> import org.reactivestreams.Publisher; <ide> import reactor.core.publisher.Flux; <ide> import reactor...
6
Text
Text
add help command for conda.
9a64e1f1e65e1751f9ec4380b1065425ebe91ae2
<ide><path>guide/english/python/anaconda/index.md <ide> letter of the option. So ``--name`` and ``-n`` are the same, and <ide> <ide> For full usage of each command, including abbreviations, see <ide> [Command reference](https://conda.io/docs/commands.html). <add>You can also type ``conda`` or ``conda help`` to access ...
1
Ruby
Ruby
tweak a test so the queries match
fc0b62597f9c34bd028fd91457b8865eea42cc2d
<ide><path>activerecord/test/cases/relations_test.rb <ide> def test_only <ide> assert_equal Post.where(author_id: 1).to_a, author_posts.to_a <ide> <ide> all_posts = relation.only(:limit) <del> assert_equal Post.limit(1).to_a.first, all_posts.first <add> assert_equal Post.limit(1).to_a, all_posts.to_a <id...
1
Go
Go
fix network feature detection on first start
b241e2008e50f2d8e045642d6fd511a1af9bb52b
<ide><path>daemon/daemon.go <ide> func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S <ide> return nil, err <ide> } <ide> <del> sysInfo := d.RawSysInfo() <del> for _, w := range sysInfo.Warnings { <del> logrus.Warn(w) <del> } <ide> // Check if Devices cgroup is mounted, it is hard req...
4
Python
Python
convert objectives to keras backend
6ffa18e3905ac8dac016111063db4bbacbc788c7
<ide><path>keras/objectives.py <ide> from __future__ import absolute_import <del>import theano <del>import theano.tensor as T <ide> import numpy as np <del> <del> <del>if theano.config.floatX == 'float64': <del> epsilon = 1.0e-9 <del>else: <del> epsilon = 1.0e-7 <add>from . import backend as K <ide> <ide> <ide>...
1
Python
Python
return serverid for backups in rackspace driver
b1d65c57f9855aae8507cab81ed466dfaace60e7
<ide><path>libcloud/drivers/rackspace.py <ide> def to_images(self, object): <ide> def _to_image(self, el): <ide> i = NodeImage(id=el.get('id'), <ide> name=el.get('name'), <del> driver=self.connection.driver) <add> driver=self.connection.driver, <a...
2
Javascript
Javascript
fix all warnings for missing keys
e4fe55708972c0b09674e99b4841830339620196
<ide><path>Examples/UIExplorer/AnimatedExample.js <ide> exports.examples = [ <ide> {['Composite', 'Easing', 'Animations!'].map( <ide> (text, ii) => ( <ide> <Animated.View <add> key={text} <ide> style={[styles.content, { <ide> left: thi...
7
PHP
PHP
fix more typehints
1db4772be8a0b73cda7d5173df112064505d1ee1
<ide><path>src/Database/Schema/TableSchema.php <ide> public function defaultValues(): array <ide> * {@inheritDoc} <ide> * @throws \Cake\Database\Exception <ide> */ <del> public function addIndex(string $name, $attrs): TableSchemaInterface <add> public function addIndex(string $name, $attrs) <ide> ...
6
Javascript
Javascript
remove var in rntester
2648f47a4edd38433f48f56267f8ab0794404e67
<ide><path>RNTester/js/TextInputExample.android.js <ide> <ide> 'use strict'; <ide> <del>var React = require('react'); <del>var ReactNative = require('react-native'); <del>var {Text, TextInput, View, StyleSheet, Slider, Switch} = ReactNative; <add>const React = require('react'); <add>const ReactNative = require('react...
9
Ruby
Ruby
allow multiple unsatisfied fatal requirements
8c8701f26893f0b0cf9d54c4a6e56657af2d25e8
<ide><path>Library/Homebrew/build.rb <ide> end <ide> <ide> def install f <del> f.external_deps.each { |dep| dep.modify_build_environment } <add> f.requirements.each { |dep| dep.modify_build_environment } <ide> <ide> f.recursive_deps.uniq.each do |dep| <ide> dep = Formula.factory dep <ide><path>Library/Homebre...
6
Javascript
Javascript
fix the font inspector
45e3db77f235bbae038ebb8f19738cc394b4d28d
<ide><path>src/debugger.js <ide> var FontInspector = (function FontInspectorClosure() { <ide> var fonts; <ide> var panelWidth = 300; <ide> var active = false; <add> var fontAttribute = 'data-font-name'; <ide> function removeSelection() { <del> var divs = document.getElementsByTagName('div'); <add> var di...
2
Python
Python
add more info on dry-run cli option
4de5089fd2edfe6fe6fc6a96df8de504d673b60a
<ide><path>airflow/cli/cli_parser.py <ide> def positive_int(value): <ide> type=parsedate) <ide> ARG_DRY_RUN = Arg( <ide> ("-n", "--dry-run"), <del> help="Perform a dry run", <add> help="Perform a dry run for each task. Only renders Template Fields for each task, nothing else", <ide> action="store_true...
1
Text
Text
fix locale title
3c0cf31b4cf14ac2a751acbaa794d1c39534b689
<ide><path>guide/portuguese/react/what-are-react-props/index.md <del>--- <del>title: React TypeChecking with PropTypes <del>localeTitle: Validação de Tipo em React com PropTypes <del>--- <del>## React PropTypes <del> <del>Estes servem como um método de validação de tipo (type checking) à medida que um aplicativo tende ...
1
Javascript
Javascript
fix crash when exporting type of existing variable
b9a03ce197865ec333c3dccfc7a4dcf1206b9064
<ide><path>packages/react-native-codegen/src/parsers/flow/utils.js <ide> function getTypes(ast: $FlowFixMe): TypeDeclarationMap { <ide> return ast.body.reduce((types, node) => { <ide> if (node.type === 'ExportNamedDeclaration' && node.exportKind === 'type') { <ide> if ( <del> node.declaration.type ==...
1
Go
Go
suggest login on pull denial
8d9f51ea55c8c9373d20bcc7561ca34c59aaf8c2
<ide><path>api/server/httputils/errors.go <ide> func GetHTTPErrorStatusCode(err error) int { <ide> {"this node", http.StatusServiceUnavailable}, <ide> {"needs to be unlocked", http.StatusServiceUnavailable}, <ide> {"certificates have expired", http.StatusServiceUnavailable}, <add> {"repository does not exist...
3
Text
Text
update code examples for spanish translation
e24a2d9fdbf44bafbad4dddf569cb108a31517bc
<ide><path>curriculum/challenges/spanish/03-front-end-libraries/sass/nest-css-with-sass.spanish.md <ide> localeTitle: Nest CSS con Sass <ide> --- <ide> <ide> ## Description <del><section id="description"> Sass permite <code>nesting</code> reglas CSS, que es una forma útil de organizar una hoja de estilo. Normalmente, ...
1
PHP
PHP
fix time api docs
a7cb1bab8f4bd39558170fbcf3ab620afbc0e8f6
<ide><path>src/Utility/Time.php <ide> public function __toString() { <ide> * Get list of timezone identifiers <ide> * <ide> * @param int|string $filter A regex to filter identifer <del> * Or one of DateTimeZone class constants <add> * Or one of DateTimeZone class constants <ide> * @param string $country A two-le...
1
Text
Text
add v3.7.0-beta.2 to changelog
ac1df67a7100a1169ad5e0e6ad1ec23bb0d28017
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.7.0-beta.2 (December 17, 2018) <add> <add>- [#17328](https://github.com/emberjs/ember.js/pull/17328) [BUGFIX] Ensure that delayed transition retrys work <add>- [#17374](https://github.com/emberjs/ember.js/pull/17374) [BUGFIX] Fix cyclic references on Ar...
1
Ruby
Ruby
remove unused require
bb6d369f891963f8ed6ec3eeaaba3066c438aaee
<ide><path>railties/lib/rails/generators/named_base.rb <ide> # frozen_string_literal: true <ide> <del>require "active_support/core_ext/module/introspection" <ide> require "rails/generators/base" <ide> require "rails/generators/generated_attribute" <ide>
1
Ruby
Ruby
recognize os x 10.9 and xcode 5.0
15626b38cacd6151b9b215a421c433c9fcea8893
<ide><path>Library/Homebrew/macos.rb <ide> def prefer_64_bit? <ide> "4.6" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 }, <ide> "4.6.1" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 }, <ide> "4.6.2" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 }, <add> ...
2
Ruby
Ruby
emit single pair of parens for union and union all
63dd8d8e12edb25d8d5bac324aacb1caf05bbe22
<ide><path>activerecord/lib/arel/visitors/mysql.rb <ide> module Arel # :nodoc: all <ide> module Visitors <ide> class MySQL < Arel::Visitors::ToSql <ide> private <del> def visit_Arel_Nodes_Union(o, collector, suppress_parens = false) <del> unless suppress_parens <del> collector << ...
4
PHP
PHP
simplify error message and test
94e52ff18238842633b05f63a4faa04b77809f45
<ide><path>src/ORM/Query.php <ide> public function autoFields($value = null) { <ide> } <ide> <ide> /** <del> * Get the first result from the executing query or raist an exception. <add> * Get the first result from the executing query or raise an exception. <ide> * <ide> * @throws \Cake\ORM\RecordNotFoundException W...
2
PHP
PHP
pass request into route closures
a045496684c92a46d46b9d8b8aed690346a5c336
<ide><path>application/routes.php <ide> | <ide> */ <ide> <del> 'GET /' => function() <add> 'GET /' => function($request) <ide> { <ide> return View::make('home.index'); <ide> }, <ide><path>laravel/routing/handler.php <ide> protected function find_route_closure(Route $route) <ide> */ <ide> protected function ha...
2
Text
Text
fix failing static check in master
4bacc1950faff7c915bbaeffec404113c5d589c4
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Akamas](https://akamas.io) [[@GiovanniPaoloGibilisco](https://github.com/GiovanniPaoloGibilisco), [@lucacavazzana](https://github.com/lucacavazzana)] <ide> 1. [Alan](https://alan.eu) [[@charles-go](https://github.com/charles-go)] <ide> 1. ...
1
Javascript
Javascript
fix lint errors for examples/shopping-cart/
348651b21fa7a0c32921ad5f1f13053b442db3ad
<ide><path>examples/shopping-cart/actions/index.js <del>import shop from '../api/shop'; <del>import * as types from '../constants/ActionTypes'; <add>import shop from '../api/shop' <add>import * as types from '../constants/ActionTypes' <ide> <ide> function receiveProducts(products) { <ide> return { <ide> type: ty...
16
Python
Python
mark the top 3 slowest tests to save ~10 seconds
db9cc9093677ce61f168fd8381dc2cfd30e2060f
<ide><path>numpy/core/tests/test_mem_overlap.py <ide> def check(ufunc, a, ind, out): <ide> a = np.arange(10000, dtype=np.int16) <ide> check(np.add, a, a[::-1], a) <ide> <add> @pytest.mark.slow <ide> def test_unary_gufunc_fuzz(self): <ide> shapes = [7, 13, 8, 21, 29, 32] <ide> guf...
3
Ruby
Ruby
remove unused code
64fc8963b9998cc833d7f2b04e4b9fef3428b858
<ide><path>railties/lib/rails/info.rb <ide> def property(name, value = nil) <ide> rescue Exception <ide> end <ide> <del> def frameworks <del> %w( active_record action_pack action_view action_mailer active_support active_model ) <del> end <del> <del> def framework_version(framework) <d...
2
Python
Python
update runtests.py to specify c99 for gcc
1709249c788323afdeb6ab606dc75d252c4a7814
<ide><path>runtests.py <ide> def build_project(args): <ide> # add flags used as werrors <ide> warnings_as_errors = ' '.join([ <ide> # from tools/travis-test.sh <del> '-Werror=declaration-after-statement', <ide> '-Werror=vla', <ide> '...
1
Javascript
Javascript
add types to dependency and subclasses
eba85a491ddd63bee3fdd0539d6fb6bb3b7777a8
<ide><path>lib/Dependency.js <ide> const DependencyReference = require("./dependencies/DependencyReference"); <ide> /** @typedef {import("webpack-sources").Source} Source */ <ide> /** @typedef {import("./RuntimeTemplate")} RuntimeTemplate */ <ide> /** @typedef {import("./DependencyTemplates")} DependencyTemplates */ <a...
16
PHP
PHP
add bound check to env resolving
d0353b8dd16bd6010e37bd658cc29d469ef4ee8d
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function runningInConsole() <ide> */ <ide> public function runningUnitTests() <ide> { <del> return $this['env'] === 'testing'; <add> return $this->bound('env') && $this['env'] === 'testing'; <ide> } <ide> <ide> /**
1
PHP
PHP
add withdefault to morphone relations
ff00aa9e02634b94ec2b6572a3dcdb90d4349071
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Database\Eloquent\Builder; <ide> use Illuminate\Database\Eloquent\Collection; <add>use Illuminate\Database\Eloquent\Relations\Concerns\HasDefault; <ide> <ide> class BelongsTo extends R...
4
Ruby
Ruby
remove warning of unused variable
1938c9646b7edcae88817a9b3b0e5d8b897ecc77
<ide><path>activerecord/test/cases/adapters/postgresql/bytea_test.rb <ide> def test_write_value <ide> <ide> def test_via_to_sql <ide> data = "'\u001F\\" <del> record = ByteaDataType.create(payload: data) <add> ByteaDataType.create(payload: data) <ide> sql = ByteaDataType.where(payload: data).select(:pa...
1
Javascript
Javascript
write ci fingerprint in build.js
250d1044f3eaf1a7f40b334edccc2d0978b46334
<ide><path>build/build.js <ide> require('coffee-script/register') <ide> <ide> const cleanOutputDirectory = require('./lib/clean-output-directory') <ide> const copyAssets = require('./lib/copy-assets') <add>const generateMetadata = require('./lib/generate-metadata') <add>const generateModuleCache = require('./lib/gener...
3
Python
Python
remove useless statement in task_group_to_grid
84718f92334b7e43607ab617ef31f3ffc4257635
<ide><path>airflow/www/views.py <ide> def set_overall_state(record): <ide> record['state'] = state <ide> break <ide> if None in record['mapped_states']: <del> # When turnong the dict into JSON we can't have None as a key,...
1
Python
Python
fix model outputs test
8bcceaceff990f77d22994c1aa25540d6874b640
<ide><path>tests/test_modeling_common.py <ide> def recursive_check(tuple_object, dict_object): <ide> recursive_check(tuple_iterable_value, dict_iterable_value) <ide> elif tuple_object is None: <ide> return <add> elif torch.isinf(...
1
Ruby
Ruby
use predicatebuilder for sql hash sanitization
77c23b2104d62ab1cf1fb5808fef14e38d094605
<ide><path>activerecord/lib/active_record/associations.rb <ide> def configure_dependency_for_has_many(reflection, extra_conditions = nil) <ide> dependent_conditions = [] <ide> dependent_conditions << "#{reflection.primary_key_name} = \#{record.#{reflection.name}.send(:owner_quoted_id)}" <ide> ...
3
Javascript
Javascript
remove unused function argument
520db0ca7e73a01e34dddab8079f41b243947345
<ide><path>src/ngAnimate/animate.js <ide> angular.module('ngAnimate', ['ng']) <ide> // This will automatically be called by $animate so <ide> // there is no need to attach this internally to the <ide> // timeout done method. <del> function onEnd(cancelled) { <add> function onEnd() ...
1