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 |
|---|---|---|---|---|---|
Javascript | Javascript | add proptype for injectjavascript | 13b4c2d77b855a1e20b153700bdfa5106bfcc346 | <ide><path>Libraries/Components/WebView/WebView.android.js
<ide> class WebView extends React.Component {
<ide> * @platform android
<ide> */
<ide> allowUniversalAccessFromFileURLs: PropTypes.bool,
<add>
<add> /**
<add> * Function that accepts a string that will be passed to the WebView and
<add> ... | 2 |
Go | Go | remove "root" and "" special cases in libcontainer | d98069030dc842741fdff16e1818f2a34ec0167f | <ide><path>pkg/libcontainer/nsinit/init.go
<ide> func (ns *linuxNs) Init(container *libcontainer.Container, uncleanRootfs, consol
<ide> }
<ide>
<ide> func setupUser(container *libcontainer.Container) error {
<del> switch container.User {
<del> case "root", "":
<del> if err := system.Setgroups(nil); err != nil {
<del>... | 1 |
Ruby | Ruby | return results while parsing | 8d100a0508f201417784553b4738262ccad448cb | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search
<ide> end
<ide>
<ide> if search_results.empty? and not blacklisted? query
<del> pulls = GitHub.find_pull_requests rx
<del> unless pulls.empty?
<del> puts "Open pull requests matching \"#{query}\":", *pulls.map { |p| " #{p}... | 2 |
Text | Text | update urls of plugins and loaders | 5201377b46f710c5759accfac622ef4c6055392e | <ide><path>README.md
<ide> within webpack itself use this plugin interface. This makes webpack very
<ide> |[extract-text-webpack-plugin][extract]|![extract-npm]|![extract-size]|Extract text from a bundle, or bundles, into a separate file|
<ide>
<ide> [common-npm]: https://img.shields.io/npm/v/webpack.svg
<del>[extract... | 1 |
PHP | PHP | add custom errors key to validation test | d0b1cfea1843bac76aabe55e3c3c35b727fd89bb | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertJsonCount(int $count, $key = null)
<ide> /**
<ide> * Assert that the response has the given JSON validation errors for the given keys.
<ide> *
<del> * @param string|array $keys
<add> * @param string|array $... | 2 |
Python | Python | offer option of padding-sensitive batching | 77af0a6bb48721f43fba2715191d0fe79867f0b7 | <ide><path>spacy/cli/train.py
<ide> def create_train_batches(nlp, corpus, cfg):
<ide> )
<ide>
<ide> epoch = 0
<add> batch_strategy = cfg.get("batch_by", "sequences")
<ide> while True:
<ide> if len(train_examples) == 0:
<ide> raise ValueError(Errors.E988)
<ide> epoch += 1
<del... | 1 |
Text | Text | update example image url | b93785be5db5ee533c7ca5efa70265f87e3f0b16 | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/add-images-to-your-website.english.md
<ide> forumTopicId: 16640
<ide> <section id='description'>
<ide> You can add images to your website by using the <code>img</code> element, and point to a specific image's URL using the <code>src<... | 1 |
Text | Text | add docs for collection routes | 5b11e23f6fb35834057fba35832a597ce443cc77 | <ide><path>docs/api-guide/viewsets.md
<ide> The default routers included with REST framework will provide routes for a stand
<ide> def destroy(self, request, pk=None):
<ide> pass
<ide>
<del>If you have ad-hoc methods that you need to be routed to, you can mark them as requiring routing using the `@... | 1 |
Javascript | Javascript | clarify subclasses of ember.coreview | 07ed2e2bedba5a9b584800d4d84517fd03a28c78 | <ide><path>packages/ember-handlebars/lib/views/metamorph_view.js
<ide> Ember._MetamorphView = Ember.View.extend(Ember._Metamorph);
<ide> /**
<ide> @class _SimpleMetamorphView
<ide> @namespace Ember
<del> @extends Ember.View
<add> @extends Ember.CoreView
<ide> @uses Ember._Metamorph
<ide> @private
<ide> */
<id... | 2 |
Javascript | Javascript | fix typo in types.js (react-devtools-shared) | acf8ada4c00105f933ea87ad425e83cdcd115ba0 | <ide><path>packages/react-devtools-shared/src/types.js
<ide> export type ComponentFilter =
<ide>
<ide> export type HookName = string | null;
<ide> // Map of hook source ("<filename>:<line-number>:<column-number>") to name.
<del>// Hook source is used instead of the hook itself becuase the latter is not stable between ... | 1 |
Java | Java | improve testsubject javadoc | 9bf589d07ca555fbb46752ff54f857d809ec9c96 | <ide><path>src/main/java/rx/subjects/TestSubject.java
<ide>
<ide> import java.util.concurrent.TimeUnit;
<ide>
<add>import rx.Observable;
<ide> import rx.Observer;
<ide> import rx.Scheduler;
<ide> import rx.functions.Action0;
<ide>
<ide> /**
<ide> * A variety of Subject that is useful for testing purposes. It operat... | 1 |
Text | Text | update changelog [ci skip] | 5f8d39c7b3a1acb5842117b24806030b981442f3 | <ide><path>CHANGELOG.md
<ide> ### v3.10.0-beta.2 (UNRELEASED)
<ide>
<ide> - [#17846](https://github.com/emberjs/ember.js/pull/17846) [BUGFIX] Fix issues with template-only components causing errors in subsequent updates.
<add>- [#17870](https://github.com/emberjs/ember.js/pull/17870) / [#17871](https://github.com/embe... | 1 |
Python | Python | fix flaky onnx tests | b41cc0b86a93c863afc3eddf7af736807218dbe7 | <ide><path>tests/test_onnx.py
<ide> import unittest
<del>from os.path import dirname, exists
<ide> from pathlib import Path
<del>from shutil import rmtree
<ide> from tempfile import NamedTemporaryFile, TemporaryDirectory
<ide>
<ide> from transformers import BertConfig, BertTokenizerFast, FeatureExtractionPipeline
<ide... | 1 |
Text | Text | fix typo in reactredux.md | 5f1252c734d2fa67e1e8b494a001506004d3ef4b | <ide><path>docs/faq/ReactRedux.md
<ide> Both Redux and React's Context API deal with "prop drilling". That said, they bo
<ide>
<ide> **Differences**
<ide>
<del>With Redux, you get the the power of [Redux Dev Tools Extension](https://github.com/zalmoxisus/redux-devtools-extension). It automatically logs every action y... | 1 |
PHP | PHP | fix failing test | 0b9bdf78833ef19f8f3e146e19f5bf7295f0a254 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testDateTimeSecured() {
<ide> 'Contact.date.day',
<ide> 'Contact.date.hour',
<ide> 'Contact.date.minute',
<del> 'Contact.date.meridian',
<ide> ];
<ide> $this->assertEquals($expected, $this->Form->fields);
<ide> | 1 |
Text | Text | remove redundant text | b73dfb9cc15e96994c4d6a5ff8b2a18538bcaf74 | <ide><path>docs/api-guide/authentication.md
<ide> Unauthenticated responses that are denied permission will result in an `HTTP 401
<ide>
<ide> WWW-Authenticate: Basic realm="api"
<ide>
<del>**Note:** If you use `BasicAuthentication` in production you must ensure that your API is only available over `https` only. ... | 1 |
Javascript | Javascript | remove unnecessary require | 7afb73715f161ea14924eceb6f03b502f32ac8fd | <ide><path>lib/internal/bootstrap/node.js
<ide> setupGlobalURL();
<ide> }
<ide>
<del> // Ensure setURLConstructor() is called before the native
<del> // URL::ToObject() method is used.
<del> NativeModule.require('internal/url');
<del>
<ide> // On OpenBSD process.execPath will be relative unless ... | 2 |
Python | Python | fix circular import in lemmatizer | ed2b106f4d0d0061680ddfa5299028b3c843ef51 | <ide><path>spacy/lemmatizer.py
<ide>
<ide> import ujson as json
<ide>
<del>from .en.lemmatizer import INDEX, EXC, RULES
<ide> from .symbols import POS, NOUN, VERB, ADJ, PUNCT
<ide> from .symbols import VerbForm_inf, VerbForm_none
<ide> from .symbols import Number_sing
<ide>
<ide> class Lemmatizer(object):
<ide> ... | 1 |
Ruby | Ruby | use the schema_search_path in prepared statements | cfc95d89aeffba5a026afcf272bdf3ff231a8983 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def exec_no_cache(sql, binds)
<ide> end
<ide>
<ide> def exec_cache(sql, binds)
<del> unless @statements.key? sql
<add> sql_key = "#{schema_search_path}-#{sql}"
<add> unless @statements.k... | 1 |
Python | Python | remove redundant pickling during training | 8870d491f1f4c1b50791484d234c2890f225abef | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> util.set_env_log(False)
<ide> epoch_model_path = output_path / ('model%d' % i)
<ide> nlp.to_disk(epoch_model_path)
<del> with (output_path... | 1 |
Python | Python | fix names used in dft.old refft->rfft | 0d68afb5705489943e3ec611ebb1d8a515153583 | <ide><path>numpy/dft/old.py
<ide> from fftpack import ifft2 as inverse_fft2d
<ide> from fftpack import ifftn as inverse_fftnd
<ide> from fftpack import ihfft as inverse_hermite_fft
<del>from fftpack import irefft as inverse_real_fft
<del>from fftpack import irefft2 as inverse_real_fft2d
<del>from fftpack import irefftn... | 1 |
Python | Python | update resnet with logging utils | 8f63feaa9669f8eed773bb568ee45987a473dbb3 | <ide><path>official/resnet/resnet.py
<ide> import tensorflow as tf
<ide>
<ide> from official.utils.arg_parsers import parsers # pylint: disable=g-bad-import-order
<add>from official.utils.logging import hooks_helper
<ide>
<ide> _BATCH_NORM_DECAY = 0.997
<ide> _BATCH_NORM_EPSILON = 1e-5
<ide> def resnet_main(flags, m... | 4 |
Text | Text | remove unnecessary code tags to allow translation | a75a866602bf38e1602fdd7e342fdb741905c473 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/5f3c866dbf362f99b9a0c6d0.md
<ide> The `p` elements are nested in an `article` element with the class attribute of
<ide> .item p { }
<ide> ```
<ide>
<del>Using the above selector, add a `display` property with v... | 2 |
Javascript | Javascript | convert `web/debugger.js` to a *basic* module | 8fa73dbfabac988ea3226a3aca20b46ba9dabfaf | <ide><path>gulpfile.js
<ide> function replaceWebpackRequire() {
<ide> return replace("__webpack_require__", "__w_pdfjs_require__");
<ide> }
<ide>
<add>function replaceNonWebpackImport() {
<add> return replace("__non_webpack_import__", "import");
<add>}
<add>
<ide> function replaceJSRootName(amdName, jsName) {
<ide>... | 3 |
Javascript | Javascript | display better error message for assertion | beb23570dc4bfb6af53cbb95d4b2840857067863 | <ide><path>test/parallel/test-zlib-random-byte-pipes.js
<ide> const gunz = zlib.createGunzip();
<ide> inp.pipe(gzip).pipe(gunz).pipe(out);
<ide>
<ide> out.on('data', common.mustCall((c) => {
<del> assert.strictEqual(c, inp._hash, 'hashes should match');
<add> assert.strictEqual(c, inp._hash, `Hash '${c}' equals '${i... | 1 |
Python | Python | fix syntax iterators | e28f90b672379b65db409bda0650d2a65bc5b5fe | <ide><path>spacy/lang/de/syntax_iterators.py
<ide> def noun_chunks(obj):
<ide> # and not just "eine Tasse", same for "das Thema Familie".
<ide> labels = ['sb', 'oa', 'da', 'nk', 'mo', 'ag', 'ROOT', 'root', 'cj', 'pd', 'og', 'app']
<ide> doc = obj.doc # Ensure works on both Doc and Span.
<del> np_label = ... | 3 |
PHP | PHP | add missing translation for `mimetypes` validation | 537b6288fba5181bff6011facecbf05b6de0bbb0 | <ide><path>resources/lang/en/validation.php
<ide> 'string' => 'The :attribute may not be greater than :max characters.',
<ide> 'array' => 'The :attribute may not have more than :max items.',
<ide> ],
<add> 'mimetypes' => 'The :attribute must be a file of type: :values.',
<ide> '... | 1 |
Java | Java | add params and remoteaddress to request builder | b2d8180f825e3193464c4bc7bdf67a0ba8bf7867 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequestBuilder.java
<ide> import java.net.URI;
<ide> import java.nio.charset.StandardCharsets;
<ide> import java.security.Principal;
<add>import java.util.ArrayList;
<ide> import java.util.Collections;
<ide> import java.util.Li... | 3 |
Go | Go | remove useless anonymous field mentions | 42e35ecff36fcb07e45c19f880af84f8532a3fac | <ide><path>engine/streams.go
<ide> func NewOutput() *Output {
<ide>
<ide> // Return true if something was written on this output
<ide> func (o *Output) Used() bool {
<del> o.Mutex.Lock()
<del> defer o.Mutex.Unlock()
<add> o.Lock()
<add> defer o.Unlock()
<ide> return o.used
<ide> }
<ide>
<ide> // Add attaches a new d... | 1 |
Mixed | Text | add action cable testing guides | a4099debcfd7e5e1fe3e5fd9111b7cb0242eb56d | <ide><path>actioncable/CHANGELOG.md
<add>* Merge [`action-cable-testing`](https://github.com/palkan/action-cable-testing) to Rails.
<add>
<add> *Vladimir Dementyev*
<add>
<ide> * The JavaScript WebSocket client will no longer try to reconnect
<ide> when you call `reject_unauthorized_connection` on the connec... | 5 |
Mixed | Javascript | return this from net.socket.end() | 324f1115b3a3c28d19261772442ea52bd191ed85 | <ide><path>doc/api/net.md
<ide> server will still send some data.
<ide> If `data` is specified, it is equivalent to calling
<ide> `socket.write(data, encoding)` followed by [`socket.end()`][].
<ide>
<add>Returns `socket`.
<add>
<ide> ### socket.localAddress
<ide> <!-- YAML
<ide> added: v0.9.6
<ide><path>lib/net.js
<id... | 3 |
Javascript | Javascript | fix perf issues with lazy sets | b58e0799e2351d97c4a7fb28a292e32fd9bc4013 | <ide><path>lib/util/LazySet.js
<ide> const merge = (targetSet, toMerge) => {
<ide> /**
<ide> * @template T
<ide> * @param {Set<Iterable<T>>} targetSet set where iterables should be added
<del> * @param {Array<Iterable<T> | LazySet<T>>} toDeepMerge iterables or lazy set to be flattened
<add> * @param {Array<LazySet<T>... | 2 |
Javascript | Javascript | fix abc to abs | 720bb21c91b3b964d1bd58a23a6cf3bc6aead903 | <ide><path>examples/js/nodes/math/Math1Node.js
<ide> THREE.Math1Node.TAN = 'tan';
<ide> THREE.Math1Node.ASIN = 'asin';
<ide> THREE.Math1Node.ACOS = 'acos';
<ide> THREE.Math1Node.ARCTAN = 'atan';
<del>THREE.Math1Node.ABS = 'abc';
<add>THREE.Math1Node.ABS = 'abs';
<ide> THREE.Math1Node.SIGN = 'sign';
<ide> THREE.Math1Nod... | 1 |
Javascript | Javascript | use foreachbail from enhanced-resolve | b54f2ac65c37090d826d462c7fc3399bda4e1ccc | <ide><path>lib/CacheFacade.js
<ide>
<ide> "use strict";
<ide>
<add>const { forEachBail } = require("enhanced-resolve");
<ide> const asyncLib = require("neo-async");
<ide> const getLazyHashedEtag = require("./cache/getLazyHashedEtag");
<ide> const mergeEtags = require("./cache/mergeEtags");
<ide> class MultiItemCache ... | 2 |
Javascript | Javascript | remove the unused radiocheck regex | 94fff6ff625be9fbbb54db53d9acec63f0919370 | <ide><path>src/attributes.js
<ide> var rclass = /[\n\t\r]/g,
<ide> rspecialurl = /^(?:href|src|style)$/,
<ide> rtype = /^(?:button|input)$/i,
<ide> rfocusable = /^(?:button|input|object|select|textarea)$/i,
<del> rclickable = /^a(?:rea)?$/i,
<del> rradiocheck = /^(?:radio|checkbox)$/i;
<add> rclickable = /^a(?:rea)?... | 1 |
Mixed | Javascript | add numericseparator to util.inspect | 85764c0e1a9b2e6fc1734a3977dc11651a4bec80 | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/41003
<add> description: The `numericSeparator` option is supported now.
<ide> - version:
<ide> - v14.6.0
<ide> - v1... | 4 |
Ruby | Ruby | remove defunct ivars | 588c321e74b67b1ede87446cda818b9060efb48c | <ide><path>activerecord/lib/active_record/associations/join_dependency/join_part.rb
<ide> class JoinPart # :nodoc:
<ide>
<ide> def initialize(base_klass, children)
<ide> @base_klass = base_klass
<del> @column_names_with_alias = nil
<ide> @children = children
<ide> end
<ide>... | 2 |
Go | Go | add windows specific exec root for plugins | 26517a01610215d218ad7236a5b5d44539220d12 | <ide><path>daemon/daemon.go
<ide> func NewDaemon(config *Config, registryService registry.Service, containerdRemot
<ide> // Plugin system initialization should happen before restore. Do not change order.
<ide> d.pluginManager, err = plugin.NewManager(plugin.ManagerConfig{
<ide> Root: filepath.Join(con... | 3 |
Text | Text | fix minor typos in the blog post | 89538d44a957cc5b4470fe37376cfcaa05dfb2f1 | <ide><path>docs/_posts/2015-12-18-react-components-elements-and-instances.md
<ide> The difference between **components, their instances, and elements** confuses ma
<ide>
<ide> If you’re new to React, you probably only worked with component classes and instances before. For example, you may declare a `Button` *componen... | 1 |
Text | Text | change os x to macos in readme | 5a3e0664d261422f11a78faaf101d70c73b3a5a8 | <ide><path>README.md
<ide> To build jQuery, you need to have the latest Node.js/npm and git 1.7 or later. E
<ide>
<ide> For Windows, you have to download and install [git](https://git-scm.com/downloads) and [Node.js](https://nodejs.org/en/download/).
<ide>
<del>OS X users should install [Homebrew](https://brew.sh/). ... | 1 |
Text | Text | add notes about negative offsets in buffer.md | 2de67343a1bcf846fcf9a6ef14e569143f0f3863 | <ide><path>doc/api/buffer.md
<ide> added: v5.3.0
<ide> -->
<ide>
<ide> * `value` {string|Buffer|Uint8Array|integer} What to search for.
<del>* `byteOffset` {integer} Where to begin searching in `buf`. **Default:** `0`.
<add>* `byteOffset` {integer} Where to begin searching in `buf`. If negative, then
<add> offset is ... | 1 |
Javascript | Javascript | reuse mixin array build logic | 80c11595d506cf1dafae565f7889137085aead9c | <ide><path>packages/ember-metal/lib/mixin.js
<ide> export function mixin(obj, ...args) {
<ide> export default class Mixin {
<ide> constructor(mixins, properties) {
<ide> this.properties = properties;
<del>
<del> let length = mixins && mixins.length;
<del>
<del> if (length > 0) {
<del> let m = new Array... | 1 |
PHP | PHP | fix all warnings except todo warnings | 56225bcca3aca9959d072641aef7639390f119af | <ide><path>lib/Cake/Console/Command/ConsoleShell.php
<ide> public function main($command = null) {
<ide>
<ide> if ($this->_isValidModel($modelToCheck)) {
<ide> $findCommand = "\$data = \$this->$command;";
<add> //@codingStandardsIgnoreStart
<ide> @eval($findCommand);
<add> //@codingStandards... | 21 |
Java | Java | remove references to asyncconfigurersupport | b06d267232f3951e4d4bdbfbb04c4ce1d83f3b8c | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/AsyncConfigurer.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 3 |
Javascript | Javascript | remove timermixin on reactcontentsizeupdatetest | 4d6943168b427d70a2bf16212fef690863504e94 | <ide><path>IntegrationTests/ReactContentSizeUpdateTest.js
<ide> const createReactClass = require('create-react-class');
<ide> const ReactNative = require('react-native');
<ide> const RCTNativeAppEventEmitter = require('RCTNativeAppEventEmitter');
<ide> const Subscribable = require('Subscribable');
<del>const TimerMixin... | 1 |
Python | Python | complete the example | 6879dcd5041a64327d0245263347a91f35e96a95 | <ide><path>numpy/lib/npyio.py
<ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
<ide> ... hello world,11
<ide> ... numpy,5''')
<ide> >>> np.genfromtxt(f, dtype='S12,S12', delimiter=',')
<add> array([(b'text', b''), (b'hello world', b'11'), (b'numpy', b'5')],
<add> dtype=[('f0', ... | 1 |
Python | Python | fix broken mysql migration | cb70150bf602337f890d59b85ffb1fb9ec90bb26 | <ide><path>airflow/migrations/versions/e959f08ac86c_change_field_in_dagcode_to_mediumtext_.py
<ide> def upgrade(): # noqa: D103
<ide> conn = op.get_bind() # pylint: disable=no-member
<ide> if conn.dialect.name == "mysql":
<del> op.alter_column(table_name='dag_code', column_name='source_code', type_=mys... | 1 |
Javascript | Javascript | add express state extentions to app | a0278c114d0193303e045567f1e283c0d0df3382 | <ide><path>server/server.js
<ide> var R = require('ramda'),
<ide> cookieParser = require('cookie-parser'),
<ide> compress = require('compression'),
<ide> session = require('express-session'),
<add> expressState = require('express-state'),
<ide> logger = require('morgan'),
<ide> errorHandler = require('errorh... | 1 |
Go | Go | reduce time for testruntwoconcurrentcontainers | 94f1e574b6469021c7c7fd3cad857a011cf93815 | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunUserNotFound(c *check.C) {
<ide>
<ide> func (s *DockerSuite) TestRunTwoConcurrentContainers(c *check.C) {
<ide> sleepTime := "2"
<del> if daemonPlatform == "windows" {
<del> sleepTime = "20" // Make more reliable on Windows
<del> }
... | 1 |
Ruby | Ruby | install specific bundler version | 2cbbdb51bf3bbe1841a6a382b19932d838fc7d25 | <ide><path>Library/Homebrew/dev-cmd/tests.rb
<ide> def tests
<ide> ENV["GIT_#{role}_DATE"] = "Sun Jan 22 19:59:13 2017 +0000"
<ide> end
<ide>
<del> Homebrew.install_gem_setup_path! "bundler"
<add> # TODO: unpin this version when this error no longer shows:
<add> # bundler-1.15.0/lib/bundl... | 1 |
Javascript | Javascript | add addcipherprototypefunctions function | d024c2cda11fd3db79c4846d871c596d41b9998d | <ide><path>lib/internal/crypto/cipher.js
<ide> function Cipheriv(cipher, key, iv, options) {
<ide> createCipherWithIV.call(this, cipher, key, options, true, iv);
<ide> }
<ide>
<del>inherits(Cipheriv, LazyTransform);
<del>
<del>Cipheriv.prototype._transform = Cipher.prototype._transform;
<del>Cipheriv.prototype._flus... | 1 |
Go | Go | fix fail message in testeventsimageimport | 8fd2b52146b443dd464df5199d79c69047c81eea | <ide><path>integration-cli/docker_cli_events_test.go
<ide> func TestEventsImageImport(t *testing.T) {
<ide> event := strings.TrimSpace(events[len(events)-1])
<ide>
<ide> if !strings.HasSuffix(event, ": import") {
<del> t.Fatalf("Missing pull event - got:%q", event)
<add> t.Fatalf("Missing import event - got:%q", e... | 1 |
Javascript | Javascript | run worker tests only on supported node versions | 1a2b7751eb1db4028556d9861b92c0dc3dcf635a | <ide><path>test/configCases/worker/node-worker-named/test.filter.js
<add>var supportsWorker = require("../../../helpers/supportsWorker");
<add>
<add>module.exports = function (config) {
<add> return supportsWorker();
<add>};
<ide><path>test/configCases/worker/node-worker/test.filter.js
<add>var supportsWorker = require... | 4 |
Go | Go | remove comment and b.utilizecache check | 1a5ea50aa81112c745030b3cf421a9baebcdb9f5 | <ide><path>builder/internals.go
<ide> func (b *Builder) runContextCommand(args []string, allowRemote bool, allowDecomp
<ide> if err != nil {
<ide> return err
<ide> }
<del> // If we do not have at least one hash, never use the cache
<del> if hit && b.UtilizeCache {
<add>
<add> if hit {
<ide> return nil
<ide> }
<i... | 1 |
Javascript | Javascript | reduce usage of require('util') | b8d4bafa03c5253446ec699ecf08f452d3186b2d | <ide><path>lib/internal/http2/core.js
<ide> const net = require('net');
<ide> const { Duplex } = require('stream');
<ide> const tls = require('tls');
<ide> const { URL } = require('url');
<del>const util = require('util');
<ide>
<ide> const { kIncomingMessage } = require('_http_common');
<ide> const { kServerResponse ... | 1 |
PHP | PHP | fix flakey memcached tests | e9f3c95d35c51f486fa4d608be4f6611bd259f72 | <ide><path>tests/Integration/Cache/MemcachedTaggedCacheTest.php
<ide> public function testMemcachedCanStoreAndRetrieveTaggedCacheItems()
<ide> {
<ide> $store = Cache::store('memcached');
<ide>
<del> $store->tags(['people', 'artists'])->put('John', 'foo', 1);
<del> $store->tags(['people', 'aut... | 1 |
PHP | PHP | add tests for invalid values and __tostring() | 7c2761d5e6378e46d9bfbeeb6d248fea3346e68c | <ide><path>tests/TestCase/Utility/TimeTest.php
<ide> public function testToString() {
<ide> $this->assertTimeFormat('dimanche 20 avril 2014 22:10:00 UTC', (string)$time);
<ide> }
<ide>
<add>/**
<add> * Data provider for invalid values.
<add> *
<add> * @return array
<add> */
<add> public function invalidDataProvider... | 1 |
Text | Text | add explanation of deadlock with example | 20c0fd9a04c1951978eb51da8995af7b2f247e45 | <ide><path>guide/english/computer-science/deadlock/index.md
<ide> title: Deadlock
<ide> ---
<ide>
<del>## Deadlock
<add>## Deadlocks
<ide>
<ide> ### The Deadlock Problem
<add>
<add>Deadlock is a situation which occurs when a process or thread enters a waiting state because a resource requested is being held by anothe... | 1 |
Text | Text | use link name | 28032cb257da90e5ac082aab9ca112d5a84dd863 | <ide><path>docs/converting-a-text-mate-bundle.md
<ide> the editor to see it in action!
<ide> ### Further Reading
<ide>
<ide> * Check out [Publishing a Package](publish-a-package.html) for more information
<del> on publishing the package you just created to [atom.io](https://atom.io).
<add> on publishing the package ... | 2 |
Ruby | Ruby | remove warning of unused variable | 9f69f0156907aee642fc43ca6524f4f37abd5388 | <ide><path>activesupport/test/core_ext/hash_ext_test.rb
<ide> def test_extract
<ide> original = {:a => 1, :b => 2, :c => 3, :d => 4}
<ide> expected = {:a => 1, :b => 2}
<ide>
<del> assert_equal expected, {:a => 1, :b => 2, :c => 3, :d => 4}.extract!(:a, :b)
<add> assert_equal expected, original.extract!(... | 1 |
Ruby | Ruby | preserve signature of #initialize in tests | 3c9bee268bde9675e8091068750a89bb35d4b2f2 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_formula_spec_integration
<ide> mirror 'http://example.org/test-0.2.tbz'
<ide> sha256 TEST_SHA256
<ide> end
<del>
<del> def initialize
<del> super "test", Pathname.new(__FILE__).expand_path, :stable
<del> end
<del> ... | 2 |
Python | Python | remove check in binary_crossentropy | 0332b95cdf622bf3a6fbe66f5d4eda5ee482dd90 | <ide><path>keras/objectives.py
<ide> def categorical_crossentropy(y_true, y_pred):
<ide> return cce
<ide>
<ide> def binary_crossentropy(y_true, y_pred):
<del> if y_true.shape[-1] != 1:
<del> raise Exception("binary_crossentropy can only be used with scalar outputs.")
<ide> y_pred = T.clip(y_pred, eps... | 1 |
Python | Python | change .first() to .scalar() | 37c0038a18ace092079d23988f76d90493ff294c | <ide><path>airflow/models/serialized_dag.py
<ide> def write_dag(
<ide> (timezone.utcnow() - timedelta(seconds=min_update_interval)) < cls.last_updated,
<ide> )
<ide> )
<del> .first()
<del> is not None
<add> .scalar(... | 1 |
Java | Java | simplify boolean not operation | 2f9d0a7de8e2f1247dd4a34811220106f7359aa5 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java
<ide> public static ParsedSql parseSqlStatement(final String sql) {
<ide> String parameter = null;
<ide> if (j < statement.length && c == ':' && statement[j] == '{') {
<ide> // :{x} style parameter
<del> ... | 1 |
Javascript | Javascript | fix codestyle for typeof comparison | 43363e2795393a00fd77312a16d6b80e626c29de | <ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js
<ide> function mountEffect(
<ide> ): void {
<ide> if (__DEV__) {
<ide> // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
<del> if ('undefined' !== typeof jest) {
<add> if (typeof jest !== 'undefined') {
<ide> ... | 1 |
Javascript | Javascript | handle invalid login | 070c2481326d3243a7a3f822c481dc389893d034 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> res.cookie('access_token', accessToken.id, config);
<ide> res.cookie('userId', accessToken.userId, config);
<ide> }
<del>
<add> debug('before pass login');
<ide> return req.logIn(user, function(err) {
<ide> if (e... | 1 |
Text | Text | add details on how gatsby works | e1d98e3402ef848258bdc529aaf33bdefa970335 | <ide><path>guide/english/gatsbyjs/index.md
<ide> Gatsby is a static site generator for [React](https://guide.freecodecamp.org/rea
<ide>
<ide> The Gatsby environment provides several "starters" to help configure static sites quickly. Starters can be found here: [Starter Library](https://www.gatsbyjs.org/starters/).
<id... | 1 |
Python | Python | fix accuracy with sparse_categorical_crossentropy | 63c1757df519bc5756c0d7d79dabd5ec0420f3c8 | <ide><path>keras/engine/training.py
<ide> def compile(self, optimizer, loss, metrics=[], loss_weights=None,
<ide> if output_shape[-1] == 1:
<ide> # case: binary accuracy
<ide> self.metrics.append(metrics_module.binary_accuracy(y_true, y_pred))
<add> ... | 2 |
Javascript | Javascript | trim large test output to not exceed limit | f71d3f2c091bc7828f120baf025c51d2f633b47b | <ide><path>run-tests.js
<ide> async function main() {
<ide> children.delete(child)
<ide> if (code) {
<ide> if (isFinalRun) {
<del> outputChunks.forEach((chunk) => process.stdout.write(chunk))
<add> // limit out to last 64kb so that we don't
<add> // run out of ... | 1 |
Ruby | Ruby | use a method that actually exists | dfa331ae154c0475dfc631528071bdb06947acc2 | <ide><path>actionpack/test/controller/integration_test.rb
<ide> def test_xml_http_request_override_accept
<ide>
<ide> class IntegrationTestTest < Test::Unit::TestCase
<ide> def setup
<del> @test = ::ActionDispatch::IntegrationTest.new(:default_test)
<add> @test = ::ActionDispatch::IntegrationTest.new(:app)
<id... | 1 |
Python | Python | update documentation for isfortran | d07e84c499aaaa04b0723bf80e7c41aba7b5d51c | <ide><path>numpy/core/numeric.py
<ide> def require(a, dtype=None, requirements=None):
<ide>
<ide> def isfortran(a):
<ide> """
<del> Returns True if array is arranged in Fortran-order in memory
<del> and not C-order.
<add> Returns True if the array is Fortran contiguous but *not* C contiguous.
<add>
<add> ... | 1 |
Python | Python | remove unused constant | 797fb77dd77603459f4b6f3f0789580494333e2c | <ide><path>libcloud/compute/base.py
<ide> # script.
<ide> SSH_CONNECT_TIMEOUT = 5 * 60
<ide>
<del># Keyword arguments which are specific to deploy_node() method, but not
<del># create_node()
<del>DEPLOY_NODE_KWARGS = ['deploy', 'ssh_username', 'ssh_alternate_usernames',
<del> 'ssh_port', 'ssh_time... | 1 |
Text | Text | update doc of publicencrypt method | eff9252181abe6ebd19252af652f29581711e665 | <ide><path>doc/api/crypto.md
<ide> treated as the key with no passphrase and will use `RSA_PKCS1_PADDING`.
<ide> <!-- YAML
<ide> added: v1.1.0
<ide> -->
<del>- `private_key` {Object | string}
<add>- `public_key` {Object | string}
<ide> - `key` {string} A PEM encoded private key.
<ide> - `passphrase` {string} An opt... | 1 |
Text | Text | add bmeurer to collaborators | f30820fdca62da000ba7f6fc586ca1ff65e54a0f | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Benjamin Gruenbaum** <benjamingr@gmail.com>
<ide> * [bmeck](https://github.com/bmeck) -
<ide> **Bradley Farias** <bradley.meck@gmail.com>
<add>* [bmeurer](https://github.com/bmeurer) -
<add>**Benedikt Me... | 1 |
PHP | PHP | add cache options to cell | e27925e280bc75f2e78f5ae5bc053e520816098b | <ide><path>src/View/Cell.php
<ide> abstract class Cell {
<ide> */
<ide> protected $_validCellOptions = [];
<ide>
<add>/**
<add> * Caching setup.
<add> *
<add> * @var array|bool
<add> */
<add> protected $_cache = false;
<add>
<ide> /**
<ide> * Constructor.
<ide> *
<ide> public function __construct(Request $request ... | 2 |
Ruby | Ruby | spam people with commit rights on test failures | 84e6ad3fb9d6a1ba3b71b058e19388de5c67a07f | <ide><path>ci/cruise_config.rb
<ide> Project.configure do |project|
<ide> project.build_command = 'ruby ci/ci_build.rb'
<del> project.email_notifier.emails = ['thewoolleyman@gmail.com']
<del># project.email_notifier.emails = ['thewoolleyman@gmail.com','michael@koziarski.com', 'david@loudthinking.com', 'jeremy@bitsweat... | 1 |
Ruby | Ruby | kill amo base | 6944b391cddbf1a3ffb3ac4ac588fa4b3d50f430 | <ide><path>activemodel/lib/active_model.rb
<ide>
<ide> module ActiveModel
<ide> autoload :APICompliant, 'active_model/api_compliant'
<del> autoload :Base, 'active_model/base'
<ide> autoload :DeprecatedErrorMethods, 'active_model/deprecated_error_methods'
<ide> autoload :Errors, 'active_model/errors'
<ide> aut... | 3 |
Javascript | Javascript | fix inconsistent menu order | b83aaa8dfba0131901dafa76d0fff367896a5795 | <ide><path>docs/list.js
<ide> var list = {
<ide> "DodecahedronBufferGeometry": "api/geometries/DodecahedronBufferGeometry",
<ide> "DodecahedronGeometry": "api/geometries/DodecahedronGeometry",
<ide> "EdgesGeometry": "api/geometries/EdgesGeometry",
<del> "ExtrudeGeometry": "api/geometries/ExtrudeGeometry",
<i... | 1 |
Python | Python | add test for multidimensional argmax | 0eadb3629d6dcff537946584a1ad2ab85d177a9b | <ide><path>numpy/core/tests/test_multiarray.py
<ide>
<ide> from numpy.testing import *
<ide> from numpy.core import *
<add>from numpy import random
<ide>
<ide> class test_flags(ScipyTestCase):
<ide> def setUp(self):
<ide> def check_unicode(self):
<ide> assert_array_equal(g1 > g2, [g1[i] > g2[i] for i in ... | 1 |
Python | Python | reintroduce docstrings in programmatic start | 494cc5d67452038c9b477d41cb2760b33ab4d5b8 | <ide><path>celery/app/base.py
<ide> def close(self):
<ide> _deregister_app(self)
<ide>
<ide> def start(self, argv=None):
<add> """Run :program:`celery` using `argv`.
<add>
<add> Uses :data:`sys.argv` if `argv` is not specified.
<add> """
<ide> from celery.bin.celery import cele... | 2 |
PHP | PHP | fix lint error | f528bb29ba87bec6f20e0e66b69b72821416b60b | <ide><path>lib/Cake/Controller/Component/SecurityComponent.php
<ide> protected function _expireTokens($tokens) {
<ide> * @param string $method Method to execute
<ide> * @param array $params Parameters to send to method
<ide> * @return mixed Controller callback method's response
<add> * @throws BadRequestException Wh... | 1 |
Python | Python | add timing inside trainer | 1198ba8fbac8c103950f58f19f76c18b37ee99b5 | <ide><path>examples/seq2seq/finetune_trainer.py
<ide> import logging
<ide> import os
<ide> import sys
<del>import time
<ide> from dataclasses import dataclass, field
<ide> from typing import Optional
<ide>
<ide> class DataTrainingArguments:
<ide> )
<ide>
<ide>
<del>def speed_metrics(split, start_time, num_sample... | 6 |
Python | Python | update linode driver to use authentication classes | 7d19b97acb4d30c0994893f8d10e834ef3fe39e5 | <ide><path>libcloud/drivers/linode.py
<ide> #
<ide>
<ide> from libcloud.types import Provider, NodeState
<del>from libcloud.base import ConnectionKey, Response, NodeDriver, NodeSize, Node, NodeLocation
<add>from libcloud.base import ConnectionKey, Response
<add>from libcloud.base import NodeDriver, NodeSize, Node, Nod... | 1 |
Text | Text | remove whitespace when testing user input | 037d8635019df67c0556644fd75b85cd734eb084 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md
<ide> assert.equal(document.querySelector('fieldset:nth-child(3) > label:nth-child(3)'
<ide> You should place the text before the `select` element.
<ide>
<ide> ```js
<del>as... | 1 |
Ruby | Ruby | improve api document on object#blank? | d309737928cb52deb2bfc2d2342a73d203a68fbd | <ide><path>activesupport/lib/active_support/core_ext/object/blank.rb
<ide> require "concurrent/map"
<ide>
<ide> class Object
<del> # An object is blank if it's false, empty, or a whitespace string.
<del> # For example, +false+, '', ' ', +nil+, [], and {} are all blank.
<add> # An object is blank if it's falsey, e... | 1 |
Ruby | Ruby | follow code conventions on docs | ab880b9eb0aab83e9c000a89e9f0ca636a8b9f78 | <ide><path>actionpack/lib/action_dispatch/routing/url_for.rb
<ide> def url_options
<ide> #
<ide> # Examples:
<ide> #
<del> # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :port=>'8080' # => 'http://somehost.org:8080/tasks/testing'
<del> # url_for :cont... | 5 |
Text | Text | explain use case for `display_value` in docs | eaf61449a85b9563d23b2922425c9ed4a67b7bea | <ide><path>docs/api-guide/relations.md
<ide> to ``True``.
<ide>
<ide> ## The `display_value` method
<ide>
<del>The `__str__` (`__unicode__` on Python 2) method of the model will be called to generate string representations of the objects used to populate the `choices` property. To provide customized representations, ... | 1 |
Ruby | Ruby | modify assert conditions not to be affected | 317868d0bd0802d48f29422ce00b8dcddea8ea31 | <ide><path>activerecord/test/cases/relation/merging_test.rb
<ide> def test_relation_merging
<ide> end
<ide>
<ide> def test_relation_to_sql
<del> sql = Post.first.comments.to_sql
<del> assert_no_match(/\?/, sql)
<add> post = Post.first
<add> sql = post.comments.to_sql
<add> assert_match(/.?post_id.? ... | 1 |
Text | Text | change object typo to objects | a21b82d15158ea11b1ebd8c680772968836990b3 | <ide><path>docs/docs/ref-09-glossary.md
<ide> In React's terminology, there are five core types that are important to distingu
<ide>
<ide> The primary type in React is the `ReactElement`. It has four properties: `type`, `props`, `key` and `ref`. It has no methods and nothing on the prototype.
<ide>
<del>You can creat... | 1 |
Java | Java | resolve async model attributes in abstractview | 73b44828e9dba23fec73286829c4583e6342049a | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java
<ide>
<ide> import java.nio.charset.Charset;
<ide> import java.nio.charset.StandardCharsets;
<del>import java.util.ArrayList;
<del>import java.util.LinkedHashMap;
<del>import java.util.List;
<del>import java.util.Map... | 5 |
Java | Java | fix method comment for getrequiredproperty(string) | 0dc52a83432ae3e52862bb8f257774bb8c345795 | <ide><path>spring-core/src/main/java/org/springframework/core/env/PropertyResolver.java
<ide> public interface PropertyResolver {
<ide> <T> Class<T> getPropertyAsClass(String key, Class<T> targetType);
<ide>
<ide> /**
<del> * Return the property value associated with the given key, converted to the given
<del> * t... | 1 |
Javascript | Javascript | pass safemode and devmode on reopening a project | e6368a566d0dbe89d05d626db13f96ca9af20e89 | <ide><path>src/atom-environment.js
<ide> class AtomEnvironment {
<ide> commands: this.commands,
<ide> history: this.history,
<ide> config: this.config,
<del> open: paths => this.open({ pathsToOpen: paths })
<add> open: paths =>
<add> this.open({
<add> pathsToOpe... | 2 |
Javascript | Javascript | fix url nitpicks | 39d2f8f7f3fe62d9197a6eb3aaddad94e6d29e52 | <ide><path>lib/NormalModuleFactory.js
<ide> class NormalModuleFactory extends ModuleFactory {
<ide> contextDependencies
<ide> } = data;
<ide> const dependencyType =
<del> dependencies.length > 0 ? dependencies[0].category : undefined;
<add> (dependencies.length > 0 && dependencies[0].category) || "... | 3 |
Ruby | Ruby | add regression test for ipspoofattackerror issue | 228d2b1e935583f0c5bd64227ff157c346cbbb3d | <ide><path>actionpack/test/dispatch/request_test.rb
<ide> def url_for(options = {})
<ide> assert_equal '1.1.1.1', request.remote_ip
<ide> end
<ide>
<add> test "remote ip spoof protection ignores private addresses" do
<add> request = stub_request 'HTTP_X_FORWARDED_FOR' => '172.17.19.51',
<add> ... | 1 |
PHP | PHP | fakefor() | f59268ec56b7f157303132a408ba08b257f156d2 | <ide><path>src/Illuminate/Support/Facades/Event.php
<ide> public static function fake($eventsToFake = [])
<ide> *
<ide> * @param callable $callable
<ide> * @param array $eventsToFake
<del> * @return callable
<add> * @return mixed
<ide> */
<ide> public static function fakeFor(callable... | 1 |
Python | Python | fix dropout in tfmobilebert | f1679d7c48cc6aac40fd84422734c37950947ab2 | <ide><path>src/transformers/modeling_tf_mobilebert.py
<ide> def call(self, inputs, training=False):
<ide>
<ide> hidden_states = self.dense(hidden_states)
<ide> if not self.use_bottleneck:
<del> hidden_states = self.dropout(hidden_states)
<add> hidden_states = self.dropout(hidden_s... | 1 |
Javascript | Javascript | remove unneeded closure | b0d9a7415cf48e0d1b8185e06056879b0139a596 | <ide><path>src/math/Quaternion.js
<ide> Object.assign( Quaternion.prototype, {
<ide>
<ide> },
<ide>
<del> setFromUnitVectors: function () {
<add> setFromUnitVectors: function ( vFrom, vTo ) {
<ide>
<ide> // assumes direction vectors vFrom and vTo are normalized
<ide>
<del> var r;
<del>
<ide> var EPS = 0.00000... | 1 |
Text | Text | fix a formatting error in buffer.md | ffe8dffbc4f7e1582e77c4b21e2ca21c54043269 | <ide><path>doc/api/buffer.md
<ide> const buf = Buffer.from(arr.buffer, 0, 16);
<ide> console.log(buf.length);
<ide> ```
<ide>
<del>The `Buffer.from()` and [`TypedArray.from()`] (e.g. `Uint8Array.from()`) have
<del>different signatures and implementations. Specifically, the [`TypedArray`] variants
<del>accept a second ... | 1 |
PHP | PHP | remove code that doesn't really need to exist | 9fc56cbab9ef7ebc67db17fd915238e35019e35e | <ide><path>src/Core/Configure.php
<ide> public static function load($key, $config = 'default', $merge = true) {
<ide> $values = $engine->read($key);
<ide>
<ide> if ($merge) {
<del> $keys = array_keys($values);
<del> foreach ($keys as $key) {
<del> $current = Hash::get(static::$_values, $key);
<del> if ($... | 1 |
Javascript | Javascript | add support for empty catch clause | 8a38c4bd34faf47002b4f087074e6751382f57a0 | <ide><path>lib/Parser.js
<ide> class Parser extends Tapable {
<ide> this.scope.renames.set(param, null);
<ide> this.scope.definitions.add(param);
<ide> });
<del> } else {
<add> } else if(param) {
<ide> this.scope.renames.set(param, null);
<ide> this.scope.definitions.add(param);
<ide> } | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.