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 |
|---|---|---|---|---|---|
Text | Text | fix indentation [ci skip] | 4c18f050b69c4795097255003fe9bb5a650ba7c9 | <ide><path>guides/source/5_1_release_notes.md
<ide> Please refer to the [Changelog][active-record] for detailed changes.
<ide>
<ide> ### Removals
<ide>
<del>* Removed support for passing arguments and block at the same time to
<del> `ActiveRecord::QueryMethods#select`.
<del> ([Commit](https://github.com/rails/ra... | 1 |
Go | Go | fix some places where low-level errors bubbled up | 2a5e85e2e871bf037c976471cf8a14da22ddd9a9 | <ide><path>volume/local/local.go
<ide> import (
<ide> "reflect"
<ide> "sync"
<ide>
<add> "github.com/pkg/errors"
<add>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/idtools"
<ide> "github.com/docker/docker/pkg/mount"
<ide> func New(scope string, rootUID, rootGID int) (*Root, error) {
<ide... | 4 |
Javascript | Javascript | add netlify badge | 3e350ec3d824432e69c44ceebbd14c10225baa8c | <ide><path>website/docusaurus.config.js
<ide> module.exports = {
<ide> {
<ide> label: 'GitHub',
<ide> href: 'https://github.com/reduxjs/redux'
<add> },
<add> {
<add> html: `
<add> <a href="https://www.netlify.com">
<add> ... | 1 |
Javascript | Javascript | remove jquery.curcss, closes gh-801 | 2d37b6ccb8a5fb9eb47a43221ec10faa693e63c5 | <ide><path>src/css.js
<ide> jQuery.extend({
<ide> }
<ide> });
<ide>
<del>// DEPRECATED in 1.3, Use jQuery.css() instead
<del>jQuery.curCSS = jQuery.css;
<del>
<ide> if ( document.defaultView && document.defaultView.getComputedStyle ) {
<ide> curCSS = function( elem, name ) {
<ide> var ret, defaultView, computedSty... | 1 |
Text | Text | add example of bubble sort in swift | 8fd54d9d482ae253c4c46a67dcc80cb98665cecb | <ide><path>client/src/pages/guide/english/algorithms/sorting-algorithms/bubble-sort/index.md
<ide> Now, the array is already sorted, but our algorithm does not know if it is compl
<ide> ### Video Explanation
<ide> [Bubble sort in easy way](https://www.youtube.com/watch?v=Jdtq5uKz-w4)
<ide>
<del>This code will use bubb... | 1 |
Ruby | Ruby | remove unused variable causing warning in 1.9.3 | c4ddc6f693fd63ce047222c1468071a8063f210f | <ide><path>actionpack/test/abstract/abstract_controller_test.rb
<ide> def index
<ide> class TestLayouts < ActiveSupport::TestCase
<ide> test "layouts are included" do
<ide> controller = Me4.new
<del> result = controller.process(:index)
<add> controller.process(:index)
<ide> asser... | 1 |
Text | Text | add note on how to submit a form | 772468183f66de15d02de6e29772808c33d61545 | <ide><path>docs/docs/07-forms.md
<ide> To make an uncontrolled component, `defaultValue` is used instead.
<ide> > Note:
<ide> >
<ide> > You can pass an array into the `value` attribute, allowing you to select multiple options in a `select` tag: `<select multiple={true} value={['B', 'C']}>`.
<add>
<add>### Imperative op... | 1 |
Python | Python | update minimum version of sshtunnel to 0.3.2 | 537963f24d83b08c546112bac33bf0f44d95fe1c | <ide><path>airflow/providers/ssh/hooks/ssh.py
<ide> def get_tunnel(
<ide> )
<ide> else:
<ide> tunnel_kwargs.update(
<del> host_pkey_directories=[],
<add> host_pkey_directories=None,
<ide> )
<ide>
<ide> client = SSHTunnelForwarder(self.re... | 3 |
Ruby | Ruby | add schema cache to new connection pool after fork | 19bc570832e01c47f42ac2096637df59613c0efa | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def pool_for(owner)
<ide> # A connection was established in an ancestor process that must have
<ide> # subsequently forked. We can't reuse the connection, but we can copy
<ide> # the speci... | 3 |
Javascript | Javascript | add simple tests for closed radial areas | dbee8568b3f1e31cc7867c76105c818d772a934c | <ide><path>test/svg/area-radial-test.js
<ide> suite.addBatch({
<ide>
<ide> "interpolate(basis)": {
<ide> "supports basis interpolation": testInterpolation("basis"),
<del> "supports basis-open interpolation": testInterpolation("basis-open")
<add> "supports basis-open interpolation": testInterpolatio... | 1 |
Java | Java | implement snaptoalignment in vertical scrollview | e774c037bce40a4b48e78d2d0a1085a1e4f5a328 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java
<ide> private void flingAndSnap(int velocityX) {
<ide> itemStartOffset = item.getLeft() - (width - item.getWidth());
<ide> break;
<ide> default:
<del> throw new IllegalStateE... | 2 |
Ruby | Ruby | remove unnecessary method delegations | 04e6728dd50cbe80a8f0039e9718dc96bc46e701 | <ide><path>lib/active_storage/service/mirror_service.rb
<ide> class ActiveStorage::Service::MirrorService < ActiveStorage::Service
<ide> attr_reader :services
<ide>
<del> delegate :download, :exist?, :url, :byte_size, :checksum, to: :primary_service
<add> delegate :download, :exist?, :url, to: :primary_service
<id... | 1 |
Go | Go | add context.requestid to event stream | 26b1064967d9fcefd4c35f60e96bf6d7c9a3b5f8 | <ide><path>api/server/container.go
<ide> func (s *Server) getContainersJSON(ctx context.Context, w http.ResponseWriter, r
<ide> config.Limit = limit
<ide> }
<ide>
<del> containers, err := s.daemon.Containers(config)
<add> containers, err := s.daemon.Containers(ctx, config)
<ide> if err != nil {
<ide> return err
... | 68 |
Go | Go | address some minor linting issues and nits | eeef12f46978c534db8c83f29719692e3d86e6ae | <ide><path>daemon/oci_linux.go
<ide> func WithNamespaces(daemon *Daemon, c *container.Container) coci.SpecOpts {
<ide> setNamespace(s, nsUser)
<ide> }
<ide> case ipcMode.IsHost():
<del> oci.RemoveNamespace(s, specs.LinuxNamespaceType("ipc"))
<add> oci.RemoveNamespace(s, "ipc")
<ide> case ipcMode.IsEmpty(... | 2 |
Text | Text | add v3.14.2 to changelog.md | 432c49d2ceb55067f5cf6893c04a2e609bf1fa0d | <ide><path>CHANGELOG.md
<ide> - [#18491](https://github.com/emberjs/ember.js/pull/18491) [DEPRECATION] Deprecate `{{partial}}` per [RFC #449](https://github.com/emberjs/rfcs/blob/master/text/0449-deprecate-partials.md).
<ide> - [#18441](https://github.com/emberjs/ember.js/pull/18441) [DEPRECATION] Deprecate window.ENV
... | 1 |
Text | Text | add third packages nested-multipart-parser | 00cd4ef864a8bf6d6c90819a983017070f9f08a5 | <ide><path>docs/community/third-party-packages.md
<ide> To submit new content, [open an issue][drf-create-issue] or [create a pull reque
<ide> * [djangorestframework-msgpack][djangorestframework-msgpack] - Provides MessagePack renderer and parser support.
<ide> * [djangorestframework-jsonapi][djangorestframework-jsonap... | 1 |
PHP | PHP | fix "typo" | a10bbfbf21466995d0a8c1843447554700791231 | <ide><path>src/Illuminate/Routing/Console/ControllerMakeCommand.php
<ide> protected function buildClass($name)
<ide> $modelClass = $this->parseModel($this->option('model'));
<ide>
<ide> if (! class_exists($modelClass)) {
<del> if ($this->confirm("A {$modelClass} model not exist. ... | 1 |
Ruby | Ruby | remove dead code | d487c3d97827ac9ff976cde5a5d587236a8ffb4c | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> def test cmd, options={}
<ide> end
<ide>
<ide> def check_results
<del> message = "All tests passed and raring to brew."
<del>
<ide> status = :passed
<ide> steps.each do |step|
<ide> case step.status
<ide> when :passed then next
<id... | 1 |
Javascript | Javascript | add tests with multiple re-throw stratiegies | 200c3b7b5846e22cb230842fc6fe475531f9eaa3 | <ide><path>packages/ember/tests/routing/substates_test.js
<ide> QUnit.test('Error events that aren\'t bubbled don\t throw application assertions
<ide> bootApplication('/grandma/mom/sally');
<ide> });
<ide>
<add>QUnit.test('Non-bubbled errors that re-throw aren\'t swallowed', function() {
<add> expect(2);
<add>
<add... | 1 |
Javascript | Javascript | remove unused variables | 13112710e62209861886b96ffc2052fc249f65ff | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> // not be able to attach scope data to them, so we will wrap them in <span>
<ide> forEach($compileNodes, function(node, index){
<ide> if (node.nodeType == 3 /* text node */ && node.nodeValue.match(/... | 2 |
PHP | PHP | trim comment bloat from route class | 5ea2974bd634bbf7990ff7e94710b12a23d801bb | <ide><path>system/route.php
<ide> public function __construct($key, $callback, $parameters = array())
<ide> *
<ide> * @param mixed $route
<ide> * @param array $parameters
<del> * @return mixed
<add> * @return Response
<ide> */
<ide> public function call()
<ide> {
<ide> public function call()
<ide>... | 1 |
Javascript | Javascript | fix polygon.centroid for open polygons | 85ad3c16b031f2e21969123fbf3749f796623226 | <ide><path>d3.geom.js
<ide> d3.geom.polygon = function(coordinates) {
<ide>
<ide> coordinates.centroid = function(k) {
<ide> var i = -1,
<del> n = coordinates.length - 1,
<add> n = coordinates.length,
<ide> x = 0,
<ide> y = 0,
<ide> a,
<del> b,
<add> b = coordi... | 4 |
Text | Text | add 2.12.1 to changelog.md | 3ce075b880e130508e4d7e253ae2930a0d80016c | <ide><path>CHANGELOG.md
<ide> - [#14919](https://github.com/emberjs/ember.js/pull/14919) [DEPRECATION] Deprecate the private `Ember.Router.router` property in favor of `Ember.Router._routerMicrolib`.
<ide> - [#14970](https://github.com/emberjs/ember.js/pull/14970) [BUGFIX] Generate integration tests for template helper... | 1 |
Javascript | Javascript | add default operator to `assert.fail()` | eee5adfab5af5f7eb672cbc3cbbad141c455c54d | <ide><path>lib/assert.js
<ide> function innerFail(obj) {
<ide> function fail(actual, expected, message, operator, stackStartFn) {
<ide> const argsLen = arguments.length;
<ide>
<add> let internalMessage;
<ide> if (argsLen === 0) {
<del> message = 'Failed';
<add> internalMessage = 'Failed';
<ide> } else if ... | 3 |
Go | Go | remove dead code | 1d2b62ceae17238f842bb2a7febf1bead8a982d5 | <ide><path>pkg/plugins/discovery.go
<ide> var (
<ide> specsPaths = []string{"/etc/docker/plugins", "/usr/lib/docker/plugins"}
<ide> )
<ide>
<del>// Registry defines behavior of a registry of plugins.
<del>type Registry interface {
<del> // Plugins lists all plugins.
<del> Plugins() ([]*Plugin, error)
<del> // Plugin... | 1 |
Javascript | Javascript | add color import | e4702c1b0f2bcab36ffcd3585ba3e77bbe3fce83 | <ide><path>src/renderers/WebGLRenderer.js
<ide> import { WebGLUniforms } from './webgl/WebGLUniforms.js';
<ide> import { WebGLUtils } from './webgl/WebGLUtils.js';
<ide> import { WebXRManager } from './webxr/WebXRManager.js';
<ide> import { WebGLMaterials } from "./webgl/WebGLMaterials.js";
<add>import { Color } from '... | 1 |
Java | Java | fix resetting margins and borders on android | 9e670a64fcb0062f20e89a9b0bca07f99ec23548 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/LayoutShadowNode.java
<ide> public void setJustifyContent(@Nullable String justifyContent) {
<ide> ViewProps.MARGIN_RIGHT,
<ide> ViewProps.MARGIN_TOP,
<ide> ViewProps.MARGIN_BOTTOM,
<del> }, defaultFloat = 0f)
<add> }, defaultFloat =... | 1 |
Text | Text | add pkuseg warnings and auto-format [ci skip] | 44af53bdd93713b24ac28459c5d2543f03c47a18 | <ide><path>website/docs/usage/models.md
<ide> The Chinese language class supports three word segmentation options:
<ide> better segmentation for Chinese OntoNotes and the new
<ide> [Chinese models](/models/zh).
<ide>
<add><Infobox variant="warning">
<add>
<add>Note that [`pkuseg`](https://github.com/lancopku/pku... | 2 |
Go | Go | create docker forward chain on driver init | 2865373894f1532fa725481e8f04db4a5d7a0aa8 | <ide><path>daemon/networkdriver/bridge/driver.go
<ide> func InitDriver(job *engine.Job) engine.Status {
<ide> }
<ide>
<ide> // We can always try removing the iptables
<del> if err := iptables.RemoveExistingChain("DOCKER"); err != nil {
<add> if err := iptables.RemoveExistingChain("DOCKER", iptables.Nat); err != nil ... | 2 |
PHP | PHP | add test for | ed5ffb779eca8b5c095c44dd340cbcb17970fb57 | <ide><path>tests/TestCase/ORM/TableTest.php
<ide> class_alias($class, 'TestApp\Model\Entity\TestUser');
<ide> $this->assertEquals('TestApp\Model\Entity\TestUser', $table->getEntityClass());
<ide> }
<ide>
<add> /**
<add> * Test that entity class inflection works for compound nouns
<add> *
<add> ... | 2 |
Mixed | Ruby | add guide for inline around_action | 012b1e3281115b1b3fd5a13a0058e18c13a0b46f | <ide><path>actionpack/test/controller/filters_test.rb
<ide> def test_non_yielding_around_actions_do_not_raise
<ide> end
<ide> end
<ide>
<add> def test_around_action_can_use_yield_inline_with_passed_action
<add> controller = Class.new(ActionController::Base) do
<add> around_action do |c, a|
<add> ... | 2 |
Text | Text | add missing comma in crypto doc | 0fa579ac2a682355f7463d2593ae5f6cc09c81e3 | <ide><path>doc/api/crypto.md
<ide> randomFill(buf, 5, 5, (err, buf) => {
<ide> });
<ide> ```
<ide>
<del>Any `ArrayBuffer` `TypedArray` or `DataView` instance may be passed as
<add>Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as
<ide> `buffer`.
<ide>
<ide> ```mjs | 1 |
PHP | PHP | remove redundant input value | 1c96e31a245a675fef0dca353102124d1ed69b7c | <ide><path>tests/TestCase/Console/ConsoleOptionParserTest.php
<ide> public function testAddOptionWithPromptAndProvidedValue(): void
<ide> 'prompt' => 'What is your favorite?',
<ide> ]);
<ide> $out = new ConsoleOutput();
<del> $io = new ConsoleIo($out, new ConsoleOutput(), new ConsoleI... | 1 |
Ruby | Ruby | use the env block | df7ae5eb26a9552ff61c66ed5680c701bf0be7df | <ide><path>Library/Homebrew/requirements/ruby_requirement.rb
<ide> def initialize(tags)
<ide> super
<ide> end
<ide>
<del> satisfy build_env: false do
<del> found_ruby = rubies.detect { |ruby| suitable?(ruby) }
<del> return unless found_ruby
<del> ENV.prepend_path "PATH", found_ruby.dirname
<del> fou... | 1 |
Ruby | Ruby | use the config value directly when call `secrets` | 827bfe4f41c39eade078e26ad5653979891d89c7 | <ide><path>railties/lib/rails/application.rb
<ide> def config=(configuration) #:nodoc:
<ide> def secrets
<ide> @secrets ||= begin
<ide> secrets = ActiveSupport::OrderedOptions.new
<del> secrets.merge! Rails::Secrets.parse(config.paths["config/secrets"].existent, env: Rails.env)
<add> fil... | 4 |
Text | Text | update egghead links in learning resources | 9ee5cab9fec008a4a406230ab7754eab0e9ad22c | <ide><path>docs/introduction/LearningResources.md
<ide> This page includes our recommendations for some of the best external resources a
<ide> _Tutorials that teach the basic concepts of Redux and how to use it_
<ide>
<ide> - **Getting Started with Redux - Video Series** <br/>
<del> https://egghead.io/series/getting-... | 1 |
Text | Text | create model card | 0039b965db7e2d077363583ae95e1487a81ee0af | <ide><path>model_cards/mrm8488/t5-small-finetuned-squadv2/README.md
<add>---
<add>language: english
<add>datasets:
<add>- squad_v2
<add>---
<add>
<add># T5-small fine-tuned on SQuAD v2
<add>
<add>[Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html) [(small)](https://huggingface.co/t... | 1 |
Text | Text | modify sample css so that it works in safari | a18c7549dff1e29e2728857d18428775661e7571 | <ide><path>docs/docs/10.1-animation.md
<ide> You can use these classes to trigger a CSS animation or transition. For example,
<ide> ```css
<ide> .example-enter {
<ide> opacity: 0.01;
<del> transition: opacity .5s ease-in;
<ide> }
<ide>
<ide> .example-enter.example-enter-active {
<ide> opacity: 1;
<add> transitio... | 1 |
Ruby | Ruby | remove dead constant | 2d8d7184f6317bd8ad56382eec292a1360815a5e | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> module Xcode
<ide> V4_BUNDLE_ID = "com.apple.dt.Xcode"
<ide> V3_BUNDLE_ID = "com.apple.Xcode"
<ide> V4_BUNDLE_PATH = Pathname.new("/Applications/Xcode.app")
<del> V3_BUNDLE_PATH = Pathname.new("/Developer/Applications/Xcode.app")
<ide>
<ide> ... | 1 |
Go | Go | fix race in deletenetwork | c772d14e58c52168348a549bbb9c637e7c433ffc | <ide><path>libnetwork/networkdb/networkdb.go
<ide> func (nDB *NetworkDB) addNetworkNode(nid string, nodeName string) {
<ide> // this
<ide> func (nDB *NetworkDB) deleteNetworkNode(nid string, nodeName string) {
<ide> nodes := nDB.networkNodes[nid]
<del> for i, name := range nodes {
<add> newNodes := make([]string, 0, l... | 1 |
Python | Python | fix typo in the word 'available' | 58edc38f45c903637564c1e07e07933c41b2ca44 | <ide><path>tests/providers/apache/hive/transfers/test_mssql_to_hive.py
<ide> pymssql = None
<ide>
<ide>
<del>@unittest.skipIf(PY38, "Mssql package not avaible when Python >= 3.8.")
<add>@unittest.skipIf(PY38, "Mssql package not available when Python >= 3.8.")
<ide> @unittest.skipIf(pymssql is None, 'pymssql packa... | 4 |
Python | Python | improve textcat model slightly | f8a0614527a656a50100fa784be23c698f706673 | <ide><path>spacy/_ml.py
<ide> def build_text_classifier(nr_class, width=64, **cfg):
<ide> >> with_flatten(
<ide> LN(Maxout(width, vectors_width))
<ide> >> Residual(
<del> (ExtractWindow(nW=1) >> zero_init(Maxout(width, width*3)))
<add> (E... | 1 |
PHP | PHP | move email config to test | 22e150bd0fc6a4cb60e1ee00ce1da73c333b8161 | <ide><path>tests/TestCase/TestSuite/EmailAssertTraitTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\TestSuite;
<ide>
<add>use Cake\Mailer\Email;
<add>use Cake\Mailer\Transport\DebugTransport;
<ide> use Cake\TestSuite\EmailAssertTrait;
<ide> use Cake\TestSuite\TestCase;
<ide> use TestApp\Mailer\TestUserMailer;
<i... | 2 |
Javascript | Javascript | incorect comparison of dates | ffa84418862a9f768ce5b9b681916438f14a0d79 | <ide><path>src/Angular.js
<ide> function equals(o1, o2) {
<ide> }
<ide> return true;
<ide> }
<add> } else if (isDate(o1)) {
<add> return isDate(o2) && o1.getTime() == o2.getTime();
<ide> } else {
<ide> if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2)) ... | 2 |
Javascript | Javascript | replace var with let/const | b551c6570059ede6d5f90a2b4d5234db1f508b52 | <ide><path>lib/querystring.js
<ide> const unhexTable = [
<ide> // A safe fast alternative to decodeURIComponent
<ide> function unescapeBuffer(s, decodeSpaces) {
<ide> const out = Buffer.allocUnsafe(s.length);
<del> var index = 0;
<del> var outIndex = 0;
<del> var currentChar;
<del> var nextChar;
<del> var hexHig... | 1 |
PHP | PHP | fix phpcs and invert condition to bail early | 4a977003bd71f5231ba071c45031c6bbdfdc9acb | <ide><path>src/Routing/Middleware/RoutingMiddleware.php
<ide> class RoutingMiddleware
<ide> {
<ide>
<ide> /**
<add> * Apply routing and update the request.
<add> *
<add> * Any route/path specific middleware will be wrapped around $next and then the new middleware stack
<add> * will be invoked.
<add... | 1 |
Java | Java | relax configurablewebenvironment signatures | 3cdb866bda078a24d3fccb36b08a449a970a524f | <ide><path>spring-web/src/main/java/org/springframework/web/context/ConfigurableWebApplicationContext.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<i... | 8 |
Ruby | Ruby | remove intelligence from statementcache#initialize | 249fd686fb86c89463d791f44114fd829cb05bd2 | <ide><path>activerecord/lib/active_record/core.rb
<ide> def find(*ids)
<ide> key = primary_key
<ide>
<ide> s = find_by_statement_cache[key] || find_by_statement_cache.synchronize {
<del> find_by_statement_cache[key] ||= StatementCache.new { |params|
<add> find_by_statement_cache[key] ... | 3 |
Python | Python | drop print statement | 69083c3668b363bd9cb85674255d260808bbeeff | <ide><path>rest_framework/urlpatterns.py
<ide> def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required):
<ide> ret.append(url(regex, view, kwargs, name))
<ide> else:
<ide> # Set of included URL patterns
<del> print(type(urlpattern))
<ide> regex = url... | 1 |
Java | Java | fix javadocs broken by google-java-format | cd05a85fe5d056cd617ee6b5d82becab57e9c412 | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactIntegrationTestCase.java
<ide> * <p>Keep in mind that all JS remote method calls and script load calls are asynchronous and you
<ide> * should not expect them to return results immediately.
<ide> *
<del> * <p>In order to write catalyst inte... | 22 |
Go | Go | remove error return from rootpair | 93fbdb69acf9248283a91a1c5c6ea24711c26eda | <ide><path>daemon/archive.go
<ide> func (daemon *Daemon) CopyOnBuild(cID, destPath, srcRoot, srcPath string, decomp
<ide>
<ide> destExists := true
<ide> destDir := false
<del> rootIDs, _ := daemon.idMappings.RootPair()
<add> rootIDs := daemon.idMappings.RootPair()
<ide>
<ide> // Work in daemon-local OS specific fi... | 14 |
Python | Python | remove debug statement | ebee0a27940adfbb30444d83387b9ea0f1173f40 | <ide><path>utils/tests_fetcher.py
<ide> def filter_tests(output_file, filters):
<ide> print("No tests to filter.")
<ide> return
<ide>
<del> print(test_files)
<ide> if test_files == ["tests"]:
<ide> test_files = [os.path.join("tests", f) for f in os.listdir("tests") if f not in ["__init__... | 1 |
Go | Go | preserve hardlinks in tar and untar | f9f80443638fc2d703ee6205c8ef3db8e38db9a3 | <ide><path>integration-cli/docker_cli_commit_test.go
<ide> func TestCommitNewFile(t *testing.T) {
<ide> logDone("commit - commit file and read")
<ide> }
<ide>
<add>func TestCommitHardlink(t *testing.T) {
<add> cmd := exec.Command(dockerBinary, "run", "-t", "--name", "hardlinks", "busybox", "sh", "-c", "touch file1 &&... | 4 |
Text | Text | fix documentation nits | f070d784d61f59fc6f97e400ad2f9697acdf32ee | <ide><path>doc/api/errors.md
<ide> been closed.
<ide> <a id="ERR_HTTP2_STREAM_ERROR"></a>
<ide> ### ERR_HTTP2_STREAM_ERROR
<ide>
<del>Used when a non-zero error code has been specified in an RST_STREAM frame.
<add>Used when a non-zero error code has been specified in an `RST_STREAM` frame.
<ide>
<ide> <a id="ERR_HTTP... | 3 |
Ruby | Ruby | improve load logic | 6ac6cb4fcdc5c162543e14688d41c0b10a1b1e4a | <ide><path>Library/Homebrew/formulary.rb
<ide> class TapLoader < FormulaLoader
<ide> def initialize(tapped_name)
<ide> user, repo, name = tapped_name.split("/", 3).map(&:downcase)
<ide> @tap = Tap.fetch user, repo
<del> name = @tap.formula_renames.fetch(name, name)
<del> path = @tap.formula_fi... | 1 |
Javascript | Javascript | return the loader after redirect | 9337d6ad8217f94a0b96abb1e4b447bbce281f52 | <ide><path>client/src/client-only-routes/ShowSettings.js
<ide> export function ShowSettings(props) {
<ide> }
<ide>
<ide> if (!showLoading && !isSignedIn) {
<del> return navigate(`${apiLocation}/signin?returnTo=settings`);
<add> navigate(`${apiLocation}/signin?returnTo=settings`);
<add> return <Loader full... | 5 |
PHP | PHP | fix derp with sprintf | 6defae078f672e7996a24caa3fc414ded0e2d578 | <ide><path>lib/Cake/Routing/RouteCollection.php
<ide> protected function _getNames($url) {
<ide> $plugin = $url['plugin'];
<ide> }
<ide> $fallbacks = array(
<del> '%2s::%3s',
<del> '%2s::_action',
<add> '%2$s::%3$s',
<add> '%2$s::_action',
<ide> '_controller::_action'
<ide> );
<ide> if ($plugin) {... | 1 |
Text | Text | add overhead hints for heap snapshot generation | 9e892e22e36c1186ff11cb050c33e5945c52c99d | <ide><path>doc/api/v8.md
<ide> This JSON stream format is intended to be used with tools such as
<ide> Chrome DevTools. The JSON schema is undocumented and specific to the
<ide> V8 engine. Therefore, the schema may change from one version of V8 to the next.
<ide>
<add>Creating a heap snapshot requires memory about twi... | 1 |
Text | Text | fix 404 link of building.md | 8f39f51cbbd3b2de14b9ee896e26421cc5b20121 | <ide><path>BUILDING.md
<ide> packages:
<ide> * [NetWide Assembler](https://chocolatey.org/packages/nasm)
<ide>
<ide> To install Node.js prerequisites using
<del>[Boxstarter WebLauncher](https://boxstarter.org/WebLauncher), open
<add>[Boxstarter WebLauncher](https://boxstarter.org/weblauncher), open
<ide> <https://boxs... | 1 |
Python | Python | use html parser to compare html snippets | 585aa11d233b7e3e40fe45fa69ef045d8f282345 | <ide><path>tests/regressiontests/admin_inlines/tests.py
<ide> def test_non_related_name_inline(self):
<ide> response = self.client.get('/admin/admin_inlines/capofamiglia/add/')
<ide>
<ide> self.assertContains(response,
<del> '<input type="hidden" name="-1-0-id" id="id_-1-0-id" />')
<add>... | 1 |
PHP | PHP | fix failing tests for previous commit | 2f157af10087097afdc4e5673cb63369cc446e1b | <ide><path>tests/TestCase/View/Helper/PaginatorHelperTest.php
<ide> public function testNumbers()
<ide> $result = $this->Paginator->numbers(['first' => 'first', 'last' => 'last']);
<ide> $expected = [
<ide> ['li' => ['class' => 'first']], ['a' => ['href' => '/index']], 'first', '/a', '/li',
... | 1 |
Text | Text | fix typo in email address in readme | 6de9d13f83e297f5347ed0a8dbfdcfc967da5a0a | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> * [iWuzHere](https://github.com/iWuzHere) -
<ide> **Imran Iqbal** <imran@imraniqbal.org>
<ide> * [JacksonTian](https://github.com/JacksonTian) -
<del>**Jackson Tian** <shvyo1987@gmail.com>
<add>**Jackson Tian*... | 1 |
Ruby | Ruby | remove unneeded reader | 1a30b1ed4066cbefc9faacae081655c1da38836f | <ide><path>activerecord/lib/active_record/associations/builder/collection_association.rb
<ide> def self.valid_options(options)
<ide> :after_add, :before_remove, :after_remove, :extend]
<ide> end
<ide>
<del> attr_reader :block_extension
<del>
<ide> def initialize(name, scope, options, extensio... | 1 |
Go | Go | fix a missing unlock on ingress sandbox failure | f98cfa559725bacb8c7a3c7f4762d45e18deaaba | <ide><path>libnetwork/controller.go
<ide> func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s
<ide>
<ide> c.Lock()
<ide> if sb.ingress && c.ingressSandbox != nil {
<add> c.Unlock()
<ide> return nil, fmt.Errorf("ingress sandbox already present")
<ide> }
<ide> | 1 |
Go | Go | add comment clarifying null termination | c626349f651a660302f64101055d65dc6e990307 | <ide><path>pkg/netlink/netlink_linux.go
<ide> func NetworkChangeName(iface *net.Interface, newName string) error {
<ide> defer syscall.Close(fd)
<ide>
<ide> data := [IFNAMSIZ * 2]byte{}
<add> // the "-1"s here are very important for ensuring we get proper null
<add> // termination of our new C strings
<ide> copy(da... | 1 |
Text | Text | update license year | fca4a885deb50f09069ca6c399c8dc2d78c019b3 | <ide><path>LICENSE.md
<ide> BSD 3-Clause License
<ide>
<del>Copyright (c) 2019, freeCodeCamp.
<add>Copyright (c) 2020, freeCodeCamp.
<ide> All rights reserved.
<ide>
<ide> Redistribution and use in source and binary forms, with or without | 1 |
Text | Text | capitalize non-primitive types | c3fde98d4d2d920ce3df10a7668aa36bcfb49206 | <ide><path>doc/api/assert.md
<ide> added: v0.1.21
<ide> * `expected` {any}
<ide> * `message` {any} **Default:** `'Failed'`
<ide> * `operator` {string} **Default:** '!='
<del>* `stackStartFunction` {function} **Default:** `assert.fail`
<add>* `stackStartFunction` {Function} **Default:** `assert.fail`
<ide>
<ide> Throws... | 3 |
Javascript | Javascript | fix var redeclarations in test-os | 7caeda26c8fc1ae01a6e9481f258dfd91117b89e | <ide><path>test/parallel/test-os.js
<ide> if (common.isWindows) {
<ide> process.env.TEMP = '';
<ide> assert.equal(os.tmpdir(), '/tmp');
<ide> process.env.TMP = '';
<del> var expected = (process.env.SystemRoot || process.env.windir) + '\\temp';
<add> const expected = (process.env.SystemRoot || process.env.windir... | 1 |
PHP | PHP | refactor the encryption class | 8a175894b260684b56e110a3b1cd540064de2690 | <ide><path>system/crypt.php
<ide> public static function encrypt($value)
<ide> */
<ide> public static function decrypt($value)
<ide> {
<del> $value = base64_decode($value, true);
<del>
<del> if ( ! $value)
<add> if ( ! is_string($value = base64_decode($value, true)))
<ide> {
<ide> throw new \Exception('Decr... | 1 |
Java | Java | add onbackpressurereduce operator | 7741c59fd05196d40b5a6214314842552290c156 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java
<ide> public final Flowable<T> onBackpressureLatest() {
<ide> return RxJavaPlugins.onAssembly(new FlowableOnBackpressureLatest<>(this));
<ide> }
<ide>
<add> /**
<add> * Reduces a sequence of two not emitted values via a function into a... | 6 |
Ruby | Ruby | use file.directory? as dir.exists? is only 1.9.2+ | 8293b10425bfe621b4bed85bf3db57cccd70e43b | <ide><path>railties/lib/rails/paths.rb
<ide> def expanded
<ide> def existent
<ide> expanded.select { |f| File.exists?(f) }
<ide> end
<del>
<add>
<ide> def existent_directories
<del> expanded.select {|d| Dir.exists?(d) }
<add> expanded.select { |d| File.directory?(d) }
<ide>... | 1 |
Python | Python | fix crash when --eval_batch_size is not set. | e4034bef71096e56669483f9a9011a504f6e422a | <ide><path>official/recommendation/ncf_main.py
<ide> def run_ncf(_):
<ide> num_gpus = flags_core.get_num_gpus(FLAGS)
<ide> batch_size = distribution_utils.per_device_batch_size(
<ide> int(FLAGS.batch_size), num_gpus)
<del> eval_batch_size = int(FLAGS.eval_batch_size) or int(FLAGS.batch_size)
<add> eval_batc... | 1 |
Python | Python | fix bug in ref-updating code | 41bdf821374cd60063f5c5622ddd9e8c9089e3b9 | <ide><path>test/test.py
<ide> def maybeUpdateRefImages(options, browser):
<ide> else:
<ide> print ' Yes! The references in tmp/ can be synced with ref/.'
<ide> if options.reftest: ... | 1 |
Text | Text | correct url from github.com/dotcloud/docker{,-py} | 64cb7725381740986022eb4633c8f91be3dd7b4f | <ide><path>CONTRIBUTING.md
<ide> When considering a design proposal, we are looking for:
<ide> * A description of the problem this design proposal solves
<ide> * An issue -- not a pull request -- that describes what you will take action on
<ide> * Please prefix your issue with `Proposal:` in the title
<del>* Please r... | 2 |
Text | Text | add v3.13.0 to changelog | eb4c26fa6f473dd813797a2ae3f3381725d300c6 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.13.0-beta.5 (September 3, 2019)
<del>
<add>### v3.13.0 (September 19, 2019)
<add>
<add>- [#16366](https://github.com/emberjs/ember.js/pull/16366) / [#16903](https://github.com/emberjs/ember.js/pull/16903) / [#17572](https://github.com/emberjs/ember.js/p... | 1 |
Text | Text | fix a typo in the 3.8 announcement | d5fe1f66ac534870cbec6b620a51797349c87f7a | <ide><path>docs/topics/3.8-announcement.md
<ide> the view:
<ide> def perform_create(self, serializer):
<ide> serializer.save(owner=self.request.user)
<ide>
<del>Alternatively you may override `save()` or `create()` or `update()` on the serialiser as appropriate.
<add>Alternatively you may override `save()`... | 1 |
Go | Go | add link between -d and --log-level=debug back in | a85ca8b7c40f05f2b6471cc30fb8d5271605c1d1 | <ide><path>docker/docker.go
<ide> func main() {
<ide>
<ide> if *flDebug {
<ide> os.Setenv("DEBUG", "1")
<add> setLogLevel(logrus.DebugLevel)
<ide> }
<ide>
<ide> if len(flHosts) == 0 {
<ide><path>integration-cli/docker_cli_daemon_test.go
<ide> func (s *DockerDaemonSuite) TestDaemonFlagD(c *check.C) {
<ide> c.F... | 2 |
Mixed | Go | refactor the statistics of network in docker stats | d3379946ec96fb6163cb8c4517d7d5a067045801 | <ide><path>api/client/stats.go
<ide> func (s *containerStats) Collect(cli *DockerCli, streamStats bool) {
<ide> )
<ide> go func() {
<ide> for {
<del> var v *types.Stats
<add> var v *types.StatsJSON
<ide> if err := dec.Decode(&v); err != nil {
<ide> u <- err
<ide> return
<ide> func (s *containerStats)... | 10 |
Python | Python | add tests for httplib ssl stuff | 67f4be07ae34fea768ccee92149572f4bb23b0b2 | <ide><path>test/test_httplib_ssl.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under the Apache ... | 1 |
Python | Python | fix crash on non-linux platforms | f64533e49c9011a386f0cf0d550694a23802c9c5 | <ide><path>glances/plugins/glances_percpu.py
<ide> def msg_curse(self, args=None):
<ide> msg = ' {0:>6.1%}'.format(cpu['system'] / 100)
<ide> ret.append(self.curse_add_line(msg, self.get_alert(cpu['system'], header="system")))
<ide>
<del> # IoWait CPU
<add> # Idle CPU
<ide... | 1 |
Javascript | Javascript | convert moment.js to es6 modules | d5262a01beec4f6ed1b0ad73ba2da66782b2f60b | <ide><path>lib/create/check-overflow.js
<add>import { daysInMonth } from "../units/month";
<add>import { YEAR, MONTH, DATE, HOUR, MINUTE, SECOND, MILLISECOND } from "../units/constants";
<add>
<add>export default function checkOverflow (m) {
<add> var overflow;
<add> var a = m._a;
<add>
<add> if (a && m._pf.ov... | 89 |
PHP | PHP | remove default value for debug's first argument | 17be6d04725afcc92d56a51e77e170268886fff9 | <ide><path>lib/Cake/basics.php
<ide> function config() {
<ide> * @link http://book.cakephp.org/2.0/en/development/debugging.html#basic-debugging
<ide> * @link http://book.cakephp.org/2.0/en/core-libraries/global-constants-and-functions.html#debug
<ide> */
<del> function debug($var = null, $showHtml = null, $showFrom... | 1 |
Text | Text | add a link to the facebook community | ff415592809f0af2a7bd91b236083de8ebebcfec | <ide><path>CONTRIBUTING.md
<ide> Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
<ide> ## How to Get in Touch
<ide>
<ide> * IRC - [#reactnative on freenode](http://webchat.freenode.net/?channels=reactnative)
<add>* [Facebook group](https://www.facebook.com/groups/react.native.community... | 1 |
Javascript | Javascript | update version guard in some link specs to 1.33.0 | 65eb83510dca57a157598632a9f6ec4a35a28fe1 | <ide><path>packages/link/spec/link-spec.js
<ide> describe('link package', () => {
<ide> expect(shell.openExternal.argsForCall[0][0]).toBe('http://github.com')
<ide> })
<ide>
<del> // only works in Atom >= 1.32.0
<add> // only works in Atom >= 1.33.0
<ide> // https://github.com/atom/link/pull/33#iss... | 1 |
Javascript | Javascript | fix shebang in tools/doc/generate.js | 1d99441d3742045bdb7b8e8a8d013f81cdba8f40 | <ide><path>tools/doc/generate.js
<del>#!node
<add>#!/usr/bin/env node
<ide> // Copyright Joyent, Inc. and other Node contributors.
<ide> //
<ide> // Permission is hereby granted, free of charge, to any person obtaining a | 1 |
Text | Text | add section on validation | 52832fff9048482a5036a96d0a7c05cc238b9153 | <ide><path>guide/english/html/html-forms/index.md
<ide> The form tag can also have an attribute named "target" which specifies where the
<ide> The action attribute defines the action to be performed when the form is submitted.
<ide> Normally, the form data is sent to a web page at the Script URL when the user clicks on... | 1 |
Python | Python | fix documentation typo | d21a5321a1529a93b0be7346cb04a7113d657004 | <ide><path>airflow/operators/python_operator.py
<ide> class BranchPythonOperator(PythonOperator):
<ide> It derives the PythonOperator and expects a Python function that returns
<ide> the task_id to follow. The task_id returned should point to a task
<ide> directely downstream from {self}. All other "branche... | 1 |
Python | Python | fix backend tests | 36392c75d74ab575bd986fcd9ee71078eff13b1e | <ide><path>tests/keras/backend/test_backends.py
<ide> import numpy as np
<ide> import pytest
<ide>
<del>from keras.backend import theano_backend as KTH
<del>from keras.backend import tensorflow_backend as KTF
<add>if sys.version_info.major == 2:
<add> from keras.backend import theano_backend as KTH
<add> from ke... | 1 |
Python | Python | fix typo in `train_cli` docstring | ee63b2b19994cf9225c7235fade81732aea07e79 | <ide><path>spacy/cli/train.py
<ide> def train_cli(
<ide> """
<ide> Train or update a spaCy pipeline. Requires data in spaCy's binary format. To
<ide> convert data from other formats, use the `spacy convert` command. The
<del> config file includes all settings and hyperparameters used during traing.
<add>... | 1 |
Text | Text | fix a typo | 4fbbcc7eb16abd486c6c73e838279e65cc45a2d9 | <ide><path>inception/README.md
<ide> batch-splitting the model across multiple GPUs.
<ide> permit training the model with higher learning rates.
<ide>
<ide> * Often the GPU memory is a bottleneck that prevents employing larger batch
<del> sizes. Employing more GPUs allows one to user larger batch sizes becaus... | 1 |
PHP | PHP | fix psalm error | e2cb43f8ef4f9022065587f90d2a64fd7b46d596 | <ide><path>src/View/View.php
<ide> public function setLayout(string $name)
<ide> * @param string|null $key The key to get or null for the whole config.
<ide> * @param mixed $default The return value when the key does not exist.
<ide> * @return mixed Config value being read.
<add> * @psalm-suppress Po... | 1 |
PHP | PHP | add missing types to core class | d484dead0aa101e61bf51bb5573aacf18e4a9888 | <ide><path>src/Core/Configure/ConfigEngineInterface.php
<ide> interface ConfigEngineInterface
<ide> * @param string $key Key to read.
<ide> * @return array An array of data to merge into the runtime configuration
<ide> */
<del> public function read($key);
<add> public function read(string $key): ar... | 7 |
Python | Python | fix the signatures of 3 functions | ed20ff4b4a448a4f38be46256add004ecc0c3471 | <ide><path>numpy/core/_add_newdocs.py
<ide>
<ide> add_newdoc('numpy.core.multiarray', 'compare_chararrays',
<ide> """
<del> compare_chararrays(a, b, cmp_op, rstrip)
<add> compare_chararrays(a1, a2, cmp, rstrip)
<ide>
<ide> Performs element-wise comparison of two string arrays using the
<ide> compari... | 1 |
PHP | PHP | add space between classname(s) | a943ea5c34c140f006d5bfbbf91b15286c86d5ed | <ide><path>lib/Cake/Console/Command/Task/TestTask.php
<ide> public function buildTestSubject($type, $class) {
<ide> *
<ide> * @param string $type The Type of object you are generating tests for eg. controller
<ide> * @param string $class the Classname of the class the test is being generated for.
<del> * @return str... | 17 |
Python | Python | move doctest tests to own file with ifmain | 199535c5c34360be7238c80b25d810abce62e6e4 | <ide><path>numpy/testing/nosetester.py
<ide> def bench(self, label='fast', verbose=1, extra_argv=None):
<ide>
<ide> return nose.run(argv=argv, addplugins=add_plugins)
<ide>
<del>
<del>########################################################################
<del># Doctests for NumPy-specific nose/doctest modif... | 2 |
Ruby | Ruby | check value of compiler rather than homebrew_cc | cb873d0833074f4477424a984c08311ef1293334 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def cxx11
<ide> end
<ide>
<ide> def libcxx
<del> if self['HOMEBREW_CC'] == 'clang'
<del> append 'HOMEBREW_CCCFG', "g", ''
<del> end
<add> append "HOMEBREW_CCCFG", "g", "" if compiler == :clang
<ide> end
<ide>
<ide> def libstdcxx
<del> if s... | 1 |
Javascript | Javascript | remove extra newlines in tests | 3b5f686658bbc0bd6de438796b2c2f0cd55b6374 | <ide><path>src/test/locale/af.js
<ide> test('weeks year starting sunday formatted', function (assert) {
<ide> assert.equal(moment([2012, 0, 15]).format('w ww wo'), '2 02 2de', 'Jan 15 2012 should be week 2');
<ide> });
<ide>
<del>
<del>
<ide><path>src/test/locale/ar-ma.js
<ide> test('weeks year starting sunday ... | 94 |
Ruby | Ruby | add test for `formatter.columns` | ef70677e881855f1e7b51f158752e1ee78b27a96 | <ide><path>Library/Homebrew/cask/spec/formatter_spec.rb
<add>require "spec_helper"
<add>require "utils/formatter"
<add>require "utils/tty"
<add>
<add>describe Formatter do
<add> describe "::columns" do
<add> let(:input) {
<add> [
<add> 'aa',
<add> 'bbb',
<add> 'ccc',
<add> 'dd'
<add... | 1 |
PHP | PHP | remove deprecated calls in cake\mailer | cce7909e1abc65bcb0189e42425f76774933bc69 | <ide><path>src/Mailer/Email.php
<ide> public static function deliver($to = null, $subject = null, $message = null, $tr
<ide> if (is_array($message)) {
<ide> $instance->setViewVars($message);
<ide> $message = null;
<del> } elseif ($message === null && array_key_exists('message', $c... | 4 |
Javascript | Javascript | add an index file to make builds happen | 9d432f9d092eae7e33452fb453773893c0e93b25 | <ide><path>examples/universal/index.js
<add>require('./client.js'); | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.