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
add render_layout.action_view asn to documentation
9219fb314d75337f9c9d318a7971871e0b874fbc
<ide><path>guides/source/active_support_instrumentation.md <ide> INFO. Additional keys may be added by the caller. <ide> } <ide> ``` <ide> <add>#### render_layout.action_view <add> <add>| Key | Value | <add>| ------------- | --------------------- | <add>| `:identifier` | Full path to template...
1
Mixed
Go
fix outdated docs and comments
e82989f8455721f4287bd501ee2d819924dd8026
<ide><path>libnetwork/README.md <ide> There are many networking solutions available to suit a broad range of use-cases <ide> return <ide> } <ide> <del> // Create the sandbox for the containr. <add> // Create the sandbox for the container. <add> // NewSandbox accepts Variadic optional arguments which libnetwork can ...
2
Javascript
Javascript
remove var in libraries/emitter/*
cf70870caa2db3813647a1aab091758a81cab6e0
<ide><path>Libraries/vendor/emitter/EventValidator.js <ide> if (__DEV__) { <ide> } <ide> }; <ide> <del> var closestTypeFor = function(type, allowedTypes) { <add> const closestTypeFor = function(type, allowedTypes) { <ide> const typeRecommendations = allowedTypes.map( <ide> typeRecommendationFor.bind(...
1
Text
Text
add esm examples for assert
a8b5cdca352087bc5275cab1e4c31dd3f80d3121
<ide><path>doc/api/assert.md <ide> assertion mode, error messages for objects display the objects, often truncated. <ide> <ide> To use strict assertion mode: <ide> <del>```js <add>```mjs <add>import { strict as assert } from 'assert'; <add>``` <add> <add>```cjs <ide> const assert = require('assert').strict; <ide> ```...
1
Mixed
Python
add type hints for "strings" folder
000cedc07f1065282acd7e25add4d2847fe08391
<ide><path>DIRECTORY.md <ide> * Problem 12 <ide> * [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_12/sol1.py) <ide> * [Sol2](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_12/sol2.py) <add> * Problem 120 <add> * [Sol1](https://github.com/TheAlgo...
7
Python
Python
fix fmin examples
e3bca2cf026ae16926ef58d71b33afa2981c33c6
<ide><path>numpy/core/code_generators/ufunc_docstrings.py <ide> def add_newdoc(place, name, doc): <ide> Examples <ide> -------- <ide> >>> np.fmin([2, 3, 4], [1, 5, 2]) <del> array([2, 5, 4]) <add> array([1, 3, 2]) <ide> <ide> >>> np.fmin(np.eye(2), [0.5, 2]) <del> array([[ 1. , 2. ], <del> ...
1
Python
Python
fix pavement.py write_release_task
375e90dccd32bf5d4308766d635d35734c627e76
<ide><path>pavement.py <ide> def write_release_task(options, filename='NOTES.txt'): <ide> ~~~ <ide> <ide> """) <del> ftarget.writelines(['%s\n' % c for c in compute_md5(idirs)]) <del> ftarget.writelines(""" <add> ftarget.writelines(['%s\n' % c for c in compute_md5(idirs)]) <add> ftarget.writelines(...
1
PHP
PHP
fix cs errors
46c2b9e1f57433ecb4a8b605473ad3695549ff95
<ide><path>src/Collection/CollectionInterface.php <ide> public function each(callable $c); <ide> * @param callable|null $c the method that will receive each of the elements and <ide> * returns true whether or not they should be in the resulting collection. <ide> * If left null, a callback that filter...
1
Javascript
Javascript
update reactnativetypes from pr to react
c0029be95364008802505feb8ed2f28f5026abe1
<ide><path>Libraries/Renderer/shims/ReactNativeTypes.js <ide> * @flow <ide> */ <ide> <del>import * as React from 'react'; <add>import React, {type ElementRef, type AbstractComponent} from 'react'; <ide> <ide> export type MeasureOnSuccessCallback = ( <ide> x: number, <ide> class ReactNativeComponent<Props> extends...
1
Javascript
Javascript
use missing validator
7a0a8efec183db31294369823cc5a66c3a54cc7b
<ide><path>lib/net.js <ide> const { <ide> const { isUint8Array } = require('internal/util/types'); <ide> const { <ide> validateAbortSignal, <add> validateFunction, <ide> validateInt32, <ide> validateNumber, <ide> validatePort, <ide> function lookupAndConnect(self, options) { <ide> return; <ide> } <ide> ...
1
PHP
PHP
fix some type hints
5d148e582381e95af77a43ae1c3cd68e477c8235
<ide><path>src/Illuminate/Bus/Dispatcher.php <ide> public function dispatchFromArray($command, array $array) <ide> * Marshal a command and dispatch it to its appropriate handler. <ide> * <ide> * @param mixed $command <del> * @param array $array <add> * @param \ArrayAccess $array <ide> * @return mixed <i...
2
Javascript
Javascript
fix incorrect babal alias for next/router. (#480)
aa7fccbbc4768a7971ad265f67a2f885e9c2a317
<ide><path>server/build/babel/preset.js <ide> module.exports = { <ide> 'next/css': require.resolve('../../../lib/css'), <ide> 'next/head': require.resolve('../../../lib/head'), <ide> 'next/document': require.resolve('../../../server/document'), <del> 'next/router': require.resolve...
1
Mixed
Python
move device and hook to utils. fix device stuff
2164c8dbbfdba1e0e27703f84bf5cf995b044d79
<ide><path>tutorials/image/cifar10_estimator/README.md <ide> $ python cifar10_main.py --data-dir=/prefix/to/downloaded/data/cifar-10-batches- <ide> # Run the model on 2 GPUs using CPU as parameter server. After training, it runs the evaluation. <ide> $ python cifar10_main.py --data-dir=/prefix/to/downloaded/data/cifar-...
4
Mixed
Go
fix network name masking network id on delete
e52001c56e12e4fc63fb5d89ef919295d6ddd5d5
<ide><path>daemon/network.go <ide> func (daemon *Daemon) NetworkControllerEnabled() bool { <ide> <ide> // FindNetwork function finds a network for a given string that can represent network name or id <ide> func (daemon *Daemon) FindNetwork(idName string) (libnetwork.Network, error) { <del> // Find by Name <del> n, err...
4
Python
Python
celerybeat persistent scheduler shelve fix
cc1a67ebb4612284ce65c36639da06e6d408a4d5
<ide><path>celery/beat.py <ide> def setup_schedule(self): <ide> def get_schedule(self): <ide> return self._store <ide> <add> def merge_inplace(self, b): <add> A, B = set(self._store.keys()), set(b.keys()) <add> <add> # Remove items from disk not in the schedule anymore. <add> for ke...
1
Ruby
Ruby
use fetch for better error handling
e1f31e85ff6d6dab052049c2a4465659a791d844
<ide><path>activesupport/lib/active_support/core_ext/date_and_time/calculations.rb <ide> def last_year <ide> # Week is assumed to start on +start_day+, default is <ide> # +Date.beginning_of_week+ or +config.beginning_of_week+ when set. <ide> def days_to_week_start(start_day = Date.beginning_of_week) <del> ...
1
Go
Go
fix spelling of benchmark test
5583774e29911bbd42181e8db2ece08761677cf3
<ide><path>integration/container_test.go <ide> func TestEntrypointNoCmd(t *testing.T) { <ide> } <ide> } <ide> <del>func BenchmarkRunSequencial(b *testing.B) { <add>func BenchmarkRunSequential(b *testing.B) { <ide> runtime := mkRuntime(b) <ide> defer nuke(runtime) <ide> for i := 0; i < b.N; i++ {
1
Javascript
Javascript
use domhelper to extract url protocol
50bc8bedba68549b7d3c7565ca14d1d126e37276
<ide><path>packages/ember-htmlbars/lib/hooks/attribute.js <ide> export default function attribute(env, morph, element, attrName, attrValue) { <ide> if (isStream(attrValue)) { <ide> throw new EmberError('Bound attributes are not yet supported in Ember.js'); <ide> } else { <del> var sanitizedValue = sa...
4
PHP
PHP
implement protocolversion methods
a1e5181fe16fa0cdbd751728c6b5f3cfd14a24cc
<ide><path>src/Network/Request.php <ide> class Request implements ArrayAccess <ide> */ <ide> protected $uploadedFiles = []; <ide> <add> /** <add> * The HTTP protocol version used. <add> * <add> * @var string|null <add> */ <add> protected $protocol; <add> <ide> /** <ide> * Wrappe...
2
Java
Java
remove timeouts from react instance loading
29238eb3eba0c4d73e4a0e67f2d7de72bf0a1b83
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java <ide> import java.util.Collection; <ide> import java.util.concurrent.Callable; <ide> import java.util.concurrent.CopyOnWriteArrayList; <del>import java.util.concurrent.TimeUnit; <ide> import java.util.concurrent.atomic.AtomicInteg...
2
PHP
PHP
apply fixes from styleci
6ee81be055a0b7fc6d5c2c5c3566a897707c8250
<ide><path>tests/Integration/Routing/UrlSigningTest.php <ide> public function testSignedMiddlewareIgnoringParameter() <ide> <ide> protected function createValidateSignatureMiddleware(array $ignore) <ide> { <del> return new class ($ignore) extends ValidateSignature { <add> return new class($ignore...
1
Javascript
Javascript
consolidate assertions in ipv6only test
c37b39282bf6ad26a9505f311277303e18e4968f
<ide><path>test/parallel/test-cluster-net-listen-ipv6only-rr.js <ide> if (cluster.isMaster) { <ide> if (!address) { <ide> address = workerAddress; <ide> } else { <del> assert.strictEqual(address.addressType, workerAddress.addressType); <del> assert.strictEqual(address.host, workerAddre...
1
Javascript
Javascript
escape all 24 mixed pieces, not only first 12
be2468e571ba4cfd723e27c128831d843d1bbac6
<ide><path>src/lib/units/month.js <ide> function computeMonthsParse () { <ide> longPieces[i] = regexEscape(longPieces[i]); <ide> mixedPieces[i] = regexEscape(mixedPieces[i]); <ide> } <add> for (; i < 24; i++) { <add> mixedPieces[i] = regexEscape(mixedPieces[i]); <add> } <ide> <ide> ...
1
Java
Java
fix modals when using nodes
f8d623ca3a4c8ccbfa34fbe3d0a03c3935619dd3
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this so...
3
PHP
PHP
add fulltablename tests with empty schemaname
b1aae5b5ab92e0f77b629b488aa6db209c9858c8
<ide><path>lib/Cake/Test/Case/Model/Datasource/DboSourceTest.php <ide> public function testFullTablePermutations() { <ide> $Article->tablePrefix = ''; <ide> $result = $this->testDb->fullTableName($Article, true, false); <ide> $this->assertEquals($result, '`with spaces`'); <add> <add> $this->loadFixtures('Article...
1
Javascript
Javascript
handle boolean attributes in `@` bindings
db5e0ffe124ac588f01ef0fe79efebfa72f5eec7
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> } <ide> }); <ide> attrs.$$observers[attrName].$$scope = scope; <del> if (isString(attrs[attrName])) { <add> lastValue = attrs[attrName]; <add> if (...
2
Javascript
Javascript
clarify trie utils
e38739ce58770525bd93356e0a619f47e9b601f7
<ide><path>dist/Immutable.dev.js <ide> var $Sequence = Sequence; <ide> return this.slice(0, -1); <ide> }, <ide> has: function(searchKey) { <del> return this.get(searchKey, SENTINEL) !== SENTINEL; <add> return this.get(searchKey, NOTHING) !== NOTHING; <ide> }, <ide> get: function(searchKey, notFoundVal...
5
Javascript
Javascript
use round() instead of parseint() to be consistent
571f9baf99a1493db43b038fb4db2afbf44c513d
<ide><path>moment.js <ide> }, <ide> <ide> unixValueOf : function () { <del> return parseInt(this.valueOf() / 1000, 10); <add> return round(this.valueOf() / 1000); <ide> }, <ide> <ide> local : function () {
1
Mixed
Javascript
add local family
d4423d63cd8821d4d8013bd8a862063ac2b32fa7
<ide><path>doc/api/net.md <ide> TCP server, the argument is as follows, otherwise the argument is `undefined`. <ide> * `data` {Object} The argument passed to event listener. <ide> * `localAddress` {string} Local address. <ide> * `localPort` {number} Local port. <add> * `localFamily` {string} Local family. <ide> ...
3
Ruby
Ruby
give a message to `#test_duplicable` assertion
2aac4e4392821e72bd7a2626e78b3797c74de9c2
<ide><path>activesupport/test/core_ext/object/duplicable_test.rb <ide> def test_duplicable <ide> "* https://github.com/rubinius/rubinius/issues/3089" <ide> <ide> RAISE_DUP.each do |v| <del> assert !v.duplicable? <add> assert !v.duplicable?, "#{ v.inspect } should not be duplicable" <ide...
1
Ruby
Ruby
add a desc field to formula
86365470e6a2a02c1a54f75fae818b779375b079
<ide><path>Library/Homebrew/formula.rb <ide> def bottle <ide> Bottle.new(self, bottle_specification) if bottled? <ide> end <ide> <add> # The description of the software. <add> # @see .desc <add> def desc <add> self.class.desc <add> end <add> <ide> # The homepage for the software. <ide> # @see .homepag...
1
Go
Go
remove jobs from stats
65a056345cec1b85bd41ed70ee814894709ee6c0
<ide><path>api/server/server.go <ide> func getContainersStats(eng *engine.Engine, version version.Version, w http.Resp <ide> if vars == nil { <ide> return fmt.Errorf("Missing parameter") <ide> } <del> name := vars["name"] <del> job := eng.Job("container_stats", name) <del> streamJSON(job, w, true) <del> return job....
3
Javascript
Javascript
change the way we test this
026782921145e492bfb1660f1d5cee763fa0ca78
<ide><path>spec/main-process/atom-application.test.js <ide> import dedent from 'dedent' <ide> import electron from 'electron' <ide> import fs from 'fs-plus' <ide> import path from 'path' <add>import sinon from 'sinon' <ide> import AtomApplication from '../../src/main-process/atom-application' <ide> import parseCommandL...
1
PHP
PHP
add a formal interface for fixture state managers
651d050ed1a39e80b4b7a7588342d314a79f7abf
<ide><path>src/TestSuite/Fixture/StateResetStrategyInterface.php <add><?php <add>declare(strict_types=1); <add> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT Licens...
6
PHP
PHP
replace contents of service manifest atomically
563e7d4e16d73eaafaf927fba2a29f5fbe783ede
<ide><path>src/Illuminate/Foundation/ProviderRepository.php <ide> public function writeManifest($manifest) <ide> throw new Exception('The bootstrap/cache directory must be present and writable.'); <ide> } <ide> <del> $this->files->put( <add> $this->files->replace( <ide> $t...
1
Javascript
Javascript
use bind instead of apply in logger
8a895e1b9559dfd846bdeb332dea12cb8279aa87
<ide><path>packages/ember-metal/lib/logger.js <ide> function consoleMethod(name) { <ide> var method = typeof consoleObj === 'object' ? consoleObj[name] : null; <ide> <ide> if (method) { <del> // Older IE doesn't support apply, but Chrome needs it <del> if (typeof method.apply === 'function') { <del> log...
1
Javascript
Javascript
add lao locale (lo)
08dc83c7e1f29c4eb1b1df0b5215bdae9d287f79
<ide><path>src/locale/lo.js <add>//! moment.js locale configuration <add>//! locale : lao (lo) <add>//! author : Ryan Hart : https://github.com/ryanhart2 <add> <add>import moment from '../moment'; <add> <add>export default moment.defineLocale('lo', { <add> months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫ...
2
Text
Text
replace the reserved word `input` with `inputs`
52592d45a5fb15c76445d7c7f2e14e33168ad3fd
<ide><path>docs/templates/backend.md <ide> from keras import backend as K <ide> The code below instantiates an input placeholder. It's equivalent to `tf.placeholder()` or `th.tensor.matrix()`, `th.tensor.tensor3()`, etc. <ide> <ide> ```python <del>input = K.placeholder(shape=(2, 4, 5)) <add>inputs = K.placeholder(shap...
1
Text
Text
fix a typo
5494b267d9c945251c6b04cc1a835e1cfcdc0314
<ide><path>docs/_posts/2016-07-13-mixins-considered-harmful.md <ide> Multiple components may be sharing `RowMixin` to render the header, and each of <ide> <ide> If you see rendering logic inside a mixin, it’s time to extract a component! <ide> <del>Instead of `RowMixin`, we will define a `<Row>` component. We will al...
1
PHP
PHP
update exception type to a class that exists
f0164ddfe74deb36398c3261a93fd65e93fd8d48
<ide><path>Cake/Test/TestCase/Utility/HashTest.php <ide> public function testCombine() { <ide> /** <ide> * test combine() giving errors on key/value length mismatches. <ide> * <del> * @expectedException CakeException <add> * @expectedException RuntimeException <ide> * @return void <ide> */ <ide> public function te...
2
Javascript
Javascript
remove duplicate documentation of register method
0f3ea45d738ca6d09c4ceedf2e06fdf344054b5a
<ide><path>src/ng/filter.js <ide> * For more information about how angular filters work, and how to create your own filters, see <ide> * {@link guide/filter Filters} in the Angular Developer Guide. <ide> */ <del>/** <del> * @ngdoc method <del> * @name $filterProvider#register <del> * @description <del> * Register fi...
1
Javascript
Javascript
delete existing users before seeding db
0e96d2604ea88b9f65b1d6155467dc37267b4a72
<ide><path>tools/scripts/seed/seedAuthUser.js <ide> MongoClient.connect(MONGOHQ_URL, { useNewUrlParser: true }, (err, client) => { <ide> const user = db.collection('user'); <ide> <ide> if (process.argv[2] === 'certUser') { <del> user.deleteOne({ _id: ObjectId('5fa2db00a25c1c1fa49ce067') }, err => { <del> h...
1
Go
Go
add service create and update integration tests
76b33fdb99a6395670b8b466a5ef65a8b928be94
<ide><path>integration-cli/docker_cli_service_create_test.go <ide> package main <ide> <ide> import ( <ide> "encoding/json" <add> "fmt" <ide> "strings" <ide> <ide> "github.com/docker/docker/api/types" <ide> func (s *DockerSwarmSuite) TestServiceCreateMountVolume(c *check.C) { <ide> c.Assert(mounts[0].Destination, ...
2
Text
Text
add a webpack usage guide
230743ecb1c79977bfa308ce90c039377dfdf524
<ide><path>docs/guides/faq.md <ide> Yes! Please [submit an issue or open a pull request][pr-issue-question] if this <ide> <ide> Yes! Please [submit an issue or open a pull request][pr-issue-question] if this does not work. <ide> <del>Be sure to use `require('!style-loader!css-loader!video.js/dist/video-js.css')` to i...
2
PHP
PHP
add dispatchnow to dispatchable trait
ab526b7d8fc565314f20c840c7398096b9ec9b94
<ide><path>src/Illuminate/Foundation/Bus/Dispatchable.php <ide> <ide> namespace Illuminate\Foundation\Bus; <ide> <add>use Illuminate\Contracts\Bus\Dispatcher; <add> <ide> trait Dispatchable <ide> { <ide> /** <ide> public static function dispatch() <ide> return new PendingDispatch(new static(...func_get_ar...
1
Text
Text
improve translation for russion locale
a82badaa222caac3d81adbe40ad69cee7d9e314c
<ide><path>curriculum/challenges/russian/02-javascript-algorithms-and-data-structures/functional-programming/add-elements-to-the-end-of-an-array-using-concat-instead-of-push.russian.md <ide> id: 587d7da9367417b2b2512b67 <ide> title: Add Elements to the End of an Array Using concat Instead of push <ide> challengeType: 1...
1
Javascript
Javascript
fix warning in doc parsing
05f17db8b2c57ae86d1043ca8009a34c3cd2f611
<ide><path>tools/doc/json.js <ide> function parseSignature(text, sig) { <ide> // [foo] -> optional <ide> if (p.charAt(p.length - 1) === ']') { <ide> optional = true; <del> p = p.substr(0, p.length - 1); <add> p = p.replace(/\]/g, ''); <ide> p = p.trim(); <ide> } <ide> var eq = p.in...
1
Ruby
Ruby
allow tapping non-github repositories
965e2f50c3e8490ffb799ed01d6b1e8b1a7c98cc
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def tap <ide> elsif ARGV.first == "--repair" <ide> migrate_taps :force => true <ide> else <del> opoo "Already tapped!" unless install_tap(*tap_args) <add> user, repo = tap_args <add> clone_target = ARGV.named[1] <add> opoo "Already tapped!" ...
2
Text
Text
add missing url types in fs promise api
ac829f0135b02e0c130e2433e028235c2bed2059
<ide><path>doc/api/fs.md <ide> the error raised if the file is not accessible. <ide> added: REPLACEME <ide> --> <ide> <del>* `file` {string|Buffer|[FileHandle][]} filename or `FileHandle` <add>* `file` {string|Buffer|URL|[FileHandle][]} filename or `FileHandle` <ide> * `data` {string|Buffer} <ide> * `options` {Object|...
1
Python
Python
fix import in th
3d5046c499d6e61492820293865c6b7af0e26fd0
<ide><path>spacy/lang/th/__init__.py <ide> from .stop_words import STOP_WORDS <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <del>from ..tokens import Doc <add>from ...tokens import Doc <ide> from ..norm_exceptions import BASE_NORMS <ide> from ...language import Language <ide> from ...attrs import LANG...
1
Go
Go
show error message when todisk failed
af7f81878f561ecdab32936d4bea72f0ab26ce0e
<ide><path>daemon/create.go <ide> import ( <ide> "path/filepath" <ide> "strings" <ide> <add> "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/graph" <ide> "github.com/docker/docker/image" <ide> "github.com/docker/docker/pkg/parsers" <ide> func (daemon *Daemon) Create(config *runconfig.Config, hostConf...
4
Text
Text
add text to "upgrading to rails 5.1"
3b5a6dfb18f33c373a89760c60d741f34206f23b
<ide><path>guides/source/5_1_release_notes.md <ide> repository on GitHub. <ide> Upgrading to Rails 5.1 <ide> ---------------------- <ide> <del>ToDo <add>If you're upgrading an existing application, it's a great idea to have good test <add>coverage before going in. You should also first upgrade to Rails 5.0 in case you...
1
Javascript
Javascript
free the parser before emitting 'upgrade'
93f1d9e10bbc922d6c8862e30efaee8975712633
<ide><path>lib/_http_client.js <ide> function socketOnData(d) { <ide> socket.removeListener('data', socketOnData); <ide> socket.removeListener('end', socketOnEnd); <ide> parser.finish(); <add> freeParser(parser, req, socket); <ide> <ide> var bodyHead = d.slice(bytesParsed, d.length); <ide> <ide> fu...
2
Ruby
Ruby
add test for safe_join
31560955907b764d9951ff9b188cff722473ed26
<ide><path>actionview/test/template/output_safety_helper_test.rb <ide> def setup <ide> assert_equal "&quot;a&quot; &lt;br/&gt; &lt;b&gt; &lt;br/&gt; &lt;c&gt;", joined <ide> end <ide> <add> test "safe_join should return the safe string separated by $, when second argument is not passed" do <add> joined = saf...
1
Ruby
Ruby
pass the mixin in to the code generation methods
c856d895bd054d0c474f1a3876257400db529590
<ide><path>activerecord/lib/active_record/associations/builder/association.rb <ide> def mixin <ide> end <ide> <ide> def build <del> define_accessors <add> define_accessors(mixin) <ide> configure_dependency if options[:dependent] <ide> reflection = ActiveRecord::Reflection.create(macro, na...
3
Javascript
Javascript
handle data visibility per chart
29115c9d2c94f5f52a22fa5e9d39244726a7d9d2
<ide><path>src/controllers/controller.doughnut.js <ide> module.exports = function(Chart) { <ide> var data = chart.data; <ide> if (data.labels.length && data.datasets.length) { <ide> return data.labels.map(function(label, i) { <add> var meta = chart.getDatasetMeta(0); <ide> var ds = data.dat...
7
Javascript
Javascript
fix syntax error for node older than 10
5339e5d528b07718fc69a6ca12da5acb09b81a7d
<ide><path>script/lib/verify-machine-requirements.js <ide> function verifyPython() { <ide> env: process.env, <ide> stdio: ['ignore', 'pipe', 'ignore'] <ide> }); <del> } catch {} <add> } catch (e) {} <ide> <ide> if (stdout) { <ide> if (stdout.indexOf('+') !== -1)
1
Javascript
Javascript
apply minor refactoring
4fe081df44fdab28d241e73902f63390c5012772
<ide><path>lib/assert.js <del>// http://wiki.commonjs.org/wiki/Unit_Testing/1.0 <del>// <del>// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8! <del>// <ide> // Originally from narwhal.js (http://narwhaljs.org) <ide> // Copyright (c) 2009 Thomas Robinson <280north.com> <ide> // <ide> function _deepEqual(actual, expec...
1
PHP
PHP
simplify validation on register stuff
7a7e366da539d834279c1c9f1805bfbf8e9fe1ed
<ide><path>app/Http/Controllers/Auth/AuthController.php <ide> <?php namespace App\Http\Controllers\Auth; <ide> <ide> use App\User; <add>use Illuminate\Http\Request; <ide> use App\Http\Controllers\Controller; <ide> use Illuminate\Contracts\Auth\Guard; <del>use App\Http\Requests\Auth\LoginRequest; <del>use App\Http\Requ...
3
Javascript
Javascript
improve the code in test-process-cpuusage
c963094f3cf3d42af5255f1a340cb97884c641d8
<ide><path>test/parallel/test-process-cpuUsage.js <ide> for (let i = 0; i < 10; i++) { <ide> assert(diffUsage.system >= 0); <ide> } <ide> <add>const invalidUserArgument = <add> /^TypeError: value of user property of argument is invalid$/; <add>const invalidSystemArgument = <add> /^TypeError: value of system pr...
1
Go
Go
fix race in logevent
a1b7a35c90f05b113b7c3aa474b74d1d2afbf7b6
<ide><path>server/server.go <ide> func (srv *Server) LogEvent(action, id, from string) *utils.JSONMessage { <ide> now := time.Now().UTC().Unix() <ide> jm := utils.JSONMessage{Status: action, ID: id, From: from, Time: now} <ide> srv.AddEvent(jm) <add> srv.Lock() <ide> for _, c := range srv.listeners { <ide> select...
1
Javascript
Javascript
move player id generation
1cab78347d244996eb8b0c2a49f541c0283e9d3d
<ide><path>src/js/player.js <ide> vjs.Player = vjs.Component.extend({ <ide> init: function(tag, options, ready){ <ide> this.tag = tag; // Store the original tag used to set options <ide> <add> // Make sure tag ID exists <add> tag.id = tag.id || 'vjs_video_' + vjs.guid++; <add> <ide> // Set Options <ide...
2
PHP
PHP
remove asset.x configure values
bd3428e45659078e29938cf20198ff7e6ef0869e
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function setUp() { <ide> parent::setUp(); <ide> <ide> Configure::write('App.base', ''); <add> Configure::delete('Asset'); <ide> $this->Controller = new ContactTestController(); <ide> $this->View = new View($this->Controller); <ide>
1
Javascript
Javascript
rewrite issymbol to be simpler
4239f8ac3bf3dcbcc8554e3b821f562831eeb663
<ide><path>src/isomorphic/classic/types/ReactPropTypes.js <ide> function isNode(propValue) { <ide> } <ide> <ide> function isSymbol(propType, propValue) { <add> // Native Symbol. <ide> if (propType === 'symbol') { <del> return true; // This is a native Symbol. <add> return true; <ide> } <ide> <del> if (typ...
1
Python
Python
fix exception marshalling with json serializer
33e72fdbc7b07fc26d13bcdc36fb6f42c8291b66
<ide><path>celery/backends/amqp.py <ide> def drain_events(self, connection, consumer, <ide> <ide> def callback(meta, message): <ide> if meta['status'] in states.READY_STATES: <del> results[meta['task_id']] = meta <add> results[meta['task_id']] = self.meta_from_decoded(...
1
Text
Text
remove unclear text from fs.write()
a55c4fdeb13b63029c4e4960be4baadbda8279b0
<ide><path>doc/api/fs.md <ide> The callback will receive the arguments `(err, written, string)` where `written` <ide> specifies how many _bytes_ the passed string required to be written. Note that <ide> bytes written is not the same as string characters. See [`Buffer.byteLength`][]. <ide> <del>Unlike when writing `buf...
1
Python
Python
fix bug with graph sample_weights
56ae624f1238c293e2633677aa721bf548ac0186
<ide><path>keras/models.py <ide> def _fit(self, f, ins, out_labels=[], batch_size=128, nb_epoch=100, verbose=1, c <ide> try: <ide> ins_batch = slice_X(ins, batch_ids) <ide> except TypeError as err: <del> print('TypeError while preparing batch. \ <ad...
1
Text
Text
move the comment on line 71 to its own line
d824c770123bf626e2930303ffaed7d09bab299d
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/use-destructuring-assignment-to-pass-an-object-as-a-functions-parameters.english.md <ide> const stats = { <ide> average: 35.85 <ide> }; <ide> <add>// use function argument destructuring <ide> // change code below this line <del...
1
Javascript
Javascript
optimize a loop in buffergeometry.merge()
8e49e00734b261e67c781b5b152f0bf2a9f3853c
<ide><path>src/core/BufferGeometry.js <ide> BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy <ide> var attribute2 = geometry.attributes[ key ]; <ide> var attributeArray2 = attribute2.array; <ide> <del> var attributeSize = attribute2.itemSize; <add> var attributeOffset = attrib...
1
Javascript
Javascript
remove custom manager test
52c48d08158857329e8bdd52873fefca32780057
<ide><path>packages/ember-glimmer/tests/integration/custom-component-manager-test.js <del>import { moduleFor, RenderingTest } from '../utils/test-case'; <del>import { <del> GLIMMER_CUSTOM_COMPONENT_MANAGER <del>} from 'ember/features'; <del>import { AbstractComponentManager } from 'ember-glimmer'; <del> <del>if (GLIMM...
1
PHP
PHP
use short array syntax
14fca9b0fc6fee01c08018995c2a343cecc7058d
<ide><path>src/View/Helper/SessionHelper.php <ide> public function error() { <ide> * @return string <ide> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html#SessionHelper::flash <ide> */ <del> public function flash($key = 'flash', $attrs = array()) { <del> <add> public function flash($key = '...
1
Go
Go
use default port range in unit tests
fcf8e85a35cddfd1f75f652a513015bb6f169257
<ide><path>daemon/networkdriver/portallocator/portallocator_test.go <ide> import ( <ide> <ide> func init() { <ide> beginPortRange = DefaultPortRangeStart <del> endPortRange = DefaultPortRangeStart + 500 <add> endPortRange = DefaultPortRangeEnd <ide> } <ide> <ide> func reset() {
1
Javascript
Javascript
add more description of `controller as` syntax
462eefc1e45236bf451fce851ec58169915b71cd
<ide><path>src/ng/directive/ngController.js <ide> * @example <ide> * Here is a simple form for editing user contact information. Adding, removing, clearing, and <ide> * greeting are methods declared on the controller (see source tab). These methods can <del> * easily be called from the angular markup. Notice that th...
1
Text
Text
fix a link in dgram.md
bbd95554c0d8bc3511a6a118e7e42458e5044a39
<ide><path>doc/api/dgram.md <ide> and `udp6` sockets). The bound address and port can be retrieved using <ide> [`socket.bind()`]: #dgram_socket_bind_port_address_callback <ide> [`System Error`]: errors.html#errors_class_systemerror <ide> [byte length]: buffer.html#buffer_class_method_buffer_bytelength_string_encoding <...
1
Javascript
Javascript
update removehash handling for stats-app
864d5c6bd82339b4895ae496b865a4ee1a4ab290
<ide><path>.github/actions/next-stats-action/src/run/index.js <ide> async function runConfigs( <ide> const results = await glob(rename.srcGlob, { cwd: statsAppDir }) <ide> for (const result of results) { <ide> let dest = rename.removeHash <del> ? result.replace(/(\.|-)[0-9a-f]{20}(\...
1
Javascript
Javascript
handle interceptors with `undefined` expressions
4473b81cdaf16c5509ac53d80b9bdfb0a7ac5f30
<ide><path>src/ng/parse.js <ide> function $ParseProvider() { <ide> return addInterceptor(exp, interceptorFn); <ide> <ide> default: <del> return noop; <add> return addInterceptor(noop, interceptorFn); <ide> } <ide> }; <ide> <ide><path>test/ng/parseSpec.js <ide> describe('p...
2
Text
Text
add a readme to the client's package…
a00106f9a5cf58cced011c93e98fbe1d7f65c4e7
<ide><path>client/README.md <add>## Client <add> <add>The client package implements a fully featured http client to interact with the Docker engine. It's modeled after the requirements of the Docker engine CLI, but it can also serve other purposes. <add> <add>### Usage <add> <add>You can use this client package in your...
1
Javascript
Javascript
remove the comment of base64 validation
d5c383706130638d9772c5fdc18545a90424bff3
<ide><path>lib/internal/validators.js <ide> function validateEncoding(data, encoding) { <ide> throw new ERR_INVALID_ARG_VALUE('encoding', encoding, <ide> `is invalid for data of length ${length}`); <ide> } <del> <del> // TODO(bnoordhuis) Add BASE64 check? <ide> } <ide> <ide> ...
1
Javascript
Javascript
fix incomplete json produced by doctool
05d0e9e6a3ae7ed293ea46d0e978eb35a2b5107f
<ide><path>tools/doc/json.js <ide> function processList(section) { <ide> // event: each item is an argument. <ide> section.params = values; <ide> break; <add> <add> default: <add> if (section.list.length > 0) { <add> section.desc = section.desc || []; <add> for (var i = 0; i < se...
1
PHP
PHP
use arrow functions
b94a68253d77944d68ba22f3391c83df479e1617
<ide><path>src/Illuminate/Bus/DatabaseBatchRepository.php <ide> public function pruneUnfinished(DateTimeInterface $before) <ide> */ <ide> public function transaction(Closure $callback) <ide> { <del> return $this->connection->transaction(function () use ($callback) { <del> return $callback...
8
Python
Python
prepare data, train, and eval on py3
26c96542c573f390daf447b38df50968b2649922
<ide><path>research/deeplab/datasets/build_cityscapes_data.py <ide> def _convert_dataset(dataset_split): <ide> i + 1, num_images, shard_id)) <ide> sys.stdout.flush() <ide> # Read the image. <del> image_data = tf.gfile.FastGFile(image_files[i], 'r').read() <add> image_data = tf....
6
Python
Python
remove duplicate test in `tests/test_utils.py`
60bcc932022c623aaad427e38464727484774aa2
<ide><path>tests/test_utils.py <ide> class UrlsRemoveQueryParamTests(TestCase): <ide> """ <ide> Tests the remove_query_param functionality. <ide> """ <del> def test_valid_unicode_preserved(self): <del> q = '/?q=%E6%9F%A5%E8%AF%A2' <del> new_key = 'page' <del> new_value = 2 <del> ...
1
Go
Go
fix use of cap in multireadseeker
158bb9bbd588aa03a3567f40b367025ccbd81fb3
<ide><path>pkg/ioutils/multireader.go <ide> func (r *multiReadSeeker) Read(b []byte) (int, error) { <ide> r.pos = &pos{0, 0} <ide> } <ide> <del> bCap := int64(cap(b)) <add> bCap := int64(len(b)) <ide> buf := bytes.NewBuffer(nil) <ide> var rdr io.ReadSeeker <ide> <ide><path>pkg/ioutils/multireader_test.go <ide> p...
2
Ruby
Ruby
remove superfluous cgi require
c585e263ab40101eb0fd71a1d24d0d704f4ce026
<ide><path>activeresource/lib/active_resource/base.rb <ide> require 'active_resource/connection' <del>require 'cgi' <ide> require 'set' <ide> <ide> module ActiveResource
1
Javascript
Javascript
remove unnecessary $scope.apply wrapping
e970df8554877f0d7aa87a8ee5cdd647f6f4b771
<ide><path>src/ng/q.js <ide> * var deferred = $q.defer(); <ide> * <ide> * setTimeout(function() { <del> * // since this fn executes async in a future turn of the event loop, we need to wrap <del> * // our code into an $apply call so that the model changes are properly observed. <del> * scop...
1
Ruby
Ruby
pull tap list into a constant
e0fba99699e168d863dd7bcb57190766d612c95b
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> if query <ide> found = search_results.length <ide> <del> threads = [] <ide> results = [] <del> threads << Thread.new { search_tap "josegonzalez", "php", rx } <del> threads << Thread.new { search_tap "samueljohn"...
1
Text
Text
add description for "--cpu-shares=0"
b7249569e27e1962c69eef2b8f547fb6fb7ad367
<ide><path>docs/reference/run.md <ide> can be modified by changing the container's CPU share weighting relative <ide> to the weighting of all other running containers. <ide> <ide> To modify the proportion from the default of 1024, use the `-c` or `--cpu-shares` <del>flag to set the weighting to 2 or higher. <add>flag ...
1
Ruby
Ruby
add cop for shell metacharacters in `exec`
6e2f194e0933c82246eb84aa0fd7283832bc435e
<ide><path>Library/Homebrew/rubocops/shared/helper_functions.rb <ide> def source_buffer(node) <ide> end <ide> <ide> # Returns the string representation if node is of type str(plain) or dstr(interpolated) or const. <del> def string_content(node) <add> def string_content(node, strip_dynamic: false)...
3
PHP
PHP
add dutch language
ce3721a7a131bd3a1aac04ac046a3427e9a233e2
<ide><path>application/language/nl/pagination.php <add><?php <add> <add>return array( <add> <add> 'previous' => '&laquo; Vorige', <add> 'next' => 'Volgende &raquo;', <add> <add>); <ide>\ No newline at end of file <ide><path>application/language/nl/validation.php <add><?php <add> <add>return array( <add> <add> /* ...
2
Go
Go
improve perf by avoiding buffer growth
277aa9c67415b9b76ab17daea583b51f8560a6a5
<ide><path>pkg/stdcopy/stdcopy.go <ide> type StdWriter struct { <ide> } <ide> <ide> func (w *StdWriter) Write(buf []byte) (n int, err error) { <add> var n1, n2 int <ide> if w == nil || w.Writer == nil { <ide> return 0, errors.New("Writer not instanciated") <ide> } <ide> binary.BigEndian.PutUint32(w.prefix[4:], ui...
1
PHP
PHP
remove use of file from stringcomparetrait
d9eda250198b3b4799ad78e8e9c40f24d06f1d8a
<ide><path>src/TestSuite/StringCompareTrait.php <ide> */ <ide> namespace Cake\TestSuite; <ide> <del>use Cake\Filesystem\File; <del> <ide> /** <ide> * Compare a string to the contents of a file <ide> * <ide> public function assertSameAsFile(string $path, string $result): void <ide> } <ide> <ide> if ...
1
Ruby
Ruby
fix url generation for mounted engine
177a4bd5b7f903030a100f9b5092b1fa62c7c748
<ide><path>railties/lib/rails/application.rb <ide> def load_console(sandbox=false) <ide> alias :build_middleware_stack :app <ide> <ide> def call(env) <add> if Rails.application == self <add> env["ORIGINAL_SCRIPT_NAME"] = env["SCRIPT_NAME"] <add> env["action_dispatch.parent_routes"] = routes ...
3
Javascript
Javascript
fix typo in validatescema.js
4bc647d700c9028cf20823b0975318a1992fe275
<ide><path>lib/validateSchema.js <ide> const DID_YOU_MEAN = { <ide> <ide> const REMOVED = { <ide> concord: <del> "BREAKING CHANGE: resolve.concord has been removed and is no longer avaiable.", <add> "BREAKING CHANGE: resolve.concord has been removed and is no longer available.", <ide> devtoolLineToLine: <del> "BR...
1
Python
Python
fix longformer and led
3f77c26d74e1282955fefa8dfff2451e44f6d4a9
<ide><path>src/transformers/models/led/modeling_tf_led.py <ide> def call( <ide> def compute_hidden_states(self, hidden_states, padding_len): <ide> return hidden_states[:, :-padding_len] if padding_len > 0 else hidden_states <ide> <del> @tf.function <ide> def _pad_to_window_size( <ide> self, ...
3
PHP
PHP
use cache get default value
b6407420475599f997cd0102f588de3a22a1dc7b
<ide><path>src/Illuminate/Session/CacheBasedSessionHandler.php <ide> public function close() <ide> */ <ide> public function read($sessionId) <ide> { <del> return $this->cache->get($sessionId) ?: ''; <add> return $this->cache->get($sessionId, ''); <ide> } <ide> <ide> /** <ide><path>src/Illuminate/Session/Cookie...
2
Go
Go
improve error message for unsupported capabilities
fc3f98848a9f5043ec2b1c9a76b93a04fe1868cf
<ide><path>oci/caps/utils.go <ide> func init() { <ide> allCaps = make([]string, min(int(last+1), len(rawCaps))) <ide> capabilityList = make(Capabilities, min(int(last+1), len(rawCaps))) <ide> for i, c := range rawCaps { <add> capName := "CAP_" + strings.ToUpper(c.String()) <ide> if c > last { <add> capabilityLi...
1
Javascript
Javascript
remove unnecessary arguments
cfbdc178174b24e27001d358bec61962a6e21097
<ide><path>examples/todomvc/test/actions/todos.spec.js <ide> describe('todo actions', () => { <ide> }) <ide> <ide> it('clearCompleted should create CLEAR_COMPLETED action', () => { <del> expect(actions.clearCompleted('Use Redux')).toEqual({ <add> expect(actions.clearCompleted()).toEqual({ <ide> type: t...
1
Text
Text
add changelog entry for constantize - closes
329a5a43227be48b408b702438b355c087fd2866
<ide><path>activesupport/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* `constantize` now looks in the ancestor chain. *Marc-Andre Lafortune & Andrew White* <add> <ide> * `Object#try` can't call private methods. *Vasiliy Ermolovich* <ide> <ide> * `AS::Callbacks#run_callbacks` remove `key` argume...
1
Ruby
Ruby
hide install receipt key names
7266ecd4e3799006d0482708a3331bfac4e1e0d1
<ide><path>Library/Homebrew/cmd/reinstall.rb <ide> def reinstall_formula f <ide> <ide> fi = FormulaInstaller.new(f) <ide> fi.options = options <del> fi.build_bottle = ARGV.build_bottle? <del> fi.build_bottle ||= tab.built_as_bottle && !tab.poured_from_bottle <add> fi.build_bott...
3
Javascript
Javascript
remove duplicate check
7635b7cc27305dbe11112771d6f7c52b3c401db8
<ide><path>lib/_http_server.js <ide> function connectionListenerInternal(server, socket) { <ide> socket._paused = false; <ide> } <ide> <del> <ide> function updateOutgoingData(socket, state, delta) { <ide> state.outgoingData += delta; <del> if (socket._paused && <del> state.outgoingData < socket.writableHighW...
1