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
Java
Java
remove superfluous method override
07ba13c9ca8f1da0833eb044b3ea3d1d6fb43c96
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java <ide> public String[] getHosts() { <ide> return this.hosts; <ide> } <ide> <del> <del> @Override <del> public void afterPropertiesSet() throws Exception { <del> super.afterPropertiesSet(); <del> } <del> <del> <ide...
1
PHP
PHP
fix composite primary key reflection in postgres
ae1560a6a17f118bd463bd1540bf2e8212bebb54
<ide><path>src/Database/Schema/PostgresSchema.php <ide> public function convertColumnDescription(Table $table, $row) <ide> $row['default'] = 0; <ide> } <ide> } <add> // Sniff out serial types. <add> if (in_array($field['type'], ['integer', 'biginteger']) && strpos($row[...
3
Text
Text
add the comparison
0e8c00bff4884542d0f5d32f8b92a85d15f1dc89
<ide><path>guide/english/python/basic-operators/index.md <ide> y = x <ide> z = y <ide> print z is 1 # prints True <ide> print z is x # prints True <add>print y is x # prints True <ide> <ide> str1 = "FreeCodeCamp" <ide> str2 = "FreeCodeCamp"
1
Python
Python
remove confusing legacy comments
5a423a2dce0b6daf033e92a20544a34476867ed9
<ide><path>official/modeling/model_training_utils.py <ide> def run_customized_training_loop( <ide> 'if `metric_fn` is specified, metric_fn must be a callable.') <ide> <ide> total_training_steps = steps_per_epoch * epochs <del> <del> # To reduce unnecessary send/receive input pipeline operation, we place inp...
1
Mixed
Javascript
add asyncresource.bind utility
74df7496ff6d899e4b8ceed9505a641e79ad6366
<ide><path>doc/api/async_hooks.md <ide> class DBQuery extends AsyncResource { <ide> } <ide> ``` <ide> <add>#### `static AsyncResource.bind(fn[, type])` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `fn` {Function} The function to bind to the current execution context. <add>* `type` {string} An optional na...
3
Python
Python
fix typo in lambda layer
16590ccce51c44e72b0826f50641bcbb2a09a3d5
<ide><path>keras/layers/core.py <ide> def __init__(self, function, output_shape=None): <ide> <ide> @property <ide> def output_shape(self): <del> if self._ouput_shape is None: <add> if self._output_shape is None: <ide> return self.input_shape <ide> elif type(self._output_shape)...
1
Ruby
Ruby
remove duplicated `elsif` branch
67e605f5406b31d0928749d1bb44a416b5a16623
<ide><path>activerecord/test/cases/migration/column_attributes_test.rb <ide> def test_native_decimal_insert_manual_vs_automatic <ide> # Do a manual insertion <ide> if current_adapter?(:OracleAdapter) <ide> connection.execute "insert into test_models (id, wealth) values (people_seq.nextva...
1
Go
Go
move pkg/gitutils to remotecontext/git
b9d85ac58db8b8d4480fca93f8b952d084ea36f5
<ide><path>builder/remotecontext/git.go <ide> import ( <ide> "os" <ide> <ide> "github.com/docker/docker/builder" <add> "github.com/docker/docker/builder/remotecontext/git" <ide> "github.com/docker/docker/pkg/archive" <del> "github.com/docker/docker/pkg/gitutils" <ide> ) <ide> <ide> // MakeGitContext returns a Cont...
3
Ruby
Ruby
decrease string allocation in content_tag_string
2a4d4301d405dbc4a6bce85b4632a78099c8d1c6
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> module TagHelper <ide> <ide> TAG_PREFIXES = ['aria', 'data', :aria, :data].to_set <ide> <del> PRE_CONTENT_STRINGS = { <del> :textarea => "\n" <del> } <add> PRE_CONTENT_STRINGS = Hash.new { "".freeze } <add> ...
1
Text
Text
distinguish env from setting environment inline
9f6e7e9aed85464651745090692317b30e4a3526
<ide><path>docs/sources/reference/builder.md <ide> was no formal definition on as to which instructions handled environment <ide> replacement at the time. After 1.3 this behavior will be preserved and <ide> canonical. <ide> <del>Environment variables (declared with the `ENV` statement) can also be used in <add>Environ...
1
Javascript
Javascript
exclude test files from copy in trace-next-server
a0ba545042b3ecfb034e4c21e8a55a9ead3f9fe6
<ide><path>scripts/trace-next-server.js <ide> async function main() { <ide> const origRepoDir = path.join(__dirname, '..') <ide> const repoDir = path.join(tmpdir, `tmp-next-${Date.now()}`) <ide> const workDir = path.join(tmpdir, `trace-next-${Date.now()}`) <add> const origTestDir = path.join(origRepoDir, 'test')...
1
Go
Go
restrict portallocator to docker allocated ports
dafddf461eeabd792d9ced6caced75ad6961c1d7
<ide><path>daemon/networkdriver/bridge/driver.go <ide> import ( <ide> "github.com/docker/libcontainer/netlink" <ide> "github.com/dotcloud/docker/daemon/networkdriver" <ide> "github.com/dotcloud/docker/daemon/networkdriver/ipallocator" <del> "github.com/dotcloud/docker/daemon/networkdriver/portallocator" <ide> "gith...
4
Text
Text
fix doc format issue
4d4d1e7f82592c4996650b92b01d9f4633e8878b
<ide><path>docs/security/https/README.md <ide> draft = true <ide> <ide> <ide> This is an initial attempt to make it easier to test the examples in the https.md <del>doc <add>doc. <ide> <del>at this point, it has to be a manual thing, and I've been running it in boot2docker <add>At this point, it has to be a manual t...
1
Python
Python
fix unit testing on macos
c8f6e4d1bca5306d5b663268b79928131874c7c0
<ide><path>glances/programs.py <ide> def processes_to_programs(processes): <ide> # Create a new entry in the dict (new program) <ide> programs_dict[p[key]] = { <ide> 'time_since_update': p['time_since_update'], <del> 'num_threads': p['num_threads'], <del> ...
2
Python
Python
fix a type hint in numpy.array_api
4457e37b39bfc660beb8be579b282e5acbae1b5f
<ide><path>numpy/array_api/linalg.py <ide> def vecdot(x1: Array, x2: Array, /, *, axis: int = -1) -> Array: <ide> <ide> # The type for ord should be Optional[Union[int, float, Literal[np.inf, <ide> # -np.inf]]] but Literal does not support floating-point literals. <del>def vector_norm(x: Array, /, *, axis: Optional[Un...
1
Javascript
Javascript
add known issue about custom interpolation symbols
c8e09c8a40540856c189532044ed10c1708d6be1
<ide><path>src/ng/interpolate.js <ide> function $InterpolateProvider() { <ide> * symbol. For example, `{{ '}}' }}` will be incorrectly interpreted as `{{ ' }}` + `' }}`, i.e. <ide> * an interpolated expression consisting of a single-quote (`'`) and the `' }}` string. <ide> * <add> * @knownIssue <add>...
1
Javascript
Javascript
require coffee before module cache in dev mode
289f17b119386fbb93589ce22a9452ee7fcf3720
<ide><path>static/index.js <ide> window.onload = function() { <ide> // Skip "?loadSettings=". <ide> var loadSettings = JSON.parse(decodeURIComponent(location.search.substr(14))); <ide> <add> // Require before the module cache in dev mode <add> if (loadSettings.devMode) { <add> require('coffee-script...
1
PHP
PHP
remove environment check
77d3b687904158e319f80ac5565404b3ea2e6d34
<ide><path>src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php <ide> use Illuminate\Console\Command; <ide> use Illuminate\Encryption\Encrypter; <ide> use Illuminate\Filesystem\Filesystem; <del>use Illuminate\Support\Env; <ide> use Symfony\Component\Console\Attribute\AsCommand; <ide> <ide> #[AsCommand(name:...
1
Java
Java
remove propagation_ prefix in javadoc
c0252f8758db901d8ac5b7af798099db4e95f4dc
<ide><path>spring-tx/src/main/java/org/springframework/transaction/annotation/Propagation.java <ide> public enum Propagation { <ide> * Support a current transaction, execute non-transactionally if none exists. <ide> * Analogous to EJB transaction attribute of the same name. <ide> * <p>Note: For transaction manage...
1
Python
Python
remove lldbinit file from install script
e6cdf24bb52c8d362bfb6a258a65e9be2d670d94
<ide><path>tools/install.py <ide> def files(action): <ide> action(['src/node.stp'], 'share/systemtap/tapset/') <ide> <ide> action(['deps/v8/tools/gdbinit'], 'share/doc/node/') <del> action(['deps/v8/tools/lldbinit'], 'share/doc/node/') <ide> action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/') <ide> <...
1
Text
Text
ignore extra spaces after opening main tag
7e22661455f9f81bb9885ec12e3201c45202b965
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc23991f86c76b9248c6eb8.md <ide> assert( <ide> Your `h2` element should be below the `main` element's opening tag and its opening tag should start 6 spaces over from the start of the line. <ide> <ide> ```js <de...
1
Ruby
Ruby
eliminate function that is only used in one place
5a0cca739a42c60fc852b42eb2b36c457981dce2
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> def build_join_association(reflection, parent, join_type) <ide> <ide> def construct(parent, nodes, row, rs) <ide> nodes.sort_by { |k| k.name }.each do |node| <del> assoc = node.children <del> asso...
1
Text
Text
add some comments to the examples for clarity
3969c719323b466ac0b093b31ba15fb5c0fc818f
<ide><path>docs/upgrading/upgrading-your-ui-theme.md <ide> Chromium provides two tools for bypassing shadow boundaries, the `::shadow` pseu <ide> The `::shadow` pseudo-element allows you to bypass a single shadow root. For example, say you want to update a highlight decoration for a linter package. Initially, the style...
1
PHP
PHP
move constructor to app
013007a9e11d23a8e1a2ed39d80c4a4484d38107
<ide><path>app/Http/Controllers/Auth/AuthController.php <ide> <?php namespace App\Http\Controllers\Auth; <ide> <ide> use App\Http\Controllers\Controller; <add>use Illuminate\Contracts\Auth\Guard; <add>use Illuminate\Contracts\Auth\Registrar; <ide> use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; <ide> <...
2
Java
Java
fix failing test from previous commit
8afcf717e2873e57f62ec6367be4f656039e6cc4
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/result/PrintingResultHandler.java <ide> import java.util.Map; <ide> <ide> import javax.servlet.ServletRequest; <add>import javax.servlet.http.HttpServletRequest; <ide> <ide> import org.springframework.http.HttpHeaders; <ide> import org.spri...
1
Python
Python
expand asan acronym in configure help
131b50d1878924291e4a7e3304e180494d5a3e0f
<ide><path>configure.py <ide> parser.add_option('--enable-asan', <ide> action='store_true', <ide> dest='enable_asan', <del> help='build with asan') <add> help='compile for Address Sanitizer to find memory bugs') <ide> <ide> parser.add_option('--enable-static', <ide> action='store_true',
1
Javascript
Javascript
fix iterators for indexed lazy sequences
f3df9037a777c143678239a3ff57da41fe16076a
<ide><path>dist/Immutable.js <ide> var $Sequence = Sequence; <ide> return this.__deepEquals(other); <ide> }, <ide> __deepEquals: function(other) { <del> var entries = this.cacheResult().entrySeq().toArray(); <del> var iterations = 0; <add> var entries = this.entries(); <ide> return other.every((fun...
3
Javascript
Javascript
remove unnecessary else
0f14c53d7217ad65c5dfbb043c96f2683a563540
<ide><path>src/traversing.js <ide> jQuery.fn.extend({ <ide> if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { <ide> ret.push( cur ); <ide> break; <del> <del> } else { <del> cur = cur.parentNode; <ide> } <add> cur = cur.parentNode; <ide> } <ide> } <ide>
1
Python
Python
reduce test flakiness
7222b95ea5de9e88fbc288b84d3805efc3f5cb9a
<ide><path>tests/keras/backend/backend_test.py <ide> def test_random_normal(self): <ide> mean = 0. <ide> std = 1. <ide> for k in BACKENDS: <del> rand = k.eval(k.random_normal((300, 100), mean=mean, stddev=std)) <del> assert rand.shape == (300, 100) <add> rand = k...
1
Javascript
Javascript
add normals + groups
df1be793fd36a31b94931265d7c756a274985a94
<ide><path>src/geometries/ExtrudeGeometry.js <ide> function ExtrudeBufferGeometry( shapes, options ) { <ide> <ide> this.addShapeList( shapes, options ); <ide> <del> this.computeFaceNormals(); <add> this.computeVertexNormals(); <ide> <ide> // can't really use automatic vertex normals <ide> // as then front and bac...
1
Javascript
Javascript
add note about self-referencing objects in array
15149c1da1020f139dfcdd50c8e641f8f43088a4
<ide><path>src/ng/filter/filter.js <ide> * Selects a subset of items from `array` and returns it as a new array. <ide> * <ide> * @param {Array} array The source array. <add> * <div class="alert alert-info"> <add> * **Note**: If the array contains objects that reference themselves, filtering is not possible. <add> ...
1
Text
Text
use default exports for reducers
48bed5c2bc6613870102d9cf9b147a7bacab25ec
<ide><path>docs/basics/ExampleTodoList.md <ide> const todo = (state, action) => { <ide> } <ide> } <ide> <del>export const todos = (state = [], action) => { <add>const todos = (state = [], action) => { <ide> switch (action.type) { <ide> case 'ADD_TODO': <ide> return [ <ide> export const todos = (state = [...
1
PHP
PHP
shorten code by using the cron method
0951a30303b6580a2bdcce5df78f6fbbb6497c0f
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function cron($expression) <ide> */ <ide> public function hourly() <ide> { <del> $this->expression = '0 * * * * *'; <del> <del> return $this; <add> return $this->cron('0 * * * * *'); <ide> } <ide> <ide> /** <ide> public function hourly() <ide...
1
Go
Go
remove use of forked reference package for cli
0421f5173dbdcb4e4eade5267f274302bb6ab97c
<ide><path>cli/command/container/create.go <ide> import ( <ide> "io" <ide> "os" <ide> <add> "github.com/docker/distribution/reference" <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/api/types/container" <ide> networktypes "github.com/docker/docker/api/types/network" <ide> import ( <ide...
20
Text
Text
replace broken image link
55670f6e87c21473ef4ae711b8c06583ee56638d
<ide><path>guide/english/typography/anatomy-of-letterforms/index.md <ide> A typeface refers to a group of characters, such as letters, numbers, and punctu <ide> ## Font <ide> Fonts refer to the means by which typefaces are displayed or presented. Helvetica in movable type is a font, as is a TrueType font file. <ide> <...
1
Ruby
Ruby
remove useless conditional
e6425f6ecad2a1b771455f73ada9d15f72a687eb
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def _set_content_type(type) # :nodoc: <ide> def _normalize_render(*args, &block) <ide> options = _normalize_args(*args, &block) <ide> #TODO: remove defined? when we restore AP <=> AV dependency <del> if defined?(request) && request &&...
1
Javascript
Javascript
add test cases for paramencoding 'explicit'
76cffddf82603a6060840d5c20064b7aa0a5e9dd
<ide><path>test/parallel/test-crypto-keygen.js <ide> const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher); <ide> testSignVerify(publicKey, privateKey); <ide> })); <ide> <add> // Test async elliptic curve key generation, e.g. for ECDSA, with a SEC1 <add> // private key with paramEncoding exp...
1
Ruby
Ruby
simplify the implementation of custom serialziers
ec686a471e0a54194fc9ec72e639785606597704
<ide><path>activejob/lib/active_job/serializers.rb <ide> module Serializers <ide> autoload :ObjectSerializer <ide> autoload :StandardTypeSerializer <ide> <del> included do <del> class_attribute :_additional_serializers, instance_accessor: false, instance_predicate: false <del> self._additional_ser...
3
PHP
PHP
add typehints to testsuite/fixture & stub
adac03b6ec0c37955b56c95e86b2e7acb3af5070
<ide><path>src/TestSuite/Fixture/FixtureInjector.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> public function __construct(FixtureManager $manager) ...
5
PHP
PHP
fix null name
05dd0e064312bd6e1e193dde7309c363a35ec92d
<ide><path>src/Illuminate/Mail/Message.php <ide> protected function addAddresses($address, $name, $type) <ide> if (is_array($address)) { <ide> $type = lcfirst($type); <ide> <del> $addresses = collect($address)->map(function (string|array $address, $key) { <add> $addresses = co...
1
Text
Text
add link to angular material to resources
e57699d040b6fa0204358fc65e2afb043a0932c5
<ide><path>guide/english/angular/angular-resources/index.md <ide> A collection of helpful Angular resources <ide> <ide> ### Specific-topic Pages <ide> <add>* <a href='https://material.angular.io/' target='_blank' rel='nofollow'>Angular Material</a> - Official Library of Angular Components Implementing Material Desi...
1
Javascript
Javascript
provide module when using module.hot
f77014316415779a1a58c6c55501a526f3d36286
<ide><path>lib/HotModuleReplacementPlugin.js <ide> const JavascriptParser = require("./JavascriptParser"); <ide> const { <ide> evaluateToIdentifier, <ide> evaluateToString, <del> skipTraversal, <ide> toConstantDependency <ide> } = require("./JavascriptParserHelpers"); <ide> const MainTemplate = require("./MainTempla...
2
PHP
PHP
use inline constructors
3cc489eb1f35a442f73a19c59b53d3fde03d8264
<ide><path>App/Config/bootstrap.php <ide> * that changes from configuration that does not. This makes deployment simpler. <ide> */ <ide> try { <del> $reader = new PhpConfig(); <del> Configure::config('default', $reader); <add> Configure::config('default', new PhpConfig()); <ide> Configure::load('app.php', 'default',...
1
Text
Text
fix markdown links to model garden code base
2e1a0602d9dc6f440a32b22bd208377f3553c21d
<ide><path>research/object_detection/g3doc/deepmac.md <ide> segmentation task. <ide> * The field `allowed_masked_classes_ids` controls which classes recieve mask <ide> supervision during training. <ide> * Mask R-CNN based ablations in the paper are implemented in the <del> [TF model garden]() code base. <add...
1
Javascript
Javascript
add link to `$http.path()`
1571950fe39c9e5e86a01233af1ad27dec0cf80b
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * - {@link ng.$http#put $http.put} <ide> * - {@link ng.$http#delete $http.delete} <ide> * - {@link ng.$http#jsonp $http.jsonp} <add> * - {@link ng.$http#patch $http.patch} <ide> * <ide> * <ide> * # Setting HTTP Headers
1
Text
Text
fix couple of typos [ci skip]
fd003846082cb9ce5f8773bb60b36ccbb70eb9e3
<ide><path>guides/source/6_1_release_notes.md <ide> Rails 6.1 provides you with the ability to [switch connections per-database](htt <ide> <ide> ### Horizontal Sharding <ide> <del>Rails 6.0 provided the ability to functionally partition (multiple partitions, different schemas) your database but wasn't able to support...
3
Text
Text
move style guide to findable location
42dd3ca8690979a53c33f7978adc4426bd1163e4
<add><path>doc/README.md <del><path>doc/guides/doc-style-guide.md <ide> For topics not covered here, refer to the [Microsoft Writing Style Guide][]. <ide> [Use sentence-style capitalization for headings]: https://docs.microsoft.com/en-us/style-guide/scannable-content/headings#formatting-headings <ide> [Use serial comma...
2
Mixed
Javascript
fix default font color for legend
ae04fcf3c3818a2ceb67556a9bde8da29d42b2c3
<ide><path>docs/docs/configuration/legend.md <ide> var chart = new Chart(ctx, { <ide> legend: { <ide> display: true, <ide> labels: { <del> fontColor: 'rgb(255, 99, 132)' <add> color: 'rgb(255, 99, 132)' <ide> } <ide> ...
2
Text
Text
add article for elixir keyword lists
9d7ad71964d0488983884b00f836db631793baf9
<ide><path>guide/english/elixir/keyword-lists/index.md <ide> title: Keyword Lists <ide> --- <ide> ## Keyword Lists <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/elixir/keyword-lists/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>. <add>Keywor...
1
Java
Java
give more time to delay tck test
0ce3c599ca4cb7a6b7009eecc197633a474359c3
<ide><path>src/test/java/io/reactivex/tck/DelaySubscriptionTckTest.java <ide> @Test <ide> public class DelaySubscriptionTckTest extends BaseTck<Integer> { <ide> <add> public DelaySubscriptionTckTest() { <add> super(200L); <add> } <add> <ide> @Override <ide> public Publisher<Integer> createPubl...
1
Python
Python
fix unravel_index integer division
e8a7df65457531e986a65483ffe79c98c7e811a8
<ide><path>numpy/lib/index_tricks.py <ide> def unravel_index(x,dims): <ide> # [dcb,dc,d,1] <ide> dim_prod = _nx.cumprod([1] + list(dims)[:0:-1])[::-1] <ide> # Indices become [x/dcb % a, x/dc % b, x/d % c, x/1 % d] <del> return tuple(x/dim_prod % dims) <add> return tuple(x//dim_prod % dims) <ide> <ide...
1
Go
Go
fix wrong print format
9b1ceecd8a44e72ad773f7016df09a4b285258b8
<ide><path>builder/dockerfile/dispatchers_test.go <ide> func TestArg(t *testing.T) { <ide> } <ide> <ide> if *val != "bar" { <del> t.Fatalf("%s argument should have default value 'bar', got %s", argName, val) <add> t.Fatalf("%s argument should have default value 'bar', got %s", argName, *val) <ide> } <ide> } <ide>...
2
Python
Python
update author email and website url
0f4fb1dfb847f33a21be035c7199b1add99a9218
<ide><path>setup.py <ide> def run(self): <ide> version=read_version_string(), <ide> description='A unified interface into many cloud server providers', <ide> author='Apache Software Foundation', <del> author_email='libcloud@incubator.apache.org', <add> author_email='dev@libcloud.apache.org', <ide> ...
1
Javascript
Javascript
remove unused code
d671cba22fa543123c8eab375684093efa198d73
<ide><path>packages/learn/src/templates/Challenges/rechallenge/transformers.js <ide> export const proxyLoggerTransformer = partial( <ide> }) <ide> ); <ide> <del>// const addLoopProtect = partial(vinyl.transformContents, contents => { <del>// /* eslint-disable import/no-unresolved */ <del>// const loopProtect =...
1
PHP
PHP
fix cs error
3b8c85b45b05c16773164082a21254ff74059841
<ide><path>tests/TestCase/ORM/TableRegistryTest.php <ide> public function testConfigPlugin() { <ide> 'entityClass' => 'TestPlugin\Model\Entity\Comment', <ide> ]; <ide> <del> <ide> $result = TableRegistry::config('TestPlugin.TestPluginComments', $data); <ide> $this->assertEquals($data, $result, 'Returns config...
1
PHP
PHP
add support for binary request
1e1f5311f062d62468fe2d3cef1695b8fa338cfb
<ide><path>src/Illuminate/Http/Client/PendingRequest.php <ide> class PendingRequest <ide> */ <ide> protected $pendingFiles = []; <ide> <add> /** <add> * The binary for the request. <add> * <add> * @var array <add> */ <add> protected $pendingBinary; <add> <ide> /** <ide> * The re...
1
Text
Text
add spec documentation
421cdb41b9e1e6eb812ed4c6efeef9425520ccd9
<ide><path>docs/writing-specs.md <add># Writting specs <add> <add>Atom uses [Jasmine](http://jasmine.github.io/2.0/introduction.html) as its spec framework. Any new functionality should have specs to guard against regressions. <add> <add>## Create a new spec <add> <add>[Atom specs](https://github.com/atom/atom/tree/mas...
1
Ruby
Ruby
apply active record suppression to all saves
ac002395d87aa7a4bcc3126e67ca3b2808d832a6
<ide><path>activerecord/lib/active_record/suppressor.rb <ide> def suppress(&block) <ide> end <ide> end <ide> <del> # Ignore saving events if we're in suppression mode. <del> def save!(*args) # :nodoc: <add> def create_or_update(*args) # :nodoc: <ide> SuppressorRegistry.suppressed[self.class.na...
2
PHP
PHP
use fqcn in docblocks
356b1221321be41f0721b29d03a35e1535929643
<ide><path>src/Illuminate/Conditionable/Traits/Conditionable.php <ide> trait Conditionable <ide> * @template TWhenParameter <ide> * @template TWhenReturnType <ide> * <del> * @param (Closure($this): TWhenParameter)|TWhenParameter $value <add> * @param (\Closure($this): TWhenParameter)|TWhenPara...
1
Text
Text
strandize links in projects
dc4eab3297e7c6d751221e359dc97cb09c6ed6d1
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/american-british-translator.md <ide> dashedName: american-british-translator <ide> <ide> # --description-- <ide> <del>Build a full stack JavaScript app that is functionally similar to this: <https://american-british-translator.fr...
25
Ruby
Ruby
update #resources documentation [ci skip]
c5fcc9ad1cd95854c3c8129f453982c6acd8fd61
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def resource(*resources, &block) <ide> # sekret_comment PATCH/PUT /comments/:id(.:format) <ide> # sekret_comment DELETE /comments/:id(.:format) <ide> # <add> # [:format] <add> # Allows ...
1
PHP
PHP
apply fixes from styleci
2a6902866e4db7a0de65cbaf33a6cbd20b77834e
<ide><path>src/Illuminate/Foundation/Console/Kernel.php <ide> use Illuminate\Contracts\Debug\ExceptionHandler; <ide> use Illuminate\Contracts\Foundation\Application; <ide> use Illuminate\Contracts\Cache\Repository as Cache; <del>use Illuminate\Contracts\Queue\Queue as QueueContract; <ide> use Illuminate\Contracts\Conso...
2
Ruby
Ruby
replace map.flatten with flat_map in activerecord
3413b88a3d6b2b022dfb57e42565446b1e024314
<ide><path>activerecord/lib/active_record/associations.rb <ide> def association_instance_set(name, association) <ide> # end <ide> # <ide> # @firm = Firm.first <del> # @firm.clients.collect { |c| c.invoices }.flatten # select all invoices for all clients of the firm <del> # @firm.invoices ...
5
Python
Python
fix activityreg layer
24501d4361606d6305e9eaeadaf1cd1bbb8dfab6
<ide><path>keras/layers/core.py <ide> def __init__(self, l1=0., l2=0., **kwargs): <ide> self.l1 = l1 <ide> self.l2 = l2 <ide> <add> super(ActivityRegularization, self).__init__(**kwargs) <ide> activity_regularizer = ActivityRegularizer(l1=l1, l2=l2) <ide> activity_regularizer.set...
1
Ruby
Ruby
use the correct default compiler
c90552f66bb174e3c0c69de88ce389acbedbac8b
<ide><path>Library/Homebrew/tab.rb <ide> def self.empty <ide> "source_modified_time" => 0, <ide> "HEAD" => nil, <ide> "stdlib" => nil, <del> "compiler" => "clang", <add> "compiler" => DevelopmentTools.default_compiler, <ide> "source" => { <ide> "path" => nil, <ide> "tap...
1
Ruby
Ruby
decrease memory allocations in cache.rb
6da99b4e99c90c63015f0d1cb4bf10983ea26a36
<ide><path>activesupport/lib/active_support/cache.rb <ide> def delete_entry(key, options) <ide> # Merges the default options with ones specific to a method call. <ide> def merged_options(call_options) <ide> if call_options <del> options.merge(call_options) <add> if option...
1
PHP
PHP
fix quoting of field names containing `-`
e8b5d81fd728725279dd60005d07319bdaa5f4a6
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function fields(Model $model, $alias = null, $fields = array(), $quote = <ide> } <ide> $fields = array_values($fields); <ide> } <del> <ide> if (!$quote) { <ide> if (!empty($virtual)) { <ide> $fields = array_merge($fields, $this->_construct...
4
PHP
PHP
fix failing test
de9c82edcd1c106fd6903e86efa63a4284a0c06e
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testDay() <ide> { <ide> extract($this->dateRegex); <ide> <del> $result = $this->Form->day('Model.field', array('value' => false)); <add> $result = $this->Form->day('Model.field', array('value' => '')); <ide> ...
1
PHP
PHP
fix method annotation
70faadda5ed8f317134f8c1fbce0eb8a5b1d8067
<ide><path>src/Datasource/ConnectionInterface.php <ide> * @method \Cake\Database\StatementInterface prepare($sql) <ide> * @method \Cake\Database\StatementInterface execute($query, $params = [], array $types = []) <ide> * @method $this enableQueryLogging($value) <del> * @method bool isQueryLoggingEnabled(value) <add>...
1
Javascript
Javascript
add test for requote
ffb445bb1b581dd1e780d043cb130479300e5681
<ide><path>d3.js <ide> d3.requote = function(s) { <ide> return s.replace(d3_requote_re, "\\$&"); <ide> }; <ide> <del>var d3_requote_re = /[\\\^\$\*\+\?\[\]\(\)\.\{\}]/g; <add>var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g; <ide> d3.round = function(x, n) { <ide> return n <ide> ? Math.round(x * Math.po...
4
Javascript
Javascript
correct error message for invalid trailer
31bef6b704d7018b4e11778520accfe1e6001b73
<ide><path>lib/_http_outgoing.js <ide> OutgoingMessage.prototype.addTrailers = function(headers) { <ide> 'Trailer name must be a valid HTTP Token ["' + field + '"]'); <ide> } <ide> if (common._checkInvalidHeaderChar(value) === true) { <del> throw new TypeError('The header content contains invalid c...
1
Java
Java
fix javadoc comments to match behaviour
cc87fbcb7fba7c4f630842d5f88692ae1228a7b3
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java <ide> * </tr> <ide> * <tr class="altColor"> <ide> * <td><p>MissingServletRequestParameterException</p></td> <del> * <td><p>500 (SC_INTERNAL_SERVER_ERROR)</p></td> <add> * <td><p>400 (SC_BAD_REQUEST...
1
Javascript
Javascript
avoid drain for sync streams
003fb53c9a38520e84bd18beb7719f1a47af8c43
<ide><path>benchmark/streams/writable-manywrites.js <ide> const bench = common.createBenchmark(main, { <ide> n: [2e6], <ide> sync: ['yes', 'no'], <ide> writev: ['yes', 'no'], <del> callback: ['yes', 'no'] <add> callback: ['yes', 'no'], <add> len: [1024, 32 * 1024] <ide> }); <ide> <del>function main({ n, sync,...
8
PHP
PHP
remove hyphen on email
ffc74ba143a7de4a89f2c3fd525a5621ca879e38
<ide><path>resources/lang/en/passwords.php <ide> */ <ide> <ide> 'reset' => 'Your password has been reset!', <del> 'sent' => 'We have e-mailed your password reset link!', <add> 'sent' => 'We have emailed your password reset link!', <ide> 'throttled' => 'Please wait before retrying.', <ide> 'token'...
1
Ruby
Ruby
expose the request.parameter_filter
365df75346cfda0c6abbe7ea1951393ce783f962
<ide><path>actionpack/lib/action_dispatch/http/filter_parameters.rb <ide> def initialize <ide> @filtered_parameters = nil <ide> @filtered_env = nil <ide> @filtered_path = nil <add> @parameter_filter = nil <ide> end <ide> <ide> # Returns a hash of parameters wi...
2
Ruby
Ruby
use latest web-console when using --dev or --edge
8275b65987e6ee6114463273485917e0c8db4397
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def gemfile_entries <ide> jbuilder_gemfile_entry, <ide> sdoc_gemfile_entry, <ide> psych_gemfile_entry, <add> console_gemfile_entry, <ide> @extra_entries].flatten.find_all(&@gem_filter) <ide> end <ide> <ide> def...
1
Text
Text
specify the stance on mocks in test blocks
957f318f2cfb9e83f440572b12fd8b45a39e0776
<ide><path>docs/Formula-Cookbook.md <ide> Some advice for specific cases: <ide> * If the formula is a library, compile and run some simple code that links against it. It could be taken from upstream's documentation / source examples. <ide> A good example is [`tinyxml2`](https://github.com/Homebrew/homebrew-core/blob/ma...
1
Python
Python
fix code sample for leg2poly
b516cc24ec81fbc093f080c126dba9f360ceca52
<ide><path>numpy/polynomial/legendre.py <ide> def leg2poly(c): <ide> >>> p = c.convert(kind=P.Polynomial) <ide> >>> p <ide> Polynomial([-1. , -3.5, 3. , 7.5], domain=[-1., 1.], window=[-1., 1.]) <del> >>> P.leg2poly(range(4)) <add> >>> P.legendre.leg2poly(range(4)) <ide> array([-1. , -3.5, 3....
1
Java
Java
ignore fragile test dependent on debug symbols
6f80578a387098bcf054249c512025ec81ae182b
<ide><path>org.springframework.core/src/test/java/org/springframework/core/LocalVariableTableParameterNameDiscovererTests.java <ide> <ide> import junit.framework.TestCase; <ide> <add>import org.junit.Ignore; <ide> import org.springframework.beans.TestBean; <ide> <ide> /** <ide> public void testGenerifiedClass() thro...
1
Javascript
Javascript
prevent timeout errors
01a03f2961f86cd08c6c90335101b0d10d141cad
<ide><path>client/src/templates/Challenges/utils/worker-executor.js <ide> class WorkerExecutor { <ide> constructor( <ide> workerName, <del> { location = '/js/', concurrency = 2, terminateWorker = false } = {} <add> { location = '/js/', maxWorkers = 2, terminateWorker = false } = {} <ide> ) { <del> this...
2
Python
Python
switch map_index back to use server_default
66276e68ba37abb2991cb0e03ca93c327fc63a09
<ide><path>airflow/migrations/versions/e655c0453f75_add_taskmap_and_map_id_on_taskinstance.py <ide> """ <ide> <ide> from alembic import op <del>from sqlalchemy import Column, ForeignKeyConstraint, Integer <add>from sqlalchemy import Column, ForeignKeyConstraint, Integer, text <ide> <ide> from airflow.models.base impo...
3
Text
Text
add more information about list
6533b99fcdbd6c4fea8ca6404558d8a946247443
<ide><path>guide/english/html/lists/index.md <ide> List can be nested (lists inside lists): <ide> #### More Information: <ide> <ide> * [HTML lists on w3schools](https://www.w3schools.com/html/html_lists.asp) <add>* [HTML list on tutorialspoint](https://www.tutorialspoint.com/html/html_lists.htm) <ide> * [HTML lists on...
1
Text
Text
update response after calling add_pipe
ba1ff00370db6c8e9a4414b4da58be5fb693b1fa
<ide><path>.github/contributors/henry860916.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or projec...
2
Ruby
Ruby
remove redundant join and call to html_safe
c5a52850b3e2d0d1823f36d8d3afd9dc849cfddd
<ide><path>actionpack/lib/sprockets/helpers/rails_helper.rb <ide> def javascript_include_tag(*sources) <ide> if debug && asset = asset_paths.asset_for(source, 'js') <ide> asset.to_a.map { |dep| <ide> javascript_include_tag(dep, :debug => false, :body => true) <del> }.join(...
1
PHP
PHP
update code in log.php
c78aec97958fa8aabbf801503899fdf07cf9e821
<ide><path>src/Log/Log.php <ide> public static function write($level, $message, $context = []) <ide> */ <ide> public static function emergency($message, $context = []) <ide> { <del> return static::write('emergency', $message, $context); <add> return static::write(__FUNCTION__, $message, $cont...
1
Go
Go
remove redundant error check
7b13076f56ab1cb77579b776c41110e707c47a5a
<ide><path>daemon/network.go <ide> func (daemon *Daemon) CreateManagedNetwork(create clustertypes.NetworkCreateRequ <ide> <ide> // CreateNetwork creates a network with the given name, driver and other optional parameters <ide> func (daemon *Daemon) CreateNetwork(create types.NetworkCreateRequest) (*types.NetworkCreate...
1
Text
Text
clarify section introducing `props`
255f238ceea13f61ec41ab49e7a74cb697f90dbc
<ide><path>docs/docs/tutorial.md <ide> var CommentList = React.createClass({ <ide> }); <ide> ``` <ide> <del>Note that we have passed some data from the parent `CommentList` component to the child `Comment` component as both XML-like children and attributes. Data passed from parent to child is called **props**, short f...
1
Python
Python
fix decode error when building and get rid of warn
dd45d84929318202580bd2b8d6787ec360ed0551
<ide><path>numpy/distutils/ccompiler_opt.py <ide> def _dist_test_spawn_paths(self, cmd, display=None): <ide> # intel and msvc compilers don't raise <ide> # fatal errors when flags are wrong or unsupported <ide> ".*(" <del> "ignoring unknown option|" # msvc <add> "warning D9002|" #...
1
Javascript
Javascript
update array#lastindexof documentation
5bafc9c5126fdeedff94ccaa834e126322cdb0c3
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot <ide> @returns {Number} index or -1 if not found <ide> <ide> @example <del> arr = ["a", "b", "c", "d", "a"]; <add> var arr = ["a", "b", "c", "d", "a"]; <ide> ar...
1
Javascript
Javascript
use common.mustcall() instead of exit handle
2e864df6bf48cccb58e74b195b3a36f37d11f3d1
<ide><path>test/parallel/test-http-server-keep-alive-timeout.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <del>const assert = require('assert'); <ide> const http = require('http'); <ide> const net = require('net'); <ide> <ide> function run() { <ide> } <ide> <ide> test(function serverEndKee...
2
Java
Java
add servlet 3.1 methods to mock request
c553d681f14bb19fac3bc25d8ecec83ae7347071
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java <ide> public int getContentLength() { <ide> return (this.content != null ? this.content.length : -1); <ide> } <ide> <add> public long getContentLengthLong() { <add> return getContentLength(); <add> } <add> <ide> public v...
4
Java
Java
add protected yamlprocessor.getflattenedmap method
87f1512e8867a884615d79ab52bf1283f7c573e1
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java <ide> private Map<String, Object> asMap(Object object) { <ide> <ide> private boolean process(Map<String, Object> map, MatchCallback callback) { <ide> Properties properties = new Properties(); <del> assignProperties(pr...
2
Text
Text
perform minor cleanup on cli.md
4109903098a1224601af8290474df222498d0009
<ide><path>doc/api/cli.md <ide> To view this documentation as a manual page in a terminal, run `man node`. <ide> <ide> Execute without arguments to start the [REPL][]. <ide> <del>_For more info about `node inspect`, please see the [debugger][] documentation._ <add>For more info about `node inspect`, see the [debugger...
1
Javascript
Javascript
delete some old line in list.js
b4416217c4b33e8e557f321aa79a769e117deb2a
<ide><path>docs/list.js <ide> var list = { <ide> <ide> "Plugins": { <ide> "LookupTable": "examples/Lut", <del> "SpriteCanvasMaterial": "examples/SpriteCanvasMaterial" <ide> }, <ide> <ide> "QuickHull": { <ide> var list = { <ide> }, <ide> <ide> "Renderers": { <del> "CSS2DRenderer": "examples/...
1
Python
Python
remove a version check for > python 2.1
42fd3467cb4d3bbf7b79b1577f23dfed05746470
<ide><path>numpy/distutils/exec_command.py <ide> def find_executable(exe, path=None, _cache={}): <ide> <ide> if path is None: <ide> path = os.environ.get('PATH',os.defpath) <del> if os.name=='posix' and sys.version[:3]>'2.1': <add> if os.name=='posix': <ide> realpath = os.path.realpath <ide> ...
1
Javascript
Javascript
apply codemod for react -> reactdom split
9adcff442a56ea9cb1f9aa4575202e028cbe7782
<ide><path>src/addons/__tests__/ReactFragment-test.js <ide> 'use strict'; <ide> <ide> var React; <add>var ReactDOM; <ide> var ReactFragment; <ide> <ide> describe('ReactFragment', function() { <ide> <ide> beforeEach(function() { <ide> React = require('React'); <add> ReactDOM = require('ReactDOM'); <ide> ...
45
Ruby
Ruby
add description for `--fetch-head` option
c3ba863a30e9b21e42453e103155492d114adc2e
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install_args <ide> description: "If <formula> defines it, install the development version." <ide> switch "--HEAD", <ide> description: "If <formula> defines it, install the HEAD version, aka master, trunk, unstable." <del> switch "--fetch-HE...
1
Python
Python
fix tf doctests
6dda14dc47d82f0e32df05fea8ba6444ba52b90a
<ide><path>src/transformers/generation/tf_utils.py <ide> def greedy_search( <ide> ... ) <ide> <ide> >>> outputs = model.greedy_search(input_ids, logits_processor=logits_processor) <del> <del> >>> print("Generated:", tokenizer.batch_decode(outputs, skip_special_tokens=True)) <add> >>> toke...
1
Go
Go
use waitwithcontext for waitstop
36d6d76a41be4973eed98f64a565f8cf92dc16e0
<ide><path>container/state.go <ide> func wait(waitChan <-chan struct{}, timeout time.Duration) error { <ide> // immediately. If you want wait forever you must supply negative timeout. <ide> // Returns exit code, that was passed to SetStopped <ide> func (s *State) WaitStop(timeout time.Duration) (int, error) { <del> s.L...
1
Python
Python
remove torino from stop words
c105ed10fd5d9eb924f767911dfc6400e0386505
<ide><path>spacy/lang/it/stop_words.py <ide> subito successivamente successivo sue sugl sugli sui sul sull sulla sulle <ide> sullo suo suoi <ide> <del>tale tali talvolta tanto te tempo ti titolo torino tra tranne tre trenta <add>tale tali talvolta tanto te tempo ti titolo tra tranne tre trenta <ide> troppo trovato tu ...
1