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 |
|---|---|---|---|---|---|
Java | Java | make reactinstancemanager safer threading wise | b9eeaef2435b38367080b428af2ef72726b633a2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide>
<ide> import com.facebook.common.logging.FLog;
<ide> import com.facebook.infer.annotation.Assertions;
<add>import com.facebook.infer.annotation.ThreadConfined;
<add>import com.facebook.infer.annotation.ThreadSafe;
<ide> import com... | 1 |
Text | Text | use code markup/markdown in headers | b46efa96cd8ab6ff44a4ffa0bb4f87010aa55d76 | <ide><path>doc/api/wasi.md
<ide> const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
<ide> The `--experimental-wasi-unstable-preview1` and `--experimental-wasm-bigint`
<ide> CLI arguments are needed for the previous example to run.
<ide>
<del>## Class: WASI
<add>## Class: `WASI`
<ide> <!-- YAML
<ide> add... | 1 |
Javascript | Javascript | stub the storage folder application.json read | e35510e928b8f5a74c13c6f720905674f059c01c | <ide><path>spec/main-process/atom-application.new.test.js
<ide> class LaunchScenario {
<ide> ...options
<ide> })
<ide> this.sinon.stub(app, 'createWindow', loadSettings => new StubWindow(this.sinon, loadSettings, options))
<add> this.sinon.stub(app.storageFolder, 'load', () => Promise.resolve(
<add> ... | 1 |
Mixed | Python | reduce memory usage of lookup's bloomfilter | 90c7eb0e2f51eb07582c4d9e3fcaed1fdb51c4bc | <ide><path>.github/contributors/PluieElectrique.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or pr... | 2 |
Javascript | Javascript | add support for es6 object initializers | b5a0c8d2ea6d595fac18805e25c8a4797b07c7f1 | <ide><path>src/ng/parse.js
<ide> AST.prototype = {
<ide> property = {type: AST.Property, kind: 'init'};
<ide> if (this.peek().constant) {
<ide> property.key = this.constant();
<add> property.computed = false;
<add> this.consume(':');
<add> property.value = this.expre... | 2 |
Javascript | Javascript | replace callback with arrow functions | 9d34a1e3c0449c46105dd7403120b482b1444205 | <ide><path>test/pummel/test-keep-alive.js
<ide> const http = require('http');
<ide> const url = require('url');
<ide>
<ide> const body = 'hello world\n';
<del>const server = http.createServer(function(req, res) {
<add>const server = http.createServer((req, res) => {
<ide> res.writeHead(200, {
<ide> 'Content-Leng... | 1 |
Java | Java | add marbles for single.amb operators | 1aeac067ae3c9844f77d264e47de6a31f3eb1a53 | <ide><path>src/main/java/io/reactivex/Single.java
<ide> /**
<ide> * Runs multiple SingleSources and signals the events of the first one that signals (cancelling
<ide> * the rest).
<add> * <p>
<add> * <img width="640" height="515" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operator... | 1 |
Python | Python | remove unused activation dropout | 9faa9f9dacf8c818ab2513da3ef92ce66f39515d | <ide><path>src/transformers/models/opt/configuration_opt.py
<ide> class OPTConfig(PretrainedConfig):
<ide> The dropout probability for all fully connected layers in the embeddings, encoder, and pooler.
<ide> attention_dropout (`float`, *optional*, defaults to 0.0):
<ide> The dropout rati... | 2 |
PHP | PHP | make comparison stricter | 2937ea9ba5fdba316043de72c315ddffc73d8970 | <ide><path>lib/Cake/Console/Command/Task/ExtractTask.php
<ide> protected function _extractTokens() {
<ide>
<ide> $this->_tokens = array();
<ide> foreach ($allTokens as $token) {
<del> if (!is_array($token) || ($token[0] != T_WHITESPACE && $token[0] != T_INLINE_HTML)) {
<add> if (!is_array($token) || ($toke... | 1 |
Java | Java | revise testaotprocessortests to rely on path apis | 4e9fad7514479cdbd762635f6f70bdaf796e8981 | <ide><path>spring-test/src/test/java/org/springframework/test/context/aot/TestAotProcessorTests.java
<ide> import java.io.UncheckedIOException;
<ide> import java.nio.file.Files;
<ide> import java.nio.file.Path;
<add>import java.util.Arrays;
<add>import java.util.List;
<ide> import java.util.stream.Stream;
<ide>
<ide> ... | 1 |
Ruby | Ruby | rewrite plists when installing from a bottle | 340769443c5d2644afdb3af817ea23c0176c89d8 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install_symlink_p src, new_basename = nil
<ide>
<ide> # we assume this pathname object is a file obviously
<ide> def write content
<del> #raise "Will not overwrite #{to_s}" if exist? and not ARGV.force?
<add> raise "Will not overwrite #{to_s}" if exist... | 2 |
Javascript | Javascript | remove reactdom from jest blacklist | 1bc03871f391d4df958dd8af97c6002cdef5f943 | <ide><path>packager/blacklist.js
<ide> var sharedBlacklist = [
<ide> 'downstream/core/toArray.js',
<ide>
<ide> /website\/node_modules\/.*/,
<add>
<add> // TODO(jkassens, #9876132): Remove this rule when it's no longer needed.
<add> 'downstream/relay/tools/relayUnstableBatchedUpdates.js',
<ide> ];
<ide>
<ide> va... | 1 |
Javascript | Javascript | fix many tests for http streams2 refactor | 0977638ffb016c9e1ace5a9f6299d4bd4c27688c | <ide><path>test/simple/test-cluster-http-pipe.js
<ide> http.createServer(function(req, res) {
<ide> }).listen(common.PIPE, function() {
<ide> var self = this;
<ide> http.get({ socketPath: common.PIPE, path: '/' }, function(res) {
<add> res.resume();
<ide> res.on('end', function(err) {
<ide> if (err) th... | 5 |
Python | Python | allow higher version of sqlalchemy | 45b068b5a5ec51e907adca59fc37aab9eee6b91d | <ide><path>setup.py
<ide> def run_tests(self):
<ide> 'python-dateutil>=2.3, <3',
<ide> 'requests>=2.5.1, <3',
<ide> 'setproctitle>=1.1.8, <2',
<del> 'sqlalchemy>=0.9.8, <0.10',
<add> 'sqlalchemy>=0.9.8',
<ide> 'thrift>=0.9.2, <0.10',
<ide> ],
<ide> extras_require={ | 1 |
Javascript | Javascript | fix rotation regression from | 1bbf0e55b09e73cf794ff9f0459214e46f208aa2 | <ide><path>web/page_view.js
<ide> var PageView = function pageView(container, id, scale,
<ide> this.rotation = 0;
<ide> this.scale = scale || 1.0;
<ide> this.viewport = defaultViewport;
<del> this.pdfPageRotate = defaultViewport.rotate;
<add> this.pdfPageRotate = defaultViewport.rotation;
<ide>
<ide> this.re... | 1 |
Javascript | Javascript | keep unsubscribed donors as isdonating | 0a2f01c9d8873e7fd9064bd5d126367bc87772f2 | <ide><path>api-server/server/utils/donation.js
<ide> export async function cancelDonation(body, app) {
<ide> const {
<ide> resource: { id, status_update_time = new Date(Date.now()).toISOString() }
<ide> } = body;
<del> const { User, Donation } = app.models;
<add> const { Donation } = app.models;
<ide> Donat... | 2 |
Text | Text | add model card | 43eca3f878603b2e7edb375f9551b21c5e4a70ec | <ide><path>model_cards/mrm8488/spanbert-base-finetuned-squadv2/README.md
<add>---
<add>language: english
<add>thumbnail:
<add>---
<add>
<add># SpanBERT base fine-tuned on SQuAD v2
<add>
<add>[SpanBERT](https://github.com/facebookresearch/SpanBERT) created by [Facebook Research](https://github.com/facebookresearch) and ... | 1 |
Text | Text | give credits to all the envolved people [ci skip] | 9d6a5b44320bb4655cf7b633668fed1ab8ddcac2 | <ide><path>activesupport/CHANGELOG.md
<ide> These characters are legal in JSON but break the Javascript interpreter.
<ide> After escaping them, the JSON is still legal and can be parsed by Javascript.
<ide>
<del> *Mario Caropreso*
<add> *Mario Caropreso + Viktor Kelemen + zackham*
<ide>
<ide> * Fix sk... | 1 |
Ruby | Ruby | add delete_pyc_files! method | 916e751596535177510f0c2043ecc16c392f12e2 | <ide><path>Library/Homebrew/keg.rb
<ide> def optlink
<ide> from.make_relative_symlink(self)
<ide> end
<ide>
<add> def delete_pyc_files!
<add> Pathname.new(self).find do |pn|
<add> next if pn.extname != '.pyc'
<add> pn.delete
<add> end
<add> end
<add>
<ide> protected
<ide>
<ide> def resolve... | 1 |
PHP | PHP | add support for "mail" driver | c222355edb06e01a9718c37676485ecab36f7d74 | <ide><path>src/Illuminate/Mail/MailServiceProvider.php
<ide> use Swift_Mailer;
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Swift_SmtpTransport as SmtpTransport;
<add>use Swift_MailTransport as MailTransport;
<ide>
<ide> class MailServiceProvider extends ServiceProvider {
<ide>
<ide> protected function reg... | 1 |
PHP | PHP | add api docs for dynamic finder methods | 223ba9b2aa08975294c7ed538a8dbfcc2b3cb494 | <ide><path>Cake/ORM/Table.php
<ide> * The primary way to retrieve data is using Table::find(). See that method
<ide> * for more information.
<ide> *
<add> * ### Dynamic finders
<add> *
<add> * In addition to the standard find($type) finder methods, CakePHP provides dynamic
<add> * finder methods. These methods allow... | 1 |
Go | Go | add namespace method conver | 0446b6a04edaae1bddeb1dfdb82fd0d931fe1198 | <ide><path>distribution/metadata/v1_id_service_test.go
<ide> import (
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/layer"
<add> "github.com/stretchr/testify/require"
<ide> )
<ide>
<ide> func TestV1IDService(t *testing.T) {
<ide> func TestV1IDService(t *testing.T) {
<ide> }
<ide> v1IDService := NewV1IDSer... | 1 |
Javascript | Javascript | remove unused default option in writestream | 2b6c561040cb6528e1f23b88cd36be47448e1ccf | <ide><path>lib/fs.js
<ide> function WriteStream(path, options) {
<ide>
<ide> // a little bit bigger buffer and water marks by default
<ide> options = util._extend({
<del> bufferSize: 64 * 1024,
<ide> lowWaterMark: 16 * 1024,
<ide> highWaterMark: 64 * 1024
<ide> }, options || {}); | 1 |
Text | Text | fix duplicate anchor | 765c432dfaa1c6472caf9d52926177c48761bd32 | <ide><path>docs/axes/README.md
<ide> Scales in Chart.js >v2.0 are significantly more powerful, but also different tha
<ide> * Scale titles are supported.
<ide> * New scale types can be extended without writing an entirely new chart type.
<ide>
<del># Common Configuration
<add>## Common Configuration
<ide>
<ide> The f... | 7 |
Ruby | Ruby | add addresses convenience method and a test for it | 5d851664b8551942fb869c379c0332e5e5bc9f53 | <ide><path>lib/action_mailbox/mail_ext/recipients.rb
<ide> class Mail::Message
<ide> def recipients
<ide> Array(to) + Array(cc) + Array(bcc)
<ide> end
<add>
<add> def recipients_addresses
<add> convert_to_addresses recipients
<add> end
<add>
<add> def to_addresses
<add> convert_to_addresses to
<add> e... | 2 |
Java | Java | add defaultlocale to acceptheaderlocaleresolver | 8343ce9e441313513b1459f6f56724ad1fcead19 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.java
<ide> public class AcceptHeaderLocaleResolver implements LocaleResolver {
<ide>
<ide> private final List<Locale> supportedLocales = new ArrayList<Locale>();
<ide>
<add> private Locale defaultLocale;
<add>
<ide... | 2 |
Javascript | Javascript | use const instead of let in amdmaintemplateplugin | 1227054a9242d053bec663f7028ccea044ae3d77 | <ide><path>lib/AmdMainTemplatePlugin.js
<ide> class AmdMainTemplatePlugin {
<ide> }
<ide>
<ide> apply(compilation) {
<del> let mainTemplate = compilation.mainTemplate;
<add> const mainTemplate = compilation.mainTemplate;
<ide>
<ide> compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => {
<de... | 1 |
Python | Python | remove useless code | a5b28dc4851b4f822cd0685b9765e87336e8b588 | <ide><path>celery/result.py
<ide> def __init__(self, taskset_id, subtasks, app=None):
<ide> self.subtasks = subtasks
<ide> self.app = app_or_default(app)
<ide>
<del> def __reduce__(self):
<del> return (self.__class__, (self.taskset_id, self.subtasks))
<del>
<del> @classmethod
<del> def ... | 1 |
Ruby | Ruby | use \a and \z when you mean \a and \z | 11b463d8cbacfe2cc1662f9e314440de71806ca9 | <ide><path>activemodel/test/validators/email_validator.rb
<ide> class EmailValidator < ActiveModel::EachValidator
<ide> def validate_each(record, attribute, value)
<ide> record.errors[attribute] << (options[:message] || "is not an email") unless
<del> /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i.match?(value)... | 1 |
Ruby | Ruby | add proper fix to `mail_to` helper | 9e2e24265510572a6574d38ba2af83fdf734ab54 | <ide><path>actionpack/lib/action_view/helpers/url_helper.rb
<ide> def mail_to(email_address, name = nil, html_options = {})
<ide> }.compact
<ide> extras = extras.empty? ? '' : '?' + ERB::Util.html_escape(extras.join('&'))
<ide>
<del> email_address_obfuscated = email_address.dup
<add> emai... | 1 |
Ruby | Ruby | use link_tap_formula method | e50badf11c517f0be661da2050a02aa0b0554caa | <ide><path>Library/Homebrew/cmd/pull.rb
<ide>
<ide> require 'utils'
<ide> require 'formula'
<add>require 'cmd/tap'
<ide>
<ide> module Homebrew
<ide> def tap arg
<ide> def pull
<ide> pull_url url
<ide>
<ide> changed_formulae = []
<add> changed_formulae_paths = []
<ide>
<ide> if tap_dir
<del>... | 1 |
Java | Java | clarify the documentation for scan operators | 82a218a5e0bb7f8788e4e6b0b54e4de9cd28e9ea | <ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java
<ide> public final <U> Flowable<T> sample(@NonNull Publisher<U> sampler, boolean emitL
<ide> }
<ide>
<ide> /**
<del> * Returns a {@code Flowable} that applies a specified accumulator function to the first item emitted by the current
<del> ... | 2 |
Ruby | Ruby | add missing ensure | 06d772c0cea49d91eaa273469333430b317583bd | <ide><path>actionpack/test/controller/content_type_test.rb
<ide> def test_render_changed_charset_default
<ide> get :render_defaults
<ide> assert_equal "utf-16", @response.charset
<ide> assert_equal Mime::HTML, @response.content_type
<add> ensure
<ide> OldContentTypeController.default_charset = "utf-8"
... | 1 |
PHP | PHP | remove duplicate tests | 767dbf0857db56e583e3628d3910b7bd81a1922c | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testAlphaNumeric()
<ide> */
<ide> public function testAlphaNumericPassedAsArray()
<ide> {
<del> $this->assertTrue(Validation::alphaNumeric('frferrf'));
<del> $this->assertTrue(Validation::alphaNumeric('12234'));
<de... | 1 |
Java | Java | add velocity to onscrollenddrag event | d4cda7168f1ff63962dee18ae72d5fee64f52a87 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java
<ide> public class OnScrollDispatchHelper {
<ide>
<ide> private int mPrevX = Integer.MIN_VALUE;
<ide> private int mPrevY = Integer.MIN_VALUE;
<add> private float mXFlingVelocity = 0;
<add> private float mYFlingVeloc... | 7 |
Go | Go | use ocischema package instead of custom handler | e443512ce4799380941374ef64fc30edc989650e | <ide><path>distribution/oci.go
<del>package distribution
<del>
<del>import (
<del> "fmt"
<del>
<del> "github.com/docker/distribution"
<del> "github.com/docker/distribution/manifest/schema2"
<del> digest "github.com/opencontainers/go-digest"
<del> ocispec "github.com/opencontainers/image-spec/specs-go/v1"
<del>)
<del>
<... | 4 |
PHP | PHP | allow busfake to use custom busrepository | 2407c9b86cda499eb2eedb9d19510cb4554fae1c | <ide><path>src/Illuminate/Support/Facades/Bus.php
<ide>
<ide> namespace Illuminate\Support\Facades;
<ide>
<add>use Illuminate\Bus\BatchRepository;
<ide> use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract;
<ide> use Illuminate\Foundation\Bus\PendingChain;
<ide> use Illuminate\Support\Testing\Fakes\BusFak... | 3 |
Javascript | Javascript | simplify default title | 18cb2c03df3044848d23d5ea8f5a4920b1d92b6a | <ide><path>packages/next/client/head-manager.js
<del>
<del>const DEFAULT_TITLE = ''
<del>
<ide> const DOMAttributeNames = {
<ide> acceptCharset: 'accept-charset',
<ide> className: 'class',
<ide> export default class HeadManager {
<ide> }
<ide>
<ide> updateTitle (component) {
<del> let title
<add> let tit... | 1 |
Go | Go | avoid alloc w/ writestring | db877d8a425a3c063eedb1908ab1b50df1a33a57 | <ide><path>pkg/broadcastwriter/broadcastwriter.go
<ide> func (w *BroadcastWriter) Write(p []byte) (n int, err error) {
<ide> for {
<ide> line, err := w.buf.ReadString('\n')
<ide> if err != nil {
<del> w.buf.Write([]byte(line))
<add> w.buf.WriteString(line)
<ide> break
<ide> }
<ide> for stream, writers :... | 1 |
Python | Python | kill unused file | af0c674ec36e46c37ff4b2d4f0ff35a88bfad435 | <ide><path>numpy/f2py/__init__.py
<ide> def __getattr__(attr):
<ide>
<ide> # Avoid importing things that aren't needed for building
<ide> # which might import the main numpy module
<del> if attr == "f2py_testing":
<del> import numpy.f2py.f2py_testing as f2py_testing
<del> r... | 3 |
Mixed | Ruby | accept a collection in fresh_when and stale? | 050fda020606028acffeaaf79e65d6f595856262 | <ide><path>actionpack/CHANGELOG.md
<add>* Expand `ActionController::ConditionalGet#fresh_when` and `stale?` to also
<add> accept a collection of records as the first argument, so that the
<add> following code can be written in a shorter form.
<add>
<add> # Before
<add> def index
<add> @ar... | 3 |
Javascript | Javascript | upgrade flagdependencyexportsplugin to es6 | 20c39015f29601c8c486b56029839cd9380d39f5 | <ide><path>lib/FlagDependencyExportsPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function FlagDependencyExportsPlugin() {
<add>"use strict";
<ide>
<del>}
<del>module.exports = FlagDependencyExportsPlugin;
<add>class FlagDependencyExpo... | 1 |
Text | Text | update the list with confirmshaming | d512c927a91d5110ee7151cf5dc8dc08d9e0b40b | <ide><path>guide/english/developer-ethics/dark-patterns/index.md
<ide> Examples include:
<ide>
<ide> * [**Disguised Ads**](https://darkpatterns.org/types-of-dark-pattern/disguised-ads) – Advertisements disguised as other kinds of content or navigation, in order to get users to click on them.
<ide>
<add>* [**Confirmsh... | 1 |
Python | Python | use running estimates in batchnormalization | 3108e9194c9243e7062a81d412399adf6463c1e0 | <ide><path>keras/layers/normalization.py
<ide> class BatchNormalization(Layer):
<ide>
<ide> mode: 0 -> featurewise normalization
<ide> 1 -> samplewise normalization (may sometimes outperform featurewise mode)
<add>
<add> momentum: momentum term in the computation of a running e... | 1 |
Javascript | Javascript | escape style values | a2ae42db90d626eda8f84f127068bd1f95fb5a6d | <ide><path>packages/react-dom/src/server/ReactDOMServerFormatConfig.js
<ide> function pushStyle(
<ide> valueChunk = stringToChunk('' + styleValue);
<ide> }
<ide> } else {
<del> valueChunk = stringToChunk(('' + styleValue).trim());
<add> valueChunk = stringToChunk(
<add> es... | 1 |
Python | Python | ignore unexpected weights from pt conversion | 88cc26dcd1e73c16feff1874ffe75c49159e4dcd | <ide><path>src/transformers/models/bert/modeling_tf_bert.py
<ide> def serving_output(self, output: TFBaseModelOutputWithPooling) -> TFBaseModelOut
<ide> )
<ide> class TFBertForPreTraining(TFBertPreTrainedModel, TFBertPreTrainingLoss):
<ide> # names with a '.' represents the authorized unexpected/missing layers when... | 1 |
Python | Python | use mseloss in (m)bartforsequenceclassification | d49d3cf6d603a0c8cf742c41ce1623c34e094e83 | <ide><path>src/transformers/models/bart/modeling_bart.py
<ide> import torch.nn.functional as F
<ide> import torch.utils.checkpoint
<ide> from torch import nn
<del>from torch.nn import CrossEntropyLoss
<add>from torch.nn import CrossEntropyLoss, MSELoss
<ide>
<ide> from ...activations import ACT2FN
<ide> from ...file_u... | 2 |
Javascript | Javascript | remove redundant prefixes from the css order test | e3584179fe919c59033e54f019a1511691d2c85b | <ide><path>test/unit/css.js
<ide> asyncTest( "Make sure initialized display value for disconnected nodes is correc
<ide> // but it's the best that we can do.
<ide> (function() {
<ide> var style = document.createElement( "div" ).style,
<del> prefixes = [ "Webkit", "O", "Moz", "ms" ],
<del> exist = "order" in style,
<... | 1 |
Javascript | Javascript | remove state queue from usesyncexternalstore | 8e80592a3ab2bdbd036f5af77c89fcf937b8f43b | <ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js
<ide> import {
<ide> } from './ReactTypeOfMode';
<ide> import {
<ide> NoLane,
<add> SyncLane,
<ide> NoLanes,
<ide> isSubsetOfLanes,
<ide> mergeLanes,
<ide> import {
<ide> isTransitionLane,
<ide> markRootEntangled,
<ide> markRootMutableRead,
... | 2 |
Python | Python | expand japanese requirements warning | 556895177edbc5d7dc64e0f95e36273a2fb16478 | <ide><path>spacy/lang/ja/__init__.py
<ide> def try_sudachi_import(split_mode="A"):
<ide> return tok
<ide> except ImportError:
<ide> raise ImportError(
<del> "Japanese support requires SudachiPy: " "https://github.com/WorksApplications/SudachiPy"
<add> "Japanese support requires... | 1 |
Go | Go | use complete port configs when plumbing mark rules | 093a017f68b282513d5f02ad5ae3c84168964d9c | <ide><path>libnetwork/service_linux.go
<ide> func (sb *sandbox) addLBBackend(ip, vip net.IP, fwMark uint32, ingressPorts []*P
<ide> }
<ide>
<ide> if addService {
<del> var iPorts []*PortConfig
<add> var filteredPorts []*PortConfig
<ide> if sb.ingress {
<del> iPorts = filterPortConfigs(ingressPorts, false)
<del... | 1 |
Go | Go | update the test for the new struct | 7790a77b6afeda6f223202288a89f4b431f033a0 | <ide><path>registry/registry_test.go
<ide> func spawnTestRegistry(t *testing.T) *Registry {
<ide> }
<ide>
<ide> func TestPingRegistryEndpoint(t *testing.T) {
<del> standalone, err := pingRegistryEndpoint(makeURL("/v1/"))
<add> regInfo, err := pingRegistryEndpoint(makeURL("/v1/"))
<ide> if err != nil {
<ide> t.Fatal... | 1 |
Go | Go | fix vet warning | c5bf2145f172a264d3d8fc63d6717826b95b5ee2 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func TestPostContainerBindNormalVolume(t *testing.T) {
<ide> }
<ide>
<ide> if fooDir2 != fooDir {
<del> t.Fatal("expected volume path to be %s, got: %s", fooDir, fooDir2)
<add> t.Fatalf("expected volume path to be %s, got: %s", fooDir, fooDir2)
<ide> ... | 6 |
Ruby | Ruby | add application verifier | 233001749cd00e147f93c17c17e49e5f6094721e | <ide><path>railties/lib/rails/application.rb
<ide> def key_generator
<ide> end
<ide> end
<ide>
<add> def verifier
<add> @verifier ||= begin
<add> if config.respond_to?(:message_verifier_salt)
<add> salt = config.message_verifier_salt
<add> end
<add>
<add> salt = salt || ... | 2 |
Java | Java | fix typo in single + maybe defer() | f4daec6334454003ed394db1c1336af4527721f3 | <ide><path>src/main/java/io/reactivex/Maybe.java
<ide> public static <T> Maybe<T> create(MaybeOnSubscribe<T> onSubscribe) {
<ide>
<ide> /**
<ide> * Calls a Callable for each individual MaybeObserver to return the actual MaybeSource source to
<del> * be subscribe to.
<add> * be subscribed to.
<ide> ... | 2 |
Ruby | Ruby | check homepage reachability | 3ba3ecba9dec22a0f12533792fdfb6a9910cc81b | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_homepage
<ide> %r[^http://code\.google\.com/]
<ide> problem "Please use https:// for #{homepage}"
<ide> end
<add>
<add> return unless @online
<add> begin
<add> nostdout { curl "--connect-timeout", "15", "-IL", "-o", "/dev/null", home... | 1 |
Javascript | Javascript | remove unnecessary null | 5170db8e72e1301205b82c8a4e69b38b019bb868 | <ide><path>src/shared/utils/getComponentName.js
<ide> import type { ReactInstance } from 'ReactInstanceType';
<ide> import type { Fiber } from 'ReactFiber';
<ide>
<del>function getComponentName(instanceOrFiber : ReactInstance | Fiber) : string | null {
<add>function getComponentName(instanceOrFiber : ReactInstance | F... | 1 |
Text | Text | move entry from "features" to "bugs" | bb4cd4a5ce36a741dd18d203b39537a05506b298 | <ide><path>CHANGELOG.md
<ide> - **ngMessages:** create new scope for ngMessage, clean it up correctly
<ide> ([56f33af8](https://github.com/angular/angular.js/commit/56f33af89045e2ec18d144d9d1ef73affbe51959),
<ide> [#14307](https://github.com/angular/angular.js/issues/14307))
<add>- **ngMessagesInclude:** don't bre... | 1 |
Text | Text | fix tiny typo in labelling.md | 9e6a6112a436143d353115e73c974a6f6b2f7713 | <ide><path>docs/axes/labelling.md
<ide> The scale label configuration is nested under the scale configuration in the `sc
<ide> | Name | Type | Default | Description
<ide> | -----| ---- | --------| -----------
<ide> | `display` | `Boolean` | `false` | If true, display the axis title.
<del>| `labelString` | `String` | `'... | 1 |
Mixed | Go | check uid ranges | 72d1e40c4a3b190319cfa5cb44b5e6f1694100fc | <ide><path>docs/sources/reference/run.md
<ide> but the operator can override it:
<ide>
<ide> -u="": Username or UID
<ide>
<add>> **Note:** if you pass numeric uid, it must be in range 0-2147483647.
<add>
<ide> ## WORKDIR
<ide>
<ide> The default working directory for running binaries within a container is the
<id... | 3 |
PHP | PHP | pass notifiable email through reset link | 0fd627be7d66eb053b991d22c5d5e859284c8dce | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function toMail($notifiable)
<ide> return (new MailMessage)
<ide> ->subject(Lang::getFromJson('Reset Password Notification'))
<ide> ->line(Lang::getFromJson('You are receiving this email because we received a pas... | 1 |
Javascript | Javascript | rectangle element tests | 26684b6371cca9db250edc9e7c0a056fb8081d4d | <ide><path>src/elements/element.rectangle.js
<ide> },
<ide> inRange: function(mouseX, mouseY) {
<ide> var vm = this._view;
<del> if (vm.y < vm.base) {
<del> return (mouseX >= vm.x - vm.width / 2 && mouseX <= vm.x + vm.width / 2) && (mouseY >= vm.y && mouseY <= vm.base);
<del> } else {
<del> return (mou... | 2 |
PHP | PHP | add tests which cover additional functionality | 5cd82c114dce511db580e2b2b827b75eedda80d8 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testTheMutatorCacheIsPopulated()
<ide> }
<ide>
<ide>
<add> public function testRouteKeyIsPrimaryKey()
<add> {
<add> $model = new EloquentModelStub;
<add> $model->id = 'foo';
<add> $this->assertEquals('foo', $model->getRouteKey());
<add>... | 2 |
Ruby | Ruby | handle `frozenerror` if it is available | 01efbc128d1379d02dd14acf324d011944a1c429 | <ide><path>activerecord/test/cases/aggregations_test.rb
<ide> def test_change_single_value_object
<ide>
<ide> def test_immutable_value_objects
<ide> customers(:david).balance = Money.new(100)
<del> assert_raise(RuntimeError) { customers(:david).balance.instance_eval { @amount = 20 } }
<add> assert_raise(fr... | 8 |
Go | Go | add break after found = true | 8928677ea2b4e69ecfd96a2c951a33e46b7b7388 | <ide><path>integration-cli/docker_cli_daemon_test.go
<ide> func (s *DockerSuite) TestDaemonIPv6Enabled(c *check.C) {
<ide> for i := range addrs {
<ide> if addrs[i].String() == expected {
<ide> found = true
<add> break
<ide> }
<ide> }
<ide> | 1 |
Mixed | Ruby | handle notes in *.sass files | dd996ad394057a003ad851ff75e6242d0c5e8fa1 | <ide><path>railties/CHANGELOG.md
<add>* Fix `rake notes` to look into `*.sass` files
<add>
<add> *Yuri Artemev*
<add>
<ide> * Removed deprecated `Rails.application.railties.engines`.
<ide>
<ide> *Arun Agrawal*
<ide><path>railties/lib/rails/source_annotation_extractor.rb
<ide> def find_in(dir)
<ide> ... | 3 |
Text | Text | fix the readme | fa2876c7f9be06baf67c652e14bc036bc88c8dbb | <ide><path>README.md
<ide> To propose a model for inclusion please submit a pull request.
<ide> - [textsum](textsum) -- sequence-to-sequence with attention model for text summarization.
<ide> - [transformer](transformer) -- spatial transformer network, which allows the spatial manipulation of data within the network
<i... | 1 |
Javascript | Javascript | modify regexp in template-common | 83b0013209329f5952ac2a9554fd21a3340ef23b | <ide><path>examples/template-common.js
<ide> exports.replaceBase = (template) => {
<ide> };
<ide>
<ide> exports.needResults = (template, prefix) => {
<del> const regExp = prefix ? new RegExp(`\\{\\{${prefix}:`) : /\{\{/;
<add> const regExp = prefix ? new RegExp(`_\\{\\{${prefix}:`) : /_\{\{/;
<ide> return regExp.test... | 1 |
PHP | PHP | add a test for edge case. remove an unneeded test | 19720e5151205f63eca83b2aa20b9b9aeff2739d | <ide><path>tests/TestCase/Utility/TextTest.php
<ide> public function testTruncate()
<ide> $this->assertSame('Vive la R' . chr(195) . chr(169) . 'pu...', $this->Text->truncate($text8, 15));
<ide> $this->assertSame('НОПРСТУ...', $this->Text->truncate($text9, 10));
<ide> $this->assertSame('http://e... | 1 |
Javascript | Javascript | add test on unhandled rejection | 18cf0960eab834ed3a4ddef22a7e8b6dcecfc058 | <ide><path>test/parallel/test-async-hooks-promise-enable-disable.js
<ide> let p_resource = null;
<ide> let p_er = null;
<ide> let p_inits = 0;
<ide>
<add>common.crashOnUnhandledRejection();
<add>
<ide> // Not useful to place common.mustCall() around 'exit' event b/c it won't be
<ide> // able to check it anway.
<ide> p... | 1 |
Java | Java | improve resourcepatternhint documentation | b9f85627a17a55270d5ba3d3b6e7b7d267ba8817 | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/ResourceHints.java
<ide> public ResourceHints registerPattern(@Nullable Consumer<ResourcePatternHints.Bui
<ide> /**
<ide> * Register that the resources matching the specified pattern should be
<ide> * made available at runtime.
<del> * @param inclu... | 3 |
Javascript | Javascript | remove unused variable | f13f3b5b29c323162ec967b95bcc611b4e9e3ac3 | <ide><path>src/layout/pie.js
<ide> d3.layout.pie = function() {
<ide> // Compute the arcs!
<ide> // They are stored in the original data's order.
<ide> var arcs = [];
<del> index.forEach(function(i, j) {
<add> index.forEach(function(i) {
<ide> arcs[i] = {
<ide> data: data[i],
<ide> ... | 1 |
Javascript | Javascript | remove runwithpriority internally | 41e62e77191e112a7be38448e53470a6b8220611 | <ide><path>packages/react-dom/src/events/ReactDOMEventListener.js
<ide> import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
<ide> import type {Container, SuspenseInstance} from '../client/ReactDOMHostConfig';
<ide> import type {DOMEventName} from '../events/DOMEventNames';
<ide>
<del>// Intentional... | 8 |
Javascript | Javascript | upgrade contextdependencytemplateasid to es6 | b972260ac0fe9db80d1ce80845f59c673601249d | <ide><path>lib/dependencies/ContextDependencyTemplateAsId.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>function ContextDependencyTemplateAsId() {}
<del>module.exports = ContextDependencyTemplateAsId;
<add>"use strict";
<add>
<add>class Contex... | 1 |
PHP | PHP | fix multi connection/part downloading file | ab96ed56f34b5b88c5b50f17956154bec7507a96 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> protected function _sendFile($file, $range) {
<ide>
<ide> $bufferSize = 8192;
<ide> set_time_limit(0);
<add> session_write_close();
<ide> while (!feof($file->handle)) {
<ide> if (!$this->_isActive()) {
<ide> $file->close(); | 1 |
Javascript | Javascript | fix a typo | 6f735eeb0568637c7f33388bfe00390d9cb41f75 | <ide><path>server/render.js
<ide> export async function renderScriptError (req, res, page, error, customFields, op
<ide> res.setHeader('Content-Type', 'text/javascript')
<ide> res.end(`
<ide> window.__NEXT_REGISTER_PAGE('${page}', function() {
<del> var error = new Error('Page not exists: ${page}')... | 1 |
Python | Python | fix mixed precision serialization of group convs | 9e3627ae6a1e1be80bdac6799b36ae7c29f5ae41 | <ide><path>keras/layers/convolutional/base_conv.py
<ide> def call(self, inputs):
<ide> inputs = tf.pad(inputs, self._compute_causal_padding(inputs))
<ide>
<ide> if self.groups > 1:
<del> outputs = self._jit_compiled_convolution_op(inputs, self.kernel)
<add> outputs = self._jit... | 1 |
Java | Java | use layout width for boringlayout in nodes | 9498f22439fb1b822811822146749e490d780f3f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java
<ide> protected void collectState(
<ide> mDrawCommand = new DrawTextLayout(new BoringLayout(
<ide> mText,
<ide> PAINT,
<del> Integer.MAX_VALUE, // fits one line so don't care about the width
<add> (int... | 1 |
Javascript | Javascript | use map to track round robin workers | 6654c5945263a3ced718b94a89c70fdc9b061500 | <ide><path>lib/internal/cluster/round_robin_handle.js
<ide> const assert = require('assert');
<ide> const net = require('net');
<ide> const { sendHelper } = require('internal/cluster/utils');
<del>const getOwnPropertyNames = Object.getOwnPropertyNames;
<ide> const { internalBinding } = require('internal/bootstrap/loade... | 1 |
Javascript | Javascript | give test-net-gh-5504 more time to run | 22879e749e595a730f194615874ca9710a0f5bf1 | <ide><path>test/simple/test-net-GH-5504.js
<ide> function parent() {
<ide> setTimeout(function() {
<ide> throw new Error('hang');
<ide> });
<del> }, 1000).unref();
<add> }, 4000).unref();
<ide>
<ide> var s = spawn(node, [__filename, 'server'], opt);
<ide> var c; | 1 |
Ruby | Ruby | use filename when printing pending migrations | 6d55eb992b11c624bb20fd6fc3cd230b8e5673a5 | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def detailed_migration_message(pending_migrations)
<ide> message += "You have #{pending_migrations.size} pending #{pending_migrations.size > 1 ? 'migrations:' : 'migration:'}\n\n"
<ide>
<ide> pending_migrations.each do |pending_migration|
<de... | 1 |
Python | Python | add tests mistakenly left out of r9397 | ad4e1a7a72136b5a6364b60ccf8a3e3ae387814a | <ide><path>tests/regressiontests/forms/fields.py
<ide> >>> f.clean('.002') == Decimal("0.002")
<ide> True
<ide>
<add>>>> f = DecimalField(max_digits=2, decimal_places=2)
<add>>>> f.clean('.01') == Decimal(".01")
<add>True
<add>>>> f.clean('1.1')
<add>Traceback (most recent call last):
<add>...
<add>ValidationError: [u... | 1 |
Javascript | Javascript | improve test performance | 65d9d062d9e79476655c23e7508067c204405580 | <ide><path>test/TestCases.template.js
<ide> const describeCases = config => {
<ide> "utf-8"
<ide> );
<ide> const jsonStats = stats.toJson({
<del> errorDetails: true
<add> errorDetails: true,
<add> modules: false,
<add> assets: false,
<... | 1 |
PHP | PHP | return a collection from lists() | f1e45c60628da3340afc77b2b425870db7fb60b9 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function lists($column, $key = null)
<ide>
<ide> $results = new Collection($this->get($columns));
<ide>
<del> return $results->lists($columns[0], array_get($columns, 1));
<add> return $results->lists($columns[0], array_get($columns, 1))->all();
<id... | 5 |
Ruby | Ruby | find all validators for multiple attributes | cf9324e5909e71ec0a2477338e696b6af2f17f13 | <ide><path>activemodel/lib/active_model/validations.rb
<ide> def validators
<ide> end
<ide>
<ide> # List all validators that being used to validate a specific attribute.
<del> def validators_on(attribute)
<del> _validators[attribute.to_sym]
<add> def validators_on(*attributes)
<add> ... | 2 |
Go | Go | add network endpoint for crashtest | 20c2a4f80f4171ffb59ea61bdcf57d8edc970fa8 | <ide><path>contrib/crashTest.go
<ide> package main
<ide>
<ide> import (
<add> "fmt"
<ide> "io"
<ide> "log"
<add> "net"
<ide> "os"
<ide> "os/exec"
<ide> "path"
<ide> func crashTest() error {
<ide> return err
<ide> }
<ide>
<add> var endpoint string
<add> if ep := os.Getenv("TEST_ENDPOINT"); ep == "" {
<add> en... | 1 |
Ruby | Ruby | override existing bintray bottles | cfc8ac0190a21375c98d004d6e400c74413b3dc0 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def test_bot
<ide> formula_packaged[formula_name] = true
<ide> end
<ide>
<del> content_url = "https://api.bintray.com/content/homebrew/#{bintray_repo}/#{bintray_package}/#{version}/#{filename}"
<del> content_url += "?publish=1&override=1... | 1 |
Ruby | Ruby | push url audits down to resourceauditor | 41ecce78982e9e1ca6ece946005dbd7a79c72e95 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> if homepage =~ %r[^http://((?:build|cloud|developer|download|extensions|git|glade|help|library|live|nagios|news|people|projects|rt|static|wiki|www)\.)?gnome\.org]
<ide> problem "Gnome homepages should be https:// links (URL is #{homepage})."
... | 1 |
Javascript | Javascript | fix azure pipelines | fd3256f47e402c8f283a287ecce94593e329cb91 | <ide><path>test/integration/api-support/pages/api/child-process.js
<ide> import { execSync } from 'child_process'
<ide>
<ide> export default (req, res) => {
<del> const output = execSync('echo "hi"')
<add> const output = execSync('echo hi')
<ide> .toString()
<ide> .trim()
<ide> res.end(output) | 1 |
Javascript | Javascript | remove extra serialization | aa38be0f4202fddf7bd55681b2a92ef321863b71 | <ide><path>lib/dependencies/AMDRequireItemDependency.js
<ide> class AMDRequireItemDependency extends ModuleDependency {
<ide> get type() {
<ide> return "amd require";
<ide> }
<del>
<del> serialize(context) {
<del> const { write } = context;
<del>
<del> write(this.range);
<del>
<del> super.serialize(context);
<de... | 9 |
Ruby | Ruby | pass options to `driven_by` | ec99107a2982236c726699cbbefc8839de278b93 | <ide><path>actionpack/lib/action_dispatch/system_test_case.rb
<ide> def self.start_application # :nodoc:
<ide> # driven_by :selenium, using: :firefox
<ide> #
<ide> # driven_by :selenium, screen_size: [800, 800]
<del> def self.driven_by(driver, using: :chrome, screen_size: [1400, 1400])
<del> @dr... | 3 |
Javascript | Javascript | remove angular.noconflict feature | 9faabd1ba0b1929785bcf166dc0ff60008e7c442 | <ide><path>src/Angular.js
<ide> var /** holds major version number for IE or NaN for real browsers */
<ide> nodeName_,
<ide> uid = ['0', '0', '0'];
<ide>
<del>/**
<del> * @ngdoc function
<del> * @name angular.noConflict
<del> * @function
<del> *
<del> * @description
<del> * Restores the previous ... | 3 |
Go | Go | add explicit status response to options handler | ac599d652846f6456366b8028b2c38da0565d8b1 | <ide><path>api.go
<ide> func createRouter(srv *Server, logging bool) (*mux.Router, error) {
<ide> if srv.enableCors {
<ide> writeCorsHeaders(w, r)
<ide> }
<add> w.WriteHeader(http.StatusOK)
<ide> })
<ide> return r, nil
<ide> }
<ide><path>api_test.go
<ide> func TestOptionsRoute(t *testing.T) {
<ide> }
<ide>
... | 2 |
Python | Python | add util function to add vectors to vocab | dc2bb1259f3c31e1744f715e09e3449b61f03c5d | <ide><path>spacy/tests/util.py
<ide> def apply_transition_sequence(parser, doc, sequence):
<ide> stepwise.transition(transition)
<ide>
<ide>
<add>def add_vecs_to_vocab(vocab, vectors):
<add> """Add list of vector tuples to given vocab. All vectors need to have the
<add> same length. Format: [("text"... | 1 |
Python | Python | mark a non-implemented test as a knownfailure | bc96ed3ed9229957631be5560389e6896c9dc6b3 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> def test_simple_strict_within(self):
<ide>
<ide> if sys.version_info >= (2, 6):
<ide> class TestNewBufferProtocol(object):
<add> @dec.knownfailureif(True, "No tests for the new buffer interface yet.")
<ide> def test_there_are_no_tests_yet_so_fail(... | 1 |
Mixed | Javascript | add getcolordepth function | bb9cedb0f07c4f74cada172845f2aea197efa456 | <ide><path>doc/api/assert.md
<ide> AssertionError [ERR_ASSERTION]: Input A expected to deepStrictEqual input B:
<ide> ]
<ide> ```
<ide>
<add>To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
<add>Please note that this will also deactivate the colors in the REPL.
<add>
<ide> ## Legacy mode... | 6 |
Javascript | Javascript | change buffer.from to new buffer | 7d142780dea3649f4ad07905e6c5f809ea9df597 | <ide><path>lib/SourceMapDevToolPlugin.js
<ide> class SourceMapDevToolPlugin {
<ide> } else {
<ide> asset.__SourceMapDevToolData[file] = compilation.assets[file] = new ConcatSource(new RawSource(source), currentSourceMappingURLComment
<ide> .replace(/\[map\]/g, () => JSON.stringify(sourceMap))
<del> ... | 1 |
Python | Python | keep api backwards compatible | b807f3d52a68dbf657c6437f71ecbfcba0695972 | <ide><path>rest_framework/generics.py
<ide> class Meta:
<ide>
<ide> return serializer_class
<ide>
<del> def get_serializer(self, instance=None, data=None, files=None, partial=False):
<add> def get_serializer(self, instance=None, data=None,
<add> files=None, partial=False):
<ide> ... | 2 |
Go | Go | add dummy proxy on port map | 97adea5b7703005624eaa129d45ee0ad211792db | <ide><path>libnetwork/portmapper/mapper.go
<ide> func (pm *PortMapper) Map(container net.Addr, hostIP net.IP, hostPort int, usePr
<ide>
<ide> if useProxy {
<ide> m.userlandProxy = newProxy(proto, hostIP, allocatedHostPort, container.(*net.TCPAddr).IP, container.(*net.TCPAddr).Port)
<add> } else {
<add> m.userl... | 3 |
Ruby | Ruby | add spdx spec | 6ecef73131178459ab9aa787bd9eaaacb48a6300 | <ide><path>Library/Homebrew/test/utils/spdx_spec.rb
<add># frozen_string_literal: true
<add>
<add>require "utils/spdx"
<add>
<add>describe SPDX do
<add> describe ".spdx_data" do
<add> it "has the license list version" do
<add> expect(described_class.spdx_data["licenseListVersion"]).not_to eq(nil)
<add> end
... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.