content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Go
Go
remove group name from identity mapping
7ad0da705144c2a8a223fa0f8d0cad2fbffe4554
<ide><path>daemon/daemon_unix.go <ide> func setupRemappedRoot(config *config.Config) (*idtools.IdentityMapping, error) <ide> logrus.Warn("User namespaces: root cannot be remapped with itself; user namespaces are OFF") <ide> return &idtools.IdentityMapping{}, nil <ide> } <del> logrus.Infof("User namespaces: ID ...
4
Text
Text
add lukekarrys to collaborators
e749bbda2873c42816be9ffb6b0858561b553be5
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **LiviaMedeiros** <<livia@cirno.name>> <ide> * [lpinca](https://github.com/lpinca) - <ide> **Luigi Pinca** <<luigipinca@gmail.com>> (he/him) <add>* [lukekarrys](https://github.com/lukekarrys) - <add> **Luke Karrys** <...
1
Javascript
Javascript
make padding optional
58cd3349db447a392c8b5c34352460fe217fad19
<ide><path>src/core/crypto.js <ide> var AES128Cipher = (function AES128CipherClosure() { <ide> if (finalize) { <ide> // undo a padding that is described in RFC 2898 <ide> var lastBlock = result[result.length - 1]; <del> outputLength -= lastBlock[15]; <del> result[result.length - 1] = lastBlock...
1
Ruby
Ruby
fix name_for_action in routing
8a8dac80bb9aa173617a456f187b3fff56b4c347
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def name_for_action(as, action) #:nodoc: <ide> member_name = parent_resource.member_name <ide> end <ide> <del> name = @scope.action_name(name_prefix, prefix, collection_name, member_name) <add> action_name...
2
Ruby
Ruby
remove warning on arm
b02acb37c080a6f697a6b534bdc768bf4d8ce6c9
<ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb <ide> def fatal_setup_build_environment_checks <ide> <ide> def supported_configuration_checks <ide> %w[ <del> check_for_unsupported_arch <ide> check_for_unsupported_macos <ide> ].freeze <ide> end <ide> def check_for_...
2
PHP
PHP
use proper assertions.
21cc812403d343f46dc6ebe34b12a98fa99a7246
<ide><path>tests/Container/ContainerTest.php <ide> public function testContainerKnowsEntry() <ide> { <ide> $container = new Container; <ide> $container->bind('Illuminate\Tests\Container\IContainerContractStub', 'Illuminate\Tests\Container\ContainerImplementationStub'); <del> $this->assertEqua...
1
Javascript
Javascript
use more `for...of` loops in the code-base
37ebc2875603c19e600f5851ef83f15c2637839e
<ide><path>extensions/chromium/extension-router.js <ide> limitations under the License. <ide> url: CRX_BASE_URL + "*:*", <ide> }, <ide> function (tabsFromLastSession) { <del> for (var i = 0; i < tabsFromLastSession.length; ++i) { <del> chrome.tabs.reload(tabsFromLastSession[i].id); <add> ...
14
Javascript
Javascript
create components lazily
322d0e00e237a240377995a71aedba99301c3780
<ide><path>Libraries/Animated/src/Animated.js <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <ide> * <del> * @flow strict-local <add> * @flow <ide> * @format <ide> */ <ide> <ide> 'use strict'; <ide> <ide> const AnimatedImple...
7
Text
Text
fix typos in “mixins considered harmful”
f02cbba9fd764540d631a326aaf11f9cab1bdfb1
<ide><path>docs/_posts/2016-07-13-mixins-considered-harmful.md <ide> var UserRow = React.createClass({ <ide> return ( <ide> <div> <ide> {this.renderHeader() /* Defined by RowMixin */} <del> <h2>{this.props.user.biography} <add> <h2>{this.props.user.biography}</h2> <ide> </div> <ide...
1
Text
Text
update actiontext docs [ci skip]
695b6e0d8693548258cb46b821009102047e8ccb
<ide><path>guides/source/action_text_overview.md <ide> happens after every keystroke, and avoids the need to use execCommand at all. <ide> <ide> ## Installation <ide> <del>Run `rails action_text:install` to add the Yarn package and copy over the necessary migration. <del>Also, you need to set up Active Storage for em...
1
Java
Java
move the codes out of the finally block
54d4224297fcd4c1f2c6770b1f0766dc3402c374
<ide><path>src/main/java/rx/internal/operators/OperatorMerge.java <ide> private void handleScalarSynchronousObservable(ScalarSynchronousObservable<? ext <ide> private void handleScalarSynchronousObservableWithoutRequestLimits(ScalarSynchronousObservable<? extends T> t) { <ide> T value = t.get(); <id...
1
Text
Text
fix string interpolation in testing guide
e16de199aedf1139f1f8066d385e5fb83d3d1b93
<ide><path>guides/source/testing.md <ide> One good place to store them is `test/lib` or `test/test_helpers`. <ide> # test/test_helpers/multiple_assertions.rb <ide> module MultipleAssertions <ide> def assert_multiple_of_forty_two(number) <del> assert (number % 42 == 0), 'expected #{number} to be a multiple of 42' <...
1
Javascript
Javascript
defer only keydown, throttle settimeouts
4e83399570391fe4a41ce4dc27c8a191f761d26d
<ide><path>src/widget/input.js <ide> var ngModelInstantDirective = ['$browser', function($browser) { <ide> return { <ide> require: 'ngModel', <ide> link: function(scope, element, attr, ctrl) { <del> element.bind('keydown change input', function(event) { <del> var key = event.keyCode; <del> <del> ...
2
Python
Python
fix typo in examples/run_glue.py args declaration
fbf5455a8607fa660aacbf06c16f6fe23758b13d
<ide><path>examples/run_glue.py <ide> def main(): <ide> parser.add_argument("--learning_rate", default=5e-5, type=float, <ide> help="The initial learning rate for Adam.") <ide> parser.add_argument("--weight_decay", default=0.0, type=float, <del> help="Weight deay i...
1
Javascript
Javascript
fix typo in convert-argv.js
ef4943bff73c28c209e283666b8744fd2b0951bb
<ide><path>bin/convert-argv.js <ide> module.exports = function(optimist, argv, convertOptions) { <ide> } <ide> <ide> if(typeof options !== "object" || options === null) { <del> console.log("Config did not export a object."); <add> console.log("Config did not export an object."); <ide> process.exit(-1); <ide> } ...
1
Javascript
Javascript
fix e2e test for example
977e2f55de7075b7dbfbab37e40a632bbaf0252f
<ide><path>src/ng/directive/ngClass.js <ide> function classDirective(name, selector) { <ide> expect(element('.doc-example-live p:first').prop('className')).not().toMatch(/bold/); <ide> expect(element('.doc-example-live p:first').prop('className')).not().toMatch(/red/); <ide> <del> input('bold...
1
Text
Text
add gireeshpunathil to collaborators
50ba13ef0ef856147b5ffd354afd343a0501fb1c
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Wyatt Preul** &lt;wpreul@gmail.com&gt; <ide> * [gibfahn](https://github.com/gibfahn) - <ide> **Gibson Fahnestock** &lt;gibfahn@gmail.com&gt; (he/him) <add>* [gireeshpunathil](https://github.com/gireeshpunathil) - <add>*...
1
PHP
PHP
simplify widget resolution code
4018caaada163addb1781077d60dec9606784b22
<ide><path>src/View/Widget/WidgetLocator.php <ide> public function add(array $widgets): void <ide> */ <ide> public function get(string $name) <ide> { <del> if (!isset($this->_widgets[$name]) && empty($this->_widgets['_default'])) { <del> throw new RuntimeException(sprintf('Unknown widget ...
1
Text
Text
update examples and more information
6eb660ba0bfaa3eecf5559ef66c6f0369ff68186
<ide><path>guide/english/mathematics/example-all-the-ways-you-can-flip-a-coin/index.md <ide> title: Example All the Ways You Can Flip a Coin <ide> --- <ide> ## Example All the Ways You Can Flip a Coin <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/example-a...
1
Text
Text
update cson link
6242bd7eb768f50774ad2bf9b148e48f343bcd59
<ide><path>docs/customizing-atom.md <ide> This file can also be named _styles.css_ and contain CSS. <ide> [creating-a-package]: creating-a-package.md <ide> [create-theme]: creating-a-theme.md <ide> [LESS]: http://www.lesscss.org <del>[CSON]: https://github.com/bevry/cson <add>[CSON]: https://github.com/atom/season <ide...
1
Python
Python
add layerscale to nat/dinat
11f3ec7224c83c9e5c379a774b9d3984e68d26fa
<ide><path>src/transformers/models/dinat/configuration_dinat.py <ide> class DinatConfig(PretrainedConfig): <ide> The standard deviation of the truncated_normal_initializer for initializing all weight matrices. <ide> layer_norm_eps (`float`, *optional*, defaults to 1e-12): <ide> The epsil...
5
Javascript
Javascript
improve resolvebuilddependencies performance
f76ffc0c0106c9c25ef491aa64913d750dd7e2de
<ide><path>lib/FileSystemInfo.js <ide> const AsyncQueue = require("./util/AsyncQueue"); <ide> const createHash = require("./util/createHash"); <ide> const { join, dirname, relative } = require("./util/fs"); <ide> const makeSerializable = require("./util/makeSerializable"); <add>const processAsyncTree = require("./util/...
2
Ruby
Ruby
convert results of #to_param to strings #879
0919dbf6b63a4aaa49a2855c37e79a90937290e1
<ide><path>actionpack/lib/action_controller/routing.rb <ide> def draw <ide> end <ide> <ide> def self.extract_parameter_value(parameter) <del> value = parameter.respond_to?(:to_param) ? parameter.to_param : parameter.to_s <add> value = (parameter.respond_to?(:to_param) ? parameter.to_param : param...
2
Ruby
Ruby
remove unused variable
3d71826e6dc794b0f3b6b9098ff0b49e3f997bfa
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> def print_filename string, filename <ide> result = false <ide> <ide> keg.each_unique_file_matching(string) do |file| <del> put_filename = false <del> <ide> # Check dynamic library linkage. Importantly, do not run otool on static <ide> # libraries...
1
Python
Python
run bdist_wheel as a part of release process
ce06240851d18ab725d348bce1793aad67349131
<ide><path>scripts/make-release.py <ide> def set_setup_version(version): <ide> <ide> <ide> def build_and_upload(): <del> Popen([sys.executable, 'setup.py', 'release', 'sdist', 'upload']).wait() <add> Popen([sys.executable, 'setup.py', 'release', 'sdist', 'bdist_wheel', 'upload']).wait() <ide> <ide> <ide> def ...
1
Python
Python
fix theano.tensor.signal import issue
289804c67ca1329f7992a00a751d80394f85f93e
<ide><path>keras/layers/convolutional.py <ide> <ide> import theano <ide> import theano.tensor as T <add>from theano.tensor.signal import downsample <ide> <ide> from .. import activations, initializations, regularizers, constraints <ide> from ..utils.theano_utils import shared_zeros, on_gpu <ide> def __init__(self, po...
1
Text
Text
update queue description
28123415d067e8d019c9551c4878fd6d79b37501
<ide><path>README.md <ide> Two-dimensional recursive spatial subdivision. <ide> <ide> ## [Queues](https://github.com/d3/d3-queue) <ide> <del>A minimalist approach to escaping callback hell. <add>Evaluate asynchronous tasks with configurable concurrency. <ide> <ide> * [d3.queue](https://github.com/d3/d3-queue#queue) ...
1
Python
Python
update example, no need to disable cert validation
ce4ee9558ed0c53e03cb31627c597d5388b56ffa
<ide><path>docs/examples/compute/cloudstack/start_interactive_shell_ikoula.py <ide> <ide> from libcloud.compute.types import Provider <ide> from libcloud.compute.providers import get_driver <del>import libcloud.security as sec <del> <del>sec.VERIFY_SSL_CERT = False <ide> <ide> apikey = os.getenv('IKOULA_API_KEY') <id...
1
Javascript
Javascript
replace array to arrayisarray by primordials
1bbd679adc291a9ae9b7dc7bbca863883cee9638
<ide><path>lib/internal/source_map/source_map.js <ide> 'use strict'; <ide> <ide> const { <del> Array <add> ArrayIsArray <ide> } = primordials; <ide> <ide> const { <ide> function cloneSourceMapV3(payload) { <ide> } <ide> payload = { ...payload }; <ide> for (const key in payload) { <del> if (payload.hasOwnPr...
1
Python
Python
add std=c99 flag for gcc, cleanup error reporting
3356d994fcf3fdfcfedc70185fc013501a87a4b9
<ide><path>numpy/core/setup.py <ide> def get_mathlib_info(*args): <ide> # compiler does not work). <ide> st = config_cmd.try_link('int main(void) { return 0;}') <ide> if not st: <add> # rerun the failing command in verbose mode <ide> config_cmd.compiler.verbose = True <del...
2
Text
Text
remove extraneous sentence in events.md
498415b4abd879a81333f48123cc31ca8f32b6f5
<ide><path>doc/api/events.md <ide> added: v0.3.5 <ide> <ide> By default `EventEmitter`s will print a warning if more than `10` listeners are <ide> added for a particular event. This is a useful default that helps finding <del>memory leaks. Obviously, not all events should be limited to just 10 listeners. <del>The `emi...
1
Javascript
Javascript
remove transaction from componentwillupdate
735b4f0b7cd4f67f85a5950f35e4adb46ee3d9b4
<ide><path>src/core/ReactCompositeComponent.js <ide> var ReactCompositeComponentMixin = { <ide> var prevState = this.state; <ide> <ide> if (this.componentWillUpdate) { <del> this.componentWillUpdate(nextProps, nextState, transaction); <add> this.componentWillUpdate(nextProps, nextState); <ide> } ...
1
Javascript
Javascript
move exports to bottom for consistent code style
aa00968255cdb6471b9e7fec99337697a2ce882c
<ide><path>lib/child_process.js <ide> const { <ide> <ide> const MAX_BUFFER = 1024 * 1024; <ide> <del>exports.ChildProcess = ChildProcess; <del> <del>exports.fork = function fork(modulePath /* , args, options */) { <add>function fork(modulePath /* , args, options */) { <ide> validateString(modulePath, 'modulePath');...
1
Java
Java
fix typos in requestresultmatchers
bb51447860113f2c17d5e8d4df22c0ca1817b8f3
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/result/RequestResultMatchers.java <ide> * {@link MockMvcResultMatchers#request}. <ide> * <ide> * @author Rossen Stoyanchev <add> * @author Sam Brannen <ide> * @since 3.2 <ide> */ <ide> public class RequestResultMatchers { <ide> <ide> /** <...
1
Javascript
Javascript
fix all anchor links in docs
5a53d90003139a2d32a67435af880980a142c50f
<ide><path>website/core/Header.js <ide> var React = require('React'); <ide> var slugify = require('slugify'); <ide> <ide> var Header = React.createClass({ <del> getDefaultProps: function() { <del> return {permalink: ''}; <add> contextTypes: { <add> permalink: React.PropTypes.string <ide> }, <ide> <ide> re...
5
PHP
PHP
fix multi-word models with irregular plurals
b70ec729f8459140505bae0f6a5699c2fc813ef7
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public static function unsetConnectionResolver() <ide> */ <ide> public function getTable() <ide> { <del> if (! isset($this->table)) { <del> return str_replace( <del> '\\', '', Str::snake(Str::plural(class_basename(...
6
PHP
PHP
use "use" statments
e1e9745f6f18562d99f4dc6bf73ed3a06a935ea0
<ide><path>src/Cache/Engine/RedisEngine.php <ide> namespace Cake\Cache\Engine; <ide> <ide> use Cake\Cache\CacheEngine; <add>use Redis; <add>use RedisException; <ide> <ide> /** <ide> * Redis storage engine for cache. <ide> public function init(array $config = []) <ide> protected function _connect() <ide> { <i...
1
PHP
PHP
trim sql before executing
1dd6daf7a01f53fec3c7397edcbfbc601ed77ae1
<ide><path>laravel/db/connection.php <ide> public function query($sql, $bindings = array()) <ide> <ide> $this->queries[] = compact('sql', 'bindings'); <ide> <del> return $this->execute($this->pdo->prepare($sql), $bindings); <add> return $this->execute($this->pdo->prepare(trim($sql)), $bindings); <ide> } <ide> <...
1
Ruby
Ruby
make os x specific
08f68fc4dd6afc6c118ad631889c2a35e4e8d07e
<ide><path>Library/Homebrew/test/test_os_mac_x11_requirement.rb <add>require "testing_env" <add>require "requirements/x11_requirement" <add> <add>class OSMacX11RequirementTests < Homebrew::TestCase <add> def test_satisfied <add> MacOS::XQuartz.stubs(:version).returns("2.7.5") <add> MacOS::XQuartz.stubs(:installe...
2
Javascript
Javascript
fix tht typos
34970fd7853a26e72179e5c97ea28143d00297bc
<ide><path>src/core/ReactMount.js <ide> var ReactMount = { <ide> }, <ide> <ide> /** <del> * Ensures tht the top-level event delegation listener is set up. This will be <del> * invoked some time before the first time any React component is rendered. <add> * Ensures that the top-level event delegation listener...
1
Javascript
Javascript
improve comments in a few tests
8897d255f2567aecdf780d94c3f45ee719c9ace8
<ide><path>test/moment/zone_switching.js <ide> exports.zoneSwitching = { <ide> m.zone(z * 60); <ide> <ide> test.equal(m.clone().local(true).format(fmt), m.format(fmt), <del> "zone(" + z + ":00) to local failed to keep the local time"); <add> "zone(" + z + "...
1
Javascript
Javascript
fix flakey preload test
b408d733735b9eb4d6b596bad0cbc7f7e9be696c
<ide><path>test/integration/preload-viewport/test/index.test.js <ide> describe('Prefetching Links in viewport', () => { <ide> })()`) <ide> <ide> console.log({ linkHrefs, scriptSrcs }) <del> expect(linkHrefs.some((href) => scriptSrcs.includes(href))).toBe(false) <add> expect(scriptSrcs.some((src) => src.i...
1
Go
Go
remove check for map nilness
8f311f4d8c80fc33613a0f4ddf723ef1e11b1b17
<ide><path>daemon/info.go <ide> import ( <ide> <ide> // SystemInfo returns information about the host server the daemon is running on. <ide> func (daemon *Daemon) SystemInfo() (*types.Info, error) { <del> images := daemon.Graph().Map() <del> var imgcount int <del> if images == nil { <del> imgcount = 0 <del> } else { ...
1
Text
Text
add a warning about totally custom login views
4ad8c17371e25acbdce4e2f449efccc4df072270
<ide><path>docs/api-guide/authentication.md <ide> Unauthenticated responses that are denied permission will result in an `HTTP 403 <ide> <ide> If you're using an AJAX style API with SessionAuthentication, you'll need to make sure you include a valid CSRF token for any "unsafe" HTTP method calls, such as `PUT`, `PATCH`...
1
Javascript
Javascript
verify arguments length in common.expectserror
29cddb40b238daf1dfad0cc42e0d3bd5068dff03
<ide><path>test/common/index.js <ide> exports.expectsError = function expectsError(fn, settings, exact) { <ide> } <ide> <ide> function innerFn(error) { <add> if (arguments.length !== 1) { <add> // Do not use `assert.strictEqual()` to prevent `util.inspect` from <add> // always being called. <add> ...
1
Python
Python
add pushtohubcallback in main init
ad3e560bc775b888941cdf59c9252fa4e2d79817
<ide><path>src/transformers/__init__.py <ide> _import_structure["benchmark.benchmark_args_tf"] = ["TensorFlowBenchmarkArguments"] <ide> _import_structure["benchmark.benchmark_tf"] = ["TensorFlowBenchmark"] <ide> _import_structure["generation_tf_utils"] = ["tf_top_k_top_p_filtering"] <del> _import_structu...
2
Go
Go
create errvolumetargetisroot in the volume package
62143af5437a29d4b95f971d1905cfef763b0847
<ide><path>volume/lcow_parser.go <ide> package volume <ide> <ide> import ( <ide> "errors" <del> "fmt" <ide> "path" <ide> <ide> "github.com/docker/docker/api/types/mount" <ide> ) <ide> <ide> var lcowSpecificValidators mountValidator = func(m *mount.Mount) error { <ide> if path.Clean(m.Target) == "/" { <del> retu...
3
Text
Text
fix changelog url (angularjs.com -> angularjs.org)
5dbf0cc8a28fe5ab5503c45129444cbc59b6bd1f
<ide><path>CHANGELOG.md <ide> <ide> <ide> ### Documentation <del>- brand new template for <http://docs.angularjs.com/> <add>- brand new template for <http://docs.angularjs.org/> <ide> - brand new tutorial that describes how to build a typical angular app <del> <http://docs.angularjs.com/#!/tutorial> <add> <http://d...
1
Ruby
Ruby
remove dead code
c7cf7f476a47c9e4c60a369efa338a1fa9d81d6c
<ide><path>activerecord/test/cases/relation/where_chain_test.rb <ide> def test_rewhere_with_one_condition <ide> def test_rewhere_with_multiple_overwriting_conditions <ide> relation = Post.where(title: 'hello').where(body: 'world').rewhere(title: 'alone', body: 'again') <ide> <del> title_expected = Arel:...
1
Python
Python
remove redundant operations in 1d masking
40938e4367b3f6f0f368d71ec3e4722f58592cd8
<ide><path>numpy/lib/histograms.py <ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None): <ide> on_edge = (np.around(sample[:, i], decimal) == <ide> np.around(edges[i][-1], decimal)) <ide> # Shift these points one bin to the left. <del> ...
1
PHP
PHP
add note to remember method's purpose
2d4dd33f87a604716beb4e03e9526c1a9d4e5a54
<ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php <ide> public function delete($uri, array $data = [], array $headers = []) <ide> /** <ide> * Send the given request through the application. <ide> * <add> * This method allows you to fully customize the entire Request object. <add> * <id...
1
Text
Text
move fedor to tsc emeritus
7dffabbb8417bb23d3789f10463c441b1e02a535
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt; <ide> * [gibfahn](https://github.com/gibfahn) - <ide> **Gibson Fahnestock** &lt;gibfahn@gmail.com&gt; (he/him) <del>* [indutny](https://github.com/indutny) - <d...
1
Ruby
Ruby
use inject rather than multiple assignments
d2405a0aab6b246842163cdb1a40d2d300b7b879
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def initialize_copy(other) <ide> def compile <ide> return @callbacks if @callbacks <ide> <del> @callbacks = Filters::ENDING <del> @chain.reverse_each do |callback| <del> @callbacks = callback.apply(@callbacks) <add> ...
1
PHP
PHP
add mac_address validation message
f79296dcd548c0ced169f6453d75f231fee407fc
<ide><path>resources/lang/en/validation.php <ide> 'ip' => 'The :attribute must be a valid IP address.', <ide> 'ipv4' => 'The :attribute must be a valid IPv4 address.', <ide> 'ipv6' => 'The :attribute must be a valid IPv6 address.', <add> 'mac_address' => 'The :attribute must be a valid MAC address.', <id...
1
PHP
PHP
add missing typehints to core classes
5c3da82f0fdcbb12335f38f77714d20c8bf4a5aa
<ide><path>src/Cache/CacheRegistry.php <ide> protected function _resolveClassName($class) <ide> * @return void <ide> * @throws \BadMethodCallException <ide> */ <del> protected function _throwMissingClassError($class, $plugin) <add> protected function _throwMissingClassError(string $class, string $p...
18
Ruby
Ruby
add uniq_by and uniq_by! to array
0361414ae328c10de8ed778e826d8244ba0aa63a
<ide><path>activesupport/lib/active_support/core_ext/array.rb <ide> require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/array/access' <add>require 'active_support/core_ext/array/uniq_by' <ide> require 'active_support/core_ext/array/conversions' <ide> require 'active_support/core_ext/arra...
3
Javascript
Javascript
improve test coverage of internal/worker/io
10b043287c3fe96f677e95a0229c520a57105316
<ide><path>test/parallel/test-broadcastchannel-custom-inspect.js <add>'use strict'; <add> <add>require('../common'); <add>const { BroadcastChannel } = require('worker_threads'); <add>const { inspect } = require('util'); <add>const assert = require('assert'); <add> <add>// This test checks BroadcastChannel custom inspec...
1
PHP
PHP
apply fixes from styleci
fdeb01e367ba299e7f5e5accc733c2472b951f7e
<ide><path>src/Illuminate/Support/MessageBag.php <ide> <ide> use Countable; <ide> use JsonSerializable; <del>use Illuminate\Support\Arr; <ide> use Illuminate\Contracts\Support\Jsonable; <ide> use Illuminate\Contracts\Support\Arrayable; <ide> use Illuminate\Contracts\Support\MessageProvider;
1
Ruby
Ruby
fix regex placement
e4ef1f062e7af00db859e205043b127afe33272f
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> def diff_formulae(start_revision, end_revision, path, filter) <ide> @short_url = @url.gsub("https://github.com/", "") <ide> if @short_url.include? "/commit/" <ide> # 7 characters should be enough for a commit (not 40). <del> @short...
1
Python
Python
remove unused argument in private function
0dbc9ad1454aab5044ab0a14b9094db1a3c7c027
<ide><path>numpy/lib/function_base.py <ide> def _median(a, axis=None, out=None, overwrite_input=False): <ide> indexer[axis] = slice(index-1, index+1) <ide> indexer = tuple(indexer) <ide> <add> # Use mean in both odd and even case to coerce data type, <add> # using out array if needed. <add> rout =...
3
Ruby
Ruby
remove unused code in actionview
befec8a0d83bc61238680b584688470069efb23b
<ide><path>actionpack/lib/action_view.rb <ide> def self.load_all! <ide> autoload :Base, 'action_view/base' <ide> autoload :Context, 'action_view/context' <ide> autoload :Helpers, 'action_view/helpers' <del> autoload :InlineTemplate, 'action_view/template/inline' <ide> autolo...
4
PHP
PHP
avoid code duplication
4407cdb010ce497d89c5d87019dbf00f20291d66
<ide><path>lib/Cake/Model/Datasource/CakeSession.php <ide> protected static function _cookieName() { <ide> } <ide> <ide> self::init(); <add> self::_configureSession(); <ide> <del> $sessionConfig = Configure::read('Session'); <del> if (isset($sessionConfig['ini']['session.name'])) { <del> return self::$_cooki...
1
Text
Text
remove the word "very"
cbf4407aa8fab03bbe09076edf0ad0bbc9b610c7
<ide><path>README.md <ide> NumPy requires `pytest` and `hypothesis`. Tests can then be run after installat <ide> Code of Conduct <ide> ---------------------- <ide> <del>NumPy is a community-driven open source project developed by a very diverse group of <add>NumPy is a community-driven open source project developed b...
1
Ruby
Ruby
simplify strings for search
6fcc5d14de042e5328a0d37972af35aa98f5a9eb
<ide><path>Library/Homebrew/cmd/desc.rb <ide> #: first search, making that search slower than subsequent ones. <ide> <ide> require "descriptions" <del>require "cmd/search" <add>require "search" <ide> <ide> module Homebrew <ide> module_function <ide> <add> extend Search <add> <ide> def desc <ide> search_t...
4
Go
Go
remove some uses of testutil.helpert
0d4ffa3588031ba544a5a6b1ac175dfa0005f147
<ide><path>testutil/daemon/daemon.go <ide> func NewDaemon(workingDir string, ops ...Option) (*Daemon, error) { <ide> // $DOCKER_INTEGRATION_DAEMON_DEST or $DEST. <ide> // The daemon will not automatically start. <ide> func New(t testing.TB, ops ...Option) *Daemon { <del> if ht, ok := t.(testutil.HelperT); ok { <del> h...
9
Javascript
Javascript
fix bug in opacity handling
26536f8849335f17f3958d7eb544ad811732937e
<ide><path>src/plugins/plugin.tooltip.js <ide> class Tooltip extends Element { <ide> }; <ide> <ide> // IE11/Edge does not like very small opacities, so snap to 0 <del> opacity = Math.abs(opacity < 1e-3) ? 0 : opacity; <add> opacity = Math.abs(opacity) < 1e-3 ? 0 : opacity; <ide> <ide> // Truthy/falsey value f...
1
Javascript
Javascript
fix progressplugin log
a9ada9f9198ffbd2af03223d5cd3029616f6e6dd
<ide><path>lib/ProgressPlugin.js <ide> const median3 = (a, b, c) => { <ide> }; <ide> <ide> const createDefaultHandler = (profile, logger) => { <add> let wasLogged = false; <ide> /** @type {{ value: string, time: number }[]} */ <ide> const lastStateInfo = []; <ide> <ide> const createDefaultHandler = (profile, logger...
2
Go
Go
create the cidfile before creating the container
25be79208a1473a65be883989ae49b7c71081a83
<ide><path>commands.go <ide> func (cli *DockerCli) CmdRun(args ...string) error { <ide> return nil <ide> } <ide> <add> var containerIDFile *os.File <add> if len(hostConfig.ContainerIDFile) > 0 { <add> if _, err := ioutil.ReadFile(hostConfig.ContainerIDFile); err == nil { <add> return fmt.Errorf("cid file found, ...
1
Python
Python
add coding to fix cyrillic output
c4d5ea27eb985024833e15898015ad26339c26d9
<ide><path>airflow/utils/log/file_task_handler.py <ide> def _read(self, ti, try_number, metadata=None): # pylint: disable=unused-argume <ide> pass <ide> <ide> response = requests.get(url, timeout=timeout) <add> response.encoding = "utf-8" <ide> <ide> ...
1
Text
Text
add an explicit version if necessary
9928754c2234ee146f49e9a3dac3af017490e7dd
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> Add aliases by creating symlinks in `Library/Aliases`. <ide> <ide> You can run `brew audit` to test formulae for adherence to Homebrew house style. This includes warnings for trailing whitespace, preferred URLs for certain source hosts, and a lot of other style i...
1
PHP
PHP
apply fixes from styleci
acec13a2b3ee734b15410982e84355030c26468f
<ide><path>tests/Auth/AuthAccessGateTest.php <ide> public function test_authorize_with_policy_that_returns_denied_response_object_t <ide> public function test_policy_that_throws_authorization_exception_is_caught_in_inspect() <ide> { <ide> $gate = $this->getBasicGate(); <del> <add> <ide> ...
1
Python
Python
remove unused imports
c8a75ed65008a39d99626c5a488893a04736e37d
<ide><path>numpy/core/_internal.py <ide> import re <ide> import sys <ide> <del>from numpy.compat import basestring, unicode <add>from numpy.compat import unicode <ide> from .multiarray import dtype, array, ndarray <ide> try: <ide> import ctypes <ide> except ImportError: <ide> ctypes = None <del>from .numericty...
3
Ruby
Ruby
add args argument to write_env_script
c244e992afbab4e74fa5134c21c345e281b3f5aa
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def write_exec_script(*targets) <ide> end <ide> <ide> # Writes an exec script that sets environment variables <del> def write_env_script(target, env) <add> def write_env_script(target, args, env = nil) <add> unless env <add> env = args <add> args ...
1
Python
Python
fix pickling failure when spawning processes
520aeedec82d91e15d5c43da4c85c948c5eb2ac3
<ide><path>airflow/configuration.py <ide> <ide> import copy <ide> import logging <add>import multiprocessing <ide> import os <ide> import pathlib <ide> import re <ide> def __init__(self, default_config=None, *args, **kwargs): <ide> self.is_validated = False <ide> <ide> def _validate(self): <del> if...
7
PHP
PHP
make getconnectionname overridable
741f29d4693156192d7dee6f30670e989bdf8a9d
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function newFromBuilder($attributes = [], $connection = null) <ide> <ide> $model->setRawAttributes((array) $attributes, true); <ide> <del> $model->setConnection($connection ?: $this->connection); <add> $model->setConnection($conn...
1
Text
Text
add cellular_automata directory
b560b76002006e934533d47b2ea69c8360106d1d
<ide><path>cellular_automata/README.md <add># Cellular Automata <add> <add>* https://en.wikipedia.org/wiki/Cellular_automaton <add>* https://mathworld.wolfram.com/ElementaryCellularAutomaton.html
1
PHP
PHP
apply fixes from styleci
561d38887fd0848d1672d554dd1cd30f5044bb84
<ide><path>src/Illuminate/Console/Scheduling/ManagesFrequencies.php <ide> public function twiceMonthly($first = 1, $second = 16, $time = '0:0') <ide> $days = $first.','.$second; <ide> <ide> $this->dailyAt($time); <del> <add> <ide> return $this->spliceIntoPosition(1, 0) <ide> ...
1
Text
Text
add a note about security
5f6f3c7fc3ea96a362101c3d7fa08f31df0358b3
<ide><path>README.md <ide> tests for cakephp by doing the following: <ide> <ide> See [CONTRIBUTING.md](CONTRIBUTING.md) for more information. <ide> <del> <ide> ## Some Handy Links <ide> <ide> [CakePHP](http://www.cakephp.org) - The rapid development PHP framework. <ide> See [CONTRIBUTING.md](CONTRIBUTING.md) for mor...
1
Python
Python
fix a path so that test can run on windows
c4e9615691a19128f446563718355aedf03cf01b
<ide><path>pytorch_transformers/tests/modeling_common_test.py <ide> import shutil <ide> import json <ide> import random <add>import uuid <ide> <ide> import unittest <ide> import logging <ide> def create_and_test_config_to_json_string(self): <ide> <ide> def create_and_test_config_to_json_file(self): <ide> ...
1
Text
Text
fix created_at [ci skip]
70bb0cc2ec9ab13f362a2cc9d414c8622c74e796
<ide><path>guides/source/security.md <ide> class Session < ApplicationRecord <ide> end <ide> ``` <ide> <del>The section about session fixation introduced the problem of maintained sessions. An attacker maintaining a session every five minutes can keep the session alive forever, although you are expiring sessions. A si...
1
PHP
PHP
apply fixes from styleci
6232c084adf5ccc0629bd56042a89fe588b8dc93
<ide><path>tests/Database/DatabaseQueryBuilderTest.php <ide> public function testMySqlWrappingJsonWithBooleanAndIntegerThatLooksLikeOne() <ide> <ide> public function testJsonPathEscaping() <ide> { <del> $expectedWithJsonEscaped = <<<SQL <add> $expectedWithJsonEscaped = <<<'SQL' <ide> select json_...
1
Ruby
Ruby
fix external command test and code style (#281)
78f8c60343b514ee7129cf3c86f216460a4ed3ab
<ide><path>Library/Homebrew/test/test_commands.rb <ide> def setup <ide> end <ide> <ide> def teardown <del> @cmds.each { |f| f.unlink } <add> @cmds.each(&:unlink) <ide> end <ide> <ide> def test_internal_commands <ide> def test_external_commands <ide> %w[brew-t1 brew-t2.rb brew-t3.py].each do |file|...
1
Javascript
Javascript
fix trailing whitespace
f1663088c3d75801a37a8b8dc031779b15dc9ba9
<ide><path>src/ng/location.js <ide> var locationPrototype = { <ide> * This method is getter only. <ide> * <ide> * Return host of current url. <del> * <add> * <ide> * Note: compared to the non-angular version `location.host` which returns `hostname:port`, this returns the `hostname` portion only. <ide> ...
1
Javascript
Javascript
add prod urls to verify emails
942962fa0f95b2873c660b37e4a52d30964cc5ac
<ide><path>common/models/user.js <ide> import { blacklistedUsernames } from '../../server/utils/constants'; <ide> <ide> const debug = debugFactory('fcc:user:remote'); <ide> const BROWNIEPOINTS_TIMEOUT = [1, 'hour']; <add>const isDev = process.env.NODE_ENV !== 'production'; <ide> <ide> function getAboutProfile({ <ide>...
2
Go
Go
fix preferred ip allocation in ipam
b2ff78548a9b8b81c481df8c904c1ab3db8b3ad3
<ide><path>libnetwork/ipam/allocator.go <ide> const ( <ide> minNetSizeV6Eff = 96 <ide> // The size of the host subnet used internally, it's the most granular sequence addresses <ide> defaultInternalHostSize = 16 <del> // datastore keyes for ipam obkects <add> // datastore keyes for ipam objects <ide> dsConfigKey = ...
4
PHP
PHP
throw a 429 http exception
990326c988f3b9a844cd6cf47d067bc1dad2173f
<ide><path>src/Illuminate/Routing/Middleware/ThrottleRequests.php <ide> use Illuminate\Support\Carbon; <ide> use Illuminate\Cache\RateLimiter; <ide> use Symfony\Component\HttpFoundation\Response; <add>use Symfony\Component\HttpKernel\Exception\HttpException; <ide> <ide> class ThrottleRequests <ide> { <ide> public func...
1
Java
Java
replace action1 with consumer in docs
0b0355e3bc09326c8005fd26d09e7c1eb4aeb6e3
<ide><path>src/main/java/io/reactivex/flowables/ConnectableFlowable.java <ide> public Flowable<T> autoConnect(int numberOfSubscribers) { <ide> * @param numberOfSubscribers the number of subscribers to await before calling connect <ide> * on the ConnectableObservable. A non-positive ...
4
Java
Java
fix crash on reactedittext with appcompat 1.4.0
e21f8ec34984551f87a306672160cc88e67e4793
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java <ide> public class ReactEditText extends AppCompatEditText <ide> <ide> private ReactViewBackgroundManager mReactBackgroundManager; <ide> <del> private final FabricViewStateManager mFabricViewStateManager = new FabricViewSta...
1
Javascript
Javascript
remove obsolete webpack plugins
34cb05a86074182bc04accf43937d297ececc18e
<ide><path>build/webpack.js <ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i <ide> // required not to cache removed files <ide> useHashIndex: false <ide> }), <del> new webpack.DefinePlugin({ <del> 'process.env.NODE_ENV': JSON.stringify(dev ? 'devel...
7
Javascript
Javascript
replace var with const in test-require-dot
fa4f1587d34c8d18ab93b7c3e9fc37d7e05697a9
<ide><path>test/parallel/test-require-dot.js <ide> 'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <del>var module = require('module'); <add>const common = require('../common'); <add>const assert = require('assert'); <add>const m = require('module'); <ide> <del>var a = requir...
1
PHP
PHP
allow multiple manifest files for mix helper
404671a623e955f0eb593eb7436fa24dceef2bce
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function method_field($method) <ide> /** <ide> * Get the path to a versioned Mix file. <ide> * <del> * @param string $path <add> * @param string $path <add> * @param string $manifestDir <ide> * @return \Illuminate\Support\HtmlString...
1
PHP
PHP
use fewer empty calls
b4aed2425e9a06ae32a7194935b5d069315a1b00
<ide><path>src/Controller/Component/CsrfComponent.php <ide> public function startup(Event $event) <ide> if ($request->is('get') && $cookieData === null) { <ide> $this->_setCookie($request, $response); <ide> } <del> if ($request->is(['put', 'post', 'delete', 'patch']) || !empty($reques...
2
Python
Python
streamline test for
6c083b12a1162bf8e0f51e6c52ff13a1bd621cf2
<ide><path>tests/browsable_api/auth_urls.py <ide> from __future__ import unicode_literals <ide> from django.conf.urls import patterns, url, include <del>from rest_framework import routers <ide> <del>from .views import MockView, FooViewSet, BarViewSet <add>from .views import MockView <ide> <del>router = routers.Simple...
6
PHP
PHP
deprecate several log methods
a8a65130c92d9e818dc09f3c538707153c5a3e84
<ide><path>lib/Cake/Log/Log.php <ide> public static function reset() { <ide> static::$_registry = null; <ide> } <ide> <del>/** <del> * @deprecated Use Configure::write() to configure logging. <del> * @see App/Config/logging.php <del> * @return void <del> */ <del> public static function config($key, $config) { <del>...
2
Python
Python
use select inputs for relationships. closes
fd97d9bff82b96b9362930686b9008ba78326115
<ide><path>rest_framework/relations.py <ide> def __init__(self, **kwargs): <ide> <ide> def __new__(cls, *args, **kwargs): <ide> # We override this method in order to automagically create <del> # `ManyRelation` classes instead when `many=True` is set. <add> # `ManyRelatedField` classes instead...
2
Javascript
Javascript
remove rethrowcaughterror injection
0a41890eaa018a3509912c12df6c4f24fc0a3200
<ide><path>src/renderers/shared/utils/ReactErrorUtils.js <ide> const ReactErrorUtils = { <ide> typeof injectedErrorUtils.invokeGuardedCallback === 'function', <ide> 'Injected invokeGuardedCallback() must be a function.', <ide> ); <del> invariant( <del> typeof injectedErrorUtils.rethrow...
1
Ruby
Ruby
fix renew feature on cookies
afc3ccf74cbb6c3d495558e934ced1c006dacda8
<ide><path>actionpack/lib/action_dispatch/middleware/session/cookie_store.rb <ide> def unpacked_cookie_data(env) <ide> end <ide> <ide> def set_session(env, sid, session_data, options) <del> persistent_session_id!(session_data, sid) <add> session_data.merge("session_id" => sid) <ide> end...
2
PHP
PHP
fix tests that occasionally fail on postgres
e0586da808431811dc2d0f0738032b7a5838f8c0
<ide><path>lib/Cake/Test/Case/Model/BehaviorCollectionTest.php <ide> public function testBehaviorHasOneFindCallbacks() { <ide> public function testBehaviorBelongsToFindCallbacks() { <ide> $this->skipIf($this->db instanceof Sqlserver, 'This test is not compatible with SQL Server.'); <ide> <add> $conditions = array(...
1
Text
Text
remove nat rule when removing bridge
d10d0e568e44a4e55293610a5cac84359719baff
<ide><path>docs/sources/articles/networking.md <ide> stopping the service and removing the interface: <ide> $ sudo service docker stop <ide> $ sudo ip link set dev docker0 down <ide> $ sudo brctl delbr docker0 <add> $ sudo iptables -t nat -F POSTROUTING <ide> <ide> Then, before starting the Docker servi...
1
Text
Text
add security contact to readme
f9ac0b384ac64b024dfcf277fd80daa52b941142
<ide><path>readme.md <ide> Documentation for the framework can be found on the [Laravel website](http://lar <ide> <ide> Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions). <ide> <add>## Security Vul...
1