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 | add node.js version to bug template | 7d6fbe7fd62a3d1f7a918b40f6c9c777ca8730af | <ide><path>.github/ISSUE_TEMPLATE/1.Bug_report.md
<ide> If applicable, add screenshots to help explain your problem.
<ide> - OS: [e.g. macOS, Windows]
<ide> - Browser (if applies) [e.g. chrome, safari]
<ide> - Version of Next.js: [e.g. 6.0.2]
<add>- Version of Node.js: [e.g. 10.10.0]
<ide>
<ide> ## Additional context
... | 1 |
Text | Text | use https in documentation links where possible | 3a29b99e3b24e4d7dbfcb22df5e1f98ba9a0be4b | <ide><path>docs/README.md
<ide> var myChart = new Chart(ctx, {
<ide>
<ide> Before submitting an issue or a pull request to the project, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first.
<ide>
<del>For support using C... | 8 |
Text | Text | update the sponsor name | 3cec2c477f64d069994556f834fdf963763af7cb | <ide><path>PATRONS.md
<ide> The work on Redux was [funded by the community](https://www.patreon.com/reactdx)
<ide> Meet some of the outstanding companies and individuals that made it possible:
<ide>
<ide> * [Webflow](https://github.com/webflow)
<del>* [Chess iX](http://www.chess-ix.com/)
<add>* [Ximedes](https://www.x... | 1 |
PHP | PHP | getpdo() docblock | 5e5bad00d1fa3fb51666e44b77c593422660e85f | <ide><path>src/Illuminate/Support/Facades/DB.php
<ide> namespace Illuminate\Support\Facades;
<ide>
<ide> /**
<del> * @method static \Doctrine\DBAL\Driver\PDOConnection getPdo()
<add> * @method static \PDO getPdo()
<ide> * @method static \Illuminate\Database\ConnectionInterface connection(string $name = null)
<ide> *... | 1 |
Text | Text | remove roadmap to 2.0 | 2103e0541b8e2149a8b2e1e53d6a0ea8a66efb46 | <ide><path>readme.md
<ide> Next.js is a minimalistic framework for server-rendered React applications.
<ide> - [Customizing babel config](#customizing-babel-config)
<ide> - [Production deployment](#production-deployment)
<ide> - [FAQ](#faq)
<del>- [Roadmap](#roadmap)
<ide> - [Contributing](#contributing)
<ide> - [Aut... | 1 |
Javascript | Javascript | convert passive unmount phase to tree traversal | 1cf59f34b89728f8ef2bc17158c438ab17f063bd | <ide><path>packages/react-reconciler/src/ReactFiber.new.js
<ide> export function resetWorkInProgress(workInProgress: Fiber, renderLanes: Lanes) {
<ide> // We assume pendingProps, index, key, ref, return are still untouched to
<ide> // avoid doing another reconciliation.
<ide>
<del> // Reset the effect tag but kee... | 6 |
Python | Python | add support for axis lists in element wise ops | 160196137fde3fd57c5051aea75ea9830eb25d62 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def gather(reference, indices):
<ide>
<ide> # ELEMENT-WISE OPERATIONS
<ide>
<add>def normalize_axis(axis, ndim):
<add> if type(axis) is tuple:
<add> axis = list(axis)
<add> if type(axis) is list:
<add> for i, a in enumerate(axis):
<add> ... | 1 |
PHP | PHP | fix method separation | ae6f1b0b7b616315ff99b25a790b991509d9b2ed | <ide><path>tests/Routing/RoutingRouteTest.php
<ide> public function testModelBindingWithCustomNullReturn()
<ide> $this->assertEquals('missing', $router->dispatch(Request::create('foo/taylor', 'GET'))->getContent());
<ide> }
<ide>
<add>
<ide> public function testModelBindingWithBindingClosure()
<ide> {
<ide> $ro... | 1 |
Text | Text | add note about autocrlf required for tests | 3654cd4cdaf2ab84d0e6a190c3b9e89e86726a88 | <ide><path>test/README.md
<ide> directory, see [the guide on writing tests](../doc/guides/writing-tests.md).
<ide> On how to run tests in this directory, see
<ide> [the contributing guide](../doc/guides/contributing/pull-requests.md#step-6-test).
<ide>
<add>For the tests to successfully run on Windows, Node.js has to ... | 1 |
Text | Text | improve redundant variable name | fa94f836979516abea5743c0be2715c14c5ebb47 | <ide><path>website/docs/usage/rule-based-matching.md
<ide> from spacy.matcher import PhraseMatcher
<ide>
<ide> nlp = spacy.load('en_core_web_sm')
<ide> matcher = PhraseMatcher(nlp.vocab)
<del>terminology_list = [u"Barack Obama", u"Angela Merkel", u"Washington, D.C."]
<add>terms = [u"Barack Obama", u"Angela Merkel", u"... | 1 |
Python | Python | fix example test and test_fetcher for examples | b62ac4d240fb4d6d1b4040faf0ec168577b9f093 | <ide><path>examples/pytorch/text-classification/run_glue.py
<ide> def compute_metrics(p: EvalPrediction):
<ide>
<ide> if task == "mnli-mm":
<ide> metrics = {k + "_mm": v for k, v in metrics.items()}
<del> if "mnli" in task:
<add> if task is not None and "mnli" in task:... | 2 |
Javascript | Javascript | replace var with let/const | ee81bce9091684129416205acd67c07b7a08d3ac | <ide><path>lib/timers.js
<ide> function setTimeout(callback, after, arg1, arg2, arg3) {
<ide> throw new ERR_INVALID_CALLBACK(callback);
<ide> }
<ide>
<del> var i, args;
<add> let i, args;
<ide> switch (arguments.length) {
<ide> // fast cases
<ide> case 1:
<ide> function setInterval(callback, repeat, ... | 1 |
Python | Python | fix broken func directives in docstrings | 2fab8a31ae2639b3eacdd3935d58203b09650f29 | <ide><path>src/flask/json/__init__.py
<ide> def dumps(obj, app=None, **kwargs):
<ide> :param obj: Object to serialize to JSON.
<ide> :param app: Use this app's config instead of the active app context
<ide> or defaults.
<del> :param kwargs: Extra arguments passed to func:`json.dumps`.
<add> :param... | 1 |
Javascript | Javascript | add cut, copy, paste | 5388d70bb12cb93885f23d695f476cc2e1971b18 | <ide><path>src/core/ReactEventEmitter.js
<ide> var ReactEventEmitter = merge(ReactEventEmitterMixin, {
<ide> trapBubbledEvent(topLevelTypes.topFocus, 'focusin', mountAt);
<ide> trapBubbledEvent(topLevelTypes.topBlur, 'focusout', mountAt);
<ide> }
<add>
<add> if (isEventSupported('copy')) {
<add> ... | 4 |
Javascript | Javascript | fix the order of the element test arguments | 97cbd76695a69a973760560689d90d98e550ad7b | <ide><path>test/unit/selector.js
<ide> test("element", function() {
<ide> ok( jQuery("#lengthtest input").length, '<input name="length"> cannot be found under IE, see #945' );
<ide>
<ide> // Check for unique-ness and sort order
<del> same( jQuery("*").get(), jQuery("*, *").get(), "Check for duplicates: *, *" )... | 1 |
Go | Go | fix race in testlogssince | 2fe2f7a1864068e7d268833bb40536064f69b8aa | <ide><path>integration-cli/docker_cli_logs_test.go
<ide> func (s *DockerSuite) TestLogsFollowStopped(c *check.C) {
<ide>
<ide> func (s *DockerSuite) TestLogsSince(c *check.C) {
<ide> name := "testlogssince"
<del> runCmd := exec.Command(dockerBinary, "run", "--name="+name, "busybox", "/bin/sh", "-c", `date +%s; for i ... | 1 |
Javascript | Javascript | eliminate all overhead for hidden calls | 656ce920a33272dbf24c5a5beccf57f637e7e832 | <ide><path>benchmark/misc/hidestackframes.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>
<add>const bench = common.createBenchmark(main, {
<add> type: ['hide-stackframes-throw', 'direct-call-throw',
<add> 'hide-stackframes-noerr', 'direct-call-noerr'],
<add> n: [10e4]
<add>}, {... | 3 |
PHP | PHP | simplify method and remove param weirdness | 95325a6599cda02f84ba8efa38b3e6deb2d1363f | <ide><path>src/View/Helper/FormHelper.php
<ide> public function label($fieldName, $text = null, $options = array()) {
<ide> }
<ide>
<ide> /**
<del> * Generate a set of inputs for `$fields`. If $fields is null the fields of current model
<add> * Generate a set of inputs for `$fields`. If $fields is empty the fields of... | 2 |
Python | Python | decorelate dependencies + fix bug | 98f5c7864f9796dc5baf44cf6973dbb3e6836261 | <ide><path>hubconf.py
<del>dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex', 'ftfy', 'spacy']
<add>dependencies = ['torch', 'tqdm', 'boto3', 'requests', 'regex']
<ide>
<ide> from hubconfs.bert_hubconf import (
<ide> bertTokenizer,
<ide><path>hubconfs/gpt_hubconf.py
<ide> OpenAIGPTDoubleHeadsModel
<id... | 2 |
Ruby | Ruby | remove bottle blocks | 8f96ba3c1ebe789cbffab207e058ec21001cb4ca | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> module Homebrew
<ide>
<ide> module_function
<ide>
<add> BOTTLE_BLOCK_REGEX = / bottle do.+?end\n\n/m.freeze
<add>
<ide> sig { returns(CLI::Parser) }
<ide> def extract_args
<ide> Homebrew::CLI::Parser.new do
<ide> def extract
<ide> result.sub!("class... | 1 |
Python | Python | pass initial_state as a keyword argument | 16343b3261da08a8aa52f209a8609ce4b51c7fdf | <ide><path>keras/layers/recurrent.py
<ide> class Recurrent(Layer):
<ide> a specific layer, or on your entire model.
<ide>
<ide> # Note on specifying initial states in RNNs
<del> Most RNN layers can be called with either a single tensor, or a list
<del> of tensors.
<del> If the an RNN l... | 2 |
Text | Text | add headers to payload list [ci skip] | 0c85ff33b1b84ee68cad47f5c294051fecccf115 | <ide><path>guides/source/active_support_instrumentation.md
<ide> Action Controller
<ide> | `:controller` | The controller name |
<ide> | `:action` | The action |
<ide> | `:params` | Hash of request parameters without any filter... | 1 |
Mixed | Ruby | avoid duplicate clauses when using #or | 110e0e1fcceab68716e0c75d87baffb14403b288 | <ide><path>activerecord/CHANGELOG.md
<add>* When using #or, extract the common conditions and put them before the OR condition.
<add>
<add> *Maxime Handfield Lapointe*
<add>
<ide> * `Relation#or` now accepts two relations who have different values for
<ide> `references` only, as `references` can be implicitl... | 3 |
Text | Text | remove whitespace before testing | a294021d537abdc7e1582d72be2592727a0f8dec | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/render-state-in-the-user-interface.english.md
<ide> tests:
<ide> - text: <code>MyComponent</code> should render an <code>h1</code> header enclosed in a single <code>div</code>.
<ide> testString: assert(/<div><h1>.*<\/h1><\/div>/.test(Enzyme.mou... | 1 |
Python | Python | terminate pool at systemexit | 22491d70625ca9890d8c47f50ffacca89c34bd3c | <ide><path>celery/bin/celeryd.py
<ide> def run_worker(concurrency=DAEMON_CONCURRENCY, daemon=False,
<ide> except Exception, e:
<ide> emergency_error(logfile, "celeryd raised exception %s: %s\n%s" % (
<ide> e.__class__, e, traceback.format_exc()))
<add> except:
<add> con... | 3 |
Python | Python | add fixture for cli tests requiring sample dags | 3cd4df16d4f383c27f7fc6bd932bca1f83ab9977 | <ide><path>airflow/models/dagbag.py
<ide> from airflow.utils.retries import MAX_DB_RETRIES, run_with_db_retries
<ide> from airflow.utils.session import provide_session
<ide> from airflow.utils.timeout import timeout
<add>from airflow.utils.types import NOTSET, ArgNotSet
<ide>
<ide> if TYPE_CHECKING:
<ide> import p... | 3 |
Text | Text | fix minor typo in testing guide | 0e2cc9bc0debe893a8d151dfb4a3694b6b93505f | <ide><path>guides/source/testing.md
<ide> Finally we can assert that our response was successful, template was rendered, a
<ide>
<ide> #### Taking it further
<ide>
<del>We were able to successfully test a very small workflow for visiting our blog and creating a new article. If we wanted to take this further we could ... | 1 |
Javascript | Javascript | update test-dns.js after a60a9b0 | 7b72e156655afb6b998e8fb731cc65f4facb19ee | <ide><path>test/internet/test-dns.js
<ide> var assert = require('assert'),
<ide> isIP = net.isIP,
<ide> isIPv4 = net.isIPv4,
<ide> isIPv6 = net.isIPv6;
<add>var util = require('util');
<ide>
<ide> var expected = 0,
<ide> completed = 0,
<ide> TEST(function test_resolveTxt(done) {
<ide> var req = dns.r... | 1 |
Python | Python | avoid tensorflow import in trainer | b8697bc62216b9e2ca60811626c6a6ca992b0d34 | <ide><path>src/transformers/modelcard.py
<ide> is_tokenizers_available,
<ide> is_torch_available,
<ide> )
<del>from .models.auto.configuration_auto import ALL_PRETRAINED_CONFIG_ARCHIVE_MAP
<ide> from .training_args import ParallelMode
<ide> from .utils import logging
<ide>
<ide> def from_pretrained(cls, pretra... | 1 |
Javascript | Javascript | add support for missing xhr response types | fcc89e9d923893229dae11edb59bd3df082fafad | <ide><path>Libraries/Network/XMLHttpRequestBase.js
<ide>
<ide> var RCTNetworking = require('RCTNetworking');
<ide> var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
<del>var invariant = require('fbjs/lib/invariant');
<add>const invariant = require('fbjs/lib/invariant');
<add>const utf8 = require('utf8');
<... | 3 |
Javascript | Javascript | remove extra spacing | 11ab454d020cc4dbc1b589e77c865be7a7274911 | <ide><path>test/createStore.spec.js
<ide> describe('createStore', () => {
<ide> expect(listenerB.calls.length).toBe(1);
<ide> });
<ide>
<del>
<ide> it('should support removing a subscription within a subscription', () => {
<ide> const store = createStore(reducers.todos);
<ide> const listenerA = expect.... | 1 |
Javascript | Javascript | make isnumeric limited to strings and numbers | 15ac848868e993dfe5ccd7751a94f5c8edc288bc | <ide><path>src/core.js
<ide> jQuery.extend( {
<ide>
<ide> isNumeric: function( obj ) {
<ide>
<del> // parseFloat NaNs numeric-cast false positives (null|true|false|"")
<del> // ...but misinterprets leading-number strings, particularly hex literals ("0x...")
<del> // subtraction forces infinities to NaN
<del> // ... | 2 |
Mixed | Python | allow customizing operation name. | 5b16a1724202d6f4ef58d22caa492893ee5f3aa8 | <ide><path>docs/api-guide/schemas.md
<ide> class MyView(APIView):
<ide> ...
<ide> ```
<ide>
<add>### OperationId
<add>
<add>The schema generator generates an [operationid](openapi-operationid) for each operation. This `operationId` is deduced from the model name, serializer name or view name. The operationId may l... | 3 |
Javascript | Javascript | add react-dom to bower when releasing | 353a01cf5e7dc59581298160e566e7ec8e6e73cd | <ide><path>grunt/tasks/release.js
<ide> var BOWER_GLOB = [BOWER_PATH + '*.{js}'];
<ide> var BOWER_FILES = [
<ide> 'react.js', 'react.min.js', 'JSXTransformer.js',
<ide> 'react-with-addons.js', 'react-with-addons.min.js',
<add> 'react-dom.js', 'react-dom.min.js',
<ide> ];
<ide> var GH_PAGES_PATH = '../react-gh-page... | 1 |
Ruby | Ruby | add some implementation docs. closes . closes | 2cb2ca68b1973ddd202b094599521e4adc39a217 | <ide><path>actionpack/lib/action_dispatch/middleware/flash.rb
<ide> def notice=(message)
<ide> end
<ide> end
<ide>
<add> # Implementation detail: please do not change the signature of the
<add> # FlashHash class. Doing that will likely affect all Rails apps in
<add> # production as the FlashHash cur... | 1 |
Ruby | Ruby | fix string#last example | 39c483fec56b98b0cdb11b705cd7e63b43d60a64 | <ide><path>activesupport/lib/active_support/core_ext/string/access.rb
<ide> def first(limit = 1)
<ide> #
<ide> # str = "hello"
<ide> # str.last #=> "o"
<del> # str.last(1) #=> "h"
<add> # str.last(1) #=> "o"
<ide> # str.last(2) #=> "lo"
<ide> # str.last(0) #=> ""
<ide> # str.last(6) #=> "... | 1 |
PHP | PHP | remove getfromjson from translator | 697b898a1c89881c91af83ecc4493fa681e2aa38 | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function toMail($notifiable)
<ide> }
<ide>
<ide> return (new MailMessage)
<del> ->subject(Lang::getFromJson('Reset Password Notification'))
<del> ->line(Lang::getFromJson('You are receiving this email beca... | 10 |
PHP | PHP | remove route dependency from url generator api | 3d4cfbcfc0f1f06b3127504761ddd5b418f0d29a | <ide><path>src/Illuminate/Contracts/Routing/UrlGenerator.php
<ide> public function asset($path, $secure = null);
<ide> * @param string $name
<ide> * @param mixed $parameters
<ide> * @param bool $absolute
<del> * @param \Illuminate\Routing\Route $route
<ide> * @return string
<ide> *
<ide> * @throws... | 2 |
Python | Python | fix incorrect module name | e46ca53e175ec800f1f2267f5d769dc38e9d31be | <ide><path>keras/optimizers/schedules/__init__.py
<ide> # ==============================================================================
<ide> """Learning rate schedule API."""
<ide>
<del>from keras.optimizers.schedules.learning_rate_schedules import ExponentialDecay
<del>from keras.optimizers.schedules.learning_rate_... | 1 |
Text | Text | fix typos (docs/animations) | 7c36138caa0b550ac9471d0a7b555923ce63f69a | <ide><path>docs/Animations.md
<ide> use this.
<ide>
<ide>  Screenshot from
<ide> [react-native-scrollable-tab-view](https://github.com/brentvatne/react-native-scrollable-tab-view).
<del>You can run a simlar example [here](https://rnplay.org/apps/qHU_5w).
<add>You can run a similar exa... | 1 |
Python | Python | fix merge issue #480 | 8d553d3fcb5f00e78e77236d47013b55c818d498 | <ide><path>glances/plugins/glances_help.py
<ide> def generate_view_data(self):
<ide> self.view_data['psutil_version'] = ' with PSutil {0}'.format(psutil_version)
<ide>
<ide> try:
<del> self.view_data['configuration_file'] = '{0}: {1}'.format('Configuration file', self.config.get_loaded_confi... | 1 |
Python | Python | fix logic order for use_tf/use_torch | faef6f6191a8d319b541396a0f850c3d6f15f5d4 | <ide><path>transformers/file_utils.py
<ide> try:
<ide> os.environ.setdefault('USE_TF', 'YES')
<ide> if os.environ['USE_TF'].upper() in ('1', 'ON', 'YES'):
<del> logger.info("USE_TF override through env variable, disabling Tensorflow")
<del> _tf_available = False
<del> else:
<ide> import... | 1 |
Java | Java | add @reactmodule annotation | 0561336ae4f2e9bd9d418c18b30bc32951f2c2ac | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java
<ide>
<ide> package com.facebook.react.bridge;
<ide>
<add>import com.facebook.common.logging.FLog;
<ide> import com.facebook.infer.annotation.Assertions;
<add>import com.facebook.react.bridge.annotations.ReactModule;
<add>import com.f... | 2 |
Java | Java | add databufferutils.matcher and split | f747ba282aea2f7c542e4a59ef6b30f9016325c5 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
<ide> import java.nio.channels.ReadableByteChannel;
<ide> import java.nio.channels.WritableByteChannel;
<ide> import java.nio.file.StandardOpenOption;
<add>import java.util.ArrayList;
<add>import java.util.Arrays;
<add>import j... | 2 |
Text | Text | add google drawings as an svg tool | 847a561fbdc1f7d44527a0dcf2caeed3c7ebc9ad | <ide><path>guide/english/svg/index.md
<ide> There are a few tools available to create SVG in the form of a drawing program.
<ide>
<ide> - <a href='https://www.inkscape.org/' target='_blank' rel='nofollow'>Inkscape</a> - It is an open source tool for state-of-the-art vector drawing with an easy to use graphical interfa... | 1 |
Javascript | Javascript | move initialization of uniqueprefix higher | 13b88a07e08fffbfb8fc1184a793d313917db65e | <ide><path>src/evaluator.js
<ide> var PartialEvaluator = (function PartialEvaluatorClosure() {
<ide> var self = this;
<ide> var xref = this.xref;
<ide> var handler = this.handler;
<del> var uniquePrefix = this.uniquePrefix;
<add> var uniquePrefix = this.uniquePrefix || '';
<ide>
<ide> ... | 1 |
Javascript | Javascript | handle `error` events with `_tlserror` | d33c4bf97b68dbae83a1d456f7b34a91b1583666 | <ide><path>lib/_tls_wrap.js
<ide> function TLSSocket(socket, options) {
<ide> // Proxy for API compatibility
<ide> this.ssl = this._handle;
<ide>
<del> this.on('error', this._emitTLSError);
<add> this.on('error', this._tlsError);
<ide>
<ide> this._init(socket, wrap);
<ide>
<ide> TLSSocket.prototype._releaseC... | 1 |
Javascript | Javascript | read compiler.context instead of this.context | c204cdd91e62e91ecdb14cd6bc4588335ccf5a4e | <ide><path>server/on-demand-entry-handler.js
<ide> export default function onDemandEntryHandler (devMiddleware, compilers, {
<ide> const allEntries = Object.keys(entries).map((page) => {
<ide> const { name, entry } = entries[page]
<ide> entries[page].status = BUILDING
<del> return addEntry(... | 1 |
Ruby | Ruby | add brew linkapps --system | cda83428a64e89862c4da1265ed0e185829186b6 | <ide><path>Library/Contributions/cmd/brew-linkapps.rb
<ide> # Links any Applications (.app) found in installed prefixes to ~/Applications
<ide> require "formula"
<ide>
<del>HOME_APPS = File.expand_path("~/Applications")
<add>TARGET_DIR = ARGV.include?("--system") ? "/Applications" : File.expand_path("~/Applications")
... | 1 |
Javascript | Javascript | remove prism from app chunk | 06294afdd3894ea4a8582288018e14950485f294 | <ide><path>client/src/components/profile/components/TimeLine.js
<ide> import { withTranslation } from 'react-i18next';
<ide> import './timeline.css';
<ide> import TimelinePagination from './TimelinePagination';
<ide> import { FullWidthRow, Link } from '../../helpers';
<del>import SolutionViewer from '../../SolutionView... | 1 |
Mixed | Ruby | fix explicit names on multiple file fields | 48dc5192eff45fce5ce39c41cdc3188be97ca614 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix explicit names on multiple file fields. If a file field tag is passed
<add> the multiple option, it is turned into an array field (appending `[]`),
<add> but if the file field is passed an explicit name as an option, leave... | 3 |
Text | Text | add area/daemon and area/docs labels | 851bf81603183b6493facb3bf3479d2936473073 | <ide><path>project/ISSUE-TRIAGE.md
<ide> An issue can have multiple of the following labels.
<ide> | Kind | Description |
<ide> |------------------|--------------------------------------------... | 1 |
Python | Python | fix mt5 config | 36b60ce9e88656e10d1dbef2762a0b3540c37a5f | <ide><path>src/transformers/models/mt5/configuration_mt5.py
<ide> class MT5Config(PretrainedConfig):
<ide> testing).
<ide> feed_forward_proj (:obj:`string`, `optional`, defaults to :obj:`"gated-gelu"`):
<ide> Type of feed forward layer to be used. Should be one of :obj:`"relu"` or :obj:`... | 1 |
Java | Java | fix typos in @eventlistener | 14e168f2dc530c67d98f40974dd903810a0420a3 | <ide><path>spring-context/src/main/java/org/springframework/context/event/EventListener.java
<ide> import org.springframework.core.annotation.AliasFor;
<ide>
<ide> /**
<del> * Annotation that marks a method to listen for application events. The
<del> * method may have one (and only one) parameter that reflects the eve... | 1 |
Ruby | Ruby | remove redeclared method | b7dd6f1f7eb803923b52e96ae663f05f6b4676ae | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def build_from_source?
<ide> flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE']
<ide> end
<ide>
<del> def one?
<del> flag? "--1"
<del> end
<del>
<ide> def flag? flag
<ide> options_only.each do |arg|
<ide> return true if arg == flag | 1 |
Text | Text | fix illogical code in tutorial.md | 284a96b9a668325cc0b6a0b8c2b64ecacc437b3f | <ide><path>docs/tutorial/tutorial.md
<ide> const moves = history.map((step, move) => {
<ide> 'Move #' + move :
<ide> 'Game start';
<ide> return (
<del> <li key={move}>
<add> <li>
<ide> <a href="#" onClick={() => this.jumpTo(move)}>{desc}</a>
<ide> </li>
<ide> ); | 1 |
Python | Python | add tests for `np.floating.is_integer` | 5d86d8c9cc70f87b4aab10682d101acd8c4fb781 | <ide><path>numpy/core/tests/test_scalar_methods.py
<ide> def test_roundtrip(self, ftype, frac_vals, exp_vals):
<ide> pytest.skip("longdouble too small on this platform")
<ide>
<ide> assert_equal(nf / df, f, "{}/{}".format(n, d))
<add>
<add>
<add>@pytest.mark.parametrize("code", np.typecodes... | 2 |
PHP | PHP | remove unneeded calls to with | fcb9642d475f08d462a0522eb0111d0e6963bf54 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function morphTo($name = null, $type = null, $id = null)
<ide> $instance = new $class;
<ide>
<ide> return new MorphTo(
<del> with($instance)->newQuery(), $this, $id, $instance->getKeyName(), $type, $name
<add> $instance->newQuery(), $this, ... | 3 |
Javascript | Javascript | add feature flag to disable yielding | 4162f6026c2f560f286e7853f4929cd5e0135bdd | <ide><path>packages/react-dom/src/__tests__/ReactDOMFiberAsync-test.internal.js
<ide> 'use strict';
<ide>
<ide> const React = require('react');
<add>const Fragment = React.Fragment;
<ide> let ReactFeatureFlags = require('shared/ReactFeatureFlags');
<ide>
<ide> let ReactDOM;
<ide> describe('ReactDOMFiberAsync', () => ... | 9 |
Javascript | Javascript | fix bug in hmr runtime | 54a90430a22cc8688ec38a2975119409b7463154 | <ide><path>lib/hmr/JavascriptHotModuleReplacement.runtime.js
<ide> module.exports = function () {
<ide> moduleOutdatedDependencies =
<ide> outdatedDependencies[outdatedModuleId];
<ide> var callbacks = [];
<add> var dependenciesForCallbacks = [];
<ide> for (var j = 0; j < moduleOutdate... | 1 |
Javascript | Javascript | remove unused `mozcentralcheck` target | 6d374f15c05bdd782fbea563a50f5f3a3f1af377 | <ide><path>make.js
<ide> target.mozcentraldiff = function() {
<ide> echo('Result diff can be found at ' + MOZCENTRAL_DIFF);
<ide> };
<ide>
<del>target.mozcentralcheck = function() {
<del> cd(ROOT_DIR);
<del>
<del> echo();
<del> echo('### Checking mozcentral changes');
<del>
<del> var mcPath = env['MC_PATH'];
<de... | 1 |
Java | Java | improve diagnostics for invalid testgroup values | 55caf7bdb0b418d64967f057832eba40de7ff825 | <ide><path>spring-core/src/test/java/org/springframework/tests/TestGroup.java
<ide> import java.util.HashSet;
<ide> import java.util.Set;
<ide>
<add>import org.springframework.util.StringUtils;
<add>
<add>import static java.lang.String.*;
<add>
<ide> /**
<ide> * A test group used to limit when certain tests are run.
... | 2 |
PHP | PHP | add additional unit tests for error middleware | 6c2dbd5872bfc309da535f284bd7e79debb0d9a3 | <ide><path>tests/TestCase/Error/Middleware/ErrorHandlerMiddlewareTest.php
<ide> public function testHandleException()
<ide> $this->assertContains('was not found', '' . $result->getBody());
<ide> }
<ide>
<add> /**
<add> * Test rendering an error page holds onto the original request.
<add> *
<add>... | 1 |
Text | Text | use sentence case in readme.md headers | b10349a246349fcffb60212d17bc6d765282a617 | <ide><path>README.md
<ide> The Node.js project uses an [open governance model](./GOVERNANCE.md). The
<ide> # Table of contents
<ide>
<ide> * [Support](#support)
<del>* [Release Types](#release-types)
<add>* [Release types](#release-types)
<ide> * [Download](#download)
<del> * [Current and LTS Releases](#current-a... | 1 |
Python | Python | remove type restriction for ordering | 174682bf07edab6f814fd35dd3caca1e981ac6db | <ide><path>airflow/models.py
<ide> def __neq__(self, other):
<ide> return not self == other
<ide>
<ide> def __lt__(self, other):
<del> return (type(self) == type(other) and self.task_id < other.task_id)
<add> return self.task_id < other.task_id
<ide>
<ide> def __hash__(self):
<ide> ... | 1 |
Javascript | Javascript | handle case when weights are zero | 578013ac202aa3b28d25c4378018acd077ce5ed8 | <ide><path>src/objects/SkinnedMesh.js
<ide> THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
<ide>
<ide> } else {
<ide>
<del> // do nothing
<add> sw.set( 1, 0, 0, 0 ); // do something reasonable
<ide>
<ide> }
<ide>
<ide> THREE.SkinnedMesh.prototype.normalizeSkinWeights = function () {
<i... | 1 |
Python | Python | fix typos in hive transfer operator docstrings | f50f677514b562ac83a00cde2bfd0efdfbe171e4 | <ide><path>airflow/providers/apache/hive/transfers/hive_to_mysql.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide>
<del>"""This module contains operator to move data from Hive to MySQL."""
<add>"""This module contains an operator to move data from Hive to MySQL."""
<id... | 6 |
Java | Java | add support for setting the "vary" response header | 7a5e93ff16622cbffeac31f514fad11a7102c2cd | <ide><path>spring-web/src/main/java/org/springframework/http/HttpHeaders.java
<ide> import org.springframework.util.Assert;
<ide> import org.springframework.util.LinkedCaseInsensitiveMap;
<ide> import org.springframework.util.MultiValueMap;
<add>import org.springframework.util.ObjectUtils;
<ide> import org.springframew... | 6 |
Java | Java | drop support for jetty 9.3 and okhttp 2.x | 47c4cf7abf231018e102bf51d83dd92c656f8996 | <ide><path>spring-web/src/main/java/org/springframework/http/client/OkHttpAsyncClientHttpRequest.java
<del>/*
<del> * Copyright 2002-2016 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance with the Licens... | 10 |
Ruby | Ruby | perf caching engine, converting to an attr_reader | 53bfaedaca5387bbc27a4ce04ea47367aaf4401a | <ide><path>lib/arel/algebra/relations/utilities/compound.rb
<ide> module Arel
<ide> class Compound
<ide> include Relation
<ide>
<del> attr_reader :relation
<add> attr_reader :relation, :engine
<ide> delegate :joins, :join?, :inserts, :taken, :skipped, :name, :externalizable?,
<ide> :column... | 1 |
PHP | PHP | add sqlite decimal length/precision | ca07ce15a8feafbc02af15f98c2208cea70a60e8 | <ide><path>src/Core/StaticConfigTrait.php
<ide> public static function parseDsn(string $dsn): array
<ide> $parsed['className'] = $classMap[$parsed['scheme']];
<ide> }
<ide> }
<del>
<add>
<ide> return $parsed;
<ide> }
<ide>
<ide><path>src/Database/Schema/SqliteSch... | 2 |
Ruby | Ruby | fix app and actions generators tests | f8294cb8bac6357727e7d5df5623349105c6f996 | <ide><path>railties/test/generators/actions_test.rb
<ide> class ActionsTest < Rails::Generators::TestCase
<ide> arguments [destination_root]
<ide>
<ide> def setup
<add> Rails.application = TestApp::Application
<ide> super
<ide> @git_plugin_uri = 'git://github.com/technoweenie/restful-authentication.git'... | 2 |
Javascript | Javascript | keep chunk ids | c5b52b547c8c2c683217a9ea175398a2e4922c4d | <ide><path>lib/Compilation.js
<ide> Compilation.prototype.applyModuleIds = function applyModuleIds() {
<ide> };
<ide>
<ide> Compilation.prototype.applyChunkIds = function applyChunkIds() {
<del> var i = 0;
<add> var i = this.cache && this.cache["nextChunkId"] || 1;
<add> var usedIds = {0:true};
<add> if(this.cache) {
... | 1 |
Go | Go | correct command annotation | b642282990fe19f1dd7add0313c05cd139c52819 | <ide><path>api/client/image/history.go
<ide> type historyOptions struct {
<ide> noTrunc bool
<ide> }
<ide>
<del>// NewHistoryCommand create a new `docker history` command
<add>// NewHistoryCommand creates a new `docker history` command
<ide> func NewHistoryCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> ... | 5 |
PHP | PHP | update controller tests | 72bf1ca460104c1b70f0cdd11aa8baaf70814af0 | <ide><path>lib/Cake/Controller/Controller.php
<ide> public function __isset($name) {
<ide> */
<ide> public function __get($name) {
<ide> switch ($name) {
<del> case 'base':
<del> case 'here':
<del> case 'webroot':
<del> case 'data':
<del> return $this->request->{$name};
<del> case 'action':
<del> re... | 5 |
PHP | PHP | use interfaces instead of classes for typehinting | ca1db1dce91dd6e11b749d7393b20cafb6423b66 | <ide><path>src/ORM/Behavior/Translate/EavStrategy.php
<ide> use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\Datasource\QueryInterface;
<del>use Cake\Event\Event;
<add>use Cake\Event\EventInterface;
<ide> use Cake\ORM\Behavior\Translate\TranslateStrategyInterface;
<ide> use C... | 4 |
Javascript | Javascript | simplify tracking of edgesgeometry coordinates | 669eb6dd6191978e2f6b280bc50f976453f3d654 | <ide><path>src/extras/geometries/EdgesGeometry.js
<ide> THREE.EdgesGeometry = function ( geometry, thresholdAngle ) {
<ide>
<ide> var vertices = geometry2.vertices;
<ide> var faces = geometry2.faces;
<del> var numEdges = 0;
<ide>
<ide> for ( var i = 0, l = faces.length; i < l; i ++ ) {
<ide>
<ide> THREE.EdgesGeom... | 1 |
Javascript | Javascript | check thenable instead of thenablestate | 6b4c0314e82e3e56a8af84f3af3c0822a950ad1f | <ide><path>packages/react-reconciler/src/ReactFiberThenable.new.js
<ide> export function getThenableStateAfterSuspending(): ThenableState | null {
<ide> return state;
<ide> }
<ide>
<del>export function isThenableStateResolved(thenables: ThenableState): boolean {
<del> const lastThenable = thenables[thenables.length... | 4 |
Javascript | Javascript | replace object.assign with object spread | 35ec01097b2a397ad0a22aac536fe07514876e21 | <ide><path>test/parallel/test-trace-events-async-hooks-dynamic.js
<ide> const proc = cp.spawnSync(
<ide> ['-e', enable + code ],
<ide> {
<ide> cwd: tmpdir.path,
<del> env: Object.assign({}, process.env, {
<del> 'NODE_DEBUG_NATIVE': 'tracing',
<del> 'NODE_DEBUG': 'tracing'
<del> })
<add> env: ... | 7 |
Python | Python | fix rst syntax warnings | 20caa1bd2a5087dc08f5a34fdb1e019a197f3522 | <ide><path>celery/backends/__init__.py
<ide> def get_backend_cls(backend):
<ide> """
<ide> .. function:: get_default_backend_cls()
<ide>
<del> Get the backend class specified in :settings:`CELERY_BACKEND`.
<add> Get the backend class specified in :setting:`CELERY_BACKEND`.
<ide>
<ide> """
<ide> get_default_back... | 3 |
Java | Java | remove a redundant word | c8fd4cb5840f02881a6e201767c9609642c08c86 | <ide><path>spring-test/src/main/java/org/springframework/test/context/web/ServletTestExecutionListener.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");
<... | 1 |
Javascript | Javascript | fix tests after merge | 4dde417214fa48185246cddade518c57f6de32af | <ide><path>src/browser/ui/__tests__/ReactDOMComponent-test.js
<ide> describe('ReactDOMComponent', function() {
<ide> });
<ide>
<ide> it('warns on invalid nesting', () => {
<del> spyOn(console, 'warn');
<add> spyOn(console, 'error');
<ide> ReactTestUtils.renderIntoDocument(<div><tr /></div>);
<i... | 3 |
Javascript | Javascript | remove old curriculum bundler | edb936ce35b498e9c593df418f10389b4bbd2643 | <ide><path>curriculum/create-challenge-bundle.js
<del>var fs = require('fs');
<del>var getChallenges = require('./getChallenges');
<del>
<del>var challengeSpecs = getChallenges();
<del>
<del>fs.writeFileSync('seed/challenge-bundle.json', JSON.stringify(challengeSpecs));
<ide><path>curriculum/package-entry.js
<del>expor... | 2 |
Python | Python | decorate non-regression tests | 91dec2c76e9affbaafb62cc6a95b317db583c569 | <ide><path>spacy/tests/lang/en/test_prefix_suffix_infix.py
<ide> def test_en_tokenizer_splits_period_abbr(en_tokenizer):
<ide> assert tokens[4].text == "Mr."
<ide>
<ide>
<add>@pytest.mark.issue(225)
<ide> @pytest.mark.xfail(reason="Issue #225 - not yet implemented")
<ide> def test_en_tokenizer_splits_em_dash_infi... | 5 |
Ruby | Ruby | add helper methods for pth detection | b584689afa5683592371458f7d9383d0fea4e8e1 | <ide><path>Library/Homebrew/language/python.rb
<ide> def self.major_minor_version python
<ide> Version.new(version.to_s)
<ide> end
<ide>
<add> def self.homebrew_site_packages(version="2.7")
<add> HOMEBREW_PREFIX/"lib/python#{version}/site-packages"
<add> end
<add>
<ide> def self.each_python bu... | 1 |
Javascript | Javascript | fix version typo in grunt task | 52164602466e6d9fe3787c522977c7a112d2ee21 | <ide><path>grunt/tasks/version-check.js
<ide> module.exports = function() {
<ide> }
<ide> if (npmReactVersion !== reactToolsVersion) {
<ide> grunt.log.error(
<del> 'npm-react version does not match react-tools veersion. Expected %s, saw %s',
<add> 'npm-react version does not match react-tools version.... | 1 |
PHP | PHP | add more proxy methods to deferred value | 08c40123a438e40ad82582fee7ddaa1ff056bb83 | <ide><path>src/Illuminate/View/Component.php
<ide>
<ide> namespace Illuminate\View;
<ide>
<add>use ArrayIterator;
<ide> use Closure;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Support\DeferringDisplayableValue;
<add>use Illuminate\Support\Enumerable;
<ide> use Illuminate\Support\Str;
<ad... | 1 |
Javascript | Javascript | remove disableschedulertimeoutinworkloop flag | ba82eea3837e4aaeb5a30b7827b664a8c2128d2e | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> import {
<ide> enableSchedulingProfiler,
<ide> enableScopeAPI,
<ide> skipUnmountedBoundaries,
<del> disableSchedulerTimeoutInWorkLoop,
<ide> enableDoubleInvokingEffects,
<ide> } from 'shared/ReactFeatureFlags';
<ide> import ReactSharedInt... | 12 |
Ruby | Ruby | remove stale construct_* methods | 21ce8eac9b9bd8e14e3396caf2e30751889e26cb | <ide><path>activerecord/lib/active_record/base.rb
<ide> def construct_join(joins, scope)
<ide> end
<ide> end
<ide>
<del> def construct_order(order, scope)
<del> orders = []
<del>
<del> scoped_order = scope[:order] if scope
<del> if order
<del> orders << or... | 1 |
Text | Text | fix usage in middleware errors | c984281f900811cff43e136362709dbafca3711b | <ide><path>docs/advanced-features/middleware.md
<ide> export function middleware(req: NextRequest) {
<ide> if (areCredentialsValid(req.headers.get('authorization')) {
<ide> return NextResponse.next()
<ide> }
<del> return NextResponse.redirect(`/login?from=${req.nextUrl.pathname}`)
<add> return NextResponse.re... | 2 |
Javascript | Javascript | add mocha rfc 232 service test blueprint | 4f51ebd5c47ec3e8089eadc2bdbfeca5f11f7581 | <ide><path>blueprints/service-test/mocha-rfc-232-files/__root__/__testType__/__path__/__test__.js
<add>import { expect } from 'chai';
<add>import { describe, it } from 'mocha';
<add>import { setupTest } from 'ember-mocha';
<add>
<add>describe('<%= friendlyTestDescription %>', function() {
<add> setupTest();
<add>
<add... | 3 |
Javascript | Javascript | add smoke tests for styles (including ssr) | 44c74c7b124056649ca9d9887bb73f28d9bc7685 | <ide><path>src/renderers/dom/__tests__/ReactDOMProduction-test.js
<ide> describe('ReactDOMProduction', () => {
<ide>
<ide> var React;
<ide> var ReactDOM;
<add> var ReactDOMServer;
<ide> var oldProcess;
<ide>
<ide> beforeEach(() => {
<ide> describe('ReactDOMProduction', () => {
<ide> jest.resetModules();
... | 1 |
Python | Python | fix misleading error when coercing to array | 99f605c4545597e9a3bdf66f97b98da30f78ae33 | <ide><path>numpy/lib/histograms.py
<ide> def _get_outer_edges(a, range):
<ide> if first_edge > last_edge:
<ide> raise ValueError(
<ide> 'max must be larger than min in range parameter.')
<del> if not np.all(np.isfinite([first_edge, last_edge])):
<add> if not (np.isfinite(first_edge) and np... | 2 |
Javascript | Javascript | fix timeout with null handle | cecbb595d5c4ea97264092abf2ade16b54a945fd | <ide><path>lib/net.js
<ide> Socket.prototype.setTimeout = function(msecs, callback) {
<ide>
<ide>
<ide> Socket.prototype._onTimeout = function() {
<del> // `.prevWriteQueueSize` !== `.updateWriteQueueSize()` means there is
<del> // an active write in progress, so we suppress the timeout.
<del> const prevWriteQueue... | 2 |
Text | Text | add docs for server.address() for pipe case | 13487c437cea783a91db775dd003b24a147b112e | <ide><path>doc/api/net.md
<ide> added: v0.1.90
<ide> -->
<ide>
<ide> Returns the bound address, the address family name, and port of the server
<del>as reported by the operating system.
<add>as reported by the operating system if listening on an IP socket.
<ide> Useful to find which port was assigned when getting an O... | 1 |
Javascript | Javascript | add .rocks to csp | 94622cc3d67fd8435fb6350931848c1597a9edb1 | <ide><path>server/middlewares/csp.js
<ide> import helmet from 'helmet';
<ide> let trusted = [
<ide> "'self'",
<ide> 'https://search.freecodecamp.org',
<add> 'https://www.freecodecamp.rocks',
<add> 'https://api.freecodecamp.rocks',
<ide> 'https://*.algolianet.com',
<ide> 'https://' + process.env.AUTH0_DOMAIN
<... | 1 |
Python | Python | add tip for dotenv | 08e61ea200d04326f8f40a3130ef613f84cd854d | <ide><path>flask/cli.py
<ide> def load_dotenv(path=None):
<ide> """
<ide>
<ide> if dotenv is None:
<add> if path or os.path.exists('.env') or os.path.exists('.flaskenv'):
<add> click.secho(
<add> ' * Tip: There are .env files present.'
<add> ' Do "pip install pyt... | 1 |
Text | Text | use regex to filter tests in sudoku solver | f89c6806a3807361232275f344814713a5e20379 | <ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md
<ide> async (getUserInput) => {
<ide> try {
<ide> const getTests = await $.get(getUserInput('url') + '/_api/get-tests');
<ide> assert.isArray(getTests);
<del> const units = getTests.filter((el) => el.c... | 1 |
Text | Text | add example with forwardref to readme | 144eecd185f7083a112d7bbc178c6f59e4e34252 | <ide><path>packages/next/README.md
<ide> export default About
<ide>
<ide> Note: if passing a functional component as a child of `<Link>` you will need to wrap it in [`React.forwardRef`](https://reactjs.org/docs/react-api.html#reactforwardref)
<ide>
<add>**Example with `React.forwardRef`**
<add>
<add>```jsx
<add>impor... | 1 |
Python | Python | fix transformer loss | 0344c5503ee55e24f0de7f37336a6e08f10976fd | <ide><path>official/transformer/transformer_main.py
<ide> def model_fn(features, labels, mode, params):
<ide> logits = output
<ide>
<ide> # Calculate model loss.
<add> # xentropy contains the cross entropy loss of every nonpadding token in the
<add> # targets.
<ide> xentropy, weights = metrics.padded... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.