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 |
|---|---|---|---|---|---|
Go | Go | set architecture to x86_64 by default | 5f69a53dba4b0e550ab29c7f2bf4277222927097 | <ide><path>graph.go
<ide> func (graph *Graph) Create(layerData Archive, container *Container, comment, aut
<ide> DockerVersion: VERSION,
<ide> Author: author,
<ide> Config: config,
<add> Architecture: "x86_64",
<ide> }
<ide> if container != nil {
<ide> img.Parent = container.Image | 1 |
Java | Java | add check for unused websocket sessions | a3fa9c979777e554efad0df429041767f05dfdb8 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java
<ide>
<ide> package org.springframework.web.socket.messaging;
<ide>
<add>import java.io.IOException;
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<ide> import java.util.HashSet;
<ide... | 2 |
PHP | PHP | increase entropy on session id generation | 83f94cf1a0425d2ad526646d743e51ab7f7825a2 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function setId($id)
<ide> */
<ide> protected function generateSessionId()
<ide> {
<del> return sha1(str_random(25).microtime(true));
<add> return sha1(uniqid(true).str_random(25).microtime(true));
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | fix signature of _write() in a comment | 85b74de9debab7515b04ae7be7c4fb69232a2f79 | <ide><path>lib/_stream_writable.js
<ide> // A bit simpler than readable streams.
<del>// Implement an async ._write(chunk, cb), and it'll handle all
<add>// Implement an async ._write(chunk, encoding, cb), and it'll handle all
<ide> // the drain event emission and buffering.
<ide>
<ide> 'use strict'; | 1 |
Go | Go | fix error name typo (errinvalidworikingdirectory) | d3150e0927043976b0b88bd61e50dc1e456fa77b | <ide><path>runconfig/parse.go
<ide> import (
<ide> )
<ide>
<ide> var (
<del> ErrInvalidWorikingDirectory = fmt.Errorf("The working directory is invalid. It needs to be an absolute path.")
<add> ErrInvalidWorkingDirectory = fmt.Errorf("The working directory is invalid. It needs to be an absolute path.")
<ide> ErrConf... | 1 |
PHP | PHP | use the accessor method instead of the property | fc23f747dd56a3643f4a2817edcaf196c9f98cb0 | <ide><path>Cake/ORM/Table.php
<ide> public function schema($schema = null) {
<ide> if ($this->_schema === null) {
<ide> $this->_schema = $this->connection()
<ide> ->schemaCollection()
<del> ->describe($this->_table);
<add> ->describe($this->table());
<ide> }
<ide> return $this->_schema;
<ide> ... | 1 |
Ruby | Ruby | move flash committing to the request object | d14caa300c8d3af1e04c37811ae81c7e5f596ab0 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def request_id=(id) # :nodoc:
<ide> set_header ACTION_DISPATCH_REQUEST_ID, id
<ide> end
<ide>
<add> def commit_flash
<add> session = self.session || {}
<add> flash_hash = self.flash_hash
<add>
<add> if flash_hash && (flash_h... | 2 |
Ruby | Ruby | teach postgresqladapter#reset! to actually reset | cc0d54bcc09a8ab834041787df69f6795a468b91 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def reconnect!
<ide>
<ide> def reset!
<ide> clear_cache!
<del> super
<add> reset_transaction
<add> unless @connection.transaction_status == ::PG::PQTRANS_IDLE
<add> @connection.query 'R... | 2 |
Java | Java | add completablefuture/single/promise support | f816cc6a516c324875fa409a33d288447c6996f7 | <ide><path>spring-web-reactive/src/main/java/org/springframework/reactive/codec/decoder/JsonObjectDecoder.java
<ide> import io.netty.buffer.Unpooled;
<ide> import org.reactivestreams.Publisher;
<ide> import reactor.fn.Function;
<add>import reactor.rx.Promise;
<ide> import reactor.rx.Streams;
<ide> import rx.Observable;... | 7 |
Python | Python | add a tool for release authors and prs | 529128134d92facd5728525c77a58397e87f0a38 | <ide><path>tools/announce.py
<add>#!/usr/bin/env python
<add># -*- encoding:utf-8 -*-
<add>"""
<add>Script to generate contribor and pull request lists
<add>
<add>This script generates contributor and pull request lists for release
<add>announcements using Github v3 protocol. Use requires an authentication token in
<ad... | 1 |
Go | Go | allow use of just image name without the tag | ce02578317d03ea04f40416db96b679a55b55451 | <ide><path>events/events.go
<ide> package events
<ide>
<ide> import (
<ide> "encoding/json"
<add> "strings"
<ide> "sync"
<ide> "time"
<ide>
<ide> func writeEvent(job *engine.Job, event *utils.JSONMessage, eventFilters filters.
<ide> if v == field {
<ide> return false
<ide> }
<add> if strings.Contains(f... | 2 |
Ruby | Ruby | add missing require | cfcb92f9eaf78daefe21335bcabf813842c0ab07 | <ide><path>activestorage/app/models/active_storage/identification.rb
<ide> # frozen_string_literal: true
<ide>
<add>require "net/http"
<add>
<ide> class ActiveStorage::Identification
<ide> attr_reader :blob
<ide> | 1 |
Java | Java | fix javadoc wording of onterminatedetach | ba1f40ffcfaed06bd69c1b9a810790cf47178c1f | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public final Flowable<T> onExceptionResumeNext(final Publisher<? extends T> next
<ide> * <dt><b>Scheduler:</b></dt>
<ide> * <dd>{@code onTerminateDetach} does not operate by default on a particular {@link Scheduler}.</dd>
<ide> * </dl>
<del> ... | 2 |
Javascript | Javascript | detect download filename based on full url | 228d253f30917381ecca68cb3f49d3086db94384 | <ide><path>web/app.js
<ide> var PDFViewerApplication = {
<ide> }
<ide>
<ide> var url = this.baseUrl;
<del> var filename = getPDFFileNameFromURL(url);
<add> // Use this.url instead of this.baseUrl to perform filename detection based
<add> // on the reference fragment as ultimate fallback if needed.
<ad... | 1 |
Python | Python | add placement_strategy option | f40ac9b151124dbcd87197d6ae38c85191d41f38 | <ide><path>airflow/providers/amazon/aws/operators/ecs.py
<ide> class ECSOperator(BaseOperator): # pylint: disable=too-many-instance-attributes
<ide> :param placement_constraints: an array of placement constraint objects to use for
<ide> the task
<ide> :type placement_constraints: list
<add> :param p... | 2 |
Java | Java | restore default transaction manager by name lookup | a79fe25917e38b0bf8ae1f11a80b22987e3be2df | <ide><path>spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java
<ide> protected PlatformTransactionManager determineTransactionManager(TransactionAttr
<ide> if (txAttr == null || this.beanFactory == null) {
<ide> return getTransactionManager();
<ide> }
<del> String q... | 2 |
Javascript | Javascript | use deterministic names for dynamic import | 68738d1c904476e9c99989ae5ee12a90c184fbc1 | <ide><path>server/build/babel/plugins/handle-import.js
<ide> // We've added support for SSR with this version
<ide> import template from 'babel-template'
<ide> import syntax from 'babel-plugin-syntax-dynamic-import'
<del>import UUID from 'uuid'
<add>import { dirname, resolve, sep } from 'path'
<add>import Crypto from '... | 2 |
Javascript | Javascript | remove timing metrics from transaction | 1c44b874fc63287c4ae159c5701d4f785429fffa | <ide><path>src/utils/Transaction.js
<ide> var invariant = require('invariant');
<ide> * +-----------------------------------------+
<ide> * </pre>
<ide> *
<del> * Bonus:
<del> * - Reports timing metrics by method name and wrapper index.
<del> *
<ide> * Use cases:
<ide> * - Preserving the input s... | 1 |
Python | Python | add test cases for rackspace | cb6acca45ce3f9f9af9bea177f6a5ca199c88dbb | <ide><path>test/test_rackspace.py
<ide> from libcloud.types import InvalidCredsException
<ide> from libcloud.providers import Rackspace
<ide> from libcloud.types import Provider
<add>from libcloud.base import Node, NodeImage, NodeSize
<ide>
<ide> from test import MockHttp
<ide> from secrets import RACKSPACE_USER, RACK... | 1 |
Python | Python | support vocab arg in spacy.blank | eff94067180e85529acc7814a9cc7e6fdc224f08 | <ide><path>spacy/__init__.py
<ide>
<ide> from .errors import Errors
<ide> from .language import Language
<add>from .vocab import Vocab
<ide> from . import util
<ide>
<ide>
<ide> def load(
<ide> def blank(
<ide> name: str,
<ide> *,
<add> vocab: Union[Vocab, bool] = True,
<ide> config: Union[Dict[str, A... | 1 |
Python | Python | add basic smoketest for cholesky | 77c873d55c3de5ee62664090727a84a7ebeebc2c | <ide><path>numpy/linalg/tests/test_linalg.py
<ide> def test_0_size(self):
<ide> class TestCholesky(object):
<ide> # TODO: are there no other tests for cholesky?
<ide>
<add> def test_basic_property(self):
<add> # Check A = L L^H
<add> shapes = [(1, 1), (2, 2), (3, 3), (50, 50), (3, 10, 10)]
<add> ... | 1 |
PHP | PHP | fix failing authcomponent test | 9fdc17eb1fbc401acbc9bb6bb486e29146b436e9 | <ide><path>lib/Cake/Test/Case/Controller/Component/AuthComponentTest.php
<ide> public function testLoginRedirect() {
<ide> $_SERVER['HTTP_REFERER'] = 'http://webmail.example.com/view/message';
<ide> $this->Auth->Session->delete('Auth');
<ide> $url = '/posts/edit/1';
<del> $this->Auth->request = $this->Controller... | 1 |
Javascript | Javascript | add comment about `outputsize` in res/server | 59cb05339412893d8245a0cd2f83cf5487d13030 | <ide><path>lib/_http_outgoing.js
<ide> utcDate._onTimeout = function() {
<ide> function OutgoingMessage() {
<ide> Stream.call(this);
<ide>
<add> // Queue that holds all currently pending data, until the response will be
<add> // assigned to the socket (until it will its turn in the HTTP pipeline).
<ide> this.out... | 2 |
Ruby | Ruby | use the strategy pattern to match request verbs | 0b476de445faf330c58255e2ec3eea0f3a7c1bfc | <ide><path>actionpack/lib/action_dispatch/journey/route.rb
<ide> class Route # :nodoc:
<ide>
<ide> attr_accessor :precedence
<ide>
<del> ANY = //
<add> module VerbMatchers
<add> VERBS = %w{ DELETE GET HEAD OPTIONS LINK PATCH POST PUT TRACE UNLINK }
<add> VERBS.each do |v|
<add> ... | 2 |
Text | Text | add link to video chat with @spicyj | 12bc80a6dc05773c0b5fb7f5c2191b7920f7f4f9 | <ide><path>CONTRIBUTING.md
<ide> Just make sure to run the whole test suite before submitting a pull request!
<ide>
<ide> **Working on your first Pull Request?** You can learn how from this *free* series [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-sour... | 1 |
Ruby | Ruby | add assertions to show test was mistaken | 78aa157d795452fa3f713daab884c8cc6d605c9b | <ide><path>activejob/test/cases/test_helper_test.rb
<ide> def test_assert_performed_with_does_not_change_jobs_count
<ide> HelloJob.perform_later
<ide> end
<ide>
<add> assert_equal 0, queue_adapter.enqueued_jobs.count
<ide> assert_equal 2, queue_adapter.performed_jobs.count
<ide> end
<ide>
<ide> def... | 1 |
Python | Python | change backend _ensure_not_eager error to warning | 26f24faed68c4a0a7053fb9ce2db382e5eaf0151 | <ide><path>celery/backends/base.py
<ide> import datetime
<ide> import sys
<ide> import time
<add>import warnings
<ide> from collections import namedtuple
<ide> from functools import partial
<ide> from weakref import WeakValueDictionary
<ide> def get_children(self, task_id):
<ide>
<ide> def _ensure_not_eager(self):... | 1 |
Ruby | Ruby | yield version list rather than recreate it | dd9346ada2a9730bd98432f9f77f3d3cc81b853f | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide>
<ide> module Homebrew extend self
<ide> def outdated
<del> outdated_brews do |f|
<add> outdated_brews do |f, versions|
<ide> if $stdout.tty? and not ARGV.flag? '--quiet'
<del> versions = f.rack.subdirs.map { |d| Keg.new(d).version }.sort
<ide> ... | 1 |
Text | Text | add @jimr for thanks! | 205c626d6ec472603207e12f8cf9deb3f00bf729 | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Will Kahn-Greene - [willkg]
<ide> * Kevin Brown - [kevin-brown]
<ide> * Rodrigo Martell - [coderigo]
<add>* James Rutherford - [jimr]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide>
... | 1 |
PHP | PHP | ensure both node() and aftersave() use ->name | 8c277b56123239459dcc5f046a2fbea78b0e18d0 | <ide><path>cake/libs/model/behaviors/acl.php
<ide> function afterSave(&$model, $created) {
<ide> }
<ide> $data = array(
<ide> 'parent_id' => isset($parent[0][$type]['id']) ? $parent[0][$type]['id'] : null,
<del> 'model' => $model->alias,
<add> 'model' => $model->name,
<ide> 'foreign_key' => $model->id
<id... | 1 |
Ruby | Ruby | fix syntax error introduced by | 09f64873cd76405fb4fb9b413d75d9827b814e85 | <ide><path>activemodel/lib/active_model/validations/confirmation.rb
<ide> def setup!(klass)
<ide> end
<ide>
<ide> def confimation_value_equal?(record, attribute, value, confirmed)
<del> if !options[:case_sensitive] && value.is_a? String
<add> if !options[:case_sensitive] && value.is_a?(String... | 1 |
Text | Text | fix a typo | d019f113f250b5d2ff7913de42877d78c93c91c6 | <ide><path>docs/recipes/UsingImmutableJS.md
<ide> Smart components that access the store via React Redux’s `connect` function mu
<ide>
<ide> ### Never use `toJS()` in `mapStateToProps`
<ide>
<del>Converting an Immutable.JS object to a JavaScript object using `toJS()` will return a new object every time. If you do thi... | 1 |
Ruby | Ruby | fix deterministic queries that were broken after | 5a6352c072b51fb67d179120aca43f35d4e9eb72 | <ide><path>activerecord/lib/active_record/encryption/extended_deterministic_queries.rb
<ide> def self.install_support
<ide> ActiveRecord::Relation.prepend(RelationQueries)
<ide> ActiveRecord::Base.include(CoreQueries)
<ide> ActiveRecord::Encryption::EncryptedAttributeType.prepend(ExtendedEncrypt... | 2 |
PHP | PHP | add stub handler | 4931af14006610bf8fd1f860cea1117c68133e94 | <ide><path>app/Exceptions/Handler.php
<ide> namespace App\Exceptions;
<ide>
<ide> use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
<add>use Throwable;
<ide>
<ide> class Handler extends ExceptionHandler
<ide> {
<ide> class Handler extends ExceptionHandler
<ide> */
<ide> public function regist... | 1 |
Javascript | Javascript | avoid duplicate isarray() | 15c6187aa5bacbf8cf2d71b4d93c0a4341e1a43e | <ide><path>lib/_http_client.js
<ide> function ClientRequest(options, cb) {
<ide> self.once('response', cb);
<ide> }
<ide>
<del> if (!Array.isArray(options.headers)) {
<add> var headersArray = Array.isArray(options.headers);
<add> if (!headersArray) {
<ide> if (options.headers) {
<ide> var keys = Obj... | 1 |
PHP | PHP | add default value for enable* methods | 2044ee1924e61694e56824627e83fc180a7bd46f | <ide><path>src/Database/Connection.php
<ide> public function rollback(?bool $toBeginning = null): bool
<ide> * @param bool $enable Whether or not save points should be used.
<ide> * @return $this
<ide> */
<del> public function enableSavePoints(bool $enable)
<add> public function enableSavePoints(bo... | 2 |
Javascript | Javascript | upgrade example to 0.4 | 73ceb5a401b9c1ab3066a5360d28f671d89684da | <ide><path>examples/ballmer-peak/example.js
<ide> var BallmerPeakCalculator = React.createClass({
<ide> getInitialState: function() {
<ide> return {bac: 0};
<ide> },
<del> handleChange: function() {
<del> this.setState({bac: this.refs.bac.getDOMNode().value});
<add> handleChange: function(event) {
<add> ... | 1 |
Ruby | Ruby | add missing require to metal/streaming.rb | 51d2db0a63529cfe6e7d7d0c620f10235c63ffe4 | <ide><path>actionpack/lib/action_controller/metal/streaming.rb
<add>require 'active_support/core_ext/file/path'
<add>
<ide> module ActionController #:nodoc:
<ide> # Methods for sending arbitrary data and for streaming files to the browser,
<ide> # instead of rendering. | 1 |
Text | Text | fix typo in assert.md | 9fc877890f11d0a31d310cb5fe3f0a22253aa25d | <ide><path>doc/api/assert.md
<ide> changes:
<ide> - v12.16.2
<ide> description: Changed "strict mode" to "strict assertion mode" and "legacy
<ide> mode" to "legacy assertion mode" to avoid confusion with the
<del> more usual meaining of "strict mode".
<add> mor... | 1 |
Text | Text | add 2.6.1 changelog info | b03759847fe171528e83a8d5aaf89b79aeda65e4 | <ide><path>CHANGELOG.md
<ide> - [#13424](https://github.com/emberjs/ember.js/pull/13424) [DEPRECATE] Deprecate Ember.Binding. See [the deprecation guide](http://emberjs.com/deprecations/v2.x/#toc_ember-binding) for more details.
<ide> - [#13599](https://github.com/emberjs/ember.js/pull/13599) [FEATURE] Enable `ember-ru... | 1 |
Python | Python | fix rst syntax errors in supervisor | ab4a572373c140a50ced0ac514326c017756d6b7 | <ide><path>celery/supervisor.py
<ide> MAX_RESTART_FREQ_TIME = 10
<ide>
<ide>
<del>def raise_ping_timeout():
<add>def raise_ping_timeout(msg):
<add> """Raises :exc:`multiprocessing.TimeoutError`, for use in
<add> :class:`threading.Timer` callbacks."""
<ide> raise TimeoutError("Supervised: Timed out while pin... | 1 |
Javascript | Javascript | use local references of angular helpers | bf61c1471da08d7eabeab797ada6731a901e5974 | <ide><path>src/ngResource/resource.js
<ide> angular.module('ngResource', ['ng']).
<ide> forEach = angular.forEach,
<ide> extend = angular.extend,
<ide> copy = angular.copy,
<add> isArray = angular.isArray,
<add> isDefined = angular.isDefined,
<ide> isFunction = ... | 1 |
Javascript | Javascript | improve test coverage for fs module | c24e9633fbc72fc8e0f8b6d1e93a2f30b884791c | <ide><path>test/parallel/test-fs-read.js
<ide> assert.throws(
<ide> code: 'ERR_INVALID_CALLBACK',
<ide> }
<ide> );
<add>
<add>assert.throws(
<add> () => fs.read(null, Buffer.alloc(1), 0, 1, 0),
<add> {
<add> message: 'The "fd" argument must be of type number. Received type object',
<add> code: 'ERR_INVALI... | 1 |
Ruby | Ruby | update documentation on sti change handling | 9ca98b54a407b80f61a900696902a4aa95cfc267 | <ide><path>activerecord/lib/active_record/base.rb
<ide> module ActiveRecord #:nodoc:
<ide> # the companies table with type = "Firm". You can then fetch this row again using
<ide> # <tt>Company.where(name: '37signals').first</tt> and it will return a Firm object.
<ide> #
<add> # Be aware that because the type col... | 1 |
Javascript | Javascript | create useperformancelogger hook | d87542ee4c241b3efc462708739f4593c7cf02e8 | <ide><path>Libraries/Utilities/PerformanceLoggerContext.js
<ide> */
<ide>
<ide> import * as React from 'react';
<add>import {useContext} from 'react';
<ide> import GlobalPerformanceLogger from './GlobalPerformanceLogger';
<ide> import type {IPerformanceLogger} from './createPerformanceLogger';
<ide>
<ide> const Perf... | 1 |
Python | Python | add progress bar | e4679cddced7d746427066a78e8079fb40e51528 | <ide><path>transformers/hf_api.py
<ide>
<ide> import os
<ide> from os.path import expanduser
<del>import six
<ide>
<ide> import requests
<add>import six
<ide> from requests.exceptions import HTTPError
<add>from tqdm import tqdm
<ide>
<ide> ENDPOINT = "https://huggingface.co"
<ide>
<ide> def presign_and_upload(self,... | 1 |
Javascript | Javascript | fix image width/height for zoomed viewport | c33b92036f8e81102e61f76bc8e378ffdae85ce9 | <ide><path>src/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> 0, -h, w, h);
<ide> if (this.imageLayer) {
<ide> var currentTransform = ctx.mozCurrentTransformInverse;
<del> var widthScale = Math.max(Math.abs(currentTransform[0]), 1);
<del> v... | 1 |
PHP | PHP | refactor the view class | 1e3188479a88e1b3b488d44fe8a482c573eda455 | <ide><path>system/view.php
<ide> public function get()
<ide> throw new \Exception("View [$view] does not exist.");
<ide> }
<ide>
<del> foreach ($this->data as &$data)
<del> {
<del> if ($data instanceof View or $data instanceof Response) $data = (string) $data;
<del> }
<add> $this->get_sub_views();
<ide>
<i... | 1 |
Ruby | Ruby | remove duplicate methods | 05d03a3909b4ae6771d016409fdbe17f4eae4c80 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def print_pull_requests_matching(query)
<ide> prs.each { |i| puts "#{i["title"]} (#{i["html_url"]})" }
<ide> end
<ide>
<del> def fetch_pull_requests(query, tap_full_name, state: nil)
<del> issues_for_formula(query, tap_full_name: tap_full_name, state: state).... | 1 |
Python | Python | add missing return statement | a436515196de60ea75ffa39b14a4a82551b79428 | <ide><path>rest_framework/compat.py
<ide> def get_related_model(field):
<ide> def value_from_object(field, obj):
<ide> if django.VERSION < (1, 9):
<ide> return field._get_val_from_obj(obj)
<del> field.value_from_object(obj)
<add> return field.value_from_object(obj)
<ide>
<ide>
<ide> # contrib.postgr... | 1 |
Text | Text | add return type of clientrequest.settimeout | 7e8d994e33b4d8b7ee6edb4231a6bea26278cf5a | <ide><path>doc/api/http.md
<ide> Once a socket is assigned to this request and is connected
<ide> * `timeout` {Number} Milliseconds before a request is considered to be timed out.
<ide> * `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
<ide>
<add>Retu... | 1 |
Text | Text | adjust css examples formatting | 012e93154b454798642e5c20776bb78cb301324f | <ide><path>guide/english/css/background-opacity/index.md
<ide> You have to add the following CSS property to achieve the transparency levels.
<ide> opacity:0.0;
<ide> }
<ide> ```
<add>
<ide> Alternatively you can use a transparent rgba value like this:
<ide> ```css
<del>
<ide> .class-name{
<ide> background-color: r... | 35 |
Python | Python | add streamlit example [ci skip] | 867e93aae2503abe08c10dd577b7dc5d592823f7 | <ide><path>examples/streamlit_spacy.py
<add># coding: utf-8
<add>"""
<add>Example of a Streamlit app for an interactive spaCy model visualizer. You can
<add>either download the script, or point streamlit run to the raw URL of this
<add>file. For more details, see https://streamlit.io.
<add>
<add>Installation:
<add>pip ... | 1 |
Python | Python | add call to super class in 'ftp' & 'ssh' providers | 74c2a6ded4d615de8e1b1c04a25146344138e920 | <ide><path>airflow/providers/ftp/hooks/ftp.py
<ide> class FTPHook(BaseHook):
<ide> """
<ide>
<ide> def __init__(self, ftp_conn_id='ftp_default'):
<add> super().__init__()
<ide> self.ftp_conn_id = ftp_conn_id
<ide> self.conn = None
<ide>
<ide><path>airflow/providers/ssh/hooks/ssh.py
<ide... | 2 |
Python | Python | add dataset tests | 7c3bf9d02fb58a65394185ba65c192e5bbfa12ef | <ide><path>tests/auto/test_datasets.py
<add>from __future__ import print_function
<add>import unittest
<add>from keras.datasets import cifar10, cifar100, reuters, imdb, mnist
<add>
<add>
<add>class TestDatasets(unittest.TestCase):
<add> def test_cifar(self):
<add> print('cifar10')
<add> (X_train, y_tra... | 1 |
Text | Text | clarify fd closing by `fs.readfile` etc | beea23af65deeb149fefe3fb3ae84f0a3eb7a197 | <ide><path>doc/api/fs.md
<ide> fs.appendFile('message.txt', 'data to append', 'utf8', callback);
<ide>
<ide> Any specified file descriptor has to have been opened for appending.
<ide>
<del>_Note: Specified file descriptors will not be closed automatically._
<add>_Note: If a file descriptor is specified as the `file`,... | 1 |
Text | Text | add text "$ ionic serve" to article | 3600b1f7a21408ede7ce6dd53f3811901dce1a7d | <ide><path>guide/portuguese/ionic/hello-world-in-ionic/index.md
<ide> Não entre em pânico, esses arquivos são gerados automaticamente pelo npm para
<ide> ```
<ide>
<ide>
<del> #### 7. Save the code and run
<add> #### 7. Salve o projeto e rode no terminal de sua preferência
<add>```shell
<add>$ ionic serve
<ide>... | 1 |
Go | Go | fix race within testrundisconnecttty | acb546cd1bf45a248f4bb51637c795ef63feb6cb | <ide><path>commands.go
<ide> func (srv *Server) CmdRun(stdin io.ReadCloser, stdout rcli.DockerConn, args ...s
<ide> }
<ide> Debugf("Waiting for attach to return\n")
<ide> <-attachErr
<del> container.Wait()
<ide> // Expecting I/O pipe error, discarding
<add>
<add> // If we are in stdinonce mode, wait for the process... | 2 |
Ruby | Ruby | update example outputs of some asset helpers | 65c3b1287e08efdc58065321efdd5b2ec150da41 | <ide><path>actionpack/lib/action_view/helpers/asset_tag_helper.rb
<ide> def favicon_link_tag(source='favicon.ico', options={})
<ide> }.merge(options.symbolize_keys))
<ide> end
<ide>
<del> # Computes the path to an image asset in the public images directory.
<add> # Computes the path to an image... | 1 |
Javascript | Javascript | change plnkr form to open in same window | 925b2080a0341d9348feeb4f492957a2e2c80082 | <ide><path>docs/app/src/examples.js
<ide> angular.module('examples', [])
<ide>
<ide> .factory('formPostData', ['$document', function($document) {
<ide> return function(url, fields) {
<del> var form = angular.element('<form style="display: none;" method="post" action="' + url + '" target="_blank"></form>');
<add> ... | 1 |
Python | Python | show parts of arrays if assert_array_*equal fails | 15a8c04d488e7fb362307165b2f98bba3a8a298b | <ide><path>scipy_test/testing.py
<ide> # These are used by Numeric tests.
<ide> # If Numeric and scipy_base are not available, then some of the
<ide> # functions below will not be available.
<del> from Numeric import alltrue,equal,shape,ravel,around,zeros,Float64,asarray
<add> from Numeric import all... | 1 |
Ruby | Ruby | use `resource#downloader` for `bottleloader` | 9ffc7dd46516e1d94ca4c386fc6006c61bd0e6ca | <ide><path>Library/Homebrew/formulary.rb
<ide> def initialize(bottle_name)
<ide> formula_name = File.basename(bottle_name)[/(.+)-/, 1]
<ide> resource = Resource.new(formula_name) { url bottle_name }
<ide> resource.specs[:bottle] = true
<del> downloader = CurlDownloadStrategy.new(resource.... | 2 |
PHP | PHP | fix cs errors | efaf3e20066879bdb8a6224ad407b11901ecea18 | <ide><path>tests/TestCase/Database/Driver/MysqlTest.php
<ide> public function testConnectionConfigCustom()
<ide> *
<ide> * @return void
<ide> */
<del> public function testIsConnected() {
<add> public function testIsConnected()
<add> {
<ide> $connection = ConnectionManager::get('test');
<... | 2 |
PHP | PHP | remove sample config file from cakephp tests | bdeafe8b1bb9757abc9fb90a560fc1794daa08eb | <ide><path>src/Core/Plugin.php
<ide> public static function load($plugin, array $config = [])
<ide> }
<ide> return;
<ide> }
<add>
<ide> if (!Configure::check('pluginPaths')) {
<del> Configure::load('plugins');
<add> try {
<add> Configure::load... | 2 |
Java | Java | use correct spans in shadow nodes | 9f1dab69c133841c8da3b67e0a8ded3891b12bb4 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java
<ide> private static class SetSpanOperation {
<ide> this.what = what;
<ide> }
<ide> public void execute(SpannableStringBuilder sb) {
<del> sb.setSpan(what, start, end, Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
<ad... | 2 |
PHP | PHP | add test for previous commit | 9ae6191dc19d093170af132b20b7fd8522ef55e7 | <ide><path>tests/TestCase/Routing/RouteBuilderTest.php
<ide> public function testNestedPrefix()
<ide> $this->assertNull($res);
<ide> }
<ide>
<add> /**
<add> * Test creating sub-scopes with prefix()
<add> *
<add> * @return void
<add> */
<add> public function testPathWithDotInPrefix()
<... | 1 |
Python | Python | fix incompatible usage of 'filter' in python3 | 81f89bc304504f2eab03faa25619cad9f121aa4a | <ide><path>research/object_detection/utils/variables_helper.py
<ide> def filter_variables(variables, filter_regex_list, invert=False):
<ide> a list of filtered variables.
<ide> """
<ide> kept_vars = []
<del> variables_to_ignore_patterns = filter(None, filter_regex_list)
<add> variables_to_ignore_patterns = li... | 1 |
Ruby | Ruby | fix spelling in encryptionschemestest | 97cf9c21fb9f43359af0d9dade3463e10d9b8bc6 | <ide><path>activerecord/test/cases/encryption/encryption_schemes_test.rb
<ide> class ActiveRecord::Encryption::EncryptionSchemesTest < ActiveRecord::Encryption
<ide> end
<ide>
<ide> assert_equal 2, encrypted_author_class.type_for_attribute(:name).previous_encrypted_types.count
<del> previoys_type_1, previoy... | 1 |
Python | Python | guard the unsafe tf.exp to prevent inf cost | 56e7526f5286d5ef61808f774c8c362b56beaae2 | <ide><path>research/lfads/lfads.py
<ide> def encode_data(dataset_bxtxd, enc_cell, name, forward_or_reverse,
<ide> if hps.output_dist == 'poisson':
<ide> log_rates_t = tf.matmul(factors[t], this_out_fac_W) + this_out_fac_b
<ide> log_rates_t.set_shape([None, None])
<del> rates[t] = di... | 2 |
Ruby | Ruby | use puma 3.7.x | bd163bdadf044e75a4812489d9f53a9feeb3cec7 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def database_gemfile_entry # :doc:
<ide> def webserver_gemfile_entry # :doc:
<ide> return [] if options[:skip_puma]
<ide> comment = "Use Puma as the app server"
<del> GemfileEntry.new("puma", "~> 3.0", comment)
<add> GemfileE... | 2 |
Python | Python | add control if no stats are available | 511d268a25c099f51529eb5fa7740d1c9a964735 | <ide><path>glances/outputs/glances_curses.py
<ide> def display(self, stats, cs_status="None"):
<ide> l += self.get_stats_display_width(stats_load) + self.get_stats_display_width(stats_mem) + self.get_stats_display_width(stats_memswap)
<ide> # Space between column
<ide> space_number = int(stats_l... | 1 |
Javascript | Javascript | improve markup consistency | 015111fd79609eb64ed56032617060c4ed4289f6 | <ide><path>src/ng/directive/ngTransclude.js
<ide> }]);
<ide> </script>
<ide> <div ng-controller="ExampleController">
<del> <input ng-model="title"><br>
<add> <input ng-model="title"> <br/>
<ide> <textarea ng-model="text"></textarea> <br/>
<ide> <pane title="{{tit... | 1 |
Javascript | Javascript | unify all track and tracklist apis | 49bed0703922073cf8a50421f7ae8a72428d173f | <ide><path>src/js/control-bar/audio-track-controls/audio-track-button.js
<ide> class AudioTrackButton extends TrackButton {
<ide> * The key/value store of player options.
<ide> */
<ide> constructor(player, options = {}) {
<del> options.tracks = player.audioTracks && player.audioTracks();
<add> opti... | 24 |
Python | Python | hide an log message in the glances cloud plugins | 635a652694b78a81c314029f68860bffa03458e6 | <ide><path>glances/plugins/glances_cloud.py
<ide> def msg_curse(self, args=None, max_width=None):
<ide> ret.append(self.curse_add_line(msg))
<ide>
<ide> # Return the message with decoration
<del> logger.info(ret)
<add> # logger.info(ret)
<ide> return ret
<ide>
<ide> | 1 |
Javascript | Javascript | fix documentation for adding view to containerview | 7a65598b71b66bf430d5f9937e8e1d80089ae449 | <ide><path>packages/ember-views/lib/views/container_view.js
<ide> var childViewsProperty = Ember.computed(function() {
<ide>
<ide> aContainer.get('childViews') // [aContainer.aView, aContainer.bView]
<ide> aContainer.get('childViews').pushObject(AnotherViewClass.create())
<del> aContainer.get('c... | 1 |
Javascript | Javascript | add callout style for a note | 60e80509a8f69a7fa750c3399b84bd0d4cc53855 | <ide><path>src/ng/directive/select.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> * be nested into the `<select>` element. This element will then represent the `null` or "not selected"
<ide> * option. See example below for demonstration.
<ide> *
<del> * Note: `ngOptions` provides iterator facility for `<o... | 1 |
Javascript | Javascript | improve transclusion documentation | 391d8c04da85347128bfd0a7d19f384d71f294e4 | <ide><path>src/ng/compile.js
<ide> * (because SVG doesn't work with custom elements in the DOM tree).
<ide> *
<ide> * #### `transclude`
<del> * compile the content of the element and make it available to the directive.
<del> * Typically used with {@link ng.directive:ngTransclude
<del> * ngTransclude}. The advantage ... | 1 |
Javascript | Javascript | fix typo of turobmodule to turbomodule | fc1ddb6128bfd9bf875066f1d040f685e0563bc7 | <ide><path>packages/babel-plugin-codegen/index.js
<ide> module.exports = function({parse, types: t}) {
<ide> * call.
<ide> */
<ide>
<del> // Disabling TurobModule processing for react-native-web NPM module
<add> // Disabling TurboModule processing for react-native-web NPM module... | 1 |
Ruby | Ruby | fix typo in callback deprecation message | 3d79da5009cd70d23961ddb4c9902e611000cc6f | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def set_callback(name, *filter_list, &block)
<ide> ActiveSupport::Deprecation.warn(<<-MSG.squish)
<ide> Passing string to be evaluated in :if and :unless conditional
<ide> options is deprecated and will be removed in ... | 1 |
Go | Go | fix logs with tty | 1f44fd8624d1de3f7e1e55880352faef2e141fb1 | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdLogs(args ...string) error {
<ide> return nil
<ide> }
<ide> name := cmd.Arg(0)
<add> body, _, err := cli.call("GET", "/containers/"+name+"/json", nil)
<add> if err != nil {
<add> return err
<add> }
<add>
<add> container := &Container{}
<add> err = json.Unmarsha... | 1 |
Ruby | Ruby | fix documentation from [ci skip] | 9f86780226c86fae30d59d04bd53449b8c7a1ad8 | <ide><path>activesupport/lib/active_support/core_ext/hash/keys.rb
<ide> def symbolize_keys!
<ide> end
<ide> alias_method :to_options!, :symbolize_keys!
<ide>
<del> # Ensures all the hash's keys are present in the supplied list of <tt>*valid_keys</tt>.
<del> # Raises an ArgumentError if any unexpected keys are en... | 1 |
Java | Java | remove bridge access from javatimermanager, again | 990c9ea5ec965dab06889d8ecdc93654d7d48746 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/JavaScriptTimerManager.java
<add>package com.facebook.react.modules.core;
<add>
<add>import com.facebook.react.bridge.WritableArray;
<add>
<add>/** An interface used by {@link JavaTimerManager} to access and call JS timers from Java. */
<add>public i... | 3 |
Python | Python | add python_requires to setup.py | fc7af715a2e410075afef5e61d554743576eac3f | <ide><path>setup.py
<ide> def run(self):
<ide> url='https://github.com/nicolargo/glances',
<ide> license='LGPLv3',
<ide> keywords="cli curses monitoring system",
<add> python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
<ide> install_requires=get_install_requires(),
<ide> extras_require=... | 1 |
Python | Python | fix typos in comment | eb7fd89d8651d07f7122018d4b5258180958c388 | <ide><path>celery/buckets.py
<ide> def put(self, job):
<ide> put_nowait = put
<ide>
<ide> def _get(self):
<del> # If the first queue is always returning
<del> # results it would never come to pick up items from the other
<del> # queues. So we always iterate over all the queus and put any r... | 1 |
Mixed | Python | add optimized shell sort | 45d3eabeb5f22624245095abdc044422bfe5eeea | <ide><path>DIRECTORY.md
<ide> * [Scoring Functions](machine_learning/scoring_functions.py)
<ide> * [Sequential Minimum Optimization](machine_learning/sequential_minimum_optimization.py)
<ide> * [Similarity Search](machine_learning/similarity_search.py)
<del> * [Support Vector Machines](machine_learning/support_v... | 2 |
Javascript | Javascript | add tests for multicompiler | 5da3c99584be4d914003e77a0fde5ebccbf4a8e0 | <ide><path>lib/MultiCompiler.js
<ide> */
<ide> var Tapable = require("tapable");
<ide> var async = require("async");
<del>var Stats = require("./Stats");
<del>
<del>function MultiWatching(watchings) {
<del> this.watchings = watchings;
<del>}
<del>
<del>MultiWatching.prototype.invalidate = function() {
<del> this.watchi... | 6 |
PHP | PHP | add test for saveall deep | 247f5522c60ea1bf9cd726a9e11e93685b177694 | <ide><path>lib/Cake/Test/Case/Model/ModelWriteTest.php
<ide> public function testSaveAllDeepHasManyBelongsTo() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add>/**
<add> * testSaveAllDeepHasManyhasMany method
<add> *
<add> * return @void
<add> */
<add> public function testSaveAllDeepHasManyHasMan... | 1 |
Python | Python | allow boolean subtract in histogram | e4e897fa1740ee4efaa276457debda9b8707b457 | <ide><path>numpy/lib/histograms.py
<ide> def _hist_bin_auto(x):
<ide> def _ravel_and_check_weights(a, weights):
<ide> """ Check a and weights have matching shapes, and ravel both """
<ide> a = np.asarray(a)
<add>
<add> # Ensure that the array is a "subtractable" dtype
<add> if a.dtype == np.bool_:
<add> ... | 2 |
Ruby | Ruby | resolve formulae in `brew cleanup` | 769d89deaddfa95bf9ea4a9ef977c8c68101a6e3 | <ide><path>Library/Homebrew/cleanup.rb
<ide> def clean!
<ide> else
<ide> args.each do |arg|
<ide> formula = begin
<del> Formula[arg]
<add> Formulary.resolve(arg)
<ide> rescue FormulaUnavailableError, TapFormulaAmbiguityError, TapFormulaWithOldnameAmbiguityError
<i... | 3 |
Ruby | Ruby | fix another false assertions | f8e26c8014ea57874b6d7580d95b1df555f0ad03 | <ide><path>activesupport/test/core_ext/duration_test.rb
<ide> def test_fractional_days
<ide>
<ide> def test_since_and_ago
<ide> t = Time.local(2000)
<del> assert t + 1, 1.second.since(t)
<del> assert t - 1, 1.second.ago(t)
<add> assert_equal t + 1, 1.second.since(t)
<add> assert_equal t - 1, 1.second... | 2 |
Go | Go | add dynamic veth name | 5428964400ece4cd79cc5d482307df5e8913469f | <ide><path>pkg/libcontainer/network/veth.go
<del>package network
<del>
<del>import (
<del> "fmt"
<del> "github.com/dotcloud/docker/pkg/libcontainer"
<del>)
<del>
<del>// SetupVeth sets up an existing network namespace with the specified
<del>// network configuration.
<del>func SetupVeth(config *libcontainer.Network, te... | 4 |
Ruby | Ruby | add a test for the rc commandline option | 2f11668eb844f6d7d64eaf4b4856d8a8b41e3a0c | <ide><path>railties/test/generators/argv_scrubber_test.rb
<ide> def test_new_homedir_rc
<ide> file.unlink
<ide> end
<ide>
<add> def test_new_rc_option
<add> file = Tempfile.new 'myrcfile'
<add> file.puts '--hello-world'
<add> file.flush
<add>
<add> message = nil
<add> ... | 1 |
Python | Python | fix mypy errors for google.cloud_build | d4c4f9e09ee8b0453ff8503c30274eeaa80e7fde | <ide><path>airflow/providers/google/cloud/hooks/cloud_build.py
<ide> def cancel_build(
<ide> project_id: str = PROVIDE_PROJECT_ID,
<ide> retry: Optional[Retry] = None,
<ide> timeout: Optional[float] = None,
<del> metadata: Optional[Sequence[Tuple[str, str]]] = None,
<add> metadata:... | 3 |
PHP | PHP | add relationship getters | 1ca55a1e5c2c0d3ba853998f1781cfa23bb9a646 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function getQualifiedRelatedPivotKeyName()
<ide> return $this->table.'.'.$this->relatedPivotKey;
<ide> }
<ide>
<add> /**
<add> * Get the parent key for the relationship.
<add> *
<add> * @return string
<add> ... | 4 |
Go | Go | remove interim build hacks from tests | b52c3ec4a45ee89d8ad713a16566fd470b4b5bf1 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildClearCmd(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestBuildEmptyCmd(c *check.C) {
<del> // Windows Server 2016 RS1 builds load the windowsservercore image from a tar rather than
<del> // a .WIM file, and the tar lay... | 2 |
Python | Python | start a eucalyptus driver | 7632bac47a96f95c8e5990eada084e6f44a3060a | <ide><path>libcloud/base.py
<ide> class ConnectionKey(object):
<ide> secure = 1
<ide> driver = None
<ide>
<del> def __init__(self, key, secure=True):
<add> def __init__(self, key, secure=True, host=None):
<ide> """
<ide> Initialize `user_id` and `key`; set `secure` to an C{int} based on
<... | 4 |
PHP | PHP | add swedish language | 8bcfd522339359c2ed417c18f8f1e27be2bc0c6b | <ide><path>application/language/sv/pagination.php
<add><?php
<add>
<add>return array(
<add>
<add> /*
<add> |--------------------------------------------------------------------------
<add> | Pagination Language Lines
<add> |--------------------------------------------------------------------------
<add> |
<add> | The ... | 2 |
PHP | PHP | apply fixes from styleci | 454c2b341a2662fb88bfc42cb030d422783e4bab | <ide><path>tests/Integration/Broadcasting/BroadcastManagerTest.php
<ide> use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
<ide> use Illuminate\Support\Facades\Broadcast;
<ide> use Illuminate\Support\Facades\Bus;
<del>use Illuminate\Support\Facades\Cache;
<ide> use Illuminate\Support\Facades\Queue;
<del>use Ill... | 1 |
Mixed | Javascript | move _writablestate.buffer to eol | 907c07fa850e128c695482cd47554b5bce5e4b0c | <ide><path>doc/api/deprecations.md
<ide> The `_linklist` module is deprecated. Please use a userland alternative.
<ide> ### DEP0003: `_writableState.buffer`
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/31165
<add> description: End-of-Life
<ide> - v... | 2 |
Text | Text | add semicolon for consistency | a32bd99181658216b8dee9eba47057bd68e1b296 | <ide><path>docs/introduction/ThreePrinciples.md
<ide> function todos(state = [], action) {
<ide> completed: true
<ide> }),
<ide> ...state.slice(action.index + 1)
<del> ]
<add> ];
<ide> default:
<ide> return state;
<ide> } | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.