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
remove datasets requirement
d194d639abb51711ee212a61077fe91c0cfa727d
<ide><path>src/transformers/testing_utils.py <ide> <ide> from .deepspeed import is_deepspeed_available <ide> from .file_utils import ( <del> is_datasets_available, <ide> is_detectron2_available, <ide> is_faiss_available, <ide> is_flax_available, <ide> def require_torch_tf32(test_case): <ide> ret...
19
Python
Python
add binomial heap
f31a812c468e41c3f5f7f170ae1dd5fa13bae6dd
<ide><path>data_structures/heap/binomial_heap.py <add>""" <add> Binomial Heap <add> <add> Reference: Advanced Data Structures, Peter Brass <add>""" <add> <add> <add>class Node: <add> """ <add> Node in a doubly-linked binomial tree, containing: <add> - value <add> - size of left subtree...
1
PHP
PHP
use link to migration guide instead
15aba9ad3db623e885d3c036065c1e88fb1be7ff
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> * It can also check for HTTP caching headers like `Last-Modified`, `If-Modified-Since` <ide> * etc. and return a response accordingly. <ide> * <del> * ## Replacing Deprecated methods <del> * <del> * - Replace `accepts()` with `$this->request->acce...
1
Ruby
Ruby
add support for fish shell completions
de43ac75032e7a1170b0def6500dffb48dba9bf7
<ide><path>Library/Homebrew/caveats.rb <ide> def caveats <ide> caveats << f.keg_only_text if f.keg_only? && f.respond_to?(:keg_only_text) <ide> caveats << bash_completion_caveats <ide> caveats << zsh_completion_caveats <add> caveats << fish_completion_caveats <ide> caveats << plist_caveats <ide> ...
3
Python
Python
remove redundant ``session.commit()`` in migration
e81c7df9dc634d7bbad401c677c71e627f7601b8
<ide><path>airflow/migrations/versions/cc1e65623dc7_add_max_tries_column_to_task_instance.py <ide> def upgrade(): <ide> sessionmaker = sa.orm.sessionmaker() <ide> session = sessionmaker(bind=connection) <ide> if not bool(session.query(TaskInstance).first()): <del> session.commit() <id...
1
Java
Java
extract unsubscribetester to top level
12954a69895db8e60522c72557b93c53973dc436
<ide><path>rxjava-core/src/main/java/rx/subjects/RepeatSubject.java <ide> <ide> import org.junit.Test; <ide> import org.mockito.Mockito; <del>import rx.Observable; <ide> import rx.Observer; <ide> import rx.Subscription; <ide> import rx.subscriptions.Subscriptions; <add>import rx.testing.UnsubscribeTester; <ide> import...
2
Text
Text
correct first argument name into mapstatetoprops
ae866e34ef4a03a0d5bc5ce7f2ae23fcc6784c21
<ide><path>docs/recipes/WritingTests.md <ide> import { connect } from 'react-redux' <ide> export class App extends Component { /* ... */ } <ide> <ide> // Use default export for the connected component (for app) <del>export default connect(mapDispatchToProps)(App) <add>export default connect(mapStateToProps)(App) <ide>...
1
Text
Text
provide a template for new issues
6c11d07759bcb6e697d2aea37ce7e88b5e0c0260
<ide><path>CONTRIBUTING.md <ide> Please also include the steps required to reproduce the problem if <ide> possible and applicable. This information will help us review and fix <ide> your issue faster. <ide> <add>### Template <add> <add>``` <add>Description of problem: <add> <add> <add>`docker version`: <add> <add> <a...
1
Javascript
Javascript
throw error if port/path does not exist in options
4a0466f23a67a8b17d652ea5c5b89dd202f3160c
<ide><path>lib/net.js <ide> const errors = require('internal/errors'); <ide> const { <ide> ERR_INVALID_ADDRESS_FAMILY, <ide> ERR_INVALID_ARG_TYPE, <add> ERR_INVALID_ARG_VALUE, <ide> ERR_INVALID_FD_TYPE, <ide> ERR_INVALID_IP_ADDRESS, <ide> ERR_INVALID_OPT_VALUE, <ide> Server.prototype.listen = function(...arg...
2
Text
Text
fix travis links in readme
18a70fff662488926c719715086dbc53b7c63aad
<ide><path>README.md <ide> We encourage you to contribute to Ruby on Rails! Please check out the <ide> <ide> ## Code Status <ide> <del>* [![Build Status](https://secure.travis-ci.org/rails/rails.png)](http://travis-ci.org/rails/rails) <add>* [![Build Status](https://api.travis-ci.org/rails/rails.png)](https://travis-...
1
Mixed
Javascript
add abortsignal support
20de5f7efce655d435cfb5ae0811577314fbdeb9
<ide><path>doc/api/child_process.md <ide> lsExample(); <ide> <!-- YAML <ide> added: v0.1.91 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/36308 <add> description: AbortSignal support was added. <ide> - version: v8.8.0 <ide> pr-url: https://github.com/nodejs/nod...
4
Ruby
Ruby
fix rubocop warnings
fb0e121686fa5212362d701b1d0dfb705c56c5d6
<ide><path>Library/Homebrew/requirements/java_requirement.rb <ide> class JavaRequirement < Requirement <ide> next false unless File.executable? "/usr/libexec/java_home" <ide> <ide> args = %w[--failfast] <del> args << "--version" << "#{@version}" if @version <add> args << "--version" << @version.to_s if @...
1
Python
Python
fix node matching bug caused by lower function
d010f5a123e724a168e2f30a3a6c903f7c0443d1
<ide><path>spacy/pattern/pattern.py <ide> def match_token(token, <ide> 'lemma': lambda t: t.lemma_, <ide> } <ide> <del> if lower: <del> bind_map = {key: lambda t: func(t).lower() for key, func in <del> bind_map.items()} <del> <ide> for target_key, target_value in target_att...
1
Go
Go
fix panic due to nil bind options
4c2e1a9cb04614d360e91a81959cb196380283b1
<ide><path>api/client/service/opts.go <ide> func (m *MountOpt) Set(value string) error { <ide> return mount.VolumeOptions <ide> } <ide> <add> bindOptions := func() *swarm.BindOptions { <add> if mount.BindOptions == nil { <add> mount.BindOptions = new(swarm.BindOptions) <add> } <add> return mount.BindOptions <a...
1
Java
Java
use volatile for sdidinit in reactbridge
c3a07b6dcc56260b288dc11ed168fd723c7c4256
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactBridge.java <ide> public class ReactBridge { <ide> private static volatile long sLoadStartTime = 0; <ide> private static volatile long sLoadEndTime = 0; <ide> <del> private static boolean sDidInit = false; <add> private static volatile boolean ...
1
PHP
PHP
move loader to contracts.
442ea4d4dc8f4035da8adb23ee16e3caefee6f68
<add><path>src/Illuminate/Contracts/Translation/Loader.php <del><path>src/Illuminate/Translation/LoaderInterface.php <ide> <?php <ide> <del>namespace Illuminate\Translation; <add>namespace Illuminate\Contracts\Translation; <ide> <del>interface LoaderInterface <add>interface Loader <ide> { <ide> /** <ide> * L...
5
Ruby
Ruby
add null check on style results
23846d6ca82225c1e6941df199a1ea643981884b
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit <ide> formula_count += 1 <ide> problem_count += fa.problems.size <ide> problem_lines = format_problem_lines(fa.problems) <del> corrected_problem_count = options[:style_offenses].count(&:corrected?) <add> corrected_problem_count = o...
1
Text
Text
add link to node-code-ide-configs in testing
e55d65384d3feb3dd1bb7341a23766663fbcdba6
<ide><path>BUILDING.md <ide> loopback interface on Ubuntu: <ide> sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 <ide> ``` <ide> <add>You can use <add>[node-code-ide-configs](https://github.com/nodejs/node-code-ide-configs) <add>to run/debug tests, if your IDE configs are present. <add> <ide> #### Running Coverage <ide...
1
Ruby
Ruby
use nehalem flags on >= sierra
04fbdce3bb963d300179ca6c14812e282d379dbd
<ide><path>Library/Homebrew/extend/os/hardware.rb <ide> if OS.mac? <add> require "extend/os/mac/hardware" <ide> require "extend/os/mac/hardware/cpu" <ide> elsif OS.linux? <ide> require "extend/os/linux/hardware/cpu" <ide><path>Library/Homebrew/extend/os/mac/hardware.rb <add>module Hardware <add> def self.oldest_c...
3
PHP
PHP
fix return type in cache contract
cf188c7fb6cadbd53c3971f56e6fd3252281d87e
<ide><path>src/Illuminate/Cache/RedisTaggedCache.php <ide> class RedisTaggedCache extends TaggedCache <ide> * @param string $key <ide> * @param mixed $value <ide> * @param \DateTime|float|int|null $minutes <del> * @return void <add> * @return bool <ide> */ <ide> public function pu...
2
Java
Java
improve illegal mimetype checks
50c11028d5816a6cc390f85167736fa412d1eb29
<ide><path>spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2016 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use thi...
2
Javascript
Javascript
improve error message for code generating errors
37e4f24f1029ecd43437afa3f1345d89876e1b8b
<ide><path>lib/ModuleTemplate.js <ide> module.exports = class ModuleTemplate extends Tapable { <ide> } <ide> <ide> render(module, dependencyTemplates, options) { <del> const moduleSource = module.source( <del> dependencyTemplates, <del> this.runtimeTemplate, <del> this.type <del> ); <del> const moduleSource...
1
PHP
PHP
add tests for unknown type scenario
125389e7ab9485c1da8c9846c50983484a3e9a3d
<ide><path>tests/TestCase/Http/Middleware/BodyParserMiddlewareTest.php <ide> public function testAddParserOverwrite() <ide> <ide> $this->assertAttributeEquals(['application/json' => 'strpos'], 'parsers', $parser); <ide> } <add> <add> /** <add> * test skipping parsing on unknown type <add> * <add...
1
Text
Text
update style guide
296409d9d08a159e6416aa6854f461522e00898d
<ide><path>CONTRIBUTING.md <ide> For more information on how to work with Atom's official packages, see <ide> * Avoid spaces inside the curly-braces of hash literals: <ide> * `{a: 1, b: 2}` instead of `{ a: 1, b: 2 }` <ide> * Include a single line of whitespace between methods. <add>* Capitalize initialisms and acr...
1
Go
Go
set network id as part of parsenetworkoptions
798021af9f7ab8078bd3d93ae0ade666fae3a0a1
<ide><path>libnetwork/drivers/macvlan/macvlan_network.go <ide> func (d *driver) CreateNetwork(nid string, option map[string]interface{}, nInfo <ide> if err != nil { <ide> return err <ide> } <del> config.ID = nid <ide> err = config.processIPAM(nid, ipV4Data, ipV6Data) <ide> if err != nil { <ide> return err <ide>...
1
Javascript
Javascript
improve assert message
625971271b1b9208cd0da53d55f4e5669df3f129
<ide><path>test/parallel/test-http-client-timeout-agent.js <ide> server.listen(0, options.host, function() { <ide> <ide> process.on('exit', function() { <ide> console.error(`done=${requests_done} sent=${requests_sent}`); <del> assert.strictEqual(requests_done, requests_sent, <del> 'timeout on ht...
1
Ruby
Ruby
use private attr_reader
6d63b5e49a399fe246afcebad45c3c962de268fa
<ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb <ide> def table <ide> tables.first <ide> end <ide> <del> protected <add> private <ide> attr_reader :alias_tracker <ide> end <ide> end <ide><path>activerecord/lib/active_record/...
12
Java
Java
fix lint for d2880851
804b23811b6243bf4d8405c36720b0819edd27c9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java <ide> public class ReactEditText extends EditText { <ide> private @Nullable SelectionWatcher mSelectionWatcher; <ide> private final InternalKeyListener mKeyListener; <ide> <del> private static KeyListener sKeyListener = Qw...
2
Javascript
Javascript
send credentials with on-demand-entries-ping
48e4c771c2655c4799dc05a66d0ef3dd8dfaa427
<ide><path>client/on-demand-entries-client.js <ide> export default ({assetPrefix}) => { <ide> try { <ide> const url = `${assetPrefix || ''}/_next/on-demand-entries-ping?page=${Router.pathname}` <ide> const res = await fetch(url, { <del> credentials: 'omit' <add> credentials: 'same-origin' ...
1
Python
Python
use `assertraises` to simplify testing code
b949a3bea8fedc81b9426c50f7864639ea2731ef
<ide><path>libcloud/test/compute/test_cloudstack.py <ide> def test_create_node_immediate_failure(self): <ide> size = self.driver.list_sizes()[0] <ide> image = self.driver.list_images()[0] <ide> CloudStackMockHttp.fixture_tag = 'deployfail' <del> try: <del> self.driver.create_no...
3
Text
Text
use the canonical router on the changelog entry
ebc5bdb8e728d236d4b6cdf4d26246dfd1d62899
<ide><path>actionview/CHANGELOG.md <ide> After: <ide> <ide> link_to(action: 'bar', controller: 'foo') { content_tag(:span, 'Example site') } <del> # => "<a href=\"/\"><span>Example site</span></a>" <add> # => "<a href=\"/foo/bar\"><span>Example site</span></a>" <ide> <ide> *Murahashi San...
1
Javascript
Javascript
add keystream tests
b3f592aa6c605d7e12f2f009eb3bdb1aaae8b36d
<ide><path>packages/ember-metal/tests/streams/key-stream-test.js <ide> import Stream from "ember-metal/streams/stream"; <ide> import KeyStream from "ember-metal/streams/key-stream"; <add>import { set } from "ember-metal/property_set"; <ide> <del>var source, value; <add>var source, object, count; <add> <add>function in...
1
Ruby
Ruby
install bundler <2
5b7404a0d2a1168267b7e69aecc4c51fe4b80852
<ide><path>Library/Homebrew/dev-cmd/tests.rb <ide> def tests <ide> ENV["GIT_#{role}_DATE"] = "Sun Jan 22 19:59:13 2017 +0000" <ide> end <ide> <del> Homebrew.install_gem_setup_path! "bundler" <add> Homebrew.install_gem_setup_path! "bundler", "<2" <ide> system "bundle", "install" unless qu...
2
Java
Java
fix issue with generic @requestbody arguments
c0baea58c0a14ea34d53f3823704892154b7803e
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/AbstractMessageConverterMethodArgumentResolver.java <ide> package org.springframework.web.servlet.mvc.method.annotation; <ide> <ide> import java.io.IOException; <add>import java.lang.reflect.Array; <add>import java.lang.reflec...
4
Javascript
Javascript
remove duplicate tests
85776c0d37316c5aaecd84eedec275bac2cd0298
<ide><path>test/ng/directive/booleanAttrsSpec.js <ide> describe('boolean attr directives', function() { <ide> }); <ide> <ide> <del> it('should bind href', inject(function($rootScope, $compile) { <del> element = $compile('<a ng-href="{{url}}"></a>')($rootScope) <del> $rootScope.url = 'http://server'; <del> ...
1
Javascript
Javascript
submit backend projects
740c839f3fcedde5398d9ccc3bf97e93f8ce3502
<ide><path>client/src/templates/Challenges/projects/ProjectForm.js <ide> export class ProjectForm extends Component { <ide> componentDidMount() { <ide> this.props.updateProjectForm({}); <ide> } <del> componentDidUpdate() { <del> this.props.updateProjectForm({}); <del> } <del> componentWillUnmount() { <del...
1
Ruby
Ruby
remove more nesting in python_helper
53c97c3c96620734cbf55a487d9529f03568577e
<ide><path>Library/Homebrew/python_helper.rb <ide> def python_helper(options={:allowed_major_versions => [2, 3]}, &block) <ide> filtered_python_reqs.sort_by{ |py| py.version }.map do |py| <ide> # Now is the time to set the site_packages to the correct value <ide> py.site_packages = lib/py.xy/'site-packages' <...
1
PHP
PHP
adopt new consoleio methods in shell
4edb83f3cddbd71cf1ff7c5190b02cef3a05b7b5
<ide><path>src/Console/Shell.php <ide> public function out($message = null, $newlines = 1, $level = Shell::NORMAL) <ide> */ <ide> public function err($message = null, $newlines = 1) <ide> { <del> $messageType = 'error'; <del> $message = $this->wrapMessageWithType($messageType, $message); <del...
2
Javascript
Javascript
fix direct uploads in ie 11
1a5bf01fe024eb1d91903094327d937f7abcb24d
<ide><path>activestorage/app/assets/javascripts/activestorage.js <del>!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ActiveStorage=e():t.ActiveStorage=e()}(this,function(){return function(t){function...
2
Java
Java
update @since tag
cd619a2f095de60638cf343220606559d8b9464a
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestScopedControllerAdviceIntegrationTests.java <ide> * Integration tests for request-scoped {@link ControllerAdvice @ControllerAdvice} beans. <ide> * <ide> * @author Sam Brannen <del> * @since 5.2.2 <add> * @since 5.1.12...
1
PHP
PHP
fix failing test
42feb8dff63cecd7bac4278e8a271369d573de8a
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testPostLink() { <ide> ), <ide> 'input' => array('type' => 'hidden', 'name' => '_method', 'value' => 'POST'), <ide> '/form', <del> 'a' => array('class' => 'btn btn-danger', 'href' => '#', 'onclick' => 'preg:/if \(confirm\(\'Co...
1
Ruby
Ruby
fix non-condition `elsif`
db8e957c846ee89f6832cc39a304a016ac493c7c
<ide><path>activerecord/test/cases/migration_test.rb <ide> def migrate(x) <ide> else <ide> assert_match(/check that column\/key exists/, error.message) <ide> end <del> elsif <add> elsif current_adapter?(:PostgreSQLAdapter) <ide> assert_match(/column \"last_name\" of relation ...
1
Javascript
Javascript
remove unnecessary calculation in vector3.project
9796f88f0c84dff13ff3723dc7ff3f6da345c610
<ide><path>src/math/Vector3.js <ide> Object.assign( Vector3.prototype, { <ide> <ide> return function project( camera ) { <ide> <del> matrix.multiplyMatrices( camera.projectionMatrix, matrix.getInverse( camera.matrixWorld ) ); <add> matrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse ); <...
1
Java
Java
enforce standard java types in yamlprocessor
58e9b187fedf03da21c4e2270bb5335b941ccf61
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * yo...
2
Text
Text
add personal pronoun for danbev
e0ae50f6366f5d919dcb71bddc1944c296dcd08f
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> * [cjihrig](https://github.com/cjihrig) - <ide> **Colin Ihrig** &lt;cjihrig@gmail.com&gt; (he/him) <ide> * [danbev](https://github.com/danbev) - <del>**Daniel Bevenius** &lt;daniel.bevenius@gmail.com&gt; <add>**Daniel...
1
PHP
PHP
apply fixes from styleci
3cca78e9c1e26b694eb27f3d3ff522f2d6de1d98
<ide><path>src/Illuminate/Auth/AuthManager.php <ide> <ide> use Closure; <ide> use Illuminate\Contracts\Auth\Factory as FactoryContract; <del>use Illuminate\Support\Str; <ide> use InvalidArgumentException; <del>use LogicException; <ide> <ide> class AuthManager implements FactoryContract <ide> { <ide><path>tests/Auth/A...
2
Go
Go
add unit tests for comparekernelversion
c42a4179fc6954a2363b181969978641553955c4
<ide><path>utils_test.go <ide> func assertIndexGet(t *testing.T, index *TruncIndex, input, expectedResult strin <ide> t.Fatalf("Getting '%s' returned '%s' instead of '%s'", input, result, expectedResult) <ide> } <ide> } <add> <add>func assertKernelVersion(t *testing.T, a, b *KernelVersionInfo, result int) { <add> if...
1
Javascript
Javascript
fix config to prefer .web.* exts
644a1ef187dada46cf411141b27813c1cb0219e2
<ide><path>examples/with-react-native-web/next.config.js <ide> module.exports = { <del> webpack: (config, { defaultLoaders }) => { <add> webpack: config => { <ide> config.resolve.alias = { <ide> ...(config.resolve.alias || {}), <ide> // Transform all direct `react-native` imports to `react-native-web`...
1
Javascript
Javascript
enable module.exports mocking in react-test.js
204796868d377acbcbbb1e2de4698b8827dc6b83
<ide><path>src/test/mock-modules.js <ide> * @providesModule mock-modules <ide> */ <ide> <add>var mocks = require("mocks"); <add>var exportsRegistry = {}; <add>var hasOwn = exportsRegistry.hasOwnProperty; <add>var explicitMockMap = {}; <add> <add>function getMock(exports) { <add> try { <add> return mocks.generate...
1
Python
Python
fix maximum_sctype for integer data-types
1ea3f17a8dd077b82b5a1dbf59a8ebdedc40b4f0
<ide><path>numpy/core/numerictypes.py <ide> def _set_array_types(): <ide> _add_array_type('complex', 2*bits) <ide> _gi = dtype('p') <ide> if _gi.type not in sctypes['int']: <del> sctypes['int'].append(_gi.type) <del> sctypes['uint'].append(dtype('P').type) <add> indx = 0 <add> ...
1
Java
Java
use int for maxparts instead of long
fd9678833fc2384c7f61cdb0a734a6d0dddd9628
<ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/SynchronossPartHttpMessageReader.java <ide> public class SynchronossPartHttpMessageReader extends LoggingCodecSupport implem <ide> <ide> private long maxDiskUsagePerPart = -1; <ide> <del> private long maxParts = -1; <add> private int maxPar...
1
Javascript
Javascript
use es6 import for safeareaview component
a69bd9dadfd86afba4cbd88569d86abad9cd3071
<ide><path>Libraries/Components/SafeAreaView/SafeAreaView.js <ide> * @format <ide> */ <ide> <del>const Platform = require('../../Utilities/Platform'); <del>const React = require('react'); <del>const View = require('../View/View'); <add>import Platform from '../../Utilities/Platform'; <add>import * as React from 'rea...
1
Javascript
Javascript
move each proxies into a weak map
00a74888f7776f3808534d6a2a3af5dc9c6d5b98
<ide><path>packages/ember-metal/lib/chains.js <ide> import { get } from './property_get'; <ide> import { descriptorFor, meta as metaFor, peekMeta } from './meta'; <ide> import { watchKey, unwatchKey } from './watch_key'; <ide> import { cacheFor } from './computed'; <add>import { eachProxyFor } from './each_proxy'; <ide...
6
PHP
PHP
use test job classes to fix seralization issue
71745f4f9d3e14f240a32ebffcddf379f807926e
<ide><path>tests/Bus/BusBatchTest.php <ide> public function test_chain_can_be_added_to_batch() <ide> <ide> $batch = $this->createTestBatch($queue); <ide> <del> $chainHeadJob = new class implements ShouldQueue { <del> use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, Batchabl...
1
PHP
PHP
add check for migration table in reset command
4fd9aafa15c85a36eb4e61b873ef1188d11a769d
<ide><path>src/Illuminate/Database/Console/Migrations/ResetCommand.php <ide> public function fire() <ide> <ide> $this->migrator->setConnection($this->input->getOption('database')); <ide> <add> if ( ! $this->migrator->repositoryExists()) <add> { <add> $this->output->writeln('<comment>Migration table not found.</...
2
Javascript
Javascript
increase strictness for test-trace-event
773cdc31ef3e17327d1eb0a3b92828e25457f015
<ide><path>test/parallel/test-trace-event.js <ide> proc_no_categories.once('exit', common.mustCall(() => { <ide> <ide> proc.once('exit', common.mustCall(() => { <ide> assert(common.fileExists(FILE_NAME)); <del> fs.readFile(FILE_NAME, (err, data) => { <add> fs.readFile(FILE_NAME, common.mustCall((err, data)...
1
Python
Python
correct complex data xml parsing
2966c343520147c4027ea48f3fea47913da3ebdb
<ide><path>djangorestframework/parsers.py <ide> def parse(self, stream): <ide> `data` will simply be a string representing the body of the request. <ide> `files` will always be `None`. <ide> """ <del> data = {} <ide> tree = ET.parse(stream) <ide> data = self._xml_convert(t...
1
Text
Text
remove extraneous word "both"
ae7a2b0dfadc8f2ac5b648ad4391101bab7baf51
<ide><path>docs/api-guide/parsers.md <ide> You will typically want to use both `FormParser` and `MultiPartParser` together <ide> <ide> ## MultiPartParser <ide> <del>Parses multipart HTML form content, which supports file uploads. Both `request.data` will be populated with a `QueryDict`. <add>Parses multipart HTML fo...
1
Javascript
Javascript
replace fixturesdir with fixtures module
c11a30dc5159c52aaeff2bcec39f5d5181f8bba2
<ide><path>test/parallel/test-tls-ecdh.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const fixtures = require('../common/fixtures'); <ide> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> const assert = require('assert'); <ide> const tls = require('tls'); <ide> ...
1
Text
Text
update amp docs
4801dcdd15132f485f2701101e4c2ee77b8666c3
<ide><path>docs/advanced-features/amp-support/introduction.md <ide> You can read more about AMP in the official [amp.dev](https://amp.dev/) site. <ide> <ide> To enable AMP support for a page, and to learn more about the different AMP configs, read the [API documentation for `next/amp`](/docs/api-reference/next/amp.md)...
1
Ruby
Ruby
fix the output a bit
3e06ec89447510340dfd27179c5eb2bd613e9035
<ide><path>railties/lib/rails/generators/rails/app/templates/config/application.rb <ide> class Application < Rails::Application <ide> # Configure sensitive parameters which will be filtered from the log file. <ide> config.filter_parameters += [:password] <ide> <del> <% unless options.skip_sprockets? %> <add...
1
PHP
PHP
tweak a few things
124d0451d2c0fdf22e3e18b2338afbf867317457
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function getModels($columns = array('*')) <ide> { <ide> $connection = $this->model->getConnectionName(); <ide> <del> // We will first get the raw results from the query builder. We'll then <add> // First, We will get the raw results from the que...
1
Text
Text
fix changelog typo [ci skip]
9298d60af08767d427d28f1b0dbf76b2d54418b4
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <ide> * Allow ActiveRecord::Relation#pluck to accept multiple columns. Returns an <del> array of arrays containing the type casted values: <add> array of arrays containing the typecasted values: <ide> <ide> Person.pluck(:i...
1
Ruby
Ruby
improve display in `brew info`
a232ac8b1e451aa1345206f8f5043f183b1e6988
<ide><path>Library/Homebrew/requirement.rb <ide> def inspect <ide> end <ide> <ide> def display_s <del> name <add> name.capitalize <ide> end <ide> <ide> def mktemp(&block) <ide><path>Library/Homebrew/requirements/java_requirement.rb <ide> def display_s <ide> else <ide> ">=" <ide> end ...
7
Java
Java
implement scheduler method with duetime
d2a3f29496d22df52ba4bf66aa5c408cf286d4bc
<ide><path>rxjava-core/src/main/java/rx/Scheduler.java <ide> */ <ide> package rx; <ide> <add>import java.util.Date; <ide> import java.util.concurrent.TimeUnit; <ide> <ide> import rx.subscriptions.Subscriptions; <ide> * <ol> <ide> * <li>Java doesn't support extension methods and there are many overload methods need...
2
PHP
PHP
remove unneeded use() statement
7df9ef53f81e8d99cab2ddd30fe2c69b7fedafce
<ide><path>src/Illuminate/Session/SessionServiceProvider.php <ide> protected function registerBootingEvent() <ide> { <ide> $app = $this->app; <ide> <del> $this->app->booting(function($app) use ($app) <add> $this->app->booting(function($app) <ide> { <ide> $app['session']->start(); <ide> }); <ide> protected ...
1
Python
Python
allow head method
d3557bdcd0f4d6a7106267ea0f8a3024f21fd9f9
<ide><path>djangorestframework/compat.py <ide> def request(self, **request): <ide> # django.views.generic.View (Django >= 1.3) <ide> try: <ide> from django.views.generic import View <add> if not hasattr(View, 'head'): <add> # First implementation of Django class-based views did not include head method <a...
4
Ruby
Ruby
add tap class
f7bcfe5115f92e5e88596bf77d34f9a954e4c4b0
<ide><path>Library/Homebrew/tap.rb <add>class Tap <add> TAP_DIRECTORY = HOMEBREW_LIBRARY/"Taps" <add> <add> extend Enumerable <add> <add> attr_reader :user <add> attr_reader :repo <add> attr_reader :name <add> attr_reader :path <add> attr_reader :remote <add> <add> def initialize(user, repo, remote=nil) <add> ...
1
PHP
PHP
add validate with bag method
05227c32f3ae4619d141b2cd5a4918cb13ad944b
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function validate() <ide> return $this->validated(); <ide> } <ide> <add> /** <add> * Run the validator's rules against its data. <add> * <add> * @param string $errorBag <add> * @return array <add> * <add> * @throws...
1
Text
Text
make createpushresponse() more detailled
e7b4ba90035cb5f56166606a348a8468dcd01492
<ide><path>doc/api/http2.md <ide> will result in a [`TypeError`][] being thrown. <ide> added: v8.4.0 <ide> --> <ide> * `headers` {HTTP/2 Headers Object} An object describing the headers <del>* `callback` {Function} <del> <del>Call [`http2stream.pushStream()`][] with the given headers, and wraps the <del>given newly cre...
1
Javascript
Javascript
remove registerextension, add .extensions. tests
0f16af7ee41edc29e9c850a4650b90a6e5e49f37
<ide><path>src/node.js <ide> var module = (function () { <ide> // Set the environ variable NODE_MODULE_CONTEXTS=1 to make node load all <ide> // modules in thier own context. <ide> var contextLoad = false; <del> if (parseInt(process.env["NODE_MODULE_CONTEXTS"]) > 0) contextLoad = true; <add> if (+process.env["N...
2
Javascript
Javascript
add tests for $position for small arrays/objects
bb39d34279fe1e221d35f5d2a274aaf039ea62d4
<ide><path>test/widgetsSpec.js <ide> describe("widget", function(){ <ide> scope.items.push('frodo'); <ide> scope.$eval(); <ide> expect(element.text()).toEqual('misko:first|shyam:middle|doug:middle|frodo:last|'); <add> <add> scope.items.pop(); <add> scope.items.pop(); <add> scope.$eval()...
1
Python
Python
add provide_file_and_upload to gcshook
917e6c4424985271c53dd8c413b211896ee55726
<ide><path>airflow/providers/google/cloud/hooks/gcs.py <ide> def provide_file( <ide> tmp_file.flush() <ide> yield tmp_file <ide> <add> @_fallback_object_url_to_object_name_and_bucket_name() <add> @contextmanager <add> def provide_file_and_upload( <add> self, <add> bucket_...
2
Python
Python
add check for remove_listener method
7886d59c5650f4d8abe1e97d78300c707053f8c8
<ide><path>spacy/language.py <ide> def replace_listeners( <ide> if ( <ide> not hasattr(tok2vec, "model") <ide> or not hasattr(tok2vec, "listener_map") <add> or not hasattr(tok2vec, "remove_listener") <ide> or "model" not in tok2vec_cfg <ide> ): <ide> ...
1
PHP
PHP
use container contract, add class member
7c827d0d2226e4e0788852a7d3837d128081c090
<ide><path>src/Illuminate/Validation/Validator.php <ide> use DateTimeZone; <ide> use Illuminate\Support\Fluent; <ide> use Illuminate\Support\MessageBag; <del>use Illuminate\Container\Container; <add>use Illuminate\Contracts\Container\Container; <ide> use Symfony\Component\HttpFoundation\File\File; <ide> use Symfony\Com...
1
Python
Python
remove deprecated np.lib.ufunclike.log2 function
f7a4ff1b9133440133936fa04442e40f8829d1ab
<ide><path>numpy/lib/tests/test_ufunclike.py <ide> def test_isneginf(self): <ide> assert_equal(res, tgt) <ide> assert_equal(out, tgt) <ide> <del> @deprecated() <del> def test_log2(self): <del> a = nx.array([4.5, 2.3, 6.5]) <del> out = nx.zeros(a.shape, float) <del> tgt = nx.a...
2
Ruby
Ruby
fix typo in inet and cidr saving
6f400dabf79faedec258963a6b37b7614f5d4902
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb <ide> def type_cast(value, column, array_member = false) <ide> else super(value, column) <ide> end <ide> when IPAddr <del> return super(value, column) unless ['inet','cidr'].includes? column....
2
Ruby
Ruby
create dependencieshelpers file, add tests
e05538a7d9f50c821b5605deff534beed85b8a04
<ide><path>Library/Homebrew/cmd/deps.rb <ide> require "ostruct" <ide> require "cli/parser" <ide> require "cask/caskroom" <add>require "dependencies_helpers" <ide> <ide> module Homebrew <ide> extend DependenciesHelpers <ide><path>Library/Homebrew/cmd/uses.rb <ide> require "formula" <ide> require "cli/parser" <ide> re...
5
Ruby
Ruby
handle inconsistent jenkins git_urls
2a61c84be38866c5be788eebea932510608ba805
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> def diff_formulae(start_revision, end_revision, path, filter) <ide> elsif ENV["GIT_BRANCH"] && ENV["GIT_URL"] <ide> %r{origin/pr/(\d+)/(merge|head)} =~ ENV["GIT_BRANCH"] <ide> pr = $1 <del> @url = "#{ENV["GIT_URL"]}/pull/#{pr}" <add> ...
1
Python
Python
switch constraints to oo model
0f12e0119bc8c5c987c741e39024bb87234c8a76
<ide><path>keras/constraints.py <ide> import theano.tensor as T <ide> import numpy as np <ide> <del>def maxnorm(m=2): <del> def maxnorm_wrap(p): <add>class Constraint(object): <add> def __call__(self, p): <add> return p <add> <add>class MaxNorm(Constraint): <add> def __init__(self, m=2): <add> s...
1
Javascript
Javascript
remove double registering of form
1faafa31582c4e9413f48dc7d12f5b681f9fe9fd
<ide><path>src/directive/form.js <ide> function FormController(name, element, attrs) { <ide> addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey); <ide> } <ide> <del> if (parentForm) { <del> parentForm.$addControl(form); <del> } <del> <ide> form.$addControl = function(control) { <ide> ...
1
Text
Text
fix typos in text
46c346bfcca46d19786d906eb7c59b81e598a94f
<ide><path>guide/english/vim/copy-and-paste/index.md <ide> title: Copy and Paste <ide> <ide> # Copying and Pasting in Vim <ide> <del>In Vim, copying is commonly refered to as 'yanking', and pasting remains the same. <add>In Vim, copying is commonly referred to as 'yanking', and pasting remains the same. <ide> <ide> ...
1
Text
Text
fix typo in api routes documentation.
b533f2afab7ac7574170eb287d0b54ab74a38a0f
<ide><path>docs/api-routes/introduction.md <ide> For example, the following API route `pages/api/user.js` handles a simple `json` <ide> export default (req, res) => { <ide> res.statusCode = 200 <ide> res.setHeader('Content-Type', 'application/json') <del> res.end(JSON.stringify({ name: 'Jhon Doe' })) <add> res.en...
1
Javascript
Javascript
accept undefined animation.samplers.interpolation
f4401306b089a0a8f5100761e41de5b7ff8dc0af
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> : THREE.VectorKeyframeTrack; <ide> <ide> var targetName = node.name ? node.name : node.uuid; <add> var interpolation = sampler.interpolation !== undefined ? INTERPOLATION[ sampler.interpolation ] : THREE.In...
1
Python
Python
preserve ndarray subclasses in median
e6f0c9023d9a57a83d83684c2f63ad924038be69
<ide><path>numpy/lib/function_base.py <ide> def median(a, axis=None, out=None, overwrite_input=False): <ide> >>> assert not np.all(a==b) <ide> <ide> """ <del> a = np.asarray(a) <add> a = np.asanyarray(a) <ide> if axis is not None and axis >= a.ndim: <ide> raise IndexError( <ide> "...
2
Javascript
Javascript
add test case for large assets
d3035701f48a329acc6ce558dbd56f0fdfbad87e
<ide><path>lib/TemplatedPathPlugin.js <ide> const replacePathVariables = (path, data, assetInfo) => { <ide> // [path] - /some/path/ <ide> // [name] - file <ide> // [ext] - .js <del> if (data.filename) { <del> if (typeof data.filename === "string") { <del> const { path: file, query, fragment } = parseResource(data...
6
Javascript
Javascript
remove the circular dependency
f3189ace6b5e31a874df421ac2f74da0e77cb14d
<ide><path>lib/_http_agent.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> var net = require('net'); <del>var url = require('url'); <ide> var util = require('util'); <ide> var EventEmitter = require('events').EventEmitter; <del>var ClientRequest = require('_http_client').ClientRequest; <ide> var debug =...
1
Python
Python
fix serialization of reverse relationships
45d4622f090f8d81a04b4d3e888017419676bbc0
<ide><path>rest_framework/serializers.py <ide> def from_native(self, data): <ide> if not self._errors: <ide> return self.restore_object(attrs, instance=getattr(self, 'object', None)) <ide> <add> def field_to_native(self, obj, field_name): <add> """ <add> Override default so that we...
3
Text
Text
edit governance.md for minor updates
f85b6b512b2c50852df24d569794dfc01b56613e
<ide><path>GOVERNANCE.md <ide> See: <ide> * Participation in working groups <ide> * Merging pull requests <ide> <del>The TSC can remove inactive collaborators or provide them with _Emeritus_ <add>The TSC can remove inactive collaborators or provide them with _emeritus_ <ide> status. Emeriti may request that the TSC re...
1
PHP
PHP
adjust name of configuration value
d80b4e7cb067aa100dd47e1185b6ee84812ad224
<ide><path>config/logging.php <ide> 'channels' => [ <ide> 'stack' => [ <ide> 'driver' => 'stack', <del> 'lenient' => false, <ide> 'channels' => ['daily'], <add> 'ignore_exceptions' => false, <ide> ], <ide> <ide> 'single' => [
1
Ruby
Ruby
add platform.variant on linux only
244cacf1c4593d47a3d27a46b9a91ade161ae557
<ide><path>Library/Homebrew/github_packages.rb <ide> def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) <ide> (tab["built_on"]["glibc_version"] if tab["built_on"].present?) || "2.23" <ide> end <ide> <del> variant = if architecture == "arm64" <del> "v8" <del> ...
1
Javascript
Javascript
improve clarity of ternary tests
2a7043fa2327ecb681f306612a96dbf29ec499e7
<ide><path>test/ng/parseSpec.js <ide> describe('parser', function() { <ide> }); <ide> <ide> it('should parse ternary', function(){ <del> var f = scope.f = function(){ return true; }; <del> var g = scope.g = function(){ return false; }; <del> var h = scope.h = function(){ return '...
1
Javascript
Javascript
use import statements in test code
fac507819f7ab4838f1d8b423d803232be93987d
<ide><path>src/adapters/adapter.moment.js <ide> <ide> 'use strict'; <ide> <del>var moment = require('moment'); <del>var adapters = require('../core/core.adapters'); <add>import moment from 'moment'; <add>import adapters from '../core/core.adapters'; <ide> <del>var FORMATS = { <add>const FORMATS = { <ide> datetime: ...
6
Javascript
Javascript
fix missing space before parentheses
043500fb27ed572f197e81b044518bd159c303e1
<ide><path>src/ng/directive/ngPluralize.js <ide> * other numbers, for example 12, so that instead of showing "12 people are viewing", you can <ide> * show "a dozen people are viewing". <ide> * <del> * You can use a set of closed braces(`{}`) as a placeholder for the number that you want substituted <add> * You can u...
1
Ruby
Ruby
ensure message id is present
cfb927ce754199e93740e53aee4e6b40acb396c5
<ide><path>app/models/action_mailroom/inbound_email.rb <ide> class ActionMailroom::InboundEmail < ActiveRecord::Base <ide> has_one_attached :raw_email <ide> enum status: %i[ pending processing delivered failed bounced ] <ide> <add> before_save :generate_missing_message_id <add> <ide> class << self <ide> def...
1
PHP
PHP
remove alias inspire
f663e25b72a7f82b7b19f20230dd6d5bb8792ca4
<ide><path>config/app.php <ide> 'Gate' => Illuminate\Support\Facades\Gate::class, <ide> 'Hash' => Illuminate\Support\Facades\Hash::class, <ide> 'Input' => Illuminate\Support\Facades\Input::class, <del> 'Inspiring' => Illuminate\Foundation\Inspiring::class, <ide> 'Lan...
1
Text
Text
add arm64 macos as experimental
62a56264f618239479088d59e532828d46adccf0
<ide><path>BUILDING.md <ide> platforms. This is true regardless of entries in the table below. <ide> | Windows | x64, x86 | Windows Server 2012 (not R2) | Experimental | | <ide> | Windows | arm64 | >= Windows 10 | Tier 2 (compil...
1
Text
Text
update api docs for architectures
7ed8f4504bc5a64f3c8afb8c2003b0ba92254d3c
<ide><path>website/docs/api/architectures.md <ide> Instead of defining its own `Tok2Vec` instance, a model architecture like <ide> [Tagger](/api/architectures#tagger) can define a listener as its `tok2vec` <ide> argument that connects to the shared `tok2vec` component in the pipeline. <ide> <del><!-- TODO: return type...
1
Javascript
Javascript
add text destructuring to example
774757d628cac1157a36c48204fc4d76facb6c5b
<ide><path>website/src/react-native/index.js <ide> var App = React.createClass({ <ide> {`// Android <ide> <ide> var React = require('react-native'); <del>var { DrawerLayoutAndroid, ProgressBarAndroid } = React; <add>var { DrawerLayoutAndroid, ProgressBarAndroid, Text } = React; <ide> <ide> var App = React.createClass...
1
Javascript
Javascript
treat pointer events like mouse events,
e06f428f6ed99e0fafb2e21c456eafc570e3e5ba
<ide><path>src/event.js <ide> define([ <ide> <ide> var <ide> rkeyEvent = /^key/, <del> rmouseEvent = /^(?:mouse|contextmenu)|click/, <add> rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, <ide> rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, <ide> rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; <ide> <ide> jQuery.E...
1