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 |
|---|---|---|---|---|---|
Mixed | Go | add godoc for client package | 070038bbc720192338850ff714459fbd5e633853 | <ide><path>client/README.md
<del>## Client
<add>## Go client for the Docker Remote API
<ide>
<del>The client package implements a fully featured http client to interact with the Docker engine. It's modeled after the requirements of the Docker engine CLI, but it can also serve other purposes.
<add>The `docker` command ... | 2 |
Text | Text | create a new section on raspberry pi | 0b7857e0ee378bd994074131eaf9534813ac8b4c | <ide><path>guide/english/raspberry-pi/what-is-raspberry-pi/index.md
<add>---
<add>title: What Is Raspberry Pi
<add>---
<add>
<add>## The Raspberry Pi
<add>Raspberry Pi is a mini computer in its third-generation. The $35 circuit board contains a processor, RAM, GPU as well as ports for
<add>USB, HDMI, audio, ethernet a... | 1 |
Java | Java | improve etag & last-modifed support in webrequest | 953608ec49dea6dfdf1e0a2626839e84df909b69 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/FacesWebRequest.java
<ide> public boolean checkNotModified(String eTag) {
<ide> return false;
<ide> }
<ide>
<add> /**
<add> * Last-modified handling not supported for portlet requests:
<add> * As a consequence, this method always returns ... | 6 |
Javascript | Javascript | fix files order | 2c59bf8a65d77d2a1e6803f7024af1830fbd9bee | <ide><path>lib/webpack.js
<ide> module.exports = function(context, moduleName, options, callback) {
<ide>
<ide> options.context = options.context || context;
<ide>
<del> options.emitFile = options.emitFile || function(filename, content) {
<del> options.internal.fileWrites.push([path.join(options.outputDirectory, fi... | 1 |
Java | Java | fix javadoc in mockrestserviceserver | bf8a33902f170ef7bcef73dbef0db7c66eb33153 | <ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java
<ide> * // Use the hotel instance...
<ide> *
<ide> * mockServer.verify();
<add> * </pre>
<ide> *
<ide> * <p>To create an instance of this class, use {@link #createServer(RestTemplate)}
<ide> * and provi... | 1 |
Java | Java | detect cache hit with multiple @cachables | b0b40dade132577533bfbab34dbe8e03d9c613b6 | <ide><path>spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java
<ide> private void collectPutRequests(Collection<CacheOperationContext> contexts,
<ide> for (CacheOperationContext context : contexts) {
<ide> if (isConditionPassing(context, result)) {
<ide> Object key = gene... | 2 |
Javascript | Javascript | remove use of framestopop from jstimers | 9f71551167c211d5c2604896c2fb449b44747b18 | <ide><path>Libraries/Core/Timers/JSTimers.js
<ide> const Systrace = require('../../Performance/Systrace');
<ide>
<ide> const invariant = require('invariant');
<ide>
<del>import type {ExtendedError} from '../Devtools/parseErrorStack';
<ide> import NativeTiming from './NativeTiming';
<ide>
<ide> let _performanceNow = ... | 1 |
Javascript | Javascript | add spec for nativedeviceeventmanager | 580088c1994e29f25e5e6bd524808b821f57f5bf | <ide><path>Libraries/NativeModules/specs/NativeDeviceEventManager.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<add> *
<add> * @flow strict-local
<add> ... | 2 |
PHP | PHP | fix failing test cases and add missing classname | 8be7de76a2410c5af6d1703b690d4e3c4b8bcb01 | <ide><path>src/Core/functions.php
<ide> function namespaceSplit($class) {
<ide> */
<ide> function pr($var) {
<ide> if (Configure::read('debug')) {
<del> $template = php_sapi_name() !== 'cli' ? '<pre>%s</pre>' : "\n%s\n\n";
<add> $template = php_sapi_name() !== 'cli' ? '<pre class="pr">%s</pre>' : "\n%s\n\n";
<i... | 3 |
PHP | PHP | fix bug in closure after filters | 198e9f2519a29ba8ff67ab08444f75509b80498b | <ide><path>src/Illuminate/Routing/ControllerDispatcher.php
<ide> <?php namespace Illuminate\Routing;
<ide>
<add>use Closure;
<ide> use Illuminate\Http\Request;
<ide> use Illuminate\Container\Container;
<ide>
<ide> protected function assignAfter($instance, $route, $request, $method)
<ide> // router take care of cal... | 1 |
Python | Python | use filename (vs file name) consistently | 15ff4fdaa592ee512285054eaca2bf3a9bd3a0d4 | <ide><path>numpy/lib/npyio.py
<ide> def save(file, arr, allow_pickle=True, fix_imports=True):
<ide> file : file, str, or pathlib.Path
<ide> File or filename to which the data is saved. If file is a file-object,
<ide> then the filename is unchanged. If file is a string or Path, a ``.npy``
<del> ... | 1 |
PHP | PHP | fix inheritance to use a class that exists | a43d4185f657d4fd4dc2b7d2a3f97cb8b0732eb3 | <ide><path>lib/Cake/Model/I18nModel.php
<ide> *
<ide> * @package Cake.Model
<ide> */
<del>class I18nModel extends AppModel {
<add>class I18nModel extends Model {
<ide>
<ide> /**
<ide> * Model name | 1 |
Mixed | Python | fix bug where pk could be set in post data | ab173fd8f9070ccdb70f86f400d2ffa780977ce4 | <ide><path>docs/api-guide/serializers.md
<ide> The `nested` option may also be set by passing it to the `serialize()` method.
<ide> class Meta:
<ide> model = Account
<ide>
<add> def get_pk_field(self, model_field):
<add> return Field(readonly=True)
<add>
<ide> def get_nest... | 3 |
Go | Go | modify /proc/sys only if needed | 5a259d55f003da5085d0e333e9ef479805e9669b | <ide><path>libnetwork/drivers/bridge/setup_ip_forwarding.go
<ide> const (
<ide> )
<ide>
<ide> func setupIPForwarding() error {
<del> // Enable IPv4 forwarding
<del> if err := ioutil.WriteFile(ipv4ForwardConf, []byte{'1', '\n'}, ipv4ForwardConfPerm); err != nil {
<del> return fmt.Errorf("Setup IP forwarding failed: %v... | 3 |
Javascript | Javascript | expose output path in stats object | 3e0baf8303d9af89124c0cb7915db25e1cb7dce6 | <ide><path>lib/Stats.js
<ide> class Stats {
<ide> const sortModules = optionsOrFallback(options.modulesSort, "id");
<ide> const sortChunks = optionsOrFallback(options.chunksSort, "id");
<ide> const sortAssets = optionsOrFallback(options.assetsSort, "");
<add> const showOutputPath = optionOrLocalFallback(options.... | 2 |
PHP | PHP | fix handling of base paths | 7696f5b0fc10e247d26ecb6aa2eabca43876d6de | <ide><path>src/Routing/Router.php
<ide> public static function url($url = null, $full = false)
<ide> }
<ide>
<ide> if (empty($url)) {
<del> $output = isset($here) ? $here : $base . '/';
<add> $output = $base . (isset($here) ? $here : '/');
<ide> if ($full) {
<ide> ... | 3 |
Text | Text | add todos-with-undo to examples.md | 1170c2c0824ae48652311654a6c6cc844169be59 | <ide><path>README.md
<ide> For PDF, ePub, and MOBI exports for offline reading, and instructions on how to
<ide>
<ide> * [Counter](http://rackt.github.io/redux/docs/introduction/Examples.html#counter) ([source](https://github.com/rackt/redux/tree/master/examples/counter))
<ide> * [TodoMVC](http://rackt.github.io/redux... | 2 |
Ruby | Ruby | remove unused argument | 683e209b10e897199595696f9c86a9568fd7bc6c | <ide><path>Library/Homebrew/formula_versions.rb
<ide> def version_at_revision(rev)
<ide> formula_at_revision(rev) { |f| f.version }
<ide> end
<ide>
<del> def formula_at_revision rev, &block
<add> def formula_at_revision(rev)
<ide> FileUtils.mktemp(f.name) do
<ide> path = Pathname.pwd.join("#{f.name}.... | 1 |
Javascript | Javascript | add parenthesis typo | a9e615a98ddcd88f6a174645ca73d938e0d8452a | <ide><path>test/createStore.spec.js
<ide> describe('createStore', () => {
<ide> const listener2 = expect.createSpy(() => {})
<ide> const listener3 = expect.createSpy(() => {})
<ide>
<del> unsubscribeHandles.push(store.subscribe(() => listener1())))
<add> unsubscribeHandles.push(store.subscribe(() => list... | 1 |
Text | Text | add translating guide | da47c264f9a881f5db5f6fbb59a30c95e428571f | <ide><path>docs/README.md
<ide> Make sure to put your new file under the proper section. It's unlikely to go in
<ide> depending on the intended targets (beginners, more advanced users or researchers) it should go in section two, three or
<ide> four.
<ide>
<add>### Translating
<add>
<add>When translating, refer to the ... | 2 |
Text | Text | add link to live demo already hosted | 6f420962338fb99a377bde8e1e663bc202c95b68 | <ide><path>examples/image-component/README.md
<ide> This example shows how to use the [Image Component in Next.js](https://nextjs.or
<ide>
<ide> The index page ([`pages/index.js`](pages/index.js)) has a couple images, one internal image and one external image. In [`next.config.js`](next.config.js), the `domains` prope... | 1 |
PHP | PHP | defer uri language support to l4 | f68559718044ab52d798860f9c845196834ee998 | <ide><path>laravel/url.php
<ide> public static function to_asset($url, $https = null)
<ide> $url = str_replace($index.'/', '', $url);
<ide> }
<ide>
<del> if (count(Config::get('application.languages')) > 0)
<del> {
<del> $url = str_replace(Config::get('application.language').'/', '', $url);
<del> }
<del>
<id... | 1 |
Javascript | Javascript | fix formatting of pull 325. fixes | 84712bd624a9a4eeaab9ea9c543bba494f2cc3e1 | <ide><path>src/css.js
<ide> var ralpha = /alpha\([^)]*\)/i,
<ide> rnum = /^-?\d/,
<ide> rrelNum = /^[+\-]=/,
<ide> rrelNumFilter = /[^+\-\.\de]+/g,
<add> rinputbutton = /input|button/i,
<ide>
<ide> cssShow = { position: "absolute", visibility: "hidden", display: "block" },
<ide> cssWidth = [ "Left", "Right" ],
<i... | 1 |
Python | Python | set version to v2.1.0.dev1 | c6be9964ec540758d9dcaea3ad4866060f45c464 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.1.0.dev0"
<add>__version__ = "2.1.0.dev1"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Python | Python | update version in about.py | 4a1a2bce684e23d7171c731f44e8c7f4ecc0b561 | <ide><path>spacy/about.py
<ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
<ide>
<ide> __title__ = 'spacy'
<del>__version__ = '0.101.0'
<add>__version__ = '1.0.0'
<ide> __summary__ = 'Industrial-strength NLP'
<ide> __uri__ = 'https://spacy.io'
<ide> __author__ = 'Matthew Honnibal' | 1 |
Ruby | Ruby | implement equality for dependencies collections | 0b2c6e87f191b2ef5ad404c8d16f507becbd53cf | <ide><path>Library/Homebrew/dependencies.rb
<ide> def required
<ide> def default
<ide> build + required + recommended
<ide> end
<add>
<add> attr_reader :deps
<add> protected :deps
<add>
<add> def ==(other)
<add> deps == other.deps
<add> end
<add> alias_method :eql?, :==
<ide> end
<ide><path>Library/Home... | 2 |
Javascript | Javascript | remove shebang from upload-artifacts.js | cdc8a23bc39c45e84a16ff122e45b5172f58e5fd | <ide><path>script/vsts/upload-artifacts.js
<del>#!/usr/bin/env node
<del>
<ide> 'use strict'
<ide>
<ide> const path = require('path') | 1 |
Mixed | Ruby | deprecate rescuable option | 10bac29b330ddda69102d43b77a1e7dba8741c45 | <ide><path>actionpack/lib/action_dispatch/middleware/callbacks.rb
<ide> module ActionDispatch
<ide> class Callbacks
<ide> include ActiveSupport::Callbacks
<ide>
<del> define_callbacks :call, :rescuable => true
<add> define_callbacks :call
<ide>
<ide> class << self
<ide> delegate :to_prepare, :to... | 4 |
PHP | PHP | add support for fixed length strings | 55251e5ebbcc3e2f6a9159ab2644b56ecd2598f0 | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function describeTableSql($table) {
<ide> * The returned type will be a type that Cake\Database\Type can handle.
<ide> *
<ide> * @param string $column The column type + length
<del> * @return array List of (type, length)
<add> * @return array Array of ... | 6 |
Text | Text | add german distilbert model | e7cf2ccd1567615513013d5fc9f9002733f70e13 | <ide><path>examples/distillation/README.md
<ide>
<ide> This folder contains the original code used to train Distil* as well as examples showcasing how to use DistilBERT, DistilRoBERTa and DistilGPT2.
<ide>
<add>**November 19th, 2019 - Update** We release German **DistilBERT**: 98.8% of `bert-base-german-dbmdz-cased` ... | 1 |
Ruby | Ruby | add the ability to have plugins load rake tasks | c02f2782631a1893e2e880e3ccc65fb9a734567a | <ide><path>railties/lib/rails/application.rb
<ide> def reload_routes!
<ide>
<ide> def load_tasks
<ide> require "rails/tasks"
<add> # Load all extension rake tasks
<add> plugins.each(&:load_tasks)
<add> # Load all plugin tasks
<ide> Dir["#{root}/vendor/plugins/*/**/tasks/**/*.rake"].sort.... | 3 |
Python | Python | update callback system | 49603c1594daf6267f8135937c11a23fe03112f6 | <ide><path>keras/callbacks.py
<ide> def on_epoch_begin(self, epoch):
<ide> self._delta_ts_batch_begin = deque([], maxlen=self.queue_length)
<ide> self._delta_ts_batch_end = deque([], maxlen=self.queue_length)
<ide>
<del> def on_epoch_end(self, epoch, val_loss, val_acc):
<add> def on_epoch_end(sel... | 3 |
Javascript | Javascript | use start instead of stop + start | d7894f3969fd3932eef57d9759f01282c7d76aa5 | <ide><path>lib/internal/timers.js
<ide> Timeout.prototype[refreshFnSymbol] = function refresh() {
<ide> // Would be more ideal with uv_timer_again(), however that API does not
<ide> // cause libuv's sorted timers data structure (a binary heap at the time
<ide> // of writing) to re-sort itself. This causes o... | 1 |
Ruby | Ruby | fix insecure mirror check when stdout is empty | c667a43b9790be9887bf3f175d9e6ab3dad80e1a | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def check_insecure_mirror(url)
<ide> secure_url = url.sub "http", "https"
<ide> secure_details = get_content_details(secure_url)
<ide>
<del> return if !details[:status].start_with?("2") || !secure_details[:status].start_with?("2")
<add> return if details... | 1 |
Javascript | Javascript | set animation context only if window is available | edd804017ab5c7f4bf86c3283fb981563dfe1be1 | <ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> var animation = new WebGLAnimation();
<ide> animation.setAnimationLoop( onAnimationFrame );
<del> animation.setContext( typeof window !== 'undefined' ? window : null );
<add>
<add> if ( typeof window !== 'undefined' ) ... | 1 |
Ruby | Ruby | add relinking instructions | e99ca2d59f59bc91506a62256429a5f7e9b3dbe0 | <ide><path>Library/Homebrew/cmd/link.rb
<ide> def link
<ide> ARGV.kegs.each do |keg|
<ide> if keg.linked?
<ide> opoo "Already linked: #{keg}"
<add> puts "To relink: brew unlink #{keg.fname} && brew link #{keg.fname}"
<ide> next
<ide> end
<ide> | 1 |
PHP | PHP | fix cs error | 0b9f56fc202915b393e6d8bd11d40f079ba82cbe | <ide><path>src/Core/App.php
<ide> public static function path(string $type, ?string $plugin = null): array
<ide> *
<ide> * Will return the plugin based path for those.
<ide> *
<del> * @param string $type
<del> * @param string|null $plugin
<add> * @param string $type Package type.
<add> * ... | 1 |
Javascript | Javascript | update trackballcontrols tab consistency | cebc2aca2c57df591bb86f055c52d52c725e6079 | <ide><path>examples/js/controls/TrackballControls.js
<ide> THREE.TrackballControls = function ( object, domElement ) {
<ide>
<ide> switch ( event.deltaMode ) {
<ide>
<del> case 2:
<del> // Zoom in pages
<del> _zoomStart.y -= event.... | 1 |
PHP | PHP | fix more coding standards | dbb2dd44d723aaae015b0b7d56ed77544b0b59a2 | <ide><path>lib/Cake/Test/Case/Model/AclNodeTest.php
<ide> public function bindNode($ref = null) {
<ide> return array('DbAroTest' => array('DbAroTest.model' => 'AuthUser', 'DbAroTest.foreign_key' => 2));
<ide> }
<ide> }
<add>
<ide> }
<ide>
<ide> /**
<ide> public function __construct() {
<ide> $this->Aco = new D... | 12 |
PHP | PHP | add doc about the new serialize setting | d099c5ad7e511789355c36ab09691c8839ec0f5f | <ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php
<ide> class MemcachedEngine extends CacheEngine {
<ide> * - compress = boolean, default => false
<ide> * - persistent = string The name of the persistent connection. All configurations using
<ide> * the same persistent value will share a single underlying con... | 1 |
Text | Text | fix broken links in spanish challenges | 8bf15ba060337eebf484cf7f7e91ade1b5012a8f | <ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.spanish.md
<ide> localeTitle: Asignación con un valor devuelto
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> Si recuerda de nuestra discusión sobre el <a href="... | 5 |
Ruby | Ruby | exclude pypy from unbrewed | 6370ccf9a81bbd9c0b4ddb6068a91c649529d514 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> lib/gio/*
<ide> lib/node_modules/*
<ide> lib/python[23].[0-9]/*
<add> lib/pypy/*
<add> lib/pypy3/*
<add> share/pypy/*
<add> share/pypy3/*
<ide> share/doc/homebrew/*
<ide> share/info/dir
<ide> share/man/man1/brew.1 | 1 |
PHP | PHP | apply fixes from styleci | e3c86b6bcecc0cfbcb5b9d5b735ad6bb3213b37d | <ide><path>tests/Integration/Database/DatabaseEloquentModelCustomCastingTest.php
<ide> public function testGetOriginalWithCastValueObjects()
<ide> $this->assertEquals('110 Kingsbrook St.', $model->getOriginal('address')->lineOne);
<ide> $this->assertEquals('117 Spencer St.', $model->address->lineOne);
<... | 1 |
Ruby | Ruby | add test to 57daaef | add9500eb8d373407bf379d5ab8d833a055a07cd | <ide><path>activerecord/test/cases/relation/delegation_test.rb
<ide> def call_method(target, method)
<ide> module DelegationWhitelistBlacklistTests
<ide> ARRAY_DELEGATES = [
<ide> :+, :-, :|, :&, :[],
<del> :all?, :collect, :detect, :each, :each_cons, :each_with_index,
<add> :all?, :collect, :comp... | 1 |
Javascript | Javascript | simplify isidentityunicode detection | f82977caf9b09b970b520c8cb2822a102ac19b38 | <ide><path>src/core/fonts.js
<ide> var Font = (function FontClosure() {
<ide> this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
<ide> this.fontMatrix = properties.fontMatrix;
<ide>
<del> var unicode = this.buildToUnicode(properties);
<del> this.toUnicode = properties.toUnicode = unicode.toUnicod... | 1 |
Javascript | Javascript | clarify dropmembership() call | 226b8e0cf8374a0074142145858fa0aa94bca3ce | <ide><path>test/internet/test-dgram-multicast-multi-process.js
<ide> var common = require('../common'),
<ide> assert = require('assert'),
<ide> dgram = require('dgram'),
<ide> util = require('util'),
<del> assert = require('assert'),
<ide> Buffer = require('buffer').Buffer,
<ide> fork = require('... | 1 |
PHP | PHP | hastable | 1c1f2f2d87876be86fc1ce98efa0f2bc1a3670f6 | <ide><path>src/Illuminate/Database/PostgresConnection.php
<ide>
<ide> namespace Illuminate\Database;
<ide>
<add>use Illuminate\Database\Schema\PostgresBuilder;
<ide> use Doctrine\DBAL\Driver\PDOPgSql\Driver as DoctrineDriver;
<ide> use Illuminate\Database\Query\Processors\PostgresProcessor;
<ide> use Illuminate\Datab... | 3 |
Javascript | Javascript | remove copying of jquery-latest files | c34ed46eee12c92cb050a53eb62daf9e1258caf9 | <ide><path>build/release.js
<ide> module.exports = function( Release ) {
<ide> releaseFiles = {
<ide> "jquery-VER.js": devFile,
<ide> "jquery-VER.min.js": minFile,
<del> "jquery-VER.min.map": mapFile //,
<del>// Disable these until 2.0 defeats 1.9 as the ONE TRUE JQUERY
<del> // "jquery.js": devFile,
<del> ... | 1 |
Python | Python | fix mypy for exasol and facebook hooks | cdd2ba032aa27b496c0e2cfa06ba45569d393401 | <ide><path>airflow/providers/exasol/hooks/exasol.py
<ide> def export_to_file(
<ide> )
<ide> self.log.info("Data saved to %s", filename)
<ide>
<del> def run(self, sql: Union[str, list], autocommit: bool = False, parameters: Optional[dict] = None) -> None:
<add> def run(
<add> self, sql:... | 1 |
Javascript | Javascript | add flatlist and sectionlist to animated exports | daa7c78055857cd2d9ea650de0c4b0f72d3f2acf | <ide><path>Libraries/Animated/src/Animated.js
<ide> 'use strict';
<ide>
<ide> const AnimatedImplementation = require('AnimatedImplementation');
<add>const FlatList = require('FlatList');
<ide> const Image = require('Image');
<ide> const ScrollView = require('ScrollView');
<add>const SectionList = require('SectionList'... | 4 |
Javascript | Javascript | fix typeerror of symbol in template literals | 027c2880a642c94b5927bbb7f90923f415ff9f39 | <ide><path>lib/internal/util/inspect.js
<ide> function getConstructorName(obj, ctx, recurseTimes, protoProps) {
<ide> addPrototypeProperties(
<ide> ctx, tmp, firstProto || tmp, recurseTimes, protoProps);
<ide> }
<del> return descriptor.value.name;
<add> return String(descriptor.value.n... | 2 |
PHP | PHP | restore second=>true behavior | f02c898d0cb0cbb9e236b74df5d054b7b0debdef | <ide><path>src/View/Helper/FormHelper.php
<ide> public function dateTime($fieldName, array $options = [])
<ide> protected function _datetimeOptions($options)
<ide> {
<ide> foreach ($this->_datetimeParts as $type) {
<del> if (!isset($options[$type])) {
<add> if (!array_key_exists($t... | 3 |
Go | Go | add requirements for tests that require network | da9ef68f06e9c73b0913a53dbe31fce3244536a2 | <ide><path>integration-cli/docker_api_swarm_test.go
<ide> func (s *DockerSwarmSuite) TestAPISwarmLeaveRemovesContainer(c *check.C) {
<ide>
<ide> // #23629
<ide> func (s *DockerSwarmSuite) TestAPISwarmLeaveOnPendingJoin(c *check.C) {
<add> testRequires(c, Network)
<ide> s.AddDaemon(c, true, true)
<ide> d2 := s.AddDae... | 3 |
Python | Python | fix broken link in open_memmap see also | 63e256cb9b2316ece0e8eb05ea992345a573b190 | <ide><path>numpy/lib/format.py
<ide> def open_memmap(filename, mode='r+', dtype=None, shape=None,
<ide>
<ide> See Also
<ide> --------
<del> memmap
<add> numpy.memmap
<ide>
<ide> """
<ide> if isfileobj(filename): | 1 |
Javascript | Javascript | remove extra get call | 9a4c350826898375aec71d638e537f3aae9ca3c0 | <ide><path>packages/ember-handlebars/lib/helpers/collection.js
<ide> Ember.Handlebars.registerHelper('collection', function(path, options) {
<ide> }
<ide> }
<ide>
<del> var tagName = hash.tagName || get(collectionClass, 'proto').tagName;
<add> var tagName = hash.tagName || collectionPrototype.tagName;
<ide>
<... | 1 |
Ruby | Ruby | move tab creation into build process | 3ac74331a86d031179c3e25fe46bcb9f292dacc1 | <ide><path>Library/Homebrew/build.rb
<ide> def install
<ide>
<ide> begin
<ide> f.install
<add> Tab.create(f, Options.coerce(ARGV.options_only)).write
<ide> rescue Exception => e
<ide> if ARGV.debug?
<ide> debrew e, f
<ide><path>Library/Homebrew/formula_installer... | 2 |
Javascript | Javascript | simplify code by a ternary op instead of if-else | e0ce9ed36d9b8c1858e4f928b61d21d7d4c023b8 | <ide><path>src/ng/filter/filter.js
<ide> function filterFilter() {
<ide> case "object":
<ide> // jshint +W086
<ide> for (var key in expression) {
<del> if (key == '$') {
<del> (function() {
<del> if (!expression[key]) return;
<del> var path = key;
<del... | 2 |
Go | Go | use dockercmd when possible | 27ac154d05cf9f7aa1e9cbebe3c7769fa746de1e | <ide><path>integration-cli/docker_cli_run_test.go
<ide> import (
<ide>
<ide> // "test123" should be printed by docker run
<ide> func (s *DockerSuite) TestRunEchoStdout(c *check.C) {
<del> runCmd := exec.Command(dockerBinary, "run", "busybox", "echo", "test123")
<del> out, _, _, err := runCommandWithStdoutStderr(runCmd... | 1 |
Javascript | Javascript | add spec for filereadermodule | 0e7a2ca54e623bcaed6999e973ca148e4b30d51c | <ide><path>Libraries/Blob/FileReader.js
<ide>
<ide> const EventTarget = require('event-target-shim');
<ide> const Blob = require('./Blob');
<del>const {FileReaderModule} = require('../BatchedBridge/NativeModules');
<add>import NativeFileReaderModule from './NativeFileReaderModule';
<ide>
<ide> type ReadyState =
<ide>... | 2 |
Mixed | Javascript | do deprecation warning outside `node_modules` | 9d4ab9011796902a086ca12b0a18088e2fb35cd4 | <ide><path>doc/api/buffer.md
<ide> It can be constructed in a variety of ways.
<ide> <!-- YAML
<ide> deprecated: v6.0.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/19524
<add> description: Calling this constructor emits a deprecation warning when
<add> ... | 6 |
Javascript | Javascript | pass texture in onupdate | bbf4c70823288f2253de1a66ac503eb2affac5c6 | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> texture.needsUpdate = false;
<ide>
<del> if ( texture.onUpdate ) texture.onUpdate();
<add> if ( texture.onUpdate ) texture.onUpdate( texture );
<ide>
<ide> };
<ide>
<ide> THREE.WebGLRenderer = function (... | 1 |
Mixed | Python | add berttokenizer flag to skip basic tokenization | e14c6b52e37876ee642ffde49367c51b0d374f41 | <ide><path>README.md
<ide> where
<ide> Examples:
<ide> ```python
<ide> # BERT
<del>tokenizer = BertTokenizer.from_pretrained('bert-base-uncased', do_lower_case=True)
<add>tokenizer = BertTokenizer.from_pretrained('bert-base-uncased', do_lower_case=True, do_basic_tokenize=True)
<ide> model = BertForSequenceClassificatio... | 2 |
Go | Go | add some error checking in container monitor | 69c2250ec2fd23dc9d31372cb433b7c18a917d09 | <ide><path>container.go
<ide> func (container *Container) releaseNetwork() error {
<ide> func (container *Container) monitor() {
<ide> // Wait for the program to exit
<ide> Debugf("Waiting for process")
<del> container.cmd.Wait()
<add> if err := container.cmd.Wait(); err != nil {
<add> // Discard the error as any si... | 1 |
PHP | PHP | move middleware to route | cf0875a655ad68bdf3204615264086ab462dd9c9 | <ide><path>routes/api.php
<ide>
<ide> Route::get('/user', function (Request $request) {
<ide> return $request->user();
<del>});
<add>})->middleware('auth:api'); | 1 |
Javascript | Javascript | remove unused variables | 6a7012aaca42fcca32550cd7c04817bda76f70b3 | <ide><path>make.js
<ide> try {
<ide> }
<ide>
<ide> var builder = require('./external/builder/builder.js');
<del>var path = require('path');
<ide> var fs = require('fs');
<ide>
<ide> var CONFIG_FILE = 'pdfjs.config';
<ide><path>src/core/chunked_stream.js
<ide> * See the License for the specific language governing per... | 8 |
PHP | PHP | add some package helpers to service provider | 85ff8b3f8de7fd2795db44929217d08879ebd917 | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide> public function __construct($app)
<ide> */
<ide> abstract public function register();
<ide>
<add> /**
<add> * Register a view file namespace.
<add> *
<add> * @param string $namespace
<add> * @param string $path
<add> * @return void
<add> */
<add>... | 1 |
Javascript | Javascript | fix typo in common/wpt.js | 127da0f36bfbdb8adcc53da6b22b4c9eeed2f518 | <ide><path>test/common/wpt.js
<ide> class ResourceLoader {
<ide> /**
<ide> * Load a resource in test/fixtures/wpt specified with a URL
<ide> * @param {string} from the path of the file loading this resource,
<del> * relative to thw WPT folder.
<add> * relative to th... | 1 |
Text | Text | add guide for backporting prs | ece9ab55067c7d6ca20b8295eb0c1f2451e8729c | <ide><path>COLLABORATOR_GUIDE.md
<ide> LTS release.
<ide>
<ide> When you send your pull request, consider including information about
<ide> whether your change is breaking. If you think your patch can be backported,
<del>please feel free to include that information in the PR thread.
<add>please feel free to include th... | 2 |
Go | Go | add integration test for fqdn hostname | 950792dc6d26b6ec6d62579ada57570acedcd0ee | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunMountReadOnlyDevShm(c *check.C) {
<ide> c.Assert(out, checker.Contains, "Read-only file system")
<ide> }
<ide>
<add>// Test that passing a FQDN as hostname properly sets hostname, and
<add>// /etc/hostname. Test case for 29100
<add>f... | 1 |
PHP | PHP | simplify loops by indexing data in separate loops | 04ed50026b35bbb9e5c12bf53e67e62abf77a168 | <ide><path>src/ORM/Marshaller.php
<ide> protected function _belongsToMany(Association $assoc, array $data, $options = []
<ide> }
<ide>
<ide> if (isset($query)) {
<del> $queryData = $query->toArray();
<del> foreach ($queryData as $queryItem) {
<del> foreach ($data as... | 2 |
Javascript | Javascript | fix lint errors | 17fafd34321ea60025ab06cf647d4f5fb6842e15 | <ide><path>test/configCases/source-map/default-filename-extensions-css/webpack.config.js
<ide> module.exports = {
<ide> },
<ide> devtool: "source-map"
<ide> };
<del>
<ide><path>test/configCases/source-map/default-filename-extensions-js/webpack.config.js
<ide> module.exports = {
<ide> },
<ide> devtool: "source-map"
... | 3 |
Ruby | Ruby | fix regression when formula.tap is nil | 8fb6218d052cd7e33435ba88f3ecc38c62278e4c | <ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb
<ide> def use_correct_linux_tap(formula, args:)
<ide> end
<ide> end
<ide> end
<del> origin_branch = Utils.popen_read("git", "-C", formula.tap.path.to_s, "symbolic-ref", "-q", "--short",
<del> "refs/remotes/or... | 1 |
Ruby | Ruby | use a set and reject to avoid array allocations | c8b566d54da278a8e675115bcf2e9590f75f5eb5 | <ide><path>actionpack/lib/abstract_controller/rendering.rb
<ide> def rendered_format
<ide> Mime::TEXT
<ide> end
<ide>
<del> DEFAULT_PROTECTED_INSTANCE_VARIABLES = %w(
<add> require 'set'
<add>
<add> DEFAULT_PROTECTED_INSTANCE_VARIABLES = Set.new %w(
<ide> @_action_name @_response_body @_format... | 1 |
Javascript | Javascript | use correct size in test-stream-buffer-list | 2313424abc6f88b72630f79a483721dd0cd10c27 | <ide><path>test/parallel/test-stream-buffer-list.js
<ide> assert.strictEqual(emptyList.join(','), '');
<ide>
<ide> assert.deepStrictEqual(emptyList.concat(0), Buffer.alloc(0));
<ide>
<add>const buf = Buffer.from('foo');
<add>
<ide> // Test buffer list with one element.
<ide> const list = new BufferList();
<del>list.p... | 1 |
Javascript | Javascript | remove noassert argument | 81aaab75ca2ae04c4d0e07efd12e3a74aa306850 | <ide><path>benchmark/buffers/buffer-read-float.js
<ide> const common = require('../common.js');
<ide>
<ide> const bench = common.createBenchmark(main, {
<del> noAssert: ['false', 'true'],
<ide> type: ['Double', 'Float'],
<ide> endian: ['BE', 'LE'],
<ide> value: ['zero', 'big', 'small', 'inf', 'nan'],
<ide> mi... | 5 |
Javascript | Javascript | reduce scope of variable in common module | 03b8ac14e7cb535fc7a82188c666b5a2a38d00bc | <ide><path>test/common/index.js
<ide> exports.skipIf32Bits = function skipIf32Bits() {
<ide> }
<ide> };
<ide>
<del>const arrayBufferViews = [
<del> Int8Array,
<del> Uint8Array,
<del> Uint8ClampedArray,
<del> Int16Array,
<del> Uint16Array,
<del> Int32Array,
<del> Uint32Array,
<del> Float32Array,
<del> Float6... | 1 |
Text | Text | add v3.16.0-beta.1 to changelog | 1df3e992ed01bd9f97f302927bd596fdb82ee8a4 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.16.0-beta.1 (December 9, 2019)
<add>
<add>- [#18436](https://github.com/emberjs/ember.js/pull/18436) [DEPRECATION] Deprecate globals resolver per [RFC #331](https://github.com/emberjs/rfcs/blob/master/text/0331-deprecate-globals-resolver.md).
<add>
<ide... | 1 |
Java | Java | fix default accessibility delegate | d3f2f96f9373ea84975ff44b5c447ad3bcaf6edd | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityDelegateUtil.java
<ide> private AccessibilityDelegateUtil() {
<ide> }
<ide>
<ide> public static void setDelegate(final View view) {
<add> final String accessibilityHint = (String) view.getTag(R.id.accessibility_hint);
<add> final... | 1 |
Javascript | Javascript | simplify html wrappers | 0ea342a6a6dce793c1b0f14f051c2573f40f4e44 | <ide><path>src/manipulation.js
<ide> var
<ide> option: [ 1, "<select multiple='multiple'>", "</select>" ],
<ide>
<ide> thead: [ 1, "<table>", "</table>" ],
<add>
<add> // Some of the following wrappers are not fully defined, because
<add> // their parent elements (except for "table" element) could be omitted
<ad... | 2 |
Java | Java | remove unnecessary loop in serializabletypewrapper | a43ba052e94eb3b07ec9e407500e713d24e02b16 | <ide><path>spring-core/src/main/java/org/springframework/core/SerializableTypeWrapper.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may n... | 2 |
Java | Java | add guards around log statements | 50d38b72bdb091aba97e030f6143ee56e49c9708 | <ide><path>rxjava-contrib/rxjava-android/src/main/java/rx/operators/OperationObserveFromAndroidComponent.java
<ide> private OnSubscribeBase(Observable<T> source, AndroidComponent component) {
<ide> }
<ide>
<ide> private void log(String message) {
<del> Log.d(LOG_TAG, "componentRef = " + comp... | 1 |
Ruby | Ruby | fix wrong number of arguments | 265ab264fde4d07f391d7332514502870d2888b4 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(cmd, status:, output: nil)
<ide> s = "Failure while executing; `#{cmd.shelljoin.gsub(/\\=/, "=")}` exited with #{exitstatus}."
<ide>
<ide> unless [*output].empty?
<del> format_output_line = lambda do |type, line|
<add> format_output_line ... | 1 |
Python | Python | fix nan functions to allow sub-class | 56aa233a535263f309be2086f451a648d462d518 | <ide><path>numpy/lib/function_base.py
<ide> def place(arr, mask, vals):
<ide> def nansum(a, axis=None):
<ide> """Sum the array over the given axis, treating NaNs as 0.
<ide> """
<del> y = array(a)
<add> y = array(a,subok=True)
<ide> if not issubclass(y.dtype.type, _nx.integer):
<ide> y[isnan(a... | 1 |
Javascript | Javascript | fix bits of documentation | c7203f636e97d7fb7ba90c370ff2549effcf276c | <ide><path>packages/ember-routing/lib/router.js
<ide> var merge = function(original, hash) {
<ide> route: '/theBaseRouteForThisSet',
<ide>
<ide> indexSubRoute: Ember.Route.extend({
<del> route: '/',
<add> route: '/'
<ide> }),
<ide> ... | 1 |
PHP | PHP | add test case for __debuginfo throwing exception | bc8cceeb29fbf62401db841d5831d8b0110913eb | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> use TestApp\Error\TestDebugger;
<ide> use TestApp\Error\Thing\DebuggableThing;
<ide> use TestApp\Error\Thing\SecurityThing;
<add>use TestApp\Utility\ThrowsDebugInfo;
<ide>
<ide> /**
<ide> * DebuggerTest class
<ide> public function testExportVarDebugInfo()
<ide> ... | 2 |
Python | Python | fix loading models with pretrained vectors | 81f4005f3d9e4b0b09c34f0c12b6ffc464b961a2 | <ide><path>spacy/language.py
<ide> def from_disk(self, path, disable=tuple()):
<ide> """
<ide> path = util.ensure_path(path)
<ide> deserializers = OrderedDict((
<del> ('vocab', lambda p: self.vocab.from_disk(p)),
<add> ('meta.json', lambda p: self.meta.update(util.read_json... | 1 |
Javascript | Javascript | improve box3 closure performance | 7ea7d9db8968e446fff6a92573a4685293b1be70 | <ide><path>src/math/Box3.js
<ide> Object.assign( Box3.prototype, {
<ide>
<ide> intersectsSphere: ( function () {
<ide>
<del> var closestPoint;
<add> var closestPoint = new Vector3();
<ide>
<ide> return function intersectsSphere( sphere ) {
<ide>
<del> if ( closestPoint === undefined ) closestPoint = new Vect... | 1 |
PHP | PHP | remove unneeded service provider | 60d782a1bb25d8a9685261adb009cb5f6067b003 | <ide><path>config/app.php
<ide> Illuminate\Bus\BusServiceProvider::class,
<ide> Illuminate\Cache\CacheServiceProvider::class,
<ide> Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
<del> Illuminate\Routing\ControllerServiceProvider::class,
<ide> Illuminate\Coo... | 1 |
Javascript | Javascript | add combineurls helper | e253b0ef3ef17d900ec9d1814a4bba8e00c1c70b | <ide><path>lib/helpers/combineURLs.js
<add>'use strict';
<add>
<add>/**
<add> * Creates a new URL by combining the specified URLs
<add> *
<add> * @param {string} baseURL The base URL
<add> * @param {string} relativeURL The relative URL
<add> * @returns {string} The combined URL
<add> */
<add>module.exports = function c... | 2 |
Go | Go | fix testapiimagesdelete for --net none build | 5c86f311c88fafe87e08e58e2cd083fba127f95a | <ide><path>integration-cli/docker_api_images_test.go
<ide> func (s *DockerSuite) TestApiImagesSaveAndLoad(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestApiImagesDelete(c *check.C) {
<add> testRequires(c, Network)
<ide> name := "test-api-images-delete"
<ide> out, err := buildImage(name, "FROM hello-worl... | 1 |
Javascript | Javascript | copy all node_modules paths in one step | d3cfbf97f98d7b487f8458bbf83c2fbbfd5a3387 | <ide><path>script/lib/copy-assets.js
<ide> module.exports = function () {
<ide> path.join(CONFIG.repositoryRootPath, 'benchmarks', 'benchmark-runner.js'),
<ide> path.join(CONFIG.repositoryRootPath, 'dot-atom'),
<ide> path.join(CONFIG.repositoryRootPath, 'exports'),
<del> path.join(CONFIG.repositoryRootPa... | 1 |
Ruby | Ruby | handle recursive directory installs | 58cb4444da8f20e4e51800af253dedeadefc0edf | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def install_p src, new_basename = nil
<ide> dst = dst.to_s
<ide>
<ide> dst = yield(src, dst) if block_given?
<add> return unless dst
<ide>
<ide> mkpath
<ide>
<ide><path>Library/Homebrew/install_renamed.rb
<ide> module InstallRenamed
<ide> def inst... | 2 |
Java | Java | fix javadoc error in jdbcoperations | 4e522c0cc36f5d506d01e1906c70f1151bddf1b7 | <ide><path>org.springframework.jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
<ide> * As an alternative to a mock objects approach to testing data access code,
<ide> * consider the powerful integration testing support provided in the
<ide> * <code>org.springframework.test</code> package, shippe... | 1 |
Python | Python | add exception to catch single line private keys | e63dbdc431c2fa973e9a4c0b48ec6230731c38d1 | <ide><path>airflow/providers/ssh/hooks/ssh.py
<ide> def _pkey_from_private_key(self, private_key: str, passphrase: Optional[str] = N
<ide> :return: ``paramiko.PKey`` appropriate for given key
<ide> :raises AirflowException: if key cannot be read
<ide> """
<add> if len(private_key.split("\... | 2 |
Javascript | Javascript | make handling of nowarncode stricter | 41843e23f260eccf1e4a3be8ed9e429fa4b87ea5 | <ide><path>test/common/index.js
<ide> exports.isAlive = function isAlive(pid) {
<ide> }
<ide> };
<ide>
<del>exports.noWarnCode = 'no_expected_warning_code';
<add>exports.noWarnCode = undefined;
<ide>
<ide> function expectWarning(name, expected) {
<ide> const map = new Map(expected);
<ide> function expectWarning(n... | 3 |
PHP | PHP | fix lint errors + comment content | 62dd39133b5c2fab30977f2e509e7bbfb7287984 | <ide><path>lib/Cake/Console/Command/Task/TestTask.php
<ide> public function mapType($type, $plugin) {
<ide> /**
<ide> * Get the base class and package name for a given type.
<ide> *
<del> * @param string $package The package the class having a test
<del> * generated for is in.
<add> * @param string $type The type o... | 1 |
PHP | PHP | update mysqlconnector.php to support sphinx | c3fc09e4e56b700e390827153acf9d13d51596b9 | <ide><path>src/Illuminate/Database/Connectors/MySqlConnector.php
<ide> public function connect(array $config)
<ide> // is set on the server but needs to be set here on this client objects.
<ide> $charset = $config['charset'];
<ide>
<del> $names = "set names '$charset' collate '$collation'";
<add> $names = "set n... | 1 |
Python | Python | add test for custom data augmentation | c41a4332e4f21627db1a7c5e057c3cfd70f5fea7 | <ide><path>spacy/tests/training/test_training.py
<ide> from spacy.training.augment import create_orth_variants_augmenter
<ide> from spacy.lang.en import English
<ide> from spacy.tokens import Doc, DocBin
<del>from spacy.lookups import Lookups
<ide> from spacy.util import get_words_and_spaces, minibatch
<ide> from thinc... | 1 |
Text | Text | remove parenthetical in onboarding-extras | 45c7e03f400bbb0e7d037ae470d291bce2183155 | <ide><path>doc/onboarding-extras.md
<ide> need to be attached anymore, as only important bugfixes will be included.
<ide> to update from nodejs/node:
<ide>
<ide> * `git checkout master`
<del>* `git remote update -p` OR `git fetch --all` (I prefer the former)
<add>* `git remote update -p` OR `git fetch --all`
<ide> * `... | 1 |
Python | Python | fix searchfilter issues | 092d5223eb7ea1bbf9b6bb967200cb3725e02112 | <ide><path>rest_framework/filters.py
<ide> def get_search_terms(self, request):
<ide> Search terms are set by a ?search=... query parameter,
<ide> and may be comma and/or whitespace delimited.
<ide> """
<del> params = request.QUERY_PARAMS.get(self.search_param)
<add> params = reque... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.