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 | add `internal` attribute to routes | cd8bb8b6ce96cbfbade45cd5845e5862adf21125 | <ide><path>actionmailer/lib/action_mailer/railtie.rb
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide>
<ide> if options.show_previews
<ide> app.routes.prepend do
<del> get '/rails/mailers' => "rails/mailers#index"
<del> get '/rails/mailers/*path' => "rails/mailers#p... | 6 |
Javascript | Javascript | fix parsing of jp2 images | 583ca3b16286b9fc6da002758c8cdbac7db8a922 | <ide><path>src/core/jpx.js
<ide> var JpxImage = (function JpxImageClosure() {
<ide> n = n * 256 + (data[offset + i] & 0xFF);
<ide> return n;
<ide> }
<add>
<add> var head = readUint(data, 0, 2);
<add> // No box header, immediate start of codestream (SOC)
<add> if (head === 0xFF4F) ... | 1 |
Javascript | Javascript | fix indentation in required-modules.js | 491f838511a8c7b848fb0affcc3661ee45edbdc5 | <ide><path>tools/eslint-rules/required-modules.js
<ide> module.exports = function(context) {
<ide> function(module) {
<ide> return foundModules.indexOf(module === -1);
<ide> }
<del> );
<add> );
<ide> missingModules.forEach(function(moduleName) {
<ide> co... | 1 |
Ruby | Ruby | enable coverage on travis | 51efa46fcc91f4cc635ed8b7bd77a0a35f7656b6 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def homebrew
<ide> if @tap
<ide> test "brew", "readall", @tap.name
<ide> else
<del> test "brew", "tests", "--no-compat"
<add> tests_args = ["--no-compat"]
<ide> readall_args = ["--aliases"]
<del> readall_args << "--syntax... | 1 |
Java | Java | move testcompiler from generator to generate | 6e93f1187c31a37448ca937b4c824657e6fc071c | <ide><path>spring-aop/src/test/java/org/springframework/aop/scope/ScopedProxyBeanRegistrationAotProcessorTests.java
<ide> import org.springframework.aop.framework.AopInfrastructureBean;
<ide> import org.springframework.aot.generate.MethodReference;
<ide> import org.springframework.aot.test.generate.TestGenerationContex... | 49 |
PHP | PHP | fix cs issue | e1526242e52e61eb5a0f8a4d46920a7afae8b72f | <ide><path>src/ORM/Table.php
<ide> protected function _saveMany(iterable $entities, $options = []): iterable
<ide>
<ide> throw new PersistenceFailedException($failed, ['saveMany']);
<ide> }
<del>
<add>
<ide> if ($this->_transactionCommitted($options['atomic'], $options['_primary']))... | 1 |
Ruby | Ruby | convert argv audit to negative look ahead | fb85ed01bc170e389dd62a2a2872d962b7dad5a6 | <ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb
<ide> def find_instance_method_call(node, instance, method_name)
<ide> end
<ide> end
<ide>
<add> # Matches receiver part of method,
<add> # EX: to match `ARGV.<whatever>()`
<add> # call `find_instance_call(node, "ARGV")`
<add> ... | 3 |
PHP | PHP | implement withuri() and tests for geturi() as well | bc19b3a2dcf19e066b802c569aa6a3123a9139de | <ide><path>src/Network/Request.php
<ide> public function getUri()
<ide> return $this->uri;
<ide> }
<ide>
<add> /**
<add> * Return an instance with the specified uri
<add> *
<add> * *Warning* Replacing the Uri will not update the `base`, `webroot`,
<add> * and `url` attributes.
<add> ... | 2 |
Ruby | Ruby | fix failing tests | 848cba13bd8a1fd7445458160a15dbf175c4c61d | <ide><path>activerecord/test/cases/relation/where_chain_test.rb
<ide> def test_not_eq
<ide> end
<ide>
<ide> def test_not_null
<del> expected = Post.arel_table[@name].not_eq(Arel::Nodes::Quoted.new(nil))
<add> expected = Post.arel_table[@name].not_eq(nil)
<ide> relation = Post.where.not(title: n... | 1 |
Text | Text | remove chinese files from sidebar | 7fef673f93e93bc759f6391c0e8527489da7e497 | <ide><path>docs/_sidebar.md
<ide>
<ide> ---
<ide>
<del><!-- The section below should not use relative linking -->
<del>
<del>- **中文社区贡献指南**
<del> - [成为专栏作者](/i18n/Chinese/news-author-application.md)
<del> - [文章翻译计划](/i18n/Chinese/news-translations.md)
<del> - [视频翻译计划](/i18n/Chinese/video-translations.md)
<del>
<de... | 1 |
Python | Python | add monte carlo estimation of pi | 1bc84e1fa0b3bbd75c73b0b1b25f573c241e1c9b | <ide><path>maths/pi_monte_carlo_estimation.py
<add>import random
<add>
<add>
<add>class Point:
<add> def __init__(self, x: float, y: float) -> None:
<add> self.x = x
<add> self.y = y
<add>
<add> def is_in_unit_circle(self) -> bool:
<add> """
<add> True, if the point lies in the unit ci... | 1 |
Javascript | Javascript | allow parsing of empty geometry nodes | 96d5134090427f72004627e96c4a96cc96f99445 | <ide><path>examples/js/loaders/FBXLoader.js
<ide> // Generate a THREE.BufferGeometry from a node in FBXTree.Objects.Geometry
<ide> function genGeometry( FBXTree, relationships, geometryNode, skeleton, preTransform ) {
<ide>
<del> var vertexPositions = geometryNode.Vertices.a;
<del> var vertexIndices = geometryNode... | 1 |
PHP | PHP | build prototype of running requests | ef79fd4dc7b9cf9f25dc9c12e471b8ea28ca97bd | <ide><path>lib/Cake/Network/Http/Adapter/Stream.php
<ide> */
<ide> namespace Cake\Network\Http\Adapter;
<ide>
<add>use Cake\Error;
<ide> use Cake\Network\Http\Request;
<ide> use Cake\Network\Http\Response;
<ide> use Cake\Network\Http\FormData;
<ide> class Stream {
<ide> */
<ide> protected $_stream;
<ide>
<add>/**
... | 2 |
Ruby | Ruby | get modules back into integration tests | 0e15f07b75d04ddc349a93ad7fdfcbc502ef535d | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> require 'rack/session/abstract/id'
<del>require 'action_view/test_case'
<ide>
<ide> module ActionController
<ide> module TemplateAssertions
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> def process(method, path, parameters = nil,... | 2 |
Ruby | Ruby | use ohai to print messages | 0fe532c242d73c73eeb2b87a15a46ec9602685df | <ide><path>Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
<ide> def boneyard_formula_pr
<ide> boneyard_tap = Tap.fetch("homebrew", "boneyard")
<ide> tap_migrations_path = formula.tap.path/"tap_migrations.json"
<ide> if ARGV.dry_run?
<del> puts "brew update"
<del> puts "brew tap #{boneyard_tap.nam... | 1 |
PHP | PHP | move method around | a3c47d6209d7a0889c03c7670d499d41b5d42d94 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> protected function createRequest(Request $request = null)
<ide> return $request ?: static::onRequest('createFromGlobals');
<ide> }
<ide>
<del> /**
<del> * Set the application request for the console environment.
<del> *
<del> * @return void
<del> */
<de... | 1 |
Javascript | Javascript | use correct fontweight value in thememanager spec | 9921e18e5a3c8050044b903dbd97e891a670198e | <ide><path>spec/theme-manager-spec.js
<ide> h2 {
<ide> it('returns a disposable allowing styles applied by the given path to be removed', function () {
<ide> const cssPath = require.resolve('./fixtures/css.css')
<ide>
<del> expect(getComputedStyle(document.body).fontWeight).not.toBe('bold')
<add> e... | 1 |
Text | Text | update api version-history for 1.35 | 8a9d926b553345be530ddc51374c9817fcbea784 | <ide><path>docs/api/version-history.md
<ide> keywords: "API, Docker, rcli, REST, documentation"
<ide> configuration is only used for Windows containers.
<ide> * `GET /containers/(name)/logs` now supports an additional query parameter: `until`,
<ide> which returns log lines that occurred before the specified timesta... | 1 |
PHP | PHP | fix styleci issue | 50c35401f53e695d9b708700666248d481b9db8a | <ide><path>src/Illuminate/Database/Schema/ColumnDefinition.php
<ide>
<ide> namespace Illuminate\Database\Schema;
<ide>
<del>use Illuminate\Database\Query\Expression;
<ide> use Illuminate\Support\Fluent;
<add>use Illuminate\Database\Query\Expression;
<ide>
<ide> /**
<ide> * @method ColumnDefinition after(string $col... | 1 |
Go | Go | turn ipc unmount errors into warnings | a54d5932e3a644317c77d59bc5aee562841d5c20 | <ide><path>daemon/container.go
<ide> func (streamConfig *streamConfig) StderrPipe() io.ReadCloser {
<ide> func (container *Container) cleanup() {
<ide> container.releaseNetwork()
<ide>
<del> if err := container.unmountIpcMounts(detachMounted); err != nil {
<del> logrus.Errorf("%s: Failed to umount ipc filesystems: %... | 4 |
Python | Python | add colorconsole for platform windows | 3f4259eaa67d740e4ac7f7ebcc8630ec6d59652c | <ide><path>setup.py
<ide> for mo in glob.glob('i18n/*/LC_MESSAGES/*.mo'):
<ide> data_files.append((os.path.dirname(mo).replace('i18n/', 'share/locale/'), [mo]))
<ide>
<add>if sys.platform.startswith('win'):
<add> requires = ['psutil>=0.5.1', 'colorconsole==0.6']
<add>else:
<add> requires = ['psutil>=0.5.1']
... | 1 |
Javascript | Javascript | increase coverage for internal/module.js | 83ebb6d8989ea08fdeb25353c42d20d0c0c285db | <ide><path>test/parallel/test-internal-modules-strip-shebang.js
<add>// Flags: --expose-internals
<add>'use strict';
<add>require('../common');
<add>
<add>const assert = require('assert');
<add>const stripShebang = require('internal/module').stripShebang;
<add>
<add>[
<add> ['', ''],
<add> ['aa', 'aa'],
<add> ['#!',... | 1 |
Python | Python | raise an error if a pool doesn't exist | 9fe611498ccc837e18c227a4276c14905f007953 | <ide><path>airflow/models.py
<ide> def pool_full(self, session):
<ide> .first()
<ide> )
<ide> if not pool:
<del> return False
<add> raise ValueError('Task specified a pool ({}) but the pool '
<add> 'doesn\'t exist!').format(self.task.pool)
<i... | 1 |
Javascript | Javascript | remove manual adding of x-csrf-token header | aa74fcb38f9f318159657ba5050eda62ec043b11 | <ide><path>resources/js/bootstrap.js
<ide> window.axios = require('axios');
<ide>
<ide> window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
<ide>
<del>/**
<del> * Next we will register the CSRF Token as a common header with Axios so that
<del> * all outgoing HTTP requests automatically have i... | 1 |
Go | Go | restore ref count | 009ee16beff4f6d3607fa251019908cc72ce0a34 | <ide><path>daemon/graphdriver/counter.go
<ide> package graphdriver
<ide>
<del>import "sync"
<add>import (
<add> "sync"
<add>
<add> "github.com/docker/docker/pkg/mount"
<add>)
<add>
<add>type minfo struct {
<add> check bool
<add> count int
<add>}
<ide>
<ide> // RefCounter is a generic counter for use by graphdriver Ge... | 6 |
Javascript | Javascript | add test for `.removeat` | 5f5407c589fb5a6b00109e55900b681c3f251e96 | <ide><path>packages/ember-runtime/lib/mixins/mutable_array.js
<ide> export default Mixin.create(EmberArray, MutableEnumerable, {
<ide> ```javascript
<ide> let colors = ['red', 'green', 'blue', 'yellow', 'orange'];
<ide>
<del> removeAt(colors, 0); // ['green', 'blue', 'yellow', 'orange']
<del> removeA... | 4 |
Javascript | Javascript | remove extra change | 4e643be0d78f2f6b010d71fd1583c5e4a0f92258 | <ide><path>lib/dependencies/WorkerPlugin.js
<ide> class WorkerPlugin {
<ide> } else {
<ide> Object.assign(
<ide> entryOptions,
<del> JSON.parse(
<del> JSON.stringify(importOptions.webpackEntryOptions)
<del> )
<add> importOptions.webpackEntryOptions
<ide> ... | 1 |
Javascript | Javascript | inline encode function | cf3f7be8d194d4e1ffb01c80ade2720c03b7e9e9 | <ide><path>lib/asset/AssetGenerator.js
<ide> const prepareOptions = (options = {}) => {
<ide> };
<ide> };
<ide>
<del>/**
<del> * @param {NormalModule} module a module to encode
<del> * @param {AssetModulesPluginOptions} options the options to the encoder
<del> * @returns {string|null} encoded source
<del> */
<del>con... | 1 |
Ruby | Ruby | remove unused 'usage' method | c6536066dc39da653d265640c6ba6046bb5def98 | <ide><path>Library/Homebrew/cmd/help.rb
<ide> def help(cmd = nil, empty_argv = false)
<ide> exit 0
<ide> end
<ide>
<del> def help_s
<del> HOMEBREW_HELP
<del> end
<del>
<ide> private
<ide>
<ide> def help_for_command(cmd)
<ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def switch?(char)
<ide> option... | 2 |
Javascript | Javascript | address timing issues in simple http tests | 67987d9d83517e8d812f13dc5e9eca1d1b9d21ac | <ide><path>test/parallel/test-http-default-encoding.js
<ide> var server = http.Server(function(req, res) {
<ide> req.on('data', function(chunk) {
<ide> result += chunk;
<ide> }).on('end', function() {
<del> clearTimeout(timeout);
<ide> server.close();
<add> res.writeHead(200);
<add> res.end('hello ... | 2 |
Java | Java | restore serializability of httpstatuscodeexception | 2ff43726be693f32b7bf2a6d237ab65f8ce84ba6 | <ide><path>spring-web/src/main/java/org/springframework/web/client/HttpClientErrorException.java
<ide> /*
<del> * Copyright 2002-2010 the original author or authors.
<add> * Copyright 2002-2012 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you... | 4 |
PHP | PHP | add api docs for accessiblefields option | 2f12dbbd6d9ab07f78a5aa6278838a55afaed469 | <ide><path>src/ORM/Table.php
<ide> public function entityValidator() {
<ide> * using the options parameter:
<ide> *
<ide> * {{{
<del> * $articles = $this->Articles->newEntity(
<add> * $article = $this->Articles->newEntity(
<ide> * $this->request->data(),
<ide> * ['associated' => ['Tags', 'Comments.Users']]
<id... | 1 |
Text | Text | add note to upgrade log | 42780b4b91ab30f5f8e9be71feb2cf32412c93fc | <ide><path>upgrade.md
<ide> - Edit `app/controllers/BaseController.php` change `use Illuminate\Routing\Controllers\Controller;` to `use Illuminate\Routing\Controller;
<ide> `
<ide> - If you are overriding `missingMethod` in your controllers, add $method as the first parameter.
<add>- If you are registering model observ... | 1 |
Text | Text | add `stability` class to legacy status description | eb3ca87a87283c5d7968f980ac3b126ac0c0495e | <ide><path>doc/api/documentation.md
<ide> The stability indices are as follows:
<ide>
<ide> <!-- separator -->
<ide>
<del>> Stability 3 - Legacy. Although this feature is unlikely to be removed and is
<add>> Stability: 3 - Legacy. Although this feature is unlikely to be removed and is
<ide> > still covered by semanti... | 1 |
PHP | PHP | add test for assertredirectequals | 6024d57c46d7b44ae94a65ebc506d658a22bb2e8 | <ide><path>tests/TestCase/TestSuite/IntegrationTestTraitTest.php
<ide> public function testAssertRedirect()
<ide> $this->assertResponseEmpty();
<ide> }
<ide>
<add> /**
<add> * Test the location header assertion.
<add> *
<add> * @return void
<add> */
<add> public function testAssertRed... | 1 |
PHP | PHP | fix failing tests with sqlserver | d69c3f3db661c12e5d0aa6867bd89dee2ef8940e | <ide><path>lib/Cake/Utility/Sanitize.php
<ide> public static function escape($string, $connection = 'default') {
<ide> if (is_numeric($string) || $string === null || is_bool($string)) {
<ide> return $string;
<ide> }
<del> $string = substr($db->value($string), 1);
<add> $string = $db->value($string, 'string');
... | 1 |
Python | Python | add shape inference to graph containers | e8e56d9013da401fc6260a6f7675c70ce03fba28 | <ide><path>examples/kaggle_otto_nn.py
<ide> def make_submission(y_prob, ids, encoder, fname):
<ide> model = Sequential()
<ide> model.add(Dense(512, input_shape=(dims,)))
<ide> model.add(PReLU())
<del>model.add(BatchNormalization((512,)))
<add>model.add(BatchNormalization())
<ide> model.add(Dropout(0.5))
<ide>
<ide> mo... | 4 |
Ruby | Ruby | remove custom minimum version | 8b9ac2b2e030a70bd6ee99ac8b0c9b9f92fd621b | <ide><path>Library/Homebrew/os/mac/xquartz.rb
<ide> def detect_version
<ide> end
<ide> end
<ide>
<add> def minimum_version
<add> version = guess_system_version
<add> return version unless version == "dunno"
<add>
<add> # Update this a little later than latest_version to give peo... | 4 |
Python | Python | prepare optimizer only when args.do_train is true | 74dbba64bc9a44cd6757413b720d0ff4ca33137a | <ide><path>examples/lm_finetuning/simple_lm_finetuning.py
<ide> def main():
<ide> model = torch.nn.DataParallel(model)
<ide>
<ide> # Prepare optimizer
<del> param_optimizer = list(model.named_parameters())
<del> no_decay = ['bias', 'LayerNorm.bias', 'LayerNorm.weight']
<del> optimizer_grouped_para... | 5 |
Ruby | Ruby | use .each, not .all? to enumerate formulae | c4cdd2b7ac2b55ffcba227e43e67a7462229ecf4 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def versions
<ide> Please use the homebrew-versions tap instead:
<ide> https://github.com/Homebrew/homebrew-versions
<ide> EOS
<del> ARGV.formulae.all? do |f|
<add> ARGV.formulae.each do |f|
<ide> versions = FormulaVersions.new(f)
<ide> ... | 1 |
Javascript | Javascript | remove aliasing of react and react-dom | efe9afb2be3059f97ac06b8fe105d8d9e30368a5 | <ide><path>server/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir, {dev = false, isServer
<ide> ],
<ide> alias: {
<ide> next: nextDir,
<del> // This bypasses React's check for production mode. Since we know it is in production this way.
<del> // This allo... | 1 |
Java | Java | improve performance of generatekey | 67f184293b94c076b0474231f739a74f42d5ffa8 | <ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java
<ide> private boolean isConditionPassing(CacheOperationContext context, Object result)
<ide>
<ide> private Object generateKey(CacheOperationContext context, Object result) {
<ide> Object key = context.generateKey(r... | 1 |
Javascript | Javascript | remove prefetch attributes from examples | a9325f123aa9aa9d8d0ee280d11b1c0e305c9901 | <ide><path>examples/data-fetch/pages/index.js
<ide> export default class Index extends React.Component {
<ide> return (
<ide> <div>
<ide> <p>Next.js has {this.props.stars} ⭐️</p>
<del> <Link prefetch href='/preact'>
<add> <Link href='/preact'>
<ide> <a>How about preact?</a>
<id... | 9 |
Ruby | Ruby | fix documentation style | 4c41e87e3ae548c44810b66437b2f0f6e73b2106 | <ide><path>actionpack/lib/abstract_controller/helpers.rb
<ide> def clear_helpers
<ide> # helpers with the following behavior:
<ide> #
<ide> # String or Symbol:: :FooBar or "FooBar" becomes "foo_bar_helper",
<del> # and "foo_bar_helper.rb" is loaded using require_dependency.
<add> # and "fo... | 1 |
Go | Go | update daemon code for containerd api changes | aa3ce07c41e0da9331f0659f28fed7f35846556c | <ide><path>container/container.go
<ide> import (
<ide> "syscall"
<ide> "time"
<ide>
<del> "github.com/containerd/containerd"
<add> "github.com/containerd/containerd/cio"
<ide> containertypes "github.com/docker/docker/api/types/container"
<ide> mounttypes "github.com/docker/docker/api/types/mount"
<ide> networktyp... | 12 |
Text | Text | add readme for blender plugin | 92bb07914581f7ac33f2378eee88ce034dda39a4 | <ide><path>utils/exporters/blender/README.md
<add># Three.js Blender Import/Export
<add>
<add>Imports and exports Three.js' ASCII JSON format.
<add>
<add>Assumes Blender version 2.60.
<add>
<add>## Installation
<add>
<add>Copy the io_mesh_threejs folder to the scripts/addons folder. The full path is OS-dependent (see b... | 1 |
Python | Python | improve documentation of training_args.py | 6a064447f2f74cd4e3fdaff31f2a7f7c8db4aa77 | <ide><path>src/transformers/training_args.py
<ide> class TrainingArguments:
<ide> If :obj:`True`, overwrite the content of the output directory. Use this to continue training if
<ide> :obj:`output_dir` points to a checkpoint directory.
<ide> do_train (:obj:`bool`, `optional`, defaults to... | 1 |
Python | Python | update version to 4.2.0 | 028dbe4a4d6786d56ed30ea49971cc5415fffb4b | <ide><path>celery/__init__.py
<ide>
<ide> SERIES = 'latentcall'
<ide>
<del>__version__ = '4.1.0'
<add>__version__ = '4.2.0'
<ide> __author__ = 'Ask Solem'
<ide> __contact__ = 'ask@celeryproject.org'
<ide> __homepage__ = 'http://celeryproject.org' | 1 |
PHP | PHP | flush the registry before generating fixtures | 5e6925bfdf7efe44324de500e54163de3e914af7 | <ide><path>tests/TestCase/Shell/Task/TestTaskTest.php
<ide> public function testFixtureArrayGenerationFromModel() {
<ide> * @return void
<ide> */
<ide> public function testFixtureArrayGenerationIgnoreSelfAssociation() {
<add> TableRegistry::clear();
<ide> $subject = new CategoryThreadsTable();
<ide> $result = $... | 1 |
PHP | PHP | fix possible bug in session keep | 74dad49cd0e8334c78474655161a19ad296243a8 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function keep($keys = null)
<ide> */
<ide> protected function mergeNewFlashes(array $keys)
<ide> {
<del> $values = array_unique(array_merge($this->get('flash.new'), $keys));
<add> $values = array_unique(array_merge($this->get('flash.new', array()), $keys));... | 1 |
Javascript | Javascript | remove user data in cleandata | 5fe76c663f8a4986af62edb434a1708c006d0b21 | <ide><path>src/manipulation.js
<ide> jQuery.extend({
<ide> i = 0;
<ide>
<ide> for ( ; (elem = elems[ i ]) !== undefined; i++ ) {
<del> if ( jQuery.acceptData( elem ) && (data = elem[ dataPriv.expando ])) {
<del> if ( data.events ) {
<del> for ( type in data.events ) {
<del> if ( special[ type ] ) {
... | 2 |
Go | Go | avoid alignment of reapnetwork and tableentries | a4e64d05c1073022f43c606d2eb8d0fa4d3e947d | <ide><path>libnetwork/networkdb/cluster.go
<ide> import (
<ide> )
<ide>
<ide> const (
<del> reapInterval = 30 * time.Minute
<del> reapPeriod = 5 * time.Second
<del> retryInterval = 1 * time.Second
<del> nodeReapInterval = 24 * time.Hour
<del> nodeReapPeriod = 2 * time.Hour
<add> // The garbage collectio... | 3 |
Javascript | Javascript | upgrade automaticprefetchplugin to es6 | e52702050a4bed88a7fb3e89ab4414810362a177 | <ide><path>lib/AutomaticPrefetchPlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var async = require("async");
<del>var PrefetchDependency = require("./dependencies/PrefetchDependency");
<del>var NormalModule = require("./NormalModule");
<... | 1 |
PHP | PHP | simplify update query bindings | 0708161b2079b55a44112fba94500340a1b56792 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> public function compileUpdate(Builder $query, $values)
<ide> */
<ide> public function prepareBindingsForUpdate(array $bindings, array $values)
<ide> {
<del> $cleanBindings = Arr::except($bindings, ['join', 'select']);
<add> $... | 4 |
Go | Go | fix docker rename with linked containers | 3f6e3a0885124a00c7f915af8f9181e6a275d828 | <ide><path>daemon/rename.go
<ide> import (
<ide> "strings"
<ide>
<ide> "github.com/Sirupsen/logrus"
<add> dockercontainer "github.com/docker/docker/container"
<ide> "github.com/docker/libnetwork"
<ide> )
<ide>
<ide> func (daemon *Daemon) ContainerRename(oldName, newName string) error {
<ide> container.Lock()
<ide... | 2 |
Java | Java | implement axialgradientview in fabric android | da44010b5904303452f0b03086619474d4b5f5ca | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> public class FabricUIManager implements UIManager, LifecycleEventListener {
<ide> sComponentNames.put("ActivityIndicatorView", "AndroidProgressBar");
<ide> sComponentNames.put("ShimmeringView", "RKShimmeringView");
<ide> ... | 1 |
Python | Python | fix init and remove .dvc/plots | 1d2c646e579f0e018e2eed363cc0a0240dde8d47 | <ide><path>spacy/cli/project.py
<ide>
<ide> CONFIG_FILE = "project.yml"
<ide> DVC_CONFIG = "dvc.yaml"
<add>DVC_DIR = ".dvc"
<ide> DIRS = [
<ide> "assets",
<ide> "metas",
<ide> def project_clone_cli(
<ide> def project_init_cli(
<ide> path: Path = Arg(..., help="Path to cloned project", exists=True, file_oka... | 1 |
Text | Text | add missing examples to examples/readme.md | e2531cb8302b2842c0d3b505f6f619e685c3f4b4 | <ide><path>examples/README.md
<ide> Trains a simple convnet on the MNIST dataset.
<ide> [cifar10_cnn.py](cifar10_cnn.py)
<ide> Trains a simple deep CNN on the CIFAR10 small images dataset.
<ide>
<add>[cifar10_cnn_capsule.py](cifar10_cnn_capsule.py)
<add>Trains a simple CNN-Capsule Network on the CIFAR10 small images d... | 1 |
Python | Python | handle mapped tasks in task duration chart | 8829c079a675a60b78a4bc3a00f91ebe33b27eb6 | <ide><path>airflow/www/views.py
<ide> def duration(self, dag_id, session=None):
<ide>
<ide> y_points = defaultdict(list)
<ide> x_points = defaultdict(list)
<del> cumulative_y = defaultdict(list)
<ide>
<ide> task_instances = dag.get_task_instances_before(base_date, num_runs, session=sess... | 1 |
Go | Go | remove redundant logs from cp utils | 3ddb4100a052aa556e78fefdf955cf0b7c374d43 | <ide><path>integration-cli/docker_cli_cp_utils_test.go
<ide> func containerCpPathTrailingSep(containerID string, pathElements ...string) stri
<ide>
<ide> func runDockerCp(c *testing.T, src, dst string) error {
<ide> c.Helper()
<del> c.Logf("running `docker cp %s %s`", src, dst)
<ide>
<ide> args := []string{"cp", sr... | 1 |
Python | Python | add test to ensure models can take int64 inputs | f04257fdbcb6ecb5a9bef75f4c2a8d2e8b5a6209 | <ide><path>src/transformers/models/blenderbot/modeling_tf_blenderbot.py
<ide> def call(
<ide> if labels is not None:
<ide> labels = tf.where(
<ide> labels == self.config.pad_token_id,
<del> tf.fill(shape_list(labels), -100),
<add> tf.cast(tf.fill(shape_l... | 9 |
Ruby | Ruby | expect xcode 9.1 on sierra & high sierra | 50c09f8c5737336b124ac53d4996b4f61af1590f | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> when "10.9" then "6.2"
<ide> when "10.10" then "7.2.1"
<ide> when "10.11" then "8.2.1"
<del> when "10.12" then "9.0.1"
<del> when "10.13" then "9.0.1"
<add> when "10.12" then "9.1"
<add> when ... | 1 |
Text | Text | add info about esm into migration guide. | 80a931ebd3299387e4fdb9b2a80ec2139477fbfc | <ide><path>docs/migration/v4-migration.md
<ide> A number of changes were made to the configuration options passed to the `Chart`
<ide> * The order of the `ChartMeta` parameters have been changed from `<Element, DatasetElement, Type>` to `<Type, Element, DatasetElement>`.
<ide>
<ide> ### General
<add>* Chart.js becomes... | 1 |
Ruby | Ruby | make application work without tmp directory | 0187053109f62ea0188a76aee53aeee396f76632 | <ide><path>railties/lib/rails/application.rb
<ide> def generate_development_secret
<ide>
<ide> if !File.exist?(key_file)
<ide> random_key = SecureRandom.hex(64)
<add> FileUtils.mkdir_p(key_file.dirname)
<ide> File.binwrite(key_file, random_key)
<ide> end
<ide>
<i... | 2 |
PHP | PHP | add requested whitespace | c6d4e6a026f087c7a8478753f848a000ea1bb612 | <ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php
<ide> public function transaction(Closure $callback, $attempts = 1)
<ide> $this->handleTransactionException(
<ide> $e, $currentAttempt, $attempts
<ide> );
<add>
<ide> c... | 1 |
Text | Text | fix a typo | 899381575a6038f550a064261ed5c6ba0655211b | <ide><path>docs/api-guide/routers.md
<ide> This behavior can be modified by setting the `trailing_slash` argument to `False
<ide>
<ide> Trailing slashes are conventional in Django, but are not used by default in some other frameworks such as Rails. Which style you choose to use is largely a matter of preference, alth... | 1 |
PHP | PHP | fix docblock for variadic parameter | 94e7945517387b9bef0851a506436639e4fbbb5c | <ide><path>app/Http/Middleware/RedirectIfAuthenticated.php
<ide> class RedirectIfAuthenticated
<ide> *
<ide> * @param \Illuminate\Http\Request $request
<ide> * @param \Closure $next
<del> * @param string[]|null ...$guards
<add> * @param string|null ...$guards
<ide> * @return mixed
<i... | 1 |
Javascript | Javascript | fix removeelclass test in safari 10. | 996507744f064ac7d7747d5059152c624616cfb1 | <ide><path>test/unit/utils/dom.test.js
<ide> QUnit.test('addElClass()', function(assert) {
<ide> QUnit.test('removeElClass()', function(assert) {
<ide> const el = document.createElement('div');
<ide>
<del> el.className = 'test-class foo foo test2_className FOO bar';
<add> el.className = 'test-class test2_className... | 1 |
Text | Text | fix links in readme.md | dd3e34e8328b0281186ed74376a3dda8be9bffb6 | <ide><path>README.md
<ide> You'll notice that we used an HTML-like syntax; [we call it JSX](https://reactjs
<ide>
<ide> ## Installation
<ide>
<del>React is available as the `react` package on [npm](https://www.npmjs.com/). It is also available on a [CDN](https://reactjs.org/docs/installation.html#using-a-cdn).
<add>R... | 1 |
Python | Python | move task tracing to celery.execute.trace | f65ffc17930f52ea2e20757626ac449907eeeb49 | <add><path>celery/execute/__init__.py
<del><path>celery/execute.py
<del>import sys
<del>import inspect
<del>import traceback
<ide> from datetime import datetime, timedelta
<ide>
<del>from billiard.utils.functional import curry
<del>
<ide> from celery import conf
<del>from celery import signals
<del>from celery.utils i... | 3 |
Go | Go | ensure mount in commit | f385f1860bdebe2434bb122bd5ac8fec85687970 | <ide><path>builder.go
<ide> func (builder *Builder) Create(config *Config) (*Container, error) {
<ide> func (builder *Builder) Commit(container *Container, repository, tag, comment, author string, config *Config) (*Image, error) {
<ide> // FIXME: freeze the container before copying it to avoid data corruption?
<ide> ... | 1 |
PHP | PHP | add tests for type + method conditions | a203d67ee85ed2bf0c5fa494e6dd362b7ca0921b | <ide><path>lib/Cake/Routing/Route/Route.php
<ide> public function compiled() {
<ide> }
<ide>
<ide> /**
<del> * Compiles the route's regular expression. Modifies defaults property so all necessary keys are set
<del> * and populates $this->names with the named routing elements.
<add> * Compiles the route's regular exp... | 2 |
Javascript | Javascript | improve code coverage for string decoder | 5673017c33c96a20c39cd5deb70714a41267d029 | <ide><path>test/parallel/test-string-decoder.js
<ide> common.expectsError(
<ide> }
<ide> );
<ide>
<add>common.expectsError(
<add> () => new StringDecoder('utf8').write(null),
<add> {
<add> code: 'ERR_INVALID_ARG_TYPE',
<add> type: TypeError,
<add> message: 'The "buf" argument must be one of type Buffer, U... | 1 |
Text | Text | remove obsolete cc recommendations | 593212cd2ca52ee84b17de9b636a56262efed67a | <ide><path>doc/guides/maintaining-V8.md
<ide> fixed upstream first.
<ide> ### Backporting to active branches
<ide>
<ide> If the bug exists in any of the active V8 branches, we may need to get the fix
<del>backported. At any given time there are [two active branches][V8ActiveBranches]
<add>backported. At any given time... | 1 |
Text | Text | add documentation for request.path | 32c7ad6c67dec241daf30201db757d14a4cd9ff6 | <ide><path>doc/api/http.md
<ide> const cookie = request.getHeader('Cookie');
<ide>
<ide> Limits maximum response headers count. If set to 0, no limit will be applied.
<ide>
<add>### request.path
<add><!-- YAML
<add>added: v0.4.0
<add>-->
<add>
<add>* {string} The request path. Read-only.
<add>
<ide> ### request.remov... | 1 |
Text | Text | add metadata to be indexed properly | 25e29150a26383cc8ce9c5e73de3650f13407ba4 | <ide><path>model_cards/mrm8488/RuPERTa-base-finetuned-squadv1/README.md
<add>---
<add>language: es
<add>datasets:
<add>- squad
<add>--- | 1 |
Javascript | Javascript | fix manifest build order | dd4589dd6f28ce0953eb95a91c6839d4c590d298 | <ide><path>gulpfile.js
<ide> function delRev(dest, manifestName) {
<ide> });
<ide> }
<ide>
<del>gulp.task('serve', function(cb) {
<add>gulp.task('serve', ['build-manifest'], function(cb) {
<ide> var called = false;
<ide> nodemon({
<ide> script: paths.server,
<ide> function buildManifest() {
<ide> .pipe(g... | 1 |
PHP | PHP | remove unneeded variable assignment | 76a94cc966696c23b948d9d67286e879e16ba0d5 | <ide><path>src/Http/Client.php
<ide> protected function _mergeOptions(array $options): array
<ide> */
<ide> public function sendRequest(RequestInterface $request): ResponseInterface
<ide> {
<del> return $response = $this->send($request, $this->_config);
<add> return $this->send($request, $thi... | 1 |
Python | Python | remove useless debug | 8adce2eafa6878fdec15564b51085ef8fa5ad985 | <ide><path>glances/outputs/glances_curses.py
<ide> def __catch_key(self, return_to_browser=False):
<ide> self.args.disable_mem = False
<ide> self.args.disable_swap = False
<ide> elif self.pressedkey == ord('5'):
<del> logger.info("press 5")
<ide> # '5' > En... | 1 |
Ruby | Ruby | remove dead file_watcher code | 6c9669e8f0553a6d5d67cf64ba2273f527a2072a | <ide><path>activesupport/lib/active_support/file_watcher.rb
<del>module ActiveSupport
<del> class FileWatcher
<del> class Backend
<del> def initialize(path, watcher)
<del> @watcher = watcher
<del> @path = path
<del> end
<del>
<del> def trigger(files)
<del> @watcher.trigger(fil... | 1 |
Javascript | Javascript | restore enumeration behavior in isplainobject | 00575d4d8c7421c5119f181009374ff2e7736127 | <ide><path>src/core.js
<ide> jQuery.extend( {
<ide> },
<ide>
<ide> isPlainObject: function( obj ) {
<add> var key;
<ide>
<ide> // Not plain objects:
<ide> // - Any object or value whose internal [[Class]] property is not "[object Object]"
<ide> jQuery.extend( {
<ide> return false;
<ide> }
<ide>
<del> //... | 2 |
Ruby | Ruby | enforce https for *.sourceforge.io urls | a09169f248de707bf8121acfb6c5d5c2b92c58de | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_homepage
<ide> # People will run into mixed content sometimes, but we should enforce and then add
<ide> # exemptions as they are discovered. Treat mixed content on homepages as a bug.
<ide> # Justify each exemptions with a code comment so we can k... | 1 |
Python | Python | implement spatial dropout | 458edeed9a9010f1ba6184ae40b474181a606502 | <ide><path>keras/backend/tensorflow_backend.py
<ide> def tanh(x):
<ide> return tf.nn.tanh(x)
<ide>
<ide>
<del>def dropout(x, level, seed=None):
<add>def dropout(x, level, noise_shape=None, seed=None):
<ide> '''Sets entries in `x` to zero at random,
<ide> while scaling the entire tensor.
<ide>
<ide> #... | 4 |
Ruby | Ruby | move pathname.starts_with? into pathname | 013fe4bf38d0ae950fe6a14e8b70ee74370fc3eb | <ide><path>Library/Contributions/examples/brew-which.rb
<ide> REAL_CELLAR = HOMEBREW_CELLAR.realpath
<ide>
<ide> class String
<del> def starts_with?(prefix)
<add> def starts_with? prefix
<ide> prefix = prefix.to_s
<ide> self[0, prefix.length] == prefix
<ide> end
<ide> end
<ide>
<del>class Pathname
<del> ... | 2 |
Text | Text | expand fs.access() mode parameter docs | 91b9052c4ea4643ebdc94e35445d258855e4ee76 | <ide><path>doc/api/fs.md
<ide> added: v10.0.0
<ide>
<ide> Tests a user's permissions for the file or directory specified by `path`.
<ide> The `mode` argument is an optional integer that specifies the accessibility
<del>checks to be performed. Check [File access constants][] for possible values
<del>of `mode`. It is po... | 1 |
Javascript | Javascript | fix broken link to point to correct sample file | ecac839f68791788d1d5a88fe8eb4d007c8f6fbd | <ide><path>samples/samples.js
<ide> path: 'scales/time/line.html'
<ide> }, {
<ide> title: 'Line (point data)',
<del> path: 'scales/time/line.html'
<add> path: 'scales/time/line-point-data.html'
<ide> }, {
<ide> title: 'Combo',
<ide> path: 'scales/time/combo.html' | 1 |
Javascript | Javascript | use main document for gettestdocument | 8857e12c9ee79384b56d7a08abda1abe23cda49c | <ide><path>src/test/getTestDocument.js
<ide> 'use strict';
<ide>
<ide> function getTestDocument(markup) {
<del> var iframe = document.createElement('iframe');
<del> iframe.style.display = 'none';
<del> document.body.appendChild(iframe);
<del>
<del> var testDocument = iframe.contentDocument || iframe.contentWindow.... | 1 |
Javascript | Javascript | add benchmark for object properties | ad6e778c4a903a7d484125c4737ad4816331e457 | <ide><path>benchmark/misc/object-property-bench.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>
<add>const bench = common.createBenchmark(main, {
<add> method: ['property', 'string', 'variable', 'symbol'],
<add> millions: [1000]
<add>});
<add>
<add>function runProperty(n) {
<add> const... | 1 |
Javascript | Javascript | add missing properties to texture.tojson() | 1f3207f15754e5af8df480b8cd5a5fe6b54f1ee9 | <ide><path>src/textures/Texture.js
<ide> Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
<ide> wrap: [ this.wrapS, this.wrapT ],
<ide>
<ide> format: this.format,
<add> type: this.type,
<add> encoding: this.encoding,
<add>
<ide> minFilter: this.minFilter,
<ide> magFilter... | 1 |
Text | Text | fix typo in `onboarding.md` | f92af5210526afedc272a9ca66ea7aef32099852 | <ide><path>onboarding.md
<ide> needs to be pointed out separately during the onboarding.
<ide> * Example:
<ide> <https://github.com/nodejs/node/commit/b58fe52692659c0bc25ddbe6afa7f4ae2c7f14a8>
<ide> * For raw commit message:
<del> `git show --format=%Bb58fe52692659c0bc25ddbe6afa7f4ae2c7f14a8`
<add> `git show ... | 1 |
Python | Python | support pep 563 for hfargumentparser | 81643edda55dcf9e050612dec285f2fd8d8833e2 | <ide><path>src/transformers/hf_argparser.py
<ide>
<ide> import dataclasses
<ide> import json
<del>import re
<ide> import sys
<ide> from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser, ArgumentTypeError
<ide> from copy import copy
<ide> from enum import Enum
<add>from inspect import isclass
<ide> from pa... | 2 |
Python | Python | make use of clongdouble and longdouble | a8218af306e7639f2136c8e915a5b9ea1f34356a | <ide><path>numpy/lib/tests/test_function_base.py
<ide> def test_linear_nan_1D(self, dtype):
<ide> ] + [(np.float16, np.float64),
<ide> (np.float32, np.float64),
<ide> (np.float64, np.float64),
<del> (np.float128, np.fl... | 1 |
Ruby | Ruby | expose instrumenter id in notifications | 45462c5e41a77e600878f7b8b2e41babeef8fe8f | <ide><path>activesupport/lib/active_support/notifications/instrumenter.rb
<ide> module ActiveSupport
<ide> module Notifications
<ide> class Instrumenter
<add> attr_reader :id
<add>
<ide> def initialize(notifier)
<ide> @id = unique_id
<ide> @notifier = notifier
<ide><path>activesupport/t... | 2 |
Java | Java | refactor the usage of undertow bytebufferpool | 8d786e8bba86de45d486c0dd858522ca4190f0d1 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java
<ide> public final void onDataAvailable() {
<ide> * @see ReadListener#onAllDataRead()
<ide> * @see org.xnio.ChannelListener#handleEvent(Channel)
<ide> */
<del> public final void onAllDataRead() {
<add> ... | 3 |
PHP | PHP | fix missing skiplog block | 70b55d01610d59a6a4cc760695f567ffb53a3570 | <ide><path>src/Error/BaseErrorHandler.php
<ide> public function logException(Throwable $exception, ?ServerRequestInterface $requ
<ide> if (empty($this->_config['log'])) {
<ide> return false;
<ide> }
<add> foreach ($this->_config['skipLog'] as $class) {
<add> if ($exception ... | 2 |
Python | Python | fix broken tests | 0659e5bd5994de769fa10878ea3dc3dd933cf492 | <ide><path>celery/tests/backends/test_mongodb.py
<ide> def test_restore_group(self, mock_get_database):
<ide> mock_get_database.assert_called_once_with()
<ide> mock_collection.find_one.assert_called_once_with(
<ide> {'_id': sentinel.taskset_id})
<del><<<<<<< HEAD
<del> self.assertEqua... | 1 |
PHP | PHP | add identifier quoting for fields with spaces | c51f6d11e31131ab47002a9d13f8e42b4a95d0f8 | <ide><path>src/Database/SqlDialectTrait.php
<ide> public function quoteIdentifier($identifier)
<ide> return $this->_startQuote . $identifier . $this->_endQuote;
<ide> }
<ide>
<add> // string.string
<ide> if (preg_match('/^[\w-]+\.[^ \*]*$/', $identifier)) {
<del>// string.string
<ide... | 2 |
PHP | PHP | fix issue with trim line ending and test content | 8b0567b26da7b4ddf9263ec7a2fdee57b93bd5d3 | <ide><path>tests/TestCase/Utility/TextTest.php
<ide> public function testWrap()
<ide> $this->assertTextEquals($expected, $result, 'Text not wrapped.');
<ide>
<ide> $result = Text::wrap($text, ['width' => 20, 'wordWrap' => false]);
<del> $expected = <<<TEXT
<del>This is the song th
<del>at never ... | 1 |
Go | Go | implement docker push with standalone client lib | 42670e30eef7023d2df9c6c8900041bc9e1546e0 | <ide><path>api/client/client.go
<ide> type apiClient interface {
<ide> ImageList(options types.ImageListOptions) ([]types.Image, error)
<ide> ImageLoad(input io.Reader) (io.ReadCloser, error)
<ide> ImagePull(options types.ImagePullOptions, privilegeFunc lib.RequestPrivilegeFunc) (io.ReadCloser, error)
<add> ImagePus... | 5 |
Java | Java | remove unused linkedlist import | fef0e21d8b938d2a5bce0fe9b1f38332458e7f45 | <ide><path>spring-core/src/main/java/org/springframework/util/ReflectionUtils.java
<ide> import java.sql.SQLException;
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<del>import java.util.LinkedList;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.