content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Text
Text
update tags in adding-new-napi-api.md
c3770536bcfb79fd2b562a861831eed369576b58
<ide><path>doc/contributing/adding-new-napi-api.md <ide> Node-API. <ide> ABI compatibility with other versions of Node.js. <ide> * New API **should** be agnostic towards the underlying JavaScript VM. <ide> * New API PRs **must** have a corresponding documentation update. <del>* New API PRs **must** be tagged as **n...
1
Java
Java
add tint color to inline icons
e8e2a6e4102c1ba0ee3d068769e47fa61c160524
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.java <ide> public class FrescoBasedReactTextInlineImageShadowNode extends ReactTextInlineIm <ide> private final @Nullable Object mCallerContext; <ide> private float mWidth = YogaConstants.UNDE...
2
Javascript
Javascript
fix formaterror for ff4 and opera
b6db58c6472002cd81821a106816398942d4d0a4
<ide><path>src/Angular.js <ide> function forEachSorted(obj, iterator, context) { <ide> function formatError(arg) { <ide> if (arg instanceof Error) { <ide> if (arg.stack) { <del> arg = arg.stack; <add> arg = (arg.message && arg.stack.indexOf(arg.message) === -1) ? <add> 'Error: ' + arg.message...
1
PHP
PHP
update validation logic
92a3b24ba8fea8cb0342c8efbf0b7025ec98496b
<ide><path>src/Illuminate/Foundation/Application.php <ide> class Application extends Container implements ApplicationContract, HttpKernelIn <ide> * <ide> * @var string <ide> */ <del> const VERSION = '5.2.1'; <add> const VERSION = '5.2.2'; <ide> <ide> /** <ide> * The base path for the Lara...
3
Ruby
Ruby
detect recursive dependencies
42bb19a6317172804cd149024115f6973fa2fd4f
<ide><path>Library/Homebrew/formula_installer.rb <ide> def check_install_sanity <ide> recursive_deps = formula.recursive_dependencies <ide> recursive_formulae = recursive_deps.map(&:to_formula) <ide> <add> recursive_dependencies = [] <add> recursive_formulae.each do |dep| <add> dep_recursive_depende...
1
Text
Text
update a link url to www.freecodecamp.org
3823aa90c16e192fc4de67af0fe674a41c5de349
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/redux/create-a-redux-store.md <ide> The Redux `store` is an object which holds and manages application `state`. Ther <ide> <ide> Declare a `store` variable and assign it to the `createStore()` method, passing in the `reducer` as an argument. <...
1
Javascript
Javascript
use yyyy-mm-dd for l in lang/zh-cn.js
95ffe8b4623c43706a16374a0d553dc45cd6b122
<ide><path>lang/zh-cn.js <ide> weekdaysMin : "日_一_二_三_四_五_六".split("_"), <ide> longDateFormat : { <ide> LT : "Ah点mm", <del> L : "YYYY年MMMD日", <add> L : "YYYY-MM-DD", <ide> LL : "YYYY年MMMD日", <ide> LLL : "YYYY年MMMD日LT", <ide> LLLL : "Y...
2
Javascript
Javascript
add trailing commas
fe027da1f0aa8d63ed9a2c8298a45946bc674fff
<ide><path>lib/fs.js <ide> function writeSync(fd, buffer, offsetOrOptions, length, position) { <ide> ({ <ide> offset = 0, <ide> length = buffer.byteLength - offset, <del> position = null <add> position = null, <ide> } = offsetOrOptions ?? ObjectCreate(null)); <ide> } <ide> ...
2
Javascript
Javascript
fix some bugs
6f3fff579894c5a28cfa1dd0116a57593624b04c
<ide><path>pdf.js <ide> function warn(msg) { <ide> } <ide> <ide> function error(msg) { <add> console.log(backtrace()); <ide> throw new Error(msg); <ide> } <ide> <ide> function assertWellFormed(cond, msg) { <ide> malformed(msg); <ide> } <ide> <add>function backtrace() { <add> var stackStr; <add> try { <add> ...
2
PHP
PHP
fix some tests
cca3c44078d458e9013e6788f40744907a9af616
<ide><path>tests/Cookie/CookieTest.php <ide> public function testUnqueue() <ide> { <ide> $cookie = $this->getCreator(); <ide> $cookie->queue($cookie->make('foo','bar')); <del> $this->assertArrayHasKey('foo',$cookie->getQueuedCookies()); <add> $this->assertArrayHasKey('foo', $cookie->getQueuedCookies()); <ide> ...
4
Javascript
Javascript
fix merge problem with argsarray/fnarray
d4a810e2b36f72f2631372114bb77d9d0a7046c8
<ide><path>pdf.js <ide> var Page = (function pagePage() { <ide> var self = this; <ide> this.IRQueue = IRQueue; <ide> var gfx = new CanvasGraphics(this.ctx, this.objs); <del> var continuation = this.callback; <add> var startTime = Date.now(); <add> var continuation = function(err) { <add...
1
Javascript
Javascript
use function for function components
7b0802eb40c64c23fb47bd4d353b81cd5e3fac9e
<ide><path>packages/create-next-app/templates/default/pages/index.js <ide> import Head from 'next/head' <ide> <del>const Home = () => ( <del> <div className="container"> <del> <Head> <del> <title>Create Next App</title> <del> <link rel="icon" href="/favicon.ico" /> <del> </Head> <del> <del> <main> ...
1
Java
Java
add allowheader property to webcontentgenerator
319e8e2c2f36ea146a03eaded6a39c575431fe6f
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java <ide> <ide> package org.springframework.web.servlet.support; <ide> <add>import java.util.ArrayList; <ide> import java.util.Arrays; <add>import java.util.Collection; <ide> import java.util.LinkedHashSet; <ide> impor...
2
Ruby
Ruby
change more array.wrap to kernel#array
2ed17977acb288310d5455f1d716faba2202ba0c
<ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb <ide> require 'active_support/core_ext/class/attribute' <ide> require 'active_support/core_ext/hash/slice' <ide> require 'active_support/core_ext/hash/except' <del>require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/modu...
9
Text
Text
remove git conflict markers
34278b3301c0ca339d32a90264f0018e35a1e7e9
<ide><path>docs/reference/commandline/swarm_join.md <ide> This flag is generally not necessary when joining an existing swarm. <ide> ### `--manager` <ide> <ide> Joins the node as a manager <del>>>>>>>> 22565e1... Split advertised address from listen address <ide> <ide> ### `--token string` <ide>
1
Python
Python
improve error messages in tf backend
a86057d91c5f82a40bf70cbb342dd93d6be631f2
<ide><path>keras/backend/tensorflow_backend.py <ide> def set_value(x, value): <ide> class Function(object): <ide> <ide> def __init__(self, inputs, outputs, updates=[]): <del> assert type(inputs) in {list, tuple} <del> assert type(outputs) in {list, tuple} <del> assert type(updates) in {list, t...
1
Ruby
Ruby
suggest brew services for linux
73bc934c85dd6fabf44076482affe267cd21c5a6
<ide><path>Library/Homebrew/caveats.rb <ide> def caveats <ide> caveats << function_completion_caveats(shell) <ide> end <ide> <del> caveats << plist_caveats <add> caveats << service_caveats <ide> caveats << elisp_caveats <ide> caveats.compact.join("\n") <ide> end <ide> def elisp_caveats <ide> ...
4
Text
Text
fix broken link on docs man page
a0df23ec8db39d24913322d274d7107dc56f8e01
<ide><path>docs/README.md <ide> - [External Commands](External-Commands.md) <ide> - [Ruby Gems, Python Eggs and Perl Modules](Gems,-Eggs-and-Perl-Modules.md) <ide> - [Python](Homebrew-and-Python.md) <del>- [How To Build Software Outside Homebrew With Homebrew `keg_only` dependencies](How-to-build-software-outside-Homeb...
1
Python
Python
fix gevent import
022f447dd13af16f4407c557a737a0afee1e839a
<ide><path>celery/concurrency/gevent.py <ide> def apply_timeout(target, args=(), kwargs={}, callback=None, <ide> class Timer(_timer.Timer): <ide> <ide> def __init__(self, *args, **kwargs): <del> from gevent.greenlet import Greenlet, GreenletExit <add> from gevent import Greenlet, GreenletExit <ide> ...
1
Ruby
Ruby
fix collectionproxy#<< documentation
970a1469977690a1396741272049ff76f737fbb1
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> def to_ary <ide> alias_method :to_a, :to_ary <ide> <ide> # Adds one or more +records+ to the collection by setting their foreign keys <del> # to the collection‘s primary key. Returns +self+, so several appends may be <add...
1
Javascript
Javascript
add error handling for inmemorycache
15a999260389163a569e24804d8b5e81b1df144d
<ide><path>api-server/server/models/donation.js <ide> import { Observable } from 'rx'; <ide> import debug from 'debug'; <ide> <add>import { reportError } from '../middlewares/error-reporter'; <ide> import InMemoryCache from '../utils/in-memory-cache'; <ide> <ide> const log = debug('fcc:boot:donate'); <ide> const five...
3
Text
Text
add preventdefault() on click event
91156b6f0ced65b5681874e2cf2a95e045d708e9
<ide><path>guides/source/working_with_javascript_in_rails.md <ide> paintIt = (element, backgroundColor, textColor) -> <ide> element.style.color = textColor <ide> <ide> $ -> <del> $("a[data-background-color]").click -> <add> $("a[data-background-color]").click (e) -> <add> e.preventDefault() <add> <ide> ba...
1
Mixed
Text
update examples to show real worth
cc0d8fbec96aeb1664fe98d45929a236b18aec81
<ide><path>activesupport/CHANGELOG.md <ide> * Added yield to Object#presence, so you can do this: <ide> <del> person.presence { |p| p.name.first } || 'Nobody' <add> project.account.owner.presence { |p| p.name.first } || 'Nobody' <add> <add> instead of calling twice (which may incur double SQL calls)...
2
Ruby
Ruby
use explicit path to llvm
b70a5da5eb9e9f498a8f4c4c6ea0033a5ed96cb6
<ide><path>Library/Homebrew/brewkit.rb <ide> prefix = `/usr/bin/xcode-select -print-path`.chomp <ide> prefix = "/Developer" if prefix.to_s.empty? <ide> <del> ENV['PATH'] = "#{prefix}/usr/llvm-gcc-4.2/bin:#{ENV['PATH']}" <del> ENV['CC'] = 'llvm-gcc-4.2' <del> ENV['CXX'] = 'llvm-g++-4.2' <add> ENV['CC'] = "#{pre...
1
Ruby
Ruby
pass explicit sort to handle apfs
f6bc7dc4c61f5fb34709da62eb68cfad74f9fd91
<ide><path>Library/Homebrew/cmd/search.rb <ide> module Homebrew <ide> <ide> def search <ide> if ARGV.empty? <del> puts Formatter.columns(Formula.full_names) <add> puts Formatter.columns(Formula.full_names.sort) <ide> elsif ARGV.include? "--macports" <ide> exec_browser "https://www.macports.or...
1
Ruby
Ruby
remove branching logic from calls to find_nth
0405d5a7e95776f9adf5b8ff064300898d89b43a
<ide><path>activerecord/lib/active_record/relation/finder_methods.rb <ide> def first(limit = nil) <ide> if limit <ide> find_nth_with_limit(offset_value, limit) <ide> else <del> find_nth(:first, offset_value) <add> find_nth(:first, offset_index) <ide> end <ide> end <ide> <ide...
1
Javascript
Javascript
add default param to options
cb77a4801c7955def3236e509160caf32cf6eebb
<ide><path>src/config.js <ide> class Config { <ide> // * `true` if the value was set. <ide> // * `false` if the value was not able to be coerced to the type specified in the setting's schema. <ide> set () { <del> let [keyPath, value, options] = Array.from(arguments) <add> let [keyPath, value, options = {}] ...
1
PHP
PHP
add support for localization in throttleslogins
e963fcbe25e0b716f2a8d958a84dabb25a97670e
<ide><path>src/Illuminate/Foundation/Auth/ThrottlesLogins.php <ide> protected function incrementLoginAttempts(Request $request) <ide> protected function sendLockoutResponse(Request $request) <ide> { <ide> $seconds = (int) Cache::get($this->getLoginLockExpirationKey($request)) - time(); <del> <add> ...
1
Javascript
Javascript
replace bitwise ors by ors
d4f4b43d29cfb91bbaea74b3f369621c1ddc0cb4
<ide><path>src/scripting_api/field.js <ide> class Field extends PDFObject { <ide> this._document = data.doc; <ide> this._actions = this._createActionsMap(data.actions); <ide> <del> this._fillColor = data.fillColor | ["T"]; <del> this._strokeColor = data.strokeColor | ["G", 0]; <del> this._textColor = ...
1
Javascript
Javascript
update d3.js and d3.min.js
25c0bca405b61cb80484bf56036a491cda724711
<ide><path>d3.js <ide> d3.range = function(start, stop, step) { <ide> <ide> // calculate correction for IEEE error <ide> function calcRdx(n, m) { <del> var val = n > m ? n : m; <del> return Math.pow(10, 18 - ~~(Math.log((val > 0) ? val : -val) * Math.LOG10E)); <add> var low = n < m ? n : m, <add> fix = 1; <add> ...
2
PHP
PHP
add reset method to breadcrumbshelper
e49d0957c0dea380f2fe57c98f6f9a1ef45cd5e4
<ide><path>src/View/Helper/BreadcrumbsHelper.php <ide> public function getCrumbs() <ide> return $this->crumbs; <ide> } <ide> <add> /** <add> * Removes all existing crumbs. <add> * <add> * @return $this <add> */ <add> public function reset() <add> { <add> $this->crumbs = []; ...
2
Text
Text
update callbacks documentation
0e6fd3d306c6a8dffdbc333433006e0b6b483873
<ide><path>docs/sources/callbacks.md <ide> The `logs` dictionary will contain keys for quantities relevant to the current b <ide> <ide> --- <ide> <add>## Available callbacks <add> <add>```python <add>keras.callbacks.ModelCheckpoint(filepath, verbose=0, save_best_only=False) <add>``` <add> <add>Save the model after ev...
1
PHP
PHP
fix cs errors
3eb93d3ef2d6fb53858e743d9056c1cf53d2963d
<ide><path>tests/TestCase/Collection/CollectionTest.php <ide> public function testFilterChaining() <ide> $items = ['a' => 1, 'b' => 2, 'c' => 3]; <ide> $collection = new Collection($items); <ide> $callable = $this->getMockBuilder(\StdClass::class) <del> ->setMethods(['__invoke']) <del> ->g...
1
Text
Text
prepare changelog for 2.12.0 [ci skip]
b2cad6729c64cb8d4359ef6f3b0a49d689334ec1
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.12.0-beta.3 (March 8, 2017) <del> <del>- [#14987](https://github.com/emberjs/ember.js/pull/14987) [BUGFIX] Fix a memory leak when components are destroyed. <del>- [#14986](https://github.com/emberjs/ember.js/pull/14986) [BUGFIX] Fix a memory leak in RSVP...
1
Javascript
Javascript
fix typo in console.error
492412f1779e41ce020c62cedfc6e36c9be6d0a9
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/index.js <ide> class DependencyGraph { <ide> this._helpers = new Helpers(this._opts); <ide> this.load().catch((err) => { <ide> // This only happens at initialization. Live errors are easier to recover from. <del> console.error(...
1
Text
Text
add code block, avoid punctuation
c73017bd909b0e58c86669a7fb29fd32fed679d4
<ide><path>curriculum/challenges/english/01-responsive-web-design/applied-visual-design/use-a-bezier-curve-to-move-a-graphic.md <ide> Remember that all `cubic-bezier` functions start with `p0` at (0, 0) and end wit <ide> <ide> # --instructions-- <ide> <del>To see the effect of this Bezier curve in action, change the ...
1
Python
Python
stop timer threads after staring them
aa795790c1689691186b159bae05a3c5573629c5
<ide><path>celery/tests/test_worker.py <ide> def qos(self, **kwargs): <ide> l.qos = QoS(l.task_consumer, l.initial_prefetch_count, l.logger) <ide> l.event_dispatcher = MockEventDispatcher() <ide> l.receive_message(m.decode(), m) <add> l.eta_schedule.stop() <ide> <ide> items = [en...
1
Go
Go
fix missing comment in docker inspect
d32f43013bf4c3aaa90c9ea409fbb9ade4105200
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) LookupImage(name string) (*types.ImageInspect, error) { <ide> } <ide> } <ide> <add> comment := img.Comment <add> if len(comment) == 0 && len(img.History) > 0 { <add> comment = img.History[len(img.History)-1].Comment <add> } <add> <ide> imageInspect := &types...
2
Ruby
Ruby
fix typo in `match` doc [ci skip]
fa5436e017e31a00a33dd69eb989255af63c636e
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> module Base <ide> # end <ide> # <ide> # [:constraints] <del> # Constrains parameters with a hash of regular expressions <add> # Constraints parameters with a hash of regular expressions <ide> # or ...
1
Python
Python
add is_decoder as an attribute to config class
17177e73796f516e3f49d311eab77b02ab679871
<ide><path>transformers/modeling_bert.py <ide> class BertLayer(nn.Module): <ide> def __init__(self, config): <ide> super(BertLayer, self).__init__() <ide> self.self_attention = BertAttention(config) <del> if config.get("is_decoder", False): <add> if getattr(config, "is_decoder", False)...
1
Ruby
Ruby
simplify xcodebuild special case
63629ab13bfe7e355eacf1235e52699f5cc3a581
<ide><path>Library/Homebrew/formula.rb <ide> def test_defined? <ide> # Pretty titles the command and buffers stdout/stderr <ide> # Throws if there's an error <ide> def system cmd, *args <add> removed_ENV_variables = {} <add> <ide> # remove "boring" arguments so that the important ones are more likely to <i...
1
Python
Python
ignore complexwarning in ``test_iter_copy_casts``
3c7cd655c78ed7663e0dd672ed705364a09c8e16
<ide><path>numpy/core/tests/test_nditer.py <ide> def test_iter_copy(): <ide> <ide> @pytest.mark.parametrize("dtype", np.typecodes["All"]) <ide> @pytest.mark.parametrize("loop_dtype", np.typecodes["All"]) <add>@pytest.mark.filterwarnings("ignore::numpy.ComplexWarning") <ide> def test_iter_copy_casts(dtype, loop_dtype):...
1
Text
Text
add gabrielschulhof to collaborators
24c45054e425dbc47c19262cfc4fb9f917a0e08d
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Daniel Wang** &lt;wangyang0123@gmail.com&gt; <ide> * [Fishrock123](https://github.com/Fishrock123) - <ide> **Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt; <add>* [gabrielschulhof](https://github.com/gabrielschu...
1
Ruby
Ruby
fix syntax error
e52a12a8b5f52ed80d6717214a53cedac347d8b8
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def test_bot <ide> ARGV.named.each do |argument| <ide> test_error = false <ide> begin <del> test = Test.new(argument, :tap => tap, :skip_homebrew = skip_homebrew) <del> skip_homebrew ||= true <add> test = Test.new(argumen...
1
Javascript
Javascript
use internal api instead of crypto module
fa3d6bedf9b1507bc17265eb9fad70b623247d85
<ide><path>lib/_tls_common.js <ide> const { <ide> <ide> const { SSL_OP_CIPHER_SERVER_PREFERENCE } = process.binding('constants').crypto; <ide> <del>// Lazily loaded <del>var crypto = null; <add>// Lazily loaded from internal/crypto/util. <add>let toBuf = null; <ide> <ide> const { internalBinding } = require('interna...
1
PHP
PHP
reduce mock usage
a674c1ab2c1fdfbcfdf9ba6266fe8c5196313606
<ide><path>tests/TestCase/Auth/ControllerAuthorizeTest.php <ide> public function setUp(): void <ide> ->setMethods(['isAuthorized']) <ide> ->disableOriginalConstructor() <ide> ->getMock(); <del> $this->components = $this->getMockBuilder(ComponentRegistry::class)->getMock(); <de...
7
Python
Python
add some tests for ndarray.put
b1f8bcf451ef75344439d56c9953f6652af899d7
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_diagonal_memleak(self): <ide> a.diagonal() <ide> assert_(sys.getrefcount(a) < 50) <ide> <add> def test_put(self): <add> icodes = np.typecodes['AllInteger'] <add> fcodes = np.typecodes['AllFloat'] <add> for dt in i...
1
Javascript
Javascript
use custom separators for re-joining list items
c6c9d26e3487ce24ece390c26994123964f805b0
<ide><path>src/ng/directive/input.js <ide> var minlengthDirective = function() { <ide> * can be a fixed string (by default a comma) or a regular expression. <ide> * <ide> * @element input <del> * @param {string=} ngList optional delimiter that should be used to split the value. If <del> * specified in form `/somet...
2
Python
Python
remove testing changes
7b061670de8fe68c75ac282cd0355bd752f90d6c
<ide><path>integration/storage/test_azure_blobs.py <ide> from integration.storage.base import Integration, random_string <ide> <ide> # Prefix which is added to all the groups created by tests <del>RESOURCE_GROUP_NAME_PREFIX = 'libcloud' <del># RESOURCE_GROUP_NAME_PREFIX = 'libcloud-tests-' <add>RESOURCE_GROUP_NAME_PRE...
1
Python
Python
set version to v2.2.2.dev0
3f6cb618a9ec584dd8ac4bcfec97b2f8ec35a725
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.1" <add>__version__ = "2.2.2.dev0" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod...
1
Javascript
Javascript
fix spec, cleanup
3123a926871c9ee25bf495bbf3828f7434851e47
<ide><path>spec/update-process-env-spec.js <ide> describe('updateProcessEnv(launchEnv)', function () { <ide> process.env = {FOO: 'bar'} <ide> <ide> await updateProcessEnv(process.env) <del> expect(child_process.execFile).not.toHaveBeenCalled() <add> expect(child_process.spawn).not.toHaveB...
2
Javascript
Javascript
remove copypasta comment
7991a00dcc2b2fb521324b0fddeca55d567d79e5
<ide><path>src/renderers/shared/fiber/ReactFiberClassComponent.js <ide> module.exports = function(scheduleUpdate : (fiber: Fiber, priorityLevel : Priori <ide> <ide> const state = instance.state || null; <ide> <del> // A class component update is the result of either new props or new state. <del> // Account ...
1
PHP
PHP
refactor the session class
04a1e44e6e94e1b2176cf3d5a4c0af9198ea0a7f
<ide><path>system/session.php <ide> private static function age_flash() <ide> */ <ide> private static function write_cookie() <ide> { <del> extract(Config::get('session')); <del> <ide> if ( ! headers_sent()) <ide> { <add> extract(Config::get('session')); <add> <ide> $minutes = ($expire_on_close) ? 0 : $li...
1
Java
Java
clarify the format supported by @propertysource
d1a0b8d53f92ec410d51bdd89aee979107541bd4
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/PropertySource.java <ide> <ide> /** <ide> * Indicate the resource location(s) of the properties file to be loaded. <del> * For example, {@code "classpath:/com/myco/app.properties"} or <del> * {@code "file:/path/to/file"}. <add> * <p>B...
1
Text
Text
update examples readme
b7b285971fb2e0f058e83ebebc4834cb670c4a7c
<ide><path>examples/README.md <ide> <ide> # spaCy examples <ide> <del>The examples are Python scripts with well-behaved command line interfaces. For a full list of spaCy tutorials and code snippets, see the [documentation](https://spacy.io/docs/usage/tutorials). <add>The examples are Python scripts with well-behaved ...
1
Go
Go
move "stop" to daemon/stop.go
03c07617cce5167ac854ff84637be9cccef39328
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) Install(eng *engine.Engine) error { <ide> if err := eng.Register("create", daemon.ContainerCreate); err != nil { <ide> return err <ide> } <add> if err := eng.Register("stop", daemon.ContainerStop); err != nil { <add> return err <add> } <ide> return nil <ide>...
4
Javascript
Javascript
improve test coverage of native crypto code
7710235ec35586c15f83e826926ea8bfe2a35a22
<ide><path>test/parallel/test-crypto-cipheriv-decipheriv.js <ide> for (let n = 1; n < 256; n += 1) { <ide> if (common.hasFipsCrypto && n < 12) continue; <ide> crypto.createCipheriv('aes-128-gcm', Buffer.alloc(16), Buffer.alloc(n)); <ide> } <add> <add>{ <add> // Passing an invalid cipher name should throw. <add> a...
3
Text
Text
fix style= formatting in v15 rc blog post
8c57fd9d311c62f71a6e54462f161e857c78a550
<ide><path>docs/_posts/2016-03-07-react-v15-rc1.md <ide> Each of these changes will continue to work as before with a new warning until t <ide> ### New helpful warnings <ide> <ide> - If you use a minified copy of the _development_ build, React DOM kindly encourages you to use the faster production build instead. <del>...
1
Python
Python
add example for np.ma.power as part of
723f0eb315cfb16f913ddc4d9ac16bde738809f6
<ide><path>numpy/ma/core.py <ide> def power(a, b, third=None): <ide> The *out* argument to `numpy.power` is not supported, `third` has to be <ide> None. <ide> <add> Examples <add> -------- <add> >>> import numpy.ma as ma <add> >>> x = [11.2, -3.973, 0.801, -1.41] <add> >>> mask = [0, 0, 0, 1] <a...
1
Go
Go
fix merge issue
76a568fc9717ff69999ab54fba9277a0d31c305d
<ide><path>utils/utils.go <ide> func (r *progressReader) Read(p []byte) (n int, err error) { <ide> } <ide> if r.readProgress-r.lastUpdate > updateEvery || err != nil { <ide> if r.readTotal > 0 { <del> fmt.Fprintf(r.output, r.template, HumanSize(r.readProgress), HumanSize(r.readTotal), fmt.Sprintf("%.0f%%", float6...
1
PHP
PHP
remove trailing ;
30c4c54b5d973bd01a9e39085d35f5ad98048042
<ide><path>lib/Cake/Network/Http/Response.php <ide> protected function _parseHeaders($headers) { <ide> * @return void <ide> */ <ide> protected function _parseCookie($value) { <add> $value = rtrim($value, ';'); <ide> $nestedSemi = '";"'; <ide> if (strpos($value, $nestedSemi) !== false) { <ide> $value = str_re...
2
PHP
PHP
move fromreadablesize to parsefilesize
0c0a2aacd53147d441b3c6cab2f3c90d678f7d45
<ide><path>src/I18n/Number.php <ide> */ <ide> namespace Cake\I18n; <ide> <del>use Cake\Core\Exception\Exception; <ide> use NumberFormatter; <ide> <ide> /** <ide> public static function toReadableSize($size) { <ide> return __d('cake', '{0,number,#,###.##} TB', $size / 1024 / 1024 / 1024 / 1024); <ide> } <ide> ...
5
Ruby
Ruby
improve debugging output
1702b34f18f1244d913482d848fd64bb7a771009
<ide><path>Library/Homebrew/dev-cmd/update-test.rb <ide> def update_test <ide> safe_system "brew", "update", "--verbose" <ide> actual_end_commit = Utils.popen_read("git", "rev-parse", branch).chomp <ide> if actual_end_commit != end_commit <add> start_log = Utils.popen_read("git", "log", "-1", "...
1
Java
Java
avoid npe on comment sse event
5d8c5b0d9bf1ecb3b902ed55c320a4ea4fae0b38
<ide><path>spring-web/src/main/java/org/springframework/http/codec/ServerSentEventHttpMessageReader.java <ide> public Flux<Object> read( <ide> return this.lineDecoder.decode(message.getBody(), STRING_TYPE, null, hints) <ide> .doOnNext(limitTracker::afterLineParsed) <ide> .bufferUntil(String::isEmpty) <del> ...
2
Ruby
Ruby
fix style problems in migrator
a29832484c8ccceeb5437d4793d3a6c186cb304c
<ide><path>Library/Homebrew/migrator.rb <ide> def initialize(formula, tap) <ide> end <ide> end <ide> <add> # instance of new name formula <ide> attr_reader :formula <del> attr_reader :oldname, :oldpath, :old_pin_record, :old_opt_record <del> attr_reader :old_linked_keg_record, :oldkeg, :old_tabs, :old_tap <...
2
Ruby
Ruby
consider aliases in installed_prefixes
2afa8497c096ba85489b4f242c64a0cdf1b06214
<ide><path>Library/Homebrew/formula.rb <ide> def rack <ide> # All currently installed prefix directories. <ide> # @private <ide> def installed_prefixes <del> rack.directory? ? rack.subdirs.sort : [] <add> prefixes = rack.directory? ? rack.subdirs : [] <add> <add> prefixes += (aliases + Array(oldname)).fl...
1
PHP
PHP
fix additional issues with saveall()
d9bf3cf9873ece2268a3cdac1a04b1205f642b05
<ide><path>lib/Cake/Model/Behavior/TranslateBehavior.php <ide> public function beforeValidate(Model $model) { <ide> /** <ide> * beforeSave callback. <ide> * <add> * Copies data into the runtime property when `$options['validate']` is <add> * disabled. Or the runtime data hasn't been set yet. <add> * <ide> * @param ...
2
PHP
PHP
fix simple test
fb58f1906e7a486759393aa6dbfdf35615c82add
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testQualifyColumns() <ide> <ide> $builder->setModel(new EloquentModelStub); <ide> <del> $this->assertEquals(['stub.column', 'stub.column2', 'stub.column3'], $builder->qualifyColumns('column', 'column2', 'column3')); <del> ...
1
Javascript
Javascript
fix a typo on test-fs-read-optional-params
fb254d2a838b8b5a73b29b0a214ac3945bb8160e
<ide><path>test/parallel/test-fs-read-optional-params.js <ide> fs.read(fd, common.mustCall((err, bytesRead, buffer) => { <ide> fs.read(fd, { <ide> buffer: bufferAsOption, <ide> offset: 0, <del> lenght: bufferAsOption.length, <add> length: bufferAsOption.length, <ide> position: 0 <ide> }, <ide> common.mu...
1
Text
Text
imrpove russian translation in article (react)
8ed5ea54e411e98f6eea4bcbe0d7122625df36d3
<ide><path>guide/russian/react/component/index.md <ide> --- <ide> title: React - Components <del>localeTitle: Реакция - Компоненты <add>localeTitle: React - Компоненты <ide> --- <del>## Реакция - Компоненты <add>## React - Компоненты <ide> <del>Компоненты могут повторно использоваться в реакции.js. Вы можете ввести зн...
1
Text
Text
add traversal methods
dfb5779820a1eab227c8f29f378921ca645eb4e6
<ide><path>guide/english/algorithms/binary-search-trees/index.md <ide> The BST is built upon the idea of the <a href='https://guide.freecodecamp.org/al <ide> - Insert: insert a node in the tree. <ide> - Search: Searches for a node in the tree. <ide> - Delete: deletes a node from the tree. <add>- Inorder: in-order trave...
1
Javascript
Javascript
fix typos and links
9f2ad53084e08f477477b6d6b4e482c2cc87dd68
<ide><path>src/ngMock/angular-mocks.js <ide> angular.mock.$Browser.prototype = { <ide> * <ide> * @description <ide> * Configures the mock implementation of {@link ng.$exceptionHandler} to rethrow or to log errors <del> * passed into the `$exceptionHandler`. <add> * passed to the `$exceptionHandler`. <ide> */ <ide> ...
1
PHP
PHP
apply fixes from styleci
1d8ea077a93e7152be1f8d05dcdde7c4a0776cae
<ide><path>src/Illuminate/Foundation/Application.php <ide> use Illuminate\Filesystem\Filesystem; <ide> use Illuminate\Log\LogServiceProvider; <ide> use Illuminate\Support\ServiceProvider; <del>use Illuminate\Foundation\PackageManifest; <ide> use Illuminate\Events\EventServiceProvider; <ide> use Illuminate\Routing\Routi...
1
Text
Text
correct typos in es6 guide for getters/setters
2113b44b8a109bd0241a739f1e109c0f36b5d370
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/es6/use-getters-and-setters-to-control-access-to-an-object/index.md <ide> Create the class, Thermostat. You're going to put your constructor, getter, and <ide> <ide> ## Hint 2: <ide> <del>Give the constructor a parameter (which you can ...
1
Javascript
Javascript
fix failing test
96791e2173b12b5730d1840b5946d09a5558da8a
<ide><path>packages/ember-handlebars/tests/helpers/with_test.js <ide> test("it should support #with Foo.bar as qux", function() { <ide> equal(view.$().text(), "updated", "should update"); <ide> }); <ide> <del>module("Handlebars {{#with this as foo}}"); <add>if (Ember.VIEW_PRESERVES_CONTEXT) { <add> module("Handleba...
1
Text
Text
move who-to-cc to colaborator_guide.md
22884a7d23461f3256fd6352d20d0c6088375900
<ide><path>COLLABORATOR_GUIDE.md <ide> - [How are LTS Branches Managed?](#how-are-lts-branches-managed) <ide> - [How can I help?](#how-can-i-help) <ide> - [How is an LTS release cut?](#how-is-an-lts-release-cut) <add>* [Who to CC in the issue tracker](#who-to-cc-in-the-issue-tracker) <ide> <ide> This docum...
3
Ruby
Ruby
freeze the header object
b3d1f5b630debcc2d0572a3e3af1855ef93300c2
<ide><path>actionpack/lib/action_controller/metal/live.rb <ide> def initialize(status = 200, header = {}, body = []) <ide> super(status, header, body) <ide> end <ide> <add> def commit! <add> headers.freeze <add> super <add> end <add> <ide> private <ide> <ide> def buil...
2
Javascript
Javascript
add missing word 'are' and period
fe697527b4a09cdba3e741ce2be6b47a8a426aec
<ide><path>src/Angular.js <ide> function copy(source, destination, stackSource, stackDest) { <ide> /** <ide> * Creates a shallow copy of an object, an array or a primitive. <ide> * <del> * Assumes that there no proto properties for objects <add> * Assumes that there are no proto properties for objects. <ide> */ <ide...
1
Javascript
Javascript
fix early end in writables on zero-length writes
c0d500102a0a11e9d07ed9f0396aae81011e58da
<ide><path>lib/_stream_writable.js <ide> Writable.prototype.end = function(chunk, encoding, cb) { <ide> }; <ide> <ide> function finishMaybe(stream, state) { <del> if (state.ending && state.length === 0 && !state.finished) { <add> if (state.ending && <add> state.length === 0 && <add> !state.finished && <add...
3
Ruby
Ruby
fix fragile tests
8be22161edd7608acd5cae436e4278bfe9f05abf
<ide><path>activerecord/test/cases/tasks/database_tasks_test.rb <ide> def test_raises_an_error_when_called_with_protected_environment <ide> protected_environments = ActiveRecord::Base.protected_environments <ide> current_env = ActiveRecord::Base.connection.migration_context.current_environment <i...
1
Text
Text
fix typo in documentation.
ba226c2d26347807daafc1ada3be81dd516569c6
<ide><path>readme.md <ide> module.exports = (phase, {defaultConfig}){ <ide> } <ide> ``` <ide> <del>`phase` is the current context in which the configuration is loaded. You can see all phases here: [contants](./lib/constants.js) <add>`phase` is the current context in which the configuration is loaded. You can see all p...
1
Mixed
Javascript
add randomint function
6e8701b92335a0fbf2f732948c00202b4fa9bbfe
<ide><path>doc/api/crypto.md <ide> threadpool request. To minimize threadpool task length variation, partition <ide> large `randomFill` requests when doing so as part of fulfilling a client <ide> request. <ide> <add>### `crypto.randomInt([min, ]max[, callback])` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add...
4
Ruby
Ruby
ensure dir.glob is sorted
5c8be9eb864886d7ba9abba0d59786614cca2a5a
<ide><path>railties/lib/rails/paths.rb <ide> def expanded <ide> path = File.expand_path(p, @root.path) <ide> <ide> if @glob <del> result.concat Dir[File.join(path, @glob)] <add> result.concat Dir[File.join(path, @glob)].sort <ide> else <ide> result << pat...
1
Text
Text
fix various nits
de0053cc3280bdf72c9010f383290f79120a1e98
<ide><path>doc/api/addons.md <ide> Addon module name is `addon`. <ide> Once the source code has been written, it must be compiled into the binary <ide> `addon.node` file. To do so, create a file called `binding.gyp` in the <ide> top-level of the project describing the build configuration of the module <del>using a JSON...
34
Ruby
Ruby
make one function
2d4c792b0b6e74c06b9bc58ec93dbce50e89b67e
<ide><path>Library/Homebrew/extend/os/mac/keg.rb <ide> def codesign_patched_binary(file) <ide> end <ide> <ide> def dsymutil <del> binary_executable_or_library_files.each { |file| dsymutil_binary(file) } <del> end <del> <del> def dsymutil_binary(file) <del> odebug "Extracting symbols #{file}" <add> binar...
1
Python
Python
fix speed report in table
b693d2d22406390a1ae4e745d8beade1d6476dd4
<ide><path>spacy/language.py <ide> def evaluate( <ide> util.logger.debug(doc) <ide> eg.predicted = doc <ide> results = scorer.score(examples) <del> n_words = sum(len(eg.predicted) for eg in examples) <add> n_words = sum(len(doc) for doc in docs) <ide> results["speed...
2
PHP
PHP
add a function to simulate the php basename()
fb8d26480b2206bfc2f6d8de40cbcf1638110c65
<ide><path>src/Filesystem/File.php <ide> public function __construct($path, $create = false, $mode = 0755) <ide> $splInfo = new SplFileInfo($path); <ide> $this->Folder = new Folder($splInfo->getPath(), $create, $mode); <ide> if (!is_dir($path)) { <del> $this->name = ltrim($splInfo->ge...
1
Javascript
Javascript
add documentation for v3.3.1
a1c2ef7bd014409cb1452f28b98a1c650b864349
<ide><path>docs/source/_static/js/custom.js <ide> const stableVersion = "v3.3.0" <ide> // Dictionary doc folder to label <ide> const versionMapping = { <ide> "master": "master", <del> "": "v3.3.0", <add> "": "v3.3.0/v3.3.1", <ide> "v3.2.0": "v3.2.0", <ide> "v3.1.0": "v3.1.0 (stable)", <ide> "v3.0....
1
PHP
PHP
allow bulk storing/updating of mime types. closes
49f8e73ab347079089191d2138a2970424961aa7
<ide><path>lib/Cake/Network/CakeResponse.php <ide> class CakeResponse { <ide> <ide> /** <ide> * Holds cookies to be sent to the client <del> * <add> * <ide> * @var array <ide> */ <ide> protected $_cookies = array(); <ide> public function send() { <ide> * Sets the cookies that have been added via static method Ca...
2
PHP
PHP
add test for escaped environment variable string
b0d163f078145c6f1ae943bd487bb512b4e493b5
<ide><path>tests/Support/SupportHelpersTest.php <ide> public function testEnvNull() <ide> $this->assertNull(env('foo')); <ide> } <ide> <add> public function testEnvEscapedString() <add> { <add> $_SERVER['foo'] = '"null"'; <add> $this->assertSame('null', env('foo')); <add> } <add> <id...
1
Python
Python
update example of histogram2d to doctest format
f62522c610f334f86b1be2a586211d0e4dcdd934
<ide><path>numpy/lib/twodim_base.py <ide> def histogram2d(x, y, bins=10, range=None, normed=False, weights=None): <ide> -------- <ide> 2D-histogram with variable bin width: <ide> <del> import matplotlib as ml <del> import matplotlib.pyplot as plt <del> import numpy as np <add> >>> import matplotlib...
1
Python
Python
fix flaky test
74c51f213c7a187b76098331ca10fee10c9e5e59
<ide><path>keras/backend/tensorflow_backend.py <ide> def eval(x): <ide> def zeros(shape, dtype=_FLOATX, name=None): <ide> '''Instantiates an all-zeros tensor variable. <ide> ''' <add> shape = map(int, shape) <ide> tf_dtype = _convert_string_dtype(dtype) <ide> return variable(tf.constant_initializer(0...
2
Python
Python
fix reproducible tests in trainer
2bf70e215032ed80fcb27891fa4062b123c13522
<ide><path>tests/test_trainer.py <ide> import numpy as np <ide> <ide> from transformers import AutoTokenizer, TrainingArguments, is_torch_available <del>from transformers.testing_utils import get_tests_dir, require_non_multigpu, require_torch <add>from transformers.testing_utils import get_tests_dir, require_torch <id...
1
Javascript
Javascript
improve info about tracking
507185979f76a8075312b2ab3470bc199b3c3d35
<ide><path>src/ng/directive/ngRepeat.js <ide> * For example, if an item is added to the collection, `ngRepeat` will know that all other items <ide> * already have DOM elements, and will not re-render them. <ide> * <del> * The default tracking function (which tracks items by their identity) does not allow <del> * dup...
1
Ruby
Ruby
add keg-only to dsl
bdf245ff98e2c3498528d3f5f9ebb128fad5d700
<ide><path>Library/Homebrew/formula.rb <ide> def patches; end <ide> <ide> # rarely, you don't want your library symlinked into the main prefix <ide> # see gettext.rb for an example <del> def keg_only?; false end <add> def keg_only? <add> self.class.keg_only_reason || false <add> end <ide> <ide> # sometime...
1
Ruby
Ruby
move file action only to app generator
4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9
<ide><path>railties/lib/generators/actions.rb <ide> def route(routing_code) <ide> <ide> protected <ide> <del> # Define file as an alias to create_file for backwards compatibility. <del> # <del> def file(*args, &block) <del> create_file(*args, &block) <del> end <del> <ide> ...
4
Ruby
Ruby
fix indent and remove extra white spaces
bbfddf8470fcea21f31b285f6d1ef1bb723e07e1
<ide><path>actionpack/test/template/form_options_helper_test.rb <ide> def test_time_zone_select_with_priority_zones_as_regexp <ide> "</select>", <ide> html <ide> end <del> <add> <ide> def test_time_zone_select_with_priority_zones_as_regexp_using_grep_finds_no_zones <ide> @fir...
1
Javascript
Javascript
use shallow copy instead of angular.copy
a55c1e79cf8894c2d348d4cf911b28dcc8a6995e
<ide><path>src/ngResource/resource.js <ide> function lookupDottedPath(obj, path) { <ide> return obj; <ide> } <ide> <add>/** <add> * Create a shallow copy of an object and clear other fields from the destination <add> */ <add>function shallowClearAndCopy(src, dst) { <add> dst = dst || {}; <add> <add> angular.forEac...
1
Ruby
Ruby
add missing `require`s for `style` spec
2552ecb1e7b4148123e3b83990aee05a0a452271
<ide><path>Library/Homebrew/test/cask/cmd/style_spec.rb <ide> <ide> require "open3" <ide> <add>require "cli/args" <add>require "cli/named_args" <add> <ide> require_relative "shared_examples/invalid_option" <ide> <ide> describe Cask::Cmd::Style, :cask do
1
Javascript
Javascript
add spec for animationsdebugmodule
00fe438003150c4716d107f0bcd5610e364e4ff9
<ide><path>Libraries/NativeModules/specs/NativeAnimationsDebugModule.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow <add> * @format ...
1