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
use default_formula for bottles
a83baba8b50e29e680b89588ca19347ac0133608
<ide><path>Library/Homebrew/formula_installer.rb <ide> def check_requirements(req_map) <ide> raise UnsatisfiedRequirements, fatals <ide> end <ide> <del> def install_requirement_formula?(req, dependent, build) <del> req_dependency = req.to_dependency <add> def install_requirement_formula?(req_dependency, req...
3
Ruby
Ruby
fix merge conflicts for
4c42c89b0482f8ccde625e4d4699cd14f5f20afc
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def collation <ide> show_variable 'collation_database' <ide> end <ide> <del> def tables(name = nil) # :nodoc: <del> select_values("SHOW FULL TABLES", 'SCHEMA') <add> def tables(name = nil, datab...
2
Text
Text
update docs on object-level permissions
73019f91fe55f2ac16ce179917f686bf1a931597
<ide><path>docs/api-guide/permissions.md <ide> If any permission check fails an `exceptions.PermissionDenied` exception will be <ide> <ide> REST framework permissions also support object-level permissioning. Object level permissions are used to determine if a user should be allowed to act on a particular object, whic...
1
Ruby
Ruby
remove useless parens
0eefd8dc4884217e70ed99fb7d8ae272c7ce2d12
<ide><path>railties/test/railties/shared_tests.rb <ide> class CreateYaffles < ActiveRecord::Migration <ide> bukkits_migration_order = output.index(output.detect{|o| /NOTE: Migration 3_create_sessions.rb from bukkits has been skipped/ =~ o }) <ide> assert_not_nil yaffle_migration_order, "Expected migrati...
1
Javascript
Javascript
make better use of the built-in stability check
a0e85833a7438279ccd1a99dea3e8d6f78440d06
<ide><path>packages/ember-htmlbars/lib/keywords/component.js <ide> export default { <del> setupState: function(state, env, scope, params, hash) { <del> state.lastComponentPath = state.componentPath; <del> state.componentPath = env.hooks.getValue(params[0]); <del> }, <del> <del> isStable: function(state, env, s...
5
Javascript
Javascript
add mocks for packages to resolution responses
5ca519de299e6f0d34f795d314d2aa6fc6199ac4
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/ResolutionRequest.js <ide> class ResolutionRequest { <ide> ).then((dependencies) => [depNames, dependencies]) <ide> ).then(([depNames, dependencies]) => { <ide> if (allMocks) { <del> return mod.getName().the...
1
Javascript
Javascript
fix alphabetical order of loader examples
fd5934e6577ff6153bd33d746cf359f45a779764
<ide><path>examples/files.js <ide> var files = { <ide> "webgl_loader_mmd_pose", <ide> "webgl_loader_mmd_audio", <ide> "webgl_loader_nodes", <add> "webgl_loader_nrrd", <ide> "webgl_loader_obj", <ide> "webgl_loader_obj_mtl", <ide> "webgl_loader_obj2", <ide> "webgl_loader_obj2_meshspray", <ide> "webgl_loa...
1
Javascript
Javascript
remove reactdomnodecache and getdomnodeid
1d65f81b1617e339f36fad285bc45f805bb899f2
<ide><path>src/core/ReactDOMNodeCache.js <del>/** <del> * Copyright 2013 Facebook, Inc. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> * You may obtain a copy of the License at <del> * <del> * http://www.apac...
2
Python
Python
increase timeout for benchmark tests
cbcf86f23d266434e803d89353307580116380b1
<ide><path>tools/test.py <ide> def GetVm(self, arch, mode): <ide> <ide> def GetTimeout(self, mode, section=''): <ide> timeout = self.timeout * TIMEOUT_SCALEFACTOR[ARCH_GUESS or 'ia32'][mode] <del> if section == 'pummel': <add> if section == 'pummel' or section == 'benchmark': <ide> timeout = timeout ...
1
Javascript
Javascript
add descriptors to eachcomputedproperty
78b790f08c9c4a7797d595314d4226803f3d1e4b
<ide><path>packages/ember-runtime/lib/system/core_object.js <ide> var ClassMixinProps = { <ide> for (var name in proto) { <ide> property = proto[name]; <ide> <del> if (property instanceof ComputedProperty) { <add> if (property && property.isDescriptor) { <ide> properties.push({ <ide> ...
2
Ruby
Ruby
remove email support
11a421948d43210451a536fb40b8c10b838ff8c6
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> # --skip-setup: Don't check the local system is setup correctly. <ide> # --skip-homebrew: Don't check Homebrew's files and tests are all valid. <ide> # --junit: Generate a JUnit XML test results file. <del># --email: Generate an email subject file. <i...
1
Java
Java
construct moduleholder from reactmoduleinfo
54d8d10a6bb6267c0677d37e6b28c6428720536b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/NativeModuleRegistryBuilder.java <ide> public void processPackage(ReactPackage reactPackage) { <ide> ReactMarker.logMarker(ReactMarkerConstants.CREATE_MODULE_END); <ide> moduleHolder = new ModuleHolder(module); <ide> } else { <del> ...
3
Javascript
Javascript
prevent crash when backtrace doesn't come back
1f041fe73e73e69b0253deb0df58e856f3b650e1
<ide><path>lib/_debugger.js <ide> Client.prototype.reqEval = function(expression, cb) { <ide> <ide> // Otherwise we need to get the current frame to see which scopes it has. <ide> this.reqBacktrace(function(bt) { <add> if (!bt.frames) { <add> // ?? <add> cb({}); <add> return; <add> } <add> <id...
1
PHP
PHP
add space after question
ff579f49370a568f8b8ad948798bd76309e85753
<ide><path>src/Illuminate/Console/Command.php <ide> public function confirm($question, $default = true) <ide> { <ide> $dialog = $this->getHelperSet()->get('dialog'); <ide> <del> return $dialog->askConfirmation($this->output, "<question>$question</question>", $default); <add> return $dialog->askConfirmation($this-...
1
Mixed
Python
allow required false and default
cf5d401a0e60948ed0b3ad384c3f76fc30c3e222
<ide><path>docs/api-guide/fields.md <ide> The `default` is not applied during partial update operations. In the partial up <ide> <ide> May be set to a function or other callable, in which case the value will be evaluated each time it is used. When called, it will receive no arguments. If the callable has a `set_contex...
3
Ruby
Ruby
add a user_agent to testrequest
fe31f0e066ef8969366e692d21127a60a246d5a0
<ide><path>actionpack/lib/action_controller/test_process.rb <ide> def process_with_test(*args) <ide> class TestRequest < AbstractRequest #:nodoc: <ide> attr_accessor :cookies, :session_options <ide> attr_accessor :query_parameters, :request_parameters, :path, :session, :env <del> attr_accessor :host <add> ...
2
Ruby
Ruby
display full upgrade version
c309ed8d44f69ed211abd2a170f45935c3357f73
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> EOS <ide> message += if formula.outdated? && !formula.head? <ide> <<-EOS.undent <del> To upgrade to #{formula.version}, run `brew upgrade #{formula.name}` <add> To upgrade to #{formula.pkg_version}, run `brew ...
1
Text
Text
add review suggestions to require()
51cd9719b5fde5da973dcdbb196402b49f885c63
<ide><path>doc/api/modules.md <ide> added: v0.1.13 <ide> <ide> * {Function} <ide> <del>To require modules. <add>Used to import modules, `JSON`, and local files. Modules can be imported <add>from `node_modules`. Local modules and JSON files can be imported using <add>a relative path (e.g. `./`, `./foo`, `./bar/baz`, `...
1
Go
Go
add integration test for unix sock cleanup
16309bef6395a50ee2871780b81caed8bc6c498e
<ide><path>api/server/server.go <ide> func ServeApi(job *engine.Job) engine.Status { <ide> } <ide> job.Eng.OnShutdown(func() { <ide> if err := srv.Close(); err != nil { <del> log.Errorf("%s", err.Error()) <add> log.Error(err) <ide> } <ide> }) <del> chErrors <- srv.Serve() <add> if err = srv...
5
Javascript
Javascript
remove deregisternotifier feature for $watch
ce378f2582d3b73571b3db3eabfe89f596d48bea
<ide><path>src/ng/interpolate.js <ide> function $InterpolateProvider() { <ide> exp: text, //just for compatibility with regular watchers created via $watch <ide> separators: separators, <ide> expressions: expressions, <del> $$watchDelegate: function (scope, listener, objectEqualit...
4
Java
Java
reduce log level for @exceptionhandler failure
cdfcc23b6f1424f04e8273b3aa69fe185fb73dde
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java <ide> protected ModelAndView doResolveHandlerMethodException(HttpServletRequest reques <ide> exceptionHandlerMethod.invokeAndHandle(webRequest, mavContainer, exception, handlerMethod); ...
1
Javascript
Javascript
use async/await in tokenizedbuffer test
15a57287510521c26a597ff2e1b2a46a340fc659
<ide><path>spec/tokenized-buffer-spec.js <ide> const TokenizedBuffer = require('../src/tokenized-buffer') <ide> const TextBuffer = require('text-buffer') <ide> const {Point} = TextBuffer <ide> const _ = require('underscore-plus') <add>const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers')...
1
Javascript
Javascript
add common links to formvalidators regex
b2ec1a3ef48c49a774a7baa906bbd4691bf1d351
<ide><path>client/src/components/formHelpers/FormFields.js <ide> import { Field } from 'react-final-form'; <ide> import { <ide> editorValidator, <ide> localhostValidator, <del> composeValidators <add> composeValidators, <add> fCCValidator <ide> } from './FormValidators'; <ide> <ide> const propTypes = { <ide> fu...
3
PHP
PHP
update routingmiddleware tests
94ed2de21e93cd6454a69d94605c37c473a67d8f
<ide><path>tests/TestCase/Routing/Middleware/RoutingMiddlewareTest.php <ide> public function testInvokeScopedMiddleware() <ide> 'REQUEST_URI' => '/api/ping', <ide> ]); <ide> $response = new Response(); <del> $next = function ($req, $res) { <add> $next = function ($req, $res, $n...
1
Text
Text
add docs for service create based on plugins
62d399e8112caacad93829d8faa1c15dfc4f694c
<ide><path>docs/extend/index.md <ide> remove it, use the `docker plugin remove` command. For other available <ide> commands and options, see the <ide> [command line reference](../reference/commandline/index.md). <ide> <add>## Service creation using plugins <add> <add>In swarm mode, it is possible to create a service t...
1
Javascript
Javascript
avoid expensive work for filtered cached modules
b3e8245ce64aebbb688344a7f793e48a98072ef0
<ide><path>lib/stats/DefaultStatsFactoryPlugin.js <ide> const { makePathsRelative, parseResource } = require("../util/identifier"); <ide> * @property {ExtractorsByOption<ExtendedAsset>} asset <ide> * @property {ExtractorsByOption<{ name: string, chunkGroup: ChunkGroup }>} chunkGroup <ide> * @property {ExtractorsByOp...
1
Python
Python
improve docs for searchsorted
317ff845c7fc92bcab9e713e38f24cc898223f70
<ide><path>numpy/core/fromnumeric.py <ide> def searchsorted(a, v, side='left', sorter=None): <ide> corresponding elements in `v` were inserted before the indices, the <ide> order of `a` would be preserved. <ide> <add> Assuming that `a` is sorted: <add> <add> ====== ============================ <add> ...
1
Python
Python
update expected slices for pillow > 9
ec4e421b7ded2f6b1baa63c19f2c0b2c11a36d92
<ide><path>tests/beit/test_modeling_beit.py <ide> import unittest <ide> <ide> from datasets import load_dataset <add>from packaging import version <ide> <ide> from transformers import BeitConfig <ide> from transformers.file_utils import cached_property, is_torch_available, is_vision_available <ide> <ide> <ide> if i...
3
Text
Text
update changelog for 2.29.4
536ad0c348f2f99009755698f491080757a48221
<ide><path>CHANGELOG.md <ide> Changelog <ide> ========= <ide> <add>### 2.29.4 <add> <add>* Release Jul 6, 2022 <add> * [#6015](https://github.com/moment/moment/pull/6015) [bugfix] Fix ReDoS in preprocessRFC2822 regex <add> <ide> ### 2.29.3 [Full changelog](https://gist.github.com/ichernev/edebd440f49adcaec72e5e77b791...
1
Ruby
Ruby
fix schema for members
8da6ba9cae21beae1ee3c379db7b7113d2731c9b
<ide><path>activerecord/test/schema/schema.rb <ide> t.integer :children_count, default: 0 <ide> t.integer :parent_id <ide> t.references :author, polymorphic: true <del> t.string :resource_id <add> t.integer :resource_id <ide> t.string :resource_type <ide> t.integer :developer_id <ide> t.da...
1
Javascript
Javascript
fix webcrypto jwk ec and okp import crv check
4420d5218cbedadd9045f886003df7b506112cc7
<ide><path>lib/internal/crypto/cfrg.js <ide> async function cfrgImportKey( <ide> throw lazyDOMException('Invalid JWK keyData', 'DataError'); <ide> if (keyData.kty !== 'OKP') <ide> throw lazyDOMException('Invalid key type', 'DataError'); <add> if (keyData.crv !== name) <add> throw lazyD...
4
Python
Python
remove redundant respects_app_option check
938b0b8b978292d5a5d1be383be2776b4c49f254
<ide><path>celery/bin/base.py <ide> def setup_app_from_commandline(self, argv): <ide> if config: <ide> os.environ['CELERY_CONFIG_MODULE'] = config <ide> if self.respects_app_option: <del> if app and self.respects_app_option: <add> if app: <ide> self.app ...
1
Go
Go
handle capabilities in tar files
3b9953903b12eaca76655311bd44533768f6f3da
<ide><path>archive/archive.go <ide> func addTarFile(path, name string, tw *tar.Writer) error { <ide> hdr.Devmajor = int64(major(uint64(stat.Rdev))) <ide> hdr.Devminor = int64(minor(uint64(stat.Rdev))) <ide> } <add> <add> } <add> <add> capability, _ := Lgetxattr(path, "security.capability") <add> if capability !...
1
Javascript
Javascript
fix refresh for expired timers
1fab8a92974ce555adca39baada1d199b4952fd7
<ide><path>lib/internal/timers.js <ide> Timeout.prototype.refresh = function() { <ide> Timeout.prototype.unref = function() { <ide> if (this[kRefed]) { <ide> this[kRefed] = false; <del> decRefCount(); <add> if (!this._destroyed) <add> decRefCount(); <ide> } <ide> return this; <ide> }; <ide> <ide> ...
3
PHP
PHP
avoid fail due to postgres ordering
36a51bdad5e7d21177b8fdbb3470399f9a73367c
<ide><path>lib/Cake/Test/Case/Controller/Component/PaginatorComponentTest.php <ide> public function testOutOfRangePageNumberGetsClamped() { <ide> <ide> /** <ide> * Test that a really REALLY large page number gets clamped to the max page size. <del> * <add> * <ide> * <ide> * @expectedException NotFoundException <id...
1
Javascript
Javascript
use module.exports = {}
9318f82937d08462c87750946b919b8991c827e2
<ide><path>lib/readline.js <ide> const isFullWidthCodePoint = internalReadline.isFullWidthCodePoint; <ide> const stripVTControlCharacters = internalReadline.stripVTControlCharacters; <ide> <ide> <del>exports.createInterface = function(input, output, completer, terminal) { <add>function createInterface(input, output, ...
1
Ruby
Ruby
add missing test case for quoting behavior
a8afc6395b9ccbbe62c6deaa01294b4bd3aac758
<ide><path>activerecord/test/cases/base_test.rb <ide> def test_find_by_slug <ide> assert_equal Topic.find('1-meowmeow'), Topic.find(1) <ide> end <ide> <add> def test_find_by_slug_with_array <add> assert_equal Topic.find(['1-meowmeow', '2-hello']), Topic.find([1, 2]) <add> end <add> <ide> def test_equality...
2
Ruby
Ruby
use current version in new_framework_defaults_*.rb
b2c5199d5107129ff81c2e6f44e7f6bb87a3b94a
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def delete_api_initializers <ide> <ide> def delete_new_framework_defaults <ide> unless options[:update] <del> remove_file "config/initializers/new_framework_defaults_7_0.rb" <add> remove_file "config/initializers/...
2
Go
Go
fix possible segfault in config reload
7f3910c92e95d23b5f74a6abc1055ebae478080b
<ide><path>daemon/reload.go <ide> func (daemon *Daemon) reloadDebug(conf *config.Config, attributes map[string]str <ide> func (daemon *Daemon) reloadMaxConcurrentDownloadsAndUploads(conf *config.Config, attributes map[string]string) { <ide> // If no value is set for max-concurrent-downloads we assume it is the default...
1
Ruby
Ruby
add test for verbose brew outdated output
755d43d46dc20b9e646909e08de482141de83777
<ide><path>Library/Homebrew/test/cmd/outdated_spec.rb <ide> describe "brew outdated", :integration_test do <del> it "prints outdated Formulae" do <del> setup_test_formula "testball" <del> (HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath <add> context "quiet output" do <add> it "prints outdated Formulae" do <add...
1
Ruby
Ruby
fix word order in documentation for with_lock
1489e4f20841b46ebca1ca065c60fb0f2e553e46
<ide><path>activerecord/lib/active_record/locking/pessimistic.rb <ide> def lock!(lock = true) <ide> end <ide> <ide> # Wraps the passed block in a transaction, locking the object <del> # before yielding. You pass can the SQL locking clause <add> # before yielding. You can pass the SQL locking clau...
1
Javascript
Javascript
remove email verification
78dac937f7bf7cc5484c9e7ff472cacb92bb2959
<ide><path>server/boot/user.js <ide> var _ = require('lodash'), <ide> secrets = require('../../config/secrets'); <ide> <ide> module.exports = function(app) { <add> // NOTE(berks): user email validation currently not needed but build in. This <add> // work around should let us sneak by <add> // see: <add> // http...
1
Ruby
Ruby
fix inheritance in formula.rb
498ef3372c2ca43d359071701cff810f9d7139bc
<ide><path>Library/Homebrew/formula.rb <ide> def keg_only reason <ide> end <ide> <ide> # see ack.rb for an example usage <del>class ScriptFileFormula <Formula <add>class ScriptFileFormula < Formula <ide> def install <ide> bin.install Dir['*'] <ide> end <ide> end <ide> <ide> # see flac.rb for example usage <de...
1
Go
Go
remove random package
66cfe61f71252f528ddb458d554cd241e996d9f1
<ide><path>pkg/namesgenerator/names-generator.go <ide> package namesgenerator <ide> <ide> import ( <ide> "fmt" <del> <del> "github.com/docker/docker/pkg/random" <add> "math/rand" <ide> ) <ide> <ide> var ( <ide> var ( <ide> // formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a ran...
5
PHP
PHP
trigger deprecation warning
b1562ed4d8b789e223d0d1b0e2c59224feff1002
<ide><path>src/View/Helper/HtmlHelper.php <ide> public function addCrumb($name, $link = null, array $options = []) <ide> */ <ide> public function docType($type = 'html5') <ide> { <add> deprecationWarning('HtmlHelper::docType() is deprecated and will be removed in 4.0.0'); <add> <ide> if (iss...
2
Javascript
Javascript
remove excess indentation
0d22858d67f5f8f7959a55ceca23adafe12827d5
<ide><path>lib/_tls_legacy.js <ide> Object.defineProperty(CryptoStream.prototype, 'bytesWritten', { <ide> CryptoStream.prototype.getPeerCertificate = function(detailed) { <ide> if (this.pair.ssl) { <ide> return common.translatePeerCertificate( <del> this.pair.ssl.getPeerCertificate(detailed)); <add> t...
16
Text
Text
fix typo in readme
13ccf784986107a339218b3d43a7e4ce3bdfd919
<ide><path>readme.md <ide> Router.onAppUpdated = (nextUrl) => { <ide> </ul> <ide> </details></p> <ide> <del>Shallow routig allows you to change the URL without running `getInitialProps`. You'll receive the updated `pathname` and the `query` via the `url` prop of the same page that's loaded, without losing state. <ad...
1
PHP
PHP
fix undefined variable error for id
0e33004fee1df5574bcc28ea95f2ada16f5ad8ae
<ide><path>src/Illuminate/Queue/Console/RetryBatchCommand.php <ide> class RetryBatchCommand extends Command <ide> */ <ide> public function handle() <ide> { <del> $batch = $this->laravel[BatchRepository::class]->find($this->argument('id')); <add> $batch = $this->laravel[BatchRepository::class]...
1
Ruby
Ruby
cache the formatter on the path object
c99ff6df0031a10d67d6185597085a6bcbeee114
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> def initialize(strexp) <ide> @required_names = nil <ide> @re = nil <ide> @offsets = nil <add> @format = Visitors::FormatBuilder.new.accept(spec) <add> end <add> <add> d...
2
Ruby
Ruby
fix incorrect output
82aedbb96d2d6326a2700413ef16890499e11014
<ide><path>activemodel/lib/active_model/errors.rb <ide> def add_on_blank(attributes, options = {}) <ide> # <ide> # company = Company.create(:address => '123 First St.') <ide> # company.errors.full_messages # => <del> # ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Addres...
1
Go
Go
add timeouts for volume plugin ops
b15f8d2d4f054a87052a7065c50441f7e8479fa9
<ide><path>pkg/plugins/client.go <ide> package plugins <ide> <ide> import ( <ide> "bytes" <add> "context" <ide> "encoding/json" <ide> "io" <ide> "io/ioutil" <ide> "net/http" <ide> "net/url" <ide> "time" <ide> <add> "github.com/docker/docker/pkg/ioutils" <ide> "github.com/docker/docker/pkg/plugins/transport" <...
2
Ruby
Ruby
fix select_tag generating tag when set to false
e0e9d5bd8600c01de6b73487bf66046d179c0ed7
<ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb <ide> def select_tag(name, option_tags = nil, options = {}) <ide> include_blank = '' <ide> end <ide> <del> option_tags = content_tag(:option, include_blank, value: '').safe_concat(option_tags) <add> if include_blan...
2
Python
Python
fix bug in bellman_ford.py
82a11d7f31d06f781e3902984fa2902c0676816a
<ide><path>graphs/bellman_ford.py <ide> def BellmanFord(graph, V, E, src): <ide> mdist[src] = 0.0 <ide> <ide> for i in range(V - 1): <del> for j in range(V): <add> for j in range(E): <ide> u = graph[j]["src"] <ide> v = graph[j]["dst"] <ide> w = graph[j]["weight...
1
Javascript
Javascript
improve fn description
e9a4de035df5708f7d96180d774b070495dbd045
<ide><path>src/ng/interval.js <ide> function $IntervalProvider() { <ide> * appropriate moment. See the example below for more details on how and when to do this. <ide> * </div> <ide> * <del> * @param {function()} fn A function that should be called repeatedly. <add> * @param {function()} fn...
1
Javascript
Javascript
remove .getnormalvector() from curve.js
e4c0c6878dc857ad19c8e9fde5f1615aa48e6883
<ide><path>src/extras/core/Curve.js <ide> /** <ide> * @author zz85 / http://www.lab4games.net/zz85/blog <ide> * Extensible curve object <del> * <add> * <ide> * Some common of Curve methods <ide> * .getPoint(t), getTangent(t) <ide> * .getPointAt(u), getTagentAt(u) <ide> THREE.Curve.prototype.getLengths = function ...
1
Java
Java
fix formatting errors
e7e843cae2d3303a0e2d09d8a64f14ebbf314c00
<ide><path>spring-core/src/test/java/org/springframework/aot/nativex/ReflectionHintsSerializerTests.java <ide> void two() throws JSONException { <ide> void queriedMethods() throws JSONException { <ide> ReflectionHints hints = new ReflectionHints(); <ide> hints.registerType(Integer.class, builder -> builder.withMet...
1
Text
Text
update the readme to reflect build changes
dd22f449538a2a56c09e91e390874ac6da2e4847
<ide><path>README.md <ide> You can also view all the test pdf files on the right side serving <ide> <ide> + http://localhost:8888/test/pdfs/?frame <ide> <del>### Building pdf.js <add>### Building pdf.js. <ide> <del>In order to bundle all `src/` files into a final `pdf.js`, issue: <add>In order to bundle all `src/` f...
1
Ruby
Ruby
permit attaching files to new records
e05e2ae44f1ecf8e9bb5949f531305c15bc3c665
<ide><path>activestorage/lib/active_storage/attached/many.rb <ide> def attachments <ide> # document.images.attach([ first_blob, second_blob ]) <ide> def attach(*attachables) <ide> attachables.flatten.collect do |attachable| <del> attachments.create!(name: name, blob: create_blob_from(attachable))...
3
Go
Go
convert testgetcontainersbyname into a unit test
c44c98edec6822edf17cc969038e21be6ccdbd93
<ide><path>api/server/server_unit_test.go <ide> func TestGetInfo(t *testing.T) { <ide> } <ide> } <ide> <add>func TestGetContainersByName(t *testing.T) { <add> eng := engine.New() <add> name := "container_name" <add> var called bool <add> eng.Register("container_inspect", func(job *engine.Job) engine.Status { <add> c...
2
PHP
PHP
fix code style
70698d2257f7b868a71983a6674a7c25f261ff8e
<ide><path>src/Illuminate/Container/BoundMethod.php <ide> protected static function addDependencyForCallParameter($container, $parameter, <ide> $dependencies[] = $container->make($parameter->getClass()->name); <ide> } elseif ($parameter->isDefaultValueAvailable()) { <ide> $dependencies[]...
1
Javascript
Javascript
add fractionsize as optional parameter
20685ffe11036d4d604d13f0d792ca46497af4a1
<ide><path>src/ng/filter/filters.js <ide> * <ide> * @param {number} amount Input to filter. <ide> * @param {string=} symbol Currency symbol or identifier to be displayed. <add> * @param {number=} fractionSize Number of decimal places to round the amount to. <ide> * @returns {string} Formatted number. <ide> * <ide>...
2
Javascript
Javascript
expose http.clientrequest and http.serverresponse
60131fc88c165b3b556a16bc25f244c6d63a0482
<ide><path>lib/http.js <ide> function ServerResponse () { <ide> this.use_chunked_encoding_by_default = true; <ide> } <ide> process.inherits(ServerResponse, OutgoingMessage); <add>exports.ServerResponse = ServerResponse; <ide> <ide> ServerResponse.prototype.sendHeader = function (statusCode, headers) { <ide> var re...
1
Text
Text
fix typo in ref-08-reconciliation.md
d3e315193a0cf189cb5f9734ad6d73f132911660
<ide><path>docs/docs/ref-08-reconciliation.md <ide> React's key design decision is to make the API seem like it re-renders the whole <ide> <ide> Generating the minimum number of operations to transform one tree into another is a complex and well-studied problem. The [state of the art algorithms](http://grfia.dlsi.ua.e...
1
PHP
PHP
fix docblock typo
673b35051892debc514fe752dc965e5a3d2bf6ae
<ide><path>src/Illuminate/Queue/Middleware/PreventOverlappingJobs.php <ide> class PreventOverlappingJobs <ide> * @param string $key <ide> * @param string $prefix <ide> * @param int $expiresAt <del> * @param string $prefix <ide> * <ide> * @return void <ide> */
1
Text
Text
update neural_gpu documentation
b1ad92b8a69a885ae7049d54e8219d66e0b429e3
<ide><path>neural_gpu/README.md <ide> Requirements: <ide> * TensorFlow (see tensorflow.org for how to install) <ide> * Matplotlib for Python (sudo apt-get install python-matplotlib) <ide> <del>Run: python neural_gpu_trainer.py --task=rev <add>The model can be trained on the following algorithmic tasks: <add> <add>* `s...
1
Javascript
Javascript
add regression test for legend layout issue
3ea93a09f2047b727891f9e13dbd3fb7ebe44adf
<ide><path>test/specs/plugin.legend.tests.js <ide> describe('Legend block tests', function() { <ide> }); <ide> }); <ide> <add> it('should not draw legend items outside of the chart bounds', function() { <add> var chart = window.acquireChart( <add> { <add> type: 'line', <add> data: { <add> datasets: [1,...
1
Ruby
Ruby
remove the sqlite3 binary subclass
c9cc1f47adbfe6bcdca37fb1d1338999219c7b74
<ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb <ide> def sqlite3_connection(config) <ide> end <ide> <ide> module ConnectionAdapters #:nodoc: <del> class SQLite3Binary < Type::Binary # :nodoc: <del> def cast_value(value) <del> if value.encoding != Encoding::ASCII_8BI...
2
Python
Python
fix minor docstring typos.
711d901c49bbc896f508920b70bfd8a83f11e5da
<ide><path>src/transformers/modeling_flax_utils.py <ide> def from_pretrained( <ide> from_pt (:obj:`bool`, `optional`, defaults to :obj:`False`): <ide> Load the model weights from a PyTorch checkpoint save file (see docstring of <ide> ``pretrained_model_name_or_path`` argument...
3
Python
Python
fix pipeline ner
a241011057245211975b4730170815536527d79d
<ide><path>transformers/pipelines.py <ide> class NerPipeline(Pipeline): <ide> def __init__(self, model, tokenizer: PreTrainedTokenizer = None, <ide> modelcard: ModelCard = None, framework: Optional[str] = None, <ide> args_parser: ArgumentHandler = None, device: int = -1, <del> ...
1
Python
Python
add missing to_list to multi_gpu_utils
be28fd9e06cb16d28730c87f5c5a2b790c1abbcc
<ide><path>keras/utils/multi_gpu_utils.py <ide> from ..layers.core import Lambda <ide> from ..engine.training import Model <ide> from ..models import clone_model <add>from ..utils.generic_utils import to_list <ide> <ide> <ide> def _get_available_devices():
1
Python
Python
fix schema categories for custom list actions
01b498ec5109da22bf1b79d86efaecf45426ad51
<ide><path>rest_framework/schemas.py <ide> def is_api_view(callback): <ide> return (cls is not None) and issubclass(cls, APIView) <ide> <ide> <del>def insert_into(target, keys, item): <del> """ <del> Insert `item` into the nested dictionary `target`. <del> <del> For example: <del> <del> target = {...
2
Javascript
Javascript
remove the vertical bar next to the code frame
89be2d00eaf60d1d4384b764a834709f3542f689
<ide><path>Libraries/LogBox/UI/AnsiHighlight.js <ide> export default function Ansi({ <ide> remove_empty: true, <ide> use_classes: true, <ide> }).map((bundle, key) => { <add> // Remove the vertical bar after line numbers <add> const content = <add> key...
1
Text
Text
add issue assignment template
56a8e757994a2245a2a0f28c4cecf3ae0c0d7e93
<ide><path>docs/moderator-handbook.md <ide> Sometimes we may get more than one pull request. We typically accept the most qu <ide> <ide> Happy contributing. <ide> ``` <add> <add>### Requests for Assignment <add> <add>```md <add>We typically do not assign issues. Instead, we accept the first pull request that comprehen...
1
Java
Java
refine contentnegotiationstrategy contract
f3994467c4e1094f5229d05c5679550f956cba8e
<ide><path>spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Licens...
11
Javascript
Javascript
fix undefine style
9998b8dcbb2674ac680fd6598aea0840e69c0e1b
<ide><path>src/directives.js <ide> angularDirective("ng:hide", function(expression, element){ <ide> angularDirective("ng:style", function(expression, element){ <ide> return function(element){ <ide> this.$onEval(function(){ <del> element.css(this.$eval(expression)); <add> element.css(this.$eval(expressio...
2
PHP
PHP
fix filesystem tests failing in windows
cfed25302fd0ed945541cbffa409785c8a1e2c85
<ide><path>tests/Filesystem/FilesystemAdapterTest.php <ide> public function testPutWithStreamInterface() <ide> $spy = m::spy($this->filesystem); <ide> <ide> $filesystemAdapter = new FilesystemAdapter($spy); <del> $stream = new Stream(fopen($this->tempDir.'/foo.txt', 'r')); <del> $filesyst...
2
Javascript
Javascript
remove the `ipdfhistory` interface
ae90d9162be0da59fdeb748939c00173db6a7d01
<ide><path>web/interfaces.js <ide> class IPDFLinkService { <ide> isPageCached(pageNumber) {} <ide> } <ide> <del>/** <del> * @interface <del> */ <del>class IPDFHistory { <del> /** <del> * @param {Object} params <del> */ <del> initialize({ fingerprint, resetHistory = false, updateUrl = false }) {} <del> <del> r...
1
Ruby
Ruby
add destroy to engine's commands
0ac5c03f169b3e3055040e84ca088df134c2bfbb
<ide><path>railties/lib/rails/engine/commands.rb <ide> engine = ::Rails::Engine.find(ENGINE_ROOT) <ide> <ide> case command <del>when 'generate' <add>when 'generate', 'destroy' <ide> require 'rails/generators' <ide> engine.load_generators <del> require 'rails/commands/generate' <add> require "rails/commands/#{com...
1
Javascript
Javascript
reduce context footprint
ff74aadbc01d1e08b297e19878ea3336a5db0d59
<ide><path>src/Container.js <ide> import identity from 'lodash/utility/identity'; <ide> <ide> export default class ReduxContainer extends Component { <ide> static contextTypes = { <del> wrapActionCreator: PropTypes.func.isRequired, <del> observeStores: PropTypes.func.isRequired <add> redux: PropTypes.object...
2
Text
Text
add v3.8.0-beta.2 to changelog
919574fecb2a9a7d649cbe4d46692af193c6b57b
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.8.0-beta.2 (January 14, 2019) <add>- [#17467](https://github.com/emberjs/ember.js/pull/17467) [BUGFIX] Fix substate interactions with aborts <add> <ide> ### v3.8.0-beta.1 (January 7, 2019) <ide> <ide> - [#17143](https://github.com/emberjs/ember.js/pull...
1
Ruby
Ruby
make os x specific
536c42f7e6214087812413177d8bcebf3ab04f6e
<add><path>Library/Homebrew/test/test_os_mac_version.rb <del><path>Library/Homebrew/test/test_version_subclasses.rb <ide> require "version" <ide> require "os/mac/version" <ide> <del>class MacOSVersionTests < Homebrew::TestCase <add>class OSMacVersionTests < Homebrew::TestCase <ide> def setup <ide> @v = MacOS::Ve...
1
Python
Python
expose max_q_size and other generator_queue args
4f5f88b9bab58e363b95ddc1931f2036d13d14e6
<ide><path>keras/engine/training.py <ide> def standardize_weights(y, sample_weight=None, class_weight=None, <ide> def generator_queue(generator, max_q_size=10, <ide> wait_time=0.05, nb_worker=1): <ide> '''Builds a threading queue out of a data generator. <del> Used in `fit_generator`, `evalua...
3
Ruby
Ruby
update clang expectation for 10.11
46d45677cc06a479c39fc7a59d9077de9d84d842
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def installed? <ide> <ide> def latest_version <ide> case MacOS.version <del> when "10.11" then "700.0.57.2" <add> when "10.11" then "700.0.59.1" <ide> when "10.10" then "602.0.53" <ide> when "10.9" then "600.0.57" <ide> ...
1
Text
Text
fix dead link on reload or open in new tab
de3596d4afbd3373d9fc0b6eeb7706e340ad2f1a
<ide><path>docs/axes/labelling.md <ide> The call to the method is scoped to the scale. `this` inside the method is the s <ide> If the callback returns `null` or `undefined` the associated grid line will be hidden. <ide> <ide> :::tip <del>The [category axis](../axes/cartesian/category), which is the default x-axis for ...
1
Python
Python
update sample_weight documentation
399c00c7f87660f5a660df72fdf6fd1192c32be2
<ide><path>keras/models.py <ide> class accuracy in the logs to stdout at each epoch. <ide> used for scaling the loss function (during training only). <ide> sample_weight: list or numpy array with 1:1 mapping to <ide> the training samples, used for scaling the loss function <d...
1
Mixed
Javascript
add gc tracking to common api
d37a47754d98ef82dfc5a15fb3accacbb5f09855
<ide><path>test/common/README.md <ide> otherwise. <ide> ### noWarnCode <ide> See `common.expectWarning()` for usage. <ide> <add>### onGC(target, listener) <add>* `target` [&lt;Object>] <add>* `listener` [&lt;Object>] <add> * `ongc` [&lt;Function>] <add> <add>Installs a GC listener for the collection of `target`. <add...
3
Ruby
Ruby
use keyword argument in `transaction`
be9addb69bf1e22860be3d9b9210dada6e52d536
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def supports_statement_cache? <ide> # isolation level. However, support is disabled for MySQL versions below 5, <ide> # because they are affected by a bug[http://bugs.mysql.com/bug.php?id=39170] <ide> #...
1
Python
Python
pass the matching trainer log level to deepspeed
e27707488911a4bae5936a1bdad0cfdb2018cebd
<ide><path>src/transformers/deepspeed.py <ide> def deepspeed_init(trainer, num_training_steps, resume_from_checkpoint=None): <ide> <ide> """ <ide> import deepspeed <add> from deepspeed.utils import logger as ds_logger <ide> <ide> model = trainer.model <add> args = trainer.args <ide> <del> hf_dee...
1
Text
Text
clarify documentation regarding the static folder
a806c16713332349cffbbe0e0ab98399e26fe955
<ide><path>readme.md <ide> So far, we get: <ide> - Automatic transpilation and bundling (with webpack and babel) <ide> - Hot code reloading <ide> - Server rendering and indexing of `./pages` <del>- Static file serving. `./static/` is mapped to `/static/` <add>- Static file serving. `./static/` is mapped to `/static/` (...
1
Javascript
Javascript
use getownpropertynames to check for empty object
d150dc7d026e89e042bc134b03fd69fd3e2023aa
<ide><path>src/lib/utils/is-object-empty.js <ide> export default function isObjectEmpty(obj) { <del> if (Object.keys) { <del> return (Object.keys(obj).length === 0); <add> if (Object.getOwnPropertyNames) { <add> return (Object.getOwnPropertyNames(obj).length === 0); <ide> } else { <ide> ...
1
Ruby
Ruby
move gnunet to the boneyard
758608815f24a8823918c76e710a8f2fba890b0b
<ide><path>Library/Homebrew/tap_migrations.rb <ide> "drizzle" => "homebrew/boneyard", <ide> "drush" => "homebrew/php", <ide> "dsniff" => "homebrew/boneyard", <add> "gnunet" => "homebrew/boneyard", <ide> "grads" => "homebrew/binary", <ide> "gromacs" => "homebrew/science", <ide> "hllib" => "homebrew/boneyard...
1
Text
Text
remove vestigial onboarding section
7dca3297bce9c19a0451be1b130c8fcab564fe04
<ide><path>doc/onboarding-extras.md <ide> to update from nodejs/node: <ide> * `git checkout master` <ide> * `git remote update -p` OR `git fetch --all` <ide> * `git merge --ff-only upstream/master` (or `REMOTENAME/BRANCH`) <del> <del>## Best practices <del> <del>* When making PRs, spend time writing a thorough descript...
1
Python
Python
remove print statement
6b7198e74e39c18317cd50dd077732beeae7b4bb
<ide><path>libcloud/storage/drivers/cloudfiles.py <ide> def _put_object(self, container, object_name, upload_func, <ide> <ide> response = result_dict['response'].response <ide> bytes_transferred = result_dict['bytes_transferred'] <del> print result_dict['data_hash'] <ide> server_hash = r...
1
Text
Text
fix typos in fog article
8be8bef50b28d98ee558b9f0da75041b6caaa32c
<ide><path>threejs/lessons/threejs-fog.md <ide> past that distance. <ide> </div> <ide> <ide> It's important to note that the fog is applied to *things that are rendered*. <del>It is part of the calculation of each pixel of the color of the object. <del>What that means is if you want your scene to fade to a certain co...
1
Java
Java
use httpmethod enums
55faf6e3205d26a4ba693f40c1ea1cef179f31cb
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java <ide> import org.springframework.core.io.ClassPathResource; <ide> import org.springframework.core.io.support.PropertiesLoaderUtils; <ide> import org.springframework.core.log.LogFormatUtils; <add>import org.springframework.http...
1
Go
Go
update documentation for serviceupdate
77162b39dad0c11f1ea60c898f2855f7fbbecf47
<ide><path>client/service_update.go <ide> import ( <ide> "github.com/docker/docker/api/types/swarm" <ide> ) <ide> <del>// ServiceUpdate updates a Service. <add>// ServiceUpdate updates a Service. The version number is required to avoid conflicting writes. <add>// It should be the value as set *before* the update. You...
1
Ruby
Ruby
ignore nameerror and argumenterror
8809c85cc3515736f5c7b85436d1020aa17cb6c4
<ide><path>Library/Homebrew/cmd/versions.rb <ide> def version_for_sha sha <ide> version = nostdout { Formula.factory(path).version } <ide> Object.send(:remove_const, Formula.class_s(name)) <ide> version <del> rescue SyntaxError, TypeError <add> rescue SyntaxError, TypeError, ...
1
PHP
PHP
define the expected exception
994cf4c422e59a7d2ee188bf7d5537f64f6c9e23
<ide><path>tests/Database/DatabaseConnectionTest.php <ide> public function testLogQueryFiresEventsIfSet() <ide> <ide> public function testBeforeExecutingHooksCanBeRegistered() <ide> { <add> $this->expectException(Exception::class); <ide> $this->expectExceptionMessage('The callback was fired'); <...
4
Javascript
Javascript
extract the type checker into a separate module
db6ac5c01c4ad669db7ca264bc81ae5b3d6dfa01
<ide><path>src/isomorphic/classic/__tests__/ReactContextValidator-test.js <ide> var ReactTestUtils; <ide> var reactComponentExpect; <ide> <ide> describe('ReactContextValidator', function() { <add> function normalizeCodeLocInfo(str) { <add> return str.replace(/\(at .+?:\d+\)/g, '(at **)'); <add> } <add> <ide> be...
9
Javascript
Javascript
add testconfig.timeout to configtestcases
f0ef3fd6ae6be6e2ade7a6565cc789fa26a15273
<ide><path>test/ConfigTestCases.test.js <ide> describe("ConfigTestCases", () => { <ide> testConfig = Object.assign(testConfig, require(path.join(testDirectory, "test.config.js"))); <ide> } catch(e) {} <ide> <del> // this.timeout(testConfig.timeout); <del> <ide> webpack(options, (err, stats) => ...
1