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 | add inspect to cxxstdlib | cf3c12dd5b23d8b44c56303ba1e4796be8b3b3c0 | <ide><path>Library/Homebrew/cxxstdlib.rb
<ide> def type_string
<ide> type.to_s.gsub(/cxx$/, 'c++')
<ide> end
<ide>
<add> def inspect
<add> "#<#{self.class.name}: #{compiler} #{type}>"
<add> end
<add>
<ide> class AppleStdlib < CxxStdlib
<ide> def apple_compiler?
<ide> true | 1 |
PHP | PHP | reset error_reporting value | 41de250084b3156b2f1eaf33f740274737f3f6f3 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> class ControllerTest extends TestCase
<ide> 'core.posts'
<ide> ];
<ide>
<add> /**
<add> * error level property
<add> *
<add> */
<add> private static $error_level;
<add>
<ide> /**
<ide> * reset environment.
<ide> *... | 1 |
Mixed | Javascript | add optional detail to process emitwarning | dd20e68b0feb966c2a7439c947bbb4d46e3b19fe | <ide><path>doc/api/process.md
<ide> process's [`ChildProcess.disconnect()`][].
<ide> If the Node.js process was not spawned with an IPC channel,
<ide> `process.disconnect()` will be `undefined`.
<ide>
<add>## process.emitWarning(warning[, options])
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* `warning` {... | 3 |
Python | Python | fix hyperparameter_search doc | d20cbb886bd6ea5fe85b3b43112044562f9c3620 | <ide><path>src/transformers/trainer.py
<ide> def hyperparameter_search(
<ide> **kwargs
<ide> ) -> BestRun:
<ide> """
<del> Launch an hyperparameter search using ``optuna`` or ``Ray Tune``. The optimized quantity is determined by the
<del> method, which is the evaluation loss when no me... | 1 |
Javascript | Javascript | prevent cursor up and cursor down from scrolling | 9be5d8affd61d600ce5b1790b23a9caf28d5fc40 | <ide><path>examples/js/controls/OrbitControls.js
<ide> THREE.OrbitControls = function ( object, domElement ) {
<ide>
<ide> //console.log( 'handleKeyDown' );
<ide>
<add> // prevent the browser from scrolling on cursor up/down
<add>
<add> event.preventDefault();
<add>
<ide> switch ( event.keyCode ) {
<ide>
<ide>... | 1 |
PHP | PHP | fix bug in pivot class | e4fa40a23f71d9b9643d29d6149727a7aa3cdca3 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php
<ide> protected function setKeysForSaveQuery($query)
<ide> {
<ide> $query->where($this->foreignKey, $this->getAttribute($this->foreignKey));
<ide>
<del> $query->where($this->otherKey, $this->getAttribute($this->otherKey));
<add> return $query->where(... | 1 |
Javascript | Javascript | replace s_client in test-https-ci-reneg-attack | 43c2a13c9334dad4b1f911dfcb455e8f8a9e4611 | <ide><path>test/pummel/test-https-ci-reneg-attack.js
<ide> if (!common.opensslCli)
<ide> common.skip('node compiled without OpenSSL CLI.');
<ide>
<ide> const assert = require('assert');
<del>const spawn = require('child_process').spawn;
<ide> const tls = require('tls');
<ide> const https = require('https');
<ide> co... | 1 |
Ruby | Ruby | remove unused code | ad44ece292d477e05321fff6037a4423c0e53c2f | <ide><path>actionpack/lib/action_view/helpers/form_helper.rb
<ide> def instantiate_builder(record_name, record_object, options, &block)
<ide> end
<ide> end
<ide>
<del> class InstanceTag
<del> include Helpers::ActiveModelInstanceTag, Helpers::TagHelper, Helpers::FormTagHelper
<del>
<del> attr_r... | 1 |
Ruby | Ruby | avoid shot circuit return | aba688ed5c3d31cc6337a2c772ea30853fe89a90 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb
<ide> def type_cast(value, column, array_member = false)
<ide>
<ide> case value
<ide> when Range
<del> return super(value, column) unless /range$/ =~ column.sql_type
<del> PostgreSQLColumn.rang... | 1 |
Javascript | Javascript | remove temporary variables | f035349d9deed70872f46e7b11af4a7631533f91 | <ide><path>src/geometries/ExtrudeGeometry.js
<ide> function ExtrudeBufferGeometry( shapes, options ) {
<ide>
<ide> t = b / bevelSegments;
<ide> z = bevelThickness * Math.cos( t * Math.PI / 2 );
<del> var s = Math.sin( t * Math.PI / 2 );
<del> bs = bevelSize * s + bevelBaseSize;
<add> bs = bevelSize * Math.... | 1 |
Javascript | Javascript | add integration test | 460b099a631a9159297a8520be97f00af11c8632 | <ide><path>lib/Watching.js
<ide> class Watching {
<ide> this.watcher.pause();
<ide> this.watcher = null;
<ide> }
<add>
<ide> if (this.running) {
<ide> this.invalid = true;
<ide> return false;
<ide> class Watching {
<ide>
<ide> suspend() {
<ide> this.suspended = true;
<add> this.invalid = false;
<id... | 2 |
Javascript | Javascript | fix lint errors | 43e92fa71897bc8aff6a4322e9101c1279661667 | <ide><path>tasks/transpile.js
<ide> module.exports = function (grunt) {
<ide> grunt.log.ok('build/umd/min/moment-with-locales.custom.js');
<ide> }).then(function () {
<ide> var moment = require('../build/umd/min/moment-with-locales.custom.js');
<del> if (moment.locales().filte... | 1 |
Go | Go | hold logfile lock less on readlogs | a67e1599096a6810fe5e40791e7ece317c9ba67f | <ide><path>daemon/logger/loggerutils/logfile.go
<ide> func (w *LogFile) readLogsLocked(currentPos logPos, config logger.ReadConfig, wa
<ide> //
<ide> // This method must only be called with w.fsopMu locked for reading.
<ide> func (w *LogFile) openRotatedFiles(config logger.ReadConfig) (files []readAtCloser, err error) ... | 1 |
Java | Java | apply consistent ordering in hierarchical contexts | 0d2bfc926f425c1c1219e38e5f06a5a9dca04e13 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
<ide> public FactoryAwareOrderSourceProvider(Map<Object, String> instancesToBeanNames)
<ide> @Nullable
<ide> public Object getOrderSource(Object obj) {
<ide> String beanName = this.instancesToBeanNames... | 3 |
Text | Text | add new included libs doc | c71bccd72c9c017ced0c5fc2b74dae71e05369df | <ide><path>docs/packages/included_libraries.md
<add># Included Libraries
<add>
<add>All packages can `require` the following popular libraries in their packages:
<add>
<add>* [SpacePen](https://github.com/nathansobo/space-pen) (as `require 'space-pen'`)
<add>* [jQuery](http://jquery.com/) (as `require 'jquery'`)
<add>*... | 1 |
Javascript | Javascript | restore original styles when removing hover | da3aa68f38b9db25156c3b32c56098f9ca70f4d8 | <ide><path>karma.conf.js
<ide> module.exports = function(karma) {
<ide> // These settings deal with browser disconnects. We had seen test flakiness from Firefox
<ide> // [Firefox 56.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms.
<ide> // https://github.com/jasmine/jasmine/issues/1327#... | 13 |
Mixed | Text | clarify what docker diff shows | 4497801c8a35ca2be9467419c5addff5166442d0 | <ide><path>cli/command/container/diff.go
<ide> func NewDiffCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide>
<ide> return &cobra.Command{
<ide> Use: "diff CONTAINER",
<del> Short: "Inspect changes on a container's filesystem",
<add> Short: "Inspect changes to files or directories on a container's fil... | 3 |
Python | Python | fix handling of deadlocked jobs | 2e0421a28347de9a24bb14f37d33988c50b901b2 | <ide><path>airflow/bin/cli.py
<ide> def process_subdir(subdir):
<ide> def get_dag(args):
<ide> dagbag = DagBag(process_subdir(args.subdir))
<ide> if args.dag_id not in dagbag.dags:
<del> raise AirflowException('dag_id could not be found')
<add> raise AirflowException(
<add> 'dag_id coul... | 9 |
Text | Text | use serial comma in errors docs | d72dcb0db451c23df6fa793799e87f63e5e24465 | <ide><path>doc/api/errors.md
<ide> time.
<ide> > Stability: 1 - Experimental
<ide>
<ide> The `--input-type` flag was used to attempt to execute a file. This flag can
<del>only be used with input via `--eval`, `--print` or `STDIN`.
<add>only be used with input via `--eval`, `--print`, or `STDIN`.
<ide>
<ide> <a id="ER... | 1 |
Text | Text | add v3.20.1 to changelog | eff98d676611a5e366f19ebce62fca5c7b10a4c2 | <ide><path>CHANGELOG.md
<ide> - [#18993](https://github.com/emberjs/ember.js/pull/18993) [DEPRECATION] Deprecate `getWithDefault` per [RFC #554](https://github.com/emberjs/rfcs/blob/master/text/0554-deprecate-getwithdefault.md).
<ide> - [#17571](https://github.com/emberjs/ember.js/pull/17571) [BUGFIX] Avoid tampering `... | 1 |
Text | Text | add info for problem 54 - project euler | 0ae1df30c7d22cac8a8b7fc2e660882b3dcfabeb | <ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-54-poker-hands.md
<ide> Consider the following five hands dealt to two players:
<ide> |<strong>4</strong>|4D 6S 9H QH QC <br> Pair of Queens <br> Highest card Nine|3D 6D 7H QD QS <br> Pair of Queens <br> Highest card Seven|Player 1|... | 1 |
Ruby | Ruby | convert remaining usage of whitelist and blacklist | 0efecd913c07104e8fba82d5044c1ad824af68d5 | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide> def make_response!(request)
<ide> # Note: SSEs are not currently supported by IE. However, they are supported
<ide> # by Chrome, Firefox, Opera, and Safari.
<ide> class SSE
<del> WHITELISTED_OPTIONS = %w( retry event id )
<add> PERMIT... | 5 |
PHP | PHP | remove error_reporting() handling/use deprecated() | a834bc4a641199a57d1bc652e1e8b2848e63ebf9 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> class ControllerTest extends TestCase
<ide> 'core.posts'
<ide> ];
<ide>
<del> /**
<del> * error level property
<del> *
<del> */
<del> private static $errorLevel;
<del>
<ide> /**
<ide> * reset environment.
<ide> *
... | 1 |
Javascript | Javascript | add missing semicolons in sea3ddeflate | af33f2a77d94534a050525ee705837f8b7a091ec | <ide><path>examples/js/loaders/sea3d/SEA3DDeflate.js
<ide> var zip_border = new Array( // Order of the bit length code lengths
<ide> var zip_HuftList = function() {
<ide> this.next = null;
<ide> this.list = null;
<del>}
<add>};
<ide>
<ide> var zip_HuftNode = function() {
<ide> this.e = 0; // number of ext... | 1 |
Javascript | Javascript | make watching.close callback optional | b271c105552c50d371018a0938d58ea04d7d8538 | <ide><path>lib/Compiler.js
<ide> Watching.prototype.invalidate = function() {
<ide> };
<ide>
<ide> Watching.prototype.close = function(callback) {
<add> if(callback === undefined) callback = function(){}
<add>
<ide> if(this.watcher) {
<ide> this.watcher.close();
<ide> this.watcher = null; | 1 |
Javascript | Javascript | remove unused variable from try catch | c301518a456f36382a73ed9e36816061107b2444 | <ide><path>lib/internal/repl/await.js
<ide> function processTopLevelAwait(src) {
<ide> let root;
<ide> try {
<ide> root = acorn.parse(wrapped, { ecmaVersion: 10 });
<del> } catch (err) {
<add> } catch {
<ide> return null;
<ide> }
<ide> const body = root.body[0].expression.callee.body; | 1 |
Text | Text | clarify fs.createreadstream options | 384dafe4c9d5fe1e39e74d91d6e7eebeed405415 | <ide><path>doc/api/fs.md
<ide> default value of 64 kb for the same parameter.
<ide>
<ide> `options` can include `start` and `end` values to read a range of bytes from
<ide> the file instead of the entire file. Both `start` and `end` are inclusive and
<del>start at 0. The `encoding` can be any one of those accepted by... | 1 |
Ruby | Ruby | extract railtie load from application | 13d66cdf2544af0d465d596383743b16b5005996 | <ide><path>railties/lib/rails/application.rb
<ide> module Rails
<ide> class Application < Engine
<ide> autoload :Bootstrap, 'rails/application/bootstrap'
<ide> autoload :Finisher, 'rails/application/finisher'
<add> autoload :Railties, 'rails/application/railties'
<ide> autoload :Routes... | 6 |
PHP | PHP | use class constants instead of strings | cafef22a89f3137de7c1b6435824cddb7f8409c7 | <ide><path>src/Mailer/Email.php
<ide> class Email implements JsonSerializable, Serializable
<ide> *
<ide> * @var array
<ide> */
<del> protected $_emailFormatAvailable = ['text', 'html', 'both'];
<add> protected $_emailFormatAvailable = [self::MESSAGE_TEXT, self::MESSAGE_HTML, self::MESSAGE_BOTH];
<... | 2 |
Go | Go | remove daemon dependency in containerattach | b0d947615335fe115b5b93c0c09912a4888e5b29 | <ide><path>builder/builder.go
<ide> type Backend interface {
<ide> GetImage(name string) (Image, error)
<ide> // Pull tells Docker to pull image referenced by `name`.
<ide> Pull(name string) (Image, error)
<del> // ContainerWsAttachWithLogs attaches to container.
<del> ContainerWsAttachWithLogs(name string, cfg *dae... | 3 |
Ruby | Ruby | reduce retained objects in journey | 98d4fc3e82ebfd535b05b7f6e3abb4b03595c2dd | <ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb
<ide> def to_sym
<ide> end
<ide>
<ide> def name
<del> left.tr "*:".freeze, "".freeze
<add> -(left.tr "*:", "")
<ide> end
<ide>
<ide> def type
<ide> class Symbol < Terminal # :nodoc:
<ide> def init... | 1 |
Text | Text | fix grammatical error | 31f5edc49244aea9dd786cfd6ceaba82cd7994e5 | <ide><path>docs/contributing/design-principles.md
<ide> We do, however, provide some global configuration on the build level. For exampl
<ide>
<ide> ### Beyond the DOM
<ide>
<del>We see the value of React in the way it allows us to write components that have less bugs and compose together well. DOM is the original re... | 1 |
PHP | PHP | update doc block | e620433680a5133b4f78fe0df0c37f1728da6ade | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function submit($caption = null, $options = array()) {
<ide> * - `escape` - If true contents of options will be HTML entity encoded. Defaults to true.
<ide> * - `value` The selected value of the input.
<ide> * - `class` - When using multiple = checkbox the ... | 1 |
Javascript | Javascript | enable interopclientdefaultexport for next/jest | d76bbde311da00cd750bf48d49887610960cafb9 | <ide><path>packages/next/jest.js
<del>function interopDefault(mod) {
<del> return mod.default || mod
<del>}
<del>module.exports = interopDefault(require('./dist/build/jest/jest'))
<add>module.exports = require('./dist/build/jest/jest')
<ide><path>packages/next/taskfile.js
<ide> export async function compile(task, opts... | 2 |
Go | Go | add godoc on mountpoint | 14cb9d22df7e6674d7f1ebd73651510f213574c4 | <ide><path>api/types/types.go
<ide> type DefaultNetworkSettings struct {
<ide> // MountPoint represents a mount point configuration inside the container.
<ide> // This is used for reporting the mountpoints in use by a container.
<ide> type MountPoint struct {
<del> Type mount.Type `json:",omitempty"`
<del> Name ... | 1 |
PHP | PHP | add missing docblock | 21959000a2d64e1aae8d8c12d256c0a0234715f2 | <ide><path>src/Illuminate/Support/Facades/Http.php
<ide> * @method static \Illuminate\Http\Client\PendingRequest dd()
<ide> * @method static \Illuminate\Http\Client\PendingRequest dump()
<ide> * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleepMilliseconds = 0, ?callable $when = null... | 1 |
Javascript | Javascript | remove duplicate test | f9cf4b6490a458e2827b059498c29cbe46a492a5 | <ide><path>test/parallel/test-stream-writable-callback-twice.js
<del>'use strict';
<del>const common = require('../common');
<del>const { Writable } = require('stream');
<del>const stream = new Writable({
<del> write(chunk, enc, cb) { cb(); cb(); }
<del>});
<del>
<del>stream.on('error', common.expectsError({
<del> na... | 1 |
Ruby | Ruby | return newest sdk if requested not found | 48bdd4811ec5ef54e4e408b0dcc4b7659c648a7d | <ide><path>Library/Homebrew/os/mac.rb
<ide> def sdk(v = version)
<ide> begin
<ide> @locator.sdk_for v
<ide> rescue SDKLocator::NoSDKError
<add> sdk = @locator.latest_sdk
<add> # don't return an SDK that's older than the OS version
<add> sdk unless sdk.nil? || sdk.version < versi... | 1 |
Java | Java | use string.isempty() instead of string.equals("") | 1f3b595a034c7c554b716ed09e3419a84d3f5fde | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/AnnotationBeanWiringInfoResolver.java
<ide> protected BeanWiringInfo buildWiringInfo(Object beanInstance, Configurable annot
<ide> // Autowiring by name or by type
<ide> return new BeanWiringInfo(annotation.autowire().value(), anno... | 5 |
Ruby | Ruby | skip failing test and add a fixme note | d3563bd661a858d41547fa21f3fedb2e6fcd8b8e | <ide><path>activerecord/test/cases/persistence_test.rb
<ide> def test_update_attribute_for_readonly_attribute
<ide> end
<ide>
<ide> def test_string_ids
<add> # FIXME: Fix this failing test
<add> skip "Failing test. We need this fixed before 4.0.0"
<ide> mv = Minivan.where(:minivan_id => 1234).first_or_in... | 1 |
Python | Python | prepare test/pseudo-tty/testcfg.py python 3 | b337b58146d69702aee15e72dbae82761e15c82e | <ide><path>test/pseudo-tty/testcfg.py
<del>from __future__ import print_function
<ide> # Copyright 2008 the V8 project authors. All rights reserved.
<ide> # Redistribution and use in source and binary forms, with or without
<ide> # modification, are permitted provided that the following conditions are
<ide> # (INCLUDIN... | 1 |
Ruby | Ruby | avoid hardcoded magic number in test teardown | 42b33590f36f9d31486c1de506f417070fd96d7b | <ide><path>activesupport/test/json/encoding_test.rb
<ide> def test_twz_to_json_with_use_standard_json_time_format_config_set_to_true
<ide>
<ide> def test_twz_to_json_with_custom_time_precision
<ide> with_standard_json_time_format(true) do
<del> ActiveSupport::JSON::Encoding.time_precision = 0
<del> zon... | 1 |
PHP | PHP | remove unnecessary code | 75e1c61c5d59ac6801b0e3676036f6cbb18ffc11 | <ide><path>src/Illuminate/Foundation/ProviderRepository.php
<ide> public function load(array $providers)
<ide> $manifest = $this->compileManifest($providers);
<ide> }
<ide>
<del> // If the application is running in the console, we will not lazy load any of
<del> // the service providers. This is mainly because ... | 2 |
Javascript | Javascript | remove duplicate test | 95d762e406bd37c07693e3a5ddbd0f75289e8c3f | <ide><path>packages/use-sync-external-store/src/__tests__/useSyncExternalStoreShared-test.js
<ide> describe('Shared useSyncExternalStore behavior (shim and built-in)', () => {
<ide> }
<ide> });
<ide>
<del> test('Infinite loop if getSnapshot keeps returning new reference', () => {
<del> const store = createEx... | 1 |
Python | Python | simplify the code | 5fe0e8002fc8eb6ffe56219aeb4c730a9b81675c | <ide><path>libcloud/dns/drivers/godaddy.py
<ide> def _to_zones(self, items):
<ide> return zones
<ide>
<ide> def _to_zone(self, item):
<del> if "expires" not in item:
<del> zone = Zone(
<del> id=item["domainId"],
<del> domain=item["domain"],
<del> type=... | 1 |
Text | Text | add more info to fs.dir and fix typos | b41989d03a38347a0ae018c5cbfbab898ba454fe | <ide><path>doc/api/fs.md
<ide> A class representing a directory stream.
<ide>
<ide> Created by [`fs.opendir()`][], [`fs.opendirSync()`][], or [`fsPromises.opendir()`][].
<ide>
<del>Example using async interation:
<del>
<ide> ```js
<ide> const fs = require('fs');
<ide>
<ide> Subsequent reads will result in errors.
<i... | 1 |
PHP | PHP | add test for rendering custom exception | e905309fcfe9e10f45f35ef44c7591d0f11b5398 | <ide><path>src/Error/ExceptionRenderer.php
<ide> protected function _customMethod($method, $exception)
<ide> protected function _method(\Exception $exception)
<ide> {
<ide> list(, $baseClass) = namespaceSplit(get_class($exception));
<del>
<add>
<ide> if (substr($baseClass, -9) === 'Excep... | 2 |
Text | Text | use short links." | 190e665bb1db54d452ed9e0bf93c6985bd8dab5f | <ide><path>docs/Acceptable-Formulae.md
<ide>
<ide> Some formulae should not go in
<ide> [homebrew/core](https://github.com/Homebrew/homebrew-core). But there are
<del>additional [Interesting Taps and Forks](Interesting-Taps-and-Forks) and anyone can start their
<add>additional [Interesting Taps and Forks](Interesting-... | 20 |
Ruby | Ruby | postgresql 10 new relkind for partitioned tables | 36f28fd8184a999f82bd8b0388e31798bd856ae0 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> def add_options_for_index_columns(quoted_columns, **options)
<ide>
<ide> def data_source_sql(name = nil, type: nil)
<ide> scope = quoted_scope(name, type: type)
<del> scope[:type] ||= "'... | 2 |
Ruby | Ruby | fix audit on formulae without homepages | e3f4701f385c286a2cc72c5d07870cc9a6ce0bf4 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_desc
<ide> def audit_homepage
<ide> homepage = formula.homepage
<ide>
<add> if homepage.nil? || homepage.empty?
<add> problem "Formula should have a homepage."
<add> return
<add> end
<add>
<ide> unless homepage =~ %r{^https?://}
<id... | 2 |
Java | Java | remove temporary timeout in take | e128ffe3c0474e3c4ca1a245b7c6f23ede343f5a | <ide><path>rxjava-core/src/main/java/rx/internal/operators/BlockingOperatorToIterator.java
<ide> public T next() {
<ide> }
<ide>
<ide> private Notification<? extends T> take() {
<del> return notifications.poll();
<add> try {
<add> return notifica... | 1 |
Python | Python | remove parentheses around axis | df664eade973041cf4eb554b2048380b3f0b75ae | <ide><path>numpy/fft/fftpack.py
<ide> def fft(a, n=None, axis=-1):
<ide> Length of the transformed axis of the output.
<ide> If `n` is smaller than the length of the input, the input is cropped.
<ide> If it is larger, the input is padded with zeros. If `n` is not given,
<del> the length ... | 1 |
Text | Text | fix a typo in integrationwithexistingapps.md | 7eb876e2691d4c660f84a5e44e86fff85bd5154a | <ide><path>docs/IntegrationWithExistingApps.md
<ide> After you have created your `Podfile`, you are ready to install the React Native
<ide> $ pod install
<ide> ```
<ide>
<del>Your should see output such as:
<add>You should see output such as:
<ide>
<ide> ```bash
<ide> Analyzing dependencies | 1 |
Java | Java | implement tostring() in mockcookie | e17ca9a4e907e045daf0a7ec8e4fa99a0948d248 | <ide><path>spring-test/src/main/java/org/springframework/mock/web/MockCookie.java
<ide> /*
<del> * Copyright 2002-2019 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> * you may not use th... | 1 |
Python | Python | add some docstrings and edit others | 55273d236945aa5f4b6e01682dfef82384a7fd65 | <ide><path>numpy/lib/_datasource.py
<ide> _open = open
<ide>
<ide> def _check_mode(mode, encoding, newline):
<add> """Check mode and that encoding and newline are compatible.
<add>
<add> Parameters
<add> ----------
<add> mode : str
<add> File open mode.
<add> encoding : str
<add> File enco... | 2 |
Ruby | Ruby | replace the build object rather than mutate it | b7b8b88cea98ed4b24b813f13d7b06b538090fa6 | <ide><path>Library/Homebrew/build_options.rb
<ide> require 'options'
<ide>
<ide> class BuildOptions
<del> attr_accessor :args
<ide> attr_accessor :universal
<ide>
<ide> def initialize(args, options)
<ide> def initialize_copy(other)
<ide> end
<ide>
<ide> def include? name
<del> args.include? '--' + name
<... | 3 |
Go | Go | use hostname in the output of `docker node ls` | 4bc91ceeb750db6a6270b2f1821cb0b2f30117fc | <ide><path>api/client/node/list.go
<ide> func printTable(out io.Writer, nodes []swarm.Node, info types.Info) {
<ide> // Ignore flushing errors
<ide> defer writer.Flush()
<ide>
<del> fmt.Fprintf(writer, listItemFmt, "ID", "NAME", "MEMBERSHIP", "STATUS", "AVAILABILITY", "MANAGER STATUS")
<add> fmt.Fprintf(writer, list... | 2 |
Text | Text | fix typo in ar changelog | 739eee67fc34895703a4b9c8dd0fcd29c72afd38 | <ide><path>activerecord/CHANGELOG.md
<ide> * Honor overridden `rack.test` in Rack environment for the connection
<del> management middlware.
<add> management middleware.
<ide>
<ide> *Simon Eskildsen*
<ide> | 1 |
Text | Text | add example of comparing openssl changes | 72785dd9d274cd1b8d91e019cd9d74072a7ba755 | <ide><path>deps/openssl/doc/UPGRADING.md
<ide> and the other is the older one. sections 6.1 and 6.2 describe the two
<ide> types of files. Section 6.3 explains the steps to update the files.
<ide> In the case of upgrading 1.0.2f there were no changes to the asm files.
<ide>
<add>Files changed between two tags can be m... | 1 |
Javascript | Javascript | add getatom to dispatcher api | ff56611fdb3b599519fd8998dcd8d650d1e0b683 | <ide><path>src/Dispatcher.js
<ide> export default class Dispatcher {
<ide> : this.dispatch(action);
<ide> }
<ide>
<add> getAtom() {
<add> return this.atom;
<add> }
<add>
<ide> setAtom(atom) {
<ide> this.atom = atom;
<ide> this.emitChange();
<ide><path>src/components/Provider.js
<ide> import { Pr... | 3 |
Text | Text | fix typo related to | 03c8c6b4eeaa335d69e99d73610e47451bc6f544 | <ide><path>docs/api/Store.md
<ide> You may call [`dispatch()`](#dispatch) from a change listener, with the followin
<ide>
<ide> 1. The subscriptions are snapshotted just before every [`dispatch()`](#dispatch) call. If you subscribe or unsubscribe while the listeners are being invoked, this will not have any effect on ... | 1 |
Javascript | Javascript | add missing copyright headers | fd29448be028125ec1521ddc268314ac20ebc440 | <ide><path>test/disabled/GH-670.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without restriction, i... | 36 |
Ruby | Ruby | remove more warnings on variables | da8f9ca4329499fc9cc9c3f999a9d6eecdc801d3 | <ide><path>actionpack/lib/action_dispatch/routing/url_for.rb
<ide> def url_for(options = nil)
<ide>
<ide> protected
<ide> def _with_routes(routes)
<add> @_routes ||= nil
<ide> old_routes, @_routes = @_routes, routes
<ide> yield
<ide> ensure | 1 |
Python | Python | update variable names | 97d2f7d31f88811d0714cb7089a2a30368f8786d | <ide><path>libcloud/common/dimensiondata.py
<ide> class DimensionDataConnection(ConnectionUserAndKey):
<ide>
<ide> api_path_version_1 = '/oec'
<ide> api_path_version_2 = '/caas'
<del> api_version_1 = '0.9'
<del> api_version_2 = '2.3'
<add> api_version_1 = 0.9
<add>
<add> # Earliest version supporte... | 1 |
Text | Text | standardize action cable readme.md | eff98450ff17855439419db25976d2ecfe54dc04 | <ide><path>actioncable/README.md
<ide> cable.subscriptions.create 'AppearanceChannel',
<ide> # normal channel code goes here...
<ide> ```
<ide>
<add>## Download and Installation
<add>
<add>The latest version of Action Cable can be installed with [RubyGems](#gem-usage),
<add>or with [npm](#npm-usage).
<add>
<add>So... | 1 |
Python | Python | defer translated string evaluation on validators. | 607e4edca77441f057ce40cd90175b1b5700f316 | <ide><path>rest_framework/compat.py
<ide> import django
<ide> from django.apps import apps
<ide> from django.conf import settings
<del>from django.core.exceptions import ImproperlyConfigured
<add>from django.core.exceptions import ImproperlyConfigured, ValidationError
<add>from django.core.validators import \
<add> ... | 2 |
Text | Text | move gdams to emeritus | 72ccf9f53243874fac091726b02bc777a6b76b76 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Gerhard Stöbich** <deb2001-github@yahoo.de> (he/they)
<ide> * [gabrielschulhof](https://github.com/gabrielschulhof) -
<ide> **Gabriel Schulhof** <gabrielschulhof@gmail.com>
<del>* [gdams](https://github.com/... | 1 |
Python | Python | correct an issue introduced in latest commit | d751c0521d1f486fa6d2c926184f2a2f34ccef54 | <ide><path>glances/outputs/glances_curses.py
<ide> def __display_left(self, stat_display):
<ide>
<ide> for p in self._left_sidebar:
<ide> if ((hasattr(self.args, 'enable_' + p) or
<del> hasattr(self.args, 'disable_' + p)) and s in stat_display):
<add> hasattr(self.ar... | 1 |
Ruby | Ruby | use the index on hidden field | 38426458d682ceca7b00c9794f5680767e1a2d7c | <ide><path>actionview/test/template/form_helper_test.rb
<ide> def post.tag_ids; [1]; end
<ide> expected = whole_form("/posts", "new_post", "new_post") do
<ide> "<input checked='checked' id='post_1_tag_ids_1' name='post[1][tag_ids][]' type='checkbox' value='1' />" +
<ide> "<label for='post_1_tag_ids_1'>T... | 1 |
Text | Text | use a single space between sentences | db52ae8b7f9bc458b3ab47369fc828e273efd0df | <ide><path>doc/api/buffer.md
<ide> it allows injection of numbers where a naively written application that does not
<ide> validate its input sufficiently might expect to always receive a string.
<ide> Before Node.js 8.0.0, the 100 byte buffer might contain
<ide> arbitrary pre-existing in-memory data, so may be used to ... | 13 |
Ruby | Ruby | expect xcode 7.0.1 | 00242964801a5030d8661ef42fae9a05101c9230 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> when "10.7" then "4.6.3"
<ide> when "10.8" then "5.1.1"
<ide> when "10.9" then "6.2"
<del> when "10.10" then "6.4"
<del> when "10.11" then "7.0"
<add> when "10.10" then "7.0.1"
<add> when "1... | 1 |
Ruby | Ruby | add benchmark inject code | 7a59a3ee37966ad2378a3d96fbedde42506c5e00 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit
<ide> ENV.activate_extensions!
<ide> ENV.setup_build_environment
<ide>
<add> if ARGV.switch? "D"
<add> FormulaAuditor.module_eval do
<add> instance_methods.grep(/audit_/).map do |name|
<add> method = instance_method(name)
<add> ... | 1 |
Javascript | Javascript | improve win compat of test-repl | 03a119eb70eecde859dab544401bd0e769478e01 | <ide><path>test/simple/test-repl.js
<ide> common.globalCheck = false;
<ide> var net = require('net'),
<ide> repl = require('repl'),
<ide> message = 'Read, Eval, Print Loop',
<del> unix_socket_path = '/tmp/node-repl-sock',
<ide> prompt_unix = 'node via Unix socket> ',
<ide> prompt_tcp = 'node via TCP ... | 1 |
PHP | PHP | convert i18nshell to commands | be6bc9523423d28d1175ac6fa24cfbb2907c155d | <ide><path>src/Command/I18nCommand.php
<add><?php
<add>declare(strict_types=1);
<add>
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyrig... | 6 |
Javascript | Javascript | add url type check in module options | edffad075e1dac0ebea7e70b05e4e49528fc59d2 | <ide><path>test/parallel/test-vm-module-errors.js
<ide> async function checkArgType() {
<ide> });
<ide>
<ide> for (const invalidOptions of [
<del> 0, 1, null, true, 'str', () => {}, Symbol.iterator
<add> 0, 1, null, true, 'str', () => {}, { url: 0 }, Symbol.iterator
<ide> ]) {
<ide> common.expectsError... | 1 |
Python | Python | clean some trailing whitespace | 781bcb674b80169773edd06ab7a2cde8683c93fd | <ide><path>test/test.py
<ide> def do_GET(self):
<ide>
<ide> self.sendFile(path, ext)
<ide>
<del> def do_POST(self):
<add> def do_POST(self):
<ide> numBytes = int(self.headers['Content-Length'])
<ide>
<ide> self.send_response(200) | 1 |
PHP | PHP | add page argument on paginate | 53c6e48ed030f9c8a4d79579b9f411e937967581 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> class Builder
<ide>
<ide> /**
<ide> * The binding backups currently in use.
<del> *
<add> *
<ide> * @var array
<ide> */
<ide> protected $bindingBackups = [];
<ide> protected function runSelect()
<ide> * @param int $perPag... | 1 |
PHP | PHP | apply suggestions from code review | f1c4877b4d717dfee30d3df301083cc516c4214e | <ide><path>src/View/Widget/BasicWidget.php
<ide> public function render(array $data, ContextInterface $context): string
<ide> $data['value'] = $data['val'];
<ide> unset($data['val']);
<ide> if ($data['value'] === false) {
<add> // explicitly convert to 0 to avoid empty string which is... | 1 |
Text | Text | add references to usingimmutablejs, fix typos | 172b8b56ab1421b7912e7e4a9846f512336e6645 | <ide><path>docs/faq/ImmutableData.md
<ide> - [Why does a selector mutating and returning a persistent object to `mapStateToProps` prevent React-Redux from re-rendering a wrapped component?](#shallow-checking-stops-component-re-rendering)
<ide> - [How does immutability enable a shallow check to detect object mutation... | 2 |
Ruby | Ruby | cache the query regexp | 4648aa54c03845c0a3f4e00cba4879ee26ba91c7 | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search
<ide> exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
<ide> elsif ARGV.include? '--desc'
<ide> query = ARGV.next
<add> rx = query_regexp(query)
<ide> Formula.each do |formula... | 1 |
Python | Python | fix import of optimizer | 19a2b9bf27f768a2c3f8c8033b1679e950b493a6 | <ide><path>spacy/compat.py
<ide> cupy = None
<ide>
<ide> try:
<del> from thinc.optimizers import Optimizer
<add> from thinc.neural.optimizers import Optimizer
<ide> except ImportError:
<del> from thinc.optimizers import Adam as Optimizer
<add> from thinc.neural.optimizers import Adam as Optimizer
<ide>... | 1 |
Python | Python | change version to -beta1 | 5ddd0e2074f9fac455e73d4ce430c90432251cbe | <ide><path>libcloud/__init__.py
<ide> """
<ide>
<ide> __all__ = ["__version__", "enable_debug"]
<del>__version__ = '0.6.0-beta'
<add>__version__ = '0.6.0-beta1'
<ide>
<ide> DEFAULT_LOG_PATH = '/tmp/libcloud_debug.log'
<ide> | 1 |
Text | Text | fix broken link in pull-requests.md | 2caa1f54582902a4feae9a4c7a2e30c6718f7005 | <ide><path>doc/guides/contributing/pull-requests.md
<ide> you can take a look at the
<ide> [guide for writing tests in Node.js]: ../writing-tests.md
<ide> [https://ci.nodejs.org/]: https://ci.nodejs.org/
<ide> [IRC in the #node-dev channel]: https://webchat.freenode.net?channels=node-dev&uio=d4
<del>[Onboarding guide]:... | 1 |
Ruby | Ruby | add test coverage for rake notes | b5472cf7f22cb6d06bfdb329b13b919998e4ad7b | <ide><path>railties/test/application/rake/notes_test.rb
<ide> def teardown
<ide> teardown_app
<ide> end
<ide>
<del> test 'notes' do
<add> test 'notes finds notes for certain file_types' do
<add>
<ide> app_file "app/views/home/index.html.erb", "<% # TODO: note in erb %>"
<ide> ap... | 1 |
Go | Go | add minor vet fixes | 26ce3f4c90058a2b2f23a2cb36492cfa7963494c | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func (s *DockerSuite) TestInspectExecID(c *check.C) {
<ide> // But we should still be able to query the execID
<ide> sc, body, err := sockRequest("GET", "/exec/"+execID+"/json", nil)
<ide> if sc != http.StatusOK {
<del> c.Fatalf("received status != 200 OK: %s... | 3 |
Javascript | Javascript | fix typo 'default' spelling | 7085b2bcac4a15149e2a94cf058d13f323921fd6 | <ide><path>src/ng/compile.js
<ide> *
<ide> * #### `template`
<ide> * HTML markup that may:
<del> * * Replace the contents of the directive's element (defualt).
<add> * * Replace the contents of the directive's element (default).
<ide> * * Replace the directive's element itself (if `replace` is true - DEPRECATED).
<... | 1 |
Python | Python | add type hints for gptneo pytorch | 8f3ea7a1e1a85e80210b3d4423b674d9a61016ed | <ide><path>src/transformers/models/gpt_neo/modeling_gpt_neo.py
<ide>
<ide>
<ide> import os
<del>from typing import Tuple
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import torch
<ide> import torch.utils.checkpoint
<ide> def set_input_embeddings(self, new_embeddings):
<ide> )
<ide> def forward(... | 1 |
Javascript | Javascript | increase font test timeout for windows | 34f737c47bd1764b81be4ebda5d93a7ee5ee1070 | <ide><path>test/integration/font-optimization/test/index.test.js
<ide> import {
<ide> } from 'next-test-utils'
<ide> import fs from 'fs-extra'
<ide>
<del>jest.setTimeout(1000 * 30)
<add>jest.setTimeout(1000 * 60 * 2)
<ide>
<ide> const appDir = join(__dirname, '../')
<ide> const nextConfig = join(appDir, 'next.config.... | 1 |
Ruby | Ruby | fix flash remaining after last flash deleted | 3a102d052803f7f066e648454297301310d69906 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def process(action, http_method = 'GET', *args)
<ide>
<ide> if flash_value = @request.flash.to_session_value
<ide> @request.session['flash'] = flash_value
<add> else
<add> @request.session.delete('flash')
<ide> end... | 2 |
PHP | PHP | reduce number of mocks used in hasmany tests | 3d463bc6f0dd590ddcecf1477fa2cd5d33f0b1b2 | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> namespace Cake\Test\TestCase\ORM\Association;
<ide>
<ide> use Cake\Database\Expression\IdentifierExpression;
<add>use Cake\Database\Expression\OrderByExpression;
<ide> use Cake\Database\Expression\QueryExpression;
<ide> use Cake\Database\Expression\TupleC... | 2 |
PHP | PHP | fix incomplete assertion text | 651d33216a125ea2bcfe462f4d52ad5f58baddf3 | <ide><path>tests/TestCase/Database/Schema/MysqlSchemaTest.php
<ide> public function testDescribeJson()
<ide> $this->assertEquals(
<ide> $expected,
<ide> $result->column('data'),
<del> 'Field definition does not match for'
<add> 'Field definition does not match for d... | 1 |
PHP | PHP | fix import ordering | 2d6ee1ec96737c4b6ab68e2c204c6930c0fbb066 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Database;
<ide>
<del>use Cake\Database\Expression\IdentifierExpression;
<ide> use Cake\Database\ExpressionInterface;
<add>use Cake\Database\Expression\IdentifierExpression;
<ide> use Cake\Database\Query;
<ide> use Cake\Databa... | 1 |
Python | Python | fix typo in _iotools.py docstring | 34698b64f90b985396f123f3659edc7a95d232ee | <ide><path>numpy/lib/_iotools.py
<ide> def __call__(self, value):
<ide>
<ide> def upgrade(self, value):
<ide> """
<del> Rind the best converter for a given string, and return the result.
<add> Find the best converter for a given string, and return the result.
<ide>
<ide> The supplied... | 1 |
Python | Python | support bilstm_depth argument in ud-train | 445b81ce3fd4658296fffaf6c8069a60d6d39c9d | <ide><path>spacy/cli/ud_train.py
<ide> def initialize_pipeline(nlp, docs, golds, config, device):
<ide> class Config(object):
<ide> def __init__(self, vectors=None, max_doc_length=10, multitask_tag=False,
<ide> multitask_sent=False, multitask_dep=False, multitask_vectors=None,
<del> n... | 1 |
Go | Go | handle ip route showing mask-less ip addresses | 2e72882216ce13169a578614202830a5b084bfb4 | <ide><path>network.go
<ide> func checkRouteOverlaps(dockerNetwork *net.IPNet) error {
<ide> continue
<ide> }
<ide> if _, network, err := net.ParseCIDR(strings.Split(line, " ")[0]); err != nil {
<del> return fmt.Errorf("Unexpected ip route output: %s (%s)", err, line)
<add> // is this a mask-less IP address?
... | 1 |
Ruby | Ruby | fix empty request inside helpers test | 867e60f6c2f46c1cd23a5dd5b1c89caa559be113 | <ide><path>actionview/lib/action_view/test_case.rb
<ide> module Behavior
<ide> include ActiveSupport::Testing::ConstantLookup
<ide>
<ide> delegate :lookup_context, to: :controller
<del> attr_accessor :controller, :output_buffer, :rendered
<add> attr_accessor :controller, :request, :output_buffer,... | 2 |
Ruby | Ruby | fix issues with writable? detection in brew doctor | bcde6432f3b7e42870ee4b3ee7a6eb06021c62e7 | <ide><path>Library/Contributions/cmds/brew-unpack.rb
<ide> def unpack
<ide> unpack_dir.mkpath unless unpack_dir.exist?
<ide> end
<ide>
<del> raise "Cannot write to #{unpack_dir}" unless unpack_dir.writable?
<add> raise "Cannot write to #{unpack_dir}" unless unpack_dir.writable_real?
<ide>
<ide> fo... | 6 |
PHP | PHP | add assertions for flash/session/cookies | 99884e0f121074f883a4235fc82fc5e02fff4f54 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> class IntegrationTestCase extends TestCase {
<ide> */
<ide> protected $_layoutName;
<ide>
<add>/**
<add> * The session instance from the last request
<add> *
<add> * @var \Cake\Network\Session
<add> */
<add> protected $_requestSession;
<add>
<ide> /**
<ide> * C... | 3 |
PHP | PHP | add typehint to notinornull() | 73172d81239c834a284fa75f7d5bcd829b117983 | <ide><path>src/Database/Expression/QueryExpression.php
<ide> public function notIn($field, $values, $type = null)
<ide> * @param string|null $type the type name for $value as configured using the Type map.
<ide> * @return $this
<ide> */
<del> public function notInOrNull($field, $values, $type = null)
... | 1 |
Text | Text | fix probs in sections 5.6 and 5.9; [ci skip] | 4d1bc027e138df64841f8af3003cae39fb3b133a | <ide><path>guides/source/getting_started.md
<ide> Rails has several security features that help you write secure applications,
<ide> and you're running into one of them now. This one is called
<ide> `strong_parameters`, which requires us to tell Rails exactly which parameters
<ide> we want to accept in our controllers.... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.