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
Python
Python
move regression test for #360 into own file
c6e5a5349dae8aedb306840891863853a927c1a7
<ide><path>spacy/tests/regression/test_issue360.py <add>from __future__ import unicode_literals <add>from ...en import English <add> <add>import pytest <add> <add> <add>@pytest.fixture <add>def en_tokenizer(): <add> return English.Defaults.create_tokenizer() <add> <add> <add>def test_big_ellipsis(en_tokenizer): <add...
1
Ruby
Ruby
use env dsl
db772eee8a50f8adaaae01eac6b5a59053a0f330
<ide><path>Library/Homebrew/requirements/python_dependency.rb <ide> def pour_bottle? <ide> build? || system_python? <ide> end <ide> <del> def modify_build_environment <add> env do <ide> if system_python? <ide> if python_binary == "python" <ide> version = python_short_version
1
Mixed
Python
add mmbt model to transformers repo
df3961121f23f30a69979720c493c491a5c482ed
<ide><path>README.md <ide> At some point in the future, you'll be able to seamlessly move from pre-training <ide> 9. **[CTRL](https://github.com/salesforce/ctrl/)** (from Salesforce) released with the paper [CTRL: A Conditional Transformer Language Model for Controllable Generation](https://arxiv.org/abs/1909.05858) by...
7
Ruby
Ruby
apply suggestions from code review
f11786d63d4287c85a5298353467b89bfe9398b0
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def retrieve_and_display_info(formula_or_cask, name, repositories, args:) <ide> livecheck_latest = livecheck_result(formula_or_cask) <ide> pull_requests = retrieve_pull_requests(formula_or_cask, name) unless args.no_pull_requests? <ide> <del> print_name = be...
2
Python
Python
set version to v3.0.0
b6a198481bb5d206b3571977808c1527afb66bd1
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.0.1.dev0" <add>__version__ = "3.0.1" <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compatibility....
1
PHP
PHP
use local variable
2ce99051636e8dee09ef405edb90a483f72b7f40
<ide><path>src/Illuminate/View/Component.php <ide> public function resolveView() <ide> <ide> $factory = Container::getInstance()->make('view'); <ide> <del> return $factory->exists($this->render()) <del> ? $this->render() <del> : $this->createBladeViewFromString($fa...
1
Text
Text
fix default server timeout description for https
26cb448b0d74fa6440ca77ca83b1adba6cc50a87
<ide><path>doc/api/https.md <ide> See [`http.Server#setTimeout()`][]. <ide> ### `server.timeout` <ide> <!-- YAML <ide> added: v0.11.2 <add>changes: <add> - version: v13.0.0 <add> pr-url: https://github.com/nodejs/node/pull/27558 <add> description: The default timeout changed from 120s to 0 (no timeout). <ide> --...
1
Text
Text
add zyszys to collaborators
174da74701b28eeeb70a59045f2f1f44839cda51
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Yorkie Liu** &lt;yorkiefixer@gmail.com&gt; <ide> * [yosuke-furukawa](https://github.com/yosuke-furukawa) - <ide> **Yosuke Furukawa** &lt;yosuke.furukawa@gmail.com&gt; <add>* [ZYSzys](https://github.com/ZYSzys) - <add>**Y...
1
Ruby
Ruby
remove tests for not swallowing exceptions
2b0406cedb61c4c2f74ecca61fc07771e911fd35
<ide><path>activerecord/test/cases/adapters/mysql/connection_test.rb <ide> def test_mysql_set_session_variable_to_default <ide> end <ide> end <ide> <del> def test_mysql_begin_db_transaction_can_throw_an_exception <del> @connection.expects(:exec_query).with('BEGIN').raises('OH NOES') <del> assert_raise Run...
2
Text
Text
simplify example usage instructions
c03d4931debae938f1916c9ee85777a159d26371
<ide><path>contributing.md <ide> Deploy the example using [Vercel](https://vercel.com/now): <ide> <ide> ## How to use <ide> <del>### Using `create-next-app` <del> <ide> Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Y...
202
Javascript
Javascript
update example to use array annotations
dba8b7e95895cd1991fa057b8c85e8d4012b7beb
<ide><path>src/ng/sce.js <ide> function $SceDelegateProvider() { <ide> * <ide> * <example module="mySceApp" deps="angular-sanitize.js"> <ide> * <file name="index.html"> <del> * <div ng-controller="myAppController as myCtrl"> <add> * <div ng-controller="AppController as myCtrl"> <ide> * <i ng-bind-html="myCt...
1
Python
Python
write animations at the root
8ee9c980007eca2ff0cd8bdd6c06a59236ad3f64
<ide><path>utils/exporters/blender/addons/io_three/exporter/api/mesh.py <ide> def blend_shapes(mesh, options): <ide> return manifest <ide> <ide> @_mesh <del>def animated_blend_shapes(mesh, options): <add>def animated_blend_shapes(mesh, name, options): <ide> """ <ide> <ide> :param mesh: <ide> def animated_...
5
Ruby
Ruby
prevent state leak in test
20181e4fa94c50c8afe02181a5537e93caafcd2c
<ide><path>activerecord/test/cases/adapters/postgresql/schema_test.rb <ide> def test_dump_indexes_for_schema_multiple_schemas_in_search_path <ide> end <ide> <ide> def test_with_uppercase_index_name <del> ActiveRecord::Base.connection.execute "CREATE INDEX \"things_Index\" ON #{SCHEMA_NAME}.things (name)" <del> ...
1
Text
Text
remove double spaces in guides
53607be559ec60e3b5bd915f8533550648f7ef8a
<ide><path>guides/source/action_mailer_basics.md <ide> files (environment.rb, production.rb, etc...) <ide> | Configuration | Description | <ide> |---------------|-------------| <ide> |`logger`|Generates information on the mailing run if available. Can be set to `nil` for no logging. Compatible with both Ruby's own `Log...
8
Ruby
Ruby
reimplement softwarespec on top of resource
df537528c7730e9a6d791b86ed529547fdf48496
<ide><path>Library/Homebrew/compat/md5.rb <ide> class Formula <ide> def self.md5(val) <del> @stable ||= SoftwareSpec.new <add> @stable ||= create_spec(SoftwareSpec) <ide> @stable.md5(val) <ide> end <ide> end <ide> <ide> class SoftwareSpec <add> def md5(val) <add> @resource.md5(val) <add> end <add>en...
4
PHP
PHP
add property to route service provider
9cbc3819f7b1c268447996d347a1733aa68e16d7
<ide><path>app/Providers/RouteServiceProvider.php <ide> class RouteServiceProvider extends ServiceProvider <ide> */ <ide> public const HOME = '/home'; <ide> <add> /** <add> * If specified, this namespace is automatically applied to your controller routes. <add> * <add> * In addition, it is set ...
1
Python
Python
fix tolerance for a bloom slow test
d453ea61205882eb4210f8c4d2fb001e2c96872b
<ide><path>tests/models/bloom/test_modeling_bloom.py <ide> def test_hidden_states_transformers(self): <ide> } <ide> <ide> if cuda_available: <del> self.assertEqual(MEAN_VALUE_LAST_LM, logits.last_hidden_state.mean().item()) <add> self.assertAlmostEqual(MEAN_VALUE_LAST_LM, logits.l...
1
Python
Python
remove unused import from test_basic
5909e26fba86351063bd622cedf6a4c25eba2e79
<ide><path>tests/test_basic.py <ide> :license: BSD, see LICENSE for more details. <ide> """ <ide> <del>import pickle <ide> import re <ide> import time <ide> import uuid
1
Javascript
Javascript
increase coverage for histogram
434b369ef60c4599a4bac374a15add608dd09ae7
<ide><path>test/parallel/test-perf-hooks-histogram.js <ide> const { <ide> createHistogram, <ide> monitorEventLoopDelay, <ide> } = require('perf_hooks'); <add>const { inspect } = require('util'); <ide> <ide> { <ide> const h = createHistogram(); <ide> const { <ide> }); <ide> setTimeout(() => mc.port2.postMessa...
1
Ruby
Ruby
prevent race condition when resetting time stubs
6122d2bfdf09fb4a3e70d619556ef471be274169
<ide><path>activesupport/lib/active_support/testing/time_helpers.rb <ide> # frozen_string_literal: true <ide> <add>require "active_support/core_ext/module/redefine_method" <ide> require "active_support/core_ext/string/strip" # for strip_heredoc <ide> require "active_support/core_ext/time/calculations" <ide> require "c...
1
PHP
PHP
fix doc block
98271e29dc7ef6ea808c2b5786204b93b20aa7bd
<ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php <ide> protected function resetPassword($user, $password) <ide> } <ide> <ide> /** <del> * Get the post register / login redirect path. <add> * Get the post password reset redirect path. <ide> * <ide> * @return string <ide> */
1
Java
Java
introduce tests for gh-28083
af14eea1ef76576acd07ba90cd0a656bd6b31969
<ide><path>spring-context/src/test/java/org/springframework/context/annotation/Spr3775InitDestroyLifecycleTests.java <ide> public void testJsr250AnnotationsWithShadowedMethods() { <ide> bean.destroyMethods); <ide> } <ide> <add> @Test <add> public void testJsr250AnnotationsWithCustomPrivateInitDestroyMethods() { <...
1
Python
Python
improve log messages
9c3a6b41290928f8097faace54fb9acfd0b9f77a
<ide><path>airflow/www/app.py <ide> def log(self): <ide> log += "*** Fetching here: {url}\n".format(**locals()) <ide> try: <ide> import requests <del> log += requests.get(url).text <add> log += '\n' + requests.get(url).text <ide> ...
1
Text
Text
release notes for the 0.9.14 key-maker iteration
f1096043157a4e80c78b2bfa692c9f5680e82e7c
<ide><path>CHANGELOG.md <ide> <a name="0.9.14"><a/> <del># <angular/> 0.9.14 key-maker (in-progress) # <add># <angular/> 0.9.14 key-maker (2011-04-01) # <add> <add>### Performance <add>- [ng:repeat] grows (adds children) significantly faster. (commit 15ec78f5) <add>- [$xhr.cache] optionally executes callbacks synchrono...
1
Text
Text
update changelog for 2.14.0
7cb51f65c2234d2692cca5383689648503cfa575
<ide><path>CHANGELOG.md <ide> Changelog <ide> ========= <ide> <add>### 2.14.0 [See full changelog](https://gist.github.com/ichernev/812e79ac36a7829a22598fe964bfc18a) <add> <add>## New Features <add>* [#3233](http://github.com/moment/moment/pull/3233) Introduce month.isFormat for format/standalone discovery <add>* [#28...
1
Javascript
Javascript
add patreon client key validation
7f769cdaf8cba40198fdc9d5c3d3c774854b1316
<ide><path>tools/scripts/build/ensure-env.js <ide> if (FREECODECAMP_NODE_ENV !== 'development') { <ide> 'showUpcomingChanges' <ide> ]; <ide> const searchKeys = ['algoliaAppId', 'algoliaAPIKey']; <del> const donationKeys = ['stripePublicKey', 'paypalClientId']; <add> const donationKeys = ['stripePublicKey', 'p...
1
PHP
PHP
move plugin to the root of the new app directory
735b6c2b808e885dc897c020934a9becb3230e6b
<ide><path>lib/Cake/Test/TestCase/Core/AppTest.php <ide> public function testListObjects() { <ide> <ide> $result = App::objects('NonExistingType'); <ide> $this->assertSame(array(), $result); <add> } <ide> <add> function testMe() { <ide> App::build(array( <ide> 'Plugin' => array( <ide> CAKE . 'Test/TestAp...
1
Ruby
Ruby
pass explicit sort to handle apfs
ccecdab4cd069a82820e239c1821076396314826
<ide><path>Library/Homebrew/cmd/list.rb <ide> def filtered_list <ide> puts d.basename.to_s.concat(ARGV.include?("--versions") ? " #{version}" : "") <ide> end <ide> else # --versions without --pinned <del> names.each do |d| <add> names.sort.each do |d| <ide> versions = d.subdirs.map {...
1
Javascript
Javascript
fix typo in internal/modules/esm/module_job.js
b079960b18444adf0c45318473b80c833fe5a40b
<ide><path>lib/internal/modules/esm/module_job.js <ide> class ModuleJob { <ide> const importStatement = splitStack[1]; <ide> // TODO(@ctavan): The original error stack only provides the single <ide> // line which causes the error. For multi-line import statements we <del> // canno...
1
PHP
PHP
return the array from array_set
e929c3bef598e242997c61f8e893a2a7f8ecb286
<ide><path>src/Illuminate/Support/helpers.php <ide> function array_pull(&$array, $key) <ide> * @param array $array <ide> * @param string $key <ide> * @param mixed $value <del> * @return void <add> * @return array <ide> */ <ide> function array_set(&$array, $key, $value) <ide> { <ide> function array_s...
1
Python
Python
remove unused import
0bb4e0fad5b4bb3743c8a7d03c260b62a35e7045
<ide><path>keras/applications/inception_v3.py <ide> from ..layers import GlobalAveragePooling2D <ide> from ..layers import GlobalMaxPooling2D <ide> from ..engine.topology import get_source_inputs <del>from ..utils.layer_utils import convert_all_kernels_in_model <ide> from ..utils.data_utils import get_file <ide> from ....
1
Text
Text
add missing quotation marks
aa7c58f7e58cc2391d47af92624449595fb0ae08
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/everything-be-true.md <ide> assert.strictEqual(truthCheck( <ide> "users"), true); <ide> ``` <ide> <del>`truthCheck([{id: 1, data: {url: "https://freecodecamp.org", name: "freeCodeCamp}}, {id: 2, dat...
1
Javascript
Javascript
remove misc console.logs
f3b1b5ca0de01653d51ecad5dbf4f3578e7ad1df
<ide><path>public/js/main_0.0.2.js <ide> profileValidation.directive('uniqueEmail', ['$http', function($http) { <ide> .success(function (exists) { <ide> if (email === scope.storedEmail) { <ide> ngModel.$setValidity('unique', true); <del> console.log('scoped.store...
1
Text
Text
clarify behavior of napi_get_typedarray_info
2681cba62e5e08338036c968c93ae467dda3e800
<ide><path>doc/api/n-api.md <ide> napi_status napi_get_arraybuffer_info(napi_env env, <ide> <ide> * `[in] env`: The environment that the API is invoked under. <ide> * `[in] arraybuffer`: `napi_value` representing the `ArrayBuffer` being queried. <del>* `[out] data`: The underlying data buffer of the `ArrayBuffer`. <ad...
1
Java
Java
update copyright year of changed file
31b8587ce61b2a37268eeaf2c83bd57b65ccd141
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/adapter/ThrowsAdviceAdapter.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
1
Text
Text
add missing changelog links
174b191f70b5587c8e9005bca063a193a36a1352
<ide><path>CHANGELOG.md <ide> release. <ide> </tr> <ide> <tr> <ide> <td valign="top"> <del><b><a href="doc/changelogs/CHANGELOG_V16.md#16.2.0">16.2.0</a></b><br/> <add><b><a href="doc/changelogs/CHANGELOG_V16.md#16.3.0">16.3.0</a></b><br/> <add><a href="doc/changelogs/CHANGELOG_V16.md#16.2.0">16.2.0</a><br/> <ide> ...
1
Text
Text
fix typos in active support docs
a94d843d121f74133624bc9d740c997b8f5566ec
<ide><path>guides/source/active_support_core_extensions.md <ide> NOTE: Defined in `active_support/core_ext/array/wrap.rb`. <ide> ### Duplicating <ide> <ide> The method `Array#deep_dup` duplicates itself and all objects inside <del>recursively with Active Support method `Object#deep_dup`. It works like `Array#map` with...
1
PHP
PHP
add missed typehint
31614341e2ce9ca22ec1fcd44ca3a08751aaf916
<ide><path>src/Form/Form.php <ide> protected function _execute(array $data): bool <ide> * all fields. <ide> * @return mixed <ide> */ <del> public function getData($field = null) <add> public function getData(?string $field = null) <ide> { <ide> if ($field === null) { <ide> ...
1
Python
Python
simplify apiclient implementation
ab799ccc3ee473de61ec35c6f745c6952752c522
<ide><path>rest_framework/authentication.py <ide> def authenticate(self, request): <ide> """ <ide> <ide> # Get the underlying HttpRequest object <del> http_request = request._request <del> user = getattr(http_request, 'user', None) <add> request = request._request <add> user...
2
Ruby
Ruby
add ldflags parameter to std_go_args
86beda7f19eb2acb0b6fbcf4baa8a86e91a336be
<ide><path>Library/Homebrew/formula.rb <ide> def std_cmake_args <ide> end <ide> <ide> # Standard parameters for Go builds. <del> sig { returns(T::Array[T.any(String, Pathname)]) } <del> def std_go_args <del> ["-trimpath", "-o", bin/name] <add> sig { params(ldflags: T.nilable(String)).returns(T::Array[String]...
1
Text
Text
decapitalize primitive types
d955645e4bd6528bfb1f2dace63e57f06ef798c5
<ide><path>doc/api/dgram.md <ide> added: v0.11.14 <ide> --> <ide> <ide> * `options` {Object} Required. Supports the following properties: <del> * `port` {Integer} <add> * `port` {integer} <ide> * `address` {string} <ide> * `exclusive` {boolean} <ide> * `callback` {Function} <ide> packets may be sent to a local i...
4
Java
Java
fix simplekey equality with array argument
6d8f3a0a20fe3f0f75dc98eccd7080248238f567
<ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/SimpleKey.java <ide> public SimpleKey(Object... elements) { <ide> <ide> @Override <ide> public boolean equals(Object obj) { <del> return (this == obj || (obj instanceof SimpleKey && Arrays.equals(this.params, ((SimpleKey) obj).params))); ...
2
Python
Python
show time spent in the warning of slow progress
6e004306dfe70ab499afc04c31808fdac594ae08
<ide><path>keras/callbacks.py <ide> def on_batch_end(self, batch, logs=None): <ide> delta_t_median = np.median(self._delta_ts_batch_end) <ide> if (self._delta_t_batch > 0. and <ide> (delta_t_median > 0.95 * self._delta_t_batch and delta_t_median > 0.1)): <del> warnings.warn('Method...
1
Text
Text
remove experimental from rmdir recursive
35b17d9abd123853a8e035ca7bc185f7e942d73b
<ide><path>doc/api/fs.md <ide> changes: <ide> it will emit a deprecation warning with id DEP0013. <ide> --> <ide> <del>> Stability: 1 - Recursive removal is experimental. <del> <ide> * `path` {string|Buffer|URL} <ide> * `options` {Object} <ide> * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFI...
1
Ruby
Ruby
fix typo in comment
3c917dd1ec84299460657237f2f4771086ba1106
<ide><path>activerecord/lib/active_record/relation/calculations.rb <ide> module Calculations <ide> # # => counts the number of different age values <ide> # <ide> # Note: not all valid +select+ expressions are valid +count+ expressions. The specifics differ <del> # between databases. In invalid cases, a...
1
Ruby
Ruby
freeze columns just before using them as hash keys
2068d300917ed95a82e7377ee77b397fc4084a61
<ide><path>activerecord/lib/active_record/result.rb <ide> class Result <ide> attr_reader :columns, :rows, :column_types <ide> <ide> def initialize(columns, rows, column_types = {}) <del> @columns = columns.map{|c| c.freeze} <add> @columns = columns <ide> @rows = rows <ide> ...
1
Javascript
Javascript
add small doc for `unwatch`
97ed5c28a1d4fe4dbeee6cb2de3931f725dfbdd2
<ide><path>packages/ember-metal/lib/observer.js <ide> export function changeEvent(keyName) { <ide> @static <ide> @for @ember/object/observers <ide> @param obj <del> @param {String} _path <add> @param {String} path <ide> @param {Object|Function} target <ide> @param {Function|String} [method] <ide> @public ...
2
Text
Text
add basic install guide
43b166ad5115fb72a6edd3e416988b9fb75f5ee3
<ide><path>README.md <del># activetext <add># Active Text <add> <add>🤸‍♂️💰📝 <add> <add>## Installing <add> <add>Assumes a Rails 5.2+ application with Active Storage and Webpacker installed. <add> <add>1. Install the gem: <add> <add> ```ruby <add> # Gemfile <add> gem "activetext", github: "basecamp/activetext",...
1
Go
Go
fix duplicate display of dangling images
c680dd9e5adfe7255ac4499bff26bbb6edf7fe78
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdImages(args ...string) error { <ide> outID = common.TruncateID(outID) <ide> } <ide> <del> // Tags referring to this image ID. <del> for _, repotag := range out.GetList("RepoTags") { <del> repo, tag := parsers.ParseRepositoryTag(repotag) <ad...
2
Javascript
Javascript
move logic from viewer.js to chromecom.js
bfcc8af6edcd40933f5e996279a7c9519201e19c
<ide><path>web/chromecom.js <ide> * limitations under the License. <ide> */ <ide> <del>/* globals chrome */ <add>/* globals chrome, PDFJS, PDFView */ <ide> 'use strict'; <ide> <ide> var ChromeCom = (function ChromeComClosure() { <del> return { <del> /** <del> * Creates an event that the extension is listeni...
2
PHP
PHP
add deprecation warning
401870e6a0bf210a6711d28af6ee9c033423450d
<ide><path>src/View/ViewVarsTrait.php <ide> public function createView($viewClass = null) <ide> $builder->setClassName($viewClass); <ide> } <ide> <del> $validViewOptions = $this->viewOptions(); <add> $validViewOptions = isset($this->_validViewOptions) ? $this->_validViewOptions : []; ...
2
PHP
PHP
add keymap method to collection
c5acf79cc86275f45018056cb3c1e95f32619af1
<ide><path>src/Illuminate/Support/Collection.php <ide> public function map(callable $callback) <ide> return new static(array_combine($keys, $items)); <ide> } <ide> <add> /** <add> * Run a map over each key of the items. <add> * <add> * @param callable $callback <add> * @return static <...
2
Javascript
Javascript
add js changes
a9bed8e75d9b9613c5fcb69436a2d3af763f456d
<ide><path>Libraries/Core/setUpReactDevTools.js <ide> if (__DEV__) { <ide> }); <ide> <ide> const ReactNativeStyleAttributes = require('../Components/View/ReactNativeStyleAttributes'); <add> const devToolsSettingsManager = require('../DevToolsSettings/DevToolsSettingsManager'); <ide> <ide> react...
1
Python
Python
update serialization tests for tokenizer
3152ee5ca2f21708e428faac5eaadbb403d0a1dc
<ide><path>spacy/tests/serialize/test_serialize_tokenizer.py <ide> # coding: utf-8 <ide> from __future__ import unicode_literals <ide> <del>from ..util import make_tempdir <add>from ...util import get_lang_class <add>from ..util import make_tempdir, assert_packed_msg_equal <ide> <ide> import pytest <ide> <ide> <del...
1
Text
Text
fix readme links in the main readme.md
c02675b649fe5c27477a6d053b8500be9f2b422d
<ide><path>README.md <ide> database rows as objects and embellish these data objects with business logic <ide> methods. Although most Rails models are backed by a database, models can also <ide> be ordinary Ruby classes, or Ruby classes that implement a set of interfaces <ide> as provided by the Active Model module. Yo...
1
Python
Python
add new algorithm for armstrong numbers
f37d415227a21017398144a090a66f1c690705eb
<ide><path>maths/armstrong_numbers.py <ide> """ <del>An Armstrong number is equal to the sum of its own digits each raised <del>to the power of the number of digits. <add>An Armstrong number is equal to the sum of its own digits each raised to the <add>power of the number of digits. <add> <ide> For example, 370 is an A...
1
Go
Go
skip privileged tests when non-root
c7e74267965f9b03e64128de6951ee25fed66afc
<ide><path>pkg/chrootarchive/archive_unix_test.go <ide> import ( <ide> "github.com/docker/docker/pkg/archive" <ide> "golang.org/x/sys/unix" <ide> "gotest.tools/v3/assert" <add> "gotest.tools/v3/skip" <ide> ) <ide> <ide> // Test for CVE-2018-15664 <ide> // Assures that in the case where an "attacker" controlled path...
1
Javascript
Javascript
move nodes around by reference instead of by index
27926572f6bd468d8dc4e7e855ea9ce87fc4b406
<ide><path>src/renderers/dom/client/utils/DOMChildrenOperations.js <ide> var ReactPerf = require('ReactPerf'); <ide> <ide> var setInnerHTML = require('setInnerHTML'); <ide> var setTextContent = require('setTextContent'); <del>var invariant = require('invariant'); <add> <add>function getNodeAfter(parentNode, node) { <a...
3
Ruby
Ruby
remove duplicated parameter check on #where!
1a4d13b8f429afe218eb98d8dbf82780e4f191e6
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def where(opts = :chain, *rest) <ide> end <ide> end <ide> <del> def where!(opts = :chain, *rest) # :nodoc: <del> if opts == :chain <del> WhereChain.new(self) <del> else <del> references!(PredicateBuilder.refe...
2
Javascript
Javascript
remove console in euler
24f427a54b5dd312978c1e75cdd4262e076159c4
<ide><path>test/unit/math/Euler.js <ide> module( "Euler" ); <ide> var eulerZero = new THREE.Euler( 0, 0, 0, "XYZ" ); <ide> var eulerAxyz = new THREE.Euler( 1, 0, 0, "XYZ" ); <ide> var eulerAzyx = new THREE.Euler( 0, 1, 0, "ZYX" ); <del> <add> <ide> var matrixEquals4 = function( a, b, tolerance ) { <ide> tolerance = t...
1
Text
Text
add example docs for a rexray plugin
5f713cecc5f65ea61db5b5362f26f96de9427eb0
<ide><path>docs/extend/EBS_volume.md <add>--- <add>description: Volume plugin for Amazon EBS <add>keywords: "API, Usage, plugins, documentation, developer, amazon, ebs, rexray, volume" <add>title: Volume plugin for Amazon EBS <add>--- <add> <add><!-- This file is maintained within the docker/docker Github <add> rep...
2
Javascript
Javascript
show error on jbig2 images
4616ee0ee8f392c3bdd98eea8835fc5acc966c0d
<ide><path>src/parser.js <ide> var Parser = (function ParserClosure() { <ide> if (name == 'RunLengthDecode') { <ide> return new RunLengthStream(stream); <ide> } <add> if (name == 'JBIG2Decode') { <add> error('JBIG2 image format is not currently supprted.'); <add> } <ide> warn(...
1
Ruby
Ruby
establish a convention for requirement names
71f85300b4da4a1e3bd161646a7cd91fb1436734
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_symbol_spec spec, tag <ide> Dependency.new(spec.to_s, tag) <ide> when :x11 then X11Dependency.new(spec.to_s, tag) <ide> when :xcode then XcodeDependency.new(tag) <del> when :mysql then MysqlInstalled.new(tag) <del> ...
4
Ruby
Ruby
remove explicit file.expand_path call
b685095fc957a428fd86514d28a9183dbbdc3ab5
<ide><path>activesupport/lib/active_support/file_evented_update_checker.rb <ide> def base_directories <ide> end <ide> <ide> def existing_parent(dir) <del> dir = Pathname.new(File.expand_path(dir)) <add> dir = Pathname.new(expand_path(dir)) <ide> <ide> loop do <ide> if dir.directory?
1
Go
Go
show active driver in docker info output
062810caedba973e76a3dd7eb9e45b56511eefc6
<ide><path>api_params.go <ide> type APIInfo struct { <ide> Debug bool <ide> Containers int <ide> Images int <add> Driver string `json:",omitempty"` <ide> NFd int `json:",omitempty"` <ide> NGoroutines int `json:",omitempty"` <ide> MemoryLimit...
4
PHP
PHP
remove exception coercion
dc0da6e015b2f554c2a314a06ae080b5dd4bb308
<ide><path>src/Error/ExceptionRenderer.php <ide> class ExceptionRenderer { <ide> * @param \Exception $exception Exception <ide> */ <ide> public function __construct(\Exception $exception) { <del> if (!Configure::read('debug') && !($exception instanceof Error\HttpException)) { <del> $code = $this->_code($exception...
2
Javascript
Javascript
fix lint error
fe8fe0ff0d4e79066921377fd94f10986918ccc1
<ide><path>server/boot/randomAPIs.js <ide> module.exports = function(app) { <ide> router.get('/stories', showTestimonials); <ide> router.get('/all-stories', showAllTestimonials); <ide> router.get('/links', showLinks); <del> router.get('/the-fastest-web-page-on-the-internet', theFastestWebPageOnTheInternet); <add...
1
Javascript
Javascript
avoid usage of mixed ipv6 addresses
17883dfaafd9ffa257cefc30f37bdbd7bfa023d0
<ide><path>test/parallel/test-cluster-disconnect-handles.js <ide> if (cluster.isMaster) { <ide> debugger; <ide> }; <ide> if (common.hasIPv6) <del> server.listen(cb); <add> server.listen(0, '::1', cb); <ide> else <ide> server.listen(0, common.localhostIPv4, cb); <ide> process.on('disconnect', proce...
1
Text
Text
update dead link
ab19bc641ca2cd6b4dc7d408bbb8df29432c07d4
<ide><path>share/doc/homebrew/El_Capitan_and_Homebrew.md <ide> SIP prevents you from writing to many system directories such as `/usr`, `/Syste <ide> <ide> One of the implications of SIP is that you cannot simply create `/usr/local` if it is removed or doesn't exist for another reason. However, as noted in the keynote...
1
PHP
PHP
add more classes in the rename classes task
c008812c343028f9e05f84a9046ad9cda8129f36
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> protected function _renameClasses($path, $dryRun) { <ide> 'Cake\Network\Http\HttpSocket' => 'Cake\Network\Http\Client', <ide> 'HttpSocket' => 'Client', <ide> 'Cake\Model\ConnectionManager' => 'Cake\Database\ConnectionManager', <add> 'Cake\Configure\C...
1
Javascript
Javascript
clarify return value if no cookie exist
8a433f3cc583220da32d5fd3032bfbb52ebde84d
<ide><path>src/ngCookies/cookies.js <ide> angular.module('ngCookies', ['ng']). <ide> * Returns the value of given cookie key <ide> * <ide> * @param {string} key Id to use for lookup. <del> * @returns {Object} Deserialized cookie value. <add> * @returns {Object} Deserialized co...
1
Javascript
Javascript
pass request to .createconnection()
53716eb0b5338999761d115fad9d392077836e63
<ide><path>lib/http.js <ide> Agent.prototype.addRequest = function(req, host, port, localAddress) { <ide> } <ide> if (this.sockets[name].length < this.maxSockets) { <ide> // If we are under maxSockets create a new one. <del> req.onSocket(this.createSocket(name, host, port, localAddress)); <add> req.onSock...
2
Javascript
Javascript
keep challengefile order on update
2952f9399d3cf2601aba4120f14030dccf102391
<ide><path>client/src/templates/Challenges/redux/index.js <ide> export const reducer = handleActions( <ide> ); <ide> return { <ide> ...state, <del> challengeFiles: [ <del> ...state.challengeFiles.filter(x => x.fileKey !== fileKey), <del> { <del> ...state.challen...
1
PHP
PHP
use proper method visibility
222800c2658647619ed9cbf608faaae277a1c8a1
<ide><path>tests/Auth/AuthDatabaseTokenRepositoryTest.php <ide> <ide> class AuthDatabaseTokenRepositoryTest extends TestCase <ide> { <del> public function setUp(): void <add> protected function setUp(): void <ide> { <ide> parent::setUp(); <ide> <ide> Carbon::setTestNow(Carbon::now()); <ide> ...
207
PHP
PHP
fix path for namespaced translation overrides
5d93473b56b7ce481000902ec8f2e3c426be7c03
<ide><path>src/Illuminate/Translation/FileLoader.php <ide> protected function loadNamespaced($locale, $group, $namespace) <ide> */ <ide> protected function loadNamespaceOverrides(array $lines, $locale, $group, $namespace) <ide> { <del> $file = "{$this->path}/packages/{$locale}/{$namespace}/{$group}.php"; <add> $f...
2
Python
Python
add cli.package command to build model packages
bf240132d70b497e6c5c57407e5ca1cfdc9b17e3
<ide><path>spacy/__main__.py <ide> from spacy.cli import download as cli_download <ide> from spacy.cli import link as cli_link <ide> from spacy.cli import info as cli_info <add>from spacy.cli import package as cli_package <ide> <ide> <ide> class CLI(object): <ide> """Command-line interface for spaCy""" <ide> <de...
3
Ruby
Ruby
check has_apple_developer_tools? once
8830e401a9332abd6d75261a7116851a2a9c135b
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> <ide> unless ignore_deps? <ide> deps = compute_dependencies <del> check_dependencies_bottled(deps) if pour_bottle? <add> check_dependencies_bottled(deps) if pour_bottle? && !MacOS.has_apple_developer_tools? <ide> install...
1
Mixed
Ruby
support endless ranges in where
7110dbea008dd4b80d1764003935a3c97ab10f57
<ide><path>activerecord/CHANGELOG.md <add>* Add support for endless ranges introduces in Ruby 2.6. <add> <add> *Greg Navis* <add> <ide> * Deprecate passing `migrations_paths` to `connection.assume_migrated_upto_version`. <ide> <ide> *Ryuta Kamizono* <ide><path>activerecord/lib/arel/predications.rb <ide> def...
3
Python
Python
remove all uses of zope.interface
9292ee9317d8ff15bf020a9488de1915c85d339a
<ide><path>libcloud/base.py <ide> """ <ide> import httplib, urllib <ide> import libcloud <del>from zope import interface <del>from libcloud.interface import IConnectionUserAndKey, IResponse <del>from libcloud.interface import IConnectionKey, IConnectionKeyFactory <del>from libcloud.interface import IConnectionUserAndKe...
5
Ruby
Ruby
remove silly path method
c7ec737f86bade367eb45e004f21ec1b16f3e2e9
<ide><path>Library/Homebrew/formula.rb <ide> def initialize name='__UNKNOWN__', path=nil <ide> @name=name <ide> validate_variable :name <ide> <del> @path = path.nil? ? nil : Pathname.new(path) <add> # If we got an explicit path, use that, else determine from the name <add> @path = path.nil? ? self.cla...
1
Text
Text
update markdown formatting for *.md files
549f96889a77c39fa4f2257305788a00848f9e97
<ide><path>BUILDING.md <ide> platforms. This is true regardless of entries in the table below. <ide> | FreeBSD | x64 | >= 11 | Experimental | Downgraded as of Node.js 12 <sup>[7](#fn7)</sup> | <ide> <ide> <em id="fn1">1</em>: GCC 8 is not provided on the base platfo...
5
PHP
PHP
fix bug in type hint
187e239aede4d443827d9de77105d1d137a8e053
<ide><path>src/Illuminate/Foundation/Application.php <ide> protected function getStackedClient() <ide> /** <ide> * Merge the developer defined middlewares onto the stack. <ide> * <del> * @param \Symfony\Component\HttpKernel\HttpKernelInterface <add> * @param \Stack\Builder <ide> * @return void <ide> */ <de...
1
PHP
PHP
add docblock to toilluminateresponse
83167a14ad2a378eaf9bc8b21acc14d0f9ceb445
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> <ide> use Exception; <ide> use Psr\Log\LoggerInterface; <add>use Illuminate\Http\Response; <ide> use Symfony\Component\HttpKernel\Exception\HttpException; <ide> use Symfony\Component\Console\Application as ConsoleApplication; <ide> use Symfony\Component...
1
Ruby
Ruby
simplify version comparison tests
23cc14f9a15da11bac6f3847887e91f129d29b7b
<ide><path>Library/Homebrew/test/test_versions.rb <ide> class VersionComparisonTests < Test::Unit::TestCase <ide> include VersionAssertions <ide> <ide> def test_version_comparisons <del> assert_version_comparison '0.1', '==', '0.1.0' <del> assert_version_comparison '0.1', '!=', '0.2' <del> assert_version_...
2
Text
Text
add changes for 1.4.0-rc.1
c10b249e3d08b3bf27a871138d7f587a46b244cb
<ide><path>CHANGELOG.md <add><a name="v1.4.0-rc.1"></a> <add># v1.4.0-rc.1 Sartorial Chronography (2015-04-24) <add> <add> <add>## Bug Fixes <add> <add>- **$animate:** <add> - ensure that from styles are applied for class-based animations <add> ([8f819d2c](https://github.com/angular/angular.js/commit/8f819d2cb5c8025b...
1
Javascript
Javascript
update string#objectat documentation
eaaa0927943dc2ecca30ae5415ab8b6ba653ad88
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> // License: Licensed under MIT license (see license.js) <ide> // ========================================================================== <ide> <del> <ide> require('ember-runtime/mixins/enumerable'); <ide> <del> <del> <ide> // ..............................
1
Python
Python
fix error getting floating ip instance_id
f33fcd6a6aaa119d557d29ca4db9e3b2a5d33a60
<ide><path>libcloud/compute/drivers/openstack.py <ide> def _to_floating_ip(self, obj): <ide> port.extra["mac_address"]} <ide> <ide> if 'port_details' in obj and obj['port_details']: <del> if obj['port_details']['device_owner'] == 'compute:nova': <add> ...
1
Ruby
Ruby
serialize stdout on ci
869fb0214971f3dbcccbe1915702ffc7e7d69d16
<ide><path>Library/Homebrew/cask/cmd/brew-cask-tests.rb <ide> require "English" <ide> <ide> def run_tests(executable, files, args = []) <del> system "bundle", "exec", executable, "--", *args, "--", *files <add> opts = [] <add> opts << "--serialize-stdout" if ENV["CI"] <add> <add> system "bundle", "exec", executabl...
2
Go
Go
handle partial attachment entries during configure
454128c6e82cded211c1412e3eb350b1f7533ee2
<ide><path>daemon/cluster/executor/container/executor.go <ide> func (e *executor) Configure(ctx context.Context, node *api.Node) error { <ide> attachments := make(map[string]string) <ide> <ide> for _, na := range node.Attachments { <add> if na == nil || na.Network == nil || len(na.Addresses) == 0 { <add> // this ...
1
Javascript
Javascript
restore check on atom_home
82f5e81cec2727013d3291907ddd04cc7ffd7a37
<ide><path>static/index.js <ide> console.error('Unhandled promise rejection %o with error: %o', promise, error) <ide> }) <ide> <add> // Ensure ATOM_HOME is always set before anything else is required <add> // This is because of a difference in Linux not inherited between browser and render proc...
1
Python
Python
add exception for "gonna"
280c03f67b06836251edff32a2a0a5d320f34e52
<ide><path>spacy/en/language_data.py <ide> def get_time_exc(hours): <ide> {ORTH: "ma"} <ide> ], <ide> <add> "gonna": [ <add> {ORTH: "gon", LEMMA: "go"}, <add> {ORTH: "na", LEMMA: "to"} <add> ], <add> <add> "Gonna": [ <add> {ORTH: "Gon", LEMMA: "go"}, <add> {ORTH: "na", ...
1
Javascript
Javascript
fix "missing flag" error for non-boolean types
0c3c27a718579066e08e1b2f5529deb67999e114
<ide><path>scripts/babel/__tests__/transform-test-gate-pragma-test.js <ide> describe('transform test-gate-pragma: actual runtime', () => { <ide> } <ide> }); <ide> <add> // @gate build === "development" <add> test('strings', () => { <add> if (!__DEV__) { <add> throw Error("Doesn't work in production!");...
2
Ruby
Ruby
eliminate special case for core gcc
3f11f1a0def50bba3349c0dc948f84c8bc82eb04
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def warn_about_non_apple_gcc(name) <ide> EOS <ide> end <ide> <del> if gcc_formula.name == "gcc" <del> return if gcc_formula.opt_prefix.exist? <add> unless gcc_formula.opt_prefix.exist? <ide> raise <<-EOS.undent <del> The Homebrew ...
1
PHP
PHP
fix cs error
34115e8412001abb63a414b24563e6f5a79b3efb
<ide><path>src/Shell/Task/CommandTask.php <ide> public function getShell(string $commandName) <ide> $pluginDot = ''; <ide> } <ide> <del> if (!in_array($commandName, $this->commands(), true) && (empty($pluginDot) && !in_array($name, $this->commands(), true))) { <add> if (!in_array($com...
1
Javascript
Javascript
make a list of known globals
feea1330cc3858a5aa65f2072a6025cb5ca0cd56
<ide><path>src/node.js <ide> var events = module.requireNative('events'); <ide> // Signal Handlers <ide> (function() { <ide> var signalWatchers = {}; <del> addListener = process.addListener, <del> removeListener = process.removeListener; <add> var addListener = process.addListener; <add> var removeListener = ...
2
Ruby
Ruby
fix upgrading dependents on missing keg
ffe827ad0e63dfbeed357b50916fe404409176a4
<ide><path>Library/Homebrew/formula.rb <ide> def self.each(&block) <ide> end <ide> end <ide> <del> # Clear cache of .racks <del> def self.clear_racks_cache <del> @racks = nil <del> end <del> <del> # Clear caches of .racks and .installed. <del> def self.clear_installed_formulae_cache <del> clear_racks_...
5
Text
Text
update stream.io link
73f3325f80a381d1d62ab1b84956295963f445ed
<ide><path>README.md <ide> Please see the [security policy][security-policy]. <ide> [bitio-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/bitio-readme.png <ide> <ide> [sentry-url]: https://getsentry.com/welcome/ <del>[stream-url]: https://getstream.io/try-the-api/?utm_sour...
2
Text
Text
update changelog properly with gh [ci-skip]
0f156100a2d25fba820016c684cbc3d3fadbc1bd
<ide><path>actionpack/CHANGELOG.md <add>* Add `:serializer` option for `config.session_store :cookie_store`. This <add> changes default serializer when using `:cookie_store` to <add> `ActionDispatch::Session::MarshalSerializer` which is wrapper on Marshal. <add> <add> It is also possible to pass: <add> <add>...
1
Go
Go
fix empty-lines (revive)
b04f1416f603f9f727dd921092feb82e47d6348b
<ide><path>opts/address_pools_test.go <ide> func TestAddressPoolOpt(t *testing.T) { <ide> if err := poolopt.Set(invalidAddresspoolString); err == nil { <ide> t.Fatal(err) <ide> } <del> <ide> } <ide><path>opts/opts_test.go <ide> func TestValidateIPAddress(t *testing.T) { <ide> if ret, err := ValidateIPAddress(`rand...
2
Javascript
Javascript
add a port validation to `connect`
d80d131c75d7defa06845d7daa634c4d51515e0c
<ide><path>lib/net.js <ide> function connect(self, address, port, addressType, localAddress) { <ide> } <ide> <ide> var req = { oncomplete: afterConnect }; <del> if (addressType == 6) { <del> err = self._handle.connect6(req, address, port); <del> } else if (addressType == 4) { <del> err = self._handle.conne...
2