content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Ruby | Ruby | use tap inside reporter | 849e62c7368cf9d927448548b52387dc0e96c9ce | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def load_formula_renames
<ide> end
<ide>
<ide> class Reporter
<del> attr_reader :initial_revision, :current_revision, :repository
<del>
<del> def self.repository_variable(repository)
<del> if repository == HOMEBREW_REPOSITORY
<del> ""
<del> else
<del>... | 1 |
Java | Java | introduce base exception class for arg resolution | 2c1d5efbb021d7eed196bad550bcd675d43035b9 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/AbstractMethodArgumentResolutionException.java
<add>/*
<add> * Copyright 2002-2014 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use th... | 5 |
Text | Text | add overview to debugging guide | 286c7e8f18a1742766701b3ee6ed7095e04620ae | <ide><path>docs/debugging.md
<ide> # Debugging
<ide>
<del>Atom provides several tools to help you understand unexpected behavior and debug problems. This guide describes some of those tools and a few approaches to help you debug and provide more helpful information when [submitting issues].
<add>Atom provides several ... | 1 |
PHP | PHP | remove default values for vanilla behaivor | 48bd343eb570f207f6e4d9bbaa6bc7dc8386c100 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function create($model = null, array $options = [])
<ide> 'encoding' => strtolower(Configure::read('App.encoding')),
<ide> 'templates' => null,
<ide> 'idPrefix' => null,
<del> 'values' => ['data', 'context'],
<add> ... | 1 |
Mixed | Python | add multiplechoice to tftrainer [wip] | e4512aab3bffcbaa28d65e4eca7ab73d8fdd7889 | <ide><path>examples/README.md
<ide> This is still a work-in-progress – in particular documentation is still sparse
<ide>
<ide> ## Tasks built on Trainer
<ide>
<del>| Task | Example datasets | Trainer support | TFTrainer support | pytorch-lightning | Colab | One-click Deploy to Azure (wip) |
<add>| Task | Example dat... | 9 |
PHP | PHP | apply fixes from styleci | 247e96b7adb8fb92f32a5420dcf0fbb33e6a2475 | <ide><path>src/Illuminate/Support/Str.php
<ide> class Str
<ide> */
<ide> public static function after($subject, $search)
<ide> {
<del> return $search == "" ? $subject : array_reverse(explode($search, $subject, 2))[0];
<add> return $search == '' ? $subject : array_reverse(explode($search, $sub... | 1 |
PHP | PHP | fix styling issue | e5f217135464a7de2b11d6e11ca7e5940678ecf9 | <ide><path>src/Illuminate/Routing/Router.php
<ide> protected function runRoute(Request $request, Route $route)
<ide> $this->runRouteWithinStack($route, $request)
<ide> );
<ide> } catch (ModelNotFoundException $exception) {
<del> if($route->getElse()) {
<add> if ... | 1 |
Python | Python | clarify meaning of mro | 1ffb4361f4b293e9a6b37351f32fed645330bba7 | <ide><path>keras/engine/training.py
<ide> def __reduce__(self):
<ide> # it _may_ be possible to serialize as a plain Python object,
<ide> # as long as the constituent parts (layers, optimizers, losses, etc.)
<ide> # can be serialized as plain Python objects.
<del> # Thus we call up the MRO to get... | 1 |
Javascript | Javascript | fix broken test | 03ef5b041d3120dccfa58ef78c175e5c9b59c892 | <ide><path>src/test/locale/it.js
<ide> test('format', function (assert) {
<ide> ['M Mo MM MMMM MMM', '2 2º 02 febbraio feb'],
<ide> ['YYYY YY', '2010 10'],
<ide> ['D Do DD', '14 14º 14'],
<del> ['d do ... | 1 |
Ruby | Ruby | remove explicit builder require | 3c78d0b1ebfa87dfb80b8ac005554ece49cf2e34 | <ide><path>actionpack/lib/action_view.rb
<ide> #++
<ide>
<ide> $:.unshift(File.dirname(__FILE__) + "/action_view/vendor")
<del>require 'action_view/vendor/builder'
<del>
<ide> require 'action_view/base'
<ide> require 'action_view/partials'
<ide> | 1 |
Text | Text | remove shirtstarter as an example application | 3efa02da919224eaa235cd19dacf64aa80d02e21 | <ide><path>docs/docs/examples.md
<ide> prev: complementary-tools.html
<ide> * **[Instagram.com](http://instagram.com/)** is 100% built on React, both public site and internal tools.
<ide> * **[Facebook.com](http://www.facebook.com/)**'s commenting interface, business management tools, [Lookback video editor](http://fac... | 1 |
PHP | PHP | remove temporary variable | 5deeb7febb93729cc43a96b3c0218be347af132f | <ide><path>src/Illuminate/Http/Request.php
<ide> public static function createFromBase(SymfonyRequest $request)
<ide> return $request;
<ide> }
<ide>
<del> $content = $request->content;
<del>
<ide> $newRequest = (new static)->duplicate(
<ide> $request->query->all(), $reque... | 1 |
Javascript | Javascript | move unicode translation cache into font | 0b6c0db9310376f04658a45bb19b2c2791064082 | <ide><path>fonts.js
<ide> var Fonts = (function Fonts() {
<ide> this.properties = properties;
<ide> this.id = fontCount++;
<ide> this.loading = true;
<del> this.charsCache = Object.create(null);
<ide> this.sizes = [];
<ide> }
<ide>
<ide> var current;
<del> var charsCache;
<ide> var measureCac... | 2 |
Text | Text | add text shown in example of usage | b48a1f08c1cd92ab275bbf56869bc955ef10defe | <ide><path>model_cards/mrm8488/bert-spanish-cased-finetuned-ner/README.md
<ide> nlp_ner = pipeline(
<ide> {"use_fast": False}
<ide> ))
<ide>
<add>text = 'Mis amigos están pensando viajar a Londres este verano'
<add>
<ide> nlp_ner(text)
<ide>
<ide> #Output: [{'entity': 'B-LOC', 'score': 0.9998720288276672, 'wo... | 1 |
Javascript | Javascript | fix lint error | 56b2fd487139b6ef59f4d3e3e9ca02a49cc7c202 | <ide><path>src/createStore.js
<ide> export default function createStore(reducer, initialState) {
<ide>
<ide> return function unsubscribe() {
<ide> var index = listeners.indexOf(listener);
<del> if(index === -1)return;
<add> if (index === -1)return;
<ide> listeners.splice(index, 1);
<ide> ... | 2 |
Ruby | Ruby | fix lmod hashcat cert issue | 55e045d23829328827ae8b2ece0187c25fa6c0ef | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_versioned_keg_only
<ide> end
<ide>
<ide> CERT_ERROR_ALLOWLIST = {
<add> "hashcat" => "https://hashcat.net/hashcat/",
<ide> "jinx" => "https://www.jinx-lang.org/",
<ide> "lmod" => "https://www.tacc.utexas.edu/researc... | 1 |
PHP | PHP | adjust the doc blocks instead | d42104a8243bdb2c475afea1ef8a433022ec9b40 | <ide><path>src/View/Helper/TimeHelper.php
<ide> public function toQuarter($dateString, $range = false)
<ide> *
<ide> * @param int|string|\DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object
<ide> * @param string|\DateTimeZone|null $timezone User's timezone string or DateTimeZ... | 1 |
Javascript | Javascript | hide $browser docs - it's a private service | f158d81d21c5c6d8fe2331abf8e527e8fc45d4a9 | <ide><path>src/ng/browser.js
<ide> 'use strict';
<ide>
<ide> /**
<del> * @ngdoc object
<add> * ! This is a private undocumented service !
<add> *
<ide> * @name ng.$browser
<ide> * @requires $log
<ide> * @description
<ide> function Browser(window, document, $log, $sniffer) {
<ide> pollTimeout;
<ide>
<ide> /... | 2 |
Text | Text | reflect name change | 832116ac49d02471449064f3cb1496a5ad36890e | <ide><path>README.md
<del># Action Mailroom
<add># Action Mailbox
<ide>
<del>📬
<ide>\ No newline at end of file
<add>📬 | 1 |
PHP | PHP | fix un-aliased query in marshaller | 0421d5c348fec8224c2bc7e221f672d7a2c02576 | <ide><path>src/ORM/Marshaller.php
<ide> public function mergeMany($entities, array $data, array $options = [])
<ide> return count(array_filter($keys, 'strlen')) === count($primary);
<ide> })
<ide> ->reduce(function ($query, $keys) use ($primary) {
<del> return $que... | 2 |
Text | Text | replace version with replaceme | 5b4a0cb1494f77565454278ab97166fba25f7e45 | <ide><path>doc/api/stream.md
<ide> the status of the `highWaterMark`.
<ide>
<ide> ##### writable.writableFinished
<ide> <!-- YAML
<del>added: v12.4.0
<add>added: REPLACEME
<ide> -->
<ide>
<ide> * {boolean} | 1 |
Ruby | Ruby | remove nil in nulltype#ref | 2f3fe92f1bdd2ca88dfa2a7aa0253b79a0bf6194 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def nil?
<ide> true
<ide> end
<ide>
<del> def ref
<del> nil
<del> end
<add> def ref; end
<ide>
<ide> def respond_to_missing?(method, include_private = false)
<ide> method.to_s.ends_with? '?' | 1 |
Javascript | Javascript | revert unwanted change | 5a7837eb729f1481baadc454671dad933701faab | <ide><path>build/three.js
<ide>
<ide> var n = gl.getProgramParameter( program, gl.ACTIVE_UNIFORMS );
<ide>
<del> for ( var i = 0; i < n; ++ i ) {
<add> for ( var i = 0; i !== n; ++ i ) {
<ide>
<ide> var info = gl.getActiveUniform( program, i ),
<ide> path = info.name,
<ide><path>build/three.module.js
<ide... | 3 |
Python | Python | tweak a test to avoid hitting a limit with sqlite | 2875b5dcab23c027d019656b08da8b911bc60711 | <ide><path>tests/regressiontests/multiple_database/tests.py
<ide> class SyncDBTestCase(TestCase):
<ide>
<ide> def test_syncdb_to_other_database(self):
<ide> """Regression test for #16039: syncdb with --database option."""
<del> count = ContentType.objects.count()
<add> cts = ContentType.objec... | 1 |
Java | Java | resolve minor 4.3.x deprecations in master | 62e530ec94fe2b9a60f15739356ef70065aa4371 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/SpelMessage.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 4 |
Ruby | Ruby | convert dmg test to spec | 92e2e7a21665aad705d76b90735aed854b7a09f5 | <add><path>Library/Homebrew/cask/spec/cask/container/dmg_spec.rb
<del><path>Library/Homebrew/cask/test/cask/container/dmg_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::Container::Dmg do
<del> describe "mount!" do
<add> describe "#mount!" do
<ide> it "does not store nil m... | 1 |
Ruby | Ruby | add assertion to polymorphic_routes_test.rb | f1a097733a6923d4c7b6b4413394ce86e17198d6 | <ide><path>actionview/test/activerecord/polymorphic_routes_test.rb
<ide> def assert_url(url, args)
<ide>
<ide> def test_string
<ide> with_test_routes do
<del> # FIXME: why are these different? Symbol case passes through to
<del> # `polymorphic_url`, but the String case doesn't.
<add> assert_equal ... | 1 |
PHP | PHP | allow multiple schemas in pgsql | 7b846be4c4513e129a877f485eb975a9eec0d115 | <ide><path>laravel/database/connectors/postgres.php
<ide> public function connect($config)
<ide> // the database to set the search path.
<ide> if (isset($config['schema']))
<ide> {
<del> $connection->prepare("SET search_path TO '{$config['schema']}'")->execute();
<add> $connection->prepare("SET search_path TO... | 1 |
Text | Text | remove "unreleased" section from changelog | 58b8797b7372c9296e65e08ce8297e4a394b7972 | <ide><path>CHANGELOG.md
<del>## [Unreleased]
<del><details>
<del> <summary>
<del> Changes that have landed in master but are not yet released.
<del> Click to see more.
<del> </summary>
<del></details>
<del>
<ide> ## 16.12.0 (November 14, 2019)
<ide>
<ide> ### React DOM | 1 |
Text | Text | update relation to other libraries.md | ecfd1276a6d680a55c6848766735af396d606381 | <ide><path>docs/Basics/Relation to Other Libraries.md
<ide> Relation to Other Libraries
<ide> --------------------------
<ide>
<del>TODO
<add>### Flux
<add>
<add>Can Redux be considered a [Flux](https://facebook.github.io/flux/) implementation?
<add>[Yes](https://twitter.com/fisherwebdev/status/616278911886884864), ... | 1 |
Javascript | Javascript | add double side support | 74c27264d7582b0b481d44e3cc673be73110db98 | <ide><path>examples/js/loaders/LDrawLoader.js
<ide> THREE.LDrawLoader = ( function () {
<ide>
<ide> }
<ide>
<del> var bfcEnabled = false;
<add> var bfcCertified = false;
<ide> var bfcCCW = true;
<ide> var bfcInverted = false;
<add> var bfcCull = true;
<ide>
<ide> // Parse all line commands
<ide> ... | 1 |
Python | Python | add examples for ufunc.resolve_dtypes | 36d75387ea974daa41667e22b4ac255709cfc61a | <ide><path>numpy/core/_add_newdocs.py
<ide> Similar function to this, but returns additional information which
<ide> give access to the core C functionality of NumPy.
<ide>
<add> Examples
<add> --------
<add> This API requires passing dtypes, define them for convenience:
<add>
<add> >>> int... | 1 |
Python | Python | remove redundant blank-line and parenthesis | ee9db04084b0d8adaac46069fa97b63d7d274013 | <ide><path>airflow/configuration.py
<del>
<ide> # Licensed to the Apache Software Foundation (ASF) under one
<ide> # or more contributor license agreements. See the NOTICE file
<ide> # distributed with this work for additional information
<ide><path>tests/providers/amazon/aws/transfers/test_s3_to_sftp.py
<ide> def tes... | 3 |
Python | Python | remove broken test, fix lua and nsfn tests | 6c2d57c09dfc5285706d26e0d4860cc870d4af2d | <ide><path>libcloud/common/base.py
<ide>
<ide> import libcloud
<ide>
<del>from libcloud.utils.py3 import PY25
<add>from libcloud.utils.py3 import PY25, basestring
<ide> from libcloud.utils.py3 import httplib
<ide> from libcloud.utils.py3 import urlparse
<ide> from libcloud.utils.py3 import urlencode
<ide> def __init_... | 4 |
Ruby | Ruby | add full lib path to audit | f432a59fd0d68a7b17143699fa7e4dc93bd6a5e8 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_jars
<ide> jars = f.lib.children.select{|g| g.to_s =~ /\.jar$/}
<ide> return if jars.empty?
<ide>
<del> ['JARs were installed to "lib".',
<add> ["JARs were installed to \"#{f.lib}\".",
<ide> <<-EOS.undent
<ide> Installing ... | 1 |
Python | Python | move lstsq to umath_linalg | 3ef55be846bc8e6e21515787b29608fec7e1fad0 | <ide><path>numpy/linalg/linalg.py
<ide> def _raise_linalgerror_eigenvalues_nonconvergence(err, flag):
<ide> def _raise_linalgerror_svd_nonconvergence(err, flag):
<ide> raise LinAlgError("SVD did not converge")
<ide>
<add>def _raise_linalgerror_lstsq(err, flag):
<add> raise LinAlgError("SVD did not converge in L... | 1 |
Ruby | Ruby | use native class#subclasses if available | 359240dff6f7ce5c295aa573399937ac76ad8d92 | <ide><path>activesupport/lib/active_support.rb
<ide> def self.utc_to_local_returns_utc_offset_times
<ide> def self.utc_to_local_returns_utc_offset_times=(value)
<ide> DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value
<ide> end
<del>
<del> @has_native_class_descendants = Class.method_defi... | 4 |
PHP | PHP | fix loss of coverage | 47cf2942fad1a0ae6ac68445f6c37679ee0bb1ec | <ide><path>tests/TestCase/ORM/Association/HasManyTest.php
<ide> public function testSaveAssociatedEmptySetWithReplaceStrategyRemovesAssociatedRe
<ide> *
<ide> * @return void
<ide> */
<del> public function testInvalidStrategy()
<add> public function testInvalidSaveStrategy()
<ide> {
<ide> ... | 1 |
Java | Java | avoid potential npe (spr-6300) | 613b4d182b23b474db4e43257cf75ef8454e6bdf | <ide><path>org.springframework.test/src/main/java/org/springframework/test/web/ModelAndViewAssert.java
<ide> /*
<del> * Copyright 2002-2008 the original author or authors.
<add> * Copyright 2002-2009 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 1 |
Ruby | Ruby | remove scm directories recursively | 15c3fb32b26228b4cef2bb33863e8072ab270a41 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_cache
<ide> if path.file?
<ide> cleanup_path(path) { path.unlink }
<ide> elsif path.directory? && path.to_s.include?("--")
<del> cleanup_path(path) { path.rmdir }
<add> cleanup_path(path) { FileUtils.rm_rf path }
<i... | 1 |
Text | Text | fix typo in readablestream.locked description | 829a34ac1ddca53dc7f80cd0defc172f9e57d7b7 | <ide><path>doc/api/webstreams.md
<ide> added: v16.5.0
<ide> {ReadableStream}.
<ide>
<ide> The `readableStream.locked` property is `false` by default, and is
<del>switch to `true` while there is an active reader consuming the
<add>switched to `true` while there is an active reader consuming the
<ide> stream's data.
<... | 1 |
Javascript | Javascript | fix lint issue | 4bb706fbd6b90e32396ee973180eef89ce43db88 | <ide><path>lib/HotModuleReplacement.runtime.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>/*global $hash$ $requestTimeout$ installedModules $require$ hotDownloadManifest hotDownloadUpdateChunk hotDisposeChunk modules */
<del>
<add>// eslint-di... | 5 |
Text | Text | add note about decorator loading in engines guide | ab28bafc9f1118652f5090fa1260923118930518 | <ide><path>guides/source/engines.md
<ide> Engine model and controller classes can be extended by open classing them in the
<ide>
<ide> For simple class modifications use `Class#class_eval`, and for complex class modifications, consider using `ActiveSupport::Concern`.
<ide>
<add>#### A note on Decorators and loading c... | 1 |
Text | Text | remove duplicated word | 3757691c9188b76b246e52ade7c23bffc73bc566 | <ide><path>docs/how-to-translate-the-website.md
<ide> Here are some tips:
<ide> - Only translate the values in the JSON files, the keys need to stay the same
<ide> - The English versions of the JSON files are the "source of truth" for what needs to be translated. If you are unsure what text to translate, find the match... | 1 |
Text | Text | update response content for volume mounts | 6a04ecf81333d7b26928f0dcbfb416ca788f287c | <ide><path>docs/reference/api/docker_remote_api_v1.22.md
<ide> Create a container
<ide> },
<ide> "Mounts": [
<ide> {
<add> "Name": "fac362...80535",
<ide> "Source": "/data",
<ide> "Destination": "/data",
<add> "Driver": "local"... | 2 |
Javascript | Javascript | provide argument for custom callback | 2e4d623bf3b2974b3873584fb85cf97d9ffb6721 | <ide><path>src/plugins/plugin.tooltip.js
<ide> export class Tooltip extends Element {
<ide> }
<ide>
<ide> if (changed && options.custom) {
<del> options.custom.call(me);
<add> options.custom.call(me, [me]);
<ide> }
<ide> }
<ide> | 1 |
Text | Text | fix a typo in the tutorial | 9ff7bbe0ac4172ea15242218e9ac4668eddc1e7f | <ide><path>docs/sources/examples/nodejs_web_app.md
<ide> Your `Dockerfile` should now look like this:
<ide> ## Building your image
<ide>
<ide> Go to the directory that has your `Dockerfile` and run the following command
<del>to build a Docker image. The `-t` flag let's you tag your image so it's easier
<add>to build a... | 1 |
Text | Text | add faq section for creating reproducible results | a8f1b28cee7f2b24a57323a0354cdebddd7630f7 | <ide><path>docs/templates/getting-started/faq.md
<ide> - [How can I use pre-trained models in Keras?](#how-can-i-use-pre-trained-models-in-keras)
<ide> - [How can I use HDF5 inputs with Keras?](#how-can-i-use-hdf5-inputs-with-keras)
<ide> - [Where is the Keras configuration file stored?](#where-is-the-keras-configurati... | 1 |
Ruby | Ruby | allow multiple option_names in dep/reqs | e5ba31fcdcc4150e5aa8ecf110cfa502dd62a802 | <ide><path>Library/Homebrew/build_options.rb
<ide> def include?(name)
<ide> # args << "--with-example1"
<ide> # end</pre>
<ide> def with?(val)
<del> name = val.respond_to?(:option_name) ? val.option_name : val
<add> option_names = val.respond_to?(:option_names) ? val.option_names : [val]
<ide>
<del> i... | 7 |
Text | Text | remove obsolete 'bootcamp' project | 46492ee65a26c8b3a138f4b9f5eea0e648dc8b45 | <ide><path>hack/bootcamp/README.md
<del># Docker maintainer bootcamp
<del>
<del>## Introduction: we need more maintainers
<del>
<del>Docker is growing incredibly fast. At the time of writing, it has received over 200 contributions from 90 people,
<del>and its API is used by dozens of 3rd-party tools. Over 1,000 issues ... | 1 |
Javascript | Javascript | add check for startlatency in fast refresh | 4d13d671aa7b2121a9c364ae0e569aeafc815b15 | <ide><path>packages/next/client/dev/error-overlay/hot-dev-client.js
<ide> function handleErrors(errors) {
<ide> }
<ide> }
<ide>
<add>let startLatency = undefined
<add>
<ide> function onFastRefresh(hasUpdates) {
<ide> DevOverlay.onBuildOk()
<ide> if (hasUpdates) {
<ide> DevOverlay.onRefresh()
<ide> }
<ide> ... | 1 |
Go | Go | use ioctl helpers from x/sys/unix | c7c02eea8117347c5ebd43ef3b9192d43bcdd10b | <ide><path>pkg/loopback/attach_loopback.go
<ide> import (
<ide> // Loopback related errors
<ide> var (
<ide> ErrAttachLoopbackDevice = errors.New("loopback attach failed")
<del> ErrGetLoopbackBackingFile = errors.New("Unable to get loopback backing file")
<del> ErrSetCapacity = errors.New("Unable set loop... | 4 |
Text | Text | add toc and proper noun section to challenge guide | 962f04009bfdf53cba992ab43a05504ef2f6230b | <ide><path>challenge-style-guide.md
<ide> # A guide to designing freeCodeCamp coding challenges
<ide>
<del>> “Talk is cheap. Show me the code.” — Linus Torvalds
<add>> "Talk is cheap. Show me the code." — Linus Torvalds
<ide>
<ide> freeCodeCamp offers 1,200 hours of interactive coding challenges. These are 100% focus... | 1 |
Javascript | Javascript | add test for visit helper in ember testing | 3c6dd5271cd4380a515c714edfbf7ca60f652445 | <ide><path>packages/ember-testing/tests/helpers_test.js
<ide> test("Ember.Application#setupForTesting", function() {
<ide>
<ide> equal(App.__container__.lookup('router:main').location.implementation, 'none');
<ide> equal(window.EMBER_APP_BEING_TESTED, App);
<del>});
<ide>\ No newline at end of file
<add>});
<add>
... | 1 |
Ruby | Ruby | fix the api documentation layout of after_*_commit | 933e11f8311e13c8d5e4355813ebcdbb50037ffc | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def after_commit(*args, &block)
<ide> set_callback(:commit, :after, *args, &block)
<ide> end
<ide>
<del> # Shortcut for +after_commit :hook, on: :create+.
<add> # Shortcut for <tt>after_commit :hook, on: :create</tt>.
<ide> d... | 1 |
Go | Go | use errdefs for handling errors in client | 0cafc84fb21f675a9794c80e59f8f85919c618ec | <ide><path>client/container_copy.go
<ide> func (cli *Client) CopyToContainer(ctx context.Context, containerID, dstPath str
<ide> }
<ide> defer ensureReaderClosed(response)
<ide>
<add> // TODO this code converts non-error status-codes (e.g., "204 No Content") into an error; verify if this is the desired behavior
<ide... | 7 |
Javascript | Javascript | add test for manual time tracking and dispose | a1eb8dd975c20702e9af07ebdad89f307037efc0 | <ide><path>test/unit/media.js
<ide> test('should synthesize progress events by default', function() {
<ide> clock.tick(500);
<ide> equal(progresses, 1, 'triggered one event');
<ide> });
<add>
<add>test('dispose() should stop time tracking', function() {
<add> var tech = new videojs.MediaTechController({
<add> i... | 1 |
Java | Java | detect unsent disconnect messages | 371d93b3463c5157f3c4b2b809084ddb00ae2b9e | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/AbstractBrokerMessageHandler.java
<ide> import org.springframework.messaging.MessageChannel;
<ide> import org.springframework.messaging.MessageHandler;
<ide> import org.springframework.messaging.SubscribableChannel;
<add>import org.spri... | 4 |
Ruby | Ruby | change app to main_app in mounted_helpers | 6258f7c972f0dcf85916a0ac9ce3d34460201353 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def install_helpers(destinations = [ActionController::Base, ActionView::Base], r
<ide> module MountedHelpers
<ide> end
<ide>
<del> def mounted_helpers(name = :app)
<add> def mounted_helpers(name = :main_app)
<ide> define... | 5 |
Ruby | Ruby | fix inconsistent behavior from string#pluralize | 459f7bf38aa196cf4d2d970173b02d88e4a4e75c | <ide><path>activesupport/lib/active_support/core_ext/string/inflections.rb
<ide> class String
<ide> def pluralize(count = nil, locale = :en)
<ide> locale = count if count.is_a?(Symbol)
<ide> if count == 1
<del> self
<add> self.dup
<ide> else
<ide> ActiveSupport::Inflector.pluralize(self, l... | 2 |
Mixed | Java | remove ios platform check for running devtools | 22fbb6d46d4b91bfe08b83aaba46ad92a32bf984 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js
<ide> function setUpCollections(): void {
<ide> function setUpDevTools(): void {
<ide> if (__DEV__) {
<ide> // not when debugging in chrome
<del> if (!window.document && require('Platform').OS === 'ios') {
<add> if (!wi... | 10 |
Javascript | Javascript | fix license headers on swipablerow | 09fe99972d35eded7e739c9f7af1691395a8eb35 | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableListView.js
<ide> /**
<del> * Copyright (c) 2013-present, Facebook, Inc.
<add> * Copyright (c) 2015-present, Facebook, Inc.
<ide> * All rights reserved.
<ide> *
<ide> * This source code is licensed under the BSD-style license found in the
<ide> * LICENSE file ... | 5 |
Java | Java | eliminate duplication of list in tolist | 1913d4def31b489b421bfbb700a8ee23da147ee7 | <ide><path>rxjava-core/src/main/java/rx/internal/operators/OperatorToObservableList.java
<ide> import rx.Subscriber;
<ide>
<ide> import java.util.ArrayList;
<add>import java.util.Collections;
<ide> import java.util.LinkedList;
<ide> import java.util.List;
<ide>
<ide> public Subscriber<? super T> call(final Subscr... | 1 |
Python | Python | remove duplicate word from docstring | cf425403c8ff24623812a46272dc91f712ed5086 | <ide><path>flask/app.py
<ide> class Flask(_PackageBoundObject):
<ide> at `static_url_path`. Defaults to the ``'static'``
<ide> folder in the root path of the application.
<ide> :param host_matching: sets the app's ``url_map.host_matching`` to the given
<del> ... | 1 |
Ruby | Ruby | modify autoremove to use uninstall | 10ae9bcde728148ffed445f976cb06d3cf08e65d | <ide><path>Library/Homebrew/cmd/autoremove.rb
<ide>
<ide> require "formula"
<ide> require "cli/parser"
<add>require "uninstall"
<ide>
<ide> module Homebrew
<add> extend Uninstall
<add>
<ide> module_function
<ide>
<ide> def autoremove_args
<ide> def autoremove_args
<ide> end
<ide> end
<ide>
<del> def get... | 1 |
Text | Text | add note about no-optional to swc error doc | 59712b16c7174e60dde17dd0878f764eba59cd26 | <ide><path>errors/failed-loading-swc.md
<ide> SWC requires a binary be downloaded that is compatible specific to your system.
<ide>
<ide> #### Possible Ways to Fix It
<ide>
<add>You might need to allow optional packages to be installed by your package manager (remove `--no-optional` flag) for the package to download ... | 1 |
Python | Python | fix typo and use password instead of passphrase | 7d827aa4d7550b9d261080fa355c4f049dd303f9 | <ide><path>libcloud/compute/ssh.py
<ide> def connect(self):
<ide> if self.key_material:
<ide> conninfo['pkey'] = self._get_pkey_object(
<ide> key=self.key_material,
<del> passpharse=self.password)
<add> password=self.password)
<ide>
<ide> if not... | 1 |
Javascript | Javascript | add color support for more terminals | ceaeee012066e7e56332ba9d9f9306401c971560 | <ide><path>lib/internal/tty.js
<ide> const COLORS_16 = 4;
<ide> const COLORS_256 = 8;
<ide> const COLORS_16m = 24;
<ide>
<add>// Some entries were taken from `dircolors`
<add>// (https://linux.die.net/man/1/dircolors). The corresponding terminals might
<add>// support more than 16 colors, but this was not tested for.
... | 1 |
Python | Python | drop redundant comment | 27590fea8b34f95fc4419524db18cc5053699bee | <ide><path>djangorestframework/status.py
<ide> Also see django.core.handlers.wsgi.STATUS_CODE_TEXT
<ide> """
<ide>
<del># Verbose format
<ide> HTTP_100_CONTINUE = 100
<ide> HTTP_101_SWITCHING_PROTOCOLS = 101
<ide> HTTP_200_OK = 200 | 1 |
Text | Text | fix typo in url fragment | 441ecc459f0d08a930ee2d6f4502f24e2217e1fc | <ide><path>docs/reference/builder.md
<ide> instruction must be \`FROM\`** in order to specify the [*Base
<ide> Image*](glossary.md#base-image) from which you are building.
<ide>
<ide> Docker treats lines that *begin* with `#` as a comment, unless the line is
<del>a valid [parser directive](builder.md#parser directives... | 1 |
Python | Python | improve english tag map. re #593, | 7503e1e505dc70c93713d8848df3cbe1d5a6f44c | <ide><path>spacy/lang/en/tag_map.py
<ide> ":": {POS: PUNCT},
<ide> "$": {POS: SYM, "Other": {"SymType": "currency"}},
<ide> "#": {POS: SYM, "Other": {"SymType": "numbersign"}},
<del> "AFX": {POS: ADJ, "Hyph": "yes"},
<add> "AFX": {POS: X, "Hyph": "yes"},
<ide> "CC": {POS: CCONJ, "ConjType": "coor"... | 1 |
Javascript | Javascript | improve display of filenames in component stack | 54d86eb8227255b207c8a82619d374738b542ca8 | <ide><path>packages/shared/__tests__/describeComponentFrame-test.js
<add>/**
<add> * Copyright (c) 2016-present, Facebook, Inc.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @emails react-core
<add> */
<add... | 2 |
PHP | PHP | add tests for rebinding event | d1175f90de7f541468c90661dc363b424fd7decd | <ide><path>tests/Container/ContainerTest.php
<ide> public function testUnsetRemoveBoundInstances()
<ide> $this->assertFalse($container->bound('object'));
<ide> }
<ide>
<add>
<add> public function testReboundListeners()
<add> {
<add> unset($_SERVER['__test.rebind']);
<add>
<add> $container = new Container;
<add> ... | 1 |
Ruby | Ruby | add explicit anaconda warning | dafa11af9a0b346d12fb9e26adb21d8cff0d5a16 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_macgpg2
<ide> end
<ide> end
<ide>
<add> # Anaconda installs multiple system & brew dupes, including OpenSSL, Python,
<add> # sqlite, libpng, Qt, etc. Regularly breaks compile on Vim, MacVim and others.
<add> # Is flagged as part of the *-config scr... | 1 |
Ruby | Ruby | add more tests to some key points in railties | e7418ab63cc4aa024367851f2f692032840cfe76 | <ide><path>railties/lib/rails/application.rb
<ide> def inherited(base)
<ide> Rails.application = base.instance
<ide> end
<ide>
<add> def respond_to?(*args)
<add> super || instance.respond_to?(*args)
<add> end
<add>
<ide> protected
<ide>
<ide> def method_missing(*args, &block)
... | 10 |
Javascript | Javascript | update gltfexporter.js | 09a68603cda2e17bf1a60988fa124132ee5f86fa | <ide><path>examples/js/exporters/GLTFExporter.js
<ide>
<ide> if ( material.emissive ) {
<ide>
<del> // emissiveFactor
<add> // note: `emissive` is not scaled by `material.emissiveIntensity` for now to accommodate glTF spec. see #21849.
<ide> const emissive = material.emissive.toArray();
<ide>
<ide> ... | 2 |
Python | Python | patch albert with heads in tensorflow | 2708b44ee9c151a2cdb84620d295c997af6fa7f0 | <ide><path>src/transformers/modeling_tf_albert.py
<ide> def _prune_heads(self, heads_to_prune):
<ide> raise NotImplementedError
<ide>
<ide> def call(
<del> self,
<del> inputs,
<del> attention_mask=None,
<del> token_type_ids=None,
<del> position_ids=Non... | 1 |
Javascript | Javascript | fix global event triggering that i broke in r6323 | cbda6c541b9f2dd8fbaa084ecce7f421e8dc3dc4 | <ide><path>src/event.js
<ide> jQuery.event = {
<ide> event.stopPropagation();
<ide> // Only trigger if we've ever bound an event for it
<ide> if ( this.global[ type ] ) {
<del> for ( var cached in jQuery.cache ) {
<del> if ( cached.events && cached.events[ type ] ) {
<del> this.trigger( event... | 2 |
Text | Text | fix typo in async_context.md | e387269586152ec285c6f98c49cfc7dc2eb276fb | <ide><path>doc/api/async_context.md
<ide> http.get('http://localhost:8080');
<ide>
<ide> Each instance of `AsyncLocalStorage` maintains an independent storage context.
<ide> Multiple instances can safely exist simultaneously without risk of interfering
<del>with each other data.
<add>with each other's data.
<ide>
<id... | 1 |
Java | Java | correct javadoc in servleturicomponentsbuilder | bb5c8ed4e8061eaf8ba990f1d54c3a6f761cf868 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java
<ide> * UriComponentsBuilder with additional static factory methods to create links
<ide> * based on the current HttpServletRequest.
<ide> *
<del> * <p><strong>Note:</strong> This class uses values from "F... | 1 |
PHP | PHP | add test for charset removal | 86ca3d1bcba403d227f2691c2692428a965b4ac3 | <ide><path>tests/TestCase/Http/Middleware/BodyParserMiddlewareTest.php
<ide> public function testInvokeParse($method)
<ide> $parser($request, $response, $next);
<ide> }
<ide>
<add> /**
<add> * test parsing on valid http method with charset
<add> *
<add> * @return void
<add> */
<add> p... | 1 |
Ruby | Ruby | switch route constructors and pass in the regexp | c989e2c56f415e0a4429b1348e76be4fc8e9f35b | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(set, ast, defaults, controller, default_action, modyoule, to, for
<ide> end
<ide>
<ide> def make_route(name, precedence)
<del> route = Journey::Route.build(name,
<add> route = Journey::Route.new(name,
<id... | 1 |
Java | Java | fix typo in javadoc | e3b3481c194abf03074ea4fe7d1ca8093e924e96 | <ide><path>spring-core/src/main/java/org/springframework/core/DecoratingProxy.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use t... | 1 |
Text | Text | fix a typo in design principles doc | c60f852cdbb9f115264537d39e2aedea6c1c9636 | <ide><path>docs/contributing/design-principles.md
<ide> Optimizing for search is also important because of our reliance on [codemods](ht
<ide>
<ide> [JSX](/react/docs/displaying-data.html#jsx-syntax) plays a similar role. While it is not required with React, we use it extensively at Facebook both for aesthetic and pra... | 1 |
Javascript | Javascript | remove orderedmap and reactproptransferer | 27233230064316a8820cd1eb825adf3ea68b8160 | <ide><path>src/isomorphic/deprecated/OrderedMap.js
<del>/**
<del> * Copyright 2013-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional grant
<del> * of pat... | 3 |
Python | Python | fix attributeerror when `sig` is not a signature. | dc1d895e00228fb02a08c3788605c4f53d4e4ade | <ide><path>celery/canvas.py
<ide> def link(self, sig):
<ide> return self.tasks[0].link(sig)
<ide>
<ide> def link_error(self, sig):
<del> sig = sig.clone().set(immutable=True)
<add> try:
<add> sig = sig.clone().set(immutable=True)
<add> except AttributeError:
<add> ... | 1 |
Text | Text | fix indentation from 1b4b26f [ci skip] | c0d1823d546541295ed914a03c7c889951b02828 | <ide><path>guides/source/form_helpers.md
<ide> output:
<ide>
<ide> ```html
<ide> <form accept-charset="UTF-8" action="/search" method="post">
<del> <input name="_method" type="hidden" value="patch" />
<del> <input name="utf8" type="hidden" value="✓" />
<del> <input name="authenticity_token" type="hidde... | 1 |
Javascript | Javascript | fix problems with compiling twice | c23e8ce5c7c381e330ad70dbb999024e0d89bee0 | <ide><path>test/ConfigTestCases.template.js
<ide> const describeCases = config => {
<ide> .catch(done);
<ide> };
<ide> if (config.cache) {
<del> const compiler = require("..")(options);
<del> compiler.run(err => {
<del> if (err) return handleFatalError(err, done);
<del> ... | 6 |
Java | Java | fix border color | 805d06087b8a4bbaa2144f67cfeedde0d306040f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewBackgroundDrawable.java
<ide> public void setBorderColor(int position, float rgb, float alpha) {
<ide> private void setBorderRGB(int position, float rgb) {
<ide> // set RGB component
<ide> if (mBorderRGB == null) {
<del> mBorder... | 1 |
PHP | PHP | add env override for running in console | a36906ab8a141f1f497a0667196935e41970ae51 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function detectEnvironment(Closure $callback)
<ide> */
<ide> public function runningInConsole()
<ide> {
<del> return php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg';
<add> return env(
<add> 'LARAVEL_RUNNING... | 1 |
Python | Python | add sent_start to pattern schema | e7341db5dc16102625d9f0f90545596145968920 | <ide><path>spacy/schemas.py
<ide> class TokenPattern(BaseModel):
<ide> is_currency: Optional[StrictBool] = None
<ide> is_stop: Optional[StrictBool] = None
<ide> is_sent_start: Optional[StrictBool] = None
<add> sent_start: Optional[StrictBool] = None
<ide> like_num: Optional[StrictBool] = None
<ide> ... | 1 |
Javascript | Javascript | throw typeerror on non-string args to path.resolve | 089ec586135726e82dc0d25c2e328478d577db24 | <ide><path>lib/path.js
<ide> if (isWindows) {
<ide> }
<ide>
<ide> // Skip empty and invalid entries
<del> if (typeof path !== 'string' || !path) {
<add> if (typeof path !== 'string') {
<add> throw new TypeError('Arguments to path.resolve must be strings');
<add> } else if(!path) {
<id... | 2 |
Javascript | Javascript | add benchmark for buf.compare() | ffdc046e5c2e80cdde31db72554dcf5196ed6d4b | <ide><path>benchmark/buffers/buffer-compare-instance-method.js
<add>'use strict';
<add>const common = require('../common.js');
<add>const v8 = require('v8');
<add>
<add>const bench = common.createBenchmark(main, {
<add> size: [16, 512, 1024, 4096, 16386],
<add> millions: [1]
<add>});
<add>
<add>function main(conf) {
... | 1 |
Python | Python | fix padding_idx of roberta model | a6a6d9e6382961dc92a1a08d1bab05a52dc815f9 | <ide><path>transformers/modeling_roberta.py
<ide> class RobertaEmbeddings(BertEmbeddings):
<ide> def __init__(self, config):
<ide> super(RobertaEmbeddings, self).__init__(config)
<ide> self.padding_idx = 1
<add> self.word_embeddings = nn.Embedding(config.vocab_size, config.hidden_size, paddin... | 1 |
Javascript | Javascript | allow callback or usercallback in the time scale | ebffa52dc2ad3c2fc5a1b3f48e4fb8596334a9ee | <ide><path>src/scales/scale.time.js
<ide> module.exports = function(Chart) {
<ide> // Function to format an individual tick mark
<ide> tickFormatFunction: function tickFormatFunction(tick, index, ticks) {
<ide> var formattedTick = tick.format(this.displayFormat);
<add> var tickOpts = this.options.ticks;
<add> ... | 1 |
Ruby | Ruby | show trailing / for dirs with brew list | 396ec2efae0cb275d5a52c05167d9e1da2875c4c | <ide><path>Library/Homebrew/brew.h.rb
<ide> def print_remaining_files files, root, other = ''
<ide> when 1
<ide> puts *files
<ide> else
<del> puts "#{root} (#{files.length} #{other}files)"
<add> puts "#{root}/ (#{files.length} #{other}files)"
<ide> end
<ide> end
<ide> end | 1 |
Python | Python | change more with statements to execute_context() | 15bb091e22f44755cf8a9006c51ce8e5171a796d | <ide><path>celery/tests/test_backends/test_amqp.py
<del>from __future__ import with_statement
<del>
<ide> import sys
<ide> import errno
<ide> import unittest
<ide><path>celery/tests/test_backends/test_redis.py
<del>from __future__ import with_statement
<del>
<ide> import sys
<ide> import errno
<ide> import socket
<ide>... | 8 |
Python | Python | push queryexecutionid to xcom | 90f08aaa0065f4f1a8cb01a1a491bf3705dd0f07 | <ide><path>airflow/contrib/operators/aws_athena_operator.py
<ide> class AWSAthenaOperator(BaseOperator):
<ide> """
<ide> An operator that submit presto query to athena.
<ide>
<add> If ``do_xcom_push`` is True, the QueryExecutionID assigned to the
<add> query will be pushed to an XCom when it successfuly ... | 2 |
Ruby | Ruby | fix stubbed methods in test cases | d2d72966c30e8a537ad1c5dbab52b148645d7b37 | <ide><path>activerecord/test/cases/fixtures_test.rb
<ide> def rollback_transaction(*args); end
<ide> end.new
<ide>
<ide> connection.pool = Class.new do
<del> def lock_thread=(lock_thread); false; end
<add> def lock_thread=(lock_thread); end
<ide> end.new
<ide>
<ide> connection.expects(:begin... | 2 |
Javascript | Javascript | fix bad caching in reactid.getid | 3266818b42fbb035ea8d9b48c8a97da5f3e9d756 | <ide><path>src/core/ReactID.js
<ide> function setID(node, id) {
<ide> * @internal
<ide> */
<ide> function getNode(id) {
<del> if (!nodeCache.hasOwnProperty(id)) {
<add> if (!nodeCache[id]) {
<ide> nodeCache[id] =
<ide> document.getElementById(id) || // TODO Quit using getElementById.
<ide> ReactMoun... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.