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
Python
Python
fix the ordering bugs when using pickle_safe=true
ab6b82c2dbcf5ede7d2950eca1efe815f5c0df75
<ide><path>keras/engine/training.py <ide> <ide> import warnings <ide> import copy <del>import time <ide> import numpy as np <del>import multiprocessing <del>import threading <ide> import six <ide> <add>from keras.utils import Sequence <add>from keras.utils import GeneratorEnqueuer <add>from keras.utils import Ordered...
10
Javascript
Javascript
make fs.symlink() with no callback async
c381662cac0e897b4bfdb2c31cd3117c5ecd2130
<ide><path>lib/fs.js <ide> fs.readlinkSync = function(path) { <ide> fs.symlink = function(destination, path, type_, callback) { <ide> var type = (typeof(type_) == 'string' ? type_ : null); <ide> var callback_ = arguments[arguments.length - 1]; <del> callback = (typeof(callback_) == 'function' ? callback_ : null); ...
1
Python
Python
comment the seq2seq functions
4c81960b9bc0f553ddf800df16bb82804e162bcb
<ide><path>transformers/modeling_seq2seq.py <ide> def __init__(self, encoder, decoder): <ide> <ide> @classmethod <ide> def from_pretrained(cls, encoder_pretrained_model_name_or_path, decoder_pretrained_model_name_or_path, *model_args, **kwargs): <del> r""" Instantiates one of the base model classes of t...
1
Javascript
Javascript
fix warning without stack for ie9
1b2646a403a23556084189f055d75d68da2a6cd4
<ide><path>packages/shared/warningWithoutStack.js <ide> if (__DEV__) { <ide> 'message argument', <ide> ); <ide> } <add> if (args.length > 8) { <add> // Check before the condition to catch violations early. <add> throw new Error( <add> 'warningWithoutStack() currently supports at ...
1
Text
Text
fix an output example in repl.md
4936c411945f6e6cd369a348a9262b2e214bd299
<ide><path>doc/api/repl.md <ide> global or scoped variable, the input `fs` will be evaluated on-demand as <ide> <ide> The default evaluator will, by default, assign the result of the most recently <ide> evaluated expression to the special variable `_` (underscore). <add>Explicitly setting `_` to a value will disable t...
1
Ruby
Ruby
use original system function for gcc check
d9f1be7ef270458b38d9b41d64d0d807dbabd405
<ide><path>install_homebrew.rb <ide> def ohai *args <ide> def warn warning <ide> puts "#{Tty.red}Warning#{Tty.reset}: #{warning.chomp}" <ide> end <del> <del>alias :system_orig :system <ide> <ide> def system *args <del> abort "Failed during: #{args.shell_s}" unless system_orig *args <add> abort "Failed during: #{a...
1
Ruby
Ruby
reduce allocations in camelize inflector
73bc476cd0e0387b4041ad56f6ac54b9bbc5599c
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> def singularize(word, locale = :en) <ide> def camelize(term, uppercase_first_letter = true) <ide> string = term.to_s <ide> if uppercase_first_letter <del> string = string.sub(/^[a-z\d]*/) { |match| inflections.acronyms[match] ...
1
Javascript
Javascript
run all logbox tests
59ea81adb95e068f93231b22d0a91a5435be31d6
<ide><path>test/acceptance/ReactRefreshLogBox.test.js <ide> test('unterminated JSX', async () => { <ide> await cleanup() <ide> }) <ide> <del>test.only('conversion to class component (1)', async () => { <add>test('conversion to class component (1)', async () => { <ide> const [session, cleanup] = await sandbox() <id...
1
Python
Python
remove unused config hooks
3b23b4d7c08e3e61f7e1ff3b91a6626b2bcfd5e3
<ide><path>test/pseudo-tty/testcfg.py <ide> def RunCommand(self, command, env): <ide> self.context.GetTimeout(self.mode), <ide> env, <ide> True) <del> self.Cleanup() <ide> return test.TestOutput(self, <ide> full_command, <ide> ...
2
Javascript
Javascript
bring stream examples up-to-date
8b775c032c3738f7a8f04444165ad0936572afed
<ide><path>examples/stream/stack.js <ide> var n = 4, // number of layers <ide> data = d3.layout.stack()(stream_layers(n, m, .1)), <ide> color = d3.interpolateRgb("#aad", "#556"); <ide> <del>var p = 20, <del> w = 960, <del> h = 500 - .5 - p, <add>var margin = 20, <add> width = 960, <add> height = 50...
2
Ruby
Ruby
remove full_clone from coretap
6aa1695df1421d26ae8c536ddac00feb762a6a5b
<ide><path>Library/Homebrew/tap.rb <ide> def self.ensure_installed! <ide> end <ide> <ide> # CoreTap never allows shallow clones (on request from GitHub). <del> def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil) <add> def install(quiet: false, clone_target: nil, force_auto_upda...
1
Ruby
Ruby
allow leopard_64_or_later bottles
dd75dd8a25b6e60b4f87c2220335e5bd37b9cc0f
<ide><path>Library/Homebrew/os/mac/version.rb <ide> class Version < ::Version <ide> mountain_lion: "10.8", <ide> lion: "10.7", <ide> snow_leopard: "10.6", <add> leopard_64: "10.5", <ide> leopard: "10.5", <ide> tiger: "10.4", <ide> }.freeze
1
Python
Python
require thinc v6.11
f2fa8481c4573a55da7142cc133e5b456fa9c5dc
<ide><path>setup.py <ide> def setup_package(): <ide> 'murmurhash>=0.28,<0.29', <ide> 'cymem>=1.30,<1.32', <ide> 'preshed>=1.0.0,<2.0.0', <del> 'thinc>=6.10.1,<6.11.0', <add> 'thinc>=6.11.0,<6.12.0', <ide> 'plac<1.0.0,>=0.9.6',...
1
Text
Text
add aspectratio property to responsive doc
1ba06a26fddde17285072f3a446679e9388b382f
<ide><path>docs/general/responsive.md <ide> Chart.js provides a [few options](#configuration-options) to enable responsivene <ide> | `responsive` | `Boolean` | `true` | Resizes the chart canvas when its container does ([important note...](#important-note)). <ide> | `responsiveAnimationDuration` | `Number` | `0` | Durat...
1
Javascript
Javascript
fix markdown heading syntax
186c8cb9e411b893ac31e718d98948d5f448a099
<ide><path>src/ngAria/aria.js <ide> * Find out more information about each directive by reading the <ide> * {@link guide/accessibility ngAria Developer Guide}. <ide> * <del> * ##Example <add> * ## Example <ide> * Using ngDisabled with ngAria: <ide> * ```html <ide> * <md-checkbox ng-disabled="disabled"> <ide> * <...
1
PHP
PHP
fix broken options in fixturetask
77a820751815dc68771587650de407a06c36ca8e
<ide><path>src/Console/Command/Task/FixtureTask.php <ide> public function getOptionParser() { <ide> 'short' => 's', <ide> 'boolean' => true <ide> ])->addOption('records', [ <del> 'help' => __d('cake_console', 'Used with --count and <name>/all commands to pull [n] records from the live tables, where [n] is eit...
2
Python
Python
support partial labels with faster r-cnn
fc585957f779c3914f3bb94bdb6403a07a34a32d
<ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py <ide> class targets with the 0th index assumed to map to the background class. <ide> unmatched_class_label=tf.constant( <ide> [1] + self._num_classes * [0], dtype=tf.float32), <ide> gt_weights_batch=gro...
1
Ruby
Ruby
link rich text to owning record
69daf8f21dbceaa2414d17af46c5fd72e8d0050e
<ide><path>app/models/action_text/rich_text.rb <ide> class ActionText::RichText < ActiveRecord::Base <ide> <ide> serialize :body, ActionText::Content <ide> <add> belongs_to :record, polymorphic: true, touch: true <ide> has_many_attached :embeds <ide> <ide> after_save do
1
Ruby
Ruby
generate application_mailer.rb if it is missing
0b3ae023d27197417541932632055cd6be4810c4
<ide><path>actionmailer/lib/rails/generators/mailer/mailer_generator.rb <ide> class MailerGenerator < NamedBase <ide> <ide> def create_mailer_file <ide> template "mailer.rb", File.join('app/mailers', class_path, "#{file_name}_mailer.rb") <add> <add> unless File.exist?('app/mailers/application_mail...
3
Javascript
Javascript
add tests for search bar
2b5268305a280c12e9167d89c359b4915d2988a3
<ide><path>client/src/components/search/searchBar/SearchBar.js <ide> const mapDispatchToProps = dispatch => <ide> <ide> const placeholder = 'Search 5,000+ tutorials'; <ide> <del>class SearchBar extends Component { <add>export class SearchBar extends Component { <ide> constructor(props) { <ide> super(props); <id...
2
Javascript
Javascript
improve aces filmic tone mapping
74533eefd3ded6327ca08c3cae019947861a7f43
<ide><path>src/renderers/shaders/ShaderChunk/tonemapping_pars_fragment.glsl.js <ide> vec3 OptimizedCineonToneMapping( vec3 color ) { <ide> <ide> } <ide> <del>// source: https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/ <add>// source: https://github.com/selfshadow/ltc_code/blob/master/webgl/...
1
PHP
PHP
add missing "use" statement
6156ce17cabb8dad0e1b7173671c2c50301dfbb9
<ide><path>src/Http/Exception/BadRequestException.php <ide> */ <ide> namespace Cake\Http\Exception; <ide> <add>use Throwable; <add> <ide> /** <ide> * Represents an HTTP 400 error. <ide> */ <ide><path>src/Http/Exception/ConflictException.php <ide> */ <ide> namespace Cake\Http\Exception; <ide> <add>use Throwable; <...
12
Text
Text
add the closed parenthesis.
e4acd7db591c9cd77d960eab6ec60ab3361062df
<ide><path>readme.md <ide> Next.js can be deployed to other hosting solutions too. Please have a look at th <ide> <ide> Note: `NODE_ENV` is properly configured by the `next` subcommands, if absent, to maximize performance. if you’re using Next.js [programmatically](#custom-server-and-routing), it’s your responsibility...
1
Text
Text
use correct code block fences
193f727ba7fec70781ca389c86f2595ade935621
<ide><path>docs/creating-a-package.md <ide> snippets match a scope with the same specificity. <ide> If you're developing a new language grammar, you'll want to place your file in <ide> the _grammars_ directory. Each grammar is a pairing of two keys, `match` and <ide> `captures`. `match` is a regular expression identify...
1
Text
Text
fix examples in repl.md
8092fb0a59927159ec68c914771c6be484116203
<ide><path>doc/api/repl.md <ide> replServer.defineCommand('sayhello', { <ide> this.displayPrompt(); <ide> } <ide> }); <del>replServer.defineCommand('saybye', () => { <add>replServer.defineCommand('saybye', function saybye() { <ide> console.log('Goodbye!'); <ide> this.close(); <ide> }); <ide> without passing a...
1
Java
Java
reset view tag when recycling
bed977b17888ea79465f5060443add7d9d7d23d0
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java <ide> @Override <ide> protected T prepareToRecycleView(@NonNull ThemedReactContext reactContext, T view) { <ide> // Reset tags <add> view.setTag(null); <ide> view.setTag(R.id.pointer_enter, null); <ide> view.setTa...
1
Ruby
Ruby
remove unused string substitution
12f5158f098cdc714e826bfb0d3f722a1e9753c8
<ide><path>activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb <ide> def empty_insert_statement_value <ide> <ide> protected <ide> def select(sql, name = nil, binds = []) #:nodoc: <del> result = exec_query(sql, name, binds) <del> columns = result.columns.map { |column| <...
1
PHP
PHP
avoid paginate count when no results
88240b28748ecb96d5ecf63fa84dc7432461ad8d
<ide><path>lib/Cake/Controller/Component/PaginatorComponent.php <ide> public function paginate($object = null, $scope = array(), $whitelist = array()) <ide> $defaults = $this->getDefaults($object->alias); <ide> unset($defaults[0]); <ide> <del> if ($object->hasMethod('paginateCount')) { <add> if (!$results) { <ad...
1
Java
Java
add timeout and unit to timeoutexception message
6126752a3a26e084af4cd0e096d77b94ce2a8f94
<ide><path>src/main/java/io/reactivex/internal/observers/BlockingMultiObserver.java <ide> import io.reactivex.disposables.Disposable; <ide> import io.reactivex.internal.util.*; <ide> <add>import static io.reactivex.internal.util.ExceptionHelper.timeoutMessage; <add> <ide> /** <ide> * A combined Observer that awaits t...
17
Go
Go
fix faulty errcheck
639ab92f011245e17e9a293455a8dae1eb034022
<ide><path>daemon/graphdriver/overlay2/overlay.go <ide> func (d *Driver) Remove(id string) error { <ide> } <ide> <ide> // Get creates and mounts the required file system for the given id and returns the mount path. <del>func (d *Driver) Get(id, mountLabel string) (containerfs.ContainerFS, error) { <add>func (d *Driver...
1
Javascript
Javascript
fix typo in comment (accumlated → accumulated)
0eea5772486318c5b2922c8b36680cf4744615d6
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js <ide> function updateSimpleMemoComponent( <ide> // The pending lanes were cleared at the beginning of beginWork. We're <ide> // about to bail out, but there might be other lanes that weren't <ide> // included in the current rend...
2
Javascript
Javascript
add fs#writefilesync to the mock
b3fc64285eae3a510490aeace388b6ec22a11892
<ide><path>local-cli/util/__mocks__/fs.js <ide> <ide> 'use strict'; <ide> <add>const asyncify = require('async/asyncify'); <ide> const {EventEmitter} = require('events'); <ide> const {dirname} = require.requireActual('path'); <ide> const fs = jest.genMockFromModule('fs'); <add>const invariant = require('fbjs/lib/inva...
2
Javascript
Javascript
fix a todo and remove obsolete todos
541d2192cf0325f6b085a33828b40a0e5b23b76a
<ide><path>lib/url.js <ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { <ide> // http://a@b@c/ => user:a@b host:c <ide> // http://a@b?@c => user:a host:b path:/?@c <ide> <del> // v0.12 TODO(isaacs): This is not quite how Chrome does things. <del> // Review our test ca...
4
Text
Text
release notes for 1.3.0-rc.2
798ed3be213275d22d014b3b57c6c6aff5430c13
<ide><path>CHANGELOG.md <del># NOTICE: Pending Breaking Change <add><a name="1.3.0-rc.2"></a> <add># 1.3.0-rc.2 tactile-perception (2014-09-16) <ide> <del>The next 1.3.0 release candidate (1.3.0-rc.2) will contain a perf-related change that is likely to <del>introduce breakages in some applications. The change will af...
1
Javascript
Javascript
update viewconfigignore comment
e254073b1748e99f1a8aa7dfb4535b9b8d8efd3c
<ide><path>Libraries/NativeComponent/ViewConfigIgnore.js <ide> export function DynamicallyInjectedByGestureHandler<T: {...}>(object: T): T { <ide> } <ide> <ide> /** <del> * On iOS, ViewManager events declarations generate {eventName}: true entries <del> * in ViewConfig valueAttributes. In our Static ViewConfig infra, ...
1
PHP
PHP
remove some unused variables in functions
da9970de40d99e58843b27e9f01f56bfcf1789ff
<ide><path>src/Illuminate/Foundation/ViewPublisher.php <ide> public function publish($package, $source) <ide> */ <ide> public function publishPackage($package, $packagePath = null) <ide> { <del> list($vendor, $name) = explode('/', $package); <del> <del> $source = $this->getSource($package, $name, $packagePath ?: ...
1
Ruby
Ruby
fetch bottles with --retry
033964fe87afe7ee95837c4e0050d3c6253e03c2
<ide><path>Library/Homebrew/cmd/pull.rb <ide> def pull <ide> "https://api.bintray.com/content/homebrew/#{repo}/#{package}/#{version}/publish" <ide> puts <ide> sleep 2 <del> safe_system "brew", "fetch", "--force-bottle", f.name <add> safe_system "brew", "fetch"...
1
Text
Text
add a codetriage badge to freecodecamp
c38173c97621b9902ff3583e86eefe1a3712e30c
<ide><path>README.md <ide> [![Build Status](https://travis-ci.org/freeCodeCamp/freeCodeCamp.svg?branch=staging)](https://travis-ci.org/freeCodeCamp/freeCodeCamp) <ide> [![Pull Requests Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com) <ide> [![first-timers-only ...
1
Javascript
Javascript
correct typos in the test assertion
012bda75f1941eb60869be1e4b6606aa40b17024
<ide><path>test/unit/effects.js <ide> asyncTest("line-height animates correctly (#13855)", 12, function() { <ide> initial = initialHeight[ i ], <ide> height = jQuery( this ).height(); <ide> ok( height < initial, "hide " + label + ": upper bound; height: " + height + "; intitial: " + initial ); <del> ok( he...
1
Python
Python
remove use of ``reload`` from f2py. see gh-4139
9dbeb2ef07c0afadbe368a7e73baa428b3760816
<ide><path>numpy/f2py/crackfortran.py <ide> ignorecontains=1 <ide> dolowercase=1 <ide> debug=[] <del>## do_analyze = 1 <del> <del>###### global variables <del> <del>## use reload(crackfortran) to reset these variables <ide> <add># Global variables <ide> groupcounter=0 <ide> grouplist={groupcounter:[]} <ide> neededmodu...
2
Ruby
Ruby
fix relocation of duplicate `rpath`s
e8b5eb7e42c925b7cc10c78a029b8c70e4d7965b
<ide><path>Library/Homebrew/extend/os/mac/keg_relocate.rb <ide> def fixed_name(file, bad_name) <ide> def each_linkage_for(file, linkage_type, &block) <ide> links = file.method(linkage_type) <ide> .call <add> .uniq <ide> .reject { |fn| fn =~ /^@(loader_|executable_|r)...
1
Javascript
Javascript
correct fn parameters for js animation
b78b12976a952998216cd895862d388d6a2d56a4
<ide><path>src/ng/animate.js <ide> var $AnimateProvider = ['$provide', function($provide) { <ide> * <ide> * @description Performs an inline animation on the element which applies the provided to and from CSS styles to the element. <ide> * If any detected CSS transition, keyframe or JavaScript match...
1
PHP
PHP
increase memory margin
fbd1f7184f672be64b51ccdb9af3b47c0e84baf6
<ide><path>tests/TestCase/ORM/QueryRegressionTest.php <ide> public function testFormatResultsMemoryLeak() <ide> } <ide> gc_collect_cycles(); <ide> $endMemory = memory_get_usage() / 1024 / 1024; <del> $this->assertWithinRange($endMemory, $memory, 1.25, 'Memory leak in ResultSet'); <add> ...
1
PHP
PHP
add tests for new route caching
eca35179ed82a32ba90532ae21a08178581a461b
<ide><path>src/Illuminate/Routing/CompiledRouteCollection.php <ide> public function getByName($name) <ide> public function getByAction($action) <ide> { <ide> $attributes = collect($this->attributes)->first(function (array $attributes) use ($action) { <del> return $attributes['action']['contro...
4
Go
Go
fix a typo
17f39dcb4d33a4cd043949a0142f2e0deb972312
<ide><path>daemon/images/image_pull.go <ide> func (i *ImageService) PullImage(ctx context.Context, image, tag string, platfor <ide> // is a single-arch image, in which case (for backward compatibility), <ide> // we allow the image to have a non-matching architecture. The code <ide> // below checks for this situat...
1
PHP
PHP
improve doc comments
f4a260ede060354231e5c78a19202dbde50b6040
<ide><path>src/Error/ExceptionTrap.php <ide> * handler to handle fatal errors. When exceptions are trapped <ide> * they are 'rendered' using the defined renderers and logged <ide> * if logging is enabled. <add> * <add> * Exceptions will be logged, then call attached callbacks <add> * and finally render an error page...
2
Text
Text
add notes about more specific options for axes
42e85942a852d3082907e0a8eafb75d3b15e554a
<ide><path>docs/axes/cartesian/index.md <ide> module.exports = { <ide> <ide> ## Common Configuration <ide> <add>:::tip Note <add>These are only the common options supported by all cartesian axes. Please see the specific axis documentation for all the available options for that axis. <add>::: <add> <ide> !!!include(ax...
2
Python
Python
add update_zone method to linode dns driver
7e20b09d6b5b40b5d695b3ada3490e122bd7c872
<ide><path>libcloud/dns/drivers/linode.py <ide> def create_zone(self, domain, type='master', ttl=None, extra=None): <ide> extra=merged, driver=self) <ide> return zone <ide> <add> def update_zone(self, zone, domain=None, type=None, ttl=None, extra=None): <add> """ <add> Upda...
1
Java
Java
provide a flag to disable xml support
1e501f2583efd7521fe457453e5f866bcb8c509a
<ide><path>spring-beans/src/main/java/org/springframework/beans/PropertyEditorRegistrySupport.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * y...
10
PHP
PHP
fix tests around paths for windows
1b61a0c78787ec50d70cb96b514925c0cea4cc92
<ide><path>tests/TestCase/Core/AppTest.php <ide> public function testPathWithPlugins() { <ide> Plugin::load('TestPlugin'); <ide> <ide> $result = App::path('Controller', 'TestPlugin'); <del> $this->assertEquals($basepath . 'TestPlugin' . DS . 'Controller' . DS, $result[0]); <add> $this->assertPathEquals($basepath...
2
Go
Go
fix buildfile tests after rebase
49044a96089487b9df075fa972e83e4c05c7fae8
<ide><path>buildfile_test.go <ide> func TestVolume(t *testing.T) { <ide> pushingPool: make(map[string]struct{}), <ide> } <ide> <del> buildfile := NewBuildFile(srv, ioutil.Discard) <add> buildfile := NewBuildFile(srv, ioutil.Discard, false) <ide> imgId, err := buildfile.Build(mkTestContext(` <ide> from %s <ide> VOL...
1
Javascript
Javascript
change var to let
00000000fb5093730c82caf33737385029db7489
<ide><path>test/sequential/test-repl-timeout-throw.js <ide> child.stdin.write = function(original) { <ide> }(child.stdin.write); <ide> <ide> child.stdout.once('data', function() { <del> child.stdin.write('var throws = 0;'); <add> child.stdin.write('let throws = 0;'); <ide> child.stdin.write('process.on("exit",func...
1
Ruby
Ruby
add nil check in asset_path
42a1b0c7c31400c762e2f8d1aff16338bbe8d63d
<ide><path>actionview/lib/action_view/helpers/asset_url_helper.rb <ide> module AssetUrlHelper <ide> # asset_path "application", type: :stylesheet # => /assets/application.css <ide> # asset_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js <ide> def asset_path(so...
2
Javascript
Javascript
remove invalid @supports condition
b932eaf6a79d8fc3dd28bcd8e5e509a7fe06a4ac
<ide><path>web/pdf_print_service.js <ide> PDFPrintService.prototype = { <ide> this.pageStyleSheet = document.createElement("style"); <ide> const pageSize = this.pagesOverview[0]; <ide> this.pageStyleSheet.textContent = <del> // "size:<width> <height>" is what we need. But also add "A4" because <del> ...
1
Text
Text
update 6.x to 8.x in backporting wiki
ab35194cb0297a85de5384b529f2cc03293d93bb
<ide><path>doc/guides/backporting-to-release-lines.md <ide> commits be cherry-picked or backported. <ide> <ide> ## How to submit a backport pull request <ide> <del>For the following steps, let's assume that a backport is needed for the v6.x <del>release line. All commands will use the `v6.x-staging` branch as the tar...
1
PHP
PHP
update type_template constant value
9fab5a3c85188a626c9bf557c4a9d93ea756d79e
<ide><path>src/View/View.php <ide> class View implements EventDispatcherInterface <ide> * <ide> * @var string <ide> */ <del> public const TYPE_TEMPLATE = 'view'; <add> public const TYPE_TEMPLATE = 'template'; <ide> <ide> /** <ide> * Constant for view file type 'element'
1
Python
Python
add iops in the diskio plugin (issue #763)
16a62781e4e19ef0e3a3efa2c5dc44a673cf4fa2
<ide><path>glances/main.py <ide> def init_args(self): <ide> dest='byte', help='display network rate in byte per second') <ide> parser.add_argument('--diskio-show-ramfs', action='store_true', default=False, <ide> dest='diskio_show_ramfs', help='show RAM Fs ...
5
Javascript
Javascript
drop tests for removed isvirtual behaviors
a1bff0683604ee321f5acc10ea03d9d05ded0645
<ide><path>packages/ember-views/tests/views/view/virtual_views_test.js <del>import { get } from "ember-metal/property_get"; <del>import run from "ember-metal/run_loop"; <del>import jQuery from "ember-views/system/jquery"; <del>import EmberView from "ember-views/views/view"; <del> <del>var rootView, childView; <del> <de...
1
Ruby
Ruby
restore recursive tap search
af272e04c7167d348d2363a5e02bba4029b903c7
<ide><path>Library/Homebrew/formulary.rb <ide> class TapLoader < FormulaLoader <ide> def initialize tapped_name <ide> @tapped_name = tapped_name <ide> user, repo, name = tapped_name.split("/", 3).map(&:downcase) <del> path = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{user}-#{repo}/#{name}.rb") <add> ...
1
Javascript
Javascript
update jsm renderers
5da0acd70dd7060a68099b77b54b5c63fd8f4d71
<ide><path>examples/jsm/renderers/CSS2DRenderer.js <ide> import { <ide> Matrix4, <ide> Object3D, <del> REVISION, <ide> Vector3 <ide> } from "../../../build/three.module.js"; <ide> <ide> CSS2DObject.prototype.constructor = CSS2DObject; <ide> <ide> var CSS2DRenderer = function () { <ide> <del> console.log( 'THREE.C...
5
Text
Text
fix incorrect module name [ci skip]
0ae20627d5c65b259354b587cdcd1b67d64092ce
<ide><path>guides/source/api_app.md <ide> Some common modules you might want to add: <ide> and translation methods. <ide> - `ActionController::HttpAuthentication::Basic` (or `Digest` or `Token`): Support <ide> for basic, digest or token HTTP authentication. <del>- `AbstractController::Layouts`: Support for layouts ...
1
Javascript
Javascript
make process.mixin copy over undefined values
876b6d21832ece6c51021fe0acc1d31c2ad4e32a
<ide><path>src/node.js <ide> process.mixin = function() { <ide> , copy ); <ide> <ide> // Don't bring in undefined values <del> else if ( copy !== undefined ) <add> else <ide> target[ name ] = copy; <ide> <ide> } <ide><path>test/mjsunit/test-process-mixin.js <ide> var fakeDomElement = {deep: {no...
2
Go
Go
fix race condition between list and remove volume
800b9c5a2698aae5c43f42d4c9c1a41280b556a6
<ide><path>volume/store/store.go <ide> func (s *VolumeStore) List() ([]volume.Volume, []string, error) { <ide> <ide> s.locks.Lock(name) <ide> storedV, exists := s.getNamed(name) <del> if !exists { <del> s.setNamed(v, "") <del> } <add> // Note: it's not safe to populate the cache here because the volume may ha...
2
PHP
PHP
fix doc block
8f4592920dba0b6929f2034e836cee678ef63441
<ide><path>src/Database/Type/BinaryUuidType.php <ide> public function newId() <ide> * <ide> * @param null|string|resource $value The value to convert. <ide> * @param \Cake\Database\Driver $driver The driver instance to convert with. <del> * @return resource|null <add> * @return resource|string|nu...
1
Text
Text
fix typo in /api/dns.md
e511c0b9ed1c49a7021748f3eec25e6bece1fd17
<ide><path>doc/api/dns.md <ide> added: v15.0.0 <ide> Uses the DNS protocol to resolve `CAA` records for the `hostname`. The <ide> `addresses` argument passed to the `callback` function <ide> will contain an array of certification authority authorization records <del>available for the `hostname` (e.g. `[{critial: 0, iod...
1
Ruby
Ruby
convert pre/postflightblock test to spec
8155d27e5c11f9d0adfbb6c911d1c5d6b479aa53
<add><path>Library/Homebrew/cask/spec/cask/artifact/postflight_block_spec.rb <del><path>Library/Homebrew/cask/test/cask/artifact/postflight_block_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::Artifact::PostflightBlock do <ide> describe "install_phase" do <ide> it "calls ...
2
Mixed
Ruby
pass column to quote when copying a sqlite table
d3e5118e7d42a9425b843190380d12ed3ce1e5f9
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Fix quoting for sqlite migrations using copy_table_contents() with binary <add> columns. <add> <add> These would fail with "SQLite3::SQLException: unrecognized token" because <add> the column was not being passed to quote...
3
Javascript
Javascript
add basic popover with additional information
e421df81512839651092f107d00fc190b09e3d7a
<ide><path>fixtures/attribute-behavior/src/App.js <ide> function getRenderedAttributeValue(renderer, attribute, type) { <ide> container = document.createElement(containerTagName); <ide> } <ide> <add> let testValue; <ide> let defaultValue; <ide> try { <ide> const read = attribute.read || getProperty(attr...
1
Javascript
Javascript
get showupcomingchange from env.json
c6aa6ddbcdff2ed69c4cf69f15dc72684a5381fc
<ide><path>curriculum/getChallenges.js <ide> const { helpCategoryMap } = require('../client/utils/challengeTypes'); <ide> const { curriculum: curriculumLangs } = <ide> require('../config/i18n/all-langs').availableLangs; <ide> <add>const { showUpcomingChanges } = require('../config/env.json'); <add> <ide> const acces...
1
Text
Text
fix syntax typo in readme.md
6971556ab83a5a3edd2f99d322b0954499393d2b
<ide><path>README.md <ide> pip install transformers <ide> Here also, you first need to install one of, or both, TensorFlow 2.0 and PyTorch. <ide> Please refere to [TensorFlow installation page](https://www.tensorflow.org/install/pip#tensorflow-2.0-rc-is-available) and/or [PyTorch installation page](https://pytorch.org/...
1
Mixed
Python
add flax image captioning example
9f89fa02ed3fbb137ed8fce1d0ab196a07dc1141
<ide><path>examples/flax/image-captioning/README.md <add># Image Captioning (vision-encoder-text-decoder model) training example <add> <add>The following example showcases how to finetune a vision-encoder-text-decoder model for image captioning <add>using the JAX/Flax backend, leveraging 🤗 Transformers library's [Flax...
3
Mixed
Java
add overscrollmode prop to scrollview
12c486862896ca2391577410656dfc4580361fef
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ScrollView = React.createClass({ <ide> * @platform android <ide> */ <ide> scrollPerfTag: PropTypes.string, <add> <add> /** <add> * Used to override default value of overScroll mode. <add> * <add> * Possible values: <add> ...
4
Javascript
Javascript
improve performance of eventemitter.emit
c5f5f84a33967862036c7d87f4bbde6a59d3820a
<ide><path>lib/events.js <ide> 'use strict'; <ide> <ide> const { Math, Object, Reflect } = primordials; <add>const apply = Reflect.apply; <ide> <ide> var spliceOne; <ide> <ide> EventEmitter.prototype.emit = function emit(type, ...args) { <ide> return false; <ide> <ide> if (typeof handler === 'function') { <de...
1
PHP
PHP
fix typo in doc block
415724e94e696ce90755cf0374547982f26b9e07
<ide><path>src/Illuminate/Notifications/ChannelManager.php <ide> protected function shouldSendNotification($notifiable, $notification, $channel) <ide> * Queue the given notification instances. <ide> * <ide> * @param mixed $notifiables <del> * @param array[\Illuminate\Notifcations\Channels\Notifica...
1
Text
Text
add documentation for initializations and datasets
adb0b1db4c61a90bdaedc2f5e287e9683d41157a
<ide><path>docs/sources/datasets.md <add># Datasets <add> <add>## CIFAR10 small image classification <add> <add>`keras.datasets.cifar10` <add> <add>Dataset of 50,000 32x32 color images, labeled over 10 categories. <add> <add>### Usage: <add> <add>```python <add>(X_train, y_train), (X_test, y_test) = cifar10.load_data(t...
2
Text
Text
change windowscontainers.md to readme.md
213e49b8f1b80178da015bce2a9fdc3a0f541d9b
<ide><path>docs/contributing/software-req-win.md <ide> https://git-scm.com/download/win. <ide> ### 3. The machine must be configured to run containers <ide> <ide> For example, by following the quick start guidance at <del>https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start or http...
1
PHP
PHP
fix multi-model validators with deep & atomic
f250592feede6dd71fdef27d2d2a35cd0abae8c2
<ide><path>lib/Cake/Model/ModelValidator.php <ide> public function validateAssociated(&$data, $options = array()) { <ide> $data[$association] = $model->{$association}->data[$model->{$association}->alias]; <ide> } <ide> if (is_array($validates)) { <del> if (in_array(false, $validates, true)) { <add>...
2
PHP
PHP
add minor changes to http client
39f1da2756de9e5b6cf6e486d0000cf53ac3357a
<ide><path>src/Illuminate/Http/Client/Factory.php <ide> namespace Illuminate\Http\Client; <ide> <ide> use Closure; <add>use GuzzleHttp\Psr7\Response as Psr7Response; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\Macroable; <ide> use PHPUnit\Framework\Assert as PHPUnit; <add>use function GuzzleH...
4
Javascript
Javascript
fix more recent jscs failures
f3aeaf7727eda467b30a5f338824db2fd7baf42a
<ide><path>packages/ember-views/lib/views/view.js <ide> var EMPTY_ARRAY = []; <ide> @namespace Ember <ide> @extends Ember.CoreView <ide> */ <add>// jscs:disable validateIndentation <ide> var View = CoreView.extend( <ide> ViewStreamSupport, <ide> ViewKeywordSupport, <ide> var View = CoreView.extend( <ide> re...
2
Text
Text
add import rctbridge.h for event sending example
8df46c329ba41595fbaa09d13efeb0e4eb439fe9
<ide><path>docs/NativeModulesIOS.md <ide> Note that the constants are exported only at initialization time, so if you chan <ide> The native module can signal events to JavaScript without being invoked directly. The easiest way to do this is to use `eventDispatcher`: <ide> <ide> ```objective-c <add>#import "RCTBridge.h...
1
Text
Text
add suggestion for openssl only sec releases
1e5bafb9c8ba06835928064c55e274b592306eef
<ide><path>doc/contributing/security-release-process.md <ide> The current security stewards are documented in the main Node.js <ide> (Re-PR the pre-approved branch from nodejs-private/nodejs.org-private to <ide> nodejs/nodejs.org) <ide> <add> If the security release will only contain an OpenSSL update consider <a...
1
Javascript
Javascript
register logbox by default in dev
9b1845c3a09266fa4f28c4ec2c1eecb846895609
<ide><path>Libraries/ReactNative/AppRegistry.js <ide> const AppRegistry = { <ide> appParameters.fabric, <ide> showArchitectureIndicator, <ide> scopedPerformanceLogger, <add> appKey === 'LogBox', <ide> ); <ide> }, <ide> }; <ide> const AppRegistry = { <ide> <ide> ...
2
PHP
PHP
reverse a breaking addition in router
ab4bad7d2caf5535e6d3e65ce5937e4495853528
<ide><path>src/Illuminate/Routing/Route.php <ide> protected function extractOptionalParameters() <ide> public function middleware($middleware = null) <ide> { <ide> if (is_null($middleware)) { <del> $middlewares = (array) Arr::get($this->action, 'middleware', []); <del> <del> if (is...
1
Ruby
Ruby
change the operator
e486c8710ba32a428d1349b5bc46fdef96254aea
<ide><path>Library/Homebrew/extend/os/mac/search.rb <ide> def search_casks(string_or_regex) <ide> .search(string_or_regex) <ide> <ide> cask_names = Cask::Cask.all.map(&:full_name) <del> results |= DidYouMean::SpellChecker.new(dictionary: cask_names) <add> results += D...
1
Text
Text
add links to contributor github profiles
3dc1e92bf24d30885e695f99846f9ff9706004eb
<ide><path>CONTRIBUTORS.md <ide> <ide> This is a list of everyone who has made significant contributions to spaCy, in alphabetical order. Thanks a lot for the great work! <ide> <del>* Adam Bittlingmayer, @bittlingmayer <del>* Andreas Grivas, @andreasgrv <del>* Chris DuBois, @chrisdubois <del>* Christoph Schwienheer, ...
1
Javascript
Javascript
use simplified validator
f037d29abe1ebdfcb8b57528c1fa39d62197e8e6
<ide><path>lib/dgram.js <ide> Socket.prototype.bind = function(port_, address_ /* , callback */) { <ide> }; <ide> <ide> Socket.prototype.connect = function(port, address, callback) { <del> port = validatePort(port, 'Port', { allowZero: false }); <add> port = validatePort(port, 'Port', false); <ide> if (typeof addr...
1
Ruby
Ruby
remove duplicated tests
50318f5d7e0e829b835115190a495ffade4fc8ab
<ide><path>actionpack/test/controller/integration_test.rb <ide> def test_request_via_redirect_returns_status <ide> assert_equal 200, @session.request_via_redirect(:get, path, params: args, headers: headers) <ide> end <ide> <del> def test_get_via_redirect <del> path = "/somepath"; args = {:id => '1'}; headers...
1
PHP
PHP
set component alias name
c2cdb44f4819aac349452e33d469548bab4d7566
<ide><path>src/Illuminate/View/Compilers/ComponentTagCompiler.php <ide> protected function componentString(string $component, array $attributes) <ide> } <ide> <ide> return " @component('{$class}', [".$this->attributesToString($parameters, $escapeBound = false).']) <add><?php $component->withName(\''.$c...
3
Javascript
Javascript
relax expectations in test-icu-transcode
793c63073a187e1271797f4481d826e26ed63619
<ide><path>test/parallel/test-icu-transcode.js <ide> if (!common.hasIntl) <ide> <ide> const buffer = require('buffer'); <ide> const assert = require('assert'); <del>const orig = Buffer.from('tést €', 'utf8'); <add>const orig = Buffer.from('těst ☕', 'utf8'); <ide> <ide> // Test Transcoding <ide> const tests = { <del> ...
1
Javascript
Javascript
add glsl comments to explain the math a bit
40f015ffaf94421e1ac6378de9eed56bd5027161
<ide><path>src/renderers/shaders/ShaderChunk/morphnormal_vertex.glsl.js <ide> export default /* glsl */` <ide> #ifdef USE_MORPHNORMALS <ide> <add> // morphTargetBaseInfluence is set based on BufferGeometry.morphTargetsRelative value: <add> // When morphTargetsRelative is false, this is set to 1 - sum(influences); this...
2
Go
Go
add compareconfig test
48a892bee5270feea3d0e7b64963acb38dbd634b
<ide><path>utils_test.go <ide> func runContainer(r *Runtime, args []string, t *testing.T) (output string, err e <ide> return <ide> } <ide> <add>func TestCompareConfig(t *testing.T) { <add> config1 := Config{ <add> Dns: []string{"1.1.1.1", "2.2.2.2"}, <add> PortSpecs: []string{"1111:1111", "2222:2222"}, <add> ...
1
Javascript
Javascript
fix lint error
8c7808991c6bb7bbe96cc2bd1ac869515e461f8f
<ide><path>lib/optimize/ConcatenatedModule.js <ide> class ConcatenatedModule extends Module { <ide> if(moduleToInfoMap.get(this.rootModule).needCompatibilityFlag) { <ide> result.add(`Object.defineProperty(${this.rootModule.exportsArgument || "exports"}, "__esModule", { value: true });\n`); <ide> } <del> let gen...
1
Javascript
Javascript
set readable lwm to 0 by default
62dd04027b67f02856713e080651bb24b38206f8
<ide><path>lib/_stream_readable.js <ide> function ReadableState(options, stream) { <ide> // the minimum number of bytes to buffer before emitting 'readable' <ide> // default to pushing everything out as fast as possible. <ide> this.lowWaterMark = options.hasOwnProperty('lowWaterMark') ? <del> options.lowWate...
1
PHP
PHP
use the router for absolute urls
1eaaf6c59e8d614ae1991f2315cbccffa817e92c
<ide><path>src/Illuminate/Auth/Notifications/ResetPassword.php <ide> public function toMail($notifiable) <ide> return (new MailMessage) <ide> ->subject(Lang::get('Reset Password Notification')) <ide> ->line(Lang::get('You are receiving this email because we received a password reset requ...
2
Javascript
Javascript
add test case for holey array
226e8ce8fd9fee33e8d8b37dd4d7d9c24483b4f9
<ide><path>test/Validation.test.js <ide> describe("Validation", () => { <ide> - configuration.mode should be one of these: <ide> \\"development\\" | \\"production\\" | \\"none\\" <ide> -> Enable production optimizations or development hints." <add>`) <add> ); <add> <add> createTestCase( <add> "holey array", <ad...
1
Ruby
Ruby
add more test coverage to layouts
ce5538be68d186d414c3e21fef72b8815fc58bd6
<ide><path>actionview/test/actionpack/abstract/layouts_test.rb <ide> def index <ide> render :template => ActionView::Template::Text.new("Hello string!") <ide> end <ide> <add> def action_has_layout_false <add> render template: ActionView::Template::Text.new("Hello string!") <add> end <add...
1
Python
Python
reduce log verbosity in kubernetesexecutor.
b6c5189dadb9c09967ec53c8bca1832852c5500e
<ide><path>airflow/executors/kubernetes_executor.py <ide> <ide> import functools <ide> import json <add>import logging <ide> import multiprocessing <ide> import time <ide> from datetime import timedelta <ide> def _run( <ide> ) <ide> for event in list_worker_pods(): <ide> task = event['o...
1
Python
Python
fix overflowerror on win-amd64
58d41159f4c070fd9e43048d15ce176f2a619871
<ide><path>numpy/random/tests/test_regression.py <ide> def test_hypergeometric_range(self): <ide> (2**20 - 2, 2**20 - 2, 2**20 - 2), # Check for 32-bit systems <ide> ] <ide> is_64bits = sys.maxsize > 2**32 <del> if is_64bits: <add> if is_64bits and sys.platform != 'win32': <id...
1
Javascript
Javascript
add missing method invocation
178407da40b60267a672ff4f00cc1fe07924a3ea
<ide><path>local-cli/bundle/output/meta.js <ide> */ <ide> 'use strict'; <ide> <add>/* global Buffer: true */ <add> <ide> const crypto = require('crypto'); <ide> <ide> const isUTF8 = encoding => /^utf-?8$/i.test(encoding); <ide> <ide> const constantFor = encoding => <ide> /^ascii$/i.test(encoding) ? 1 : <ide> is...
1
Python
Python
set version to v2.2.0
d4b63bb6ddb6e2de344388fe1327e849e30612c5
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "2.2.0.dev18" <add>__version__ = "2.2.0" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mo...
1