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
Javascript
Javascript
title the pages
83b74d14f3db506b2271caf1cffadee394493c56
<ide><path>client/src/client-only-routes/ShowSettings.js <ide> import { bindActionCreators } from 'redux'; <ide> import { connect } from 'react-redux'; <ide> import { createSelector } from 'reselect'; <ide> import { Grid, Button } from '@freecodecamp/react-bootstrap'; <add>import Helmet from 'react-helmet'; <ide> <ide...
10
PHP
PHP
add tests for file permissions
aabd1a9edc36052fddb01931e9bfe09a0e260779
<ide><path>tests/Cache/CacheFileStoreTest.php <ide> use Illuminate\Contracts\Filesystem\FileNotFoundException; <ide> use Illuminate\Filesystem\Filesystem; <ide> use Illuminate\Support\Carbon; <add>use Mockery as m; <ide> use PHPUnit\Framework\TestCase; <ide> <ide> class CacheFileStoreTest extends TestCase <ide> public...
1
Python
Python
allow empty prefix and no lead slash in bp route
f13870731c100d3ed7daa5d96a75b697973def77
<ide><path>flask/blueprints.py <ide> def add_url_rule(self, rule, endpoint=None, view_func=None, **options): <ide> to the application. The endpoint is automatically prefixed with the <ide> blueprint's name. <ide> """ <del> if self.url_prefix: <add> if self.url_prefix is not None: ...
1
Ruby
Ruby
fix some unanchored patch urls
6675fd88fc3421711ea021287deb4aae8c6206f4
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_specs <ide> def audit_patches <ide> Patches.new(f.patches).select(&:external?).each do |p| <ide> case p.url <del> when %r[raw\.github\.com], %r[gist\.github\.com/raw] <add> when %r[raw\.github\.com], %r[gist\.github\.com/raw], %r[gist\.githu...
1
Javascript
Javascript
compile node material per object
59e8e47d2df52b9572b14e1bd7f616b1cb0809a7
<ide><path>examples/jsm/renderers/webgpu/WebGPUBindings.js <ide> class WebGPUBindings { <ide> if ( data === undefined ) { <ide> <ide> const pipeline = this.pipelines.get( object ); <del> const material = object.material; <del> <del> const nodeBuilder = this.nodes.get( material ); <ide> <ide> // each mater...
3
Ruby
Ruby
allow instances to disable record_timestamps
0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33
<ide><path>activerecord/lib/active_record/timestamp.rb <ide> module Timestamp <ide> extend ActiveSupport::Concern <ide> <ide> included do <del> class_attribute :record_timestamps, :instance_writer => false <add> class_attribute :record_timestamps <ide> self.record_timestamps = true <ide> en...
2
Go
Go
use empty string as cgroup path to grab first find
78045a5419718ba8884ed5afc0b41a3a80afc3b4
<ide><path>daemon/daemon_unix.go <ide> func (daemon *Daemon) initCgroupsPath(path string) error { <ide> // for the period and runtime as this limits what the children can be set to. <ide> daemon.initCgroupsPath(filepath.Dir(path)) <ide> <del> mnt, root, err := cgroups.FindCgroupMountpointAndRoot("cpu") <add> mnt, ro...
2
Mixed
Javascript
support export default in the class codemod
989caa870d614458aee2f40fb08b2c1229a04248
<ide><path>packages/react-codemod/README.md <ide> calls. <ide> * `jscodeshift -t react/packages/react-codemod/transforms/findDOMNode.js <file>` <ide> <ide> `pure-render-mixin` removes `PureRenderMixin` and inlines <del>`shouldComponentUpdate` so that the ES6 class transform can pick up the React <del>component and t...
5
Javascript
Javascript
fix autoskip for first segment of chart
6c9f202c6835d60fbaa220cbfab99b9946aae999
<ide><path>src/core/core.scale.js <ide> function skip(ticks, spacing, majorStart, majorEnd) { <ide> } <ide> <ide> next = start; <add> <add> while (next < 0) { <add> count++; <add> next = Math.round(start + count * spacing); <add> } <add> <ide> for (i = Math.max(start, 0); i < end; i++) { <ide> tick = ticks[i]; ...
1
Python
Python
fix bug with validation data in graph model
e94f29cac4151b1b52f3ee419bf7191018974308
<ide><path>keras/models.py <ide> def slice_X(X, start=None, stop=None): <ide> if hasattr(start, '__len__'): <ide> # hdf5 dataset only support list object as indices <ide> if hasattr(start, 'shape'): <del> start = start.tolist() <add> start = start.tolist() <ide...
1
Javascript
Javascript
ensure mouseenter works with svg elements on ie
941c1c35f175c36171a8855323f086341ea55711
<ide><path>src/jqLite.js <ide> function jqLiteParseHTML(html, context) { <ide> return []; <ide> } <ide> <add> <add>// IE9-11 has no method "contains" in SVG element and in Node.prototype. Bug #10259. <add>var jqLiteContains = Node.prototype.contains || function(arg) { <add> // jshint bitwise: false <add> return !!...
2
Javascript
Javascript
enable es7 async functions in jest
2263cddd027601a4cf1a5aa4a9a96b349354c251
<ide><path>jestSupport/env.js <ide> global.__fbBatchedBridgeConfig = { <ide> }; <ide> <ide> global.Promise = require('promise'); <add>global.regeneratorRuntime = require.requireActual('regenerator/runtime'); <ide> <ide> jest.setMock('ErrorUtils', require('ErrorUtils'));
1
Javascript
Javascript
add german locale
b99b2b80b01a4c972b7d9b855fff7d83eec9939b
<ide><path>src/locale/de.js <add>import "locale"; <add> <add>d3.locale.de = d3.locale({ <add> decimal: ",", <add> thousands: ".", <add> grouping: [3], <add> currency: ["", " €"], <add> dateTime: "%A der %e. %B %Y, %X", <add> date: "%e.%m.%Y", <add> time: "%H:%M:%S", <add> periods: ["AM", "PM"], // unused <add> ...
1
PHP
PHP
get default locale before setting a new locale
6e54d273c74e71d8c6150e2f6710d4e9f537c94c
<ide><path>src/I18n/I18n.php <ide> public static function locale($locale = null) <ide> */ <ide> public static function setLocale($locale) <ide> { <add> static::getDefaultLocale(); <ide> Locale::setDefault($locale); <ide> if (isset(static::$_collection)) { <ide> static::tr...
1
Javascript
Javascript
remove build from mobile curriculum test
62957fd8752061723cac1277bbb80c96af14516b
<ide><path>tools/scripts/build/mobile-curriculum.test.js <ide> const path = require('path'); <ide> const fs = require('fs'); <ide> const { AssertionError } = require('chai'); <del>const { getChallengesForLang } = require('../../../curriculum/getChallenges'); <ide> const envData = require('../../../config/env.json'); <d...
1
Ruby
Ruby
add sass-rails back to the default gemfile
692bb7cebc7df6494adf6b068321eb3fc29acaf9
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def assets_gemfile_entry <ide> return [] if options[:skip_sprockets] <ide> <ide> gems = [] <add> gems << GemfileEntry.version('sass-rails', '~> 5.0', <add> 'Use SCSS for stylesheets') <ide> <ide> ...
2
PHP
PHP
add comment to boostrap
3780da4ad1c6644b73390b950d180f81a970cc1d
<ide><path>laravel/laravel.php <ide> } <ide> <ide> /** <del> * Route the request to the proper route in the application. If a <del> * route is found, the route will be called via the request class <del> * static property. If no route is found, the 404 response will <del> * be returned to the browser. <add> * If the re...
1
Python
Python
add test for long seeks in windows 64 bit systems
54b7a0d21de9cb31017d8e00de67f3207d7629a2
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_binary(self): <ide> array([1,2,3,4]), <ide> dtype='<f4') <ide> <add> @dec.slow # takes > 1 minute on mechanical hard drive <add> def test_big_binary(self): <add> """Test workarounds for 32-bit l...
1
Text
Text
improve instructions on opening a terminal
28e8abfa59341377a6568413dfc207ce1e1c7909
<ide><path>guides/source/getting_started.md <ide> TIP: The examples below use # and $ to denote superuser and regular user termina <ide> <ide> ### Installing Rails <ide> <del>Open up a command line prompt. On a mac this is called terminal, on windows it is called command prompt. Any commands prefaced with a dollar si...
1
Python
Python
use defaults for vdc and network
8c0b172efb0e3159d9debeeeff39cdd75048d917
<ide><path>libcloud/drivers/vcloud.py <ide> def vdcs(self): <ide> <ide> return self._vdcs <ide> <add> @property <add> def networks(self): <add> networks = [] <add> for vdc in self.vdcs: <add> res = self.connection.request(vdc).object <add> networks.extend(...
2
Javascript
Javascript
use createreadstream instead of readstream
aec019030d9a2dc0d108eb22995bc379a7d0da08
<ide><path>test/parallel/test-fs-read-stream.js <ide> const rangeFile = fixtures.path('x.txt'); <ide> let paused = false; <ide> let bytesRead = 0; <ide> <del> const file = fs.ReadStream(fn); <add> const file = fs.createReadStream(fn); <ide> const fileSize = fs.statSync(fn).size; <ide> <ide> assert.strictEqu...
1
Ruby
Ruby
remove unused templaterunner attributes
2dc5d12c91d0c717f7bac6b544193e810ce4917a
<ide><path>railties/lib/rails_generator/generators/applications/app/template_runner.rb <ide> <ide> module Rails <ide> class TemplateRunner <del> attr_reader :behavior, :description, :root <add> attr_reader :root <ide> <ide> def initialize(root, template) # :nodoc: <ide> @root = Dir.pwd + "/" + root
1
Text
Text
fix typo in the api remote reference for links
72a0272a62f881fefb8dea5986b865fea36113ab
<ide><path>docs/sources/reference/api/docker_remote_api_v1.15.md <ide> Json Parameters: <ide> volume for the container), `host_path:container_path` (to bind-mount <ide> a host path into the container), or `host_path:container_path:ro` <ide> (to make the bind-mount read-only inside the cont...
5
PHP
PHP
add sponsor link
0e01834bedb0a360608e4eec6c71418454004ce6
<ide><path>resources/views/welcome.blade.php <ide> </div> <ide> </div> <ide> <del> <div class="mt-4 text-center text-sm text-gray-500 sm:text-right"> <del> Build v{{ Illuminate\Foundation\Application::VERSION }} <add> <div class="flex...
1
Javascript
Javascript
remove failing benchmark parameter
99f61677a99e115297953f236866149a11aa315b
<ide><path>benchmark/child_process/child-process-read-ipc.js <ide> if (process.argv[2] === 'child') { <ide> const bench = common.createBenchmark(main, { <ide> len: [ <ide> 64, 256, 1024, 4096, 16384, 65536, <del> 65536 << 4, 65536 << 8, <add> 65536 << 4, 65536 << 6 - 1, <ide> ], <ide> dur:...
1
Text
Text
match characters th…
f2c3d635ef8af5874cfa9de5c0bc6c3ea824e75c
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times.english.md <ide> let result = chewieQuote.match(chewieRegex); <ide> <section id='solution'> <ide> <ide> ```js <del>// solution required <add> let chewieQuote = "Aaaa...
1
Javascript
Javascript
add test case for missing branch
254b5f04e7b309146cb8ade1d1fb0b804b964a51
<ide><path>test/parallel/test-crypto-engine.js <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <ide> const crypto = require('crypto'); <add>const invalidEngineName = 'xxx'; <ide> <ide> common.expectsError( <ide> () => crypto.setEngine(true), <ide> common.expectsError( <ide> type: TypeE...
1
Javascript
Javascript
add network agent
1709043a123823260b51174060fb8f4de8370dcb
<ide><path>Libraries/Core/InitializeCore.js <ide> navigator.product = 'ReactNative'; <ide> defineProperty(navigator, 'geolocation', () => require('Geolocation')); <ide> <ide> // Set up collections <del>// We can't make these lazy because `Map` checks for `global.Map` (which would <add>// We can't make these lazy becau...
3
Python
Python
fix shlex.split for non-posix
3487214ba182572a8696152ec671f08078e0dc91
<ide><path>spacy/cli/project.py <ide> <ide> from ._app import app, Arg, Opt, COMMAND, NAME <ide> from .. import about <add>from ..compat import is_windows <ide> from ..schemas import ProjectConfigSchema, validate <ide> from ..util import ensure_path, run_command, make_tempdir, working_dir <ide> from ..util import get_...
1
Javascript
Javascript
fix array sorting bug
6514a4128c3e7aa6c1bb1c6f3f018412fa76e5d9
<ide><path>test/simple/test-crypto.js <ide> <ide> var common = require('../common'); <ide> var assert = require('assert'); <add>var util = require('util'); <ide> <ide> try { <ide> var crypto = require('crypto'); <ide> testPBKDF2('pass\0word', 'sa\0lt', 4096, 16, <ide> })(); <ide> <ide> function assertSorted(list) ...
1
Text
Text
fix incorrect date in changelog
e2352e6071af9c1a0865478d24f8f2c44778ebc8
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.6.0-beta.2 (October 27, 2018) <add>### v3.6.0-beta.2 (October 29, 2018) <ide> <ide> - [#17130](https://github.com/emberjs/ember.js/pull/17130) [BUGFIX] Ensure that timers scheduled after a system sleep are fired properly. <ide> - [#17137](https://githu...
1
Java
Java
remove unused glassfishloadtimeweavertests
c5779e2ed6b2235dfac8de20aa9a2faf22dfc317
<ide><path>spring-context/src/test/java/org/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaverTests.java <del>/* <del> * Copyright 2002-2012 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in ...
1
Javascript
Javascript
improve socket.write() error message
ec49fc822901e1a0deb510a876485f5e94b72866
<ide><path>lib/net.js <ide> Socket.prototype.__defineGetter__('localPort', function() { <ide> <ide> <ide> Socket.prototype.write = function(chunk, encoding, cb) { <del> if (typeof chunk !== 'string' && !(chunk instanceof Buffer)) <del> throw new TypeError('Invalid data'); <add> if (typeof chunk !== 'string' && !...
2
PHP
PHP
remove php5 conditional statements
87db96638384dcf548aa589de731aa54c856deab
<ide><path>cake/libs/controller/controller.php <ide> public function loadModel($modelClass = null, $id = null) { <ide> if (($cached === false)) { <ide> $this->modelNames[] = $modelClass; <ide> <del> if (!PHP5) { <del> $this->{$modelClass} =& ClassRegistry::init(array( <del> 'class' => $plugin . $modelCla...
1
PHP
PHP
use model instance instead of parent
df2f36c3e1b733eb006cd27b240d68e6fa8bcb3b
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php <ide> protected function getResultsByType($type) <ide> (array) ($this->morphableEagerLoads[get_class($instance)] ?? []) <ide> )); <ide> <del> $whereIn = $this->whereInMethod($this->paren...
1
Javascript
Javascript
write config file atomically (write and replace)
f77391b158007c2ef32da5edb58fd23799ef2174
<ide><path>src/config-file.js <ide> const {watchPath} = require('./path-watcher') <ide> const CSON = require('season') <ide> const Path = require('path') <ide> const async = require('async') <add>const temp = require('temp') <ide> <ide> const EVENT_TYPES = new Set([ <ide> 'created', <ide> class ConfigFile { <ide> ...
1
Javascript
Javascript
fix jpeg check in textureloader
356453504da0890af808f79092af5b2d63424395
<ide><path>src/loaders/TextureLoader.js <ide> Object.assign( TextureLoader.prototype, { <ide> texture.image = image; <ide> <ide> // JPEGs can't have an alpha channel, so memory can be saved by storing them as RGB. <del> var isJPEG = url.search( /\.jpe?g$/i ) > 0 || url.search( /^data\:image\/jpeg/ ) === 0; <ad...
1
Javascript
Javascript
change usage uuid to id
f4884bac7a11d9dcef86921f1e54c99a24fd98e4
<ide><path>src/extras/renderers/plugins/DepthPassPlugin.js <ide> THREE.DepthPassPlugin = function () { <ide> <ide> if ( object.visible ) { <ide> <del> var webglObjects = scene.__webglObjects[object.uuid]; <add> var webglObjects = scene.__webglObjects[object.id]; <ide> <ide> if (webglObjects && (object.f...
3
Javascript
Javascript
assure a minimum pointcount of 2
6419e92e139861c0d8c1dc633003b226f96dd26a
<ide><path>examples/jsm/loaders/3DMLoader.js <ide> Rhino3dmLoader.Rhino3dmWorker = function () { <ide> if ( curve instanceof rhino.ArcCurve ) { <ide> <ide> pointCount = Math.floor( curve.angleDegrees / 5 ); <del> pointCount = pointCount < 1 ? 2 : pointCount; <add> pointCount = pointCount < 2 ? 2 : pointCount;...
1
Ruby
Ruby
fix incorrect comment
0bdce89d65dfe39abb851090b1224f1a810ea277
<ide><path>Library/Homebrew/cleaner.rb <ide> def clean_file_permissions path <ide> path.chmod perms <ide> end <ide> <del> # Clean a single folder (non-recursively) <add> # Removes .la files and fixes file permissions for a directory tree, keeping <add> # existing files and permissions if instructed to by the ...
1
Text
Text
add changelog entry for
6e34601653614ca98f632d14662b4852bc351abe
<ide><path>activesupport/CHANGELOG.md <add>* `HashWithIndifferentAccess#select working as intended` now returns a `HashWithIndifferentAccess` <add> instance instead of a `Hash` instance. <add> <add> Fixes #10723 <add> <add> *Albert Llop* <add> <ide> * Add `DateTime#usec` and `DateTime#nsec` so that `Active...
1
Ruby
Ruby
fix array routing constraints
94a27cb2b5c9b3db8e72d4cbef00ff040b30681d
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> def visit_SYMBOL(node) <ide> return @separator_re unless @matchers.key?(node) <ide> <ide> re = @matchers[node] <del> "(#{re})" <add> "(#{Regexp.union(re)})" <ide> end <ide> <ide> d...
2
Java
Java
make parallel() a fusion-async-boundary
ddd9b67f7e4848a16c491f495876dfd2f890d499
<ide><path>src/main/java/io/reactivex/internal/operators/parallel/ParallelFromPublisher.java <ide> public void onSubscribe(Subscription s) { <ide> @SuppressWarnings("unchecked") <ide> QueueSubscription<T> qs = (QueueSubscription<T>) s; <ide> <del> int m = qs.r...
2
Text
Text
add info about fallback to prerender-error
997b37ace3bdab751a24ce65a841e743d5aa9b64
<ide><path>errors/prerender-error.md <ide> While prerendering a page an error occurred. This can occur for many reasons fro <ide> - Make sure to move any non-pages out of the `pages` folder <ide> - Check for any code that assumes a prop is available even when it might not be. e.g., have default data for all dynamic pag...
1
Javascript
Javascript
fix race condition during initialization
7a3ab96d94073b22853992b5e0b3f8e26b8cfd51
<ide><path>Libraries/WebSocket/WebSocket.js <ide> class WebSocket extends EventTarget(...WEBSOCKET_EVENTS) { <ide> <ide> this._eventEmitter = new NativeEventEmitter(RCTWebSocketModule); <ide> this._socketId = nextWebSocketId++; <del> RCTWebSocketModule.connect(url, protocols, options, this._socketId); <ide>...
1
Python
Python
add extra test for multidimensional inserts
1e6f7a7db94afc69f88ebf0b0235888dc377ce25
<ide><path>numpy/lib/tests/test_function_base.py <ide> def test_basic(self): <ide> assert_equal(insert(a, [1, 1, 1], [1, 2, 3]), [1, 1, 2, 3, 2, 3]) <ide> assert_equal(insert(a, 1,[1,2,3]), [1, 1, 2, 3, 2, 3]) <ide> assert_equal(insert(a,[1,2,3],9),[1,9,2,9,3,9]) <add> def test_multidim(self)...
1
Ruby
Ruby
use default use_cache parameter for callers
61617a257ec361b2c9701a42814f24415e2eddad
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_linkage <ide> keg = Keg.new(formula.prefix) <ide> <ide> CacheStoreDatabase.use(:linkage) do |db| <del> checker = LinkageChecker.new( <del> keg, formula, cache_db: db, use_cache: !ENV["HOMEBREW_LINKAGE_CACHE"].nil? <d...
2
Go
Go
add config support to executor backend
9e9fc7b57c1764c008e568ed52bcd1aade7eb40c
<ide><path>container/container.go <ide> type CommonContainer struct { <ide> MountPoints map[string]*volume.MountPoint <ide> HostConfig *containertypes.HostConfig `json:"-"` // do not serialize the host config in the json, otherwise we'll make the container unportable <ide> ExecCommands ...
14
Python
Python
add some clarification comments
c9fd2c8a8c2639fe8663f753e278a5948fc21f56
<ide><path>keras/layers/core.py <ide> def get_input(self, train): <ide> return self.input <ide> <ide> def supports_masked_input(self): <add> ''' Whether or not this layer respects the output mask of its previous layer in its calculations. If you try <add> to attach a layer that does *not*...
1
Javascript
Javascript
fix failing tests on ms edge
cb74999b1721aab4589e48bd708d008c9f5a6b22
<ide><path>test/helpers/privateMocks.js <ide> function browserSupportsCssAnimations() { <ide> return true; <ide> } <ide> <del>function createMockStyleSheet(doc) { <add>function createMockStyleSheet(doc, prefix) { <ide> doc = doc ? doc[0] : document; <ide> <ide> var node = doc.createElement('style'); <ide> funct...
6
Java
Java
add header name to ex. msg in headerresultmatchers
d5a5a4894fe0f04caa0d934e9fffa2b44181903a
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/result/HeaderResultMatchers.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License")...
2
Python
Python
fix provider for airflow 2.2.x
4d32f61fd049889b49b4ce8b664d8e134aecb053
<ide><path>airflow/providers/databricks/hooks/databricks_base.py <ide> def user_agent_value(self) -> str: <ide> package_name = manager.hooks[BaseDatabricksHook.conn_type].package_name # type: ignore[union-attr] <ide> provider = manager.providers[package_name] <ide> version = provider.version <d...
1
Java
Java
give a name to the reactcontext thread
bbc1af65366ebef5e055857a1d4eff56b86e6024
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> private void runCreateReactContextOnNewThread(final ReactContextInitParams initP <ide> <ide> mCreateReactContextThread = <ide> new Thread( <add> null, <ide> new Runnable() { <ide> @...
1
Javascript
Javascript
add a flag to disable module pattern components
562cf013dbd80cade517e25192ee19e958aef55b
<ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js <ide> import ReactSharedInternals from 'shared/ReactSharedInternals'; <ide> import { <ide> debugRenderPhaseSideEffectsForStrictMode, <ide> disableLegacyContext, <add> disableModulePatternComponents, <ide> enableProfilerTimer, <ide> enableScheduler...
10
Python
Python
fix indent error
a3972dd9b4b0675d52cd1dcdf9fc2c92d677f0eb
<ide><path>data_structures/Binary Tree/binary_seach_tree.py <ide> def getLabel(self): <ide> return self.label <ide> <ide> def setLabel(self, label): <del> self.label = label <add> self.label = label <ide> <ide> def getLeft(self): <ide> return self.left
1
Ruby
Ruby
add tests for inheritableoptions
4db4f8c6244f017def5668d44a62bdad231f4c18
<ide><path>activesupport/test/ordered_options_test.rb <ide> def test_method_access <ide> assert_equal 2, a.size <ide> assert_equal 56, a.else_where <ide> end <add> <add> def test_inheritable_options_continues_lookup_in_parent <add> parent = ActiveSupport::OrderedOptions.new <add> parent[:foo] = true <a...
1
Javascript
Javascript
implement getvalueforpixel for category scale
cb54f30c970672488a239a2d371d55dfe3fb8864
<ide><path>src/scales/scale.category.js <ide> module.exports = function(Chart) { <ide> }, <ide> getPixelForTick: function(index, includeOffset) { <ide> return this.getPixelForValue(this.ticks[index], index + this.minIndex, null, includeOffset); <add> }, <add> getValueForPixel: function(pixel) <add> { <add> ...
2
Java
Java
avoid new assertj deprecations
aa8802a81d1312386b71786711dbef8639cd35f3
<ide><path>spring-context/src/test/java/org/springframework/format/datetime/DateFormattingTests.java <ide> /* <del> * Copyright 2002-2021 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> *...
2
Python
Python
add extra kwargs and update doc of many ma methods
36f76ea2e6e91062df12d3a46ccaed7822bc82f2
<ide><path>numpy/ma/core.py <ide> def _flatsequence(sequence): <ide> return np.array([_ for _ in flattened], dtype=bool) <ide> <ide> <del>def _check_mask_axis(mask, axis): <add>def _check_mask_axis(mask, axis, keepdims=np._NoValue): <ide> "Check whether there are masked values along the given axis" <add> k...
1
Javascript
Javascript
remove error() and just throw
b348347dadfa0abe3442ff0bdbc52d8077621e95
<ide><path>src/Angular.js <ide> var $boolean = 'boolean', <ide> slice = [].slice, <ide> push = [].push, <ide> toString = Object.prototype.toString, <del> error = window[$console] <del> ? bind(window[$console], window[$consol...
2
Javascript
Javascript
fix a typo
7917709782537a696b6bd36e72ee57318bd0edd3
<ide><path>src/renderers/testing/__tests__/ReactShallowRenderer-test.js <ide> let createRenderer; <ide> let PropTypes; <ide> let React; <ide> <del>describe('ReactTestUtils', () => { <add>describe('ReactShallowRenderer', () => { <ide> beforeEach(() => { <ide> createRenderer = require('react-test-renderer/shallow'...
1
Text
Text
add joyeecheung to collaborators
f44f509da42b2bbdb00910ac70721da80c083330
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **João Reis** &lt;reis@janeasystems.com&gt; <ide> * [joshgav](https://github.com/joshgav) - <ide> **Josh Gavant** &lt;josh.gavant@outlook.com&gt; <add>* [joyeecheung](https://github.com/joyeecheung) - <add>**Joyee Cheung*...
1
Ruby
Ruby
fix typo securetoken for schema sample [ci skip]
4bed3bc0871ae3f28270f171915544b768018776
<ide><path>activerecord/lib/active_record/secure_token.rb <ide> module SecureToken <ide> module ClassMethods <ide> # Example using has_secure_token <ide> # <del> # # Schema: User(toke:string, auth_token:string) <add> # # Schema: User(token:string, auth_token:string) <ide> # class U...
1
Text
Text
add brewsci org taps
fa763216200a2ae1c36f5ec4cbf3d4f17d5053ff
<ide><path>docs/Interesting-Taps-and-Forks.md <ide> You can be added as a maintainer for one of the Homebrew organization taps and a <ide> <ide> * [osrf/simulation](https://github.com/osrf/homebrew-simulation): Tools for robotics simulation. <ide> <add>* [brewsci/bio](https://github.com/brewsci/homebrew-bio): Bio...
1
Ruby
Ruby
use kwags to make the argument meaning explicit
003c0cda26e3fa9c3362ac7e5b5faa6236b44aad
<ide><path>actionview/lib/action_view/helpers/tags/label.rb <ide> def translation <ide> method_and_value = @tag_value.present? ? "#{@method_name}.#{@tag_value}" : @method_name <ide> <ide> content ||= Translator <del> .new(object, @object_name, method_and_value, "helpers.label") <ad...
3
Javascript
Javascript
stabilize tests on windows
372b85df4bc45cb4fb2dad0a5970204207ce1eb0
<ide><path>test/async-hooks/test-emit-before-after.js <ide> switch (process.argv[2]) { <ide> } <ide> <ide> const c1 = spawnSync(process.execPath, [__filename, 'test_invalid_async_id']); <del>assert.strictEqual(c1.stderr.toString().split('\n')[0], <add>assert.strictEqual(c1.stderr.toString().split(/[\r\n]+/g)[0], <ide>...
4
Python
Python
remove hardcoded page number
fe5d93c8cbc5f3a9b1b6715208c70f485be68bdf
<ide><path>rest_framework/generics.py <ide> def paginate_queryset(self, queryset): <ide> else: <ide> raise NotFound(_("Choose a valid page number. Page numbers must be a whole number, or must be the string 'last'.")) <ide> <del> page_number = -1 <ide> try: <ide> p...
1
Ruby
Ruby
use mt_cpu instead of n for parallel test runs`
1a41a741cf5bc1b5d4038f999bacaec2a7b297dc
<ide><path>actionpack/test/abstract_unit.rb <ide> if ENV["TRAVIS"] <ide> PROCESS_COUNT = 0 <ide> else <del> PROCESS_COUNT = (ENV["N"] || 4).to_i <add> PROCESS_COUNT = (ENV["MT_CPU"] || 4).to_i <ide> end <ide> <ide> require "active_support/testing/autorun"
1
Python
Python
add unit test
04edfab3381fdbf6ad3ccca928dd69e7523bec9c
<ide><path>libcloud/test/compute/test_ecs.py <ide> def _create_node_CreateInstance(self, method, url, body, headers): <ide> 'InternetMaxBandwidthIn': '200', <ide> 'HostName': 'hostname', <ide> 'Password': 'password', <del> 'IoOptimized': 'true', <ad...
1
Ruby
Ruby
remove code for ruby < 1.8.7
b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc
<ide><path>activesupport/lib/active_support/core_ext/benchmark.rb <ide> require 'benchmark' <ide> <ide> class << Benchmark <del> # Earlier Ruby had a slower implementation. <del> if RUBY_VERSION < '1.8.7' <del> remove_method :realtime <del> <del> def realtime <del> r0 = Time.now <del> yield <del> ...
1
Python
Python
record extra info in rackspace
701316422a5965bfa2cf5e97942f3f50d6d601a9
<ide><path>libcloud/drivers/rackspace.py <ide> def request(self, action, params={}, data='', headers={}, method='GET'): <ide> <ide> <ide> class RackspaceNodeDriver(NodeDriver): <del> <add> """Rackspace node driver. <add> <add> Extra node attributes: <add> password: root password, avai...
2
Javascript
Javascript
add dependency for dependecies on sub getirqueue
0f6bf30228bd68c01a438a6997b9aecc9f24b067
<ide><path>pdf.js <ide> var PartialEvaluator = (function() { <ide> }; <ide> <ide> constructor.prototype = { <del> getIRQueue: function(stream, xref, resources, queue, handler, uniquePrefix) { <add> getIRQueue: function(stream, xref, resources, queue, handler, <add> uniquePrefix, dep...
2
Javascript
Javascript
add error listener to test-net-pingpong
462a8f8652dafaf01f05623dd311e57e226cead4
<ide><path>test/simple/test-net-pingpong.js <ide> function pingPongTest (port, host) { <ide> socket.close(); <ide> }); <ide> <add> socket.addListener("error", function (e) { <add> throw e; <add> }); <add> <ide> socket.addListener("close", function () { <add> puts('server socket closed'); ...
1
Javascript
Javascript
ignore tests when built without openssl cli
442d2d0cdec2dba97341ffd7dff7f7673f3dc242
<ide><path>test/common.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> var path = require('path'); <add>var fs = require('fs'); <ide> var assert = require('assert'); <ide> <ide> exports.testDir = path.dirname(__filename); <ide> if (process.platform === 'win32') { <ide> exports.PIPE = exports.tmpDir +...
12
PHP
PHP
apply fixes from styleci
9ede7d34f97932c3f7f0c4dae21ddea16621aefc
<ide><path>tests/View/Blade/BladeComponentTagCompilerTest.php <ide> use Illuminate\Container\Container; <ide> use Illuminate\Contracts\Foundation\Application; <ide> use Illuminate\Contracts\View\Factory; <del>use Illuminate\Filesystem\Filesystem; <ide> use Illuminate\View\Compilers\BladeCompiler; <ide> use Illuminate\V...
1
Javascript
Javascript
add codeframe to each warning and error in logbox
fa4f23e4e8c45b6882a323caebef294ac69cfbf2
<ide><path>Libraries/Core/Devtools/symbolicateStackTrace.js <ide> let fetch; <ide> <ide> import type {StackFrame} from '../NativeExceptionsManager'; <ide> <add>export type CodeFrame = $ReadOnly<{| <add> content: string, <add> location: { <add> row: number, <add> column: number, <add> }, <add> fileName: stri...
7
Mixed
Javascript
add support for appear and appear-active classes
f1e524b0b16b4645ae9e9d8bdfaee155f6d9ac66
<ide><path>docs/docs/10.1-animation.md <ide> You'll notice that when you try to remove an item `ReactCSSTransitionGroup` keep <ide> ``` <ide> <ide> ### Custom Classes ### <add> <ide> It is also possible to use custom class names for each of the steps in your transitions. Instead of passing a string into transitionName...
2
Python
Python
add some inline documentation
20921b7b131d640d5f70d97f61e95f63a191d706
<ide><path>tests/auto/keras/layers/test_recurrent.py <ide> <ide> <ide> def _runner(layer_class): <add> """ <add> All the recurrent layers share the same interface, so we can run through them with a single <add> function. <add> """ <ide> for weights in [None, [np.ones((input_dim, output_dim))]]: <ide> ...
1
Javascript
Javascript
promise late chain
1793ee1c80df5d76a660f4982aba01303410fdb7
<ide><path>src/node.js <ide> var eventsModule = createInternalModule('events', function (exports) { <ide> <ide> exports.Promise.prototype.addCallback = function (listener) { <ide> if (this.hasFired === 'success') { <del> return listener.apply(this, this._values); <add> listener.apply(this, this._values...
2
Text
Text
state the election types for plc and pl
ae7b547ab61768ed3e95d4c12272e034ce06afac
<ide><path>docs/Homebrew-Governance.md <ide> <ide> 1. The financial administration of Homebrew, organisation of the AGM, enforcement of the code of conduct and removal of members are performed by the PLC. The PLC will represent Homebrew in all dealings with OpenCollective. <ide> <del>2. The PLC consists of five membe...
1
Javascript
Javascript
accept truthy/falsy value for not
8e4c8423b5bb1ee477c2df9b34e86cef1d715754
<ide><path>lib/BasicEvaluatedExpression.js <ide> class BasicEvaluatedExpression { <ide> return Object.prototype.hasOwnProperty.call(this, "quasis"); <ide> } <ide> <add> isTruthy() { <add> return this.truthy; <add> } <add> <add> isFalsy() { <add> return this.falsy; <add> } <add> <ide> asBool() { <ide> if(this.t...
3
Javascript
Javascript
fill domexception names
201460873d0709d16f4b37c32fa1b4ef505b999a
<ide><path>test/parallel/test-abortcontroller.js <ide> const { setTimeout: sleep } = require('timers/promises'); <ide> <ide> { <ide> // Test abortSignal.throwIfAborted() <del> throws(() => AbortSignal.abort().throwIfAborted(), { code: 20 }); <add> throws(() => AbortSignal.abort().throwIfAborted(), { <add> code:...
5
Python
Python
add support for escaping quotes
a7da273d6f91471d25c2ab524a92a88a052c39f9
<ide><path>libcloud/dns/drivers/route53.py <ide> def _ex_connection_class_kwargs(self): <ide> def _quote_data(self, data): <ide> if data[0] == '"' and data[-1] == '"': <ide> return data <del> return '"{0}"'.format(data) <add> return '"{0}"'.format(data.replace('"', '\"')) <ide><pat...
2
Python
Python
update language data for german
bfaa42636c204caac416d59402e87de0ba3561fd
<ide><path>spacy/de/language_data.py <ide> from __future__ import unicode_literals <ide> import re <ide> <add>from ..symbols import * <add>from ..language_data import EMOTICONS <add> <add> <add>PRON_LEMMA = "-PRON-" <add> <add> <add>TAG_MAP = { <add> "$(": {TAG: PUNCT, "PunctType": "brck"}, <add> "$,": ...
1
Go
Go
kill containers after restart tests
e07d78d247c796236e92faed6cfbe05177691d95
<ide><path>integration-cli/docker_cli_daemon_experimental_test.go <ide> func (s *DockerDaemonSuite) TestCleanupMountsAfterDaemonCrash(c *check.C) { <ide> c.Assert(strings.Contains(string(mountOut), id), check.Equals, false, comment) <ide> } <ide> <del>// TestDaemonRestartWithPausedRunningContainer requires live resto...
1
Javascript
Javascript
remove redundant check for !has_this
7f773de4af3f2613fa9ec86d1b0132c6bdd0fcda
<ide><path>packages/ember-metal/lib/accessors.js <ide> Ember.trySetPath = function(root, path, value) { <ide> @returns Boolean <ide> */ <ide> Ember.isGlobalPath = function(path) { <del> return !HAS_THIS.test(path) && IS_GLOBAL.test(path); <add> return IS_GLOBAL.test(path); <ide> };
1
PHP
PHP
use an abstract class instead of public properties
13f6feb5dff388b9298a4513f4f8bc0d2e85357f
<ide><path>src/Console/Command/Task/BehaviorTask.php <ide> class BehaviorTask extends SimpleBakeTask { <ide> public $pathFragment = 'Model/Behavior/'; <ide> <ide> /** <del> * The name of the task used in menus and output. <del> * <del> * @var string <add> * {@inheritDoc} <ide> */ <del> public $name = 'behavior'; <ad...
5
Python
Python
add more information to podlauncher timeout error
c8b86e69e49e330ab2f551358a6998d5800adb9a
<ide><path>airflow/providers/cncf/kubernetes/utils/pod_launcher.py <ide> def start_pod(self, pod: V1Pod, startup_timeout: int = 120): <ide> Launches the pod synchronously and waits for completion. <ide> <ide> :param pod: <del> :param startup_timeout: Timeout for startup of the pod (if pod is pen...
2
Text
Text
add changelog for
32ff2c2bf3e0d55d58c919298ee0084fe394b939
<ide><path>activerecord/CHANGELOG.md <add>* Rails can now verify foreign keys after loading fixtures in tests. <add> <add> This will be the default for new apps in Rails 7. To opt in: <add> <add> ```ruby <add> config.active_record.verify_foreign_keys_for_fixtures = true <add> ``` <add> <add> Te...
1
PHP
PHP
fix language lines
0c2389ccb31cc888eb1dcb5f129e255a2a0574df
<ide><path>app/lang/en/validation.php <ide> "integer" => "The :attribute must be an integer.", <ide> "ip" => "The :attribute must be a valid IP address.", <ide> "max" => array( <del> "numeric" => "The :attribute must be less than :max.", <del> "file" => "The :attribute m...
1
Text
Text
fix typo in getting_started [ci skip]
85b2a3ea2f4b614c1b7135e28b86e14fc109e8e5
<ide><path>guides/source/getting_started.md <ide> one here because the `ArticlesController` inherits from `ApplicationController`. <ide> The next part of the message contains `request.formats` which specifies <ide> the format of template to be served in response. It is set to `text/html` as we <ide> requested this page...
1
Text
Text
add changes for 1.4.0-beta.5 and 1.3.14
57aa00e5dce758cfd32121728dcb82f091aa694e
<ide><path>CHANGELOG.md <add><a name="1.4.0-beta.5"></a> <add># 1.4.0-beta.5 karmic-stabilization (2015-02-24) <add> <add> <add>## Bug Fixes <add> <add>- **$http:** properly access request headers with mixed case <add> ([5da1256f](https://github.com/angular/angular.js/commit/5da1256fc2812d5b28fb0af0de81256054856369), ...
1
Javascript
Javascript
add route for lear redirects
d3567fbb9bc3171c7a98eb0b428468bc516d09e5
<ide><path>server/middlewares/email-not-verified-notice.js <ide> const EXCLUDED_PATHS = [ <ide> '/api/flyers/findOne', <ide> '/signout', <ide> '/update-email', <del> '/passwordless-change' <add> '/passwordless-change', <add> '/external/services/user' <ide> ]; <ide> <ide> export default function emailNotVerifi...
1
PHP
PHP
change fromdata to new cspbuilder
74215789f44485bf6acf2baf7238185695e17d75
<ide><path>src/Http/Middleware/CspMiddleware.php <ide> public function __construct($csp = null) <ide> } <ide> <ide> if (!empty($cspConfig) && is_array($cspConfig)) { <del> $this->csp = CSPBuilder::fromData(json_encode($cspConfig)); <add> $this->csp = new CSPBuilder($cspConfig); <i...
1
Python
Python
show help on "spacy project"
c874dde66c84d9b162c87e09d7a84548c3c36f6e
<ide><path>spacy/cli/project.py <ide> re-run if their inputs change. <ide> """ <ide> <del>project_cli = typer.Typer(help=CLI_HELP) <add>project_cli = typer.Typer(help=CLI_HELP, no_args_is_help=True) <ide> <ide> <ide> @project_cli.callback(invoke_without_command=True)
1
Ruby
Ruby
remove special case for now-deprecated github urls
22038d5269d591ecc6646eba8b474d6320f7c476
<ide><path>Library/Homebrew/download_strategy.rb <ide> def basename_without_params <ide> end <ide> <ide> def ext <del> # GitHub uses odd URLs for zip files, so check for those <del> rx=%r[https?://(www\.)?github\.com/.*/(zip|tar)ball/] <del> if rx.match @url <del> if $2 == 'zip' <del> '.zip' <...
1
Python
Python
fix typo and some grammar
eb4c08d6a4918b223009245027ad92f37c4e0655
<ide><path>numpy/doc/indexing.py <ide> <ide> That is, each index specified selects the array corresponding to the <ide> rest of the dimensions selected. In the above example, choosing 0 <del>means that remaining dimension of lenth 5 is being left unspecified, <add>means that the remaining dimension of length 5 is bein...
1
Ruby
Ruby
add missing nsec test for 17f5d8e
a272d0cbe22369948e4fedf66a5889240b5e7b25
<ide><path>activesupport/test/core_ext/time_with_zone_test.rb <ide> def test_usec_returns_sec_fraction_when_datetime_is_wrapped <ide> assert_equal 500000, twz.usec <ide> end <ide> <add> def test_nsec_returns_sec_fraction_when_datetime_is_wrapped <add> twz = ActiveSupport::TimeWithZone.new(DateTime.civil(2000...
1
Ruby
Ruby
fix relative dir call on test runner
de94929d70d94fd8bb20791bf544ee483db8ddc1
<ide><path>railties/lib/rails/test_unit/runner.rb <ide> def self.parse(args) <ide> <ide> options[:patterns] = [] <ide> while arg = args.shift <del> if Dir.exists?(arg) <del> options[:patterns] << "#{arg}/**/*_test.rb" <del> else <del> options[:filename], options[...
2
Javascript
Javascript
make $q.reject support `finally` and `catch`
074b0675a1f97dce07f520f1ae6198ed3c604000
<ide><path>src/ng/q.js <ide> function qFactory(nextTick, exceptionHandler) { <ide> <ide> <ide> reject: function(reason) { <del> deferred.resolve(reject(reason)); <add> deferred.resolve(createInternalRejectedPromise(reason)); <ide> }, <ide> <ide> <ide> function qFactory(nextTick, exceptionH...
2