content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Python | Python | fix funnel configuration doc | 66828a19b1ae566abe325899467374a17c21970f | <ide><path>src/transformers/models/funnel/configuration_funnel.py
<ide> class FunnelConfig(PretrainedConfig):
<ide> type_vocab_size (`int`, *optional*, defaults to 3):
<ide> The vocabulary size of the `token_type_ids` passed when calling [`FunnelModel`] or [`TFFunnelModel`].
<ide> initialize... | 1 |
Text | Text | update manual steps in getting started guide | 5429e8f12e7bf54177ba68eafd65160017b90cde | <ide><path>docs/getting-started.md
<ide> pnpm create next-app -- --typescript
<ide>
<ide> After the installation is complete:
<ide>
<del>- Run `npm run dev` or `yarn dev` to start the development server on `http://localhost:3000`
<add>- Run `npm run dev` or `yarn dev` or `pnpm dev` to start the development server on ... | 1 |
Java | Java | fix typo in modelandviewmethodreturnvaluehandler | 83ea0fb9e043670f8153147c1a79026acfa98f54 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ModelAndViewMethodReturnValueHandler.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, Ver... | 1 |
Javascript | Javascript | fix webp extension with no handler | 33155151cd64bcac5797fec5c3cd856bd32048f5 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> var extension = textureDef.extensions[ name ];
<ide> var source = json.images[ extension.source ];
<del> var loader = source.uri ? parser.options.manager.getHandler( source.uri ) : parser.textureLoader;
<add>
<add> ... | 2 |
Text | Text | add v3.6.0 to changelog | f4c7876f1ca0b3092a58121cff20d79d617c30de | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.6.0-beta.4 (November 12, 2018)
<add>### v3.6.0 (December 6, 2018)
<ide>
<add>- [#17025](https://github.com/emberjs/ember.js/pull/17025) / [#17034](https://github.com/emberjs/ember.js/pull/17034) / [#17036](https://github.com/emberjs/ember.js/pull/17036... | 1 |
Text | Text | add v15.4.0 link to changelog.md | 04e54189348d0ec7b68947d90496f12d71b2479c | <ide><path>CHANGELOG.md
<ide> release.
<ide> </tr>
<ide> <tr>
<ide> <td valign="top">
<del><b><a href="doc/changelogs/CHANGELOG_V15.md#15.3.0">15.3.0</a></b><br/>
<add><b><a href="doc/changelogs/CHANGELOG_V15.md#15.4.0">15.4.0</a></b><br/>
<add><a href="doc/changelogs/CHANGELOG_V15.md#15.3.0">15.3.0</a><br/>
<ide> ... | 1 |
Ruby | Ruby | remove deprecated documentation | 1a9b1edb49437076b0b9033876a7b7f57d38f4b9 | <ide><path>actionpack/lib/action_dispatch/testing/performance_test.rb
<ide> module ActionDispatch
<ide> # An integration test that runs a code profiler on your test methods.
<ide> # Profiling output for combinations of each test method, measurement, and
<ide> # output format are written to your tmp/performance di... | 1 |
Javascript | Javascript | make temp file path configurable | d610fad39018a7f21904f2f8fa496c21472f05cb | <ide><path>benchmark/fs/read-stream-throughput.js
<ide>
<ide> const path = require('path');
<ide> const common = require('../common.js');
<del>const filename = path.resolve(__dirname,
<add>const filename = path.resolve(process.env.NODE_TMPDIR || __dirname,
<ide> `.removeme-benchmark-garba... | 4 |
Ruby | Ruby | remove unnecessary caching | ec9c6d5846a4048c131aae70c2d338d8a3896086 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> require 'action_dispatch/journey'
<ide> require 'forwardable'
<del>require 'thread_safe'
<ide> require 'active_support/concern'
<ide> require 'active_support/core_ext/object/to_query'
<ide> require 'active_support/core_ext/hash/slice'
<ide> class Rout... | 1 |
Javascript | Javascript | add benchmark for vm.createcontext | 1294c7e48564a549ef391786b67798d29238aace | <ide><path>benchmark/vm/create-context.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>
<add>const bench = common.createBenchmark(main, {
<add> n: [100]
<add>});
<add>
<add>const vm = require('vm');
<add>
<add>const ctxFn = new vm.Script(`
<add> var b = Math.random();
<add> var c = a + ... | 1 |
Javascript | Javascript | consolidate hook events | 0e976e136c0d0841aec71de4a4f6163963763d3f | <ide><path>src/isomorphic/hooks/ReactComponentTreeHook.js
<ide> function remove(id) {
<ide> delete itemByKey[key];
<ide> }
<ide>
<del>function create(id, element) {
<add>function create(id, element, parentID) {
<ide> var key = getKeyFromID(id);
<ide> itemByKey[key] = {
<ide> element,
<del> parentID: null,... | 15 |
Javascript | Javascript | verify threadid in reports | cb210110e9c7e4b8d7c64af4a45d4b1e7d429a0e | <ide><path>test/report/test-report-worker.js
<ide> async function basic() {
<ide> helper.validateContent(report);
<ide> assert.strictEqual(report.workers.length, 1);
<ide> helper.validateContent(report.workers[0]);
<add> assert.strictEqual(report.workers[0].header.threadId, w.threadId);
<ide>
<ide> w.postMess... | 1 |
Text | Text | remove redundancy regarding 'latest react news' | 5ba1831d76dda8ddf1ed215cf638d229f8ff21fe | <ide><path>docs/support.md
<ide> Many developers and users idle on Freenode.net's IRC network in **[#reactjs on f
<ide>
<ide> ## Twitter
<ide>
<del>For the latest news about React, [follow **@reactjs** on Twitter](https://twitter.com/reactjs). In addition, you can use the [**#reactjs** hashtag](https://twitter.com/se... | 1 |
Mixed | Ruby | raise an error on root route naming conflicts | dde9c488398293fb1cbdc02595b8c4e9860b03cc | <ide><path>actionpack/CHANGELOG.md
<add>* Raise an error on root route naming conflicts.
<add>
<add> Raises an ArgumentError when multiple root routes are defined in the
<add> same context instead of assigning nil names to subsequent roots.
<add>
<add> *Gannon McGibbon*
<add>
<ide> * Allow rescue from para... | 3 |
Ruby | Ruby | add tests for nested lambda constraints | a21707116aab2a0b1038c719635eaf3d737ad644 | <ide><path>actionpack/test/controller/routing_test.rb
<ide> def test_lambda_constraints
<ide> assert_equal 'clients', get(URI('http://clients.example.org/'))
<ide> end
<ide>
<add> def test_scoped_lambda
<add> scope_called = false
<add> rs.draw do
<add> scope '/foo', :constraints => lambda { |req| sco... | 1 |
Go | Go | fix docker login | d22a39db265dbf68cec4ddbc5903372e936094a9 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<ide> authconfig.ServerAddress = serverAddress
<ide> cli.configFile.Configs[serverAddress] = authconfig
<ide>
<del> body, statusCode, err := readBody(cli.call("POST", "/auth", cli.configFile.Configs[serverAddress], false))
<add> stre... | 1 |
Python | Python | remove overzealous automatic rst link | c092cd1122c09e25eb8fc463d0d5b557a64878ac | <ide><path>doc/neps/nep-0016-benchmark.py
<del>.. _NEP16:
<del>
<ide> import perf
<ide> import abc
<ide> import numpy as np | 1 |
Text | Text | expand explanation of middleware definition | 32344fad69aa6125c0a79c5320e3e0886e098686 | <ide><path>docs/faq/DesignDecisions.md
<ide> Serialization enables the browser to store all actions that have been dispatched
<ide>
<ide> <a id="why-currying"></a>
<ide> ### Why does the middleware signature use currying?
<del>The [curried function signature](https://github.com/reactjs/redux/issues/1744) of declaring ... | 1 |
Python | Python | remove viltforquestionanswering from check_repo | b83796ded7725d0cb64ea7258ef95e395151a211 | <ide><path>utils/check_repo.py
<ide> "DPTForDepthEstimation",
<ide> "DecisionTransformerGPT2Model",
<ide> "GLPNForDepthEstimation",
<del> "ViltForQuestionAnswering",
<ide> "ViltForImagesAndTextClassification",
<ide> "ViltForImageAndTextRetrieval",
<ide> "ViltForTokenClassification", | 1 |
Ruby | Ruby | fix gratuitous use of ternary operator | 3d3fd39caa8f938a44fffc1c39bde8f0170e8f18 | <ide><path>actionpack/lib/action_view/renderer/template_renderer.rb
<ide> def determine_template(options) #:nodoc:
<ide> handler = Template.handler_for_extension(options[:type] || "erb")
<ide> Template.new(options[:inline], "inline template", handler, :locals => keys)
<ide> elsif options.key?(:tem... | 1 |
Javascript | Javascript | improve sparse vector iteration perf | dc7961961f27b7817fd0c3ee019f3cdaf8b41c96 | <ide><path>dist/Immutable.js
<ide> var VectorIterator = function VectorIterator(vector, sparse) {
<ide> if (rawIndex < SIZE && index > -step && index < stack.max) {
<ide> var value = array && array[rawIndex];
<ide> if (stack.level === 0) {
<del> if (!sparse || value || (array && array.has... | 3 |
Text | Text | improve async_context introduction | 40d890d31d6f7c61481566446a7a28d15e0eb4fc | <ide><path>doc/api/async_context.md
<del># Asynchronous Context Tracking
<add># Asynchronous context tracking
<ide>
<ide> <!--introduced_in=v16.4.0-->
<ide>
<ide> The `AsyncLocalStorage` and `AsyncResource` classes are part of the
<ide> `async_hooks` module:
<ide>
<ide> ```mjs
<del>import async_hooks from 'async_hoo... | 2 |
Text | Text | clarify text about internal module changes | be322bd9ada1579d16ab3af45328e313e0ff1a5c | <ide><path>lib/internal/readme.md
<ide> # Internal Modules
<ide>
<ide> The modules in `lib/internal` are intended for internal use in Node.js core
<del>only, and are not accessible with `require()` from user modules. These are
<del>subject to change at **any** time. Reliance on these modules outside of core
<add>only,... | 1 |
Javascript | Javascript | replace concatenation with template literals | a5352d9f1f399a1a4d4a2f445ce08fb88da66695 | <ide><path>test/parallel/test-stdout-close-catch.js
<ide> const child_process = require('child_process');
<ide>
<ide> const testScript = path.join(common.fixturesDir, 'catch-stdout-error.js');
<ide>
<del>const cmd = JSON.stringify(process.execPath) + ' ' +
<del> JSON.stringify(testScript) + ' | ' +
<del> ... | 1 |
Javascript | Javascript | replace var with let in loaders.js | 863402e4f236bc8097c8a408de437f0b8f082bc2 | <ide><path>lib/internal/bootstrap/loaders.js
<ide> const {
<ide> } = internalBinding('native_module');
<ide>
<ide> NativeModule.map = new Map();
<del>for (var i = 0; i < moduleIds.length; ++i) {
<add>for (let i = 0; i < moduleIds.length; ++i) {
<ide> const id = moduleIds[i];
<ide> const mod = new NativeModule(id);... | 1 |
Python | Python | add logic for xcomarg to pull specific map indexes | 8a8ad4719a182f6bcbb6f2263b9ec2a74b7bea35 | <ide><path>airflow/models/xcom_arg.py
<ide> if TYPE_CHECKING:
<ide> from airflow.models.dag import DAG
<ide> from airflow.models.operator import Operator
<add> from airflow.models.taskinstance import TaskInstance
<add> from airflow.utils.task_group import MappedTaskGroup, TaskGroup
<ide>
<ide> # Callable... | 2 |
Javascript | Javascript | use ember.k for consistency | 4584fafdaf2747c8fb1b92fe2f936cba1051e2c9 | <ide><path>packages/ember-views/lib/views/view.js
<ide> Ember.View = Ember.CoreView.extend(
<ide>
<ide> @event willDestroyElement
<ide> */
<del> willDestroyElement: function() {},
<add> willDestroyElement: Ember.K,
<ide>
<ide> /**
<ide> @private | 1 |
Javascript | Javascript | add missing semicolon | 2fa0ea62e7fc96be06d18fbfbf77ff14abfc6324 | <ide><path>test/Compiler.test.js
<ide> describe("Compiler", () => {
<ide> done();
<ide> });
<ide> });
<del> })
<add> });
<ide> }); | 1 |
Javascript | Javascript | remove unnecessary comments | b50a1a520ebd8950a0c3fdb92a015a927d0d69c9 | <ide><path>src/core/Box3.js
<ide>
<ide> THREE.Box3 = function ( min, max ) {
<ide>
<del> // TODO: Is this valid JavaScript to check if the parameters are specified?
<ide> if( ! min && ! max ) {
<ide> this.min = new THREE.Vector3();
<ide> this.max = new THREE.Vector3();
<ide><path>src/core/Plane.js
<ide> THREE... | 2 |
Text | Text | translate ja of scenegraph | b0778d0ce5bc2bba07c42918a50cb7680abf0f40 | <ide><path>threejs/lessons/ja/threejs-scenegraph.md
<add>Title: Three.jsのシーングラフ
<add>Description: シーングラフとはなにか?
<add>TOC: シーングラフ
<add>
<add>この記事はthree.jsについてのシリーズ記事の一つです。
<add>最初の記事は[Three.jsの基礎](threejs-fundamentals.html)です。
<add>まだ読んでない人は、そちらから先に読んでみるといいかもしれません。
<add>
<add>Three.jsの核心は間違いなくシーングラフです。
<add>3Dエンジンのシーングラフ... | 1 |
Go | Go | fix testapidockerapiversion on windows | 8c7fdddf480b39b79c688e1d555ca7f18fc5fd70 | <ide><path>integration-cli/docker_api_test.go
<ide> func (s *DockerSuite) TestAPIDockerAPIVersion(c *check.C) {
<ide> defer server.Close()
<ide>
<ide> // Test using the env var first
<del> result := cli.Docker(cli.Args("-H="+server.URL[7:], "version"), cli.WithEnvironmentVariables("DOCKER_API_VERSION=xxx"))
<add> re... | 1 |
Javascript | Javascript | destroy editors after text editor component specs | 20bf7050002cc29d2d8c4e1d4df255560ce5d299 | <ide><path>spec/text-editor-component-spec.js
<ide> document.registerElement('text-editor-component-test-element', {
<ide> })
<ide> })
<ide>
<add>const editors = []
<add>
<ide> describe('TextEditorComponent', () => {
<ide> beforeEach(() => {
<ide> jasmine.useRealClock()
<ide> describe('TextEditorComponent', ()... | 1 |
Javascript | Javascript | clarify info about from and to for animate() | a31c082de6dab64394b9a4d19c1a16e37b946887 | <ide><path>src/ng/animate.js
<ide> var $AnimateProvider = ['$provide', function($provide) {
<ide> * @kind function
<ide> *
<ide> * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element.
<del> * If any detected CSS transition,... | 1 |
Ruby | Ruby | add missing routing tests for info controller | b5e82d99efb073eeb240f8065b2271c2a5ebccdd | <ide><path>railties/test/application/routing_test.rb
<ide> def teardown
<ide> assert_equal 200, last_response.status
<ide> end
<ide>
<add> test "rails/info in development" do
<add> app("development")
<add> app "/rails/info"
<add> assert_equal 302, last_response.status
<add> end
<add>
<id... | 1 |
Javascript | Javascript | fix some typos in dumpreacttree.js | 5fbb307e24e144614b559bac57d1dfab6f52f2f4 | <ide><path>Libraries/BugReporting/dumpReactTree.js
<ide> function getReactTree() {
<ide> }
<ide>
<ide> /*
<del>function dumpNode(node: Object, identation: number) {
<add>function dumpNode(node: Object, indentation: number) {
<ide> const data = getReactData(node);
<ide> if (data.nodeType === 'Text') {
<del> retu... | 1 |
Ruby | Ruby | remove useless ivar | c10630b642bc6dc77b719385d6ba6a1569a6e739 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def initialize(env)
<ide> @original_fullpath = nil
<ide> @fullpath = nil
<ide> @ip = nil
<del> @request_id = nil
<ide> end
<ide>
<ide> def check_path_parameters! | 1 |
Go | Go | move client version to the docker cli | 229d3bace8fbf1c077c063047710a6857ee2aaa6 | <ide><path>api/client/client.go
<ide> type apiClient interface {
<ide> NetworkList() ([]types.NetworkResource, error)
<ide> NetworkRemove(networkID string) error
<ide> RegistryLogin(auth cliconfig.AuthConfig) (types.AuthResponse, error)
<del> SystemVersion() (types.VersionResponse, error)
<add> ServerVersion() (type... | 3 |
Python | Python | add xlmroberta to auto configuration | 41a13a6375817ec3836bedcec67d12ad32bf0956 | <ide><path>transformers/configuration_auto.py
<ide> from .configuration_albert import AlbertConfig, ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
<ide> from .configuration_camembert import CamembertConfig, CAMEMBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
<ide> from .configuration_t5 import T5Config, T5_PRETRAINED_CONFIG_ARCHIVE_MAP
<add... | 1 |
Java | Java | add jackson serialization inclusion to factorybean | 47d40053a41466bb2728229bc4cf0c73968d0ced | <ide><path>spring-web/src/main/java/org/springframework/http/converter/json/Jackson2ObjectMapperFactoryBean.java
<ide> import java.util.LinkedHashMap;
<ide> import java.util.Map;
<ide>
<add>import org.springframework.beans.FatalBeanException;
<add>import org.springframework.beans.factory.FactoryBean;
<add>import org.s... | 2 |
Python | Python | fix a typo in ncf model | f07081474c808c1a7a56c579b5e6670d72dee3d3 | <ide><path>official/recommendation/ncf_common.py
<ide> def parse_flags(flags_obj):
<ide> "beta2": flags_obj.beta2,
<ide> "epsilon": flags_obj.epsilon,
<ide> "match_mlperf": flags_obj.ml_perf,
<del> "epochs_between_evals": FLAGS.epochs_between_evals,
<add> "epochs_between_evals": flags_obj.ep... | 1 |
Ruby | Ruby | fix failing test | 2750f2ee00771109b2b254c8d03c5669d9f5bd59 | <ide><path>activesupport/lib/active_support/xml_mini.rb
<ide> def rename_key(key, options = {})
<ide> def _dasherize(key)
<ide> # $2 must be a non-greedy regex for this to work
<ide> left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3]
<del> "#{left}#{middle.tr('_', '-')}#{right}"
<add> ... | 1 |
Text | Text | add entity linking to menu | 3195a8f170741d9eef0d3abdc017bc1567f0147d | <ide><path>website/docs/usage/linguistic-features.md
<ide> menu:
<ide> - ['POS Tagging', 'pos-tagging']
<ide> - ['Dependency Parse', 'dependency-parse']
<ide> - ['Named Entities', 'named-entities']
<add> - ['Entity Linking', 'entity-linking']
<ide> - ['Tokenization', 'tokenization']
<ide> - ['Merging & Split... | 1 |
PHP | PHP | apply suggestions from code review | ab88514fffa030cdcd2cd319a11e530e00be05a1 | <ide><path>src/Database/Type/DateTimeType.php
<ide> public function toDatabase($value, DriverInterface $driver): ?string
<ide> */
<ide> public function setTimezone($timezone)
<ide> {
<del> deprecationWarning('DateTimeType::setTimezone() is deprecated. use setDatabaseTimezone() instead.');
<add> ... | 2 |
Text | Text | unify periods in comments in buffer.md | 35d83d519c51febb472f98eda71f4a6b82ad81f4 | <ide><path>doc/api/buffer.md
<ide> const arr = new Uint16Array(2);
<ide> arr[0] = 5000;
<ide> arr[1] = 4000;
<ide>
<del>// Copies the contents of `arr`
<add>// Copies the contents of `arr`.
<ide> const buf1 = Buffer.from(arr);
<del>// Shares memory with `arr`
<add>// Shares memory with `arr`.
<ide> const buf2 = Buffer... | 1 |
Ruby | Ruby | determine virtual path from file path | bf9edcb8a3ed0914513141fb287274ec26a6cc67 | <ide><path>actionview/lib/action_view/template/resolver.rb
<ide> def query(path, details, formats, locals, cache:)
<ide> template_paths.map do |template|
<ide> unbound_template =
<ide> if cache
<del> @unbound_templates.compute_if_absent([template, path.virtual]) do
<del> ... | 1 |
Go | Go | simplify readers field | b2b169f13f681cd0d591ccb06d6cfff97933db77 | <ide><path>daemon/logger/journald/journald.go
<ide> const name = "journald"
<ide> type journald struct {
<ide> mu sync.Mutex
<ide> vars map[string]string // additional variables and values to send to the journal along with the log message
<del> readers readerList
<add> readers map[*logger.LogWatcher]struct{}
... | 2 |
Python | Python | move datasets to npz/json | b0500764a8a451882262328c0f1676402fb0a783 | <ide><path>keras/datasets/imdb.py
<ide> from __future__ import absolute_import
<del>from six.moves import cPickle
<del>import gzip
<ide> from ..utils.data_utils import get_file
<ide> from six.moves import zip
<ide> import numpy as np
<del>import sys
<add>import json
<ide>
<ide>
<del>def load_data(path='imdb_full.pkl'... | 4 |
Javascript | Javascript | fix lint error | dfe647d914a649d85479d7ddec8ccd791cd0e65b | <ide><path>src/text-editor-element.js
<ide> class TextEditorElement extends HTMLElement {
<ide> }
<ide>
<ide> updateModelFromAttributes () {
<del> const props = {
<del> mini: this.hasAttribute('mini'),
<del> }
<add> const props = {mini: this.hasAttribute('mini')}
<ide> if (this.hasAttribute('plac... | 1 |
Text | Text | remove superfluous word from crypto doc | 0aab8ff602d85feb8e92e80e7cddcbbd49597219 | <ide><path>doc/api/crypto.md
<ide> added: v0.1.94
<ide> -->
<ide> - `outputEncoding` {string}
<ide> - Returns: {Buffer | string} Any remaining enciphered contents.
<del> If `outputEncoding` parameter is one of `'latin1'`, `'base64'` or `'hex'`,
<del> a string is returned. If an `outputEncoding` is not provided, a [`B... | 1 |
Javascript | Javascript | remove duplicate parser unset | 54e112dd61a5af6622f66cabca67474ae93113eb | <ide><path>lib/_http_common.js
<ide> function freeParser(parser, req, socket) {
<ide> if (parser._consumed)
<ide> parser.unconsume();
<ide> parser._consumed = false;
<del> if (parser.socket)
<del> parser.socket.parser = null;
<ide> parser.socket = null;
<ide> parser.incoming = null;
<ide> ... | 2 |
Javascript | Javascript | fix race in test-http-curl-chunk-problem | 1009130495b4c52d00deed0ee2292039c3f36310 | <ide><path>test/parallel/test-http-curl-chunk-problem.js
<ide> var server = http.createServer(function(req, res) {
<ide> res.write(data);
<ide> });
<ide>
<add> cat.stdout.on('end', function onStdoutEnd() {
<add> res.end();
<add> });
<add>
<ide> // End the response on exit (and log errors)
<ide> cat.on('... | 1 |
PHP | PHP | add space before operators | 7439dbc2139f5a17b5ea49570397828bcb96c6f7 | <ide><path>src/Collection/CollectionTrait.php
<ide> public function unfold(callable $transformer = null)
<ide> public function through(callable $handler)
<ide> {
<ide> $result = $handler($this);
<del> return $result instanceof CollectionInterface ? $result: new Collection($result);
<add> r... | 2 |
Javascript | Javascript | add a support comment for safari 8 | d24275372624bac897c4131fd1507a58c09a1483 | <ide><path>src/core/support.js
<ide> define([
<ide> "../var/support"
<ide> ], function( document, support ) {
<ide>
<add>// Support: Safari 8+
<add>// In Safari 8 documents created via document.implementation.createHTMLDocument
<add>// collapse sibling forms: the second one becomes a child of the first one.
<add>// B... | 1 |
Javascript | Javascript | apply some feedback | b9a40bb59e0684134a7370ac0ec8455de3f6327e | <ide><path>packages/ember-testing/tests/ext/rsvp_test.js
<ide> moduleFor('ember-testing RSVP', class extends AbstractTestCase {
<ide> setAdapter({
<ide> asyncStart() {
<ide> asyncStarted++;
<del> QUnit.stop();
<ide> },
<ide> asyncEnd() {
<ide> asyncEnded++;
<del> QUni... | 1 |
Ruby | Ruby | add accessor for homebrew_cc | 930cf4c768c017b25f3bee5d96cde4be384b74dc | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def compiler
<ide> :llvm
<ide> elsif ARGV.include? '--use-clang'
<ide> :clang
<del> elsif self['HOMEBREW_CC']
<del> cc = COMPILER_ALIASES.fetch(self['HOMEBREW_CC'], self['HOMEBREW_CC'])
<add> elsif homebrew_cc
<add> cc = COMPILER_ALI... | 2 |
Python | Python | unify reductions in fromnumeric.py | b344da928f06d867b0a4f41746c1bcb759a2fd8f | <ide><path>numpy/core/fromnumeric.py
<ide> from .numeric import asarray, array, asanyarray, concatenate
<ide> from . import _methods
<ide>
<del>
<ide> _dt_ = nt.sctype2char
<ide>
<ide> # functions that are methods
<ide> 'rank', 'ravel', 'repeat', 'reshape', 'resize', 'round_',
<ide> 'searchsorted', 'shape', '... | 1 |
Ruby | Ruby | add singleton in nullmutationtracker class | c08c4681adc8bf68ed284c1f5ac8c41e8d0987df | <ide><path>activerecord/lib/active_record/attribute_methods/dirty.rb
<ide> def store_original_attributes
<ide> end
<ide>
<ide> def previous_mutation_tracker
<del> @previous_mutation_tracker ||= NullMutationTracker.new
<add> @previous_mutation_tracker ||= NullMutationTracker.instance
<ide> ... | 2 |
Python | Python | remove extraeneous spaces | b43418ade653256a5918cbba72f9c478eb33691e | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> def get_proposal_feature_extractor_model(self, name=None):
<ide> self._conv_hyperparams.build_activation_layer(
<ide> name=layer_name))
<ide> self._coarse_feature_layers.appen... | 1 |
Javascript | Javascript | remove janky bypass of npm version check | 67843c8ebd19f537266e44cfc6af4a923317ebbf | <ide><path>script/utils/verify-requirements.js
<ide> function verifyNpm(cb) {
<ide> var versionArray = npmVersion.split('.');
<ide> var npmMajorVersion = +versionArray[0] || 0;
<ide> var npmMinorVersion = +versionArray[1] || 0;
<del> if (npmMajorVersion === 1 && npmMinorVersion < 4 && !process.env.JANKY_... | 1 |
Go | Go | move version out of server | 7894a70f8b2dcb329178978066d825dc41ec6239 | <ide><path>builtins/builtins.go
<ide> package builtins
<ide>
<ide> import (
<del> api "github.com/dotcloud/docker/api/server"
<add> "runtime"
<add>
<add> "github.com/dotcloud/docker/api"
<add> apiserver "github.com/dotcloud/docker/api/server"
<ide> "github.com/dotcloud/docker/daemon/networkdriver/bridge"
<add> "githu... | 2 |
Ruby | Ruby | fix tests on 1.9.2 | 31906eecdf7bffc2203379c5d40f1bb77fb35858 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def parse_data_with_trailing_star(input)
<ide> #
<ide> # Usage:
<ide> #
<del> # Mime::Type.unregister("text/x-mobile", :mobile)
<del> def unregister(string, symbol)
<del> EXTENSION_LOOKUP.delete(symbol.to_s)
<del> ... | 4 |
Text | Text | add example api with examples of example usage | 14a796e3f9ecfd5a6db969032324d83d40883704 | <ide><path>website/docs/api/example.md
<ide> ---
<ide> title: Example
<del>teaser: A training example
<add>teaser: A training instance
<ide> tag: class
<ide> source: spacy/gold/example.pyx
<add>new: 3.0
<ide> ---
<ide>
<del><!-- TODO: -->
<add>An `Example` holds the information for one training instance. It stores two... | 1 |
Javascript | Javascript | use correct ctor for error serialization | de9d5ff287c576c495f5c132fdf4b826f1356e5a | <ide><path>lib/internal/error-serdes.js
<ide> function serializeError(error) {
<ide> if (typeof error === 'object' &&
<ide> ObjectPrototypeToString(error) === '[object Error]') {
<ide> const constructors = GetConstructors(error);
<del> for (var i = constructors.length - 1; i >= 0; i--) {
<add> ... | 3 |
Text | Text | fix typo in updating.md | b88ca51a34054f7775f95dd3e5905e9040494a1e | <ide><path>UPDATING.md
<ide> dag >> dummy
<ide> This is no longer supported. Instead, we recommend using the DAG as context manager:
<ide>
<ide> ```python
<del>with DAG('my_dag):
<add>with DAG('my_dag'):
<ide> dummy = DummyOperator(task_id='dummy')
<ide> ```
<ide> | 1 |
Javascript | Javascript | keep iframes visible in testswarm | c0edd8dc18e02999a25768a4946093b015045f80 | <ide><path>test/data/testinit.js
<ide> this.testIframe = function( title, fileName, func, wrapper ) {
<ide> wrapper.call( QUnit, title, function( assert ) {
<ide> var done = assert.async(),
<ide> $iframe = supportjQuery( "<iframe/>" )
<del> .css( { position: "absolute", width: "500px", left: "-600px" } )
<del>... | 1 |
Python | Python | fix output size in documentation | 76568d24b67d50ca82192fa53e8b9ebb3dd27b42 | <ide><path>src/transformers/models/segformer/modeling_segformer.py
<ide> def forward(
<ide>
<ide> >>> inputs = feature_extractor(images=image, return_tensors="pt")
<ide> >>> outputs = model(**inputs)
<del> >>> logits = outputs.logits # shape (batch_size, num_labels, height, width)
<add> ... | 2 |
Javascript | Javascript | remove markup related paths | e34e8974db85e98e735a73a65f01e49b35e6f414 | <ide><path>src/renderers/dom/fiber/ReactDOMFiberComponent.js
<ide> function isCustomComponent(tagName, props) {
<ide> return tagName.indexOf('-') >= 0 || props.is != null;
<ide> }
<ide>
<del>
<del>/**
<del> * Creates markup for the open tag and all attributes.
<del> *
<del> * This method has side effects because eve... | 1 |
Ruby | Ruby | upgrade virtualenv to 16.2.0 | 2181ea76c6d48c10974fa9d36cf01c014dd42475 | <ide><path>Library/Homebrew/language/python_virtualenv_constants.rb
<ide> PYTHON_VIRTUALENV_URL =
<del> "https://files.pythonhosted.org/packages/4e/8b" \
<del> "/75469c270ac544265f0020aa7c4ea925c5284b23e445cf3aa8b99f662690" \
<del> "/virtualenv-16.1.0.tar.gz".freeze
<add> "https://github.com/pypa/virtualenv/archive... | 1 |
Text | Text | add v3.9.0-beta.5 to changelog | 7255233fa5e92a8d3389a8accefd20817c132a85 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.9.0-beta.5 (March 25, 2019)
<add>
<add>- [#17733](https://github.com/emberjs/ember.js/pull/17733) [BUGFIX] Assert on use of reserved component names (`input` and `textarea`)
<add>
<ide> ### v3.9.0-beta.4 (March 11, 2019)
<ide>
<ide> - [#17710](https://... | 1 |
Javascript | Javascript | fix some issues related to rendering | 03209d88fd014293e59dc40c9ebda5ae7b21ec6e | <ide><path>client/index.js
<ide> const {
<ide> location
<ide> } = window
<ide>
<del>window.NEXT_PAGE_LOADER = new PageLoader(buildId)
<del>
<add>const pageLoader = window.NEXT_PAGE_LOADER = new PageLoader(buildId)
<ide> const Component = evalScript(component).default
<ide> const ErrorComponent = evalScript(errorComp... | 3 |
Java | Java | add websocketclient for jetty | bd09a76a1eec053bd5a7533f67ecbb65fbe2b96d | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/HandshakeInfo.java
<ide> public class HandshakeInfo {
<ide>
<ide> private final URI uri;
<ide>
<del> private final HttpHeaders headers;
<del>
<ide> private final Mono<Principal> principalMono;
<ide>
<del> private final Optional<St... | 4 |
Go | Go | move pull and import to a job | 9dcbdbc4b1addb67c0fdcadab1c8f98f30e58b4c | <ide><path>api.go
<ide> func postImagesCreate(srv *Server, version float64, w http.ResponseWriter, r *ht
<ide> return err
<ide> }
<ide>
<del> src := r.Form.Get("fromSrc")
<del> image := r.Form.Get("fromImage")
<del> tag := r.Form.Get("tag")
<del> repo := r.Form.Get("repo")
<del>
<add> var (
<add> image = r.Form.Ge... | 8 |
Javascript | Javascript | detect hostname more reliably in url.parse() | 1086468aa3d328d2eac00bf66058906553ecd209 | <ide><path>lib/url.js
<ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) {
<ide> // Back slashes before the query string get converted to forward slashes
<ide> // See: https://code.google.com/p/chromium/issues/detail?id=25916
<ide> let hasHash = false;
<add> let hasAt = false;
<... | 2 |
Python | Python | add train command to fabfile | dbbfc02bda7bdb784c8be475d22423d969038e0f | <ide><path>fabfile.py
<ide> def test():
<ide> with virtualenv(VENV_DIR) as venv_local:
<ide> with lcd(path.dirname(__file__)):
<ide> venv_local('pytest -x spacy/tests')
<add>
<add>def train():
<add> args = environ.get('SPACY_TRAIN_ARGS', '')
<add> with virtualenv(VENV_DIR) as venv_local:
<... | 1 |
Java | Java | add more time for gc in refcounttest.publishnoleak | d9c076061c103ca457d7a9070193498a08e1c282 | <ide><path>src/test/java/io/reactivex/internal/operators/flowable/FlowableRefCountTest.java
<ide> static final class ExceptionData extends Exception {
<ide> }
<ide> }
<ide>
<add> static final int GC_SLEEP_TIME = 250;
<add>
<ide> @Test
<ide> public void publishNoLeak() throws Exception {
<del> ... | 2 |
Python | Python | fix spancat for zero suggestions | 445c670a2d537598b3d562fb7f444050164a260b | <ide><path>spacy/pipeline/spancat.py
<ide> def predict(self, docs: Iterable[Doc]):
<ide> DOCS: https://spacy.io/api/spancategorizer#predict
<ide> """
<ide> indices = self.suggester(docs, ops=self.model.ops)
<del> scores = self.model.predict((docs, indices)) # type: ignore
<add> if... | 2 |
Javascript | Javascript | move shallowrenderer tests | 73038840efbaf96bb45095b3fb571bda6beec8a3 | <ide><path>src/renderers/dom/test/__tests__/ReactTestUtils-test.js
<ide> 'use strict';
<ide>
<ide> let createRenderer;
<del>let PropTypes;
<ide> let React;
<ide> let ReactDOM;
<ide> let ReactDOMServer;
<ide> let ReactTestUtils;
<ide> describe('ReactTestUtils', () => {
<ide> beforeEach(() => {
<ide> createRendere... | 2 |
PHP | PHP | dump specific key of the response | 081f467ade3cea2edf7d581e20a3772c882029f5 | <ide><path>src/Illuminate/Testing/TestResponse.php
<ide> protected function session()
<ide> /**
<ide> * Dump the content from the response.
<ide> *
<add> * @param string|null $key
<ide> * @return $this
<ide> */
<del> public function dump()
<add> public function dump($key = null)
<ide... | 1 |
Ruby | Ruby | autorequire bundled libraries by default | db15e49ddf64afd982ddb52e7d0487314f7dcf97 | <ide><path>railties/lib/generators/rails/app/templates/config/boot.rb
<ide> # require 'rubygems'
<ide> end
<ide>
<add># Auto-require all bundled libraries.
<add>Bundler.require
<add>
<ide> <% unless options[:skip_activerecord] -%>
<ide> require 'rails/all'
<ide>
<ide> require "action_mailer/railtie"
<ide> require "... | 1 |
Javascript | Javascript | add sortableset as a new collection type | 0eaa84748ddecf37896dee3d0aad8d38f68bbe3e | <ide><path>lib/util/SortableSet.js
<add>"use strict";
<add>
<add>module.exports = class SortableSet extends Set {
<add>
<add> constructor(initialIterable, defaultSort) {
<add> super(initialIterable);
<add> this._sortFn = defaultSort;
<add> }
<add>
<add> /**
<add> * @param {Function} sortFn - function to sort the set... | 1 |
Javascript | Javascript | fix ie7 regression in jqlite which prevented | f7a9ea6a418f6201638556b0925388e67a8b1b12 | <ide><path>src/Angular.js
<ide> var _undefined = undefined,
<ide> msie = parseInt((/msie (\d+)/.exec(lowercase(navigator.userAgent)) || [])[1], 10),
<ide> jqLite, // delay binding since jQuery could be loaded after us.
<ide> jQuery, // delay binding
<del> slice ... | 2 |
Ruby | Ruby | remove unused variables | 6c04ccfb3bf9d71b700ab44b32a508766b8cdcf9 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> require 'cmd/tap'
<ide> begin
<ide> install_tap $1, $2
<del> rescue AlreadyTappedError => e
<add> rescue AlreadyTappedError
<ide> end
<ide> end
<ide> end unless ARGV.force?
<ide><path>Library/Hom... | 2 |
Ruby | Ruby | define jruby_skip to skip test on jruby | e998edd2c02667af53dd55cff1b37a6d4661c181 | <ide><path>activesupport/test/abstract_unit.rb
<ide>
<ide> # Show backtraces for deprecated behavior for quicker cleanup.
<ide> ActiveSupport::Deprecation.debug = true
<add>
<add># Skips the current run on JRuby using Minitest::Assertions#skip
<add>def jruby_skip(message = '')
<add> skip message if RUBY_ENGINE == 'jr... | 1 |
Text | Text | update the react 18 documentation | ec2e107f7fefb5d13402c2888ffea33bfe78bebe | <ide><path>docs/advanced-features/react-18.md
<ide> Ensure you have the `rc` npm tag of React installed:
<ide> npm install next@latest react@rc react-dom@rc
<ide> ```
<ide>
<add>That's all! You can now start using React 18's new APIs like `startTransition` and Suspense in Next.js.
<add>
<ide> ### Enable SSR Streaming ... | 1 |
Ruby | Ruby | show correct helper in description | 851275e706977ddbfa05a9f23c60861904443f18 | <ide><path>actionpack/lib/action_view/helpers/date_helper.rb
<ide> def select_time(datetime = Time.current, options = {}, html_options = {})
<ide> #
<ide> # # Generates a select field for seconds with a custom prompt. Use <tt>:prompt => true</tt> for a
<ide> # # generic prompt.
<del> # sele... | 1 |
Java | Java | improve error message for json path expressions | b47d97c23a24a10305c8a82ba4acc823ce52f088 | <ide><path>spring-test-mvc/src/main/java/org/springframework/test/util/JsonPathExpectationsHelper.java
<ide> package org.springframework.test.util;
<ide>
<ide> import static org.springframework.test.util.AssertionErrors.assertEquals;
<del>import static org.springframework.test.util.AssertionErrors.*;
<add>import stati... | 2 |
Javascript | Javascript | fix a typo | 33cd29b3a30239f8836381f3163e5b9ff233d6b4 | <ide><path>test/helpers/testabilityPatch.js
<ide> afterEach(function() {
<ide> // These Nodes are persisted across tests.
<ide> // They used to be assigned a `$$hashKey` when animated, which we needed to clear after each test
<ide> // to avoid affecting other tests. This is no longer the case, so we are just ensu... | 1 |
Java | Java | fix javadoc for @value | 80ad60e91ba2492889cd689f576b4e5902c95048 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/Value.java
<ide> * for dynamic resolution of handler method parameters, e.g. in Spring MVC.
<ide> *
<ide> * <p>A common use case is to assign default field values using
<del> * {@code #{systemProperties.myProp}} style expressions.
<ad... | 1 |
PHP | PHP | remove special sqlite order by logic | d36c18a3188e2a0be40549731cc79b7275dbccbf | <ide><path>src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
<ide>
<ide> class SQLiteGrammar extends Grammar {
<ide>
<del> /**
<del> * Compile the "order by" portions of the query.
<del> *
<del> * @param \Illuminate\Database\Query\Builder $query
<del> * @param array $orders
<del> * @return string
<del... | 1 |
Text | Text | add merge methods | 06171568f9d3dbc87985b06b62a788c54fecd8cd | <ide><path>README.md
<ide> Transform the DOM by selecting elements and joining to data.
<ide> * [*selection*.select](https://github.com/d3/d3-selection#selection_select) - select a descendant element for each selected element.
<ide> * [*selection*.selectAll](https://github.com/d3/d3-selection#selection_selectAll) - sel... | 1 |
Text | Text | add information about indexoutofrangeexception | 731dda053998568390da64cbeed223a56241d0cf | <ide><path>guide/english/csharp/array/index.md
<ide> You can assign a value into an element directly by using the format below:
<ide>
<ide> Code above will assign the value of 50 directly into element [2]
<ide>
<add>Note - Be careful when trying to assign/access a value to/from an array. If an invalid index isused, l... | 1 |
Text | Text | fix instructions for with-netlify-cms example | 926a4e5abc67b9ef605a097a6d16e86876fe5781 | <ide><path>examples/with-netlify-cms/readme.md
<ide> Download the example:
<ide>
<ide> ```bash
<ide> curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-netlify-cms
<del>cd nested-components
<add>cd with-netlify-cms
<ide> ```
<ide>
<ide> Install it and run: | 1 |
Python | Python | make duplicated masked constants obvious | 7254888b9ffe1f26ce59600ad31b7d4c9135c13d | <ide><path>numpy/ma/core.py
<ide> def __str__(self):
<ide> return str(masked_print_option._display)
<ide>
<ide> def __repr__(self):
<del> return 'masked'
<add> if self is masked:
<add> return 'masked'
<add> else:
<add> # something is wrong, make it obvious
<add> ... | 2 |
Javascript | Javascript | add bugzill reference, reducing to 1px size | 1cfb099640b839aad2228bc74128a5c96c0b28d3 | <ide><path>src/canvas.js
<ide> var TextRenderingMode = {
<ide> };
<ide>
<ide> // Minimal font size that would be used during canvas fillText operations.
<del>var MIN_FONT_SIZE = 2;
<add>var MIN_FONT_SIZE = 1;
<ide>
<ide> var CanvasExtraState = (function CanvasExtraStateClosure() {
<ide> function CanvasExtraState(ol... | 1 |
PHP | PHP | add a provider to test checked values | 3c1adc292ac14333e45708212283fa33679ab427 | <ide><path>tests/TestCase/View/Widget/CheckboxTest.php
<ide> public function testRenderChecked() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * Data provider for checkbox values
<add> *
<add> * @return array
<add> */
<add> public static function checkedProvider() {
<add> return [
<ad... | 1 |
Javascript | Javascript | fix memory leak in messagequeue | 5d748b2eec0b5bb2dea4eced79aba2fd994eb20a | <ide><path>Libraries/Utilities/MessageQueue.js
<ide> const TO_JS = 0;
<ide>
<ide> const TRACE_TAG_REACT_APPS = 1 << 17;
<ide>
<add>const DEBUG_INFO_LIMIT = 32;
<add>
<ide> const MethodTypes = keyMirror({
<ide> remote: null,
<ide> remoteAsync: null,
<ide> class MessageQueue {
<ide> __nativeCall(module, method, p... | 1 |
Javascript | Javascript | follow jmpr op only if outside of fdef and if | 8b6aeee35c14fb7b162615127f391e42dd4a3510 | <ide><path>src/core/fonts.js
<ide> var Font = (function FontClosure() {
<ide> }
<ide> --ifLevel;
<ide> } else if (op === 0x1C) { // JMPR
<del> var offset = stack[stack.length - 1];
<del> // only jumping forward to prevent infinite loop
<del> if (offset ... | 1 |
Javascript | Javascript | remove dom functions from top-level isomorphic api | 2e1fb4b52972711199d5065625251642f7d75c29 | <ide><path>src/React.js
<ide> var ReactDOMServer = require('ReactDOMServer');
<ide> var ReactIsomorphic = require('ReactIsomorphic');
<ide>
<ide> var assign = require('Object.assign');
<del>var deprecated = require('deprecated');
<ide>
<ide> // `version` will be added here by ReactIsomorphic.
<ide> var React = {};
<i... | 1 |
Text | Text | remove legacy models in the readmes | 44811ca21a63aaef9a2d90c209fe0c5a5e6eabd0 | <ide><path>official/README.md
<ide> In the near future, we will add:
<ide>
<ide> ## Models and Implementations
<ide>
<del>### Computer Vision
<add>### [Computer Vision](vision/README.md)
<ide>
<ide> #### Image Classification
<ide>
<ide> | Model | Reference (Paper) |
<ide> |-------|-------------------|
<del>| [MNIST... | 2 |
Javascript | Javascript | refactor the code in test-dns-ipv6 | 5e781a38834c4195d96c860e643dde850e8b7e6e | <ide><path>test/internet/test-dns-ipv6.js
<ide> const dns = require('dns');
<ide> const net = require('net');
<ide> const isIPv6 = net.isIPv6;
<ide>
<del>let expected = 0;
<del>let completed = 0;
<ide> let running = false;
<ide> const queue = [];
<ide>
<ide> if (!common.hasIPv6) {
<ide>
<ide> function TEST(f) {
<ide... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.