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 |
|---|---|---|---|---|---|
Ruby | Ruby | fix timezone test | 34929fed2254570941309a731a386de573e64b5a | <ide><path>activesupport/test/time_zone_test.rb
<ide> def test_utc_offset_lazy_loaded_from_tzinfo_when_not_passed_in_to_initialize
<ide> end
<ide>
<ide> def test_seconds_to_utc_offset_with_colon
<del> assert_equal "-06:00", TimeZone.seconds_to_utc_offset(-21_600)
<del> assert_equal "+00:00", TimeZone.seconds... | 1 |
Ruby | Ruby | assign developer_dir before it is needed | ca14962ab9a16ccd50a50fbbefe4c1486662bf9c | <ide><path>Library/Homebrew/superenv.rb
<ide> def setup_build_environment
<ide> check
<ide> ENV['CC'] = 'cc'
<ide> ENV['CXX'] = 'c++'
<add> ENV['DEVELOPER_DIR'] = determine_developer_dir # effects later settings
<ide> ENV['MAKEFLAGS'] ||= "-j#{determine_make_jobs}"
<ide> ENV['PATH'] = determine_p... | 1 |
Javascript | Javascript | update safari preload test | 6f4d46aa2addae90c2ba8c72afd4096ec08a5dd6 | <ide><path>test/integration/production/test/index.test.js
<ide> describe('Production Usage', () => {
<ide>
<ide> if (browserName === 'safari') {
<ide> const elements = await browser.elementsByCss('link[rel=preload]')
<del> // 4 page preloads and 5 existing preloads for _app, commons, main, etc
<de... | 1 |
Javascript | Javascript | add more http token/value checking tests | c8fa79f35128388496b42e41adcec486797f6122 | <ide><path>test/parallel/test-http-invalidheaderfield2.js
<add>'use strict';
<add>require('../common');
<add>const assert = require('assert');
<add>const inspect = require('util').inspect;
<add>const checkIsHttpToken = require('_http_common')._checkIsHttpToken;
<add>const checkInvalidHeaderChar = require('_http_common'... | 1 |
Javascript | Javascript | drop unused argument | 51a560a3cf5254eecc3f3b6466a1ac3205d17264 | <ide><path>packages/ember-htmlbars/lib/system/component-node.js
<ide> function ComponentNode(component, scope, renderNode, block, expectElement) {
<ide>
<ide> export default ComponentNode;
<ide>
<del>ComponentNode.create = function(renderNode, env, attrs, found, parentView, path, contentScope, contentTemplate, visito... | 1 |
Ruby | Ruby | memoize_ and unmemoize_all | 3fc9a67c04bade858e7ac7eb8cd94eec6a63ec27 | <ide><path>activesupport/lib/active_support/memoizable.rb
<ide> def self.included(base)
<ide> end
<ide>
<ide> def freeze_with_memoizable
<del> unless frozen?
<del> methods.each do |method|
<del> if method.to_s =~ /^_unmemoized_(.*)/
<del> begin
<del> _... | 2 |
Javascript | Javascript | replace .bind with .on when building event aliases | 5ba98fe32445dd58707949f64a599f6d4b0ee49b | <ide><path>src/event.js
<ide> jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
<ide> }
<ide>
<ide> return arguments.length > 0 ?
<del> this.bind( name, data, fn ) :
<add> this.on( name, null, data, fn ) :
<ide> this.trigger( name );
<ide> };
<ide> | 1 |
Python | Python | use backbone factory | f7783e7a32d2624d2876681d4a2f7589fedb9a01 | <ide><path>official/projects/detr/configs/detr.py
<ide> class Losses(hyperparams.Config):
<ide> lambda_box: float = 5.0
<ide> lambda_giou: float = 2.0
<ide> background_cls_weight: float = 0.1
<add> l2_weight_decay: float = 1e-4
<ide>
<ide> @dataclasses.dataclass
<ide> class Detr(hyperparams.Config):
<ide> class... | 3 |
PHP | PHP | add test for empty meridian select | 3176422baf9dd4560940a6cbc1861da9a5d9327d | <ide><path>tests/TestCase/View/Input/DateTimeTest.php
<ide> public function testRenderEmptyValues() {
<ide> 'hour' => ['empty' => 'HOUR'],
<ide> 'minute' => ['empty' => 'MINUTE'],
<ide> 'second' => ['empty' => 'SECOND'],
<add> 'meridian' => ['empty' => 'MERIDIAN'],
<ide> ]);
<ide> $this->assertContains('... | 1 |
Python | Python | send nodelocation objec in create_volume | 52bfed1676b4b92a1de8b03e7371ab0cefdd2b89 | <ide><path>libcloud/compute/drivers/digitalocean.py
<ide> def create_volume(self, size, name, filesystem_type=None, location=None,
<ide> :return: The newly created volume.
<ide> :rtype: :class:`StorageVolume`
<ide> """
<del> attr = {'name': name, 'size_gigabytes': size, 'region': location... | 1 |
PHP | PHP | add a function for clearing the detector cache | bc8d224cbed652b2e769f8aa8fab85dc4d82fd99 | <ide><path>src/Network/Request.php
<ide> class Request implements \ArrayAccess {
<ide> *
<ide> * @var array
<ide> */
<del> protected $_isResults = [];
<add> protected $_detectorCache = [];
<ide>
<ide> /**
<ide> * Copy of php://input. Since this stream can only be read once in most SAPI's
<ide> public function is($... | 2 |
Javascript | Javascript | fix execfile timeouts, improve tests | 6570cd99e51adb082d0e0076a1205cd867f4ce41 | <ide><path>lib/child_process.js
<ide> exports.execFile = function (file /* args, options, callback */) {
<ide> var stdout = "";
<ide> var stderr = "";
<ide> var killed = false;
<add> var exited = false;
<add>
<add> function exithandler (code, signal) {
<add> if (timeoutId) clearTimeout(timeoutId);
<add> i... | 2 |
Javascript | Javascript | add hascrypto to worker-cleanexit-with-moduleload | d6a32cfe7ca32b8382d195a1dee460d78f749562 | <ide><path>test/parallel/test-worker-cleanexit-with-moduleload.js
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide>
<ide> // Harden the thread interactions on the exit path.
<ide> // Ensure workers are able to bail out safe at
<ide> require('../common');
<ide> // preferrabl... | 1 |
Javascript | Javascript | fix typo in {{partial}} docs | 4cffb68da64abf56bbf34f6e3d5144a13b321287 | <ide><path>packages/ember-handlebars/lib/helpers/partial.js
<ide> require('ember-handlebars/ext');
<ide> {{partial user_info}}
<ide> {{/with}}
<ide> </script>
<add> ```
<ide>
<ide> The `data-template-name` attribute of a partial template
<ide> is prefixed with an underscore. | 1 |
Javascript | Javascript | replace var for (let|const) in utilities module | ca79fc5373f2fde4a3a3cfd86c34c3848df37a1a | <ide><path>lib/internal/util.js
<ide> function deprecate(fn, msg, code) {
<ide> if (code !== undefined && typeof code !== 'string')
<ide> throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'code', 'string');
<ide>
<del> var warned = false;
<add> let warned = false;
<ide> function deprecated(...args) {
<ide> ... | 2 |
Python | Python | adapt safe_eval for py3 ast module | ff26cec7eba491cf4cf48542b21f44932baf9572 | <ide><path>numpy/lib/utils.py
<ide> class SafeEval(object):
<ide>
<ide> """
<ide>
<del> def visit(self, node, **kw):
<del> cls = node.__class__
<del> meth = getattr(self,'visit'+cls.__name__,self.default)
<del> return meth(node, **kw)
<add> if sys.version_info[0] < 3:
<add> def v... | 1 |
PHP | PHP | move viewvars assignment after callbacks | 457dd73ed069125f4f8ff69fbb1c781f00592045 | <ide><path>lib/Cake/View/Helper/CacheHelper.php
<ide> protected function _writeFile($content, $timestamp, $useCallbacks = false) {
<ide> $controller->helpers = $this->helpers = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->helpers)) . '\'));
<ide> $controller->layout = $this->layout = \'... | 1 |
Text | Text | fix typo in assert.md | 7d9976237ae0567e5f19941a6fd590c3bc88d009 | <ide><path>doc/api/assert.md
<ide> assert.fail(1, 2, new TypeError('need array'));
<ide> // TypeError: need array
<ide> ```
<ide>
<del>*Note*: Is the last two cases `actual`, `expected`, and `operator` have no
<add>*Note*: In the last two cases `actual`, `expected`, and `operator` have no
<ide> influence on the error ... | 1 |
Javascript | Javascript | use correct abbreviations for months and weekdays | 0d5da35702747199ef0e32d4f671e836392466f1 | <ide><path>src/locale/nb.js
<ide> //! locale : Norwegian Bokmål [nb]
<ide> //! authors : Espen Hovlandsdal : https://github.com/rexxars
<ide> //! Sigurd Gartmann : https://github.com/sigurdga
<add>//! Stephen Ramthun : https://github.com/stephenramthun
<ide>
<ide> import moment from '../moment';
<i... | 4 |
Mixed | Text | add hooks to activejob around retries and discards | 26dc9bc8ee8639b1ad393f4f3f4fa3e1a397b70e | <ide><path>activejob/CHANGELOG.md
<add>* Added `enqueue_retry.active_job`, `retry_stopped.active_job`, and `discard.active_job` hooks.
<add>
<add> *steves*
<add>
<ide> * Allow `assert_performed_with` to be called without a block.
<ide>
<ide> *bogdanvlviv*
<ide><path>activejob/lib/active_job/exceptions.rb
<i... | 3 |
Text | Text | improve ios' running on device instructions | cdcd6204802f1be73288069af64d4c4801c3af37 | <ide><path>docs/RunningOnDevice.md
<ide> Installing an app on an iOS device requires a Mac, an Apple ID, and a USB cable.
<ide>
<ide> <block class="mac ios" />
<ide>
<del>Connect your device to your Mac via USB, then open Xcode. In the project navigator, choose your device from the Product > Destination toolbar menu.... | 1 |
Javascript | Javascript | add unit tests | 3f0b6bbca7406738e304cc404278f98f2d236b8c | <ide><path>test/moment/is_valid.js
<ide> exports.is_valid = {
<ide> test.equal(moment([2000, 1, 29, 23, 59, 59, 1000]).invalidAt(), 6, '1000 is invalid millisecond');
<ide> test.equal(moment([2000, 1, 29, 23, 59, 59, 999]).invalidAt(), -1, '-1 if everything is fine');
<ide> test.done();
<del> ... | 1 |
Text | Text | fix changelog indent [ci skip] | caf2390aee4ea0f097a219ee414d705dda63cc33 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> * Added ActiveRecord::QueryMethods#rewhere which will overwrite an existing, named where condition.
<ide>
<del> Examples:
<del>
<del> Post.where(trashed: true).where(trashed: false) #=> WHERE `trashed` = 1 AND `trashed` = 0
<del> Post.... | 1 |
Text | Text | use systemd drop-ins instead of copying | 2d51d71561565987fc6a600234f2e2d15e0ecf31 | <ide><path>docs/sources/articles/systemd.md
<ide> This example overrides the default `docker.service` file.
<ide> If you are behind a HTTP proxy server, for example in corporate settings,
<ide> you will need to add this configuration in the Docker systemd service file.
<ide>
<del>Copy file `/usr/lib/systemd/system/doc... | 1 |
Javascript | Javascript | improve test case | 23728e10bd23fed8bcecaf56ff5a5c030d86dfc0 | <ide><path>test/WatchSuspend.test.js
<ide> describe("WatchSuspend", () => {
<ide> watching.resume();
<ide> });
<ide>
<del> it("should not ignore changes during resumed compilation", async () => {
<del> // aggregateTimeout must be long enough for this test
<del> // So set-up new watcher and wait when initial... | 1 |
Javascript | Javascript | make compilation.chunks a set | 7a43a27eda7ac7c3f6f64abe7b477db7dd8c8e09 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide>
<ide> /** @type {SyncHook} */
<ide> beforeChunks: new SyncHook([]),
<del> /** @type {SyncHook<Chunk[]>} */
<add> /** @type {SyncHook<Iterable<Chunk>>} */
<ide> afterChunks: new SyncHook(["chunks"]),
<ide>
<ide> /** @type {SyncBailHook<Itera... | 14 |
Go | Go | initialize the daemon pidfile early | 848e837698922fed0fa67930aa0b56a96b1b832d | <ide><path>builtins/builtins.go
<ide> func remote(eng *engine.Engine) error {
<ide> // These components should be broken off into plugins of their own.
<ide> //
<ide> func daemon(eng *engine.Engine) error {
<add> if err := eng.Register("initserverpidfile", server.InitPidfile); err != nil {
<add> return err
<add> }
<id... | 3 |
PHP | PHP | fix validation with multiple passes() calls | 0e52e470933b02163519ce96fce15711ba164ae1 | <ide><path>src/Illuminate/Validation/Validator.php
<ide> public function passes()
<ide>
<ide> $this->distinctValues = [];
<ide>
<add> $this->failedRules = [];
<add>
<ide> // We'll spin through each rule, validating the attributes attached to that
<ide> // rule. Any error messages will b... | 2 |
Ruby | Ruby | fix word case | dbccaff23e605a3ab0bacb2433cc6f7567405fda | <ide><path>activesupport/lib/active_support/testing/isolation.rb
<ide> def run_in_isolation(&blk)
<ide> module Subprocess
<ide> ORIG_ARGV = ARGV.dup unless defined?(ORIG_ARGV)
<ide>
<del> # Complicated H4X to get this working in windows / jruby with
<add> # Complicated H4X to get this worki... | 1 |
Python | Python | add shuffle to dataset records | 733a752dc9b0a1203b40c451c8f42136efe5b2d8 | <ide><path>official/transformer/v2/data_pipeline.py
<ide> def _read_and_batch_from_files(
<ide>
<ide> # Remove examples where the input or target length exceeds the maximum length,
<ide> dataset = dataset.filter(lambda x, y: _filter_max_length((x, y), max_length))
<del>
<add>
<add> if shuffle:
<add> dataset ... | 1 |
Javascript | Javascript | increase time for db connect in production | 877c69255be4264d127cd5d51707126db4532c02 | <ide><path>server/production-start.js
<ide> var timeoutHandler = setTimeout(function() {
<ide> // purposely shutdown server
<ide> // pm2 should restart this in production
<ide> throw new Error(message);
<del>}, 5000);
<add>}, 15000);
<ide>
<ide> app.dataSources.db.on('connected', onConnect); | 1 |
Text | Text | add changelog entry for & | 71a83a9cfde71293abcebd98e874f317aa83160e | <ide><path>railties/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Improved `rake routes` output for redirects *Łukasz Strzałkowski & Andrew White*
<add>
<ide> * Load all environments available in `config.paths["config/environments"]`. *Piotr Sarnacki*
<ide>
<ide> * The application generator gen... | 1 |
Javascript | Javascript | add missing closing parentheses in code example | b1366c32d4742acd66ebc6ed1e3cb3954c50b558 | <ide><path>src/ng/q.js
<ide> * // Propagate promise resolution to 'then' functions using $apply().
<ide> * $rootScope.$apply();
<ide> * expect(resolvedValue).toEqual(123);
<del> * });
<add> * }));
<ide> * </pre>
<ide> */
<ide> function $QProvider() { | 1 |
Text | Text | add changelog entry for | c8e92f174d9190fe4cb38199bc2e59d62ace0003 | <ide><path>activerecord/CHANGELOG.md
<add>* Raise `ActiveRecord::InvalidForeignKey` when a foreign key constraint fails on Sqlite3.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Add the touch option to ActiveRecord#increment! and decrement!
<ide>
<ide> *Hiroaki Izu* | 1 |
Text | Text | prettify docs for next script | 650ebed77e9f08f1a459bbfe30593bd4f1c87865 | <ide><path>docs/basic-features/script.md
<ide> Previously, you needed to define `script` tags inside the `Head` of your Next.js
<ide> // pages/index.js
<ide> import Head from 'next/head'
<ide>
<del>function Home() {
<add>export default function Home() {
<ide> return (
<ide> <>
<ide> <Head>
<ide> With `next... | 1 |
Text | Text | fix image urls | 21cfe11edbe9ae70d8b5a7b9268e3bd48941a17e | <ide><path>docs/russian/how-to-catch-outgoing-emails-locally.md
<ide> mailhog
<ide>
<ide> Теперь вы должны увидеть экран, как показано ниже:
<ide>
<del>
<add>
<ide>
<ide> Когда ваша freeCodeCamp сборка отправит электронное... | 1 |
Text | Text | unify pg spelling in changelogs. [ci skip] | fda7bc36e2df0d2ff20d770150cfe775b2ac8c22 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> *Kenn Ejima*
<ide>
<del>* Add support for Postgresql JSONB.
<add>* Add support for PostgreSQL JSONB.
<ide>
<ide> Example:
<ide> | 1 |
Text | Text | use less specfic language in ultajson notes | 128bda5712ef041514c5e2feadef0ad248f33f54 | <ide><path>docs/api-guide/renderers.md
<ide> Comma-separated values are a plain-text tabular data format, that can be easily
<ide>
<ide> ## UltraJSON
<ide>
<del>[UltraJSON][ultrajson] is a blazing-fast C JSON encoder which can give 2-10x performance increases on typical workloads. [Jacob Haslehurst][hzy] maintains th... | 1 |
Ruby | Ruby | reuse path formatter from the non-optimized path | 4d1b3a13129eb7d5fdb1564706acbcd25a5ffa9b | <ide><path>actionpack/lib/action_dispatch/journey/route.rb
<ide> def format(path_options)
<ide> @path_formatter.evaluate path_options
<ide> end
<ide>
<del> def optimized_path
<del> Visitors::OptimizedPath.new.accept(path.spec)
<del> end
<del>
<ide> def optional_parts
<ide> ... | 3 |
Python | Python | add portuguese stopwords | 63024466a95293ad96b7c981a7a6a9fc3ade73c4 | <ide><path>spacy/pt/language_data.py
<ide> def strings_to_exc(orths):
<ide> }
<ide>
<ide> STOP_WORDS = set("""
<add>à às acerca adeus agora ainda algmas algo algumas alguns ali além ambos ano
<add>anos antes ao aos apenas apoio apontar após aquela aquelas aquele aqueles aqui
<add>aquilo area área as assim através atrá... | 1 |
Go | Go | move daemon check back centrally | 62a75fca689d235276a6aeaa91a5230de522a3f1 | <ide><path>daemon/daemon.go
<ide> var (
<ide> validContainerNameChars = `[a-zA-Z0-9][a-zA-Z0-9_.-]`
<ide> validContainerNamePattern = regexp.MustCompile(`^/?` + validContainerNameChars + `+$`)
<ide>
<del> // TODO Windows. Change this once daemon is up and running.
<del> ErrSystemNotSupported = errors.New("The Dock... | 3 |
PHP | PHP | fix bug with has events | c5a62901589e313474376e241549ac31d9d3c695 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
<ide> protected function fireModelEvent($event, $halt = true)
<ide>
<ide> $result = $this->fireCustomModelEvent($event, $method);
<ide>
<del> return ! is_null($result) ? $result : static::$dispatcher->{$method}(
<add> if ($result... | 1 |
Text | Text | add section about updating specs | 6520587ba82163c15cf06784452ce474de81ad4d | <ide><path>docs/upgrading/upgrading-your-package.md
<ide> class CommandPaletteView extends SelectListView
<ide> * And check out the [conversion of CommandPaletteView][selectlistview-example] as a real-world example.
<ide> * See the [SelectListView docs][SelectListView] for all options.
<ide>
<del>## Specs
<add>## Upda... | 1 |
Python | Python | convert linode create_node to options | b8cb63093b22e6bd2863ca0b8032f5aa83a7d3a5 | <ide><path>libcloud/drivers/linode.py
<ide> def destroy_node(self, node):
<ide> self.connection.request(LINODE_ROOT, params=params)
<ide> return True
<ide>
<del> def create_node(self, name, image, size, **kwargs):
<add> def create_node(self, options, **kwargs):
<ide> # Create
<ide> ... | 1 |
Text | Text | add notes for react native monthly #5 | 3c5a55ddc21197cfa013dc6222e398138759b5d3 | <ide><path>blog/2017-11-06-react-native-monthly-5.md
<add>---
<add>title: React Native Monthly #5
<add>author: Tomislav Tenodi
<add>authorTitle: Founder at Speck
<add>authorURL: https://github.com/tenodi
<add>authorImage: https://pbs.twimg.com/profile_images/877237660225609729/bKFDwfAq.jpg
<add>authorTwitter: TomislavT... | 1 |
Text | Text | add v3.3.2 to changelog | 26bf0d2b1a163ed7afe995dd6d318b75e8c96397 | <ide><path>CHANGELOG.md
<ide> - [#16794](https://github.com/emberjs/ember.js/pull/16794) [BUGFIX] Fix instance-initializer-test blueprint for new QUnit testing API ([emberjs/rfcs#232](https://github.com/emberjs/rfcs/pull/232))
<ide> - [#16797](https://github.com/emberjs/ember.js/pull/16797) [BUGFIX] Drop autorun assert... | 1 |
Text | Text | fix typo in 'creating package' docs | f942bafe549905f9b83348822f0ffd864377bf2d | <ide><path>docs/creating-a-package.md
<ide> _snippets_ directory are added alphabetically.
<ide> trigger your package's activation. You can delay the loading of your package
<ide> until one of these events is triggered.
<ide> - `providedServices` (**Optional**): an Object describing the services that your
<del>packages... | 1 |
Text | Text | add note on endpointinfo semantics | 991f50a10c5be2ca1355beb5100353ce89264032 | <ide><path>libnetwork/docs/design.md
<ide> Drivers are essentially an extension of libnetwork and provides the actual imple
<ide> * `driver.Join`
<ide> * `driver.Leave`
<ide>
<del>These Driver facing APIs makes use of unique identifiers (`networkid`,`endpointid`,...) instead of names (as seen in user-facing APIs).
<... | 1 |
PHP | PHP | add configure values for debugger | 3226ef889596e680e3b78be5094b24df441ea406 | <ide><path>src/Error/Debugger.php
<ide> */
<ide> namespace Cake\Error;
<ide>
<add>use Cake\Core\Configure;
<ide> use Cake\Core\InstanceConfigTrait;
<ide> use Cake\Error\Debug\ArrayItemNode;
<ide> use Cake\Error\Debug\ArrayNode;
<ide> class Debugger
<ide> public function __construct()
<ide> {
<ide> $do... | 3 |
Javascript | Javascript | fix compiler test for ie9 | f9f0905f4ad7b1d0bb9b606a6d25fb1f88354a78 | <ide><path>test/CompilerSpec.js
<ide> describe('compiler', function(){
<ide> compiler.compile('<div>A</div><span></span>');
<ide> }).toThrow("Cannot compile multiple element roots: " + ie("<div>A</div><span></span>"));
<ide> function ie(text) {
<del> return msie ? uppercase(text) : text;
<add> r... | 1 |
Javascript | Javascript | fix lint issues | 0f07ddedca5910fa64c0508549003973112b378d | <ide><path>test/cases/chunks/runtime/index.js
<add>/* globals it */
<ide> it("should handle duplicate chunks", function(done) {
<ide> var firstOne = false, secondOne = false;
<ide> require.ensure([], function(require) {
<ide> it("should not load a chunk which is included in a already loaded one", function
<ide> try... | 1 |
Text | Text | fix some formatting | 47d95c8c3cf48005a91c5fa258ca792e70391069 | <ide><path>guides/source/migrations.md
<ide> no such migrations, it exits. It will run these migrations in order based
<ide> on the date of the migration.
<ide>
<ide> Note that running the `db:migrate` also invokes the `db:schema:dump` task, which
<del>will update your db/schema.rb file to match the structure of your ... | 1 |
Ruby | Ruby | fix broken cache tests | b784900208c0ea4343a75fa1cefdb1872fa14f7b | <ide><path>activesupport/lib/active_support/cache.rb
<ide> def size
<ide> when NilClass
<ide> 0
<ide> when String
<del> value.bytesize
<add> @v.bytesize
<ide> else
<del> @s = Marshal.dump(value).bytesize
<add> @s = Marshal.dump(@v).by... | 2 |
Javascript | Javascript | add parserhelpers.expressionisunsupported method | 086bd9db7949b9f4d40e8418de1bd5414c24b3bc | <ide><path>lib/ParserHelpers.js
<ide> "use strict";
<ide> const BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<ide> const ConstDependency = require("./dependencies/ConstDependency");
<add>const UnsupportedFeatureWarning = require("./UnsupportedFeatureWarning");
<ide>
<ide> const ParserHelpers = exp... | 1 |
PHP | PHP | add queue prefix value | d771ee6c8aaf66f8e3bf549310d0c86f15332106 | <ide><path>config/queue.php
<ide>
<ide> 'default' => env('QUEUE_DRIVER', 'sync'),
<ide>
<add> /*
<add> |--------------------------------------------------------------------------
<add> | Queue Prefix
<add> |--------------------------------------------------------------------------
<add> |
<add> ... | 1 |
Javascript | Javascript | address some comments | b34ed237cf374d534b8ee6113ff2395778436559 | <ide><path>lib/wasm/WasmFinalizeExportsPlugin.js
<ide> */
<ide> "use strict";
<ide>
<del>const Queue = require("../util/Queue");
<del>const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDependency");
<ide> const UnsupportedWebAssemblyFeatureError = require("../wasm/UnsupportedWebAssemblyFeat... | 2 |
PHP | PHP | add tests for sql server computed support | 5138a5ccce405751988934eacc627bb4f3cc7bed | <ide><path>tests/Database/DatabaseSqlServerSchemaGrammarTest.php
<ide> public function testAddingMultiPolygon()
<ide> $this->assertEquals('alter table "geo" add "coordinates" geography not null', $statements[0]);
<ide> }
<ide>
<add> public function testAddingGeneratedColumn()
<add> {
<add> $bl... | 1 |
Python | Python | try a patch for issue | fdd22cfb94e0686b35b9cdccf3914679323ff134 | <ide><path>glances/plugins/glances_batpercent.py
<ide> psutil_tag = True
<ide> try:
<ide> psutil.sensors_battery()
<del>except AttributeError:
<add>except (OSError, AttributeError) as e:
<ide> logger.debug("Cannot grab battery status. Platform not supported.")
<add> logger.error(e)
<ide> psutil_tag = Fal... | 1 |
Ruby | Ruby | follow dry principle and remove duplication | 9a57e7f9bb50ef3d4090d75354c254906d4905b7 | <ide><path>actionview/lib/action_view/routing_url_for.rb
<ide> def url_for(options = nil)
<ide> when Hash
<ide> options = options.symbolize_keys
<ide> unless options.key?(:only_path)
<del> if options[:host].nil?
<del> options[:only_path] = _generate_paths_by_default
<del> ... | 1 |
Text | Text | improve spanish translate | fbf3e83248c74d6f6d6311ee0f423533ef8b9892 | <ide><path>guide/spanish/git/git-bisect/index.md
<ide> localeTitle: Git Bisect
<ide> ---
<ide> ## Git Bisect
<ide>
<del>El comando `git bisect` ayuda a encontrar confirmaciones que agregaron cambios específicos en su proyecto. Esto es particularmente útil si necesita encontrar qué cambio introdujo un error.
<add>El co... | 1 |
Ruby | Ruby | store the old logger before calling super | 9a1ab6674477642b72cc1760bb7dd69c9a5d6705 | <ide><path>actionview/test/activerecord/controller_runtime_test.rb
<ide> def db_after_render
<ide> tests LogSubscriberController
<ide>
<ide> def setup
<del> super
<ide> @old_logger = ActionController::Base.logger
<add> super
<ide> ActionController::LogSubscriber.attach_to :action_controller
<ide> e... | 1 |
Java | Java | introduce execute(datasource) in resrcdbpopulator | 5d049e0de898a12386282fa4f8df7ca1454923e9 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
<ide>
<ide> package org.springframework.jdbc.datasource.init;
<ide>
<add>
<ide> import java.sql.Connection;
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<ide> import java.util.List;
<ide>
... | 4 |
Python | Python | update decoder_vocab_size when resizing embeds | 1471857f131eeead2c9ae9673997fe45c02c56a5 | <ide><path>src/transformers/models/marian/modeling_marian.py
<ide> def __init__(self, config: MarianConfig):
<ide> super().__init__(config)
<ide> self.model = MarianModel(config)
<ide>
<del> self.target_vocab_size = (
<del> config.vocab_size if config.share_encoder_decoder_embeddings ... | 1 |
Javascript | Javascript | use inspector utils | 5c546e1f3c12a12e968b95ed33f1844b137e8662 | <ide><path>lib/internal/cluster/primary.js
<ide> const {
<ide> ArrayPrototypeSome,
<ide> ObjectKeys,
<ide> ObjectValues,
<del> RegExpPrototypeExec,
<ide> SafeMap,
<ide> StringPrototypeStartsWith,
<ide> } = primordials;
<add>const {
<add> codes: {
<add> ERR_SOCKET_BAD_PORT,
<add> }
<add>} = require('inte... | 2 |
PHP | PHP | fix orm_cache tool when metadata cache is disabled | 5d60a0803711be0943cc9b6567260409ea95fda8 | <ide><path>src/Shell/OrmCacheShell.php
<ide> public function build($name = null) {
<ide> if (!$schema) {
<ide> return false;
<ide> }
<del> if (!$schema->cacheMetadata()) {
<del> $this->_io->verbose('Metadata cache was disabled in config. Enabling to write cache.');
<del> $schema->cacheMetadata(true);
<del> ... | 2 |
Ruby | Ruby | drop pointless use of cannotinstallformulaerror | 8c6efd8993215dfa8ae73041300d4d538dcb09b3 | <ide><path>Library/Homebrew/cmd/install.rb
<ide> def install
<ide> ARGV.formulae.each do |f|
<ide> # Building head-only without --HEAD is an error
<ide> if not ARGV.build_head? and f.stable.nil?
<del> raise CannotInstallFormulaError, <<-EOS.undent
<add> raise <<-EOS.undent
<ide> ... | 1 |
Javascript | Javascript | add draft for euler3.clamp() | 4ff095945027b61090b7980d83fb2e559e3c99dd | <ide><path>src/math/Euler3.js
<ide> THREE.Euler3.prototype = {
<ide>
<ide> },
<ide>
<add> clamp: function() {
<add>
<add> // todo
<add>
<add> },
<add>
<ide> reorder: function( newOrder ) {
<ide>
<ide> // todo.
<ide> THREE.Euler3.prototype = {
<ide> alternativeSolution: function() {
<ide>
<ide> // todo.
<d... | 1 |
Javascript | Javascript | lower the priority of the notification bar to info | e015ab0d81fe23a647445c4f33ecc95b251c582c | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> ChromeActions.prototype = {
<ide> }
<ide> }];
<ide> notificationBox.appendNotification(message, 'pdfjs-fallback', null,
<del> notificationBox.PRIORITY_WARNING_LOW,
<add> ... | 1 |
Javascript | Javascript | remove deprecation warnings in net module | 251d03197f05cc17ea35f811803f9acbfb30d016 | <ide><path>lib/net.js
<ide> Stream.prototype.resume = function () {
<ide> };
<ide>
<ide>
<del>var forceCloseWarning;
<del>
<del>Stream.prototype.forceClose = function (e) {
<del> if (!forceCloseWarning) {
<del> forceCloseWarning = "forceClose() has been renamed to destroy()";
<del> sys.error(forceCloseWarning)... | 2 |
PHP | PHP | fix small typo in comments | e4c9bdb8e3761584c0899661a7667784831467f9 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function previous()
<ide> }
<ide>
<ide> /**
<del> * Generate a absolute URL to the given path.
<add> * Generate an absolute URL to the given path.
<ide> *
<ide> * @param string $path
<ide> * @param mixed $extra | 1 |
Python | Python | fix flaky test | d864512631668fbfb75fe7a454c85577cfbe3278 | <ide><path>tests/keras/backend/test_backends.py
<ide> def test_conv2d(self):
<ide>
<ide> kernel_val = np.random.random(kernel_shape) - 0.5
<ide>
<del> kernel_th = KTH.variable(convert_kernel(kernel_val))
<add> kernel_th = KTH.variable(convert_kernel(kernel_val, dim_orderi... | 1 |
Javascript | Javascript | remove duplicate _undestroy | 855ca736de018f05bb55e2e9489f058a3b9e57fa | <ide><path>lib/net.js
<ide> Socket.prototype.connect = function(...args) {
<ide> this.write = Socket.prototype.write;
<ide>
<ide> if (this.destroyed) {
<del> this._undestroy();
<ide> this._handle = null;
<ide> this._peername = null;
<ide> this._sockname = null; | 1 |
Go | Go | adjust corner case for reconnect logic | 500d9f45155a74ea2c2067d85a78977cc7b8c06d | <ide><path>libnetwork/networkdb/cluster.go
<ide> func (nDB *NetworkDB) rejoinClusterBootStrap() {
<ide> return
<ide> }
<ide>
<add> myself, _ := nDB.nodes[nDB.config.NodeID]
<ide> bootStrapIPs := make([]string, 0, len(nDB.bootStrapIP))
<ide> for _, bootIP := range nDB.bootStrapIP {
<del> for _, node := range nDB.... | 3 |
Java | Java | add missing @since tag | 9798912557aa9e21885f471efabd2b793ac95735 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompSession.java
<ide> public interface StompSession {
<ide> * "client-individual" in order ot use this.
<ide> * @param messageId the id of the message
<ide> * @param consumed whether the message was consumed or not
<del> * @retu... | 1 |
Text | Text | add release note for [ci skip] | 0613dd0234770ecd66e5f64dfb57aae6d19e9771 | <ide><path>guides/source/4_2_release_notes.md
<ide> Please refer to the [Changelog][railties] for detailed changes.
<ide> * Deprecated `Rails::Rack::LogTailer` without replacement.
<ide> ([Commit](https://github.com/rails/rails/commit/84a13e019e93efaa8994b3f8303d635a7702dbce))
<ide>
<add>* Deprecated missing `... | 1 |
Javascript | Javascript | change wording in lib/domain.js comment | e0eb515afc7fdec8d4cc8a90448653b08bd1edb4 | <ide><path>lib/domain.js
<ide> Domain.prototype.add = function(ee) {
<ide> ee.domain.remove(ee);
<ide>
<ide> // Check for circular Domain->Domain links.
<del> // This causes bad insanity!
<add> // They cause big issues.
<ide> //
<ide> // For example:
<ide> // var d = domain.create(); | 1 |
Java | Java | update copyright year of changed file | 8a7a046bf0073e73e85eab4856a7915fc9d46e40 | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java
<ide> /*
<del> * Copyright 2002-2018 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> * y... | 1 |
PHP | PHP | apply fixes from styleci | 3a513ad935e95fc45179adca6c8edf5b745a1493 | <ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php
<ide> public function toMail($notifiable)
<ide> } else {
<ide> $url = url(config('app.url').route('password.reset', [
<ide> 'token' => $this->token,
<del> 'email' => $notifiable->getEmailForPasswordReset()
... | 1 |
Text | Text | emphasize collaborators in governance.md | b830c976b56a4b9601ffa03980511512ac8ae8e1 | <ide><path>GOVERNANCE.md
<ide> # Node.js Project Governance
<ide>
<del>## Core Technical Committee
<del>
<del>The Node.js project is governed by a Core Technical Committee (CTC) which is
<del>responsible for high-level guidance of the project.
<del>
<del>The CTC has final authority over this project including:
<del>
<... | 1 |
Text | Text | replace 'onoe' with 'odie' | f239a448b2750a2f4df5cf7dd7a0df918b130f17 | <ide><path>share/doc/homebrew/Formula-Cookbook.md
<ide> Three commands are provided for displaying informational messages to the user:
<ide> * `opoo` for warning messages
<ide> * `odie` for error messages and immediately exiting
<ide>
<del>In particular, when a test needs to be performed before installation use `o... | 1 |
Python | Python | drop python 3.7 from setup.py | 9a176d0f9e758ccc825669515970f5d7d8d3393a | <ide><path>setup.py
<ide>
<ide> # Python supported version checks. Keep right after stdlib imports to ensure we
<ide> # get a sensible error for older Python versions
<add># This needs to be changed to 3.8 for 1.22 release, but 3.7 is needed for LGTM.
<ide> if sys.version_info[:2] < (3, 7):
<del> raise RuntimeError... | 1 |
Go | Go | make daemonbuilder.docker leaner | 14215ed5a1900a88a3b17dd7cd566def50bfcbc9 | <ide><path>api/client/build.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> cmd.ParseFlags(args, true)
<ide>
<ide> var (
<del> context io.ReadCloser
<del> isRemote bool
<del> err error
<add> context io.ReadCloser
<add> err error
<ide> )
<ide>
<ide> _, err = exec.LookPath("git"... | 6 |
PHP | PHP | fix some failing tests | 2c5f2510399c366462d18a944387d0e578df8bc0 | <ide><path>lib/Cake/Test/TestCase/Routing/DispatcherTest.php
<ide> public function testDispatchActionReturnsResponse() {
<ide> * @return void
<ide> */
<ide> public function testAdminDispatch() {
<del> $_POST = array();
<ide> $Dispatcher = new TestDispatcher();
<ide> Configure::write('Routing.prefixes', array('a... | 1 |
PHP | PHP | fix error message | 6662f49fe83d0898cddb8d1beee5c1a507a92514 | <ide><path>src/Illuminate/Foundation/Console/VendorPublishCommand.php
<ide> protected function publishTag($tag)
<ide> }
<ide>
<ide> if ($published === false) {
<del> $this->error('Unable to locate publishable resources.');
<add> $this->comment('No publishable resources for tag ['.... | 1 |
Javascript | Javascript | use descriptive names for regression tests | 90b05382734aca10b51b187eb955a964cbcaed74 | <add><path>test/parallel/test-crypto-tostring-segfault.js
<del><path>test/parallel/test-regress-GH-9819.js
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<add>// This test ensures that node doesn't SEGFAULT when either of
<add>// `crypto.createHash`... | 5 |
Python | Python | change topkcat to call sparsetopkcat | ccc9357778bf3ee6d1ae7c7b77e744586a4401d8 | <ide><path>keras/metrics/metrics.py
<ide> def top_k_categorical_accuracy(y_true, y_pred, k=5):
<ide> Returns:
<ide> Top K categorical accuracy value.
<ide> """
<del> return tf.cast(
<del> tf.math.in_top_k(
<del> predictions=y_pred, targets=tf.math.argmax(y_true, axis=-1), k=k),
<del> dtype=b... | 1 |
Java | Java | avoid use of double constructor of bigdecimal | 3f97ab183e08ee0001ee98b9614770dad8d29155 | <ide><path>spring-jdbc/src/test/java/org/springframework/jdbc/core/JdbcTemplateQueryTests.java
<ide> /*
<del> * Copyright 2002-2015 the original author or authors.
<add> * Copyright 2002-2016 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you m... | 1 |
Python | Python | replace deprecated options for ifort | 713147a1c1bddfa4124f8e7396348e66c4dcbb67 | <ide><path>numpy/distutils/fcompiler/intel.py
<ide> def update_executables(self):
<ide> module_include_switch = '/I'
<ide>
<ide> def get_flags(self):
<del> opt = ['/nologo', '/MD', '/nbs', '/Qlowercase', '/us']
<add> opt = ['/nologo', '/MD', '/nbs', '/names:lowercase', '/assume:underscore']
<ide>... | 1 |
PHP | PHP | add timestamps column to migration stub | a0ac97b8a770f7768e0545f770dfe2b65015794f | <ide><path>src/Illuminate/Database/Migrations/stubs/create.php
<ide> public function up()
<ide> Schema::create('{{table}}', function(Blueprint $table)
<ide> {
<ide> $table->increments('id');
<add> $table->timestamps();
<ide> });
<ide> }
<ide>
<ide> public function down()
<ide> Schema::drop('{{table}}');
... | 1 |
Python | Python | add tests for dictionary interface to npzfile | a3a99e2f84e36ef876094494464e6bcecb7ee0ab | <ide><path>numpy/lib/tests/test_io.py
<ide> def test_gzip_loadtxt_from_string():
<ide> f = gzip.GzipFile(fileobj=s, mode="r")
<ide> assert_array_equal(np.loadtxt(f), [1, 2, 3])
<ide>
<add>def test_npzfile_dict():
<add> s = StringIO.StringIO()
<add> x = np.zeros((3, 3))
<add> y = np.zeros((3, 3))
<add>... | 1 |
Mixed | Python | fix issues with dvc commands | 858565a5671de61334443d6a2348164bc39216e1 | <ide><path>spacy/cli/project/dvc.py
<ide> def project_update_dvc_cli(
<ide> project_dir: Path = Arg(Path.cwd(), help="Location of project directory. Defaults to current working directory.", exists=True, file_okay=False),
<ide> workflow: Optional[str] = Arg(None, help=f"Name of workflow defined in {PROJECT_FILE}... | 2 |
Javascript | Javascript | update component names | 6c41dd2b7cd3f314f3db3197cf18dbf52df69027 | <ide><path>client/src/pages/donate-other.js
<ide> const paypalOneTimeDonation = {
<ide> defaultValue: 'Make a one-time donation'
<ide> };
<ide>
<del>class IndexPage extends Component {
<add>class DonateOtherPage extends Component {
<ide>
<ide> renderForm(item) {
<ide> return (
<ide> class IndexPage extends Co... | 2 |
Ruby | Ruby | set the destination_root for plugins | 1a566c87cb75b22be28917b0dd24fd7112d3235d | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def initialize(*args)
<ide> end
<ide> end
<ide>
<add> public_task :set_default_accessors!
<ide> public_task :create_root
<ide>
<ide> def create_root_files | 1 |
Mixed | Python | add init cli and init config | 4c055f0aa703974ff3d14fb4ea5966c226013a1d | <ide><path>spacy/cli/__init__.py
<ide> from .evaluate import evaluate # noqa: F401
<ide> from .convert import convert # noqa: F401
<ide> from .init_model import init_model # noqa: F401
<add>from .init_config import init_config # noqa: F401
<ide> from .validate import validate # noqa: F401
<ide> from .project.clone... | 12 |
Text | Text | add active record encryption to changelog | 224c9b34cb4fdc6989707f6e18e0a156e0864257 | <ide><path>activerecord/CHANGELOG.md
<add>* Add attribute encryption support.
<add>
<add> Encrypted attributes are declared at the model level. These
<add> are regular Active Record attributes backed by a column with
<add> the same name. The system will transparently encrypt these
<add> attributes before ... | 1 |
Javascript | Javascript | avoid pause with unpipe in buffered write | 68990948fe473262ec5f7d0b06112835ffd613aa | <ide><path>lib/_stream_readable.js
<ide> Readable.prototype.pipe = function(dest, pipeOpts) {
<ide> var ondrain = pipeOnDrain(src);
<ide> dest.on('drain', ondrain);
<ide>
<add> var cleanedUp = false;
<ide> function cleanup() {
<ide> debug('cleanup');
<ide> // cleanup event handlers once the pipe is brok... | 2 |
PHP | PHP | fix cs error | e2b79fd063bc5accb44d9d37bf591cdc1475cd5d | <ide><path>src/Controller/Controller.php
<ide> use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use Cake\Routing\Router;
<ide> use Cake\View\ViewVarsTrait;
<del>use LogicException;
<ide> use ReflectionClass;
<ide> use ReflectionException;
<ide> use ReflectionMethod;
<ide><path>src/Datasource/ModelAwareTrait.php
<ide> name... | 3 |
PHP | PHP | make optimizecommand compile views | 27d42308ed3c370b943b7c9db27dd4f4eaf685a6 | <ide><path>src/Illuminate/Foundation/Console/OptimizeCommand.php
<ide>
<ide> use Illuminate\Console\Command;
<ide> use Illuminate\Foundation\Composer;
<add>use Illuminate\View\Engines\CompilerEngine;
<ide> use ClassPreloader\Command\PreCompileCommand;
<ide> use Symfony\Component\Console\Input\InputOption;
<ide>
<ide>... | 2 |
Javascript | Javascript | improve $formatters and $parsers info | 43cf54c3a2473af3a26675d99459a6399d873d94 | <ide><path>src/ng/directive/ngModel.js
<ide> var ngModelMinErr = minErr('ngModel');
<ide> * @property {*} $viewValue The actual value from the control's view. For `input` elements, this is a
<ide> * String. See {@link ngModel.NgModelController#$setViewValue} for information about when the $viewValue
<ide> * is set.
... | 1 |
Javascript | Javascript | add test for beforesend listener | 8e8fcbe6eb4bc188ca01aa8446141f60a07f6a0f | <ide><path>test/XMLHttpRequest.js
<ide> global.XMLHttpRequest = function XMLHttpRequest() {
<ide>
<ide> // TODO handle file system errors?
<ide>
<add>self.readyState = 0;
<add>
<ide> self.open = function(m, u, a) {
<ide> info.url = u;
<ide> info.async = a;
<add> self.readyState = 1;
<ide> self.send... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.