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
Ruby
Ruby
use a semaphore to signal message availability
604fd2cb227d92bed1b738e71feb4ff5360f4491
<ide><path>actioncable/test/client_test.rb <ide> def initialize(port) <ide> @ws = Faye::WebSocket::Client.new("ws://127.0.0.1:#{port}/") <ide> @messages = Queue.new <ide> @closed = Concurrent::Event.new <del> @has_messages = Concurrent::Event.new <add> @has_messages = Concurrent::Semaphore.n...
1
PHP
PHP
fix incorrect doc block in cakesession
ba02cf7a9a60a79b107c884e06656984de3e1507
<ide><path>lib/Cake/Model/Datasource/CakeSession.php <ide> class CakeSession { <ide> <ide> /** <ide> * Number of requests that can occur during a session time without the session being renewed. <del> * This feature is only used when `Session.harden` is set to true. <add> * This feature is only used when `Session.auto...
1
Python
Python
evaluate content at function start
66fa40c300b4d3e768b4a7993f020056c44fdda3
<ide><path>rest_framework/utils/formatting.py <ide> def dedent(content): <ide> as it fails to dedent multiline docstrings that include <ide> unindented text on the initial line. <ide> """ <add> content = unicode(content) <ide> whitespace_counts = [len(line) - len(line.lstrip(' ')) <ide> ...
1
Python
Python
fix minor typos
108d01a0a4eea38ed5b8e88de34ee2d0324fec65
<ide><path>doc/summarize.py <ide> <ide> import os, glob, re, sys, inspect, optparse <ide> try: <del> # Accessing collections abstact classes from collections <add> # Accessing collections abstract classes from collections <ide> # has been deprecated since Python 3.3 <ide> import collections.abc as collec...
10
Javascript
Javascript
simplify field flag handling
375229d6b9fd6368fb3d216e80a05a130fbd6f02
<ide><path>src/core/annotation.js <ide> var WidgetAnnotation = (function WidgetAnnotationClosure() { <ide> * <ide> * @public <ide> * @memberof WidgetAnnotation <del> * @param {number} flag - Bit position, numbered from one instead of <del> * zero, to check <add> * @para...
3
Text
Text
remove inaccessible fields from anon test
315bfb07f13b5f56474bc453bff03e39053fa573
<ide><path>curriculum/challenges/english/09-information-security/information-security-projects/anonymous-message-board.md <ide> async (getUserInput) => { <ide> assert.isNotNull(parsed[0]._id); <ide> assert.equal(new Date(parsed[0].created_on).toDateString(), date.toDateString()); <ide> assert.equal(pa...
1
Javascript
Javascript
wrap empty string test in try catch
47dab76b58c01227de72bf99c1df3062d21e550a
<ide><path>test/moment/is_valid.js <ide> exports.is_valid = { <ide> test.equal(moment("null", "X").isValid(), false, 'string null'); <ide> test.equal(moment([], "X").isValid(), false, 'array'); <ide> test.equal(moment("{}", "X").isValid(), false, 'object'); <del> test.equal(moment("", "X"...
1
Javascript
Javascript
add babel-node to seed
e17b838c800ce98de7e853ae8595107d45f6208d
<ide><path>seed/index.js <ide> /* eslint-disable no-process-exit */ <add>require('babel/register'); <ide> require('dotenv').load(); <ide> var fs = require('fs'), <ide> path = require('path'),
1
PHP
PHP
fix more typehint issues
d8f81dc6d892a400de8faccedc48f00d7f464b19
<ide><path>src/TestSuite/Stub/ConsoleOutput.php <ide> class ConsoleOutput extends ConsoleOutputBase <ide> * @param int $newlines Number of newlines to append <ide> * @return void <ide> */ <del> public function write($message, $newlines = 1) <add> public function write($message, int $newlines = 1) <...
3
PHP
PHP
add actiondispatcher to new http lib
71623f576daf2c7de8daddac2aac0a4ed61c6df9
<ide><path>src/Http/ActionDispatcher.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please s...
3
PHP
PHP
add controller and controller_action to route
21a51b7cf95fc02b327d65afa0fbba1387800c0e
<ide><path>laravel/routing/controller.php <ide> public static function call($destination, $parameters = array()) <ide> // improve speed since the bundle is not loaded on every request. <ide> Bundle::start($bundle); <ide> <del> list($controller_name, $method) = explode('@', $destination); <add> list($name, $metho...
2
Ruby
Ruby
consider missing links to cellar
8634f19107d98e56fa12165e92800a2120e9b13e
<ide><path>Library/Homebrew/linkage_checker.rb <ide> def check_undeclared_deps <ide> end <ide> missing = [] <ide> @broken_dylibs.each do |str| <del> next unless str.start_with? "#{HOMEBREW_PREFIX}/opt" <del> missing << str.sub("#{HOMEBREW_PREFIX}/opt/", "").split("/")[0] <add> next unless str...
1
PHP
PHP
allow string in some builder param types
6690c2c0f1887475712569cbe902e93be12ccb1a
<ide><path>src/Illuminate/Database/Concerns/BuildsQueries.php <ide> public function eachById(callable $callback, $count = 1000, $column = null, $ali <ide> /** <ide> * Execute the query and get the first result. <ide> * <del> * @param array $columns <add> * @param array|string $columns <ide> ...
2
Javascript
Javascript
minize flash state
6c5a13f053b5f9856fcd13958037af88a095a31b
<ide><path>common/app/Flash/redux/index.js <ide> export const alertTypes = _.keyBy(_.identity)([ <ide> 'warning', <ide> 'danger' <ide> ]); <del>export const normalizeAlertType = _.get(alertTypes, 'info'); <add>export const normalizeAlertType = alertType => alertTypes[alertType] || 'info'; <ide> <ide> export const ...
1
Text
Text
add tests and solution
4a9559ad98e95514eeffdf9413a108e899668031
<ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-79-passcode-derivation.md <ide> dashedName: problem-79-passcode-derivation <ide> <ide> # --description-- <ide> <del>A common security method used for online banking is to ask the user for three random characters from a passcode. F...
1
Javascript
Javascript
fix unmount crash when using sticky headers
7005f54ab5f0b15326ff61d706abae93df2f5a56
<ide><path>Libraries/CustomComponents/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<OptionalProps, Props, State> { <ide> index={ii} <ide> item={item} <ide> key={key} <del> onLayout={this._onCellLayout} <add> onCellLayout={this._onCellLay...
1
PHP
PHP
make missingrouteexception a 404
8be90f58b6e19576b00ae4f5af4f05e9b10d3667
<ide><path>src/Routing/Error/MissingRouteException.php <ide> */ <ide> class MissingRouteException extends Exception { <ide> <add>/** <add> * {@inheritDoc} <add> */ <ide> protected $_messageTemplate = 'A route matching "%s" could not be found.'; <ide> <add>/** <add> * {@inheritDoc} <add> */ <add> public function __c...
1
Javascript
Javascript
bring the stub atomwindow up to date
db2f8302bf025f4e20e0232138fafd2581d74069
<ide><path>spec/main-process/atom-application.new.test.js <ide> class StubWindow extends EventEmitter { <ide> this._position = {x, y} <ide> } <ide> <del> hasProjectPath () { <add> hasProjectPaths () { <ide> return this._rootPaths.size > 0 <ide> } <ide> <del> containsPaths (paths) { <del> return path...
1
Java
Java
add marble diagrams to a few single.doonx methods.
fbba23e3dfa99e195ceda68cd7fef7bfc41fccc6
<ide><path>src/main/java/io/reactivex/Single.java <ide> public final Single<T> doAfterTerminate(Action onAfterTerminate) { <ide> * is executed once per subscription. <ide> * <p>Note that the {@code onFinally} action is shared between subscriptions and as such <ide> * should be thread-safe. <add> * <p...
1
PHP
PHP
add support for engines to blueprint
d43d866448c3b360e21f575182fd305470c62918
<ide><path>src/Illuminate/Database/Schema/Blueprint.php <ide> class Blueprint { <ide> */ <ide> protected $commands = array(); <ide> <add> /** <add> * The storage engine that should be used for the table. <add> * <add> * @var string <add> */ <add> protected $engine; <add> <ide> /** <ide> * Create a new schema...
2
Python
Python
add test for #600 fix
0dbf6c323e2bf49fd8a6c31b805807c92a983650
<ide><path>numpy/core/tests/test_regression.py <ide> def rs(): <ide> x |= y <ide> self.failUnlessRaises(TypeError,rs) <ide> <add> def check_unicode_scalar(self, level=rlevel): <add> """Ticket #600""" <add> import cPickle <add> x = N.array(["DROND", "DROND1"], dtype="U6") <ad...
1
Java
Java
use computeifabsent in resourcebundlemessagesource
311b3338145038ea92c693bb2a8babec9580deda
<ide><path>spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); ...
1
Python
Python
avoid unneeded call in masked array std method
65ed5ebfeac3fb6ff8896bf624e1e08113901b76
<ide><path>numpy/ma/core.py <ide> def std(self, axis=None, dtype=None, out=None, ddof=0): <ide> "" <ide> dvar = self.var(axis=axis, dtype=dtype, out=out, ddof=ddof) <ide> if dvar is not masked: <del> dvar = sqrt(dvar) <ide> if out is not None: <ide> np.powe...
1
Javascript
Javascript
fix the example
b94fb5c8c1a96dae771fa36814ed7e2d54c73b8a
<ide><path>src/ngResource/resource.js <ide> }); <ide> <ide> // We can retrieve a collection from the server <del> var cards = CreditCard.query(); <del> // GET: /user/123/card <del> // server returns: [ {id:456, number:'1234', name:'Smith'} ]; <del> <del> var card = cards[0]; <del> // eac...
1
PHP
PHP
fix psalm errors
6f352d5cd842bd36c1b58575780c8b854df2aaa3
<ide><path>src/TestSuite/Fixture/TestFixture.php <ide> class TestFixture implements ConstraintsInterface, FixtureInterface, TableSchema <ide> /** <ide> * Instantiate the fixture. <ide> * <del> * @throws \Cake\Core\Exception\Exception on invalid datasource usage. <add> * @throws \Cake\Core\Exceptio...
1
Python
Python
simplify computation of npy format headers
340cf9875b911ba858fe6e99147ed29f5e7f0df3
<ide><path>numpy/lib/format.py <ide> <ide> # difference between version 1.0 and 2.0 is a 4 byte (I) header length <ide> # instead of 2 bytes (H) allowing storage of large structured arrays <add>_header_size_formats = { <add> (1, 0): '<H', <add> (2, 0): '<I', <add>} <add> <ide> <ide> def _check_version(version):...
1
Ruby
Ruby
fix weird comment. [ci skip]
eeed9d59b2f1a792f1f1760255921e39d10720db
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def handle_options(options) #:nodoc: <ide> end <ide> end <ide> <del> # Sets the cookie named +name+. The second argument may be the very cookie <del> # value, or a hash of options as documented above. <add> # Sets the co...
1
Python
Python
use pytest.param in pytest.mark.parametrized
37cc115d30dc17cf474a6eff04aad056cb6adef4
<ide><path>tests/models/test_taskinstance.py <ide> import pendulum <ide> import pytest <ide> from freezegun import freeze_time <del>from parameterized import param <ide> from sqlalchemy.orm.session import Session <ide> <ide> from airflow import models, settings <ide> def get_test_ti(session, execution_date: pendulum.D...
1
Python
Python
fix an infallible test of triggerer job
ff99a379da56f6439a43c963ec2c651ef5546364
<ide><path>tests/jobs/test_triggerer_job.py <ide> def test_capacity_decode(): <ide> ] <ide> for input_str in variants: <ide> job = TriggererJob(capacity=input_str) <del> assert job.capacity == input_str or 1000 <add> assert job.capacity == input_str or job.capacity == 1000 <ide> <ide> ...
1
Ruby
Ruby
serialize regexp into html attribute
d2e07395b3cbb6fb184797335bf0c1fa6edb5f38
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> def tag_option(key, value, escape) <ide> when Array, Hash <ide> value = TagHelper.build_tag_values(value) if key.to_s == "class" <ide> value = escape ? safe_join(value, " ") : value.join(" ") <add> when Regexp <...
2
Javascript
Javascript
specify options.name in validatekeycert
e10cb7fdda85bdf3204ae40843d64e56cf07e5a8
<ide><path>lib/_tls_common.js <ide> function SecureContext(secureProtocol, secureOptions, context) { <ide> if (secureOptions) this.context.setOptions(secureOptions); <ide> } <ide> <del>function validateKeyCert(value, type) { <add>function validateKeyCert(name, value) { <ide> if (typeof value !== 'string' && !isArr...
3
Ruby
Ruby
pull iterator allocation in to a factory method
6539657a3c7bb205e9c0812d6c73a2326699ec52
<ide><path>actionview/lib/action_view/renderer/partial_renderer.rb <ide> def render(context, options, block) <ide> end <ide> <ide> private <add> def build_collection_iterator(collection, path, as, context) <add> if path <add> SameCollectionIterator.new(collection, path, retrieve_variable(p...
1
Python
Python
add salesforce_default to list connection
6d69dd062f079a8fbf72563fd218017208bfe6c1
<ide><path>airflow/utils/db.py <ide> def create_default_connections(session: Session = NEW_SESSION): <ide> ), <ide> session, <ide> ) <add> merge_conn( <add> Connection( <add> conn_id="salesforce_default", <add> conn_type="salesforce", <add> login="username"...
1
Text
Text
add watchman permission errors
750c633940c026b66ae4e947d9731c435d72b12d
<ide><path>docs/Troubleshooting.md <ide> If you are using a non-QWERTY/AZERTY keyboard layout you can use the `Hardware > <ide> <ide> Something is probably already running on port 8081. You can either kill it or try to change which port the packager is listening to. <ide> <del>### Kill process on port 8081 <add>#####...
1
Javascript
Javascript
move wpo to the minify step
f546dc3790edd4e0b310caccdc273f31a717258c
<ide><path>packager/react-packager/src/Bundler/Bundle.js <ide> class Bundle { <ide> } <ide> <ide> this._source = _.pluck(this._modules, 'code').join('\n'); <del> <del> if (dev) { <del> return this._source; <del> } <del> <del> const wpoActivity = Activity.startEvent('Whole Program Optimisations');...
1
Ruby
Ruby
remove order_clauses since we do not use it
55c0071ce3685a78b4f039be24b2ab40b8779467
<ide><path>lib/arel/select_manager.rb <ide> def join_sql <ide> Nodes::SqlLiteral.new sql <ide> end <ide> <del> def order_clauses <del> visitor = Visitors::OrderClauses.new(@engine.connection) <del> visitor.accept(@ast).map { |x| <del> Nodes::SqlLiteral.new x <del> } <del> end <del...
4
Python
Python
remove legacy monkeypatching of gzipfile
7d6aa8c721d5274ac57d0c87685d472cb1fd7948
<ide><path>numpy/lib/npyio.py <ide> ] <ide> <ide> <del>def seek_gzip_factory(f): <del> """Use this factory to produce the class so that we can do a lazy <del> import on gzip. <del> <del> """ <del> import gzip <del> <del> class GzipFile(gzip.GzipFile): <del> <del> def seek(self, offset, whenc...
1
Text
Text
add callback parameters of worker.terminate()
ab6ddc063469efd55c8b9f51a46b0f9d99369914
<ide><path>doc/api/worker_threads.md <ide> added: v10.5.0 <ide> --> <ide> <ide> * `callback` {Function} <add> * `err` {Error} <add> * `exitCode` {integer} <ide> <ide> Stop all JavaScript execution in the worker thread as soon as possible. <ide> `callback` is an optional function that is invoked once this operation ...
1
Text
Text
add cpuset and examples to run.md
a5cbb5c3aec0d5c717581b2b60b9ae89b2c6fd05
<ide><path>docs/sources/reference/run.md <ide> Note: <ide> <ide> You would have to write policy defining a `svirt_apache_t` type. <ide> <del>## Runtime constraints on CPU and memory <add>## Runtime constraints on resources <ide> <ide> The operator can also adjust the performance parameters of the <ide> container: <i...
1
Text
Text
use relative path for example
5c6c3851006a2fd43a8ec9518c1be7f723bbf2e3
<ide><path>docs/basic-features/eslint.md <ide> If you're using `eslint-plugin-next` in a project where Next.js isn't installed <ide> "extends": "next", <ide> "settings": { <ide> "next": { <del> "rootDir": "/packages/my-app/" <add> "rootDir": "packages/my-app/" <ide> } <ide> } <ide> } <ide> ``` <...
2
Python
Python
add fallback path for apex used in modeling.py
3b0a14b7614d5a1741dbd5288f6ab1e38d4a3103
<ide><path>pytorch_pretrained_bert/modeling.py <ide> import torch <ide> from torch import nn <ide> from torch.nn import CrossEntropyLoss <del>try: <del> from apex.normalization.fused_layer_norm import FusedLayerNorm <del>except ImportError: <del> raise ImportError("Please install apex from https://www.github.com/...
1
Python
Python
remove todo note
080066ae74c10d5ef2a61eb123ad608b354a1103
<ide><path>spacy/scorer.py <ide> def score_links( <ide> negative_labels (Iterable[str]): The string values that refer to no annotation (e.g. "NIL") <ide> RETURNS (Dict[str, Any]): A dictionary containing the scores. <ide> <del> DOCS (TODO): https://nightly.spacy.io/api/scorer#score_links <add> ...
1
PHP
PHP
remove extra whitespace in config/cache.php
82357a563a2b8a50031f00f07353c4657718de04
<ide><path>config/cache.php <ide> 'memcached' => [ <ide> 'driver' => 'memcached', <ide> 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), <del> 'sasl' => [ <add> 'sasl' => [ <ide> env('MEMCACHED_USERNAME'), <ide> env('MEMCACHED...
1
Text
Text
fix link to animations docs
ac8142b4dc37154ee266f44dc541932a87c34fac
<ide><path>docs/docs/developers/api.md <ide> myLineChart.update(); // Calling update now animates the position of March from <ide> <ide> > **Note:** replacing the data reference (e.g. `myLineChart.data = {datasets: [...]}` only works starting **version 2.6**. Prior that, replacing the entire data object could be achie...
2
Javascript
Javascript
add missing space in test
a8c1d9c97804f7df98150456c2702fd39e3a22f0
<ide><path>src/Angular.js <ide> function isArrayLike(obj) { <ide> angular.forEach(values, function(value, key){ <ide> this.push(key + ': ' + value); <ide> }, log); <del> expect(log).toEqual(['name: misko', 'gender:male']); <add> expect(log).toEqual(['name: misko', 'gender: male']); <ide> </p...
1
Ruby
Ruby
minimize spring.watch calls
272df8fcedcb8ff6b36b3e8953d17f552e1fc624
<ide><path>railties/lib/rails/generators/rails/app/templates/config/spring.rb <del>%w[ <del> .ruby-version <del> .rbenv-vars <del> tmp/restart.txt <del> tmp/caching-dev.txt <del>].each { |path| Spring.watch(path) } <add>Spring.watch( <add> ".ruby-version", <add> ".rbenv-vars", <add> "tmp/restart.txt", <add> "tm...
1
Javascript
Javascript
remove comment referring to deferredmixin
d7948a4202959a1831872ec579249138534dabc8
<ide><path>packages/ember/tests/routing/basic_test.js <ide> asyncTest("The Special page returning an error fires the error hook on SpecialRo <ide> <ide> var menuItem; <ide> <del> App.MenuItem = Ember.Object.extend(Ember.DeferredMixin); <add> App.MenuItem = Ember.Object.extend(); <ide> App.MenuItem.reopenClass({...
1
Text
Text
add docs for `docker network create --attachable`
7433d3acf61142bb1abbf7928ff0e20acf3eda56
<ide><path>docs/reference/commandline/network_create.md <ide> Usage: docker network create [OPTIONS] NETWORK <ide> Create a network <ide> <ide> Options: <add> --attachable Enable manual container attachment <ide> --aux-address value Auxiliary IPv4 or IPv6 addresses used by Network <ide> ...
2
Python
Python
fix purge_inactive_dag_warnings filter
fab2913d1aad0f076d35f3c424cb128016e08330
<ide><path>airflow/models/dagwarning.py <ide> from enum import Enum <ide> <ide> from sqlalchemy import Column, ForeignKeyConstraint, String, Text, false <add>from sqlalchemy.orm import Session <ide> <ide> from airflow.models.base import Base, StringID <ide> from airflow.utils import timezone <ide> class DagWarning(Ba...
1
PHP
PHP
move registration of cakeplugin
205d75587ce26bf87c4792d64b8eff277c1901df
<ide><path>lib/Cake/Core/App.php <ide> public static function init() { <ide> self::$_map += (array)Cache::read('file_map', '_cake_core_'); <ide> self::$_objects += (array)Cache::read('object_map', '_cake_core_'); <ide> register_shutdown_function(array('App', 'shutdown')); <del> self::uses('CakePlugin', 'Core'); ...
2
Ruby
Ruby
fix output when listing guesses
a24477dad64ed8c7069811b6f0e3390973b9c9cf
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> if guesses.count == 1 <ide> formula = guesses.shift <ide> elsif guesses.count > 1 <del> odie "Couldn't guess formula for sure; could be one of these:\n#{guesses}" <add> odie "Couldn't guess formula f...
1
Ruby
Ruby
add dodeca-core for 2018 mbps
92c6e72a4a5d339e3fec5dfa881facfc2b3572e9
<ide><path>Library/Homebrew/hardware.rb <ide> def self.cores_as_words <ide> when 4 then "quad" <ide> when 6 then "hexa" <ide> when 8 then "octa" <add> when 12 then "dodeca" <ide> else <ide> Hardware::CPU.cores <ide> end
1
Python
Python
update examples/neural_doodle.py based on issues
d9c4d8a76af48f9be4ed9f25f6f5feaf4146ae8f
<ide><path>examples/neural_doodle.py <ide> ref_img = imread(target_mask_path) <ide> img_nrows, img_ncols = ref_img.shape[:2] <ide> <del>total_variation_weight = 8.5e-5 <add>total_variation_weight = 50. <ide> style_weight = 1. <ide> content_weight = 0.1 if use_content_img else 0 <ide> <ide> def region_style_loss(style...
1
Javascript
Javascript
fix jsdoc tags
6a6db5b383d41d33c3c0c978f773122bf1007bc8
<ide><path>packages/ember-states/lib/state_manager.js <ide> require('ember-states/state'); <ide> <ide> **/ <ide> Ember.StateManager = Ember.State.extend( <del>/** @scope Ember.State.prototype */ { <add>/** @scope Ember.StateManager.prototype */ { <ide> <ide> /** <ide> When creating a new statemanager, look for ...
2
Go
Go
fix version struct on old versions
229b599259b24b30fdecbb70bdbba417a81e9723
<ide><path>api/server/server.go <ide> func (s *Server) postAuth(version version.Version, w http.ResponseWriter, r *htt <ide> <ide> func (s *Server) getVersion(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <ide> v := &types.Version{ <del> Version: dockerversion....
2
Text
Text
fix documentation for sharded dbs
22584d0cbf14d5b66c57fd84d4097dd1442c323b
<ide><path>guides/source/active_record_multiple_databases.md <ide> using sharding both a `role` and `shard` must be passed: <ide> <ide> ```ruby <ide> ActiveRecord::Base.connected_to(role: :writing, shard: :default) do <del> @id = Person.create! # creates a record in shard one <add> @id = Person.create! # Creates a r...
1
Text
Text
remove child factories
42c837e4ddc32550b0a7f59401f4a3f4a3731445
<ide><path>docs/docs/09.1-animation.md <ide> This is called when the `willEnter` `callback` is called. <ide> <ide> This is called when the child has been removed from the `ReactTransitionGroup`. Though the child has been removed, `ReactTransitionGroup` will keep it in the DOM until `callback` is called. <ide> <del>No...
1
Javascript
Javascript
remove unused type import
146f23bbde639513cb36c36bc3be12b1e07638da
<ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js <ide> const HarmonyExports = require("./HarmonyExports"); <ide> const HarmonyImportSideEffectDependency = require("./HarmonyImportSideEffectDependency"); <ide> const HarmonyImportSpecifierDependency = require("./HarmonyImportSpecifierDependency"); <ide>...
1
Javascript
Javascript
add more spec
3c02ab36212699dc27a6345c091dbeb37b0b4fa1
<ide><path>spec/config-spec.js <ide> describe('Config', () => { <ide> expect(atom.config.get('value')).toEqual({array: [1, {b: 2}, 3]}) <ide> }) <ide> <add> it('gets scoped values correctly', () => { <add> atom.config.set('foo', 'bam', {scope: ['second']}) <add> expect(atom.c...
1
Text
Text
add scipy link to conv layer docs
ec450f429ee40c8aa093c2a1add942018950fffa
<ide><path>docs/sources/layers/convolutional.md <ide> Convolution operator for filtering windows of two-dimensional inputs. <ide> - __init__: name of initialization function for the weights of the layer (see: [initializations](../initializations.md)), or alternatively, Theano function to use for weights initializat...
1
Python
Python
add recursive flag to glob in filesystem sensor
789e0eaee8fa9dc35b27c49cc50a62ea4f635978
<ide><path>airflow/sensors/filesystem.py <ide> class FileSensor(BaseSensorOperator): <ide> :param filepath: File or folder name (relative to <ide> the base path set within the connection), can be a glob. <ide> :type filepath: str <add> :param recursive: when set to ``True``, enables recursive directo...
2
Go
Go
ignore empty branch (staticcheck)
41cfcac7fc93a932b10f0e97f4b1d53f43dcb7dd
<ide><path>daemon/graphdriver/graphtest/graphbench_unix.go <ide> func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, drive <ide> b.StopTimer() <ide> arch.Close() <ide> <add> // suppressing "SA9003: empty branch (staticcheck)" instead of commenting-out/removing <add> // these lines because ...
1
Text
Text
resolve incorrect doesntexist method name
6a5ab45714f928484dd09aa3330d32312f2cdb61
<ide><path>CHANGELOG-5.5.md <ide> ## v5.5.33 (2018-01-30) <ide> <ide> ### Added <del>- Added `notExists()` method to query builder ([#22836](https://github.com/laravel/framework/pull/22836), [9d2a7ca](https://github.com/laravel/framework/commit/9d2a7ca049e71d39e453ba8c34addb657b71b237)) <add>- Added `doesntExist()` me...
1
Ruby
Ruby
register trackers on extensions, not handlers
ec23296eb607d7974c7281d520b543640024418f
<ide><path>actionpack/lib/action_view/dependency_tracker.rb <ide> def self.find_dependencies(name, template) <ide> end <ide> end <ide> <del> def self.register_tracker(handler, tracker) <add> def self.register_tracker(extension, tracker) <add> handler = Template.handler_for_extension(extension) <id...
3
PHP
PHP
allow character classes in attribute patterns
246c09ae4030c1bbded2f4ad3d56fb971ca60eca
<ide><path>lib/Cake/Test/Case/Utility/HashTest.php <ide> public function testExtractAttributePattern() { <ide> $result = Hash::extract($data, '{n}.Article[title=/^First/]'); <ide> $expected = array($data[0]['Article']); <ide> $this->assertEquals($expected, $result); <add> <add> $result = Hash::extract($data, '{n...
2
Python
Python
remove workaround for fixed issue
845c48979a4c0b1343037f944a139b88849c6285
<ide><path>numpy/lib/function_base.py <ide> def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, <ide> n = np.array(False, dtype=bool) <ide> <ide> r = take(ap, indices, axis=0, out=out) <del> if out is not None: <del> r = out # workaround for gh-16276 <ide...
1
Ruby
Ruby
remove hack to support bigdecimal in ruby 1.9
7926ab1004d2ec9118516445d32c75c9aaacba79
<ide><path>activesupport/lib/active_support/core_ext/object/duplicable.rb <ide> def duplicable? <ide> <ide> require 'bigdecimal' <ide> class BigDecimal <del> # Needed to support Ruby 1.9.x, as it doesn't allow dup on BigDecimal, instead <del> # raises TypeError exception. Checking here on the runtime whether BigDeci...
2
Text
Text
remove file and directory
a8f4019693ed447ad834bb53af4e954e6e8ad7a7
<ide><path>docs/README.md <ide> You can also require many of these classes in your package via: <ide> The classes available from `require 'atom'` are: <ide> * [BufferedProcess][BufferedProcess] <ide> * [BufferedNodeProcess][BufferedNodeProcess] <del> * [Directory][Directory] <ide> * [EditorView][EditorView] <del...
1
PHP
PHP
add notifiable trait to default user
9575714700fd1c1796f7376a4bdc65d3683409ff
<ide><path>app/User.php <ide> <ide> namespace App; <ide> <add>use Illuminate\Notifications\Notifiable; <ide> use Illuminate\Foundation\Auth\User as Authenticatable; <ide> <ide> class User extends Authenticatable <ide> { <add> use Notifiable; <add> <ide> /** <ide> * The attributes that are mass assignable...
1
Ruby
Ruby
simplify route score
0334eb6dfa0db87b3996f168c852c272ee4daf1a
<ide><path>actionpack/lib/action_dispatch/journey/route.rb <ide> def required_keys <ide> end <ide> <ide> def score(supplied_keys) <del> required_keys = path.required_names <del> <del> required_keys.each do |k| <add> path.required_names.each do |k| <ide> return -1 unless suppl...
1
Ruby
Ruby
remove useless conditionals
89448a7f5c21729568eaa12250447f313197a30d
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def each_element(object) <ide> end <ide> <ide> def fields_for_style?(object) <del> (object.is_a?(Hash) || object.is_a?(Parameters)) && <add> object.is_a?(Parameters) && <ide> object.to_unsafe_h.all? { |k, v...
1
Javascript
Javascript
fix incorrect handling of empty keys
a811a4a13042a4b3ba019fbe1221f4c83b02a699
<ide><path>lib/querystring.js <ide> QueryString.parse = QueryString.decode = function(qs, sep, eq, options) { <ide> kstr = x.substring(0, idx), <ide> vstr = x.substring(idx + 1), k, v; <ide> <add> if (kstr === '' && vstr !== '') { <add> kstr = vstr; <add> vstr = ''; <add> } <add> <ide> ...
2
Javascript
Javascript
remove tooltip opacity from core-controller
8398d26d10ee030339cafb77519a98857ce9dd66
<ide><path>src/core/core.controller.js <ide> <ide> // The usual updates <ide> this.tooltip.initialize(); <del> <del> // Active <del> if (this.tooltipActive.length) { <del> this.tooltip._model.opacity = 1; <del> <del> helpers.extend(this.tooltip, { <del> _active: this.tooltipActive, <del> ...
1
Ruby
Ruby
use quiet_safe_system to silence cvs updates
37c08393dbd482c4cfc37a0ec346564f8532257b
<ide><path>Library/Homebrew/download_strategy.rb <ide> def clone_repo <ide> end <ide> <ide> def update <del> @clone.cd { safe_system cvspath, "up" } <add> @clone.cd { quiet_safe_system cvspath, { :quiet_flag => "-Q" }, "up" } <ide> end <ide> <ide> def split_url(in_url)
1
Python
Python
add list_deployments method on kubernetes driver
1e54a6c0aef8ec28d4d0ee8a347650d03df083c0
<ide><path>libcloud/container/drivers/kubernetes.py <ide> def sum_resources(self, *resource_dicts): <ide> return {"cpu": to_cpu_str(total_cpu), "memory": to_memory_str(total_memory)} <ide> <ide> <add>class KubernetesDeployment: <add> def __init__(self, id, name, namespace, created_at, <add> rep...
1
Java
Java
fix path matching for paths containing spaces
3c92ddc94b04f1dc057125d336e5220c92351442
<ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java <ide> public class AntPathMatcher implements PathMatcher { <ide> <ide> private boolean caseSensitive = true; <ide> <del> private boolean trimTokens = true; <add> private boolean trimTokens = false; <ide> <ide> private volatile Boolea...
2
Javascript
Javascript
run method sorting codemod
f3f939dde4c06eb7be88dfac671d015d3724e2be
<ide><path>lib/app.js <ide> import { execOnce, warn, loadGetInitialProps } from './utils' <ide> import { makePublicRouterInstance } from './router' <ide> <ide> export default class App extends Component { <add> static childContextTypes = { <add> _containerProps: PropTypes.any, <add> headManager: PropTypes.objec...
9
Ruby
Ruby
add mime support for problem detail
0d3bc8ec673fcb799e6e1f522d9dbf011e2a367b
<ide><path>actionpack/lib/action_dispatch/http/mime_types.rb <ide> <ide> # https://www.ietf.org/rfc/rfc4627.txt <ide> # http://www.json.org/JSONRequest.html <del>Mime::Type.register "application/json", :json, %w( text/x-json application/jsonrequest ) <add># https://www.ietf.org/rfc/rfc7807.txt <add>Mime::Type.register...
2
Ruby
Ruby
fix some typos in comments
d2660c8cadd973b7a7c8b09fa03888631f9eea4b
<ide><path>actionpack/lib/action_controller/metal/renderers.rb <ide> module ClassMethods <ide> # <ide> # Both <tt>ActionController::Base</tt> and <tt>ActionController::API</tt> <ide> # include <tt>ActionController::Renderers::All</tt>, making all renderers <del> # avaialable in the controller. Se...
8
Python
Python
correct restful unitest for the previous commit
f5d157a7cfef6110c18d59e2fb6920c5202bcfb5
<ide><path>unitest-restful.py <ide> import shlex <ide> import subprocess <ide> import time <add>import numbers <ide> import unittest <ide> <ide> from glances import __version__ <ide> def test_004_items(self): <ide> req = requests.get("%s/%s/%s" % (URL, method, i)) <ide> self.assertTrue(req.ok) ...
1
Javascript
Javascript
add android version of kakapo
4095394982fdd70a8142439e2f38161739396c2d
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> author: 'HS Schaaf', <ide> }, <ide> { <del> name: 'Kakapo', <add> name: 'Kakapo - Android', <add> icon: 'https://lh3.googleusercontent.com/xDc0D136JB8IvRsct9u4VTGh4nK1QwsZSRuEe-UxWd_JFtvNTrcaO5fEhcj4rGxv60pX=w300-rw', <add> lin...
1
Text
Text
add chengelog entry to
15175fdad7e2203e3d20b197f7b9aeb14c29d4d2
<ide><path>activerecord/CHANGELOG.md <add>* Avoid loading records from database when they are already loaded using <add> the `pluck` method on a collection. <add> <add> Fixes #25921. <add> <add> *Ryuta Kamizono* <add> <ide> * Remove text default treated as an empty string in non-strict mode for <ide> c...
1
Javascript
Javascript
allow overriding native .click() suppression
a120bbbfae81daccf801fcf8deb0bc77d865e27f
<ide><path>src/event.js <ide> jQuery.event = { <ide> // If nobody prevented the default action, do it now <ide> if ( !onlyHandlers && !event.isDefaultPrevented() ) { <ide> <del> if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) && <del> !(type === "click" && jQuery.nodeN...
2
Python
Python
fix convergence issues for mlperf.
64710c051f26a2778c03fc15ef29c4bcae01df32
<ide><path>official/recommendation/data_async_generation.py <ide> import contextlib <ide> import datetime <ide> import gc <del>import functools <ide> import multiprocessing <ide> import json <ide> import os <ide> def get_cycle_folder_name(i): <ide> return "cycle_{}".format(str(i).zfill(5)) <ide> <ide> <del>def _pro...
6
Ruby
Ruby
use macos.locate to find svn
eb0be2ba4757f3da486e01af9885bbcbaf0e62b8
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch_repo target, url, revision=nil, ignore_externals=false <ide> def svn <ide> return ENV['HOMEBREW_SVN'] if ENV['HOMEBREW_SVN'] <ide> return "#{HOMEBREW_PREFIX}/bin/svn" if File.exist? "#{HOMEBREW_PREFIX}/bin/svn" <del> return '/usr/bin/svn' <ad...
1
Javascript
Javascript
simplify paren wrap, continuation-detection
9ef9a9dee54a464a46739b14e8a348bec673c5a5
<ide><path>lib/repl.js <ide> var rl = require('readline'); <ide> var Console = require('console').Console; <ide> var EventEmitter = require('events').EventEmitter; <ide> var domain = require('domain'); <add>var debug = util.debuglog('repl'); <ide> <ide> // If obj.hasOwnProperty has been overridden, then calling <ide> ...
1
Text
Text
update some links to and text for react router
088dd515a7922d57a6a76d075d5645b2c42f2ecf
<ide><path>docs/introduction/Ecosystem.md <ide> Makes integration and unit testing of sagas a breeze <ide> ## Routing <ide> <ide> **[supasate/connected-react-router](https://github.com/supasate/connected-react-router)** <del>Synchronize React Router 4 state with your Redux store. <add>Synchronize React Router v4+ stat...
3
Javascript
Javascript
fix the last imports of `'invariant'`
eb531943aab37ec59c9e160f8b602313b4aa954f
<ide><path>Libraries/NavigationExperimental/NavigationAbstractPanResponder.js <ide> <ide> const PanResponder = require('PanResponder'); <ide> <del>const invariant = require('invariant'); <add>const invariant = require('fbjs/lib/invariant'); <ide> <ide> const EmptyPanHandlers = { <ide> onMoveShouldSetPanResponder: ...
2
Javascript
Javascript
add datetime to the profiling export filename
962865e5bf8974d1651305ed406bfd146bc76f3e
<ide><path>src/devtools/views/Profiler/ProfilingImportExportButtons.js <ide> export default function ProfilingImportExportButtons() { <ide> <ide> if (profilingData !== null) { <ide> const profilingDataExport = prepareProfilingDataExport(profilingData); <add> const date = new Date(); <add> const dat...
1
Ruby
Ruby
build fix for app_generator_test.rb
62e0337db11ad224997f7460e8f00fa7bc0f18ae
<ide><path>railties/test/generators/app_generator_test.rb <ide> def test_inclusion_of_javascript_runtime <ide> if defined?(JRUBY_VERSION) <ide> assert_file "Gemfile", /gem\s+["']therubyrhino["']$/ <ide> else <del> assert_file "Gemfile", /# gem\s+["']therubyracer["']$/ <add> assert_file "Gemfile"...
1
Text
Text
remove reference to a deprecated package
86636a8bab4682ca514c7111edd6fa48326492b3
<ide><path>docs/faq/OrganizingState.md <ide> Some common rules of thumb for determining what kind of data should be put into <ide> - Do you want to cache the data (ie, use what's in state if it's already there instead of re-requesting it)? <ide> - Do you want to keep this data consistent while hot-reloading UI componen...
1
Text
Text
fix typo in assert code example
929fd4a892bb3e380ee58153ca04f070c38d9f27
<ide><path>doc/api/assert.md <ide> assert.notStrictEqual(1, 2); <ide> // OK <ide> <ide> assert.notStrictEqual(1, 1); <del>// AssertionError: 1 != 1 <add>// AssertionError: 1 !== 1 <ide> <ide> assert.notStrictEqual(1, '1'); <ide> // OK
1
Text
Text
improve testing section
88cb9af59487171d1e2728800dcd45f66057517e
<ide><path>DEVELOPERS.md <ide> # Developing AngularJS <ide> <ide> * [Development Setup](#setup) <add>* [Running Tests](#tests) <ide> * [Coding Rules](#rules) <ide> * [Commit Message Guidelines](#commits) <ide> * [Writing Documentation](#documentation) <ide> HTTP server. For this purpose, we have made available a local...
1
Javascript
Javascript
flowify some libraries
e4bf45beee71db3f42be343779ff77ef9fe9e026
<ide><path>Libraries/ActionSheetIOS/ActionSheetIOS.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule ActionSheetIOS <add> * @flow <ide> */ <ide> 'use strict'; <ide> <ide> var RCTActionSheetManager = require('NativeModules').ActionSheetManager; <ide>...
6
Python
Python
remove duplicated entry
78d1b473828d096591968ac9b97f0917b081a958
<ide><path>contrib/scrape-ec2-sizes.py <ide> "country": "Hong Kong", <ide> "signature_version": "2", <ide> }, <del> "Asia Pacific (Hong Kong)": { <del> "id": "ap-east-1", <del> "endpoint": "ec2.ap-east-1.amazonaws.com", <del> "api_name": "ec2_ap_east", <del> "country":...
1
Text
Text
fix tiny grammar
f2fcd3a000f70cc520b9267e82184ab87fea7f80
<ide><path>actioncable/README.md <ide> can be reached as remote procedure calls via a subscription's `perform` method. <ide> <ide> The appearance example was all about exposing server functionality to client-side invocation over the WebSocket connection. <ide> But the great thing about WebSockets is that it's a two-wa...
1
PHP
PHP
apply fixes from styleci
c161b14ee0bfd0dd7a247c5709b39c5cdfe9de6c
<ide><path>database/factories/UserFactory.php <ide> | <ide> */ <ide> <del>/** @var \Illuminate\Database\Eloquent\Factory $factory */ <add>/* @var \Illuminate\Database\Eloquent\Factory $factory */ <ide> $factory->define(User::class, function (Faker $faker) { <ide> static $password; <ide>
1
Java
Java
remove soloadershim, use soloader
fc6dd78935a41106aa6a44058c1abb7d0ba0fa24
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java <ide> import android.support.annotation.Nullable; <ide> <ide> import com.facebook.common.logging.FLog; <del>import com.facebook.common.soloader.SoLoaderShim; <ide> import com.facebook.drawee.backends.pipeline.Fresco; <ide> import...
1
Javascript
Javascript
fix global detection in tests
0e5f12b4b2ba489f0bb8e1b632e2bc068369c89b
<ide><path>locale/af.js <ide> } else if (typeof exports === 'object') { <ide> module.exports = factory(require('../moment')); // Node <ide> } else { <del> factory((typeof global !== undefined ? global : this).moment); // node or other global <add> factory((typeof global !== 'undefined' ? g...
78
Ruby
Ruby
add pour_bottle? method to formula
599b012702127b821826d3e9f5c5f5521b82fd16
<ide><path>Library/Homebrew/bottles.rb <ide> def install_bottle? f <ide> and f.downloader.local_bottle_path <ide> not ARGV.build_from_source? \ <ide> and MacOS.bottles_supported? \ <add> and f.pour_bottle? \ <ide> and f.build.used_options.empty? \ <ide> and bottle_current?(f) <ide> end <ide><path>L...
2