content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
fix typo in redirect test
6ce21af8aa97951b0a760f553421ba95caf3fdbb
<ide><path>actionpack/test/controller/redirect_test.rb <ide> def test_redirect_with_header_break <ide> end <ide> <ide> def test_redirect_with_null_bytes <del> get :redirect_with_header_break <add> get :redirect_with_null_bytes <ide> assert_response :redirect <ide> assert_equal "http://test.host/lolwa...
1
Ruby
Ruby
add #clear to mem_cache_store, flushes all caches
4c3077183b91e3972b07e5488ce12e5b8a6b68a5
<ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb <ide> def delete_matched(matcher, options = nil) <ide> raise "Not supported by Memcache" <ide> end <ide> <add> def clear <add> @data.flush_all <add> end <add> <ide> private <ide> def expires_in(options) <i...
1
Text
Text
add tessian to list of companies using airflow
cff7d9194f549d801947f47dfce4b5d6870bfaaa
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Telia Company](https://www.teliacompany.com/en) <ide> 1. [Ternary Data](https://ternarydata.com/) [[@mhousley](https://github.com/mhousley), [@JoeReis](https://github.com/JoeReis)] <ide> 1. [Tesla](https://www.tesla.com/) [[@thoralf-gutier...
1
Ruby
Ruby
swap misnamed variables of arel with terms
c81d961921a3ecd96e280387ac48ed5919de1c13
<ide><path>activerecord/test/cases/arel/select_manager_test.rb <ide> def test_join_sources <ide> replies = Table.new(:replies) <ide> replies_id = replies[:id] <ide> <del> recursive_term = Arel::SelectManager.new <del> recursive_term.from(comments).project(comments_id, c...
1
Go
Go
move utils.testdirectory to pkg/testutil/tempfile
0ab9320ab28afbf62a8b81e5f151db908897df86
<ide><path>distribution/registry_unit_test.go <ide> package distribution <ide> <ide> import ( <add> "fmt" <add> "io/ioutil" <ide> "net/http" <ide> "net/http/httptest" <ide> "net/url" <ide> "os" <add> "runtime" <ide> "strings" <ide> "testing" <ide> <ide> "github.com/Sirupsen/logrus" <ide> "github.com/docker/do...
3
Javascript
Javascript
propagate nativeid in createanimatedcomponent
d1b695d343988b036137b50d4ceef8c0d0f8ba66
<ide><path>Libraries/Animated/createAnimatedComponent.js <ide> function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>( <ide> style={mergedStyle} <ide> ref={this._setComponentRef} <ide> nativeID={ <del> this._isFabric() ? 'animatedComponent' : undefined <add> ...
1
Ruby
Ruby
remove useless duplication in include test
7aae4e5e667e9d38a8db81e452841319b7c89ace
<ide><path>activesupport/test/concern_test.rb <ide> def test_module_is_included_normally <ide> @klass.send(:include, Baz) <ide> assert_equal "baz", @klass.new.baz <ide> assert @klass.included_modules.include?(ConcernTest::Baz) <del> <del> @klass.send(:include, Baz) <del> assert_equal "baz", @klass.new...
1
Javascript
Javascript
fix failure in test-icu-data-dir.js
a1ecdcfb154ec79db4da595ca85ce75f9f759c6a
<ide><path>test/parallel/test-icu-data-dir.js <ide> const assert = require('assert'); <ide> const { spawnSync } = require('child_process'); <ide> <ide> const expected = <del> 'could not initialize ICU ' + <del> '(check NODE_ICU_DATA or --icu-data-dir parameters)\n'; <add> 'could not initialize ICU (check NODE...
1
Python
Python
use new evaluation loop in trainerqa
936b57158ad2641390422274fed6ee6c2a685e15
<ide><path>examples/pytorch/question-answering/trainer_qa.py <ide> def evaluate(self, eval_dataset=None, eval_examples=None, ignore_keys=None): <ide> # Temporarily disable metric computation, we will do it in the loop here. <ide> compute_metrics = self.compute_metrics <ide> self.compute_metrics ...
1
Go
Go
fix login command
e6efbd659606386db4d0b83b98f9e189cf42595c
<ide><path>registry/service.go <ide> func (s *Service) Auth(job *engine.Job) engine.Status { <ide> authConfig.ServerAddress = endpoint.String() <ide> } <ide> <del> if _, err := Login(authConfig, HTTPRequestFactory(nil)); err != nil { <add> status, err := Login(authConfig, HTTPRequestFactory(nil)) <add> if err != ni...
1
PHP
PHP
use strict typing for i18n/formatter classes
9efb0e03a910de5d2a56d3168e449e4d4da4c7bb
<ide><path>src/I18n/Formatter/IcuFormatter.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> class IcuFormatter implements FormatterInterface <ide> ...
4
Javascript
Javascript
switch callsites over to update lane priority
431e76e2db39e74e25965027d67d69debdb7384a
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js <ide> import type { <ide> } from './ReactFiberHostConfig'; <ide> import type {Fiber} from './ReactInternalTypes'; <ide> import type {FiberRoot} from './ReactInternalTypes'; <del>import type {Lanes} from './ReactFiberLane.new'; <add>import type {LanePr...
7
Python
Python
remove duplicated code
197093bd7a455ce285b2415e45039cab83544269
<ide><path>numpy/linalg/linalg.py <ide> def _to_native_byte_order(*arrays): <ide> def _fastCopyAndTranspose(type, *arrays): <ide> cast_arrays = () <ide> for a in arrays: <del> if a.dtype.type is type: <del> cast_arrays = cast_arrays + (_fastCT(a),) <del> else: <del> cast_arra...
1
Python
Python
add unicode declaration
2df27db67190c799743266eede6d52471e1febe5
<ide><path>spacy/tests/regression/test_issue1518.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <ide> from ...vectors import Vectors <ide> <ide> def test_issue1518():
1
Ruby
Ruby
use string as keys
55f6c8c908fea2609cbc8503f8d87460fd1b16b4
<ide><path>activerecord/lib/active_record/enum.rb <ide> module Enum <ide> DEFINED_ENUMS = {} # :nodoc: <ide> <ide> def enum_mapping_for(attr_name) # :nodoc: <del> DEFINED_ENUMS[attr_name.to_sym] <add> DEFINED_ENUMS[attr_name.to_s] <ide> end <ide> <ide> def enum(definitions) <ide> def enum(de...
1
Javascript
Javascript
skip the test with proper tap message
cd3c478f70dd71b8aeb02e041f686fa44742d81b
<ide><path>test/parallel/test-setproctitle.js <ide> const common = require('../common'); <ide> <ide> // FIXME add sunos support <ide> if (common.isSunOS) { <del> console.log(`1..0 # Skipped: Unsupported platform [${process.platform}]`); <del> return; <add> return common.skip(`Unsupported platform [${process.platfor...
1
Ruby
Ruby
use nameerror for missing association model class
336fa481787b7c2d9976a21064a4c75a3558dbe9
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def compute_class(name) <ide> rescue NameError <ide> message = "Missing model class #{name} for the #{active_record}##{self.name} association." <ide> message += " You can specify a different model class with the :class_name option...
6
Python
Python
correct client.py complexity
ef1dbb3fefe48361ec320e4f91eee3d6f05b954d
<ide><path>glances/client.py <ide> def __init__(self, config=None, args=None, timeout=7, return_to_browser=False): <ide> <ide> # Build the URI <ide> if args.password != "": <del> uri = 'http://{0}:{1}@{2}:{3}'.format(args.username, args.password, <del> ...
1
Mixed
Ruby
move default uuid generation to active_record
f0323288da939f57641b82041cb1a86a1e526746
<ide><path>activerecord/CHANGELOG.md <ide> <ide> * Add ability to default to `uuid` as primary key when generating database migrations <ide> <del> Set `Rails.application.config.active_record.primary_key = :uuid` <del> or `config.active_record.primary_key = :uuid` in config/application.rb <add> config.gener...
5
Ruby
Ruby
avoid rack security warning no secret provided
cb3181e81e3a0e9d03450c7065fcc226e2e1731c
<ide><path>actionpack/lib/action_dispatch/middleware/session/abstract_store.rb <ide> def initialize(const_error) <ide> module Compatibility <ide> def initialize(app, options = {}) <ide> options[:key] ||= '_session_id' <add> # FIXME Rack's secret is not being used <add> options[:secret] |...
1
Go
Go
fix unmounting layer without merge dir
e1af6c8a5767e38957449a1d07e56104e317191b
<ide><path>daemon/graphdriver/overlay2/overlay.go <ide> import ( <ide> "github.com/docker/docker/pkg/mount" <ide> "github.com/docker/docker/pkg/parsers" <ide> "github.com/docker/docker/pkg/parsers/kernel" <del> "github.com/docker/go-units" <add> units "github.com/docker/go-units" <ide> <ide> "github.com/opencontai...
1
Python
Python
move ssd image to docker
17966c940aacf8a3a9edfae28bb9700a7f58bd1d
<ide><path>libnetwork/cmd/ssd/ssd.py <ide> def check_network(nw_name, ingress=False): <ide> <ide> if command == 'gossip-consistency': <ide> cspec = docker.types.ContainerSpec( <del> image='sanimej/ssd', <add> image='docker/ssd', <ide> args=[sys.argv[1], 'gossip-hash'], <id...
1
Python
Python
remove unused import
b59be258c0597db0b11b807ec07c7a061462c0d3
<ide><path>celery/worker/controllers.py <ide> from multiprocessing import get_logger <ide> import traceback <ide> import threading <del>import socket <ide> import time <ide> <ide>
1
Text
Text
update the maintenance policy for the next release
e165f7fa6044926796c9d9a8bb9a81bc78431d4f
<ide><path>guides/source/maintenance_policy.md <ide> from. <ide> In special situations, where someone from the Core Team agrees to support more series, <ide> they are included in the list of supported series. <ide> <del>**Currently included series:** `4.2.Z`, `4.1.Z` (Supported by Rafael França). <add>**Currently incl...
1
Javascript
Javascript
add challenge head/tail to contents on execute
73b5fd5797d8a99457d87d659b5dc288307a635d
<ide><path>client/sagas/execute-challenge-saga.js <ide> function cacheLink({ link } = {}, crossDomain = true) { <ide> <ide> <ide> const htmlCatch = '\n<!--fcc-->'; <del>const jsCatch = '\n;/*fcc*/'; <add>const jsCatch = '\n;/*fcc*/\n'; <ide> <ide> export default function executeChallengeSaga(action$, getState) { <id...
1
Javascript
Javascript
fix excessive toggles on the switch component
b782934f3f2a80ae7e3872cc7d7a610aa6680ec4
<ide><path>Libraries/Components/Switch/Switch.js <ide> class Switch extends React.Component<Props> { <ide> _nativeSwitchRef: ?React.ElementRef< <ide> typeof SwitchNativeComponent | typeof AndroidSwitchNativeComponent, <ide> >; <add> _lastNativeValue: ?boolean; <ide> <ide> render(): React.Node { <ide> co...
1
PHP
PHP
add throttlelogin localization support
bd583fedd73d5c5f3cd6308439c48e9cbca47433
<ide><path>resources/lang/en/passwords.php <ide> 'token' => 'This password reset token is invalid.', <ide> 'sent' => 'We have e-mailed your password reset link!', <ide> 'reset' => 'Your password has been reset!', <add> 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', <ide> ...
1
Go
Go
refine error message when save non-exist image
ed231d409501d1e496fbe2b2e31a279eb2998cf2
<ide><path>image/store.go <ide> func (is *store) Search(term string) (ID, error) { <ide> <ide> dgst, err := is.digestSet.Lookup(term) <ide> if err != nil { <add> if err == digest.ErrDigestNotFound { <add> err = fmt.Errorf("No such image: %s", term) <add> } <ide> return "", err <ide> } <ide> return ID(dgst), ...
2
PHP
PHP
fix issue with url parsing and /?
b7f6645cec8fddea9318a53c99b138b55b5fb23a
<ide><path>lib/Cake/Network/CakeRequest.php <ide> protected function _url() { <ide> $uri = substr($uri, strlen($base)); <ide> } <ide> if (strpos($uri, '?') !== false) { <del> $uri = parse_url($uri, PHP_URL_PATH); <add> list($uri) = explode('?', $uri, 2); <ide> } <ide> if (empty($uri) || $uri == '/' || $u...
2
Python
Python
fix indentation issue
caf3746678111e906182416603e8f26d7eab1094
<ide><path>src/transformers/benchmark/benchmark.py <ide> def compute_loss_and_backprob_encoder_decoder(): <ide> ) <ide> torch.cuda.reset_max_memory_cached() <ide> <del> # calculate loss and do backpropagation <del> _train() <...
1
Ruby
Ruby
use the -u switch for the `rails server` banner
bcc1207a8ebb730f6a86d1451e6c9089e5bfc89f
<ide><path>railties/lib/rails/commands/server/server_command.rb <ide> def pid <ide> end <ide> <ide> def self.banner(*) <del> "rails server [thin/puma/webrick] [options]" <add> "rails server -u [thin/puma/webrick] [options]" <ide> end <ide> <ide> def prepare_restart
1
Python
Python
fix url to lstm paper
767846e642dc73e421ac426380485fc3348c4f69
<ide><path>keras/layers/recurrent.py <ide> class LSTM(Recurrent): <ide> the linear transformation of the recurrent state. <ide> <ide> # References <del> - [Long short-term memory](http://deeplearning.cs.cmu.edu/pdfs/Hochreiter97_lstm.pdf) (original 1997 paper) <add> - [Long short-term mem...
1
Javascript
Javascript
serve worker.js from its actual relative path
8205c681eb214dd8155d4ab05c4189d55a6a9737
<ide><path>src/environment/__tests__/ReactWebWorker-test.js <ide> describe('ReactWebWorker', function() { <ide> var done = false; <ide> var error; <ide> <del> var worker = new Worker('/worker.js'); <add> var worker = new Worker(window.ReactWebWorker_URL || '/src/test/worker.js?_=' + Date.now().toString(3...
4
Ruby
Ruby
add additional test
3bdab156c298572cd540f81e4b2efad1dbcdbdd2
<ide><path>Library/Homebrew/test/cask/artifact/shared_examples/uninstall_zap.rb <ide> }; <ide> EOS <ide> end <add> let(:launchctl_list) do <add> <<~EOS <add> PID Status Label <add> 1111 0 my.fancy.package.service.12345 <add> - 0 com.apple.SafariHi...
1
Python
Python
fix loss computation in tfbertforpretraining
0094565fc5cbf468d45e0e3cb8a3a4db99fef7be
<ide><path>src/transformers/models/bert/modeling_tf_bert.py <ide> def hf_compute_loss(self, labels: tf.Tensor, logits: tf.Tensor) -> tf.Tensor: <ide> loss_fn = tf.keras.losses.SparseCategoricalCrossentropy( <ide> from_logits=True, reduction=tf.keras.losses.Reduction.NONE <ide> ) <add> ...
1
Ruby
Ruby
remove gist link from the code
adbe8b18b8eb7b50a2eb5ca925c39b6a3c100cf9
<ide><path>activesupport/lib/active_support/cache/memory_store.rb <ide> def synchronize(&block) # :nodoc: <ide> <ide> protected <ide> <del> # See https://gist.github.com/ssimeonov/6047200 <ide> PER_ENTRY_OVERHEAD = 240 <ide> <ide> def cached_size(key, entry)
1
Python
Python
set version to 2.1.0a3.dev0
c9f6acc564f52687b416189081990bfba157a819
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy-nightly' <del>__version__ = '2.1.0a2' <add>__version__ = '2.1.0a3.dev0' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ ...
1
Ruby
Ruby
prioritize tapdependency in parse_string_spec
ac16822a16bc1fb33ca020f26b74e81ff85028e9
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_spec(spec, tags) <ide> end <ide> <ide> def parse_string_spec(spec, tags) <del> if tags.empty? <add> if HOMEBREW_TAP_FORMULA_REGEX === spec <add> TapDependency.new(spec, tags) <add> elsif tags.empty? <ide> Dependency.new(spec, t...
1
Python
Python
move logic seperation as its not longer repetitive
abbb88886bb1cd6013432c70586fbc118d378e27
<ide><path>django/db/models/deletion.py <ide> def sort(self): <ide> self.data = SortedDict([(model, self.data[model]) <ide> for model in sorted_models]) <ide> <del> def send_post_delete_signals(self, model, instances): <del> if model._meta.auto_created: <del> ...
1
Java
Java
adjust activemq settings in integration tests
b727cdb120dcf08e76b8fd505cb63b37a7220935
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> public String getSessionId() { <ide> <ide> @Override <ide> public void afterConnected(TcpConnection<byte[]> connection) { <add> if (logger.isDebugEnabled()) { <add> logger.debug("Establ...
2
Ruby
Ruby
simplify internal representation of patches
a55e196f5f72ef0b1c829007c9b4a68de5c06ef0
<ide><path>Library/Homebrew/formula.rb <ide> def option name, description=nil <ide> specs.each { |spec| spec.option(name, description) } <ide> end <ide> <del> def patch strip=:p1, io=nil, &block <del> specs.each { |spec| spec.patch(strip, io, &block) } <add> def patch strip=:p1, src=nil, &block <a...
4
Mixed
Python
update language docs [ci skip]
625ce2db8e6edf132f5db2cf28a0737c1bdb8917
<ide><path>spacy/language.py <ide> def pipe_names(self): <ide> <ide> @property <ide> def pipe_labels(self): <del> """Get the labels set by the pipeline components, if available. <add> """Get the labels set by the pipeline components, if available (if <add> the component exposes a labels pr...
2
Text
Text
update nlp.vectors to nlp.vocab.vectors
90c754024f079e0b7842acb826cc253db17c3cb3
<ide><path>website/docs/api/vectors.md <ide> Check whether a key has been mapped to a vector entry in the table. <ide> > <ide> > ```python <ide> > cat_id = nlp.vocab.strings["cat"] <del>> nlp.vectors.add(cat_id, numpy.random.uniform(-1, 1, (300,))) <add>> nlp.vocab.vectors.add(cat_id, numpy.random.uniform(-1, 1, (300,)...
1
Javascript
Javascript
remove -o- prefix css
58198fc113c9dc30c88b56dd8fc44a30a4c58fee
<ide><path>examples/js/renderers/CSS3DRenderer.js <ide> THREE.CSS3DRenderer = function () { <ide> <ide> cameraElement.style.WebkitTransformStyle = 'preserve-3d'; <ide> cameraElement.style.MozTransformStyle = 'preserve-3d'; <del> cameraElement.style.oTransformStyle = 'preserve-3d'; <ide> cameraElement.style.transfor...
1
Java
Java
fix decoding issue in reactor tcpclient
ea274ebc0a355ffb499791a9abf1618b829c5edd
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompReactorNettyCodec.java <ide> */ <ide> package org.springframework.messaging.simp.stomp; <ide> <del>import org.springframework.messaging.tcp.reactor.ReactorNettyCodec; <add>import java.nio.ByteBuffer; <add>import java.util.List; <a...
5
Text
Text
recommend queuemicrotask over process.nexttick
ee6c467c8a7b451b4d785f0068f4e130de48ecc1
<ide><path>doc/api/process.md <ide> function definitelyAsync(arg, cb) { <ide> } <ide> ``` <ide> <add>### When to use `queueMicrotask()` vs. `process.nextTick()` <add> <add>The [`queueMicrotask()`][] API is an alternative to `process.nextTick()` that <add>also defers execution of a function using the same microtask que...
1
Python
Python
manage unicode decode error on windows os
7ce0383eae384957eb97032179d6da9f51c0f230
<ide><path>glances/plugins/glances_fs.py <ide> def __update__(self): <ide> # Grab the stats using the PsUtil disk_partitions <ide> # If 'all'=False return physical devices only (e.g. hard disks, cd-rom drives, USB keys) <ide> # and ignore all others (e.g. memory partitions such as /dev/shm) <del...
2
PHP
PHP
move tests to the class they belong with
5489813a20ead867654397b2b37474f66c8e727d
<ide><path>src/ORM/ResultSet.php <ide> protected function _groupResult($row) { <ide> } <ide> <ide> if (!$hasData) { <del> continue; <add> $results[$alias] = null; <ide> } <ide> } <ide> <del> if ($this->_hydrate && $assoc['canBeJoined']) { <add> if ($this->_hydrate && $results[$alias] !== nu...
4
Javascript
Javascript
add option to exclude error params from url
03a4782a35e036a6b1b4fc8137fae58f73f3bb6f
<ide><path>src/minErr.js <ide> */ <ide> <ide> var minErrConfig = { <del> objectMaxDepth: 5 <add> objectMaxDepth: 5, <add> urlErrorParamsEnabled: true <ide> }; <ide> <ide> /** <ide> var minErrConfig = { <ide> * * `objectMaxDepth` **{Number}** - The max depth for stringifying objects. Setting to a <ide> * non-p...
2
PHP
PHP
apply fixes from styleci
391d7d755c3678ab67c196c7a225176d4f0d8d41
<ide><path>src/Illuminate/Database/Schema/Grammars/RenameColumn.php <ide> protected static function getRenamedDiff($grammar, Blueprint $blueprint, Fluent <ide> protected static function setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column) <ide> { <ide> $tableDiff->renamedColumns = [ ...
1
Python
Python
remove doc prefix for version switcher
180d56b00481e99ab62d175a50c73e7bb8f77f1b
<ide><path>doc/source/conf.py <ide> def setup(app): <ide> elif ".dev" in version: <ide> switcher_version = "devdocs" <ide> else: <del> switcher_version = f"doc/{version}" <add> switcher_version = f"{version}" <ide> <ide> html_theme_options = { <ide> "github_url": "https://github.com/numpy/numpy",
1
Javascript
Javascript
execute backend challenges
d2618df4f3f030b45002472af253623299421acd
<ide><path>client/src/templates/Challenges/redux/execute-challenge-epic.js <ide> import { <ide> createMainFramer <ide> } from '../utils/frame.js'; <ide> <del>import { backend } from '../../../../utils/challengeTypes'; <add>import { challengeTypes } from '../../../../utils/challengeTypes'; <ide> <ide> const executeD...
1
PHP
PHP
fix session handling of booleans
aa9d374c8451576356b792c193eceefc8d0a96fa
<ide><path>src/Illuminate/Session/Store.php <ide> protected function ageFlashData() <ide> */ <ide> public function get($name, $default = null) <ide> { <del> return parent::get($name) ?: value($default); <add> $value = parent::get($name); <add> <add> return is_null($value) ? value($default) : $value; <ide> } <id...
1
Text
Text
improve best practices in onboarding-extras
536190f1747a1085c2dd208d0eed090f5ee32da0
<ide><path>doc/onboarding-extras.md <ide> to update from nodejs/node: <ide> * `git remote update -p` OR `git fetch --all` (I prefer the former) <ide> * `git merge --ff-only upstream/master` (or `REMOTENAME/BRANCH`) <ide> <del>## best practices <add>## Best practices <ide> <del>* commit often, out to your github fork ...
1
Ruby
Ruby
add test for type aliases
a87690b02c0d1b4387974114625696e7e113080f
<ide><path>actionpack/test/dispatch/mime_type_test.rb <ide> class MimeTypeTest < ActiveSupport::TestCase <ide> end <ide> end <ide> <add> test "custom type with type aliases" do <add> begin <add> Mime::Type.register "text/foobar", :foobar, ["text/foo", "text/bar"] <add> %w[text/foobar text/foo text/...
1
Go
Go
implement marshal/unmarshall for minversion
4539e7f0eb60720ab506500bf0829182ec183d28
<ide><path>profiles/seccomp/default_linux.go <ide> func DefaultProfile() *Seccomp { <ide> Names: []string{"ptrace"}, <ide> Action: specs.ActAllow, <ide> Includes: Filter{ <del> MinKernel: "4.8", <add> MinKernel: &KernelVersion{4, 8}, <ide> }, <ide> }, <ide> { <ide><path>profiles/seccomp/kernel_li...
6
PHP
PHP
apply fixes from styleci
9c96b4636848a80ca81831b3672b06e3451486aa
<ide><path>src/Illuminate/Collections/EnumeratesValues.php <ide> use Exception; <ide> use Illuminate\Contracts\Support\Arrayable; <ide> use Illuminate\Contracts\Support\Jsonable; <del>use Illuminate\Collections\Arr; <del>use Illuminate\Collections\Enumerable; <del>use Illuminate\Collections\HigherOrderCollectionProxy; ...
2
Python
Python
skip this test on windows
cb47d58ce8d49a1cad4d31b2554aea62728e7cc4
<ide><path>libcloud/test/test_utils.py <ide> def test_is_public_and_is_private_subnet(self): <ide> self.assertFalse(is_public) <ide> self.assertTrue(is_private) <ide> <add> @unittest.skipIf(platform.platform().lower() == 'windows', 'Unsupported on Windows') <ide> def test_is_valid_ip_add...
1
Ruby
Ruby
fix actionmailer tests broken by a69
da1a9203b42a67bb81d39319c7ecb99be48b20a3
<ide><path>actionmailer/test/base_test.rb <ide> def notify <ide> end <ide> end <ide> <del> assert_equal ["notify"], FooMailer.action_methods <add> assert_equal Set.new(["notify"]), FooMailer.action_methods <ide> end <ide> <ide> protected
1
Ruby
Ruby
handle unreadable bottle formula
83e2049636d023f8181badf844171fe4f9e5a29f
<ide><path>Library/Homebrew/formulary.rb <ide> def initialize(bottle_name) <ide> <ide> def get_formula(spec, **) <ide> contents = Utils::Bottles.formula_contents @bottle_filename, name: name <del> formula = Formulary.from_contents name, @bottle_filename, contents, spec <add> formula = begin <add> ...
1
Javascript
Javascript
use url constructor for combineurl
e362c3b8fcbd738578dc8f6f3d2050edbb26330d
<ide><path>src/shared/util.js <ide> function combineUrl(baseUrl, url) { <ide> if (!url) { <ide> return baseUrl; <ide> } <del> if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) { <del> return url; <del> } <del> var i; <del> if (url.charAt(0) === '/') { <del> // absolute path <del> i = baseUrl.indexOf('://'); <...
1
Python
Python
remove unsupported version [ci skip]
80d554f2e2813aea41b0889b39d8f30f648af1ad
<ide><path>setup.py <ide> def setup_package(): <ide> "Programming Language :: Python :: 2", <ide> "Programming Language :: Python :: 2.7", <ide> "Programming Language :: Python :: 3", <del> "Programming Language :: Python :: 3.4", <ide> "Pro...
1
Javascript
Javascript
make `syncwritestream` inherit from `writable`
a60f6078a17b92cd944635ce19cdd6710a04b1a4
<ide><path>lib/internal/fs.js <ide> 'use strict'; <ide> <ide> const Buffer = require('buffer').Buffer; <del>const Stream = require('stream').Stream; <add>const Writable = require('stream').Writable; <ide> const fs = require('fs'); <ide> const util = require('util'); <ide> const constants = process.binding('constants')...
2
Text
Text
update changelog with null_store default
732111b05faec567f4dec7d3dad5e9fc81b4efe8
<ide><path>railties/CHANGELOG.md <add>* Make :null_store the default store in the test environment. <add> <add> *Michael C. Nelson* <add> <ide> * Emit warning for unknown inflection rule when generating model. <ide> <ide> *Yoshiyuki Kinjo*
1
Ruby
Ruby
use reader method
b96411052ea23a6085788c18f7d19a24fa1c5b29
<ide><path>Library/Homebrew/formula.rb <ide> def patch <ide> # Explicitly request changing C++ standard library compatibility check <ide> # settings. Use with caution! <ide> def cxxstdlib_check check_type <del> @cxxstdlib << check_type <add> cxxstdlib << check_type <ide> end <ide> <ide> def self.method...
1
Python
Python
add 2.x version of mnist model to model garden
37c1202686338872f0df13e0393cb6ce3656e19d
<ide><path>official/vision/image_classification/mnist_main.py <add># Copyright 2018 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the Licen...
2
PHP
PHP
remove tests for deprecated code
e46714bda7f35cf7504a8b5381e69b4f50e7b8e7
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testSelectOrderByString() <ide> $result->closeCursor(); <ide> } <ide> <del> /** <del> * Test that order() works with an associative array which contains extra values. <del> * <del> * @return void <del> */ <del> pub...
2
Java
Java
consolidate txmgr lookup tests in the tcf
a42944d3644e7b3100445b463574b2a52e37aa1e
<ide><path>spring-test/src/test/java/org/springframework/test/context/junit4/spr9645/LookUpTxMgrByTypeAndDefaultNameTests.java <del>/* <del> * Copyright 2002-2019 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in c...
9
PHP
PHP
fix failing tests
7b0138aa7fcd81caf86981a1ae39748494424264
<ide><path>tests/TestCase/View/Helper/SessionHelperTest.php <ide> public function testFlash() <ide> <ide> $result = $this->Session->flash('notification'); <ide> $result = str_replace("\r\n", "\n", $result); <del> $expected = "<div id=\"notificationLayout\">\n\t<h1>Alert!</h1>\n\t<h3>Notice!</h3>...
1
Python
Python
try a hack to avoid warnings from docstrings
68b6c2d5d8553ead2ad278d0ce16d794c4a3776c
<ide><path>docs/conf.py <ide> # All configuration values have a default; values that are commented out <ide> # serve to show the default. <ide> <del>import sys, os <add>import os <add>import sys <ide> import subprocess <ide> <add>from sphinx.environment import BuildEnvironment <add> <add>from sphinx.ext.autodoc impor...
1
Python
Python
test previous commit
a79343f5b03407bba225a40e1383f515faee473d
<ide><path>tests/auto/test_loss_masking.py <add>import numpy as np <add>from keras.models import Sequential <add>from keras.layers.core import TimeDistributedDense, Masking <add> <add> <add>def test_cost_masking(): <add> X = np.array( <add> [[[1, 1], [2, 1], [3, 1], [5, 5]], <add> [[1, 5], [5, 0], [0,...
1
PHP
PHP
fix errors in mysqltest
2def930c7d25af73833c95da5d476b73c585dd15
<ide><path>tests/TestCase/Database/Driver/MysqlTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Database\Driver; <ide> <add>use Cake\Database\Connection; <ide> use Cake\Database\Driver\Mysql; <ide> use Cake\Datasource\ConnectionManager; <ide> use Cake\TestSuite\TestCase; <ide> public function testConnectionConfig...
1
Java
Java
use system.nanotime() in stopwatch
a532afb15d298f2114d6072f0d29138c89bda04f
<ide><path>spring-core/src/main/java/org/springframework/util/StopWatch.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 not use this fi...
2
Python
Python
fix deprecation warning for return_all_scores
22d37a9d2c685cc0d1ca33903fa9f00ca53a56a1
<ide><path>src/transformers/pipelines/text_classification.py <ide> def _sanitize_parameters(self, return_all_scores=None, function_to_apply=None, t <ide> postprocess_params["_legacy"] = False <ide> elif return_all_scores is not None: <ide> warnings.warn( <del> "`return_all...
1
Ruby
Ruby
recommend interactive usage of `fish_add_path`
00f209e16ed0698f10c8b8d03204f3d7e9850ce8
<ide><path>Library/Homebrew/test/utils/shell_spec.rb <ide> ENV["SHELL"] = "/usr/local/bin/fish" <ide> ENV["fish_user_paths"] = "/some/path" <ide> expect(described_class.prepend_path_in_profile(path)) <del> .to eq("echo 'fish_add_path #{path}' >> #{shell_profile}") <add> .to eq("fish_add_...
2
Ruby
Ruby
return fetched content in match_data
eedd108acec7e94724b226c85e7c651d9b9623ae
<ide><path>Library/Homebrew/livecheck/strategy/page_match.rb <ide> def self.find_versions(url, regex, provided_content = nil, &block) <ide> provided_content <ide> else <ide> match_data.merge!(Strategy.page_content(url)) <del> match_data.delete(:content) <add> matc...
1
PHP
PHP
add semi-colon onto padding to be safe
4f5cc0cd97676e5064b176cee7b0432df31ba975
<ide><path>laravel/response.php <ide> public static function jsonp($callback, $data, $status = 200, $headers = array() <ide> { <ide> $headers['Content-Type'] = 'application/javascript; charset=utf-8'; <ide> <del> return new static($callback.'('.json_encode($data).')', $status, $headers); <add> return new static($...
1
Javascript
Javascript
fix failing assertion
8c0290e0543af85ac82c243987d5996c00a16cc6
<ide><path>test/parallel/test-assert.js <ide> const circular = { y: 1 }; <ide> circular.x = circular; <ide> <ide> function testAssertionMessage(actual, expected, msg) { <del> try { <del> assert.strictEqual(actual, ''); <del> } catch (e) { <del> assert.strictEqual( <del> e.message, <del> msg || strict...
1
Python
Python
add torch.no_grad when in eval mode
bdd690a74da5283cbc893dfd79e1c7c72ec1bcfa
<ide><path>examples/pytorch/image-classification/run_image_classification_no_trainer.py <ide> def collate_fn(examples): <ide> model.eval() <ide> samples_seen = 0 <ide> for step, batch in enumerate(eval_dataloader): <del> outputs = model(**batch) <add> with torch.no_grad(): ...
4
Javascript
Javascript
fix template only components
8ef863f10275318241bc6cc33a7ff1517b052ce7
<ide><path>packages/ember/tests/component_registration_test.js <ide> import Controller from '@ember/controller'; <ide> import { Component } from 'ember-glimmer'; <ide> import { compile } from 'ember-template-compiler'; <ide> import { moduleFor, ApplicationTestCase } from 'internal-test-helpers'; <add>import { ENV } fro...
1
Javascript
Javascript
add support for custom @usage metadata
e05a97c6f5bcef1ae300c7d4181fcf2a34f0aab1
<ide><path>docs/src/ngdoc.js <ide> Doc.prototype = { <ide> dom.h('Usage', function() { <ide> dom.h('In HTML Template Binding', function() { <ide> dom.tag('code', function() { <del> dom.text('{{ '); <del> dom.text(self.shortName); <del> dom.text('_expression | '); <del> ...
1
Ruby
Ruby
rename it to datastreaming
7a152ab0127877eea6f2cef8ff6d1975a3fc16d4
<ide><path>actionpack/lib/action_controller.rb <ide> module ActionController <ide> autoload :Compatibility <ide> autoload :ConditionalGet <ide> autoload :Cookies <add> autoload :DataStreaming <ide> autoload :Flash <ide> autoload :ForceSSL <ide> autoload :Head <ide> module ActionController <id...
3
Javascript
Javascript
switch htmlvideoelement to constructor reference
f86e073f03aa504c11e272d40daf4ab6a6728483
<ide><path>src/js/media/html5.js <ide> vjs.Html5.canControlVolume = function(){ <ide> // Android 4.0 and above can play HLS to some extent but it reports being unable to do so <ide> if (vjs.ANDROID_VERSION >= 4.0) { <ide> if (!canPlayType) { <del> canPlayType = HTMLVideoElement.prototype.canPlayTyp...
1
Javascript
Javascript
raise hangup error on destroyed socket write
c9dcf5718cf47322b00f2994797aebb68d7ed0fb
<ide><path>lib/http.js <ide> OutgoingMessage.prototype._writeRaw = function(data, encoding) { <ide> <ide> if (this.connection && <ide> this.connection._httpMessage === this && <del> this.connection.writable) { <add> this.connection.writable && <add> !this.connection.destroyed) { <ide> // The...
2
Javascript
Javascript
accept classname in reactdomfiber
51f1205fb4fd6402b155202263ee12571ca4c3a6
<ide><path>src/renderers/dom/fiber/ReactDOMFiber.js <ide> var warning = require('warning'); <ide> type DOMContainerElement = Element & { _reactRootContainer: ?Object }; <ide> <ide> type Container = Element; <del>type Props = { }; <add>type Props = { className ?: string }; <ide> type Instance = Element; <ide> type Text...
1
Javascript
Javascript
expose promise instead of only $then
05772e15fbecfdc63d4977e2e8839d8b95d6a92d
<ide><path>src/ngResource/resource.js <ide> * requests with credentials} for more information. <ide> * - **`responseType`** - `{string}` - see {@link <ide> * https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#responseType requestType}. <add> * - **`interceptor`** - `{Object=}` - The interceptor ...
2
Text
Text
fix description of createdecipheriv
4927d94f4db8c5d8041f00e23b6e391151aba56d
<ide><path>doc/api/crypto.md <ide> recent OpenSSL releases, `openssl list-cipher-algorithms` will display the <ide> available cipher algorithms. <ide> <ide> The `key` is the raw key used by the `algorithm` and `iv` is an <del>[initialization vector][]. Both arguments must be `'utf8'` encoded strings or <del>[buffers][...
1
Python
Python
add project_urls to setup
0486b6d7692798dabd3bcafa20aa87ce28ae0b90
<ide><path>setup.py <ide> def setup_package(): <ide> url = "https://www.numpy.org", <ide> author = "Travis E. Oliphant et al.", <ide> download_url = "https://pypi.python.org/pypi/numpy", <add> project_urls={ <add> "Bug Tracker": "https://github.com/numpy/numpy/issues", <add> ...
1
Ruby
Ruby
pull the action methods directly onto the adapter
2815db356977b506f63d155aecf71ee010a64c62
<ide><path>actioncable/lib/action_cable/channel/streams.rb <ide> def stream_from(broadcasting, callback = nil) <ide> streams << [ broadcasting, callback ] <ide> <ide> EM.next_tick do <del> pubsub.subscribe(broadcasting, &callback).callback do |reply| <add> adapter.subscribe(broadcasti...
8
Ruby
Ruby
add tests for rubocop methods in line_cop.rb
b582ed513b3b28197369cb3cf808e9c4025ee581
<ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb <ide> def find_method_with_args(node, method_name, *args) <ide> # Matches a method with a receiver, <ide> # EX: to match `Formula.factory(name)` <ide> # call `find_instance_method_call(node, "Formula", :factory)` <add> # EX: to match `bui...
3
Go
Go
add error to docekr build --rm
a895c7238d3f32b22989c409a5a3b09aa3463054
<ide><path>buildfile.go <ide> type buildFile struct { <ide> func (b *buildFile) clearTmp(containers map[string]struct{}) { <ide> for c := range containers { <ide> tmp := b.runtime.Get(c) <del> b.runtime.Destroy(tmp) <del> fmt.Fprintf(b.outStream, "Removing intermediate container %s\n", utils.TruncateID(c)) <add> ...
1
Go
Go
promote overlay above vfs
2c72ff1dbfa83aa8f797bdfebaacb8a919677326
<ide><path>daemon/graphdriver/driver.go <ide> var ( <ide> "aufs", <ide> "btrfs", <ide> "devicemapper", <del> "vfs", <del> // experimental, has to be enabled manually for now <ide> "overlay", <add> "vfs", <ide> } <ide> <ide> ErrNotSupported = errors.New("driver not supported")
1
Ruby
Ruby
use rbconfig.ruby if it's available
83f2ee5aeabc55bc0806a7be168eaa272dc84ca5
<ide><path>Library/Homebrew/global.rb <ide> def mkpath <ide> <ide> HOMEBREW_TEMP = Pathname.new(ENV.fetch('HOMEBREW_TEMP', '/tmp')) <ide> <del>RUBY_BIN = Pathname.new(RbConfig::CONFIG['bindir']) <del>RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT'] <add>if RbConfig.respond_to?...
2
Python
Python
fix bad usage of namespace alias change
a2dc78f54f65fa67d6d02e9fcc563752efd67509
<ide><path>numpy/numarray/util.py <ide> class NumOverflowError(OverflowError, ArithmeticError): <ide> def handleError(errorStatus, sourcemsg): <ide> """Take error status and use error mode to handle it.""" <ide> modes = np.geterr() <del> if errorStatus & numpy.FPE_INVALID: <add> if errorStatus & np.FPE_IN...
1
Python
Python
avoid obscure error on certain non-image textures
504bdabe074d89e2c8dbd2dbcc2e020d17af7084
<ide><path>utils/exporters/blender/addons/io_three/exporter/api/texture.py <ide> def textures(): <ide> if mat.users == 0: <ide> continue <ide> for slot in mat.texture_slots: <del> if slot and slot.use and slot.texture.type == IMAGE: <add> if (slot and slot.use and <add>...
1
PHP
PHP
add functions for testing option requests
b8eda4b3270ed69b00db3f93209fa12563443f1b
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> public function deleteJson($uri, array $data = [], array $headers = []) <ide> return $this->json('DELETE', $uri, $data, $headers); <ide> } <ide> <add> /** <add> * Visit the given URI with a OPTION request. <add> * ...
1
Ruby
Ruby
use session= writer methods
f7d7dc5aa8a5facc357ed291819db23e3f3df9b6
<ide><path>actionpack/lib/action_controller/testing/process.rb <ide> def initialize(env = {}) <ide> super(Rack::MockRequest.env_for("/").merge(env)) <ide> <ide> @query_parameters = {} <del> @env['rack.session'] = TestSession.new <del> @env['rack.session.options'] = TestSession::DEFAULT_OPTIONS....
1
Javascript
Javascript
update chunk to files mapping when deleting assets
63ba54c10946ce8b016e5c8d8eb69cb5e6852fb5
<ide><path>lib/Compilation.js <ide> This prevents using hashes of each other and should be avoided.` <ide> } <ide> } <ide> } <add> // TODO If this becomes a performance problem <add> // store a reverse mapping from asset to chunk <add> for (const chunk of this.chunks) { <add> chunk.files.delete(file); <ad...
4
Ruby
Ruby
move pg float quoting to the correct location
d74e716b48b19a608a0445996cfcf17d304f289f
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb <ide> def unescape_bytea(value) <ide> @connection.unescape_bytea(value) if value <ide> end <ide> <del> # Quotes PostgreSQL-specific data types for SQL input. <del> def quote(value, column = nil) #:nodoc:...
1
Ruby
Ruby
pass connection rather than alias_tracker
80099618e44bdfdd3be2e104d006753b0ed809a4
<ide><path>activerecord/lib/active_record/associations/association_scope.rb <ide> def initialize(block) <ide> @block = block <ide> end <ide> <del> def bind_value(scope, column, value, alias_tracker) <del> substitute = alias_tracker.connection.substitute_at(column) <add> def bin...
1