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
simplify code, handle exceptions
dfa2c247e0dbdbf506f5175a1c839bfd09caecd9
<ide><path>Library/Homebrew/keg.rb <ide> def optlinked? <ide> <ide> def remove_opt_record <ide> opt_record.unlink <del> aliases.each do |a| <del> (opt_record.parent/a).unlink <del> end <add> aliases.each { |a| (opt_record.parent/a).unlink } <ide> opt_record.parent.rmdir_if_possible <ide> end ...
1
Text
Text
fix typo in blog post
991c1c1169141f9746416a9de4d8b8257c8b4be5
<ide><path>docs/_posts/2014-06-27-community-roundup-19.md <ide> Ever wanted to find developers who also share the same interest in React than yo <ide> <ide> If you don't live near San Francisco or London, why not start one in your community? <ide> <del>## Complimentary Tools <add>## Complementary Tools <ide> In case ...
1
Text
Text
fix a tiny typo [ci skip]
f59de082bf2876b11e4f31c4d04f60cb4a331d8d
<ide><path>guides/source/debugging_rails_applications.md <ide> Processing by ArticlesController#index as HTML <ide> If we use `next`, we won't go deep inside method calls. Instead, `byebug` will <ide> go to the next line within the same context. In this case, it is the last line <ide> of the current method, so `byebug`...
1
Javascript
Javascript
add test for parsezone tz inference case
4af458b11af764367c846660e8c13b9b3f483a6a
<ide><path>test/moment/zones.js <ide> exports.zones = { <ide> test.done(); <ide> }, <ide> <del> "parse zone dependent on format string" : function (test) { <add> "parse zone with a timezone from the format string" : function (test) { <ide> test.expect(1); <ide> <ide> var ...
1
Ruby
Ruby
apply suggestions from code review
00aa4b7a0bb5358dfc55107231b979407ba7140c
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade_formula(f) <ide> <ide> upgrade_version = if f.optlinked? <ide> "#{Keg.new(f.opt_prefix).version} -> #{f.pkg_version}" <del> " #{f.pkg_version} #{fi.options.to_a.join " "}" <ide> else <ide> "-> #{f.pkg_version}" <ide> end
1
Text
Text
add documentation for inherited methods
bde889bd4ed68d33163897b4175557fbc669b66f
<ide><path>doc/api/http.md <ide> deprecated: v13.0.0 <ide> <ide> See [`request.socket`][]. <ide> <add>### `request.cork()` <add> <add><!-- YAML <add>added: <add> - v13.2.0 <add> - v12.16.0 <add>--> <add> <add>See [`writable.cork()`][]. <add> <ide> ### `request.end([data[, encoding]][, callback])` <ide> <ide> <!-- YA...
1
PHP
PHP
fix coding standards
99cbd22969bb73692d017f5fd962ee7f8b497117
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function insertMulti($table, $fields, $values) { <ide> * @return boolean success. <ide> */ <ide> public function resetSequence($table, $column) { <del> <ide> } <ide> <ide> /** <ide><path>lib/Cake/Utility/CakeNumber.php <ide> public static function toR...
2
Javascript
Javascript
force local path
7b82e88cda13b8cc378b51988010e6d818096e8c
<ide><path>lib/BaseWasmMainTemplatePlugin.js <ide> class BaseWasmMainTemplatePlugin { <ide> applyNode(mainTemplate) { <ide> const generateLoadBinaryCode = path => ` <ide> new Promise(function (resolve, reject) { <add> var {readFile} = require("fs"); <add> var {join} = require("path");...
1
Text
Text
add good first issue section to readme
5f30df2f061b4aad8199ea019990f4a1450acc75
<ide><path>packages/next/README.md <ide> Our [Code of Conduct](https://github.com/vercel/next.js/blob/canary/CODE_OF_COND <ide> <ide> Please see our [contributing.md](/contributing.md). <ide> <add>### Good First Issues <add> <add>We have a list of [good first issues](https://github.com/vercel/next.js/labels/good%20fi...
1
Python
Python
remove unused import
dcec1046434ba792390c38f45c4de3d6a30f650a
<ide><path>spacy/cli/info.py <ide> from __future__ import unicode_literals <ide> <ide> import platform <del>import sys <ide> from pathlib import Path <add> <ide> from .. import about <ide> from .. import util <ide>
1
Go
Go
fix issue with goimport
b70632ec532d4a948e227a646f8286d7c439cb4f
<ide><path>pkg/mflag/flag_test.go <ide> // Use of this source code is governed by a BSD-style <ide> // license that can be found in the LICENSE file. <ide> <del>package mflag_test <add>package mflag <ide> <ide> import ( <ide> "bytes" <ide> import ( <ide> "strings" <ide> "testing" <ide> "time" <del> . "github.com/...
1
Javascript
Javascript
fix lint warning + turn off worker support
50fe4f55e2f78320dc265f9cf828dc0d3a25666e
<ide><path>src/core.js <ide> var globalScope = (typeof window === 'undefined') ? this : window; <ide> <ide> var ERRORS = 0, WARNINGS = 1, TODOS = 5; <ide> var verbosity = WARNINGS; <del>var useWorker = true; <add>var useWorker = false; <ide> <ide> // The global PDFJS object exposes the API <ide> // In production, it ...
2
Python
Python
remove none handling from fields.get_attribute()
07258ca032e062334310c112469d6432f6eeb818
<ide><path>rest_framework/fields.py <ide> def get_attribute(instance, attrs): <ide> Also accepts either attribute lookup on objects or dictionary lookups. <ide> """ <ide> for attr in attrs: <del> if instance is None: <del> # Break out early if we get `None` at any point in a nested lookup....
1
Python
Python
handle default=false for boolean fields
160f912a60754c22b2e351bbd9e4b3b4879450f8
<ide><path>rest_framework/schemas/openapi.py <ide> def _map_serializer(self, serializer): <ide> schema['writeOnly'] = True <ide> if field.allow_null: <ide> schema['nullable'] = True <del> if field.default and field.default != empty and not callable(field.default): ...
2
Python
Python
fix bug in format suffix patterns
3e77090b2142e7802203b5e37f81b5d4cbb6f40d
<ide><path>rest_framework/urlpatterns.py <ide> def format_suffix_patterns(urlpatterns, suffix_required=False, suffix_kwarg=None <ide> include a '.format' suffix. Retains urlpattern ordering. <ide> """ <ide> suffix_kwarg = suffix_kwarg or api_settings.FORMAT_SUFFIX_KWARG <del> suffix_pattern = '\.(?P<%s>...
1
Python
Python
add stubs for reference documentation
9a27253a10f8c1f9775b688eb65e41d227fa84e4
<ide><path>numpy/doc/reference/basics.py <add>""" <add> <add>============ <add>Array basics <add>============ <add> <add>Placeholder for array basics documentation. <add> <add>""" <ide><path>numpy/doc/reference/creation.py <add>""" <add> <add>============== <add>Array creation <add>============== <add> <add>Placeholder...
11
Text
Text
remove typo (extra ' character)
1405a9ea9ec29b1399c4cec19c37a829aaa1e3f9
<ide><path>doc/api/crypto.md <ide> changes: <ide> * `key` {Object|string|ArrayBuffer|Buffer|TypedArray|DataView} <ide> * `key`: {string|ArrayBuffer|Buffer|TypedArray|DataView|Object} The key <ide> material, either in PEM, DER, or JWK format. <del> * `format`: {string} Must be `'pem'`, `'der'`, or '`'jwk'`. <add>...
1
Text
Text
add section on creating redux middleware
49f5b96d4cbf2fdbff32b0a91bf9eae4f1bde615
<ide><path>client/src/pages/guide/english/redux/redux-middleware/index.md <ide> An error ocurred: There was an error on your application <ide> ``` <ide> <ide> <del> <del> #### More Information: <del> [In depth Redux Middleware documentation](https://redux.js.org/advanced/middleware) <add>#### Creating Middleware ...
1
PHP
PHP
unserialize the data key within the data parameter
5b03efd7958274b43b3a41811f94025ec77843a0
<ide><path>src/Illuminate/Events/CallQueuedHandler.php <ide> public function failed(array $data) <ide> <ide> if (method_exists($handler, 'failed')) <ide> { <del> call_user_func_array([$handler, 'failed'], unserialize($data)); <add> call_user_func_array([$handler, 'failed'], unserialize($data['data'])); <ide> ...
1
Ruby
Ruby
build the `attributemutationtracker` lazily
ede244e2367c7988fa02f5e3b956d88211bb5ade
<ide><path>activerecord/lib/active_record/attribute_methods/dirty.rb <ide> def save!(*) <ide> # <tt>reload</tt> the record and clears changed attributes. <ide> def reload(*) <ide> super.tap do <del> @mutation_tracker = AttributeMutationTracker.new(@attributes) <add> @mutation_track...
2
Text
Text
use consistent indenting for unordered list items
a3307eac0e6fb276274e4e9bbaab1aa4433e795f
<ide><path>BUILDING.md <ide> transition before the year-end deadline. <ide> * `gcc` and `g++` >= 6.3 or newer, or <ide> * GNU Make 3.81 or newer <ide> * Python (see note above) <del> * Python 2.7 <del> * Python 3.5, 3.6, and 3.7 are experimental. <add> * Python 2.7 <add> * Python 3.5, 3.6, and 3.7 are experimen...
14
Go
Go
increase timeout for userland proxy starting
72c55e82156843c73ab1405b565e63d947b66c10
<ide><path>daemon/networkdriver/portmapper/proxy.go <ide> func (p *proxyCommand) Start() error { <ide> select { <ide> case err := <-errchan: <ide> return err <del> case <-time.After(1 * time.Second): <add> case <-time.After(16 * time.Second): <ide> return fmt.Errorf("Timed out proxy starting the userland proxy") ...
1
Javascript
Javascript
simulate arial black and arial narrow
00d2366d1d64a8c0acd28f904aa5deaecb13ad51
<ide><path>fonts.js <ide> var kMaxWaitForFontFace = 1000; <ide> * fonts and their acronyms. <ide> */ <ide> var stdFontMap = { <add> 'ArialNarrow': 'Helvetica', <add> 'ArialNarrow_Bold': 'Helvetica-Bold', <add> 'ArialNarrow_BoldItalic': 'Helvetica-BoldOblique', <add> 'ArialNarrow_Italic': 'Helvetica-Oblique', <add...
2
Text
Text
update security guidelines to current branch
94340c7b1a3d0a74c20f0df7a5d29cbd3ea40291
<ide><path>SECURITY.md <ide> # Security Policy <ide> <del>This document outlines our security policy for the codebase, and how to report vulnerability. <add>This document outlines our security policy for the codebase, and how to report vulnerabilities. <ide> <ide> ## Versions <ide> <ide> | Version | Branch ...
1
Javascript
Javascript
fix impression logging in virtualizedlist
1bc06f18c613f9a85d5b631493a09682524016f2
<ide><path>Libraries/Lists/VirtualizedList.js <ide> const ViewabilityHelper = require('./ViewabilityHelper'); <ide> const flattenStyle = require('../StyleSheet/flattenStyle'); <ide> const infoLog = require('../Utilities/infoLog'); <ide> const invariant = require('invariant'); <add>import VirtualizedListInjection from '...
2
Text
Text
update parameter type for fspromises.chmod()
ba4d68c8f3525d2a3a0680ee64189b93d41548ec
<ide><path>doc/api/fs.md <ide> added: v10.0.0 <ide> --> <ide> <ide> * `path` {string|Buffer|URL} <del>* `mode` {integer} <add>* `mode` {string|integer} <ide> * Returns: {Promise} <ide> <ide> Changes the permissions of a file then resolves the `Promise` with no
1
Mixed
Go
use binary frame for websocket attach endpoint
e82dcaab520cb5676091f31d90614d3988a725e4
<ide><path>api/server/router/container/container_routes.go <ide> func (s *containerRouter) wsContainersAttach(ctx context.Context, w http.Respons <ide> done := make(chan struct{}) <ide> started := make(chan struct{}) <ide> <add> version := httputils.VersionFromContext(ctx) <add> <ide> setupStreams := func() (io.Rea...
2
Text
Text
add wix & wixanswers
2c89fbc5c67755f4dd82d1ab9fe3cad21d929967
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Whistle Labs](http://www.whistle.com) [[@ananya77041](https://github.com/ananya77041)] <ide> 1. [Wildlifestudios](https://wildlifestudios.com/) <ide> 1. [WiseBanyan](https://wisebanyan.com/) <add>1. [WixAnswers](https://www.wixanswers.com/...
1
Python
Python
fix bugs in python 3.x
a804f4db2ae4e545fa7302b2cdd21bb39176165f
<ide><path>research/pcl_rl/env_spec.py <ide> def __init__(self, env, try_combining_actions=True, <ide> else: <ide> self.combine_actions = False <ide> <del> self.obs_dims_and_types = zip(self.obs_dims, self.obs_types) <del> self.act_dims_and_types = zip(self.act_dims, self.act_types) <add> self.obs_d...
1
PHP
PHP
fix doc blocks for auto complete
e52cb7a23b8f589f1832000811b0bf42039e14b4
<ide><path>src/Controller/Component.php <ide> class Component implements EventListenerInterface <ide> /** <ide> * Request object <ide> * <del> * @var \Cake\Network\Request <add> * @var \Cake\Http\ServerRequest <ide> */ <ide> public $request; <ide> <ide><path>src/Controller/Component/Secu...
11
Javascript
Javascript
fix ie specific test
0960cd0613d0b3501ad724885492dddc7fc4c42a
<ide><path>test/ng/directive/booleanAttrsSpec.js <ide> describe('ngSrc', function() { <ide> // then calling element.setAttribute('src', 'foo') doesn't do anything, so we need <ide> // to set the property as well to achieve the desired effect <ide> <del> var element = $compile('<div ng-src="some/{{id}}...
1
Javascript
Javascript
fix dir attribute for the extension
dbe633d3243507f6945a6a4c9e5bc7ba806847ad
<ide><path>extensions/firefox/tools/l10n.js <ide> // get a localized string <ide> get: translateString, <ide> <del> // get|set the document language and direction <del> get language() { <del> return { <del> // get|set the document language (ISO-639-1) <del> get code() { return gLanguag...
1
Ruby
Ruby
specify gem version in environment.rb
53e1e50e0475fbb6009fc60ad374e9788ab710cd
<ide><path>railties/environments/boot.rb <ide> require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer" <ide> else <ide> require 'rubygems' <del> required_version = '<%= Rails::VERSION::STRING %>' <del> rails_gem = Gem.cache.search('rails', "=#{required_version}").first <del> unless rails_gem <del> STDER...
3
Text
Text
add references to punycode.md
7dea99b1e6850591454c31042ca5087608f43d6f
<ide><path>doc/api/punycode.md <ide> deprecated: v7.0.0 <ide> **The version of the punycode module bundled in Node.js is being deprecated**. <ide> In a future major version of Node.js this module will be removed. Users <ide> currently depending on the `punycode` module should switch to using the <del>userland-provided ...
1
Ruby
Ruby
remove array allocation
4d2ccc119cac2dc2757d3d977059feba9db858d2
<ide><path>actionpack/lib/action_dispatch/journey/formatter.rb <ide> def initialize(routes) <ide> <ide> def generate(name, options, path_parameters, parameterize = nil) <ide> constraints = path_parameters.merge(options) <del> missing_keys = [] <add> missing_keys = nil # need for variable sc...
1
Text
Text
add documentation for merge layer
482bf236b32ee650f910e98c528ebd7212a7ba2f
<ide><path>docs/sources/layers/core.md <ide> model.add(Dense(10, 100)) # output shape: (nb_samples, 100) <ide> model.add(RepeatVector(2)) # output shape: (nb_samples, 2, 10) <ide> ``` <ide> <add>## Merge <add>```python <add>keras.layers.core.Merge(models, mode='sum') <add>``` <add> <add>Merge the output of a list of ...
1
Text
Text
fix typo in readme
ec76ef8069433dea3d23d8d7d69fec6c281497d5
<ide><path>README.md <ide> var map3 = map1.merge(map2, obj); <ide> // Map { a: 20, b: 2, c: 10, d: 1000, t: 30, o: 2000, g: 300 } <ide> ``` <ide> <del>This is possible because `immutible` can treat any JavaScript Array or Object <add>This is possible because `immutable` can treat any JavaScript Array or Object <ide> a...
1
Go
Go
remove redundant "testrequires"
7f37d99ef50b4046284ecb3c3b290319acf11405
<ide><path>integration-cli/docker_cli_daemon_plugins_test.go <ide> func (s *DockerDaemonSuite) TestDaemonShutdownLiveRestoreWithPlugins(c *check.C) <ide> <ide> // TestDaemonShutdownWithPlugins shuts down running plugins. <ide> func (s *DockerDaemonSuite) TestDaemonShutdownWithPlugins(c *check.C) { <del> testRequires(c...
9
Javascript
Javascript
add linkedin /auth and /auth/callback routes
b09223a0cca733b86beaaaf384dcaefbd0812bd5
<ide><path>app.js <ide> app.get('/auth/google', passport.authenticate('google', { scope: 'profile email' <ide> app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' })); <ide> app.get('/auth/twitter', passport.authenticate('twitter')); <ide> app.get('/auth/tw...
1
Python
Python
fix vae example
59bd2476038fa59760cdc4cb9c37e181762c2f19
<ide><path>examples/variational_autoencoder.py <ide> import numpy as np <ide> import matplotlib.pyplot as plt <ide> <del>from keras.layers import Input, Dense, Lambda <add>from keras.layers import Input, Dense, merge <ide> from keras.models import Model <ide> from keras import backend as K <ide> from keras import obje...
1
Text
Text
add v4.7.0-beta.1 to changelog
debe5f7be0ba6df5dfcee4082f10bee28b5f541c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.7.0-beta.1 (July 25, 2022) <add> <add>- [#20126](https://github.com/emberjs/ember.js/pull/20126) [BUGFIX] Replacing Firefox detection that used a deprecated browser API <add> <ide> ### v4.6.0 (July 25, 2022) <ide> <ide> - [#20125](https://github.com/em...
1
Python
Python
fix vocab script
05a1dd570ec3a0d3e3493c9f183eb74fe57a053a
<ide><path>spacy/cli/vocab.py <ide> vectors_loc=("location of vectors data, as numpy .npz (optional)", <ide> "positional", None, str), <ide> version=("Model version", "option", "V", str), <del> meta_path=("Optional path to meta.json. All relevant properties will be " <del> "overwr...
1
Python
Python
address random results in slow readers tests
386dcada1cddecc13c499016a3cf5585a2dec088
<ide><path>spacy/tests/training/test_readers.py <ide> from typing import Dict, Iterable, Callable <ide> import pytest <del>from thinc.api import Config <add>from thinc.api import Config, fix_random_seed <ide> from spacy import Language <ide> from spacy.util import load_model_from_config, registry, resolve_dot_names <id...
1
Java
Java
improve javadoc of exchangefunction
962ec38a61302e1ace6425a7ea89aae993357905
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFunction.java <ide> * <p>For example: <ide> * <pre class="code"> <ide> * ExchangeFunction exchangeFunction = ExchangeFunctions.create(new ReactorClientHttpConnector()); <del> * ClientRequest&lt;Void&gt; request = ClientR...
1
Text
Text
modify test for dequeue method to check for fifo
9999a8c9bc48b54c66aa21519e6f70340856f9b8
<ide><path>curriculum/challenges/english/08-coding-interview-prep/data-structures/create-a-queue-class.english.md <ide> tests: <ide> - text: Your <code>Queue</code> class should have an <code>isEmpty</code> method. <ide> testString: assert((function(){var test = new Queue(); return (typeof test.isEmpty === 'func...
1
Mixed
Ruby
support multiple preview paths for mailers
64ad045e472a60872e5547a381c3af896a546dfd
<ide><path>actionmailer/CHANGELOG.md <add>* Support multiple preview paths for mailers. <ide> <add> Option `config.action_mailer.preview_path` is deprecated in favor of <add> `config.action_mailer.preview_paths`. Appending paths to this configuration option <add> will cause those paths to be used in the sea...
12
Java
Java
fix exceptions in javadoc
f2351e22df729426a3cdbbbaeecf6ace18b94905
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public final <R> Flowable<R> flatMapSingle(Function<? super T, ? extends SingleS <ide> * {@link Consumer} to execute for each item. <ide> * @return <ide> * a Disposable that allows cancelling an asynchronous sequence <del> ...
4
Python
Python
remove hack from gh-7659 for gh-7493
366b14c312aaaa983ad2345fd0c4165e159de475
<ide><path>numpy/ma/core.py <ide> def _recursive_printoption(result, mask, printopt): <ide> names = result.dtype.names <ide> for name in names: <ide> (curdata, curmask) = (result[name], mask[name]) <del> if curdata.dtype.names: <add> if result.dtype[name].names: <ide> _recursiv...
1
PHP
PHP
remove type getters
ebf7d31ce1979fbd071f36eaa19d2b36538ebdc9
<ide><path>src/Database/Expression/CaseExpressionInterface.php <ide> public function clause(string $clause); <ide> */ <ide> public function value($value, ?string $valueType = null); <ide> <del> /** <del> * Returns the case value type. <del> * <del> * @return string|null <del> */ <del> pu...
7
Javascript
Javascript
remove unnecessary semi-colon from animationaction
41158b56f3e77d29dfb49faefd554724ef2eadb5
<ide><path>src/animation/AnimationAction.js <ide> function AnimationAction( mixer, clip, localRoot ) { <ide> this.zeroSlopeAtStart = true; // for smooth interpolation w/o separate <ide> this.zeroSlopeAtEnd = true; // clips for start, loop and end <ide> <del>}; <add>} <ide> <ide> AnimationAction.prototype = { <i...
1
Python
Python
change default threshold for matrix_rank
78b7693d1a3381aabb23b244332e5a568f58909f
<ide><path>numpy/linalg/linalg.py <ide> def matrix_rank(M, tol=None): <ide> """ <ide> Return matrix rank of array using SVD method <ide> <del> Rank of the array is the number of SVD singular values of the <del> array that are greater than `tol`. <add> Rank of the array is the number of SVD singular va...
2
PHP
PHP
remove use of webroot_dir from cakephp
9245265dddc1e2d4877e466625c5f7771ce8b2f8
<ide><path>tests/TestCase/Controller/Component/AuthComponentTest.php <ide> public function testLoginRedirect() { <ide> <ide> Configure::write('App', array( <ide> 'dir' => APP_DIR, <del> 'webroot' => WEBROOT_DIR, <add> 'webroot' => 'webroot', <ide> 'base' => false, <ide> 'baseUrl' => '/cake/index.php' <i...
3
Javascript
Javascript
remove common.port from test-net-throttle
76fd17a7dff6b89b8851044b17125a88a3043b4e
<ide><path>test/pummel/test-net-throttle.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>const common = require('../common'); <add>require('../common'); <ide> const assert = require('assert'); <ide> const net = require('net'); <ide> <ide> let npauses = 0; <ide> console.log('build big...
1
Python
Python
remove print stament which some how ended up there
29e33873d9e072f75f407cbf32f0f09c5cf3b875
<ide><path>libcloud/compute/drivers/ec2.py <ide> def list_sizes(self, location=None): <ide> attributes = copy.deepcopy(attributes) <ide> price = self._get_size_price(size_id=instance_type) <ide> attributes.update({'price': price}) <del> print attributes <ide> s...
1
Javascript
Javascript
cover util.inspect on boxed primitive with colors
c31ac419a902560ce619c599e2352b83660eb8e0
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual( <ide> <ide> // Test boxed primitives output the correct values. <ide> assert.strictEqual(util.inspect(new String('test')), "[String: 'test']"); <add>assert.strictEqual( <add> util.inspect(new String('test'), { colors: true }), <add> "\u001b[32m[...
1
Go
Go
fix race condition in cmdstream
89dd10b06efe93d4f427057f043abf560c461281
<ide><path>pkg/archive/archive.go <ide> func cmdStream(cmd *exec.Cmd, input io.Reader) (io.ReadCloser, error) { <ide> return nil, err <ide> } <ide> <add> // Ensure the command has exited before we clean anything up <add> done := make(chan struct{}) <add> <ide> // Copy stdout to the returned pipe <ide> go func() {...
2
PHP
PHP
add getstore to repository interface.
de438fb381df02ea048daa732fb3773618514ecb
<ide><path>src/Illuminate/Contracts/Cache/Repository.php <ide> public function rememberForever($key, Closure $callback); <ide> * @return bool <ide> */ <ide> public function forget($key); <add> <add> /** <add> * Get the cache store implementation. <add> * <add> * @return \Illuminate\Contract...
1
Javascript
Javascript
append entire dom fragment at once
9ac950f9a8a5cc4dd67fa71e6efdf1f478dd3d80
<ide><path>web/text_layer_builder.js <ide> var TextLayerBuilder = function textLayerBuilder(options) { <ide> if ('isWhitespace' in textDiv.dataset) { <ide> continue; <ide> } <del> textLayerFrag.appendChild(textDiv); <ide> <ide> ctx.font = textDiv.style.fontSize + ' ' + textDiv.style.font...
1
Python
Python
add test for #844 (inner product pb with atlas)
ce5fc0af6285ca4ed1478c42c48fd1f6a7909f83
<ide><path>numpy/core/tests/test_blasdot.py <add>from numpy.core import zeros, float64 <add>from numpy.testing import TestCase, assert_almost_equal <add>from numpy.core.multiarray import inner as inner_ <add> <add>DECPREC = 14 <add> <add>class TestInner(TestCase): <add> def test_vecself(self): <add> """Ticket...
1
Python
Python
add batteries info thanks to batinfo lib
c3803c0c1b597f719b7afcad62cf3a368d3c2b46
<ide><path>glances/glances.py <ide> else: <ide> csv_lib_tag = True <ide> <add>if (is_Linux): <add> try: <add> # Import the batinfo lib (optionnal) <add> import batinfo <add> except ImportError: <add> batinfo_lib_tag = False <add> else: <add> batinfo_lib_tag = True <add> <ide> # Default tag <ide> sensors_tag = ...
2
Python
Python
improve docker client connection
b0dce2c6a1ca68dbfe08d188cef8b554ef5196f0
<ide><path>glances/plugins/glances_docker.py <ide> def get_export(self): <ide> def connect(self): <ide> """Connect to the Docker server.""" <ide> try: <del> ret = docker.from_env(timeout=int(self.get_conf_value('timeout', '1'))) <add> ret = docker.from_env(timeout=int(self.get_...
1
Python
Python
improve python code in sequential doc
c09e753f26afc7ec85a5213df5c2ea52a4e63da2
<ide><path>keras/engine/sequential.py <ide> class Sequential(functional.Functional): <ide> model.add(tf.keras.layers.Dense(8, input_shape=(16,))) <ide> model.add(tf.keras.layers.Dense(4)) <ide> len(model.weights) <del> 4 <add> # Returns "4" <ide> <ide> # When using the delayed-build pattern (no input shape s...
1
PHP
PHP
fix build failures
409fbb1b1818f72b352b894b30a48fa5e2d0fdd4
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testSelectJoinWithCallback() { <ide> $query = new Query($this->connection); <ide> $types = ['created' => 'datetime']; <ide> $result = $query <del> ->select(['title', 'name' => 'c.comment']) <add> ->select(['title', 'name' => 'comments.comm...
2
Javascript
Javascript
fix react.createfactory() crash
c932885e7972a4d363a62127355ceeafe18829e8
<ide><path>packages/react-dom/src/__tests__/ReactDOMProduction-test.js <ide> describe('ReactDOMProduction', () => { <ide> expect(container.childNodes.length).toBe(0); <ide> }); <ide> <add> it('should support createFactory', () => { <add> var span = React.createFactory('span'); <add> class Component extend...
2
Ruby
Ruby
fix typo `s/trough/through/`
e0025fe34d7befaaafe44f0ba3a4c0d8f6c60cc4
<ide><path>activerecord/test/cases/associations/has_many_through_associations_test.rb <ide> def test_has_many_through_with_unscope_should_affect_to_through_scope <ide> assert_equal [comments(:eager_other_comment1)], authors(:mary).unordered_comments <ide> end <ide> <del> def test_has_many_trough_with_scope_shou...
1
Python
Python
add sun data
c00dd43fe0ad11f615476725c14fad3faec9b907
<ide><path>setup.py <ide> def setup_package(): <ide> name=about['__name__'], <ide> zip_safe=False, <ide> packages=PACKAGES, <del> package_data={'': ['*.pyx', '*.pxd']}, <add> package_data={'': ['*.pyx', '*.pxd', '*.txt', '*.tokens']}, <ide> descripti...
1
Java
Java
support custom headers for multipart async data
646fcc5c2faf3df5905f7b1b5a62b4abd97a5d34
<ide><path>spring-web/src/main/java/org/springframework/http/client/MultipartBodyBuilder.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you ma...
3
Python
Python
expose hyper-param as keyword arg
ded0df5e2f718d0ee3d9f013f3c90d3c867bf97a
<ide><path>spacy/_ml.py <ide> def uniqued_bwd(dY, sgd=None): <ide> <ide> <ide> def build_text_classifier(nr_class, width=64, **cfg): <add> nr_vector = cfg.get('nr_vector', 1000) <ide> with Model.define_operators({'>>': chain, '+': add, '|': concatenate, '**': clone}): <del> embed_lower = HashEmbed(width...
1
PHP
PHP
use undeprecated constants
3ca24494a1cb682aa06f691e7d54c1951a8da853
<ide><path>src/Console/CommandRunner.php <ide> public function run(array $argv, ConsoleIo $io = null) <ide> list($name, $argv) = $this->longestCommandName($commands, $argv); <ide> $name = $this->resolveName($commands, $io, $name); <ide> <del> $result = Shell::CODE_ERROR; <add> $result = C...
1
Text
Text
improve docs for api
722d5d7703b4ac3ee0a9f426b3726e7e90dd9096
<ide><path>packages/next/README.md <ide> export default (req, res) => { <ide> <ide> - `res` refers to [NextApiResponse](https://github.com/zeit/next.js/blob/v9.0.0/packages/next-server/lib/utils.ts#L168-L178) which extends [http.ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse) <ide> <a...
1
PHP
PHP
apply fixes from styleci
1e956837e1f6c4fded69db19ee9e1484d08591f6
<ide><path>src/Illuminate/Redis/RedisManager.php <ide> use Illuminate\Redis\Connections\Connection; <ide> use Illuminate\Redis\Connectors\PhpRedisConnector; <ide> use Illuminate\Redis\Connectors\PredisConnector; <del>use Illuminate\Support\ConfigurationUrlParser; <ide> use Illuminate\Support\Arr; <add>use Illuminate\Su...
2
Javascript
Javascript
improve error message
5d9163b87d288194fc910a9e0e8aeecc513717a3
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js <ide> class ResolutionRequest { <ide> throw new UnableToResolveError( <ide> fromModule, <ide> toModule, <del> `Invalid directory ${potentialDirPath}`, <add>`Invalid directory ${potentialDi...
1
Ruby
Ruby
check bintray mirror urls
10a235d6abfed687236b14577a02df13a9b5adca
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> def pull <ide> next <ide> end <ide> <add> if f.stable <add> stable_urls = [f.stable.url] + f.stable.mirrors <add> stable_urls.grep(%r{^https://dl.bintray.com/homebrew/mirror/}) do |mirror_url| <add> check_bintray_mi...
1
Go
Go
remove startcommand function, only used once, and
7ba9a18ade7393d942d995d34a92d757ef4af0b7
<ide><path>integration-cli/docker_cli_attach_test.go <ide> func TestAttachMultipleAndRestart(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> <del> if _, err := startCommand(c); err != nil { <add> if err := c.Start(); err != nil { <ide> t.Fatal(err) <ide> } <ide> <ide><path>integration-cli/utils.go ...
2
PHP
PHP
use mocks to make test a bit more durable
dcbc1830ce0a2ee722d5355c3cd245fbf37e08d3
<ide><path>lib/Cake/Test/TestCase/Utility/DebuggerTest.php <ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) <ide> */ <ide> namespace Cake\Test\TestCase\Utility; <add> <ide> use Cake\Controller\Controller; <ide> use Cake\Core\Configure; <add>use Cake\Log\Log; <ide> use Cake\TestS...
1
Go
Go
handle default v4/v6 gw setting
35693a1a47d14c5d8be427394f6fef8f368a6c91
<ide><path>libnetwork/drivers/bridge/bridge.go <ide> type Configuration struct { <ide> EnableIPForwarding bool <ide> AllowNonDefaultBridge bool <ide> Mtu int <add> DefaultGatewayIPv4 net.IP <add> DefaultGatewayIPv6 net.IP <ide> } <ide> <ide> // EndpointConfiguration represents the user sp...
9
Text
Text
add article for vue.js declarative rendering
8999a73919a001f68fb7ad2844d60cf22f7b6c7d
<ide><path>client/src/pages/guide/english/vue/declarative-rendering/index.md <add>--- <add>title: Declarative Rendering <add>--- <add> <add>## Instalation <add> <add>Before we get started, there are a couple of ways to use Vue.js, namely via CDN and via <add>installation. For a first experience, it's easier to use the ...
1
Go
Go
move "restart" to daemon/restart.go
bd54a73c42760cc94f90df253ecf0818a3006277
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) Install(eng *engine.Engine) error { <ide> if err := eng.Register("start", daemon.ContainerStart); err != nil { <ide> return err <ide> } <add> if err := eng.Register("restart", daemon.ContainerRestart); err != nil { <add> return err <add> } <ide> return nil <...
4
Java
Java
add containskey to servletresponsehttpheaders
62af99a21c4599576cbdf93e51e0deb131bca4dd
<ide><path>spring-web/src/main/java/org/springframework/http/server/ServletServerHttpResponse.java <ide> private class ServletResponseHttpHeaders extends HttpHeaders { <ide> <ide> private static final long serialVersionUID = 3410708522401046302L; <ide> <add> @Override <add> public boolean containsKey(Object key) ...
2
Python
Python
add file for misc tests
012ea594d171041a9ff064783b7c0a392a827d4c
<ide><path>spacy/tests/test_misc.py <add># coding: utf-8 <add>from __future__ import unicode_literals <add> <add>from ..util import ensure_path <add> <add>from pathlib import Path <add>import pytest <add> <add> <add>@pytest.mark.parametrize('text', ['hello/world', 'hello world']) <add>def test_util_ensure_path_succeeds...
1
PHP
PHP
add data + options into aftermarshal
ca90a710af01fd62c42d3d4abacd17653fd4c5c7
<ide><path>src/ORM/Marshaller.php <ide> public function one(array $data, array $options = []): EntityInterface <ide> } <ide> <ide> $entity->setErrors($errors); <del> $this->_table->dispatchEvent('Model.afterMarshal', compact('entity')); <add> $this->dispatchAfterMarshal($entity, $data, $o...
1
Text
Text
clarify instructions to remove confusion
db15a44160d9690f826101065603e77ede82aa34
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-variables.english.md <ide> Note that we do <em>not</em> use quotes around the variable name when using it t <ide> <ide> ## Instructions <ide> <section id='instructions'> <del>Use the ...
1
Text
Text
fix typos in deprecation doc
ea3dcee913d5c76984354340239f97a725035e88
<ide><path>docs/misc/deprecated.md <ide> are deprecated and replaced with double-dash options (`--opt`): <ide> docker search -trusted <ide> docker tag -force <ide> <del>The following single-dash options are deprecated and have no replacement: <add>The following double-dash options are deprecated and have no re...
2
Java
Java
fix cleanup bug
e171c2b92aa5cfe4634edb64c3cd7c9ab6167ce7
<ide><path>ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/TurboModuleManager.java <ide> public List<String> getEagerInitModuleNames() { <ide> return mEagerInitModuleNames; <ide> } <ide> <add> @DoNotStrip <add> @Nullable <add> private CxxModuleWrapper getLegacyCxxModule(String moduleName) { <ad...
1
PHP
PHP
return entire string if search is not found
4c4810a4192d764cea26f150b49d2a1c828488dd
<ide><path>src/Illuminate/Support/Str.php <ide> class Str <ide> public static function after($subject, $search) <ide> { <ide> if (! static::contains($subject, $search)) { <del> return ''; <add> return $subject; <ide> } <ide> <ide> $searchEndPos = strpos($subject, $...
3
Ruby
Ruby
add notibility checks for casks
3567892802a19870a1a7ec514c895af3e53de8e2
<ide><path>Library/Homebrew/cask/audit.rb <ide> require "digest" <ide> require "utils/curl" <ide> require "utils/git" <add>require "utils/notability" <ide> <ide> module Cask <ide> class Audit <ide> class Audit <ide> <ide> attr_reader :cask, :commit_range, :download <ide> <del> attr_predicate :check_appcast?...
7
Javascript
Javascript
add next line operators for text collection
2db0ee6ba3e7e4ae9a7df48cf275c72e40389ca1
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> var args = [], obj; <ide> <ide> var text = ''; <add> var chunk = null; <ide> var font = null; <ide> while (!isEOF(obj = parser.getObj())) { <ide> if (isCmd(obj)) { <ide> var Partial...
1
Python
Python
improve tokenization for ud spanish ancora
e8be15e9b79ba66497b59947c31604b48793bde0
<ide><path>spacy/lang/es/__init__.py <ide> from .stop_words import STOP_WORDS <ide> from .lex_attrs import LEX_ATTRS <ide> from .syntax_iterators import SYNTAX_ITERATORS <add>from .punctuation import TOKENIZER_INFIXES, TOKENIZER_SUFFIXES <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <ide> from ..norm_...
3
Ruby
Ruby
use quiet_safe_system to silence submodule updates
8560ad3ad01c7cbda18d1df81e85926f996dd449
<ide><path>Library/Homebrew/download_strategy.rb <ide> def reset <ide> end <ide> <ide> def update_submodules <del> safe_system 'git', 'submodule', 'update', '--init', '--recursive' <add> quiet_safe_system "git", "submodule", "update", "--init", "--recursive" <ide> end <ide> <ide> def checkout_submodules...
1
Javascript
Javascript
increase tolerance for ci
56411bdcd48e9814c1a2d768e8c4eb0b449bd24a
<ide><path>test/scale.time.tests.js <ide> describe('Time scale tests', function() { <ide> var result = false; <ide> <ide> var diff = actual.diff(expected.value, expected.unit, true); <del> result = Math.abs(diff) < 0.3; <add> result = Math.abs(diff) < 0.5; <ide> <ide> return { <ide> ...
1
PHP
PHP
fix bug with relations
17635d183e626f8d79d27297ae7dc6026865236d
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function getAttribute($key) <ide> <ide> if (method_exists($this, $camelKey)) <ide> { <del> $relations = $this->$camelKey()->get(); <add> $relations = $this->$camelKey()->getResults(); <ide> <ide> return $this->relations[$key] = $relations; ...
7
PHP
PHP
fix bug in query grammer
fda17884e186d1115eb30f957e28a85639899196
<ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php <ide> protected function compileWheres(Builder $query) <ide> { <ide> $sql = array(); <ide> <add> if (is_null($query->wheres)) return ''; <add> <ide> // Each type of where clauses has its own compiler function which is responsible <ide> // for actual...
1
PHP
PHP
add more tests
e4d46c030628cbf06c48a5fb742a7fd1d8dc302b
<ide><path>tests/View/Blade/BladeIncludeWhenTest.php <ide> public function testIncludeWhensAreCompiled() <ide> $compiler = new BladeCompiler($this->getFiles(), __DIR__); <ide> $this->assertEquals('<?php if (true) echo $__env->make(\'foo\', array_except(get_defined_vars(), array(\'__data\', \'__path\')))...
1
Text
Text
clarify the behavior of buffer.bytelength
271d50a8925de3cf479b2e523b59f4d0a62f450d
<ide><path>doc/api/buffer.md <ide> Returns the actual byte length of a string. This is not the same as <ide> [`String.prototype.length`] since that returns the number of *characters* in <ide> a string. <ide> <add>*Note* that for `'base64'` and `'hex'`, this function assumes valid input. For <add>strings that contain n...
1
Go
Go
fix error formatting
b087846c0e087fac24681148997582d4eb890fba
<ide><path>daemon/container_unix.go <ide> func (container *Container) setupLinkedContainers() ([]string, error) { <ide> <ide> childBridgeSettings := child.NetworkSettings.Networks["bridge"] <ide> if childBridgeSettings == nil { <del> return nil, fmt.Errorf("container %d not attached to default bridge network"...
1
Javascript
Javascript
add bracket for comments
d6bad9a8be90defc71b27c33e1348a4f6133b852
<ide><path>src/createStore.js <ide> import isPlainObject from './utils/isPlainObject' <ide> * parts of the state tree respond to actions, you may combine several reducers <ide> * into a single reducer function by using `combineReducers`. <ide> * <del> * @param {Function} reducer A function that returns the next stat...
1
Ruby
Ruby
fix bottle uploading
9e2c0601e3d0c3f1eca3763c2f24d15e562ed0be
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def test_ci_upload(tap) <ide> tag = pr ? "pr-#{pr}" : "testing-#{number}" <ide> safe_system "git", "push", "--force", remote, "master:master", ":refs/tags/#{tag}" <ide> <del> bintray_repo = Bintray.repository(tap.name) <add> bintray_repo = if tap <add> ...
1
Text
Text
simplify the docs branch process for now
65fb2e77eb8c5fdb419a94058f7b4630c00871af
<ide><path>docs/README.md <ide> documentation. <ide> ## Branches <ide> <ide> **There are two branches related to editing docs**: ``master`` and a <del>``doc*`` branch (currently ``doc0.8.1``). You should normally edit <del>docs on a local branch of the ``master`` branch. That way your fixes <add>``docs`` branch. You ...
1
Javascript
Javascript
add flow to modernchangeeventplugin
67eb6ff4a84204271232506aea77155507a32b17
<ide><path>packages/react-dom/src/events/ReactSyntheticEventType.js <ide> export type DispatchConfig = {| <ide> captured: null | string, <ide> |}, <ide> registrationName?: string, <del> eventPriority: EventPriority, <add> eventPriority?: EventPriority, <ide> |}; <ide> <ide> export type CustomDispatchConfig =...
2
Text
Text
clarify justification for moving
3a7ecccec7458d549fa1a41d84e2acd5d69179a7
<ide><path>build/README.md <ide> <ide> This folder contains the grunt configuration and tasks to build Atom. <ide> <del>It was moved from the root of the repository so that native modules would be <del>compiled against node's v8 headers instead of Atom's v8 headers. <add>It was moved from the root of the repository s...
1