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 | improve the performance of iteration | 564c6f7f86467e1f831d107d571ec34501104b18 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/groovy/GroovyBeanDefinitionReader.java
<ide> else if (args[0] instanceof Map) {
<ide> resolveConstructorArguments(args, 2, hasClosureArgument ? args.length - 1 : args.length);
<ide> this.currentBeanDefinition = new GroovyBeanDefinitionWra... | 1 |
Go | Go | extend test coverage of secrets | 0da7bd0314a61919428fe036660b822b0bf22d35 | <ide><path>integration-cli/docker_cli_service_create_test.go
<ide> package main
<ide> import (
<ide> "encoding/json"
<ide> "fmt"
<add> "path/filepath"
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> func (s *DockerSwarmSuite) TestServiceCreateWithSecretSourceTargetPaths(c *check
<ide> d := ... | 1 |
Go | Go | normalize comment formatting | e2addf46bfe863edd9d0fee8c05fc4000a052106 | <ide><path>pkg/mount/mountinfo_freebsd.go
<ide> import (
<ide> "unsafe"
<ide> )
<ide>
<del>//parseMountTable returns information about mounted filesystems
<add>// parseMountTable returns information about mounted filesystems
<ide> func parseMountTable(filter FilterFunc) ([]*Info, error) {
<ide> var rawEntries *C.str... | 1 |
Javascript | Javascript | add email settings | 2de21434576719997bc0f712b7ee03791bbc01d8 | <ide><path>api-server/common/models/User-Identity.js
<ide> import { wrapHandledError } from '../../server/utils/create-handled-error.js';
<ide> // const log = debug('fcc:models:userIdent');
<ide>
<ide> export default function(UserIdent) {
<del>
<ide> UserIdent.on('dataSourceAttached', () => {
<ide> UserIdent.fin... | 11 |
Go | Go | add refcount for mountpoint | df0d317a64e4a74433359e826bc1d606e050a5ed | <ide><path>container/container.go
<ide> func (container *Container) AddMountPointWithVolume(destination string, vol volu
<ide> func (container *Container) UnmountVolumes(volumeEventLog func(name, action string, attributes map[string]string)) error {
<ide> var errors []string
<ide> for _, volumeMount := range containe... | 3 |
Javascript | Javascript | remove obsolete workaround for firefox bug | 7df29521d8c1c494f615c49d6c2e1e267e3a6be5 | <ide><path>src/ng/location.js
<ide> function $LocationProvider() {
<ide> // update location manually
<ide> if ($location.absUrl() !== $browser.url()) {
<ide> $rootScope.$apply();
<del> // hack to work around FF6 bug 684208 when scenario runner clicks on links
<del> ... | 2 |
Python | Python | ignore localhost for linkcheck | 06cc3ca91d40f63d3d77a8517e84d1de5479460d | <ide><path>docs/conf.py
<ide> 'celery.utils.encoding',
<ide> r'celery.utils.static.*',
<ide> ],
<add> linkcheck_ignore=[
<add> r'^http://localhost'
<add> ]
<ide> ))
<ide>
<ide> settings = {} | 1 |
Java | Java | expose convenience method in mvc java config | 826057bcdea8bfe5984c7c4df2b3faff35dcae52 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java
<ide> import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
<ide> import org.springframework.web.HttpRequestHandler;
<ide> import org.springframework.web.accept.ContentNegot... | 1 |
PHP | PHP | use cache instead of tmp | 0d4549003aa94c09147d2904fd58f7118a9a0c9a | <ide><path>tests/TestCase/Cache/Engine/FileEngineTest.php
<ide> public function testRemoveWindowsSlashesFromCache()
<ide> 'engine' => 'File',
<ide> 'isWindows' => true,
<ide> 'prefix' => null,
<del> 'path' => TMP
<add> 'path' => CACHE
<ide> ]);
<ide>
<i... | 1 |
Javascript | Javascript | add serialization to dllmodule and entrydependency | 2124b3f6844140a2f8a2c9a89650fceaa0bb6265 | <ide><path>lib/DllModule.js
<ide> const { RawSource } = require("webpack-sources");
<ide> const Module = require("./Module");
<ide> const RuntimeGlobals = require("./RuntimeGlobals");
<add>const makeSerializable = require("./util/makeSerializable");
<ide>
<ide> /** @typedef {import("webpack-sources").Source} Source */... | 3 |
Ruby | Ruby | use utils.popen_read instead of backticks | 11defcf847666adac44f0ff53a7f8ead9a7ac5f1 | <ide><path>Library/Homebrew/formula_versions.rb
<ide> def rev_list(branch="HEAD")
<ide> end
<ide>
<ide> def file_contents_at_revision(rev)
<del> repository.cd { `git cat-file blob #{rev}:#{entry_name}` }
<add> repository.cd { Utils.popen_read("git", "cat-file", "blob", "#{rev}:#{entry_name}") }
<ide> end
<... | 1 |
Go | Go | handle plugin list not implemented | e7e11bdd44878d28c642d72761aa41eb9ffce3d1 | <ide><path>client/errors.go
<ide> func wrapResponseError(err error, resp serverResponse, object, id string) error
<ide> return nil
<ide> case resp.statusCode == http.StatusNotFound:
<ide> return objectNotFoundError{object: object, id: id}
<add> case resp.statusCode == http.StatusNotImplemented:
<add> return notIm... | 2 |
Java | Java | fix failing test | fe77c3d5fe3b498ecba7f3e1dce31f0aec43d8d6 | <ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java
<ide> public void setAsyncResultLatch(CountDownLatch asyncResultLatch) {
<ide> }
<ide>
<ide> public Object getAsyncResult() {
<del> WebAsyncManager asyncManager = WebAsyncUtils.getAsyncManager(this.mockRequest);
<del... | 2 |
Javascript | Javascript | change string concatenation to template | 5bd8206b40c93882cd76e40049c8749984ad7c2f | <ide><path>test/fixtures/print-10-lines.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> for (var i = 0; i < 10; i++) {
<del> console.log('count ' + i);
<add> console.log(`count ${i}`);
<ide> } | 1 |
Python | Python | avoid increasing levels for identical arcs | 4e1716223c99402efc97698116905c04d39ef6be | <ide><path>spacy/displacy/render.py
<ide> def get_levels(self, arcs: List[Dict[str, Any]]) -> Dict[Tuple[int, int, str], i
<ide> args (list): Individual arcs and their start, end, direction and label.
<ide> RETURNS (dict): Arc levels keyed by (start, end, label).
<ide> """
<add> arcs = [d... | 2 |
PHP | PHP | remove comment bloat from eloquent | 98a691fa58640df321f12b8bf67a705f2d474312 | <ide><path>system/db/eloquent.php
<ide> public static function make($class)
<ide> {
<ide> $model = new $class;
<ide>
<del> // -----------------------------------------------------
<del> // Since this method is only used for instantiating
<del> // models for querying purposes, we will go ahead and
<del> // set t... | 1 |
Javascript | Javascript | add jsdoc typings for assert | 82d59882b13139672f5da4bffdf5883df3892dc0 | <ide><path>lib/assert.js
<ide> function innerFail(obj) {
<ide> throw new AssertionError(obj);
<ide> }
<ide>
<add>/**
<add> * @param {any} actual
<add> * @param {any} expected
<add> * @param {string | Error} [message]
<add> * @param {string} [operator]
<add> * @param {Function} [stackStartFn]
<add> * @returns {never}... | 1 |
Python | Python | add ipv6 to node, from primary nic | 08937befa7d7877b2b5bb50df6c8c89b0ae65d87 | <ide><path>libcloud/compute/drivers/dimensiondata.py
<ide> def _to_node(self, element):
<ide> if has_network_info else \
<ide> element.find(fixxpath('nic', TYPES_URN)).get('privateIpv4')
<ide>
<add> node.extra['ipv6'] = element.find(
<add> fixxpath('networkInfo/primaryNic', TY... | 1 |
Ruby | Ruby | add numeric type in the doc [ci skip] | 40fd56052b03919b7ba5f07415e215a2b47df95f | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
<ide> def drop_table(table_name, options = {})
<ide> # The +type+ parameter is normally one of the migrations native types,
<ide> # which is one of the following:
<ide> # <tt>:primary_key</tt>, <tt>:string</tt>... | 1 |
PHP | PHP | remove forgotten line | 078ce63639cf86f06009f486116c123534c403d3 | <ide><path>src/Validation/Validation.php
<ide> public static function comparison($check1, $operator, $check2)
<ide> return false;
<ide> }
<ide>
<del> $message = 'Operator `%s` is deprecated, use constant `Validation::%s` instead.';
<del>
<ide> $operator = str_replace([' ', "\t", "\n"... | 1 |
Ruby | Ruby | fix broken macos sdk paths" | 9b4a7856ac92e025e9df73ed5d18e4412fa55b5c | <ide><path>Library/Homebrew/extend/rbconfig_extension.rb
<del># typed: false
<del># frozen_string_literal: true
<del>
<del>macos_version = ENV["HOMEBREW_MACOS_VERSION"][0..4]
<del>macos_sdk = "MacOSX#{macos_version}.sdk"
<del>
<del># Ruby hardcodes what might end up being an incorrect SDK path in some of the
<del># var... | 2 |
Text | Text | update css classes | 5e6b17bd4b4c48d56e1376cebc506ea6fe848c43 | <ide><path>guide/english/html/css-classes/index.md
<ide> Then in your css file:
<ide>
<ide> ```css
<ide>
<del>.iron-man{
<del> color:red;
<add>.iron-man {
<add> color: red;
<ide> }
<ide>
<del>.alfred{
<add>.alfred {
<ide> background-color: black;
<ide> }
<ide> | 1 |
Javascript | Javascript | add handlebars helper for {{yield}} | 672e25b8d901a9973fce139fcf687b94382e16ab | <ide><path>packages/ember-handlebars/lib/helpers.js
<ide> require("ember-handlebars/helpers/unbound");
<ide> require("ember-handlebars/helpers/debug");
<ide> require("ember-handlebars/helpers/each");
<ide> require("ember-handlebars/helpers/template");
<del>require("ember-handlebars/helpers/action");
<ide>\ No newline a... | 3 |
Javascript | Javascript | loosen timeout in https-no-reader | 38176d3a1aa84cd2e7566673a965b966dc69a269 | <ide><path>test/simple/test-https-no-reader.js
<ide> server.listen(common.PORT, function() {
<ide> // (i.e. should not leak)
<ide> assert(res._readableState.length < 100 * 1024);
<ide> process.exit(0);
<del> }, 5000);
<add> }, 2000);
<ide> });
<ide> req.end();
<ide> }); | 1 |
Python | Python | fix deprecation warnings | 4d3914841932065f19a61ad46e178f94dedeff5a | <ide><path>src/transformers/modeling_funnel.py
<ide> def load_tf_weights_in_funnel(model, config, tf_checkpoint_path):
<ide> skipped = False
<ide> for m_name in name[1:]:
<ide> if not isinstance(pointer, FunnelPositionwiseFFN) and re.fullmatch(r"layer_\d+", m_name):
<del> laye... | 3 |
PHP | PHP | remove brittle test for now | 5e91cc382c12654dca7174264860d51aad0fed38 | <ide><path>tests/Integration/Http/ThrottleRequestsWithRedisTest.php
<ide> public function test_lock_opens_immediately_after_decay()
<ide> $this->assertEquals(2, $response->headers->get('X-RateLimit-Limit'));
<ide> $this->assertEquals(0, $response->headers->get('X-RateLimit-Remaining'));
<ide>
<... | 1 |
Ruby | Ruby | remove sprockets-rails from the gemfile generator | ed6d8f0ac6703f112da9cdf7f1c46365e60e8f11 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def assets_gemfile_entry
<ide> # Gems used only for assets and not required
<ide> # in production environments by default.
<ide> group :assets do
<del> gem 'sprockets-rails', '~> 2.0.0.rc3'
<ide> ge... | 1 |
Go | Go | add george washington carver to name generator | c90254c7464cac5c56e7ab9e6b1857c119d5d263 | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Dame Mary Lucy Cartwright - British mathematician who was one of the first to study what is now known as chaos theory. Also known for Cartwright's theorem which finds applications in signal processing. https://en.wikipedia.org/wiki/Mary_Cartwright
... | 1 |
Ruby | Ruby | output what files `edit` is opening. (#444) | 883b201c0906ad2942ec900290568836b5ddc240 | <ide><path>Library/Homebrew/utils.rb
<ide> def which_editor
<ide> end
<ide>
<ide> def exec_editor(*args)
<add> puts "Editing #{args.join "\n"}"
<ide> safe_exec(which_editor, *args)
<ide> end
<ide> | 1 |
Javascript | Javascript | use common.port to avoid conflicts | ec51bfc99574c7b42072bcb8d62dfe3165a6a034 | <ide><path>test/simple/test-net-server-listen-remove-callback.js
<ide> server.on('close', function() {
<ide> assert.equal(0, listeners.length);
<ide> });
<ide>
<del>server.listen(3000, function() {
<add>server.listen(common.PORT, function() {
<ide> server.close();
<del> server.listen(3001, function() {
<add> ser... | 1 |
PHP | PHP | use instances of network\request everywhere | 45ca5d0337cae62c87ae2172c961a84c629b0dd6 | <ide><path>src/Http/BaseApplication.php
<ide> public function bootstrap()
<ide> /**
<ide> * Invoke the application.
<ide> *
<del> * - Convert the PSR request/response into CakePHP equivalents.
<add> * - Convert the PSR response into CakePHP equivalents.
<ide> * - Create the controller that wi... | 5 |
Python | Python | add prompt for file overwriting in save_weights | 6892a20a9290c6a19e05ece4a428ed2c11461451 | <ide><path>keras/models.py
<ide> def save_weights(self, filepath, overwrite=False):
<ide> import os.path
<ide> # if file exists and should not be overwritten
<ide> if not overwrite and os.path.isfile(filepath):
<del> raise IOError('%s already exists' % (filepath))
<add> ove... | 1 |
PHP | PHP | add hook to configure broadcastable model event | 5ca5768db439887217c86031ff7dd3bdf56cc466 | <ide><path>src/Illuminate/Database/Eloquent/BroadcastsEvents.php
<ide> protected function broadcastIfBroadcastChannelsExistForEvent($instance, $event,
<ide> */
<ide> public function newBroadcastableModelEvent($event)
<ide> {
<del> return tap(new BroadcastableModelEventOccurred($this, $event), functi... | 1 |
PHP | PHP | apply fixes from styleci | cb70c44c5b01e6d449e9e32b8234f9854fabb932 | <ide><path>src/Illuminate/Console/Scheduling/ManagesFrequencies.php
<ide> public function yearly()
<ide> ->spliceIntoPosition(4, 1);
<ide> }
<ide>
<del>
<ide> /**
<ide> * Set the days of the week the command should run on.
<ide> * | 1 |
Javascript | Javascript | use image.src if htmlcanvaselement is undefined | 1e2dcbd8a38475aebabae38785372131cf24159f | <ide><path>src/extras/ImageUtils.js
<ide> var ImageUtils = {
<ide>
<ide> var canvas;
<ide>
<del> if ( image instanceof HTMLCanvasElement ) {
<add> if ( typeof HTMLCanvasElement == 'undefined' ) {
<add>
<add> return image.src;
<add>
<add> } if ( image instanceof HTMLCanvasElement ) {
<ide>
<ide> canvas = im... | 1 |
Javascript | Javascript | check travis env before checking if it's a pr | dfa791581f71ee236e87d3a73dc88ca6438c0534 | <ide><path>build/tasks/test.js
<ide> module.exports = function(grunt) {
<ide> tasksMinified,
<ide> tasksMinifiedApi;
<ide>
<del> grunt.task.run(['pretask']);
<del>
<del> if (process.env.TRAVIS_PULL_REQUEST !== 'false') {
<add> // I believe this was done originally because of security implications arou... | 1 |
PHP | PHP | fix lint errors | e3692225ffb73fc70aab37f88e024dfe6b0e285d | <ide><path>lib/Cake/Test/Case/Utility/HashTest.php
<ide> public function testFlattenInfiniteLoop() {
<ide> 'Order.Item.0.Product.sizes.4.Size.qty' => '',
<ide> 'Order.Item.0.Product.sizes.4.Size.size' => '12-18mo',
<ide> 'Order.Item.0.Product.sizes.4.Size.id' => '42',
<del> 'Order.Item.0.Art.imprint_location... | 1 |
Javascript | Javascript | fix production test failing in ie11 | 56501aeb820aeee7f5077200462903ad0d12b2e9 | <ide><path>test/integration/production/test/index.test.js
<ide> describe('Production Usage', () => {
<ide> try {
<ide> browser = await webdriver(appPort, '/mark-in-head')
<ide>
<del> const currentPerfMarks = await browser.eval(
<del> `window.performance.getEntriesByType('mark')`
<del> )
<del... | 1 |
Python | Python | flaubert pytorch tests | 950c6a4f09787c8c5ef98dabd199082b25601fe8 | <ide><path>tests/test_modeling_flaubert.py
<add># coding=utf-8
<add># Copyright 2018 The Google AI Language Team Authors.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You may obtain a copy of the License at
<... | 1 |
Python | Python | add on_kill method to bigqueryinsertjoboperator | 41a62735edcebbd9c39e505280646ef5d25aa1d5 | <ide><path>airflow/providers/google/cloud/operators/bigquery.py
<ide> def execute(self, context):
<ide> )
<ide>
<ide>
<add># pylint: disable=too-many-arguments
<ide> class BigQueryInsertJobOperator(BaseOperator):
<ide> """
<ide> Executes a BigQuery job. Waits for the job to complete and returns job id... | 2 |
Python | Python | remove unused gptmodeltester | daf8bebcddb9cbef356e92c628cd9ca1a9e89923 | <ide><path>tests/test_modeling_common.py
<ide>
<ide> from transformers import is_torch_available
<ide>
<del>from .utils import CACHE_DIR, require_torch, slow, torch_device
<add>from .utils import require_torch, slow, torch_device
<ide>
<ide>
<ide> if is_torch_available():
<ide> def test_inputs_embeds(self):
<ide> ... | 1 |
Text | Text | use consistent term [skip ci] | 258c95a9a206ffd2778691e1c02875d04d255c8e | <ide><path>guides/source/active_support_core_extensions.md
<ide> Contributor.limit(2).order(:rank).to_xml
<ide>
<ide> To do so it sends `to_xml` to every item in turn, and collects the results under a root node. All items must respond to `to_xml`, an exception is raised otherwise.
<ide>
<del>By default, the name of t... | 1 |
Python | Python | catch message for processuser information | 26819112429706fcfa9c6d3e030a6c24cbd5dc50 | <ide><path>glances/glances.py
<ide> def __get_process_stats(self, proc):
<ide> try:
<ide> procstat['username'] = proc.username
<ide> except KeyError:
<del> procstat['username'] = proc.uids.real
<add> try:
<add> procstat['username'] = proc.uids.real
<add> ... | 1 |
PHP | PHP | fix foreach order | 69a1f9616f55de439dca3800ed544861dbaf40e4 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function any($pattern, $action)
<ide> */
<ide> public function controllers(array $controllers)
<ide> {
<del> foreach ($controllers as $name => $uri)
<add> foreach ($controllers as $uri => $name)
<ide> {
<ide> $this->controller($uri, $name);
<ide> } | 1 |
Python | Python | fix issue #459 | 1f50270eeaeb9b19b9c3ca69e74e8517c3cb71db | <ide><path>slim/nets/resnet_v1.py
<ide> def resnet_v1_101(inputs,
<ide> return resnet_v1(inputs, blocks, num_classes, is_training,
<ide> global_pool=global_pool, output_stride=output_stride,
<ide> include_root_block=True, reuse=reuse, scope=scope)
<del>
<add>resnet_v1_101.default... | 1 |
Python | Python | add child to listfield when using arrayfield | 48fa77c09e2198c7877a724a46230caedcc7b529 | <ide><path>rest_framework/serializers.py
<ide> def build_standard_field(self, field_name, model_field):
<ide> # Fields with choices get coerced into `ChoiceField`
<ide> # instead of using their regular typed field.
<ide> field_class = ChoiceField
<add>
<ide> if not issubclass... | 1 |
Javascript | Javascript | replace assert.throws w/ common.expectserror | acd427713422138a92f74a4c3c2a1f6d8ecf9778 | <ide><path>test/parallel/test-dns.js
<ide> const goog = [
<ide> ];
<ide> assert.doesNotThrow(() => dns.setServers(goog));
<ide> assert.deepStrictEqual(dns.getServers(), goog);
<del>assert.throws(() => dns.setServers(['foobar']), common.expectsError({
<add>common.expectsError(() => dns.setServers(['foobar']), {
<ide> ... | 11 |
Javascript | Javascript | update electron builtins | 10c1c97b607dfe31bcc34cfd342ef349cb94e93a | <ide><path>src/module-cache.js
<ide> function registerBuiltins (devMode) {
<ide> const electronAsarRoot = path.join(process.resourcesPath, 'electron.asar')
<ide>
<ide> const commonRoot = path.join(electronAsarRoot, 'common', 'api')
<del> const commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter',... | 1 |
Javascript | Javascript | pass meta labels through correctly [ci skip] | 129670283e3eab5671fab0e4cc5dfcee4294c3b2 | <ide><path>website/src/templates/models.js
<ide> function formatModelMeta(data) {
<ide> author: data.author,
<ide> url: data.url,
<ide> license: data.license,
<add> labels: data.labels,
<ide> vectors: formatVectors(data.vectors),
<ide> accuracy: formatAccuracy(data.accurac... | 1 |
Mixed | Javascript | add thisarg to asyncresource.bind | 324a6c235a5bfcbcd7cc7491d55461915c10af34 | <ide><path>doc/api/async_hooks.md
<ide> class DBQuery extends AsyncResource {
<ide> }
<ide> ```
<ide>
<del>#### Static method: `AsyncResource.bind(fn[, type])`
<add>#### Static method: `AsyncResource.bind(fn[, type, [thisArg]])`
<ide> <!-- YAML
<ide> added:
<ide> - v14.8.0
<ide> - v12.19.0
<add>changes:
<add> - v... | 3 |
Javascript | Javascript | use default message for assert.strictequal | ef96b05c741cd2ab3434e89bcb9bf5b54b568c3a | <ide><path>test/parallel/test-zlib-from-concatenated-gzip.js
<ide> const zlib = require('zlib');
<ide> const fs = require('fs');
<ide> const fixtures = require('../common/fixtures');
<ide>
<del>const abcEncoded = zlib.gzipSync('abc');
<del>const defEncoded = zlib.gzipSync('def');
<add>const abc = 'abc';
<add>const def... | 1 |
PHP | PHP | add new assertion methods added in php 9 | e01649deb97ec7749cae0d900be18ff6d6859b09 | <ide><path>src/TestSuite/TestCase.php
<ide> use Cake\TestSuite\Constraint\EventFiredWith;
<ide> use Cake\Utility\Inflector;
<ide> use LogicException;
<add>use PHPUnit\Framework\Constraint\DirectoryExists;
<add>use PHPUnit\Framework\Constraint\FileExists;
<add>use PHPUnit\Framework\Constraint\LogicalNot;
<add>use PHPUni... | 44 |
Javascript | Javascript | use queue for pendingstate | 8b200c5e7822b137029db0634094f69d790f2272 | <ide><path>src/renderers/shared/fiber/ReactFiber.js
<ide> import type { ReactCoroutine, ReactYield } from 'ReactCoroutine';
<ide> import type { TypeOfWork } from 'ReactTypeOfWork';
<ide> import type { PriorityLevel } from 'ReactPriorityLevel';
<add>import type { PendingState } from 'ReactFiberPendingState';
<ide>
<ide... | 5 |
PHP | PHP | check null instead of empty to use all tables | eb988d35045b0d72c0bf61711f9479e3ee270b3a | <ide><path>src/TestSuite/ConnectionHelper.php
<ide> public function addTestAliases(): void
<ide> /**
<ide> * Enables query logging for all database connections.
<ide> *
<del> * @param array<int, string> $connections Connection names or empty for all.
<add> * @param array<int, string>|null $connect... | 1 |
Javascript | Javascript | remove `didtimeout` check from work loop | 3f8115cdd1e6ba237619cf8a7d433900dcf413c2 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> function ensureRootIsScheduled(root: FiberRoot, currentTime: number) {
<ide>
<ide> // This is the entry point for every concurrent task, i.e. anything that
<ide> // goes through Scheduler.
<del>function performConcurrentWorkOnRoot(root, didTimeou... | 3 |
Text | Text | fix incomplete test | 970a1c1b568cc0fe4d6297f5166fa5c91c1294e0 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/data-structures/adjacency-list.md
<ide> There should be an edge between `Jill` and `Jenny`.
<ide> ```js
<ide> assert(
<ide> undirectedAdjList.Jill.indexOf('Jenny') !== -1 &&
<del> undirectedAdjList.Jill.indexOf('Jenny') !== -1
<add> undirectedAdj... | 1 |
Ruby | Ruby | fix keyword arguments warnings | 3796cd628f8907b0471172b9cf7e5480e060a4c3 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> def mismatched_foreign_key(message, sql:, binds:)
<ide> options[:primary_key_column] = column_for(match[:target_table], match[:primary_key])
<ide> end
<ide>
<del> MismatchedForeignKey.new(option... | 3 |
Python | Python | remove unneeded future imports | b9f1d23cfbb170a4daaaf4042a6b9032ca7a4501 | <ide><path>benchmarks/benchmarks/bench_array_coercion.py
<del>from __future__ import absolute_import, division, print_function
<del>
<ide> from .common import Benchmark
<ide>
<ide> import numpy as np
<ide><path>benchmarks/benchmarks/bench_itemselection.py
<del>from __future__ import absolute_import, division, print_fu... | 5 |
Javascript | Javascript | remove event dependency from the ajax module | 4e7f34f6296111f7f91d621397dfb02c6bf4c41f | <ide><path>src/ajax/xhr.js
<ide> var xhrId = 0,
<ide>
<ide> // Support: IE9
<ide> // Open requests must be manually aborted on unload (#5280)
<del>if ( window.ActiveXObject ) {
<del> jQuery( window ).on( "unload", function() {
<add>// See https://support.microsoft.com/kb/2856746 for more info
<add>if ( window.attachEv... | 1 |
Javascript | Javascript | remove preview when press escape | dc28d6315dca01acf824af655fc0adaa8db2d0bf | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> clearPreview(key);
<ide> if (!reverseSearch(d, key)) {
<ide> ttyWrite(d, key);
<del> showPreview();
<add> if (key.name !== 'escape') {
<add> showPreview();
<add> }
<ide> }
<ide> return;
<ide> ... | 2 |
Javascript | Javascript | remove example e2e test that cannot run | 1bc99eca08bef4aceb49d4fee7ef9e291f60ff3b | <ide><path>src/ng/interpolate.js
<ide> var $interpolateMinErr = minErr('$interpolate');
<ide> //label//
<ide> </div>
<ide> </doc:source>
<del> <doc:scenario>
<del> describe('provider', function() {
<del> beforeEach(module(function($interpolateProvider) {
<del> $interpo... | 1 |
Javascript | Javascript | point everything at the new meta module | c4b3bceaf6d94a73d1c251bbacc5682474ec989c | <ide><path>packages/ember-metal/lib/alias.js
<ide> import {
<ide> defineProperty
<ide> } from 'ember-metal/properties';
<ide> import { ComputedProperty } from 'ember-metal/computed';
<del>import {
<del> meta,
<del> inspect
<del>} from 'ember-metal/utils';
<add>import { inspect } from 'ember-metal/utils';
<add>impor... | 16 |
Javascript | Javascript | avoid window.print in a microtask | 76d29759c5fc023a93281064914f3f642275b6c7 | <ide><path>web/mozPrintCallback_polyfill.js
<ide> }
<ide> } else {
<ide> renderProgress();
<del> print.call(window);
<del> setTimeout(abort, 20); // Tidy-up
<add> // Push window.print in the macrotask queue to avoid being affected by
<add> // the deprecation of running print() code i... | 1 |
Ruby | Ruby | update #match documentation [ci skip] | 8453addedcea6e42a5df3d241225a32698121072 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def root(options = {})
<ide> #
<ide> # # Matches any request starting with 'path'
<ide> # match 'path' => 'c#a', :anchor => false
<add> #
<add> # [:format]
<add> # Allows you to specify default value... | 1 |
Javascript | Javascript | add param for correct category | 583f0de9f5662537dab0c650c8aef2e78d74c9a9 | <ide><path>packages/learn/src/templates/Challenges/redux/create-question-epic.js
<ide> function createQuestionEpic(action$, { getState }, { window }) {
<ide> tap(() => {
<ide> const state = getState();
<ide> const files = challengeFilesSelector(state);
<del> const { title: challengeTitle } = challe... | 1 |
Javascript | Javascript | use arrow functions | 140d66785dc61304c9df4281ff993fbbd075c829 | <ide><path>bin/changelog.js
<ide> compareCommits({
<ide> })
<ide> .then(processPages)
<ide> .then(console.log)
<del> .catch(function(err) {
<del> console.error(err);
<del> });
<add> .catch(err => console.error(err));
<ide>
<ide> function getCommitMessage(commitInfo) {
<ide> let message = commitInfo.commit.... | 1 |
Text | Text | fix spelling. [ci skip] | a32298ffb3fbccf41fa15c223710e1011e6fe25e | <ide><path>railties/CHANGELOG.md
<ide>
<ide> * The [web-console](https://github.com/rails/web-console) gem is now
<ide> installed by default for new applications. It can help you debug
<del> development exceptions by spawnig an interactive console in its cause
<add> development exceptions by spawning an in... | 1 |
Go | Go | fix logrus formatting | fa710e504b0e3e51d4031790c18621b02dcd2600 | <ide><path>daemon/cluster/cluster.go
<ide> func New(config Config) (*Cluster, error) {
<ide>
<ide> select {
<ide> case <-time.After(swarmConnectTimeout):
<del> logrus.Errorf("swarm component could not be started before timeout was reached")
<add> logrus.Error("swarm component could not be started before timeout wa... | 9 |
Python | Python | add url and typing hint for bfs | d2fa91b18e4f87976a67f99a57929d12fe48cfd9 | <add><path>graphs/breadth_first_search_2.py
<del><path>graphs/bfs.py
<ide> """
<del>BFS.
<del>
<add>https://en.wikipedia.org/wiki/Breadth-first_search
<ide> pseudo-code:
<del>
<del>BFS(graph G, start vertex s):
<add>breadth_first_search(graph G, start vertex s):
<ide> // all nodes initially unexplored
<ide> mark s as e... | 1 |
Text | Text | add jhamhader to collaborators | 20501275d376f1f3e950c2131dfad71c931f79e7 | <ide><path>README.md
<ide> information about the governance of the Node.js project, see
<ide> * [iWuzHere](https://github.com/iWuzHere) - **Imran Iqbal** <imran@imraniqbal.org>
<ide> * [JacksonTian](https://github.com/JacksonTian) - **Jackson Tian** <shvyo1987@gmail.com>
<ide> * [jbergstroem](https://github... | 1 |
Mixed | Python | add resume logic to spacy pretrain | 9c064e6ad95ac2733fc27a874644b6ad8caecedf | <ide><path>spacy/cli/pretrain.py
<ide> from .._ml import Tok2Vec, flatten, chain, create_default_optimizer
<ide> from .._ml import masked_language_model
<ide> from .. import util
<add>from .train import _load_pretrained_tok2vec
<ide>
<ide>
<ide> @plac.annotations(
<ide> seed=("Seed for random number generators", ... | 2 |
Python | Python | update optimizer documentation | bab5d130776b98a6988477ec11fe0c11b0b95d74 | <ide><path>optimization.py
<ide> def warmup_linear(x, warmup=0.002):
<ide>
<ide>
<ide> class BERTAdam(Optimizer):
<del> """Implements Open AI version of Adam algorithm with weight decay fix.
<add> """Implements BERT version of Adam algorithm with weight decay fix (and no ).
<ide> Params:
<del> lr,
<d... | 1 |
Text | Text | fix an unclear wording in readline.md | 20987752a2ed63aa260b5e7e4779c093d4ec09f2 | <ide><path>doc/api/readline.md
<ide> a `'resize'` event on the `output` if or when the columns ever change
<ide>
<ide> ### Use of the `completer` Function
<ide>
<del>When called, the `completer` function is provided the current line entered by
<del>the user, and is expected to return an Array with 2 entries:
<add>The... | 1 |
Go | Go | move portmapper and portallocator into libnetwork | 5d7b4308012c2d0239c81b9574385a9196c2300e | <ide><path>libnetwork/drivers/bridge/setup_ip_tables.go
<ide> import (
<ide> "fmt"
<ide> "net"
<ide>
<del> "github.com/docker/docker/daemon/networkdriver"
<del> "github.com/docker/docker/daemon/networkdriver/portmapper"
<ide> "github.com/docker/docker/pkg/iptables"
<add> "github.com/docker/libnetwork"
<add> "github... | 7 |
Javascript | Javascript | add docs about form submission | d1e7a5394ad74e0dc024a50f77fa32b46eac1be2 | <ide><path>src/widget/form.js
<ide> * element nesting.
<ide> *
<ide> *
<add> * # Submitting a form and preventing default action
<add> *
<add> * Since the role of forms in client-side Angular applications is different than in old-school
<add> * roundtrip apps, it is desirable for the browser not to translate the for... | 1 |
Go | Go | use sync.rwmutex for vxlanudpport | 38c8a3f84df0d1fbb67c56a74e4b056cb096828f | <ide><path>libnetwork/drivers/overlay/overlayutils/utils.go
<ide> import (
<ide> )
<ide>
<ide> var (
<add> mutex sync.RWMutex
<ide> vxlanUDPPort uint32
<del> mutex sync.Mutex
<ide> )
<ide>
<ide> const defaultVXLANUDPPort = 4789
<ide> func init() {
<ide>
<ide> // ConfigVXLANUDPPort configures vxlan udp... | 1 |
Ruby | Ruby | pass the parent node to the construct method | c4d0e69ad25e596ae3617e8fe96b91097edbfedb | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> def instantiate(result_set)
<ide> parents = {}
<ide>
<ide> type_caster = result_set.column_type primary_key
<del> assoc = join_root.children
<ide>
<ide> records = result_set.map { |row_hash|
<ide> ... | 1 |
Javascript | Javascript | remove sys in new tests | 1879d8211d4c05a512ea634126f35e2621831f4b | <ide><path>test/disabled/pipe-test.js
<ide> var common = require('../common');
<ide> var assert = require('assert');
<ide> var http = require('http');
<ide> var net = require('net');
<del>var sys = require('sys');
<ide>
<ide> var webPort = common.PORT
<ide> var tcpPort = webPort + 1;
<ide><path>test/simple/test-http-b... | 2 |
Text | Text | add release notes for 1.2.2 consciousness-inertia | 16febf8357c985ab4380ad2f55f3fc966e842f5c | <ide><path>CHANGELOG.md
<add><a name="1.2.2"></a>
<add># 1.2.2 consciousness-inertia (2013-11-22)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:**
<add> - ensure keyframe animations are blocked around the reflow
<add> ([6760d7a3](https://github.com/angular/angular.js/commit/6760d7a315d7ea5cbd4f8ab74b200f754a2... | 1 |
PHP | PHP | change function type in payload | 659fd50a651762dcffb9c08bf461cf57105a5159 | <ide><path>laravel/session/payload.php
<ide> class Payload {
<ide> public $session;
<ide>
<ide> /**
<del> * Indicates if the session already exists in storage.
<add> * The session driver used to retrieve and store the session payload.
<ide> *
<del> * @var bool
<add> * @var Driver
<ide> */
<del> protected $ex... | 1 |
Python | Python | fix checkpoint deletion | a515caa331d232897e92282fe96bfceb857e38ff | <ide><path>src/transformers/trainer.py
<ide> def _save_checkpoint(self, model, trial, metrics=None):
<ide> if self.is_world_process_zero():
<ide> self.state.save_to_json(os.path.join(output_dir, "trainer_state.json"))
<ide>
<del> # Maybe delete some older checkpoints.
<del> if self.is... | 2 |
Javascript | Javascript | swipeablelistview quick actions | 763e9cce27177645013f528df5a14c0b6fe05dac | <ide><path>Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js
<add>/**
<add> * Copyright (c) 2013-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An a... | 2 |
PHP | PHP | convert database\type to factory class | 6129a49c82152a153713169e9f954c7a7444180d | <ide><path>src/Database/Type.php
<ide> namespace Cake\Database;
<ide>
<ide> use InvalidArgumentException;
<del>use PDO;
<ide>
<ide> /**
<del> * Encapsulates all conversion functions for values coming from database into PHP and
<del> * going from PHP into database.
<add> * Factory for building database type classes.
<... | 2 |
Javascript | Javascript | remove error message | dc086834b14647acacfd6d1e9a20bf83df34644a | <ide><path>test/pummel/test-net-connect-memleak.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const net = require('net');
<ide>
<add>console.log('Run this test with --expose-gc');
<ide> assert.strictEqual(
<ide> typeof global.gc,
<del> 'function',
<del> 'Run this test ... | 1 |
PHP | PHP | add tests for set nest method | 3b1dd82603381c946e2a4e1a50a2bcd882c81bbb | <ide><path>lib/Cake/Test/Case/Utility/SetTest.php
<ide> public function testNormalizeArrays() {
<ide> $expected = array('one' => array('a', 'b', 'c' => 'cee'), 'two' => 2, 'three' => null);
<ide> $this->assertEquals($expected, $result);
<ide> }
<add>
<add> public function testNestModel() {
<add> $input = array(
<... | 2 |
Java | Java | use multisourcehelper in photoviewer | adea8d5fc928246ccf8ec5a8b1ccde159c2d6e09 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/MultiSourceHelper.java
<ide> private MultiSourceResult(
<ide> }
<ide> }
<ide>
<add> public static MultiSourceResult getBestSourceForSize(
<add> int width,
<add> int height,
<add> List<ImageSource> sources) {
<add> return getB... | 1 |
Python | Python | move complex umath tests in separate file | 42e7d63182cdff19b07d03e194137f890e59b1b1 | <ide><path>numpy/core/tests/test_umath.py
<ide> import numpy.core.umath as ncu
<ide> import numpy as np
<ide>
<del>def assert_equal_spec(x, y):
<del> # Handles nan and inf
<del> if np.isnan(x) and np.isnan(y):
<del> pass
<del> elif np.isinf(x) and np.isinf(y):
<del> if x * y > 0:
<del> ... | 2 |
Javascript | Javascript | improve createsecurecontext in _tls_common | f4d7abf3bc75eec0c2c52ab8c149a8eab564a603 | <ide><path>lib/_tls_common.js
<ide> exports.createSecureContext = function createSecureContext(options, context) {
<ide> secureOptions |= SSL_OP_CIPHER_SERVER_PREFERENCE;
<ide>
<ide> var c = new SecureContext(options.secureProtocol, secureOptions, context);
<add> var i;
<ide>
<ide> if (context) return c;
<id... | 1 |
Javascript | Javascript | add tests for layoutselector | b57e268329b9398b8ac3fdd859243ba6c79ee54e | <ide><path>client/utils/gatsby/layoutSelector.js
<ide> export default function layoutSelector({ element, props }) {
<ide> } = props;
<ide>
<ide> if (element.type === FourOhFourPage) {
<del> return <DefaultLayout pathname={pathname}>{element}</DefaultLayout>;
<add> return (
<add> <DefaultLayout pathname=... | 2 |
Javascript | Javascript | use createfillquadscene also in outlinepass | 1dfd109aee9980547382b121b5e3499e5933ccbc | <ide><path>examples/js/postprocessing/OutlinePass.js
<ide> THREE.OutlinePass = function ( resolution, scene, camera, selectedObjects ) {
<ide> this.oldClearColor = new THREE.Color();
<ide> this.oldClearAlpha = 1;
<ide>
<del> this.camera = new THREE.OrthographicCamera( - 1, 1, 1, - 1, 0, 1 );
<del> this.scene = new T... | 1 |
Go | Go | skip the import test on aarch64 | 6395b8b3dcc43be6750e0d90d9bab0a83e4eb20b | <ide><path>integration/image/import_test.go
<ide> import (
<ide> "bytes"
<ide> "context"
<ide> "io"
<add> "runtime"
<ide> "testing"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> import (
<ide>
<ide> // Ensure we don't regress on CVE-2017-14992.
<ide> func TestImportExtremelyLargeImageWorks(t *testing.T)... | 1 |
Go | Go | detect file changes to capability bits | 87ca750cdc3114a340af1c5bc9394cc5f6242677 | <ide><path>archive/changes.go
<ide> package archive
<ide>
<ide> import (
<add> "bytes"
<ide> "code.google.com/p/go/src/pkg/archive/tar"
<ide> "fmt"
<ide> "github.com/dotcloud/docker/utils"
<ide> func Changes(layers []string, rw string) ([]Change, error) {
<ide> }
<ide>
<ide> type FileInfo struct {
<del> parent *... | 1 |
Javascript | Javascript | add test coverage for texteditor autoheight | 9f8f03b10f3d42bab36b585473d766268ea8859d | <ide><path>spec/text-editor-component-spec.js
<ide> /** @babel */
<ide>
<ide> import {it, fit, ffit, fffit, beforeEach, afterEach, conditionPromise} from './async-spec-helpers'
<add>import Grim from 'grim'
<ide> import TextEditorElement from '../src/text-editor-element'
<ide> import _, {extend, flatten, last, toArray}... | 1 |
Text | Text | add another link to mdn for more in-depth info | c5639a010553d3d758fa39aa8861509724b1c998 | <ide><path>guide/english/css/colors/index.md
<ide> Above shows paragraphs styled bright orange and 20% transparent, h2 elements sal
<ide> To get custom colors to use in CSS, you might find a color picker helpful. Some text editors have built-in color pickers, like Visual Studio Code. If you search "color picker" on Goo... | 1 |
Python | Python | improve idempotency in mlenginehook.create_model | bfd425157a746402b516f8fc9e48f4ddccd794ce | <ide><path>airflow/providers/google/cloud/hooks/mlengine.py
<ide> def create_job(
<ide> hook = self.get_conn()
<ide>
<ide> self._append_label(job)
<del>
<add> self.log.info("Creating job.")
<ide> request = hook.projects().jobs().create( # pylint: disable=no-member
<ide> pare... | 2 |
Text | Text | improve link documentation | 85571af15750e5931172a41c5f6c91add88438f5 | <ide><path>docs/api-reference/next/link.md
<ide> const pids = ['id1', 'id2', 'id3']
<ide> }
<ide> ```
<ide>
<del>## Example with `React.forwardRef`
<add>## If the child is a custom component that wraps an `<a>` tag
<ide>
<del>If the child component in `Link` is a function component, you'll need to wrap it in [`React.... | 1 |
Javascript | Javascript | move getnativeprops usage inline | 0200946112310b320fb90d220c620cf6b83e3fa6 | <ide><path>src/renderers/dom/client/wrappers/ReactDOMInput.js
<ide> var ReactDOMInput = {
<ide> // Make sure we set .type before any other properties (setting .value
<ide> // before .type means .value is lost in IE11 and below)
<ide> type: undefined,
<del> }, props, {
<add> }, DisabledInputUtils... | 1 |
Text | Text | add missing commit and remove empty lines | f41bd7691d5edc9c45b16657379c75748d5f76b7 | <ide><path>CHANGELOG.md
<ide> content, which is a security risk.
<ide> - cope with `$onChanges` hooks throwing
<ide> ([3749c858](https://github.com/angular/angular.js/commit/3749c85829406ca57cc5729e80696c7f34134068),
<ide> [#14444](https://github.com/angular/angular.js/issues/14444), [#14463](https://github.com/... | 1 |
Text | Text | repair advanced feature reference | 6f16cef3e2f5bfff569e46ab4f5fde7e7060e0e6 | <ide><path>examples/with-google-analytics/README.md
<ide> # Example app with analytics
<ide>
<del>This example shows how to use [Next.js](https://github.com/zeit/next.js) along with [Google Analytics](https://developers.google.com/analytics/devguides/collection/gtagjs/). A custom [\_document](https://github.com/zeit/n... | 1 |
PHP | PHP | remove uneeded error suppression tag | 86171c80ccdb030f600653f1831141886858168a | <ide><path>src/basics.php
<ide> * @return mixed The same $var that was passed
<ide> * @link https://book.cakephp.org/3.0/en/development/debugging.html#basic-debugging
<ide> * @link https://book.cakephp.org/3.0/en/core-libraries/global-constants-and-functions.html#debug
<del> * @psalm-suppress Missing... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.