content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Python
Python
fix lint error
fc9c3960c173f3ed7fcabcac1e7b0c6d5ffed6cd
<ide><path>libcloud/compute/drivers/dimensiondata.py <ide> def create_node(self, name, <ide> >>> images = driver.list_images(location=location) <ide> >>> image = images[0] <ide> >>> <del> >>> node = driver.create_node(name='test_blah_2', image=image, auth=root_pw, <add> >>> node = ...
2
PHP
PHP
add comments to all lua scripts
e5bd04140d609964b10ff75d41ed101173a07f90
<ide><path>src/Illuminate/Queue/LuaScripts.php <ide> class LuaScripts <ide> /** <ide> * Get the Lua script for computing the size of queue. <ide> * <add> * KEYS[1] - The name of the primary queue <add> * KEYS[2] - The name of the "delayed" queue <add> * KEYS[3] - The name of the "reserved" que...
1
Text
Text
remove dtrace from tierlist
574ad6d89dd9db2cb7a4b449118d4f8befab9b05
<ide><path>doc/contributing/diagnostic-tooling-support-tiers.md <ide> The tools are currently assigned to Tiers as follows: <ide> | Debugger | Command line Debug Client | ? | Yes | 1 | <ide> | Tracing | trace\_events (API) | No ...
1
PHP
PHP
remove redundant condition
e0904abe80a0cfb340e6e8b450a4251bdf824af5
<ide><path>src/Datasource/Paginator.php <ide> protected function _prefix(RepositoryInterface $object, array $order, bool $allo <ide> public function checkLimit(array $options): array <ide> { <ide> $options['limit'] = (int)$options['limit']; <del> if (empty($options['limit']) || $options['limit'] ...
1
Go
Go
normalize comment formatting
ec4bc832589046118b6f1332f0a99664c6e42059
<ide><path>daemon/graphdriver/btrfs/btrfs.go <ide> func parseOptions(opt []string) (btrfsOptions, bool, error) { <ide> <ide> // Driver contains information about the filesystem mounted. <ide> type Driver struct { <del> //root of the file system <add> // root of the file system <ide> home string <ide> uidMaps...
7
Text
Text
fix typo in index.md
faf6f226cd001648fc421eea62e7cadcc14597f1
<ide><path>docs/index.md <ide> OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <ide> [versioning]: api-guide/versioning.md <ide> [contentnegotiation]: api-guide/content-negotiation.md <ide> [metadata]: api-guide/metadata.md <del>[schemas]: 'api-guide/schemas.md' <add>[schemas]: api-guide/schemas.md...
1
Text
Text
add changelog entry for [ci skip]
ddaeaefc2a454be9d893ef3c546793cc47b0db84
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Fix bug when call `store_accessor` multiple times. <add> Fixes #7532. <add> <add> *Matt Jones* <add> <add>* Fix store attributes that show the changes incorrectly. <add> Fixes #7532. <add> <add> *Matt Jones* <add> <i...
1
Javascript
Javascript
start native watchers when attached
21e381033c65d62428499d2880bdfb8a63c0c1e9
<ide><path>src/filesystem-manager.js <ide> class Watcher { <ide> this.subs.add(native.onDidStart(payload => { <ide> this.emitter.emit('did-start', payload) <ide> })) <add> <add> native.start() <ide> } <ide> <ide> this.subs.add(native.onDidChange(events => {
1
Python
Python
add update_zone method to the base dns api
cb2e93fbf137c6f601540f93e1b26b095dd64098
<ide><path>libcloud/dns/base.py <ide> def list_records(self): <ide> def create_record(self, name, type, data, extra=None): <ide> self.driver.create_record(name=name, type=type, data=data, extra=extra) <ide> <add> def update(self, domain, type='master', ttl=None, extra=None): <add> self.driver.upd...
1
Javascript
Javascript
fix imports in locale files
bb3f3af31445f4836c3b8527c057787adce8754a
<ide><path>src/test/locale/af.js <ide> import {localeModule, test} from '../qunit'; <del>import {moment} from '../../moment'; <add>import moment from '../../moment'; <ide> localeModule('af'); <ide> <ide> test('parse', function (assert) { <ide><path>src/test/locale/ar-ma.js <ide> import {localeModule, test} from '../qu...
84
Ruby
Ruby
change the method description
d1c5e4b28b49da31d23768ba4671553f14e3be42
<ide><path>actionpack/test/dispatch/uploaded_file_test.rb <ide> def test_tempfile <ide> assert_equal 'foo', uf.tempfile <ide> end <ide> <del> def test_delegates_to_io_to_tempfile <add> def test_to_io_returns_the_tempfile <ide> tf = Object.new <ide> uf = Http::UploadedFile.new(:tempfile => t...
1
Javascript
Javascript
remove unnecessary comma in gammacorrectionshader
e40766b5e819230f6ecfc6b8b6b8d83ca7f37b5e
<ide><path>examples/js/shaders/GammaCorrectionShader.js <ide> THREE.GammaCorrectionShader = { <ide> <ide> uniforms: { <ide> <del> "tDiffuse": { value: null }, <add> "tDiffuse": { value: null } <ide> <ide> }, <ide>
1
Javascript
Javascript
add test for invalid ref in link
e61c1952c8beb591e07b9360585927491bf446aa
<ide><path>test/integration/preload-viewport/pages/invalid-ref.js <add>import React from 'react' <add>import Link from 'next/link' <add> <add>class Button extends React.Component { <add> render () { <add> return <button {...this.props}>Click me</button> <add> } <add>} <add> <add>export default () => ( <add> <div>...
2
Ruby
Ruby
use f.recursive_dependencies in stdlib check
4a9cf0dd14bdcf08edbe0c1b2e180b08cb570c5b
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> # This is probably accurate, but could possibly stand to be <ide> # more robust. <ide> stdlib_in_use = CxxStdlib.new(MacOS.default_cxx_stdlib, MacOS.default_compiler) <del> stdlib_in_use.check_dependencies(f, effective_deps)...
1
Javascript
Javascript
add new `forkevent`/`unforkevent` api
5257c35d05578bab0233254da81f1216f461f18d
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> function attachNativeEvent(viewRef: any, eventName: string, argMapping: Array<?M <ide> }; <ide> } <ide> <add>function forkEvent(event: ?AnimatedEvent | ?Function, listener: Function): AnimatedEvent | Function { <add> if (!event) { <add> return lis...
2
Javascript
Javascript
use const in ui_utils.js
cd03fe014d0fcf039e506f5f0bcf457ceae60513
<ide><path>web/ui_utils.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <add>/* eslint no-var: error, prefer-const: error */ <ide> <ide> const CSS_UNITS = 96.0 / 72.0; <ide> const DEFAULT_SCALE_VALUE = 'auto'; <ide> function formatL10nVa...
1
Go
Go
fix spelling error in test
61ac745d7a7dd192948e0c1cfbdff87af7715c92
<ide><path>integration-cli/docker_cli_run_test.go <ide> func TestCreateVolume(t *testing.T) { <ide> <ide> deleteAllContainers() <ide> <del> logDone("run - create docker mangaed volume") <add> logDone("run - create docker managed volume") <ide> } <ide> <ide> // Test that creating a volume with a symlink in its path ...
1
Ruby
Ruby
remove ivars from the "protected" list
a50d55a7eee89dbbcf831c3717d9837462f7a70f
<ide><path>actionpack/lib/action_controller/base.rb <ide> def self.without_modules(*modules) <ide> <ide> # Define some internal variables that should not be propagated to the view. <ide> PROTECTED_IVARS = AbstractController::Rendering::DEFAULT_PROTECTED_INSTANCE_VARIABLES + [ <del> :@_status, :@_headers, ...
1
Ruby
Ruby
make a singleton for associationscope
213b2fbf40f6a1ce8381749bd5ba734f20bd4b21
<ide><path>activerecord/lib/active_record/associations/association.rb <ide> def scope <ide> # actually gets built. <ide> def association_scope <ide> if klass <del> @association_scope ||= AssociationScope.new.scope(self, klass.connection) <add> @association_scope ||= AssociationScop...
3
PHP
PHP
move test classes into their own files
003657662c6079c05c8de658e2d01a36e8f4f034
<ide><path>tests/TestCase/Controller/ControllerTest.php <ide> use PHPUnit\Framework\Error\Notice; <ide> use PHPUnit\Framework\Error\Warning; <ide> use TestApp\Controller\Admin\PostsController; <add>use TestApp\Controller\TestController; <ide> use TestPlugin\Controller\TestPluginController; <ide> <ide> /** <ide> public...
8
PHP
PHP
name for middleware
b0bd7da50d2d4923734e9c3f865d2988954fc536
<ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php <ide> protected function replaceNamespace($path) <ide> */ <ide> protected function setServiceProviderNamespaceReferences() <ide> { <del> $this->setReferencedFilterNamespaces(); <add> $this->setReferencedMiddlewareNamespaces(); <ide> <ide> $this->s...
1
PHP
PHP
update doc block
9bdf02648e994adabb3363e63a0dbc1ab7fe250d
<ide><path>laravel/input.php <ide> public static function has_file($key) <ide> * @param string $key <ide> * @param string $directory <ide> * @param string $name <del> * @return bool <add> * @return Symfony\Component\HttpFoundation\File\File <ide> */ <ide> public static function upload($key, $directory,...
1
Javascript
Javascript
remove dead test file
761afebab21e495cc64ec398c9ef529b0af78515
<ide><path>test/hotCases/harmony/auto-import-default/out/bundle.js <del>/******/ (function(modules) { // webpackBootstrap <del>/******/ function hotDisposeChunk(chunkId) { <del>/******/ delete installedChunks[chunkId]; <del>/******/ } <del>/******/ var parentHotUpdateCallback = this["webpackHotUpdate"]; <del>/****...
1
PHP
PHP
remember embedded files to remove duplication
616baa33e8c2775f2896f062f8a439f8fe8b56b6
<ide><path>src/Illuminate/Mail/Message.php <ide> class Message <ide> * @var \Swift_Message <ide> */ <ide> protected $swift; <add> <add> /** <add> * CIDs of files embedded in the message. <add> * <add> * @var array <add> */ <add> protected $embeddedFiles = []; <ide> <ide> /**...
1
Text
Text
add design decisions to faq document
c8c788c0036893f55f99d85ff920745f4db34c62
<ide><path>docs/FAQ.md <ide> - [Do I have to deep-clone my state in a reducer? Isn't copying my state going to be slow?](/docs/faq/Performance.md#performance-clone-state) <ide> - [How can I reduce the number of store update events?](/docs/faq/Performance.md#performance-update-events) <ide> - [Will having “one sta...
2
Javascript
Javascript
use mediumdate as default
c6c3949b14f4003ecab291243edfca61262f2c3d
<ide><path>src/filters.js <ide> var GET_TIME_ZONE = /[A-Z]{3}(?![+\-])/, <ide> * @param {(Date|number|string)} date Date to format either as Date object, milliseconds (string or <ide> * number) or ISO 8601 extended datetime string (yyyy-MM-ddTHH:mm:ss.SSSZ). <ide> * @param {string=} format Formatting rules (see D...
2
Text
Text
use code markup/markdown in headers
1c33523032a72ed1e25ba4678a65d367e134f5e0
<ide><path>doc/api/punycode.md <ide> The `punycode` module is a third-party dependency used by Node.js and <ide> made available to developers as a convenience. Fixes or other modifications to <ide> the module must be directed to the [Punycode.js][] project. <ide> <del>## punycode.decode(string) <add>## `punycode.decod...
1
Text
Text
fix minor typos, improve clarity of readme
e2abdaec7441686550aab64ccbafd38970646f0b
<ide><path>examples/http2-aggressive-splitting/template.md <del>This example demonstrates the AggressiveSplittingPlugin for splitting the bundle into multiple smaller chunks to improve caching. This works best with a HTTP2 web server elsewise there is an overhead for the increased number of requests. <add>This example ...
1
Go
Go
clean the teardown process of network test
57d85e7e54f7d074af8c496cba43ee18d3815207
<ide><path>integration-cli/docker_experimental_network_test.go <ide> func (s *DockerNetworkSuite) TestDockerNetworkMacvlanPersistance(c *check.C) { <ide> master := "dm-dummy0" <ide> // simulate the master link the vlan tagged subinterface parent link will use <ide> createMasterDummy(c, master) <add> // cleanup the m...
1
PHP
PHP
fix bcc sends on mailgun
7d2e774bf959933a5835762a7e6b1e3e45fdd75c
<ide><path>src/Illuminate/Mail/Transport/MailgunTransport.php <ide> public function send(Swift_Mime_Message $message, &$failedRecipients = null) <ide> { <ide> $this->beforeSendPerformed($message); <ide> <add> $to = $this->getTo($message); <add> <ide> $message->setBcc([]); <ide> <del> ...
1
Javascript
Javascript
fix forwardref displayname on text and view
ddf2c2ffd6f58743f25253289297bfe19fa17c75
<ide><path>Libraries/Components/View/View.js <ide> const RCTView = requireNativeComponent('RCTView'); <ide> <ide> let ViewToExport = RCTView; <ide> if (__DEV__) { <add> const View = (props: Props, forwardedRef: ?React.Ref<'RCTView'>) => { <add> return ( <add> <TextAncestor.Consumer> <add> {hasTextAnces...
3
Text
Text
add countdown module to writing tests guide
cf76176476911c6f0bd8465cf10d9e1dcf2b4a98
<ide><path>doc/guides/writing-tests.md <ide> platforms. <ide> <ide> ### The *common* API <ide> <del>Make use of the helpers from the `common` module as much as possible. <add>Make use of the helpers from the `common` module as much as possible. Please refer <add>to the [common file documentation](https://github.com/n...
1
PHP
PHP
apply fixes from styleci
09e9f8ee8132a727bfe4e0f1c8e36ed67952bad7
<ide><path>tests/Queue/QueueBeanstalkdQueueTest.php <ide> use Illuminate\Container\Container; <ide> use Illuminate\Queue\BeanstalkdQueue; <ide> use Illuminate\Queue\Jobs\BeanstalkdJob; <del>use Pheanstalk\Contract\PheanstalkInterface; <ide> <ide> class QueueBeanstalkdQueueTest extends TestCase <ide> {
1
Ruby
Ruby
add test for installrenamed on directories
8a8de3a29678eb64e7686bc5e35701edb84e9946
<ide><path>Library/Homebrew/test/test_pathname.rb <ide> def test_install_renamed <ide> assert_equal "a", File.read(@dst+@file.basename) <ide> assert_equal "b", File.read(@dst+"#{@file.basename}.default") <ide> end <add> <add> def test_install_renamed_directory <add> @dst.extend(InstallRenamed) <add> @f...
1
Python
Python
add xfailing test for out-of-bounds heads
819768483f7eeafaf0ab5c162c4884a7b982fdd5
<ide><path>spacy/tests/doc/test_doc_spilt.py <ide> def test_split_heads_error(en_vocab): <ide> retokenizer.split(doc[0], ["Los", "Angeles"], [0, 0]) <ide> <ide> <add>@pytest.mark.xfail <add>def test_split_heads_out_of_bounds(en_vocab): <add> """Test that the retokenizer raises an error for out-of-bound...
1
Text
Text
fix typo in method name [ci skip]
341151da5b298d95133b7ac1dae35a54faf0763f
<ide><path>guides/source/action_controller_overview.md <ide> There are a couple of things to notice in the above example. We need to make <ide> sure to close the response stream. Forgetting to close the stream will leave <ide> the socket open forever. We also have to set the content type to `text/event-stream` <ide> be...
1
Ruby
Ruby
improve application quitting
f61b963744c41b62c0253ee8cdbeb5f7b576dafe
<ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb <ide> def uninstall_launchctl(*services, command: nil, **_) <ide> command.run!("/bin/launchctl", args: ["remove", service], sudo: with_sudo) <ide> sleep 1 <ide> end <del> paths = ["/Library/LaunchAgents/#{...
2
PHP
PHP
remove useless mock
35ab21af36861b27bd3621bccef4e15696aa2e73
<ide><path>tests/Auth/AuthEloquentUserProviderTest.php <ide> public function testCredentialValidation() <ide> <ide> public function testModelsCanBeCreated() <ide> { <del> $conn = m::mock('Illuminate\Database\Connection'); <ide> $hasher = m::mock('Illuminate\Contracts\Hashing\Hasher'); <ide> ...
1
PHP
PHP
remove extra fi
98c4cef6fc141f4a02a117b087538476657fedff
<ide><path>src/Console/ConsoleOptionParser.php <ide> protected function _parseOption($name, $params) <ide> if ($option->validChoice($value)) { <ide> if ($option->acceptsMultiple($value)) { <ide> $params[$name][] = $value; <del>fi } else { <add> } else { <ide> ...
1
Ruby
Ruby
remove deprecate #all usage
b30996307d3b8d0d519c7ddcfa28fdeed428b602
<ide><path>activerecord/test/cases/associations/eager_load_nested_include_test.rb <ide> def test_missing_data_in_a_nested_include_should_not_cause_errors_when_construct <ide> assert_nothing_raised do <ide> # @davey_mcdave doesn't have any author_favorites <ide> includes = {:posts => :comments, :categori...
4
PHP
PHP
remove setter of passedargs
c71b11d9f05952803568b8c9ce4ac9ac138f17a1
<ide><path>src/View/View.php <ide> public function getRequest() <ide> * <ide> * - $this->request - To the $request parameter <ide> * - $this->plugin - To the value returned by $request->getParam('plugin') <del> * - $this->passedArgs - Same as $request->params['pass] <ide> * <ide> * @param \...
1
Java
Java
introduce messagecodeformatter abstraction
38bfb2bd893f062a9d90d3cfd14a2b0d619a4b5a
<ide><path>spring-context/src/main/java/org/springframework/validation/DefaultMessageCodesResolver.java <ide> * Default implementation of the {@link MessageCodesResolver} interface. <ide> * <ide> * <p>Will create two message codes for an object error, in the following order (when <del> * using the {@link Style#PREFI...
3
Javascript
Javascript
update hashes for all library names
913b18b4bb2e9ec4e8cef1ac05c37d383148c991
<ide><path>lib/UmdMainTemplatePlugin.js <ide> class UmdMainTemplatePlugin { <ide> }.bind(this)); <ide> mainTemplate.plugin("global-hash-paths", function(paths) { <ide> if(this.names.root) paths = paths.concat(this.names.root); <add> if(this.names.amd) paths = paths.concat(this.names.amd); <add> if(this.names...
1
Python
Python
remove unused error
2d520d3b45d2c997eeeaad8451c742dc01ae4f5c
<ide><path>spacy/errors.py <ide> class Errors: <ide> "existing extension, set `force=True` on `{obj}.set_extension`.") <ide> E091 = ("Invalid extension attribute {name}: expected callable or None, " <ide> "but got: {value}") <del> E092 = ("Could not find or assign name for word vectors. U...
1
Text
Text
fix spelling of contributors
dd7c2b77a32a0b8bc86262989f6ee0d1e94eed4e
<ide><path>COLLABORATOR_GUIDE.md <ide> <ide> * [Issues and Pull Requests](#issues-and-pull-requests) <ide> - [Managing Issues and Pull Requests](#managing-issues-and-pull-requests) <del> - [Welcoming First-Time Contributiors](#welcoming-first-time-contributiors) <add> - [Welcoming First-Time Contributors](#welcomi...
1
PHP
PHP
use the compiled config path
16f1e53a47f3edc3d7cc1c73fe1dd0e7622a4a56
<ide><path>src/Illuminate/View/ViewServiceProvider.php <ide> public function registerBladeEngine($resolver) <ide> // instance to pass into the engine so it can compile the views properly. <ide> $app->bindShared('blade.compiler', function($app) <ide> { <del> $cache = $app['path.storage'].'/views'; <add> $cache...
1
Python
Python
fix missing return statement
ee795bff201648453bf53de2c72caf8b9a2a50db
<ide><path>libcloud/compute/drivers/ec2.py <ide> def _get_billing_product_params(self, billing_products): <ide> idx += 1 # We want 1-based indexes <ide> params['BillingProduct.%d' % (idx)] = str(v) <ide> <add> return params <add> <ide> def _get_disk_container_params(self, disk_conta...
1
Java
Java
add dematerialize(selector), deprecate old
acd5466c4440961da905d0c1c0e78752bda155ef
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> import io.reactivex.internal.fuseable.*; <ide> import io.reactivex.internal.operators.flowable.*; <ide> import io.reactivex.internal.operators.mixed.*; <del>import io.reactivex.internal.operators.observable.ObservableFromPublisher; <add>import io.reactivex.inter...
8
Javascript
Javascript
add test for transition.selectall and nodelists
68f555bfc23f4bd9c07f008eb8bd3c9c6784459a
<ide><path>test/core/transition-test-selectAll.js <ide> module.exports = { <ide> t1 = transition.selectAll("span"); <ide> assert.equal(t0.id, id); <ide> assert.equal(t1.id, id); <add> }, <add> "groups are not instances of NodeList": function(transition) { <add> var t = transition.selectAll(function...
1
Java
Java
reduce api surface in pathpatternregistry
8d43f45515d0261e6e0255a12c282a503902a97a
<ide><path>spring-web/src/main/java/org/springframework/web/cors/reactive/UrlBasedCorsConfigurationSource.java <ide> <ide> import java.util.Collections; <ide> import java.util.LinkedHashMap; <add>import java.util.List; <ide> import java.util.Map; <ide> import java.util.SortedSet; <ide> <ide> public void setHttpReques...
13
Mixed
Ruby
allow spaces in postgres table names
03fadebe0ed1fd384a14e46ba4c828b9a36ab4bf
<ide><path>activerecord/CHANGELOG.md <add>* Allow spaces in postgres table names. <add> <add> Fixes issue where "user post" is misinterpreted as "\"user\".\"post\"" when quoting table names with the postgres adapter. <add> <add> *Gannon McGibbon* <add> <ide> * Cached columns_hash fields should be excluded fro...
3
PHP
PHP
work --daemon processing when app down
6b0985dab4f39dc243e1894d1049ab1e4951409d
<ide><path>src/Illuminate/Queue/QueueManager.php <ide> public function getName($connection = null) <ide> return $connection ?: $this->getDefaultDriver(); <ide> } <ide> <add> /** <add> * Determine if the worker should run in maintenance mode. <add> * <add> * @return bool <add> */ <add> public function isDownForMaint...
2
Text
Text
fix bug in data-fetching.md's example
356e5caf0ee4d23498a3caab3d71eb2bbbf84e7a
<ide><path>docs/basic-features/data-fetching.md <ide> import useSWR from 'swr' <ide> <ide> const API_URL = 'https://api.github.com' <ide> async function fetcher(path) { <del> const res = fetch(API_URL + path) <add> const res = await fetch(API_URL + path) <ide> const json = await res.json() <ide> return json <ide...
1
Text
Text
improve readability of collaborator_guide.md
5b4a5c82567da30156452151bc4627a7fc79d81a
<ide><path>COLLABORATOR_GUIDE.md <ide> can be fast-tracked and may be landed after a shorter delay: <ide> * Changes that fix regressions. <ide> <ide> When a pull request is deemed suitable to be fast-tracked, label it with <del>`fast-track`. The pull request can be landed once 2 or more collaborators <add>`fast-track`...
1
Javascript
Javascript
add a |textlayerrendered| event
3f061cef86a5b9f92e9c5f73ee399397cbaba263
<ide><path>web/text_layer_builder.js <ide> var TextLayerBuilder = (function TextLayerBuilderClosure() { <ide> this.renderingDone = false; <ide> this.divContentDone = false; <ide> this.pageIdx = options.pageIndex; <add> this.pageNumber = this.pageIdx + 1; <ide> this.matches = []; <ide> this.viewpo...
2
Javascript
Javascript
remove the .version from library version logging
f4897d73bb65c789a08d73cabd9d882e48a68332
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Ember.Application = Ember.Namespace.extend(Ember.DeferredMixin <ide> Ember.debug('-------------------------------'); <ide> Ember.libraries.each(function(name, version) { <ide> var spaces = new Array(maxNameLength...
2
Python
Python
check layer types for optimizer construction
3ced9b3eb946f4338ace7da66fc2fcdcc2705080
<ide><path>src/transformers/trainer.py <ide> SequentialDistributedSampler, <ide> distributed_broadcast_scalars, <ide> distributed_concat, <add> get_parameter_names, <ide> nested_concat, <ide> nested_detach, <ide> nested_numpify, <ide> def create_optimizer_and_scheduler(self, num_training_step...
4
Text
Text
add v3.25.0-beta.4 to changelog
8959f88b8678fe03660eba203af9b58220a4c053
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.25.0-beta.4 (February 01, 2021) <add> <add>- [#19363](https://github.com/emberjs/ember.js/pull/19363) [BUGFIX] Update VM, fix component name preprocessing <add> <ide> ### v3.25.0-beta.3 (January 25, 2021) <ide> <ide> - [#19351](https://github.com/ember...
1
Python
Python
remove bertconfig inheritance from robertaconfig
0946ed94fd2df3b514a728f267f9a448441d9a3a
<ide><path>src/transformers/models/roberta/configuration_roberta.py <ide> from collections import OrderedDict <ide> from typing import Mapping <ide> <add>from ...configuration_utils import PretrainedConfig <ide> from ...onnx import OnnxConfig <ide> from ...utils import logging <del>from ..bert.configuration_bert impor...
1
PHP
PHP
define qualifycolumns method
d373a1c3c17fb8b830e5e8e3949016694f0713ff
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function qualifyColumn($column) <ide> return $this->getTable().'.'.$column; <ide> } <ide> <add> /** <add> * Qualify the column's lists name by the model's table. <add> * <add> * @param array|mixed $columns <add> * @retu...
1
Python
Python
rewrite class_weight and sample_weight tests
1d586440a8649e0e0e0b19220040c4b210bcea1b
<ide><path>keras/models.py <ide> def load_weights(self, filepath): <ide> g = f['layer_{}'.format(k)] <ide> weights = [g['param_{}'.format(p)] for p in range(g.attrs['nb_params'])] <ide> self.layers[k].set_weights(weights) <del> f.close() <del> <del> <add> f.close() <ide...
3
Javascript
Javascript
prevent stalls by using read(0)
ac2263b77f3f346458d06fc019de27e24c63cee0
<ide><path>lib/tls.js <ide> CryptoStream.prototype._read = function read(size) { <ide> if (this.ondata) { <ide> this.ondata(pool, start, start + bytesRead); <ide> <del> // Consume data automatically <del> // simple/test-https-drain fails without it <del> this.push(pool.slice(start, start + byt...
2
Javascript
Javascript
add tests for selection.{attr,property,style}
53326dac6cd809c29c43c426dd55413b97b2441f
<ide><path>test/core/selection-attr-test.js <add>require("../env"); <add>require("../../d3"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("selection.attr"); <add> <add>suite.addBatch({ <add> "select": { <add> topic: function() { <add> return ...
3
Ruby
Ruby
update copyright notice for 2016
012f42a8b9b9576791109e435616a5dc5250c47b
<ide><path>actionmailer/lib/action_mailer.rb <ide> #-- <del># Copyright (c) 2004-2015 David Heinemeier Hansson <add># Copyright (c) 2004-2016 David Heinemeier Hansson <ide> # <ide> # Permission is hereby granted, free of charge, to any person obtaining <ide> # a copy of this software and associated documentation files ...
1
Ruby
Ruby
enhance unscoped tests
36a45230dac4546b71b145681cf553a5a4f9eccb
<ide><path>activerecord/test/cases/relation_scoping_test.rb <ide> def test_unscoped_with_named_scope_should_not_have_default_scope <ide> assert_equal [DeveloperCalledJamis.find(developers(:poor_jamis).id)], DeveloperCalledJamis.poor <ide> <ide> assert DeveloperCalledJamis.unscoped.poor.include?(developers(:dav...
1
Ruby
Ruby
remove unnecessary `package.json` deletion
8ba3da87672ad243ce0ef378369b1a3719192a58
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def create_tmp_files <ide> <ide> def create_vendor_files <ide> build(:vendor) <del> <del> if options[:skip_yarn] <del> remove_file "package.json" <del> end <ide> end <ide> <ide> def delete_app_as...
1
Python
Python
add test for callback threadsafety
d7b3177ea12ef950daa162380695f54496a7c483
<ide><path>numpy/f2py/tests/test_callback.py <ide> import textwrap <ide> import sys <ide> import pytest <add>import threading <add>import traceback <add>import time <add>import random <ide> <ide> import numpy as np <ide> from numpy.testing import assert_, assert_equal, IS_PYPY <ide> def callback(cu, lencu): <ide> ...
1
Ruby
Ruby
play nice with case-sensitive filesystems
fb9b263bc3b35f0b8735c7c2495d75c0cab43a34
<ide><path>Library/Homebrew/cmd/--config.rb <ide> def sha <ide> <ide> def describe_x11 <ide> return "N/A" unless x11_installed? <del> return case x11_path = Pathname.new("/usr/x11").realpath.to_s <del> when "/usr/x11" then "/usr/x11" <del> else "/usr/x11 => #{x11_path}" <add> return case x11_path = P...
1
Python
Python
remove duplicate convert_to_tensor
1589a843bac4390c8377db05cbd6ae650b6210cc
<ide><path>keras/losses.py <ide> def sparse_categorical_crossentropy( <ide> Returns: <ide> Sparse categorical crossentropy loss value. <ide> """ <del> y_pred = tf.convert_to_tensor(y_pred) <del> <ide> return backend.sparse_categorical_crossentropy( <ide> y_true, <ide> y_pred,
1
Ruby
Ruby
disambiguate show_header usage
e1da727a4e1952156be851816cc377bb9704fc02
<ide><path>Library/Homebrew/formula_installer.rb <ide> class FormulaInstaller <ide> def initialize ff, tab=nil <ide> @f = ff <ide> @tab = tab <del> @show_header = true <add> @show_header = false <ide> @ignore_deps = ARGV.ignore_deps? || ARGV.interactive? <ide> @install_bottle = install_bottle? f...
1
PHP
PHP
add a note to offsetset() on why it cannot chain
cb0ac6f9f334217e4e33b072b1958dcf3d47bc50
<ide><path>lib/Cake/Model/Validator/CakeValidationSet.php <ide> public function offsetGet($index) { <ide> } <ide> <ide> /** <del> * Sets or replace a validation rule <add> * Sets or replace a validation rule. <add> * <add> * This is a wrapper for ArrayAccess. Use setRule() directly for <add> * chainable access. <add>...
1
Javascript
Javascript
avoid inline access to symbol.iterator
550e8149036358713be8d5c8a91f7ad8f01d7f6d
<ide><path>lib/internal/util/inspect.js <ide> function formatRaw(ctx, value, recurseTimes, typedArray) { <ide> // Iterators and the rest are split to reduce checks. <ide> // We have to check all values in case the constructor is set to null. <ide> // Otherwise it would not possible to identify all types properly....
2
Python
Python
remove unused type comment that upsets mypy
5cc8e9826bef303723b82ee28f020a26506dac7b
<ide><path>airflow/models/dagrun.py <ide> class DagRun(Base, LoggingMixin): <ide> <ide> task_instances = relationship( <ide> TI, <del> primaryjoin=and_(TI.dag_id == dag_id, TI.execution_date == execution_date), # type: ignore <add> primaryjoin=and_(TI.dag_id == dag_id, TI.execution_date == e...
1
Python
Python
add join to valid merge modes
6f620712b5448643aceb4961475a41ffe6157746
<ide><path>keras/layers/core.py <ide> def __init__(self, layers, mode='sum', concat_axis=-1): <ide> ''' <ide> if len(layers) < 2: <ide> raise Exception("Please specify two or more input layers (or containers) to merge") <del> if mode not in {'sum', 'mul', 'concat', 'ave'}: <add> ...
1
PHP
PHP
fix parse error in 7.2
3fb470233cffec5de7cb570efe85c21d82e308cb
<ide><path>tests/TestCase/Console/ConsoleOptionParserTest.php <ide> public function testHelpUnknownSubcommand() <ide> "Other valid choices:\n" . <ide> "\n" . <ide> "- method", <del> $result, <add> $result <ide> ); <ide> } ...
1
Javascript
Javascript
remove odd inject from describe
6c4f1391bc10ebfd76bb39d3cb7f7b3b3bff4dd5
<ide><path>test/widgetsSpec.js <ide> describe('widget', function() { <ide> dealoc(element); <ide> }); <ide> <del> describe('ng:switch', inject(function($rootScope, $compile) { <add> describe('ng:switch', function() { <ide> it('should switch on value change', inject(function($rootScope, $compile) { <ide> ...
1
Text
Text
fix typo in upgrading_ruby_on_rails.md [ci-skip]
eb1a9ddd914158eb41cbb74611732652ff7f0952
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> The private API of `ActiveSupport::Dependencies` has been deleted. That includes <ide> <ide> A few of highlights: <ide> <del>* If you used `ActiveSupport::Dependencies.constantize` or ``ActiveSupport::Dependencies.safe_constantize`, just change them to `String...
1
Javascript
Javascript
fix bug with 'not' selectors in specifity.js
5bce8f00d78f1cde7188156d486a89072a549a12
<ide><path>vendor/specificity.js <ide> // source: MooTools DOM branch -> https://raw.github.com/arian/DOM/matcher-specificity/Source/specificity.js <ide> // changed to be compatible with our require system <add>// change line <add>// for (var ii = nots.length; ii--;) s += this.specificity(nots[ii]); <add>// for (...
1
Javascript
Javascript
update doc samples for changed file name
185f83aca3f01020616468d98be05ad8b6a774eb
<ide><path>docs/docusaurus.config.js <ide> module.exports = { <ide> organizationName: 'chartjs', // Usually your GitHub org/user name. <ide> projectName: 'chartjs.github.io', // Usually your repo name. <ide> plugins: [require.resolve('@docusaurus/plugin-google-analytics')], <del> scripts: ['https://www.chartjs.org/d...
1
Ruby
Ruby
convert non-`numeric` values to floats
57fb74e081005806f729cb7b03320f050fa6e67b
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> def validate_each(record, attr_name, value) <ide> return <ide> end <ide> <del> if raw_value.is_a?(String) <add> unless raw_value.is_a?(Numeric) <ide> value = parse_raw_value_as_a_number(raw_value) <ide> ...
1
Python
Python
remove the async helper method
2889da67cb15ac6d5d882781d54014286d9ae010
<ide><path>src/flask/app.py <ide> from werkzeug.exceptions import BadRequestKeyError <ide> from werkzeug.exceptions import HTTPException <ide> from werkzeug.exceptions import InternalServerError <add>from werkzeug.local import ContextVar <ide> from werkzeug.routing import BuildError <ide> from werkzeug.routing import M...
3
Javascript
Javascript
fix error messages in server/export.js
27f517d27d1d261eb7209e244536c5b7659ee1cc
<ide><path>server/export.js <ide> export default async function (dir, options) { <ide> // Get the exportPathMap from the `next.config.js` <ide> if (typeof config.exportPathMap !== 'function') { <ide> printAndExit( <del> '> Could not found "exportPathMap" function inside "next.config.js"\n' + <del> '> ...
1
Javascript
Javascript
remove unnecessary asserts in core
01a55ee8cb2798217c8507fac8ac65249c105d54
<ide><path>lib/internal/http2/core.js <ide> function onSessionTrailers(id) { <ide> assert(stream !== undefined, <ide> 'Internal HTTP/2 Failure. Stream does not exist. Please ' + <ide> 'report this as a bug in Node.js'); <del> const getTrailers = stream[kState].getTrailers; <del> // We should not h...
1
Mixed
Javascript
restrict addendpoint to before quicsocket bind
b80108c033325c00dabbde945522e7f3535a3977
<ide><path>doc/api/quic.md <ide> added: REPLACEME <ide> **Default**: `'udp4'`. <ide> * Returns: {QuicEndpoint} <ide> <del>Creates and adds a new `QuicEndpoint` to the `QuicSocket` instance. <add>Creates and adds a new `QuicEndpoint` to the `QuicSocket` instance. An <add>error will be thrown if `quicsock.addEndpoin...
3
Javascript
Javascript
buffer data to only emit 'line' on '\n'
e28f77cbad1dea617aeda18513b61e6ecce8e294
<ide><path>lib/readline.js <ide> Interface.prototype.write = function(d, key) { <ide> this.terminal ? this._ttyWrite(d, key) : this._normalWrite(d, key); <ide> }; <ide> <add>// telnet on windows sends every single keystroke seperately, so we need <add>// to buffer them and only fire the 'line' event when a \n is sen...
2
Javascript
Javascript
make diff across dst work
efa67e82c0f1f0fb939e458c15a7e41b235b42d3
<ide><path>moment.js <ide> <ide> diff : function (input, val, asFloat) { <ide> var inputMoment = moment(input), <del> diff = this._d - inputMoment._d, <add> zoneDiff = (this.zone() - inputMoment.zone()) * 6e4, <add> diff = this._d - inputMoment._d - zone...
2
Go
Go
replace "sleep" by "top" in test implementation
e5b7f61f090bfc951590dd5dad3f6bb1ce3888ba
<ide><path>integration-cli/docker_api_containers_test.go <ide> type containerPs struct { <ide> func (s *DockerSuite) TestContainerPsOmitFields(c *check.C) { <ide> name := "pstest" <ide> port := 80 <del> runCmd := exec.Command(dockerBinary, "run", "-d", "--name", name, "--expose", strconv.Itoa(port), "busybox", "sleep...
1
Javascript
Javascript
update current challenge logic
42aae365f6ef33d2f1851c1ba66e9476082c7c8d
<ide><path>server/boot/challenge.js <ide> module.exports = function(app) { <ide> req.user.currentChallenge.challengeBlock = '0'; <ide> req.user.currentChallenge.dashedName = <ide> challengeMapWithDashedNames['0'][0]; <del> req.user.save(function(err) { <del> if (err) { <del> ret...
1
Ruby
Ruby
add rubocop to combine multiple calls
06518ec6132d4191daed18ee4352d5746af6573b
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> EOS <ide> end <ide> <add> # This cop makes sure that the `generate_completions_from_executable` DSL is used with only <add> # a single, combined call for all shells. <a...
1
PHP
PHP
use makelistener for wildcards
4acd4185d2c672e55e24891c7c5483f987790a29
<ide><path>src/Illuminate/Events/Dispatcher.php <ide> public function listen($event, $listener, $priority = 0) <ide> */ <ide> protected function setupWildcardListen($event, $listener, $priority) <ide> { <del> $this->wildcards[$event][] = $listener; <add> $this->wildcards[$event][] = $this->makeListener($listener)...
1
Text
Text
use callback form for redux batch example
e3f8dceac3fb6dc6485e5de29a7c0fe34813be1a
<ide><path>docs/introduction/Ecosystem.md <ide> const store = configureStore({ <ide> Store enhancer that allows dispatching arrays of actions <ide> <ide> ```js <del>const store = configureStore({ reducer, enhancers: [reduxBatch] }) <add>const store = configureStore({ reducer, enhancers: (existingEnhancersArray) => [re...
1
Text
Text
fix code examples in `crypto.md`
ade5fd41002cefe1c0c299d9a8eb75a978e48dc8
<ide><path>doc/api/crypto.md <ide> Example: Using `Cipher` and piped streams: <ide> import { <ide> createReadStream, <ide> createWriteStream, <del>} from 'fs'; <add>} from 'node:fs'; <ide> <ide> import { <ide> pipeline <del>} from 'stream'; <add>} from 'node:stream'; <ide> <ide> const { <ide> scrypt, <ide> co...
1
Python
Python
honor the newline parameter
1c6b56a92267a4fb5092dd6df1e6ccf113115944
<ide><path>celery/bin/celeryd_multi.py <ide> def execute_from_commandline(self, argv, cmd='celeryd'): <ide> return self.retcode <ide> <ide> def say(self, m, newline=True): <del> self.fh.write('%s\n' % m if m else m) <add> self.fh.write('%s%s' % (m, '\n' if newline else '')) <ide> <ide> d...
1
Text
Text
fix small grammar issue introduced in
cd6605438dd1c765d206ff4bd54ea2d33884821d
<ide><path>guides/source/5_0_release_notes.md <ide> Please refer to the [Changelog][active-record] for detailed changes. <ide> were getting rescued and printed in the logs, unless you used <ide> the (newly deprecated) `raise_in_transactional_callbacks = true` option. <ide> <del> Now these errors are not res...
1
Javascript
Javascript
add flow libdefs for `global`
b931aa735fcbefe40eccd8344ae28ab6eec06930
<ide><path>flow/global.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow strict <add> * @format <add> */ <add> <add>/** <add> * `global...
1
PHP
PHP
add missing @return tags
474339881d2d757d13b741d1d3abd5ea001a3c95
<ide><path>src/Model/Behavior/TimestampBehavior.php <ide> class TimestampBehavior extends Behavior { <ide> * overwrite the events to listen on <ide> * <ide> * @param array $config The config for this behavior. <add> * @return void <ide> */ <ide> public function initialize(array $config) { <ide> if (isset($config...
2
Ruby
Ruby
restore autoloading test for sti
194866854f9c38d3ff45f283a2eae835077a7152
<ide><path>activerecord/test/cases/inheritance_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "active_support/inflector" <add>require "zeitwerk" <ide> require "cases/helper" <ide> require "models/author" <ide> require "models/company" <ide> def test_new_without_storing_full_sti_class <ide> end <id...
1
Java
Java
update stomp support to reactor-netty 0.6
70bab23609a63903dde7112983a324748c371146
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyTcpConnection.java <ide> public ReactorNettyTcpConnection(NettyInbound inbound, NettyOutbound outbound, <ide> <ide> @Override <ide> public ListenableFuture<Void> send(Message<P> message) { <del> ByteBuf byteBuf = this.in...
1
Python
Python
fix scimath.power for negative integer input
1031df26af6d9b209458fb229a987247bf2d5497
<ide><path>numpy/lib/scimath.py <ide> def _fix_real_lt_zero(x): <ide> x = _tocomplex(x) <ide> return x <ide> <add>def _fix_int_lt_zero(x): <add> x = asarray(x) <add> if any(isreal(x) & (x < 0)): <add> x = x * 1.0 <add> return x <add> <ide> def _fix_real_abs_gt_1(x): <ide> x = asarray(x)...
1
Ruby
Ruby
avoid intermediate option objects
11f880801c1ccf11a9fc2a1d0dc469dbba8b2a15
<ide><path>Library/Homebrew/formula_installer.rb <ide> def sanitized_ARGV_options <ide> end <ide> <ide> def build_argv <del> Options.create(sanitized_ARGV_options) + options <add> sanitized_ARGV_options + options.as_flags <ide> end <ide> <ide> def build
1