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
PHP
PHP
shorten pusher host config
5daa02c70b27212aea4b2e302c4ac5ba65b1e789
<ide><path>config/broadcasting.php <ide> 'secret' => env('PUSHER_APP_SECRET'), <ide> 'app_id' => env('PUSHER_APP_ID'), <ide> 'options' => [ <del> 'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt...
1
Javascript
Javascript
add a service wrapping setinterval
2b5ce84fca7b41fca24707e163ec6af84bc12e83
<ide><path>angularFiles.js <ide> angularFiles = { <ide> 'src/ng/http.js', <ide> 'src/ng/httpBackend.js', <ide> 'src/ng/interpolate.js', <add> 'src/ng/interval.js', <ide> 'src/ng/locale.js', <ide> 'src/ng/location.js', <ide> 'src/ng/log.js', <ide><path>src/AngularPublic.js <ide> function publi...
7
PHP
PHP
use binding key in counter cache
f06c6cff56a39d89e29253d8bd2710842f293fd6
<ide><path>src/ORM/Behavior/CounterCacheBehavior.php <ide> protected function _processAssociations(Event $event, EntityInterface $entity) <ide> protected function _processAssociation(Event $event, EntityInterface $entity, Association $assoc, array $settings) <ide> { <ide> $foreignKeys = (array)$assoc->f...
3
Javascript
Javascript
update compare.js exit method
4b527a4129c00531ff852c78cd20e480120e65bd
<ide><path>benchmark/compare.js <ide> const benchmarks = cli.benchmarks(); <ide> <ide> if (benchmarks.length === 0) { <ide> console.error('no benchmarks found'); <del> process.exit(1); <add> process.exitCode = 1; <add> return; <ide> } <ide> <ide> // Create queue from the benchmarks list such both node versions a...
1
Python
Python
fix bug in testing multiple browsers
0d4be031b98926a27b7a6ceec70ab13e596509ee
<ide><path>test.py <ide> def setUp(manifestFile, masterMode): <ide> assert not os.path.isdir(TMPDIR) <ide> <ide> testBrowsers = [ b for b in <del> ( 'firefox5', ) <del>#'chrome12', 'chrome13', 'firefox4', 'firefox6','opera11' ): <add> ( 'firefox5', 'firefox6', ) <add>#'c...
1
PHP
PHP
add encrypter throws docblock
b6578835c7dfe14bbf2c0b5b32e9c1a3e54e8987
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> public function encrypt($value, $serialize = true) <ide> * <ide> * @param string $value <ide> * @return string <add> * <add> * @throws \Illuminate\Contracts\Encryption\EncryptException <ide> */ <ide> public function encryptString...
1
Javascript
Javascript
fix most lint warnings/errors
315645804133e190e23be954787f5d64144d33d5
<ide><path>src/core/ReactComponent.js <ide> * @providesModule ReactComponent <ide> */ <ide> <add>/*jslint evil: true */ <add> <ide> "use strict"; <ide> <ide> var ReactCurrentOwner = require('ReactCurrentOwner'); <ide> function assignKey(groupingIndex, child, index) { <ide> function tryToReuseArray(children) { <ide>...
23
Python
Python
simplify config use in language.initialize
63d15981377aa207591380ba6eaf816c7696830c
<ide><path>spacy/language.py <ide> from .vocab import Vocab, create_vocab <ide> from .pipe_analysis import validate_attrs, analyze_pipes, print_pipe_analysis <ide> from .training import Example, validate_examples <add>from .training.initialize import init_vocab, init_tok2vec <ide> from .scorer import Scorer <ide> from ...
4
Javascript
Javascript
remove unneeded reference to wrapping resource
943887f5bec93ca8f3849c15965073aad3907790
<ide><path>lib/_http_agent.js <ide> const kOnKeylog = Symbol('onkeylog'); <ide> // ClientRequest.onSocket(). The Agent is now *strictly* <ide> // concerned with managing a connection pool. <ide> <del>const kReusedHandle = Symbol('kReusedHandle'); <ide> class ReusedHandle { <ide> constructor(type, handle) { <ide> ...
1
Ruby
Ruby
add failing test case for issue 796
e106dbf0394b75b41139351b74072d5650d1ef74
<ide><path>activerecord/test/cases/associations/has_many_through_associations_test.rb <ide> def test_primary_key_option_on_source <ide> assert_equal [category.name], post.named_category_ids # checks when target loaded <ide> assert_equal [category.name], post.reload.named_category_ids # checks when target no loa...
1
Javascript
Javascript
enhance plugin notification system
a55c17d73fa7bfa9e2780fce3ea9a7770a11d8d3
<ide><path>src/core/core.plugin.js <ide> <ide> module.exports = function(Chart) { <ide> <del> var helpers = Chart.helpers; <del> var noop = helpers.noop; <add> var noop = Chart.helpers.noop; <ide> <ide> /** <ide> * The plugin service singleton <ide> module.exports = function(Chart) { <ide> }, <ide> <ide> /**...
2
Mixed
Javascript
add polar area start angle setting
a452094f5d1637b99b01bacd06a78b5ab4666cfa
<ide><path>docs/06-Polar-Area-Chart.md <ide> These are the customisation options specific to Polar Area charts. These options <ide> <ide> Name | Type | Default | Description <ide> --- | --- | --- | --- <add>startAngle | Number | -0.5 * Math.PI | Sets the starting angle for the first item in a dataset <ide> scale | Obj...
3
PHP
PHP
add property by default
58bc5273b8cfc559de7804fb294ed5940ea1776e
<ide><path>app/Http/Controllers/Auth/AuthController.php <ide> class AuthController extends Controller <ide> <ide> use AuthenticatesAndRegistersUsers, ThrottlesLogins; <ide> <add> /** <add> * Where to redirect users after login / registration. <add> * <add> * @var string <add> */ <add> protec...
1
Ruby
Ruby
remove unnecessary call
2f66b9a76c955fb5deb16f088986f13dadef6852
<ide><path>activerecord/lib/active_record/relation/calculations.rb <ide> def perform_calculation(operation, column_name, options = {}) <ide> end <ide> <ide> distinct = options[:distinct] || distinct <del> column_name = :all if column_name.blank? && operation == "count" <ide> <ide> if @group_val...
1
PHP
PHP
fix issue with 0.model.field inputs
24fd87398df41f9c4751cc1f1013862a4b59335d
<ide><path>lib/Cake/Test/Case/View/HelperTest.php <ide> public function testSetEntity($entity, $expected) { <ide> */ <ide> public function testSetEntityScoped() { <ide> $this->Helper->setEntity('HelperTestPost', true); <del> $this->assertEquals(array('HelperTestPost'), $this->Helper->entity()); <add> $this->assert...
2
Python
Python
save preliminary work on testing ufuncs
a73ef5ec3a8db5612779abe21c442bb89275ed6c
<ide><path>numpy/core/tests/test_ufunc.py <ide> def check_all_ufunc(self) : <ide> <ide> The list of ufuncs comes from generate_umath.py and is as follows: <ide> <del> add <del> subtract <del> multiply <del> divide <del> floor_divide <del> true_divide <del> conj...
1
Javascript
Javascript
remove redundant blit from afterimagepass
9cf1fe31598e76e58098c3598bf8ff0529f26e63
<ide><path>examples/js/postprocessing/AfterimagePass.js <ide> THREE.AfterimagePass = function ( damp ) { <ide> <ide> this.compFsQuad = new THREE.Pass.FullScreenQuad( this.shaderMaterial ); <ide> <del> var material = new THREE.MeshBasicMaterial( { <del> map: this.textureComp.texture <del> } ); <del> this.screenFsQua...
1
Text
Text
add triaging section to releases.md
a845d7a93d8c41e69afe0fd72abdd0eb9046f321
<ide><path>doc/releases.md <ide> $ git reset --hard upstream/v1.x-staging <ide> ``` <ide> <ide> If the staging branch is not up to date relative to `master`, bring the <del>appropriate commits into it. To determine the relevant commits, use <add>appropriate PRs and commits into it. <add> <add>Go through PRs with the l...
1
Javascript
Javascript
remove trailing space
f20a88fb866917d7dd489b88c233a5e123ff3271
<ide><path>lib/_http_client.js <ide> function emitFreeNT(req) { <ide> if (req.socket) { <ide> req.socket.emit('free'); <ide> } <del> <ide> } <ide> <ide> function tickOnSocket(req, socket) {
1
Java
Java
add interface for reactshadownode
a5d1d25f5616352eaf737f177de700bc1a5ac4b5
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatReactModalShadowNode.java <ide> import android.view.Display; <ide> import android.view.Surface; <ide> import android.view.WindowManager; <del> <del>import com.facebook.react.uimanager.ReactShadowNode; <del>import com.facebook.yoga.YogaValue; <add>import ...
16
Go
Go
use busybox "nc"
6d92d2c7c4e32e840d86cfdfafa0b9bb980ba62c
<ide><path>integration-cli/docker_cli_network_unix_test.go <ide> func (s *DockerNetworkSuite) TestConntrackFlowsLeak(c *testing.T) { <ide> assertNwIsAvailable(c, "testbind") <ide> <ide> // Launch the server, this will remain listening on an exposed port and reply to any request in a ping/pong fashion <del> cmd := "w...
1
Text
Text
change array.reduce to array.prototype.reduce
4155297ffe1d6997c019f679b32f6a302979ba26
<ide><path>docs/recipes/reducers/SplittingReducerLogic.md <ide> These new functions would typically fall into one of three categories: <ide> <ide> For clarity, these terms will be used to distinguish between different types of functions and different use cases: <ide> <del>- ***reducer***: any function with the signat...
1
Text
Text
move the api doc link to the top
ad8867379c803bd976fbc2d43c04c663e798d0d5
<ide><path>official/README.md <ide> being easy to read. <ide> These models are used as end-to-end tests, ensuring that the models run <ide> with the same or improved speed and performance with each new TensorFlow build. <ide> <add>The API documentation of the latest stable release is published to <add>[tensorflow.org]...
1
Javascript
Javascript
permit null as a pfx value
077c75beaecc8f90ab13862beedbaffbcbc66099
<ide><path>lib/internal/tls/secure-context.js <ide> function validateKeyOrCertOption(name, value) { <ide> <ide> function setKey(context, key, passphrase, name) { <ide> validateKeyOrCertOption(`${name}.key`, key); <del> if (passphrase != null) <add> if (passphrase !== undefined && passphrase !== null) <ide> val...
2
Ruby
Ruby
remove redundant to_sym call
726599df984daca45afe5b969c74b416fcd6c11a
<ide><path>activesupport/lib/active_support/ordered_options.rb <ide> def [](key) <ide> <ide> def method_missing(name, *args) <ide> if name.to_s =~ /(.*)=$/ <del> self[$1.to_sym] = args.first <add> self[$1] = args.first <ide> else <ide> self[name] <ide> end
1
Text
Text
update initializer documentation for bar
f32d62722a8b64bc2d198796d8bd64db6c5a3666
<ide><path>docs/03-Bar-Chart.md <ide> It is sometimes used to show trend data, and the comparison of multiple data set <ide> <ide> ### Example usage <ide> ```javascript <del>var myBarChart = new Chart(ctx).Bar({ <del> data: data, <add>var myBarChart = new Chart(ctx,{ <add> type: 'bar', <add> data: data, <ide> option...
1
Javascript
Javascript
fix categoryscale.getvalueforpixel with autoskip
6814b79b65afeeab09d3f03151ec0458be10686f
<ide><path>src/scales/scale.category.js <ide> export default class CategoryScale extends Scale { <ide> <ide> getValueForPixel(pixel) { <ide> const me = this; <del> const value = Math.round(me._startValue + me.getDecimalForPixel(pixel) * me._valueRange); <del> return Math.min(Math.max(value, 0), me.ticks.length - ...
2
Ruby
Ruby
add support for yubikey otp codes during release
8f833513669f9c497c82598fccb96b038eabc4ed
<ide><path>tasks/release.rb <ide> end <ide> <ide> task push: :build do <del> sh "gem push #{gem}" <add> otp = "" <add> begin <add> otp = " --otp " + `ykman oath accounts code -s rubygems.org`.chomp <add> rescue <add> # User doesn't have ykman <add> end <add> <add> sh...
1
Go
Go
fix follow logs for max-file=1
9cd24ba6057fa479918e9bce4e2c0554ec991394
<ide><path>daemon/logger/loggerutils/logfile.go <ide> func compressFile(fileName string, lastTimestamp time.Time) { <ide> compressWriter := gzip.NewWriter(outFile) <ide> defer compressWriter.Close() <ide> <del> // Add the last log entry timestramp to the gzip header <add> // Add the last log entry timestamp to the g...
1
Javascript
Javascript
add note about promise removal
7a8ede6f8086904dbe3fad9817ba3dddb54d3273
<ide><path>src/node.js <ide> var eventsModule = createInternalModule('events', function (exports) { <ide> if (!this._events.hasOwnProperty(type)) this._events[type] = []; <ide> return this._events[type]; <ide> }; <add> <add> exports.Promise = removed('Promise has been removed. See http://groups.google.com/gr...
1
Python
Python
add python notes for rethinking matcher
d34c7326350edc3223ba9327b62d2d764328d11b
<ide><path>spacy/_matcher2_notes.py <add>import pytest <add> <add> <add>class Vocab(object): <add> pass <add> <add> <add>class Doc(list): <add> def __init__(self, vocab, words=None): <add> list.__init__(self) <add> self.extend([Token(i, w) for i, w in enumerate(words)]) <add> <add> <add>class Token(...
1
Text
Text
fix spelling of digitalocean in docs
a281d1a7124b358c1dff7f292b3ea468e27b3167
<ide><path>guides/source/active_storage_overview.md <ide> and `region` keys in the example above. The S3 Service supports all of the <ide> authentication options described in the [AWS SDK documentation] <ide> (https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html). <ide> <del>To connect to an S...
1
Text
Text
clarify componentwillmount behavior
c2d57dff4b3e1183e2b8f4c9226834c645b05321
<ide><path>docs/docs/ref-03-component-specs.md <ide> Various methods are executed at specific points in a component's lifecycle. <ide> componentWillMount() <ide> ``` <ide> <del>Invoked immediately before rendering occurs. If you call `setState` within this method, `render()` will see the updated state and will be exec...
1
Python
Python
add fix for serialization of tokenizer
4f8b5f687cc9a2837bdb19ca0a204f325f6b28e8
<ide><path>pytorch_pretrained_bert/tokenization_xlnet.py <ide> def MASK_ID(self): <ide> def __len__(self): <ide> return len(self.encoder) + len(self.special_tokens) <ide> <add> def __getstate__(self): <add> state = self.__dict__.copy() <add> state["sp_model"] = None <add> return sta...
2
Text
Text
fix typos in gh-pages example readme
d103345aa1e687b8ab904465ad41c45511c6c063
<ide><path>examples/gh-pages/README.md <ide> npm run deploy <ide> <ide> Test it: <ide> <del>Reaplce 'github-user-name' and 'github-projet-name' <add>Replace 'github-user-name' and 'github-project-name' <ide> <ide> ```bash <ide> <del>https://github-user-name.github.io/github-projet-name/ <add>https://github-user-nam...
1
Ruby
Ruby
mutate the transaction object to reflect state
393e65b4170608593ad82377a9eadc918e85698d
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb <ide> module ActiveRecord <ide> module ConnectionAdapters <ide> class TransactionState <del> VALID_STATES = Set.new([:committed, :rolledback, nil]) <add> def finalized?; false; end <add> def committed?; false; e...
1
Text
Text
update example header
c6ba1e536b53c4490a7bd9d2b470f910f7885d3c
<ide><path>examples/custom-json-modules/README.md <ide> owner: <ide> dob: 1979-05-27T07:32:00.000Z <ide> ``` <ide> <del># data.json <add># data.json5 <ide> <ide> ```json5 <ide> { <ide><path>examples/custom-json-modules/template.md <ide> _{{data.toml}}_ <ide> _{{data.yaml}}_ <ide> ``` <ide> <del># data.json <add># ...
2
Python
Python
rename the attributes in the bert layer
d7092d592ca55391b3c07505539b9e4c71bf79de
<ide><path>transformers/modeling_bert.py <ide> def forward(self, hidden_states, input_tensor): <ide> class BertLayer(nn.Module): <ide> def __init__(self, config): <ide> super(BertLayer, self).__init__() <del> self.self_attention = BertAttention(config) <add> self.attention = BertAttention(conf...
1
Text
Text
fix minor typos in net.md
e95acebf3af15c8ac51ff8a38e915cf4efb87036
<ide><path>doc/api/net.md <ide> The number of concurrent connections on the server. <ide> <ide> This becomes `null` when sending a socket to a child with <ide> [`child_process.fork()`][]. To poll forks and get current number of active <del>connections use asynchronous `server.getConnections` instead. <add>connections ...
1
Javascript
Javascript
treat 0 as a valid point label for radial scale
e35b8891ce2144f3ca9a842a316d3dd6ff791027
<ide><path>src/scales/scale.radialLinear.js <ide> function fitWithPointLabels(scale) { <ide> var valueCount = getValueCount(scale); <ide> for (i = 0; i < valueCount; i++) { <ide> pointPosition = scale.getPointPosition(i, scale.drawingArea + 5); <del> textSize = measureLabelSize(scale.ctx, plFont.lineHeight, scale....
2
Java
Java
remove flatui references from fb4a
387a3557ae9e90b3694de5e47f3b8bd62e5f443b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUI.java <del>// Copyright 2004-present Facebook. All Rights Reserved. <del> <del>package com.facebook.react.flat; <del> <del>/** <del> * Holds global flag for enabling nodes. <del> */ <del>public class FlatUI { <del> <del> public static boolean sEnabled...
2
Text
Text
establish github releases as the only change log
d96adf44d2d859ad9cd7bf684e96e3209616cad9
<ide><path>CHANGELOG.md <del># Change log <add># Change Log <ide> <del>All notable changes to this project will be documented in this file. <del>This project adheres to [Semantic Versioning](http://semver.org/). <del> <del>## [3.0.0](https://github.com/rackt/redux/compare/v2.0.0...v3.0.0) - 2015/09/13 <del> <del>### B...
3
Javascript
Javascript
check stderr before accessing it
765de1ae114375648b87da8c27ca1cbd59bbe5ea
<ide><path>lib/child_process.js <ide> function execFileSync(/*command, args, options*/) { <ide> <ide> var ret = spawnSync(opts.file, opts.args.slice(1), opts.options); <ide> <del> if (inheritStderr) <add> if (inheritStderr && ret.stderr) <ide> process.stderr.write(ret.stderr); <ide> <ide> var err = checkEx...
2
Ruby
Ruby
use "resource" not "rsrc"
4a1a8b86ac094621a50eff1526b53f62758ad1be
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> elsif !new_url <ide> odie "#{formula}: no --url= argument specified!" <ide> else <del> rsrc_url = if requested_spec != :devel && new_url =~ /.*ftpmirror.gnu.*/ <add> resource_url = if requested_spec != :devel ...
1
Text
Text
fix errors and expanded content
dfc68943f711e7b89b3043b9a7175fc7f766770d
<ide><path>guide/english/mathematics/irrational-numbers/index.md <ide> title: Irrational Numbers <ide> --- <ide> ## Irrational Numbers <ide> <del>An irrational number is a number that cannot be written as fully on decimal form. A popular example is the number _Pi_, as it cannot be fully written. There are an infinite ...
1
PHP
PHP
add types into $options array
a71aa15df17eaaffe7a6233ab84875cd6065935f
<ide><path>src/Database/Query.php <ide> public function where($conditions = null, $types = [], $overwrite = false) <ide> * query. <ide> * <ide> * This method does allow empty inputs in contrast to where() if you set <del> * $allowEmpty to true. <add> * 'allowEmpty' to true. <ide> * Be carefu...
1
Ruby
Ruby
fix nil assignment to polymorphic belongs_to
01162b3d77b50057791526d29b97c16a891b6048
<ide><path>activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb <ide> def replace_keys(record) <ide> owner[reflection.foreign_type] = record.class.base_class.name <ide> end <ide> <add> def remove_keys <add> super <add> owner[reflection.foreign_typ...
1
Text
Text
add crosshair plugin to extensions page
32aeeac82cdc371b6eb15e0b3442d307e2f36df7
<ide><path>docs/notes/extensions.md <ide> In addition, many charts can be found on the [npm registry](https://www.npmjs.co <ide> <ide> - <a href="https://github.com/chartjs/chartjs-plugin-annotation" target="_blank">chartjs-plugin-annotation</a> - Draws lines and boxes on chart area. <ide> - <a href="https://github....
1
PHP
PHP
fix config item referenced.
3e4f5f4b771fbdc12a10db1694d55c7c91441161
<ide><path>src/Illuminate/Queue/Console/BatchesTableCommand.php <ide> public function __construct(Filesystem $files, Composer $composer) <ide> */ <ide> public function handle() <ide> { <del> $table = $this->laravel['config']['queue.batches.table'] ?? 'job_batches'; <add> $table = $this->larav...
1
PHP
PHP
protect table names and guarded
9240404b22ef6f9e827577b3753e4713ddce7471
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\ForwardsCalls; <ide> use JsonSerializable; <add>use LogicException; <ide> <ide> abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializable, QueueableEntity, UrlRoutable <i...
2
PHP
PHP
allow plugin auto loading
715eba1c717707114143d3c8f7de1e79342ff2ee
<ide><path>src/Command/I18nExtractCommand.php <ide> use Cake\Console\ConsoleIo; <ide> use Cake\Console\ConsoleOptionParser; <ide> use Cake\Core\App; <del>use Cake\Core\Exception\MissingPluginException; <ide> use Cake\Core\Plugin; <ide> use Cake\Filesystem\Filesystem; <ide> use Cake\Utility\Inflector; <ide> public funct...
2
Javascript
Javascript
fix various typos
dc4b914a05e1e6dbf13f916897b5d6a472ea0380
<ide><path>build/tasks/build.js <ide> module.exports = function( grunt ) { <ide> // Check removeWith list <ide> excludeList( removeWith[ module ] ); <ide> } else { <del> grunt.log.error( "Module \"" + module + "\" is a mimimum requirement."); <add> grunt.log.error( "Module \"" + module + "\" ...
3
Javascript
Javascript
add regex to text-crypto-random
5f55faa1a02bf77aa87097ffc7b65437897052e3
<ide><path>test/parallel/test-crypto-random.js <ide> crypto.DEFAULT_ENCODING = 'buffer'; <ide> // bump, we register a lot of exit listeners <ide> process.setMaxListeners(256); <ide> <add>const expectedErrorRegexp = /^TypeError: size must be a number >= 0$/; <ide> [crypto.randomBytes, crypto.pseudoRandomBytes].forEach(...
1
Java
Java
extract imagesource class for sharing
3d4adb8c34f70b93c705b428ccede97846851bf6
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java <ide> public void setLoadHandlersRegistered(ReactImageView view, boolean shouldNotifyL <ide> ImageLoadEvent.eventNameForType(ImageLoadEvent.ON_LOAD), <ide> MapBuilder.of("registrationName", "onLoad"), <ide> I...
3
Go
Go
use json marshal, instead of beam/data
89a15fa235f0aab6dd326a3737260c983f0fc22b
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdImages(args ...string) error { <ide> matchName := cmd.Arg(0) <ide> // FIXME: --viz and --tree are deprecated. Remove them in a future version. <ide> if *flViz || *flTree { <add> filterJson, err := filters.ToParam(imageFilterArgs) <add> if err != nil ...
3
Ruby
Ruby
remove md5 output
239217e9440c923560416454615ee6104631c06d
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> next unless the_tarball.kind_of? Pathname <ide> <ide> puts "Downloaded to: #{the_tarball}" unless already_downloaded <del> puts "MD5: #{the_tarball.md5}" <ide> puts "SHA1: #{the_tarball.sha1}" <ide> puts "SHA256: #{the_tarball...
1
Ruby
Ruby
remove unnecessary require 'core_ext/numeric/time'
82cb5f37aa3ec9ab2884380e27133ee151a005b9
<ide><path>activesupport/lib/active_support/core_ext/integer/time.rb <ide> # frozen_string_literal: true <ide> <ide> require "active_support/duration" <del>require "active_support/core_ext/numeric/time" <ide> <ide> class Integer <ide> # Returns a Duration instance matching the number of months provided.
1
PHP
PHP
remove extra line
5d8af6099e4fc4800ba21d1f3ef6a16087257895
<ide><path>app/Http/routes.php <ide> | <ide> | These two controllers handle the authentication of the users of your <ide> | application, as well as the functions necessary for resetting the <del>| passwords for your users. You may modify or remove these files <del>| if you wish. They just give you a convenient starting...
1
Text
Text
use code markup/markdown in headers
257a5dd46d1c11787264e8d2c419d6ad5c056b55
<ide><path>doc/api/vm.md <ide> console.log(context.y); // 17 <ide> console.log(x); // 1; y is not defined. <ide> ``` <ide> <del>## Class: vm.Script <add>## Class: `vm.Script` <ide> <!-- YAML <ide> added: v0.3.1 <ide> --> <ide> <ide> Instances of the `vm.Script` class contain precompiled scripts that can be <ide> exec...
1
Ruby
Ruby
add resource placement test
c6e0c9538fdb2a5463bcb28eaa5586cebcb9000b
<ide><path>Library/Homebrew/test/test_cmd_audit.rb <ide> class Foo < Formula <ide> fa.problems <ide> end <ide> <add> def test_audit_file_strict_resource_placement <add> fa = formula_auditor "foo", <<-EOS.undent, :strict => true <add> class Foo < Formula <add> url "https://example.com/foo-1.0.tg...
1
Text
Text
add note about squashing in contributor guide
c980af66ece4c6e06c3352b564da7a1530b1fb94
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> Now you need to get other people to look at your patch, just as you've looked at <ide> <ide> It’s entirely possible that the feedback you get will suggest changes. Don’t get discouraged: the whole point of contributing to an active open source project is ...
1
Ruby
Ruby
reduce method calls
e4591489d13a27e2f905988be02a7d48fb7a0664
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def default_controller_and_action(to_shorthand=nil) <ide> raise ArgumentError, "missing :action" <ide> end <ide> <del> { :controller => controller, :action => action }.tap do |hash| <del> hash.de...
1
Javascript
Javascript
improve errors for duplicate items
0604bb7b7a6156e33679396e805e327662d9a178
<ide><path>src/ng/directive/ngRepeat.js <ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) { <ide> forEach(nextBlockOrder, function (block) { <ide> if (block && block.scope) lastBlockMap[block.id] = block; <ide> }); <del> throw ngRepe...
2
Text
Text
make minor fixes to contributing guides
013f20cbbc0915916b9eb8733ac19bd30497b7b3
<ide><path>doc/contributing/maintaining-the-build-files.md <ide> There are three main build files that may be directly run when building Node.js: <ide> create platform-dependent build files. Its output is usually in one of these <ide> formats: Makefile, MSbuild, ninja, or XCode project files (the main <ide> Makef...
2
Text
Text
remove title from chinese chals
4a74567986d8de748f954e8957adc7613e85193f
<ide><path>curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.md <ide> --- <ide> id: 587d774c367417b2b2512a9c <del>title: Add a Text Alternative to Images for Visually Impaired Accessibility <ide> challengeType: 0 <ide> video...
300
Text
Text
use code markup/markdown in headers
36edbde2784e5334cd8e6c3bc0e8f68a53ad2b5e
<ide><path>doc/api/events.md <ide> The `'error'` events that are generated by the `captureRejections` behavior <ide> do not have a catch handler to avoid infinite error loops: the <ide> recommendation is to **not use `async` functions as `'error'` event handlers**. <ide> <del>## Class: EventEmitter <add>## Class: `Eve...
1
Go
Go
fix bad rebase
3f6324f0e8e1b4d117a5d22f752e1d5980eea939
<ide><path>server.go <ide> func (srv *Server) DeleteImage(name string, imgs *engine.Table, first, force boo <ide> tags = append(tags, tag) <ide> } <ide> <add> if !first && len(tags) > 0 { <add> return nil <add> } <add> <ide> //Untag the current image <ide> for _, tag := range tags { <ide> tagDeleted, err := sr...
1
Go
Go
remove unused requirements utils
c887b09abc7d4ae149a9c314f74f9c351ac4cba2
<ide><path>integration-cli/requirements_unix_test.go <ide> func bridgeNfIptables() bool { <ide> return !SysInfo.BridgeNFCallIPTablesDisabled <ide> } <ide> <del>func bridgeNfIP6tables() bool { <del> return !SysInfo.BridgeNFCallIP6TablesDisabled <del>} <del> <ide> func unprivilegedUsernsClone() bool { <ide> content, e...
1
Go
Go
prevent race between add-binding and net-delete
0b14b45f0c8df4378fdcd1cbd84b9bc046e268d6
<ide><path>libnetwork/service_common.go <ide> func makeServiceCleanupFunc(c *controller, s *service, nID, eID string, vip net. <ide> func (c *controller) addServiceBinding(svcName, svcID, nID, eID, containerName string, vip net.IP, ingressPorts []*PortConfig, serviceAliases, taskAliases []string, ip net.IP, method stri...
1
Text
Text
add my changes to recursion .
1391626232adfb43798f04ab4fb97735386054a6
<ide><path>guide/english/c/functions/index.md <ide> int divides(int a, int b) { <ide> <ide> ``` <ide> <add>NOTE: In recurssion a base codition is mandatory. Otherwise the function executes infinitely.There can be more than one base condition In the above case the bese conditions are if(n<0) and if(n==0) . <add> <ide>...
1
Python
Python
fix a parameter type in the `putmask` docs
57adb4bb6a8eb46fed597d4a781e47bcb86ebe11
<ide><path>numpy/core/multiarray.py <ide> def putmask(a, mask, values): <ide> <ide> Parameters <ide> ---------- <del> a : array_like <add> a : ndarray <ide> Target array. <ide> mask : array_like <ide> Boolean mask array. It has to be the same shape as `a`.
1
PHP
PHP
fix types in docblocks in app class
8b9770d34dd402019245389c062acf850f4323e0
<ide><path>lib/Cake/Core/App.php <ide> class App { <ide> * <ide> * @param string $type type of path <ide> * @param string $plugin name of plugin <del> * @return string array <add> * @return array <ide> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/app.html#App::path <ide> */ <ide> public static fu...
1
PHP
PHP
revert recent changes to key generate
64b2015f3156ad67fbd4b006efc3b629ec41b989
<ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php <ide> public function fire() <ide> */ <ide> protected function setKeyInEnvironmentFile($key) <ide> { <del> $originalEnvContent = file_get_contents($this->laravel->environmentFilePath()); <del> <del> $newEnvContent = preg_repl...
1
PHP
PHP
fix a styling issue
40d3ba829988fbc0389be8e20952f5acecd2d94e
<ide><path>tests/Database/DatabaseSchemaBlueprintIntegrationTest.php <ide> public function testChangingColumnWithCollationWorks() <ide> $this->db->connection()->getSchemaBuilder()->create('users', function ($table) { <ide> $table->string('age'); <ide> }); <add> <ide> $blueprint = new...
1
PHP
PHP
update optimize configuration
dbc4dbcac06bbfabcd44bd4c34d210a9fb302e5a
<ide><path>src/Illuminate/Foundation/Console/Optimize/config.php <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php', <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Router.php', <ide> $basePath.'/vendor/symfony/routing/Symfony/Component/Routing/RouteCol...
2
Python
Python
fix _dotblas usage on py3 (fixes )
3843e86ee3862103364b6aae2a0af8bd4ebdc986
<ide><path>numpy/core/tests/test_blasdot.py <ide> from numpy.core import zeros, float64 <del>from numpy.testing import TestCase, assert_almost_equal <add>from numpy.testing import dec, TestCase, assert_almost_equal, assert_ <ide> from numpy.core.multiarray import inner as inner_ <ide> <ide> DECPREC = 14 <ide> def test...
2
Python
Python
assert run_as_user in test_localtaskjob_heartbeat
0f0dbdceb7b14800b70e0b3e00d6ef7941e83275
<ide><path>tests/jobs/test_local_task_job.py <ide> def test_localtaskjob_heartbeat(self, dag_maker): <ide> session.merge(ti) <ide> session.commit() <ide> assert ti.pid != os.getpid() <add> assert not ti.run_as_user <add> assert not job1.task_runner.run_as_user <ide> job1.he...
1
Text
Text
fix some links
0ac6ced2e9e09fdfe4b5c9aec8fb9a3f570f63e7
<ide><path>doc/api/fs.md <ide> The following constants are meant for use with the [`fs.Stats`][] object's <ide> [`fs.access()`]: #fs_fs_access_path_mode_callback <ide> [`fs.chmod()`]: #fs_fs_chmod_path_mode_callback <ide> [`fs.chown()`]: #fs_fs_chown_path_uid_gid_callback <add>[`fs.copyFile()`]: #fs_fs_copyfile_src_des...
2
Python
Python
add tokenizer exception for 'ph.d.', to fix 592
41a90a7fbb7927f4d0c5a5d22f9669cb91e87347
<ide><path>spacy/en/language_data.py <ide> <ide> <ide> TOKENIZER_EXCEPTIONS = { <add> "Ph.D.": [ <add> { <add> "F": "Ph.D." <add> }], <ide> "d.": [ <ide> { <ide> "F": "d."
1
Javascript
Javascript
make refreshcontrol properly controlled by js
9aa37e8fb2e58a987927356c3562497e4b2b02b6
<ide><path>Libraries/Components/RefreshControl/RefreshControl.js <ide> const RefreshControl = React.createClass({ <ide> /** <ide> * Whether the view should be indicating an active refresh. <ide> */ <del> refreshing: React.PropTypes.bool, <add> refreshing: React.PropTypes.bool.isRequired, <ide> /...
1
Ruby
Ruby
add config to check arguments to unsafe ar methods
f989b341eccc6a86fd1ddfff7f1441920855c84e
<ide><path>activerecord/lib/active_record/attribute_methods.rb <ide> def attribute_names <ide> end <ide> end <ide> <add> # Can the given name be treated as a column name? Returns true if name <add> # is attribute or attribute alias. <add> # <add> # class Person < ActiveRecord::Base ...
6
Java
Java
remove redundant interface declarations
73a57dd1064bbfc44a7af7a7461f5613fc52393c
<ide><path>src/main/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableBufferExactBoundary.java <ide> protected void subscribeActual(Subscriber<? super U> s) { <ide> } <ide> <ide> static final class BufferExactBoundarySubscriber<T, U extends Collection<? super T>, B> <del> extends QueueDrainSubsc...
7
Ruby
Ruby
check plist placement
149334d88d18472dc218ab42791f90c19f53e838
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_file <ide> [/^ (go_)?resource/, "resource"], <ide> [/^ def install/, "install method"], <ide> [/^ def caveats/, "caveats method"], <add> [/^ (plist_options|def plist)/, "plist block...
1
Javascript
Javascript
unify branches in clonefiber
9eba80825f0931794e4553db1806e78de3a218de
<ide><path>src/renderers/shared/fiber/ReactFiber.js <ide> exports.cloneFiber = function(fiber : Fiber, priorityLevel : PriorityLevel) : Fi <ide> // extra memory if needed. <ide> let alt = fiber.alternate; <ide> if (alt) { <del> alt.stateNode = fiber.stateNode; <del> alt.sibling = fiber.sibling; // This shou...
1
PHP
PHP
improve token verification description
d9f3ed4fce9e299459192a95bbe49b7d84e41bdd
<ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php <ide> public function createToken(): string <ide> } <ide> <ide> /** <del> * Verify CSRF token. <add> * Verify that CSRF token was originally generated by the receiving application. <ide> * <ide> * @param string $token The CSRF token....
1
Javascript
Javascript
pass correct props to camper component
77e71210285e15091811f0cb93875c75c2d02ada
<ide><path>client/src/components/profile/Profile.js <ide> function Profile({ user, isSessionUser }) { <ide> <Grid> <ide> {isSessionUser ? renderSettingsButton() : null} <ide> <Camper <del> about={showAbout && about} <add> about={showAbout ? about : null} <ide> githubPro...
1
Javascript
Javascript
use bindcontextcache more often
8509a225e9ab7dcfbabe44f45a79897d3541d48f
<ide><path>lib/RecordIdsPlugin.js <ide> class RecordIdsPlugin { <ide> */ <ide> apply(compiler) { <ide> const portableIds = this.options.portableIds; <add> <add> const makePathsRelative = identifierUtils.makePathsRelative.bindContextCache( <add> compiler.context, <add> compiler.root <add> ); <add> <add> /** ...
4
Python
Python
set version to 2.0.13.dev3
40f228c2f2da521a51698e924f54c140b4f3e577
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.13.dev2' <add>__version__ = '2.0.13.dev3' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'ht...
1
Ruby
Ruby
define inspect on option and options
92857a7bd8737b7dd30941d8aaef27023e7efb8a
<ide><path>Library/Homebrew/options.rb <ide> def hash <ide> name.hash <ide> end <ide> <add> def inspect <add> "#<#{self.class}: #{flag.inspect}>" <add> end <add> <ide> private <ide> <ide> def split_name(name) <ide> def to_a <ide> end <ide> alias_method :to_ary, :to_a <ide> <add> def inspect <add>...
1
Text
Text
add https links, improve style
6b57198cb42dc69bba57413ca71686d80e3e36fa
<ide><path>README.md <ide> synchronizes data from your UI (view) with your JavaScript objects (model) throu <ide> binding. To help you structure your application better and make it easy to test, AngularJS teaches <ide> the browser how to do dependency injection and inversion of control. <ide> <del>Oh yeah and it helps...
1
Javascript
Javascript
fix bugs with css3 animation event in webkit
e010a2d90beb44b7d6751098eed512b61d3a42f2
<ide><path>src/addons/transitions/ReactTransitionEvents.js <ide> var ExecutionEnvironment = require('ExecutionEnvironment'); <ide> <ide> var EVENT_NAME_MAP = { <del> 'transition': ['animationend', 'transitionend'], <del> 'WebkitTransition': ['webkitAnimationEnd', 'webkitTransitionEnd'], <del> 'MozTransition': ['moz...
2
PHP
PHP
remove use of cache constant in cache package
e2b5e62544d46991c9d360f24119ed4e7d92312d
<ide><path>src/Cache/Engine/FileEngine.php <ide> class FileEngine extends CacheEngine { <ide> * - `isWindows` Automatically populated with whether the host is windows or not <ide> * - `lock` Used by FileCache. Should files be locked before writing to them? <ide> * - `mask` The mask used for created files <del> * - `...
1
Javascript
Javascript
fix simple typo, existant -> existent
e8c6e191410b05c496637768301debdcb7669c65
<ide><path>test/specs/requests.spec.js <ide> describe('requests', function () { <ide> }); <ide> <ide> it('should reject on network errors', function (done) { <del> // disable jasmine.Ajax since we're hitting a non-existant server anyway <add> // disable jasmine.Ajax since we're hitting a non-existent server ...
1
Text
Text
fix image not displaying
13972216784092eb62541e98c76e9d98f8db90f4
<ide><path>CONTRIBUTING.md <ide> Atom is a large open source project &mdash; it's made up of over [200 repositori <ide> Atom is intentionally very modular. Nearly every non-editor UI element you interact with comes from a package, even fundamental things like tabs and the status-bar. These packages are packages in the ...
1
Ruby
Ruby
fix strong parameters docs
9fb4803016fbc2108b9446b441dc40d8189c9cfb
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> class Parameters < ActiveSupport::HashWithIndifferentAccess <ide> # Also, sets the +permitted+ attribute to the default value of <ide> # <tt>ActionController::Parameters.permit_all_parameters</tt>. <ide> # <del> # class Person...
1
Text
Text
update installation instructions in readme
4e63c907205d642ed04cba4eb95731b24e1db2c1
<ide><path>README.md <ide> Choose the right framework for every part of a model's lifetime <ide> <ide> ## Installation <ide> <del>This repo is tested on Python 2.7 and 3.5+ (examples are tested only on python 3.5+) and PyTorch 1.0.0+ <add>This repo is tested on Python 2.7 and 3.5+ (examples are tested only on python ...
1
Python
Python
enable sphinx.ext.doctest extension
fb16e71b5e745d8681a3e7d6cb2e6ee98ee7b79e
<ide><path>doc/source/conf.py <ide> <ide> extensions = ['sphinx.ext.autodoc', 'sphinx.ext.pngmath', 'numpydoc', <ide> 'sphinx.ext.intersphinx', 'sphinx.ext.coverage', <add> 'sphinx.ext.doctest', <ide> 'plot_directive'] <ide> <ide> if sphinx.__version__ >= "0.7":
1
Java
Java
use @safevarargs in jackson builder and factory
a142d21700a51c95656115bb2cdbd242cff62cb7
<ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilder.java <ide> public Jackson2ObjectMapperBuilder modulesToInstall(Module... modules) { <ide> * @see #modulesToInstall(Module...) <ide> * @see com.fasterxml.jackson.databind.Module <ide> */ <del> @SuppressWarnings(...
4
Mixed
Javascript
add debug and debuglog.enabled
bcfb1762a3e613e71ac68ab8a6420e2f33c0f603
<ide><path>doc/api/util.md <ide> let debuglog = util.debuglog('internals', (debug) => { <ide> }); <ide> ``` <ide> <add>### `debuglog().enabled` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* {boolean} <add> <add>The `util.debuglog().enabled` getter is used to create a test that can be used <add>in conditio...
4
Javascript
Javascript
add radius to spherical coordinate class
a9867fe4ad5805c4a7ccb461d52022667705ea81
<ide><path>examples/js/controls/EditorControls.js <ide> THREE.EditorControls = function ( object, domElement ) { <ide> <ide> vector.copy( object.position ).sub( center ); <ide> <del> var spherical = new THREE.Spherical().fromDirection( vector ); <add> var spherical = new THREE.Spherical().fromVector3( vector ); <...
3