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
Text
Text
update minimal requirements
820ee847ac141910d9eddab02dceb3ca93dfd84e
<ide><path>docs/Homebrew-on-Linux.md <ide> If you're using an older distribution of Linux, installing your first package wi <ide> <ide> ## Linux/WSL Requirements <ide> <del>+ **GCC** 4.4 or newer <add>+ **GCC** 4.7.0 or newer <ide> + **Linux** 2.6.32 or newer <del>+ **Glibc** 2.12 or newer <add>+ **Glibc** 2.13 or ne...
1
Ruby
Ruby
allow write access to /dev/random
53a677aba6f28a148c9950cfde7f73fda5cdf81f
<ide><path>Library/Homebrew/sandbox.rb <ide> class SandboxProfile <ide> (literal "/dev/ptmx") <ide> (literal "/dev/dtracehelper") <ide> (literal "/dev/null") <add> (literal "/dev/random") <ide> (literal "/dev/zero") <ide> (regex #"^/dev/fd/[0-9]+$") <ide> ...
1
Javascript
Javascript
add comment describing test-fs-mkdir
d8ef9811a726c84c4b6803436235642d87ec47ea
<ide><path>test/parallel/test-fs-mkdir.js <ide> function nextdir() { <ide> return `test${++dirc}`; <ide> } <ide> <add>// mkdir creates directory using assigned path <ide> { <ide> const pathname = path.join(tmpdir.path, nextdir()); <ide> <ide> function nextdir() { <ide> })); <ide> } <ide> <add>// mkdir creates ...
1
Text
Text
update items to equal an array
75857bec01d8a8ae56cf0e85f738ea02d42c639e
<ide><path>docs/upgrading/upgrading-your-package.md <ide> class CommandPaletteView extends SelectListView <ide> attach: -> <ide> @storeFocusedElement() <ide> <del> items = # build items <add> items = [] # TODO: build items <ide> @setItems(items) <ide> <ide> atom.workspaceView.append(this)
1
Ruby
Ruby
fix cellar output
4eb7116c9cc0175a37e5c2fd2c1bc2b85bd799b0
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def bottle_output bottle <ide> puts "bottle do" <ide> prefix = bottle.prefix.to_s <ide> puts " prefix '#{prefix}'" if prefix != '/usr/local' <del> cellar = bottle.cellar.to_s <del> cellar = ":#{bottle.cellar}" if bottle.cellar.is_a? Symbol <del> puts...
1
Ruby
Ruby
add constraints to resources in new routing dsl
e1a70faea675499d717cef7662262ceb03b23975
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def initialize(*args) <ide> <ide> def scope(*args) <ide> options = args.extract_options! <add> options = options.dup <ide> <ide> case args.first <ide> when String <ide> def name_for_action(action) <ide> ...
2
Ruby
Ruby
add exec and jar helpers
73b3977ab4b516d20912fc50f36477dc59b6c28e
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def find_formula <ide> end <ide> end <ide> end <add> <add> # Writes an exec script in this folder for each target pathname <add> def write_exec_script *targets <add> targets = [targets].flatten <add> if targets.empty? <add> opoo "tried to wri...
1
Mixed
Ruby
add option to mute multiple database yaml warning
43d83e96c922af78129d1ee83b95866121d7cf81
<ide><path>actionmailbox/test/dummy/config/environments/development.rb <ide> # Highlight code that triggered database queries in logs. <ide> config.active_record.verbose_query_logs = true <ide> <add> # Show a warning when Rails couldn't parse your database.yml <add> # for multiple databases. <add> config.active...
6
Javascript
Javascript
improve warning message for setstate-on-unmounted
5855e9f2158b31d945f3fcc5bc582389dbecc88e
<ide><path>packages/react-dom/src/__tests__/ReactCompositeComponent-test.js <ide> describe('ReactCompositeComponent', () => { <ide> ReactDOM.unmountComponentAtNode(container); <ide> <ide> expect(() => instance.forceUpdate()).toWarnDev( <del> 'Can only update a mounted or mounting component. This usually m...
2
Javascript
Javascript
name all constructors
1ef4c94de20eaae4a1f010eb0660b693e1c71f51
<ide><path>src/canvas.js <ide> var TextRenderingMode = { <ide> ADD_TO_PATH: 7 <ide> }; <ide> <del>var CanvasExtraState = (function canvasExtraState() { <del> function constructor(old) { <add>var CanvasExtraState = (function CanvasExtraStateClosure() { <add> function CanvasExtraState(old) { <ide> // Are soft ma...
12
PHP
PHP
add support for using iam roles for sqs queues
2f4c14f5a4f58b1a6312074af53f07312653dee5
<ide><path>src/Illuminate/Queue/Connectors/SqsConnector.php <ide> class SqsConnector implements ConnectorInterface { <ide> */ <ide> public function connect(array $config) <ide> { <del> $sqs = SqsClient::factory(array( <add> $sqsConfig = array_only($config, array('key', 'secret', 'region', 'default_cache_config'))...
1
Javascript
Javascript
fix amphtml href with nested amp page
5a48272af004239fec5b765ccde336a73a888545
<ide><path>packages/next/export/index.js <ide> export default async function (dir, options, configuration) { <ide> } else { <ide> const ampPath = tryAmp(defaultPathMap, path) <ide> if (ampPath !== path) { <del> defaultPathMap[path].query = { hasAmp: true, ampPath } <add> defaultPathMap[pat...
2
Python
Python
add a setup.py to the array_api submodule
d74a7d0b3297e10194bd3899a0d17a63610e49a1
<ide><path>numpy/array_api/setup.py <add>def configuration(parent_package='', top_path=None): <add> from numpy.distutils.misc_util import Configuration <add> config = Configuration('array_api', parent_package, top_path) <add> config.add_subpackage('tests') <add> return config <add> <add> <add>if __name__ ==...
1
Ruby
Ruby
fix const reference in mach
3703d60e573a152eea183c5ca030edd86167ad6f
<ide><path>Library/Homebrew/mach.rb <ide> def universal? <ide> end <ide> <ide> def ppc? <del> (PPC_32BIT_ARCHS+PPC_64BIT_ARCHS).any? {|a| self.include? a} <add> (Hardware::CPU::PPC_32BIT_ARCHS+Hardware::CPU::PPC_64BIT_ARCHS).any? {|a| self.include? a} <ide> end <ide> <ide> def remove_ppc!
1
Javascript
Javascript
fix hmr for dynamic entries (#652)
b8373b847dcf5d88ccfce27c7504331d63a9f6a5
<ide><path>server/build/plugins/watch-pages-plugin.js <ide> export default class WatchPagesPlugin { <ide> <ide> if (compiler.hasEntry(name)) return <ide> <del> const entries = [hotMiddlewareClientPath, f] <add> const entries = [hotMiddlewareClientPath, f + '?entry'] <ide> compiler.addEnt...
1
Javascript
Javascript
add some missing types in react-reconciler
cc8cb145f0bfebaeaddc4e7439efe5f3e14639ae
<ide><path>packages/react-reconciler/src/ReactFiber.new.js <ide> export function createFiberFromSuspense( <ide> mode: TypeOfMode, <ide> lanes: Lanes, <ide> key: null | string, <del>) { <add>): Fiber { <ide> const fiber = createFiber(SuspenseComponent, pendingProps, key, mode); <ide> fiber.elementType = REACT_...
4
Java
Java
add bytebufencoder and bytebufdecoder
3543e47841355680f00ba2c7dab525d7d9573f4b
<ide><path>spring-core/src/main/java/org/springframework/core/codec/ByteBufDecoder.java <add>/* <add> * Copyright 2002-2020 the original author or authors. <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...
4
Ruby
Ruby
move app initializers to sprockets railtie
8f75c3abcde4f2ff64e855178027e1bd93976de9
<ide><path>actionpack/lib/sprockets/railtie.rb <ide> require "sprockets" <ide> <add># TODO: Move this to sprockets-rails <add># If so, we can move the require to a Gemfile and remove assets.enabled <ide> class Sprockets::Railtie < Rails::Railtie <add> # Configure ActionController to use sprockets. <ide> initializer...
3
Ruby
Ruby
remove unused variable
c3c4a8b9139a750fbf950190b67243724b91a212
<ide><path>Library/Contributions/cmd/brew-readall.rb <ide> require 'formula' <ide> Formula.names.each do |n| <ide> begin <del> f = Formula.factory(n) <add> Formula.factory(n) <ide> rescue Exception => e <ide> onoe "problem in #{Formula.path(n)}" <ide> puts e
1
Python
Python
fix state and try number for failed mapped tasks
a1fd82f2a5c9edc4817b04b4ccc257d6e394f886
<ide><path>airflow/www/utils.py <ide> def get_mapped_instances(task_instance, session): <ide> TaskInstance.dag_id == task_instance.dag_id, <ide> TaskInstance.run_id == task_instance.run_id, <ide> TaskInstance.task_id == task_instance.task_id, <del> TaskInstance.map_index >...
1
Javascript
Javascript
fix statistics calculation for instanced geometry
c49ac0847bb1ade3b0efd931c6f97aca064ab889
<ide><path>src/renderers/webgl/WebGLBufferRenderer.js <ide> THREE.WebGLBufferRenderer = function ( _gl, extensions, _infoRender ) { <ide> <ide> if ( position instanceof THREE.InterleavedBufferAttribute ) { <ide> <del> extension.drawArraysInstancedANGLE( mode, 0, position.data.count, geometry.maxInstancedCount ); ...
2
Javascript
Javascript
verify the names parameter
2508d2c12bb1a9319b84abc8e0b763d899471afa
<ide><path>src/fonts.js <ide> var FontLoader = { <ide> // The postMessage() hackery was added to work around chrome bug <ide> // 82402. <ide> <add> // Validate the names parameter -- the values can used to construct HTML. <add> if (!/^\w+$/.test(names.join(''))) { <add> error('Invalid font...
1
Java
Java
fix checkstyle issue
9a81d0276e4b94093b3c6a5a1d409d68a64204f7
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java <ide> <ide> package org.springframework.web.reactive.result.method; <ide> <del>import static org.springframework.web.reactive.result.method.InvocableHandlerMethodKt.*; <del> <ide> import java.lang.reflec...
1
Mixed
Ruby
fix word case. `json` -> `json`
3a32915bbcfea4e0d8acde257ab9254ff2392de6
<ide><path>actionpack/CHANGELOG.md <del>* Rescue `JSON::ParserError` in Cookies json deserializer to discards marshal dumps: <add>* Rescue `JSON::ParserError` in Cookies JSON deserializer to discards marshal dumps: <ide> <ide> Without this change, if `action_dispatch.cookies_serializer` is set to `:json` and <...
17
Javascript
Javascript
improve coverage for util.promisify
f86427eae844477b70c256e3c9cbd36970c4b5b0
<ide><path>test/parallel/test-util-promisify.js <ide> const stat = promisify(fs.stat); <ide> }) <ide> ]); <ide> } <add> <add>[undefined, null, true, 0, 'str', {}, [], Symbol()].forEach((input) => { <add> common.expectsError( <add> () => promisify(input), <add> { <add> code: 'ERR_INVALID_ARG_TYPE', <ad...
1
Java
Java
fix the race condition in bufferuntilsubscriber
f7a59afa822d14d20a200aacefee2eaf82845e12
<ide><path>rxjava-core/src/test/java/rx/internal/operators/BufferUntilSubscriberTest.java <add>/** <add> * Copyright 2014 Netflix, Inc. <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 o...
2
Go
Go
handle error for dockercmdindir
1b34008532849467623039f78191e0f706fb34a5
<ide><path>integration-cli/docker_cli_build_unix_test.go <ide> func (s *DockerSuite) TestBuildResourceConstraintsAreUsed(c *check.C) { <ide> `, map[string]string{}) <ide> c.Assert(err, checker.IsNil) <ide> <del> dockerCmdInDir(c, ctx.Dir, "build", "--no-cache", "--rm=false", "--memory=64m", "--memory-swap=-1", "--cp...
1
PHP
PHP
fix style error in tests
b1530ae9108c1a2c35094c6fc49a2c02605894c1
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testCallbackArgumentTypes() <ide> 'Model.beforeFind', <ide> function (EventInterface $event, Query $query, ArrayObject $options, $primary) use (&$associationBeforeFindCount) { <ide> $this->assertInternalType('bool'...
1
Ruby
Ruby
move parameters to the top on logging
a8e25a518ae8df1682c84affa3b986ca3627da12
<ide><path>actionpack/lib/action_controller/base.rb <ide> class Base < Metal <ide> include ActionController::Compatibility <ide> <ide> include ActionController::Cookies <add> include ActionController::FilterParameterLogging <ide> include ActionController::Flash <ide> include ActionController::Verifi...
6
Text
Text
fix the <details> in train.md. fix bert repo link
e12386ba46bf02a6668320c7f68dc136cbf9ee8c
<ide><path>official/nlp/docs/train.md <ide> export PYTHONPATH=$PYTHONPATH:/path/to/models <ide> pip3 install --user -r official/requirements.txt <ide> ``` <ide> <add>### Fine-tuning SQuAD with a pre-trained BERT checkpoint <add> <add>This example fine-tunes a pre-trained BERT checkpoint on the <add>Stanford Question A...
1
Python
Python
ignore colon with slash when split app_import_path
c38499bbf26cfa9683e30c52139a94dc5a50dcc4
<ide><path>flask/cli.py <ide> def load_app(self): <ide> app = call_factory(self, self.create_app) <ide> else: <ide> if self.app_import_path: <del> path, name = (self.app_import_path.split(':', 1) + [None])[:2] <add> path, name = (re.split(r':(?![\\/])', self...
2
PHP
PHP
remove unused private method
7ae798c938b0a530af82b5bdb607230d3da4f7ca
<ide><path>src/Illuminate/Redis/Connections/PhpRedisConnection.php <ide> public function disconnect() <ide> $this->client->close(); <ide> } <ide> <del> /** <del> * Apply a prefix to the given key if necessary. <del> * <del> * @param string $key <del> * @return string <del> */ <del>...
1
Javascript
Javascript
fix sea3d blending material
602f38034351fef9de6159ecce5005129b25a129
<ide><path>examples/js/loaders/sea3d/SEA3DLoader.js <ide> THREE.SEA3D.prototype.readContainer3D = function( sea ) { <ide> <ide> THREE.SEA3D.prototype.readSprite = function( sea ) { <ide> <del> var material; <add> var mat; <ide> <ide> if ( sea.material ) { <ide> <ide> if ( ! sea.material.tag.sprite ) { <ide> <de...
1
PHP
PHP
fix nested errors generation for missing layout
03700d873b81cfe6dd2a7f7f40fd5e2dcad720f6
<ide><path>src/Error/ExceptionRenderer.php <ide> use Cake\Http\ServerRequestFactory; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Inflector; <add>use Cake\View\Exception\MissingLayoutException; <ide> use Cake\View\Exception\MissingTemplateException; <ide> use Exception; <ide> use PDOException; <ide> protected ...
2
Text
Text
remove redundant section from dev/readme.md toc
0d76b59c686c6db821d47826e32baba3bbf09f40
<ide><path>dev/README.md <ide> **Table of contents** <ide> <ide> - [Development Tools](#development-tools) <del> - [Airflow Pull Request Tool](#airflow-pull-request-tool) <ide> - [Airflow release signing tool](#airflow-release-signing-tool) <ide> - [Verifying the release candidate by PMCs (legal)](#verifying-the-re...
1
PHP
PHP
add dontseejson() to crawlertrait
812bbd7525166b2fecbb10f66b7eaaae7e4ea378
<ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php <ide> public function seeJsonEquals(array $data) <ide> * Assert that the response contains JSON. <ide> * <ide> * @param array|null $data <add> * @param bool $negate <ide> * @return $this <ide> */ <del> public function seeJ...
1
Javascript
Javascript
use a default offset
d5495e859c3aceab7f8a823e27950e715b746a35
<ide><path>lib/internal/buffer.js <ide> const float64Array = new Float64Array(1); <ide> const uInt8Float64Array = new Uint8Array(float64Array.buffer); <ide> <ide> // Check endianness. <del>float32Array[0] = -1; <add>float32Array[0] = -1; // 0xBF800000 <add>// Either it is [0, 0, 128, 191] or [191, 128, 0, 0]. It is no...
8
PHP
PHP
prefer an early return
1ca85ae11919520859cde39375d50690614633a1
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> protected function seeCookie($cookieName, $value = null, $encrypted = true) <ide> <ide> $this->assertTrue($exist, "Cookie [{$cookieName}] not present on response."); <ide> <del> if ($exist && ! is_null($value)) { <del> ...
1
Python
Python
fix json serialization in lambda layer
e37df7ca853431f0579d66307ba3f7e4d7cdd20b
<ide><path>keras/layers/core.py <ide> def get_config(self): <ide> <ide> if isinstance(self._output_shape, python_types.LambdaType): <ide> if py3: <del> output_shape = marshal.dumps(self._output_shape.__code__) <add> output_shape = marshal.dumps(self._output_shape.__cod...
1
Go
Go
use pkg/errors in more places
26d0bac8955903bc3a845358d159b2ec2f7c253f
<ide><path>api/server/server.go <ide> func (s *Server) makeHTTPHandler(handler httputils.APIFunc) http.HandlerFunc { <ide> } <ide> <ide> if err := handlerFunc(ctx, w, r, vars); err != nil { <del> logrus.Errorf("Handler for %s %s returned error: %v", r.Method, r.URL.Path, err) <add> logrus.Errorf("Handler for %...
4
Javascript
Javascript
pass kind to recursive calls to flush
fa27c5634b4e0bd1699eca526d415147fe334107
<ide><path>lib/zlib.js <ide> Zlib.prototype.flush = function(kind, callback) { <ide> } else if (ws.needDrain) { <ide> var self = this; <ide> this.once('drain', function() { <del> self.flush(callback); <add> self.flush(kind, callback); <ide> }); <ide> } else { <ide> this._flushFlag = kind;
1
Python
Python
update conversion script
2f1c745cded91b2f6cfed5b502ea5cbd7d6b9ac7
<ide><path>transformers/convert_xlm_roberta_original_pytorch_checkpoint_to_pytorch.py <ide> def convert_roberta_checkpoint_to_pytorch(roberta_checkpoint_path, pytorch_dump_ <ide> roberta = FairseqRobertaModel.from_pretrained(roberta_checkpoint_path, bpe = 'sentencepiece') <ide> roberta.eval() # disable dropout...
1
Python
Python
add doctests for sorting algorithms
390feb0b23b4845a7ddfec7afd703aa053d1b224
<ide><path>sorts/pancake_sort.py <del>"""Pancake Sort Algorithm.""" <del># Only can reverse array from 0 to i <del> <add>""" <add>This is a pure python implementation of the pancake sort algorithm <add>For doctests run following command: <add>python3 -m doctest -v pancake_sort.py <add>or <add>python -m doctest -v panca...
2
Ruby
Ruby
add ast cache to the find_by method
77b18d7ef47f4dd6bf39853ac83cc19a3593406f
<ide><path>activerecord/lib/active_record/core.rb <ide> def self.disable_implicit_join_references=(value) <ide> end <ide> <ide> class_attribute :default_connection_handler, instance_writer: false <add> class_attribute :find_by_statement_cache <ide> <ide> def self.connection_handler <ide> ...
1
Ruby
Ruby
check git available
8d5c445daa7520c75f7b3c2a132eda2ec86e0727
<ide><path>Library/Homebrew/utils.rb <ide> def self.git_last_commit_date <ide> end <ide> <ide> def self.homebrew_version_string <del> pretty_revision = git_short_head <del> if pretty_revision <add> if Utils.git_available? && (pretty_revision = git_short_head) <ide> last_commit = git_last_commit_date...
1
Javascript
Javascript
fix typo in lib/util.js
8d3c46daa8a4a9a06a7753f594690edc4a8fe401
<ide><path>lib/util.js <ide> exports.pump = function(readStream, writeStream, callback) { <ide> * <ide> * The Function.prototype.inherits from lang.js rewritten as a standalone <ide> * function (not on Function.prototype). NOTE: If this file is to be loaded <del> * during bootstrapping this function needs to be revr...
1
Javascript
Javascript
add userefresh hook to react-debug-tools
27659559ebfd6b7119bfc0ff02ecb851c135020c
<ide><path>packages/react-debug-tools/src/ReactDebugHooks.js <ide> function getPrimitiveStackCache(): Map<string, Array<any>> { <ide> Dispatcher.useState(null); <ide> Dispatcher.useReducer((s, a) => s, null); <ide> Dispatcher.useRef(null); <add> if (typeof Dispatcher.useCacheRefresh === 'function...
1
Python
Python
add deberta to model_for_pretraining_mapping
a01ea31b5c605ea812777330ed1de8e805dca9ea
<ide><path>src/transformers/models/auto/modeling_auto.py <ide> (MPNetConfig, MPNetForMaskedLM), <ide> (TapasConfig, TapasForMaskedLM), <ide> (IBertConfig, IBertForMaskedLM), <add> (DebertaConfig, DebertaForMaskedLM), <add> (DebertaV2Config, DebertaV2ForMaskedLM), <ide> ] <ide> ...
1
PHP
PHP
fix backwards compatibility for typehints
113c5684716f117650f75bd3f996931c3d7460f2
<ide><path>src/ORM/Table.php <ide> public function implementedEvents() <ide> return $events; <ide> } <ide> <add> /** <add> * {@inheritDoc} <add> * <add> * @param \Cake\ORM\RulesChecker $rules The rules object to be modified. <add> * @return \Cake\ORM\RulesChecker <add> */ <add> pu...
1
Javascript
Javascript
update broken url in comments
39a1ec8b9e407a942f434037470418db17a748b9
<ide><path>examples/js/curves/CurveExtras.js <ide> * http://en.wikipedia.org/wiki/Viviani%27s_curve <ide> * http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page4.html <ide> * http://www.mi.sanu.ac.rs/vismath/taylorapril2011/Taylor.pdf <del> * http://prideout.net/blog/?p=44 <add> * https://prideout.net...
3
Text
Text
fix typo in doc
fbc1bc6921b3d809cfe33a9cda116bfa239e212a
<ide><path>docs/recipes/reducers/UpdatingNormalizedData.md <ide> As mentioned in [Normalizing State Shape](./NormalizingStateShape.md), the Norma <ide> <ide> ### Simple Merging <ide> <del>One approach is to merge the contents of the action in to the existing state. In this case, we need to do a deep recursive merge,...
1
Javascript
Javascript
fix localedata months on greek
555c00d010f22e059028cbf6eddd8a24c9182969
<ide><path>src/locale/el.js <ide> export default moment.defineLocale('el', { <ide> months : function (momentToFormat, format) { <ide> if (!momentToFormat) { <ide> return this._monthsNominativeEl; <del> } else if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a da...
2
Python
Python
remove one file
cadde4ee2bd6ecb25252dfa61c58f140838053d9
<ide><path>official/projects/longformer/transform_longformer_tokenized_into_tfrecord.py <del># Copyright 2021 The TensorFlow Authors. All Rights Reserved. <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 ...
1
Javascript
Javascript
fix alert screen crash in android in rntester app
f898bb65fac3f26944cbe1c47b87c63b2cd10e03
<ide><path>RNTester/js/examples/Alert/AlertExample.js <ide> const { <ide> View, <ide> } = require('react-native'); <ide> <del>const RNTesterBlock = require('../../components/RNTesterBlock'); <del> <ide> // corporate ipsum > lorem ipsum <ide> const alertMessage = <ide> 'Credibly reintermediate next-generation poten...
2
Ruby
Ruby
remove delegate methods that are not used
a11882ce405878d61e7edb8e7553980605e167c9
<ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb <ide> class JoinAssociation < JoinPart # :nodoc: <ide> <ide> attr_accessor :tables <ide> <del> delegate :options, :through_reflection, :source_reflection, :chain, :to => :reflection <add> delegate :chain, ...
1
Ruby
Ruby
show minitest options in test runner help
47308ff32a869f493ca85f7c5a58a082c084f391
<ide><path>railties/lib/minitest/rails_plugin.rb <ide> require "active_support/core_ext/module/attribute_accessors" <ide> require "rails/test_unit/reporter" <add>require "rails/test_unit/runner" <ide> <ide> module Minitest <ide> class SuppressedSummaryReporter < SummaryReporter <ide> def aggregated_results(*) <ide> ...
3
Ruby
Ruby
add html-scanner to the new base set of autoloads
7dd094329eee01cf9d18e4141226357eb8f75c76
<ide><path>actionpack/lib/action_controller/new_base.rb <ide> module ActionController <ide> require 'action_controller/routing' <ide> end <ide> <add>autoload :HTML, 'action_controller/vendor/html-scanner' <add> <ide> require 'action_dispatch' <ide> require 'action_view'
1
Javascript
Javascript
avoid .tolowercase() call in buffer#write()
4ddd6406ce1c474e1a54a5aa9b56f7554902fd10
<ide><path>lib/buffer.js <ide> Buffer.prototype.write = function(string, offset, length, encoding) { <ide> if (length === undefined || length > remaining) <ide> length = remaining; <ide> <del> encoding = !!encoding ? (encoding + '').toLowerCase() : 'utf8'; <del> <ide> if (string.length > 0 && (length < 0 || o...
1
Ruby
Ruby
remove duplicate method
a7e8fe4d6e3f18eb3431e9fc95b42542ae2946fb
<ide><path>test/controllers/ingresses/sendgrid/inbound_emails_controller_test.rb <ide> class ActionMailbox::Ingresses::Sendgrid::InboundEmailsControllerTest < ActionDi <ide> end <ide> end <ide> end <del> <del> private <del> def credentials <del> ActionController::HttpAuthentication::Basic.encode_cr...
1
PHP
PHP
remove unused use statements
02d3a0d583eef4bcec3b1150bb072b722a6c689a
<ide><path>src/Illuminate/Foundation/Console/ChannelMakeCommand.php <ide> namespace Illuminate\Foundation\Console; <ide> <ide> use Illuminate\Console\GeneratorCommand; <del>use Symfony\Component\Console\Input\InputOption; <ide> <ide> class ChannelMakeCommand extends GeneratorCommand <ide> {
1
PHP
PHP
add test for
3ad0c5d850a7685952d437e1c432db44edce0073
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testYear() <ide> $this->assertContains('Published on', $result); <ide> } <ide> <add> /** <add> * Test minYear being prior to the unix epoch <add> * <add> * @return void <add> */ <add> public function testIn...
1
Java
Java
add support for http options in spring mvc test
a56d8f28fe3c434d04d92ec6cd7ff60848cf8a2e
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/MockMvcBuilderSupport.java <ide> public abstract class MockMvcBuilderSupport { <ide> <ide> protected final MockMvc createMockMvc(Filter[] filters, MockServletConfig servletConfig, <ide> WebApplicationContext webAppContext, RequestBuilder...
4
Javascript
Javascript
improve labels for times that round to 0.0ms
60511aadc065d49d0b83578c8983b4447de45abb
<ide><path>src/devtools/views/Profiler/FlamegraphChartBuilder.js <ide> // @flow <ide> <del>import { calculateSelfDuration } from './utils'; <add>import { calculateSelfDuration, fineTune } from './utils'; <ide> <ide> import type { CommitDetailsFrontend, CommitTreeFrontend } from './types'; <ide> <ide> export function...
4
Javascript
Javascript
remove stream pending code
a65296db2c544df91e0f6c8cbc8ff79691f870fe
<ide><path>lib/internal/quic/core.js <ide> class QuicSession extends EventEmitter { <ide> silentClose: false, <ide> statelessReset: false, <ide> stats: undefined, <del> pendingStreams: new Set(), <ide> streams: new Map(), <ide> verifyErrorReason: undefined, <ide> verifyErrorCode: undefined, <...
2
Go
Go
add tcp support for gelf log driver
e17f3511144b37855d56a009d7e7622029242d2d
<ide><path>daemon/logger/gelf/gelf.go <ide> func New(info logger.Info) (logger.Logger, error) { <ide> return nil, err <ide> } <ide> <del> if address.Scheme == "tcp" { <del> return nil, fmt.Errorf("gelf: TCP not yet implemented") <del> } <del> <ide> // collect extra data for GELF message <ide> hostname, err := in...
2
PHP
PHP
rmove useless use in commands
fef787ba94e20c0942274e68fa10ed84f91c8a2e
<ide><path>src/Illuminate/Database/Console/Migrations/StatusCommand.php <ide> <?php namespace Illuminate\Database\Console\Migrations; <ide> <ide> use Illuminate\Database\Migrations\Migrator; <del>use Symfony\Component\Console\Input\InputOption; <ide> <ide> class StatusCommand extends BaseCommand { <ide> <ide><path>s...
3
Python
Python
fix lint issues
c4f1c98572e756d378e56e118124901d49b1032c
<ide><path>rest_framework/fields.py <ide> import re <ide> import uuid <ide> <del>import django <ide> from django.conf import settings <ide> from django.core.exceptions import ValidationError as DjangoValidationError <ide> from django.core.exceptions import ObjectDoesNotExist <ide> from django.core.validators import Re...
1
Ruby
Ruby
allow context type when set body mail
c4639b77378675f16c28660f43a23f2805ee6392
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def collect_responses(headers) <ide> yield(collector) <ide> collector.responses <ide> elsif headers[:body] <del> [{ <del> body: headers.delete(:body), <del> content_type: self.class.default[:content_type] ...
2
Javascript
Javascript
add platformconfig to native animations and nodes
4a227ce2ab3f8c181150461ab28b831979093db0
<ide><path>Libraries/Animated/AnimatedEvent.js <ide> const invariant = require('invariant'); <ide> <ide> const {shouldUseNativeDriver} = require('./NativeAnimatedHelper'); <ide> <add>import type {PlatformConfig} from './AnimatedPlatformConfig'; <add> <ide> export type Mapping = <ide> | {[key: string]: Mapping, ...}...
19
Java
Java
add more @nullable parameters based on null usage
1f28825f9da63a13aaf8940aadedcf81358dc506
<ide><path>spring-beans/src/main/java/org/springframework/beans/AbstractNestablePropertyAccessor.java <ide> public void setWrappedInstance(Object object) { <ide> * @param nestedPath the nested path of the object <ide> * @param rootObject the root object at the top of the path <ide> */ <del> public void setWrapped...
219
Go
Go
use same args on restart
2ed512c7faea938b0b07e69187b8a132e2ecb66a
<ide><path>integration-cli/check_test.go <ide> func (s *DockerSwarmSuite) AddDaemon(c *check.C, joinSwarm, manager bool) *daemo <ide> d.StartAndSwarmInit(c) <ide> } <ide> } else { <del> d.StartWithBusybox(c, "--iptables=false", "--swarm-default-advertise-addr=lo") <add> d.StartNode(c) <ide> } <ide> <ide> s.p...
5
Text
Text
use present tense in events.md
c4b3b2341383369ccbd0fa68e51266f580e9a5fd
<ide><path>doc/api/events.md <ide> can be used. <ide> <ide> When the `EventEmitter` object emits an event, all of the functions attached <ide> to that specific event are called _synchronously_. Any values returned by the <del>called listeners are _ignored_ and will be discarded. <add>called listeners are _ignored_ and...
1
Javascript
Javascript
add todo item
ab144f4843c2c7630564f26cfbdd69d01d8fbd00
<ide><path>lib/tls.js <ide> Server.prototype.setOptions = function(options) { <ide> // s.end("hello world\n"); <ide> // }); <ide> // <add>// <add>// TODO: make port, host part of options! <ide> exports.connect = function(port /* host, options, cb */) { <ide> // parse args <ide> var host, options = {}, cb;
1
Javascript
Javascript
add assert.notdeepequal() tests
294e3008ad65d92fc6ad9d97f043093054e079ad
<ide><path>test/parallel/test-assert.js <ide> assert.throws(makeBlock(a.deepEqual, new Date(), new Date(2000, 3, 14)), <ide> a.AssertionError, <ide> 'deepEqual(new Date(), new Date(2000, 3, 14))'); <ide> <add>assert.throws(makeBlock( <add> a.notDeepEqual, <add> new Date(2000, 3, 14), <add...
1
PHP
PHP
wrap long lines
e2461397b9463d46438b49878608620d24cafea7
<ide><path>src/TestSuite/Fixture/FixtureManager.php <ide> public function load($test) <ide> try { <ide> $fixture->dropConstraints($db); <ide> } catch (PDOException $e) { <del> $msg = sprintf('Unable to drop constraint...
1
Ruby
Ruby
allow proc defaults with the attributes api
a6e3cdae0ce1d05a6b9f7dff4499f6be3fbf63c2
<ide><path>activerecord/lib/active_record/attribute/user_provided_default.rb <add>require 'active_record/attribute' <add> <add>module ActiveRecord <add> class Attribute # :nodoc: <add> class UserProvidedDefault < FromUser <add> def initialize(name, value, type) <add> super(name, value, type) <add> ...
3
Ruby
Ruby
fix user name in doc [ci skip]
4675a15a38f6373f417710ff949f1434c66cf43a
<ide><path>activerecord/lib/active_record/relation.rb <ide> def new(*args, &block) <ide> # ==== Examples <ide> # <ide> # users = User.where(name: 'Oscar') <del> # users.create # => #<User id: 3, name: "oscar", ...> <add> # users.create # => #<User id: 3, name: "Oscar", ...> <ide> # <ide> ...
1
Ruby
Ruby
add test cases for optimistic locking
7b1ee9f54c5906b49b60b300212e17e0290e8ee5
<ide><path>activerecord/test/cases/locking_test.rb <ide> def test_lock_new_when_explicitly_passing_nil <ide> assert_equal 0, p1.lock_version <ide> end <ide> <add> def test_lock_new_when_explicitly_passing_value <add> p1 = Person.new(first_name: "Douglas Adams", lock_version: 42) <add> p1.save! <add> as...
1
Java
Java
expose surfaceid as part reactrootview
f0b6f8441b68263722e5c771d3dfc8ad0dd76896
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java <ide> public void setShouldLogContentAppeared(boolean shouldLogContentAppeared) { <ide> mShouldLogContentAppeared = shouldLogContentAppeared; <ide> } <ide> <add> @Nullable <add> @Override <add> public String getSurfaceID() { <add> ...
4
Python
Python
remove unused import
68a9f9a9221e1c7e0c90ef80fcd469da742613c0
<ide><path>libcloud/compute/drivers/dreamhost.py <ide> <ide> import copy <ide> <del>from libcloud.pricing import get_pricing <ide> from libcloud.common.base import ConnectionKey, Response <ide> from libcloud.common.types import InvalidCredsError <ide> from libcloud.compute.base import Node, NodeDriver, NodeSize
1
Python
Python
fix bug in eig with complex solutions
af40b197e5af26afe09ebc1b9392993fa8a62270
<ide><path>numpy/linalg/linalg.py <ide> def eig(a): <ide> v = vr <ide> else: <ide> w = wr+1j*wi <del> v = array(vr,Complex) <add> v = array(vr, w.dtype) <ide> ind = nonzero( <ide> equal( <ide> equal...
1
PHP
PHP
allow int value
e472489a2f231fe264c11699a056eb2204ea594e
<ide><path>src/Illuminate/Validation/Rules/DatabaseRule.php <ide> public function resolveTableName($table) <ide> * Set a "where" constraint on the query. <ide> * <ide> * @param \Closure|string $column <del> * @param array|string|null $value <add> * @param array|string|int|null $value <ide> ...
1
Javascript
Javascript
use tmpdir instead of fixturesdir
b11e2565744acaf714451f49fbdf5ec16cfdc061
<ide><path>test/parallel/test-regress-GH-3739.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const assert = require('assert'); <add>const fs = require('fs'); <add>const path = require('path'); <add> <add>var dir = path.resolve(common.tmpDir); <add> <add>// Make sure that the tmp directory is...
2
Go
Go
fix some typos
3f02d91ef85499e0cf2fd106817d3cbeb77e3a38
<ide><path>daemon/list.go <ide> type listContext struct { <ide> <ide> // beforeFilter is a filter to ignore containers that appear before the one given <ide> beforeFilter *container.Snapshot <del> // sinceFilter is a filter to stop the filtering when the iterator arrive to the given container <add> // sinceFilter is...
1
PHP
PHP
remove unnecessary leftovers from new test case
16216c0f97e5fee2d6c7be03c09a7f00d1b1b173
<ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php <ide> public function testReplaceLinkWithConditions() <ide> $connection = ConnectionManager::get('test'); <ide> $joint = $this->getMock( <ide> '\Cake\ORM\Table', <del> ['delete', 'find'], <add> ['find'], <i...
1
Python
Python
add script to do conllu training
24fb2c246fa263db893e4c7c959ce404dbf824aa
<ide><path>examples/training/conllu.py <add>'''Train for CONLL 2017 UD treebank evaluation. Takes .conllu files, writes <add>.conllu format for development data, allowing the official scorer to be used. <add>''' <add>from __future__ import unicode_literals <add>import plac <add>import tqdm <add>import re <add>import sp...
1
Text
Text
add readme to pkg
652c2c2a80cd119ffb8017c25e741ddad9399236
<ide><path>pkg/README.md <add>pkg/ is a collection of utility packages used by the Docker project without being specific to its internals. <add> <add>Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. <add>If some utilities grow larger and their APIs stabilize,...
1
Javascript
Javascript
fix code styling to pass tests
33356f65ba78ceb277f2375cccaf78b72d0414e7
<ide><path>lib/Stats.js <ide> Stats.jsonToString = function jsonToString(obj, useColors) { <ide> } <ide> }; <ide> return obj; <del> }, { normal: function (str) { buf.push(str); } }); <add> }, { <add> normal: function(str) { <add> buf.push(str); <add> } <add> }); <ide> <ide> function coloredTime(time) { <id...
1
Python
Python
use smallest integer for tri ranges
dab5e3e2e23cd00a338fd221b3bd7751c6edd893
<ide><path>numpy/lib/twodim_base.py <ide> <ide> from numpy.core.numeric import ( <ide> asanyarray, subtract, arange, zeros, greater_equal, multiply, ones, <del> asarray, where, dtype as np_dtype, less <add> asarray, where, dtype as np_dtype, less, int8, int16, int32, int64 <ide> ) <add>from numpy.core im...
1
PHP
PHP
add missing type hints
ed142d8c89de98f32f8a2ec437c139ef88c47f3c
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> protected function _filterResults(&$results, Model $Model, $filtered = array()) <ide> * @return mixed <ide> * @throws CakeException when results cannot be created. <ide> */ <del> public function queryAssociation(Model $Model, &$LinkModel, $type, $association, ...
1
Java
Java
avoid deprecated mockito methods
ac774cdcef7b25878f075d7e3514c373880eacac
<ide><path>spring-context/src/test/java/org/springframework/context/annotation/ImportSelectorTests.java <ide> public void importSelectors() { <ide> context.refresh(); <ide> context.getBean(Config.class); <ide> InOrder ordered = inOrder(beanFactory); <del> ordered.verify(beanFactory).registerBeanDefinition(eq("a"...
7
PHP
PHP
fix failing test
6e0cf0dab7a41c1dfcc29471f73b8eb376e1456c
<ide><path>lib/Cake/Test/Case/Console/Command/CommandListShellTest.php <ide> public function testMain() { <ide> $expected = "/\[.*TestPluginTwo.*\] example, welcome/"; <ide> $this->assertRegExp($expected, $output); <ide> <del> $expected = "/\[.*CORE.*\] acl, api, bake, command_list, console, i18n, schema, test, t...
1
Ruby
Ruby
add explicit option for disabling sandbox
307ca85e0e110d9c84179aa50957693bdeaf5dec
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def sandbox? <ide> include?("--sandbox") || !ENV["HOMEBREW_SANDBOX"].nil? <ide> end <ide> <add> def no_sandbox? <add> include?("--no-sandbox") || !ENV["HOMEBREW_NO_SANDBOX"].nil? <add> end <add> <ide> def ignore_deps? <ide> include? "--ignore-dependenci...
1
Python
Python
fix lint errors
0fbc71fc4681356f76f21ee998ff18ed2b0aafd2
<ide><path>official/recommendation/data_test.py <ide> <ide> from collections import defaultdict <ide> import hashlib <del>import mock <ide> import os <ide> <add>import mock <ide> import numpy as np <ide> import scipy.stats <ide> import tensorflow as tf <ide> def test_preprocessing(self): <ide> for match_mlperf in...
1
Javascript
Javascript
require ipc when needed
934c0720d882387e801a95f5f276731cab75ee92
<ide><path>static/index.js <ide> window.onload = function() { <del> var ipc = require('ipc'); <ide> try { <ide> // Skip "?loadSettings=". <ide> var loadSettings = JSON.parse(decodeURIComponent(location.search.substr(14))); <ide> window.onload = function() { <ide> ModuleCache.add(loadSettings.resourcePath...
1
Ruby
Ruby
secure formulae loading
c5536e1e08a13352cf241a2c3f7b2aa75a8e31d6
<ide><path>Library/Homebrew/descriptions.rb <ide> require "formula" <add>require "formula_versions" <ide> require "csv" <ide> <ide> class Descriptions <ide> def self.update_cache(report) <ide> # cache. Save the updated cache to disk, unless explicitly told not to. <ide> def self.cache_formulae(formula_names, optio...
1
Mixed
Ruby
add ability to prevent writes to a database
f39d72d5267baed1000932831cda98503d1e1047
<ide><path>activerecord/CHANGELOG.md <add>* Add the ability to prevent writes to a database for the duration of a block. <add> <add> Allows the application to prevent writes to a database. This can be useful when <add> you're building out multiple databases and want to make sure you're not sending <add> writ...
10
Java
Java
delete unused imports
2719dcb29b871ec24d6f10028dce76e440691d20
<ide><path>spring-context-indexer/src/test/java/org/springframework/context/index/test/TestCompiler.java <ide> /* <del> * Copyright 2002-2019 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...
1
Text
Text
fix document errors related to ticks
946c6d0617bfa0eb21e86f6f75d7f34b2bb1dc85
<ide><path>docs/axes/cartesian/README.md <ide> The following options are common to all cartesian axes but do not apply to other <ide> | `autoSkip` | `boolean` | `true` | If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to `maxRotation` before skippin...
2
Ruby
Ruby
use 1.9 hash syntax instead
7c9bcbb5e486a5d5e35d38c5fbcbea6af88fc23a
<ide><path>railties/lib/rails/generators/generated_attribute.rb <ide> def has_uniq_index? <ide> end <ide> <ide> def inject_options <del> @attr_options.blank? ? '' : ", #{@attr_options.to_s.gsub(/[{}]/, '')}" <add> "".tap { |s| @attr_options.each { |k,v| s << ", #{k}: #{v.inspect}" } } <ide> ...
3