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 |
|---|---|---|---|---|---|
PHP | PHP | add helper method to get request's webroot | b378834ba79d67bd500cfa63466aad486ee33b96 | <ide><path>src/View/Asset.php
<ide> use Cake\Core\Configure;
<ide> use Cake\Core\Exception\Exception;
<ide> use Cake\Core\Plugin;
<del>use Cake\Http\ServerRequest;
<ide> use Cake\Routing\Router;
<ide> use Cake\Utility\Inflector;
<ide>
<ide> public static function assetTimestamp(string $path, $timestamp = null): string... | 1 |
Java | Java | update webclient builder | 82a34f4b246537429a8b236f0d1790b1ae924091 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> import java.time.ZonedDateTime;
<ide> import java.time.format.DateTimeFormatter;
<ide> import java.util.Arrays;
<add>import java.util.Map;
<ide> import java.util.function.Function;
<ide>
<ide> import or... | 4 |
Text | Text | add target option to npm readme | 148543ce2b81768cb52b303fad12b5d762799142 | <ide><path>npm-react-tools/README.md
<ide> By default JSX files with a `.js` extension are transformed. Use the `-x` option
<ide> --strip-types Strips out type annotations
<ide> --es6module Parses the file as a valid ES6 module
<ide> --non-strict... | 1 |
Ruby | Ruby | fix final url spacing in debug output | 88843d2e437ba7d46c6e39659c4d07863f490deb | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def latest_version(formula_or_cask, json: false, full_name: false, verbose: fals
<ide>
<ide> if debug
<ide> puts "URL (strategy): #{strategy_data[:url]}" if strategy_data[:url] != url
<del> puts "URL (final): #{strategy_data[:final... | 1 |
Python | Python | remove str.format to support python2.5 | 4b0241d5892f91dfac0438f9051c71e790be95ea | <ide><path>tools/getnodeversion.py
<del>import os,re;
<add>import os,re
<ide>
<ide> node_version_h = os.path.join(os.path.dirname(__file__), '..', 'src',
<ide> 'node_version.h')
<ide> if re.match('#define NODE_PATCH_VERSION', line):
<ide> patch = line.split()[2]
<ide>
<del>print '{0:s}.{1:s}.{2:s}'.format(... | 1 |
Python | Python | test correct tokenizers after default switch | b90745c5901809faef3136ed09a689e7d733526c | <ide><path>tests/test_tokenization_auto.py
<ide> def test_parents_and_children_in_mappings(self):
<ide> self.assertFalse(issubclass(child_model_fast, parent_model_fast))
<ide>
<ide> def test_from_pretrained_use_fast_toggle(self):
<del> self.assertIsInstance(AutoTokenizer.from_pre... | 1 |
Python | Python | fix parsing file that contains multi byte char | a179d84afe1c399bc607ff6330d877527ea6a6b2 | <ide><path>airflow/models.py
<ide> def process_file(self, filepath, only_if_updated=True, safe_mode=True):
<ide>
<ide> if safe_mode and os.path.isfile(filepath):
<ide> # Skip file if no obvious references to airflow or DAG are found.
<del> with open(filepath, 'r') as f:
<add> ... | 2 |
Javascript | Javascript | fix bugs related to unmounting error boundaries | 5cdd744e0610c914aa34ec1eb5a566006d693cae | <ide><path>src/renderers/shared/fiber/ReactFiberScheduler.js
<ide> module.exports = function<T, P, I, TI, PI, C, CX, PL>(
<ide> // The loop stops once the children have unmounted and error lifecycles are
<ide> // called. Then we return to the regular flow.
<ide>
<del> if (capturedErrors !== null && captured... | 2 |
Javascript | Javascript | fix lint warnings | de34ca0b649b609fcb8d2cab569239bed42e5af8 | <ide><path>src/filters.js
<ide> angularFilter.number = function(number, fractionSize) {
<ide> }
<ide>
<ide> function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
<del> var isNegative = number < 0,
<add> var isNegative = number < 0;
<ide> number = Math.abs(number);
<ide> var numStr = numbe... | 1 |
PHP | PHP | apply fixes from styleci | e4b54ba7d3105e8966bade0080c8d9afe556376e | <ide><path>src/Illuminate/Queue/QueueManager.php
<ide> public function connection($name = null)
<ide> *
<ide> * @param string $name
<ide> * @return \Illuminate\Contracts\Queue\Queue
<del> *
<add> *
<ide> * @throws \InvalidArgumentException
<ide> */
<ide> protected function resolv... | 1 |
Javascript | Javascript | implement setborderstyle for annotations | 9ba4f74370a3463e94897b46ed4770bb032cfef1 | <ide><path>src/core/annotation.js
<ide> */
<ide> /* globals PDFJS, Util, isDict, isName, stringToPDFString, warn, Dict, Stream,
<ide> stringToBytes, assert, Promise, isArray, ObjectLoader, OperatorList,
<del> isValidUrl, OPS, createPromiseCapability, AnnotationType,
<del> stringToUTF8St... | 1 |
Ruby | Ruby | fix method alias | 5c17405982b3b600f6788a13b8ee2dbe5b054bd0 | <ide><path>Library/Homebrew/os/linux/hardware.rb
<ide> def type
<ide> def family
<ide> :dunno
<ide> end
<del> alias_method :intel_family, :cpu_family
<add> alias_method :intel_family, :family
<ide>
<ide> def cores
<ide> `grep -c ^processor /proc/cpuinfo`.to_i | 1 |
Javascript | Javascript | use texture loader to load textures in test | 0bfe511c9102c2cb8e6c2b334e210e017a2c8489 | <ide><path>test/unit/extras/ImageUtils.test.js
<ide> QUnit.test( "test load handler", function( assert ) {
<ide>
<ide> var done = assert.async();
<ide>
<del> THREE.ImageUtils.loadTexture( good_url, undefined, function ( tex ) {
<add> new THREE.TextureLoader().load(good_url, function ( tex ) {
<ide>
<ide> assert.... | 1 |
Javascript | Javascript | update regexp grouping cheat-sheat | 8ace8073fd1ad2fab8291246fe262d11b8c0f211 | <ide><path>src/ng/directive/select.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> var ngOptionsDirective = valueFn({ terminal: true });
<ide> // jshint maxlen: false
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<del> //00001111100000000000222200000... | 1 |
PHP | PHP | fix param docblock. | b6339ce45191be4c70b59ec44a1a915f0f662925 | <ide><path>src/Illuminate/Session/DatabaseSessionHandler.php
<ide> public function read($sessionId)
<ide> /**
<ide> * Determine if the session is expired.
<ide> *
<del> * @param StdClass $session
<add> * @param \StdClass $session
<ide> * @return bool
<ide> */
<ide> protected func... | 1 |
Python | Python | replace tab escapes with four spaces | 11818a2eabb299b13d9920bdad2518772c4edce0 | <ide><path>numpy/f2py/cfuncs.py
<ide> #ifdef DEBUGCFUNCS
<ide> #define CFUNCSMESS(mess) fprintf(stderr,\"debug-capi:\"mess);
<ide> #define CFUNCSMESSPY(mess,obj) CFUNCSMESS(mess) \\
<del>\tPyObject_Print((PyObject *)obj,stderr,Py_PRINT_RAW);\\
<del>\tfprintf(stderr,\"\\n\");
<add> PyObject_Print((PyObject *)obj,stde... | 1 |
Python | Python | fix percentile examples. closes | 5aa360321321c69d8052ef0718721baae3587900 | <ide><path>numpy/lib/function_base.py
<ide> def percentile(a, q, axis=None, out=None, overwrite_input=False):
<ide> >>> a
<ide> array([[10, 7, 4],
<ide> [ 3, 2, 1]])
<del> >>> np.percentile(a, 0.5)
<add> >>> np.percentile(a, 50)
<ide> 3.5
<ide> >>> np.percentile(a, 0.5, axis=0)
<ide... | 1 |
PHP | PHP | update documentation for mixed parameters | 87a7b5687b4c5790c210c3617b2a81722bb810cc | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> public function previous()
<ide> * Generate a absolute URL to the given path.
<ide> *
<ide> * @param string $path
<del> * @param array $parameters
<add> * @param mixed $parameters
<ide> * @param bool $secure
<ide> * @return string
<ide> ... | 1 |
Mixed | Ruby | update ruby-macho to 1.1.0 | 024264c381a5dc02dea8680dea29e83bdce9d13b | <ide><path>Library/Homebrew/vendor/README.md
<ide> Vendored Dependencies
<ide>
<ide> * [plist](https://github.com/bleything/plist), version 3.1.0
<ide>
<del>* [ruby-macho](https://github.com/Homebrew/ruby-macho), version 0.2.6
<add>* [ruby-macho](https://github.com/Homebrew/ruby-macho), version 1.1.0
<ide>
<ide> ## ... | 12 |
Ruby | Ruby | remove empty directories during uninstall | 11953cbcb9fe33afcc8fff46622208523f3930e9 | <ide><path>Library/Homebrew/keg.rb
<ide> def unlink
<ide> next unless dst.symlink?
<ide> dst.uninstall_info if dst.to_s =~ INFOFILE_RX and ENV['HOMEBREW_KEEP_INFO']
<ide> dst.unlink
<add> dst.parent.rmdir_if_possible
<ide> n+=1
<ide> Find.prune if src.directory?
<ide> end | 1 |
Ruby | Ruby | eliminate warning with layout is unset | 1fcf32f8fef8fb5a63a66edacf556a107d12c049 | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def _implied_layout_name
<ide> # name, return that string. Otherwise, use the superclass'
<ide> # layout (which might also be implied)
<ide> def _write_layout_method
<del> case @_layout
<add> case defined?(@_layout) ? @_layou... | 1 |
Java | Java | fix typo in generated yoga classes | 43dedbbd63ca4a8eb0ea0aedb5b93325e3ef122c | <ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java
<ide> public static YogaAlign fromInt(int value) {
<ide> case 3: return FLEX_END;
<ide> case 4: return STRETCH;
<ide> case 5: return BASELINE;
<del> default: throw new IllegalArgumentException("Unkown enum value: " + value);
<... | 14 |
Java | Java | delete unused imports in spring-messaging | bf0703e07e2c968c6d777101c10b01f4f4650a91 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/Reactor11TcpStompClient.java
<ide> import org.springframework.messaging.tcp.TcpOperations;
<ide> import org.springframework.messaging.tcp.reactor.Reactor11TcpClient;
<ide> import org.springframework.util.concurrent.ListenableFuture;
<del... | 5 |
Ruby | Ruby | add test for register_alias | 27f3619cd5d3700b2ff16f7c153c3549316b9410 | <ide><path>actionpack/test/dispatch/mime_type_test.rb
<ide> class MimeTypeTest < ActiveSupport::TestCase
<ide> end
<ide> end
<ide>
<add> test "register alias" do
<add> begin
<add> Mime::Type.register_alias "application/xhtml+xml", :foobar
<add> assert_equal Mime::HTML, Mime::EXTENSION_LOOKUP['fooba... | 1 |
Python | Python | add a deprecation note | 8f94cc6aecaa5aab1a42be99008a6db76d7eee86 | <ide><path>numpy/core/numerictypes.py
<ide> def sctype2char(sctype):
<ide> 'All':'?bhilqpBHILQPefdgFDGSUVOMm'}
<ide>
<ide> # backwards compatibility --- deprecated name
<add># Formal deprecation: Numpy 1.20.0, 2020-10-19
<ide> typeDict = sctypeDict
<ide>
<ide> # b -> boolean | 1 |
Python | Python | fix typo in np.insert docstring | c1a3fcc07c6b0de34668831676813b96e355fffd | <ide><path>numpy/lib/function_base.py
<ide> def insert(arr, obj, values, axis=None):
<ide> [3, 5, 3]])
<ide>
<ide> Difference between sequence and scalars:
<add>
<ide> >>> np.insert(a, [1], [[1],[2],[3]], axis=1)
<ide> array([[1, 1, 1],
<ide> [2, 2, 2], | 1 |
Text | Text | add prisma.io examples list | 5247807da0a53379997cc514cd8c93b53ae005f7 | <ide><path>examples/with-prisma/README.md
<add>Prisma.io maintains it's own Next.Js examples
<add>
<add>- [Javascript](https://github.com/prisma/prisma-examples/tree/master/javascript/rest-nextjs)
<add>- [Typescript](https://github.com/prisma/prisma-examples/tree/master/typescript/rest-nextjs)
<add>- [Typescript-GraphQ... | 1 |
Ruby | Ruby | use coreformularepository abstraction | ba147818cb4144e579a35cac949ca97b1253d50e | <ide><path>Library/Homebrew/test/test_formulary.rb
<ide> def test_class_naming
<ide> class FormularyFactoryTest < Homebrew::TestCase
<ide> def setup
<ide> @name = "testball_bottle"
<del> @path = HOMEBREW_PREFIX/"Library/Formula/#{@name}.rb"
<add> @path = CoreFormulaRepository.new.formula_dir/"#{@name}.rb"
<... | 1 |
Ruby | Ruby | implement required #encode_with | b8e8096a89b0405544c8004c9c445a7894cf7ec9 | <ide><path>activerecord/lib/active_record/relation/delegation.rb
<ide> def respond_to?(method, include_private = false)
<ide> arel.respond_to?(method, include_private)
<ide> end
<ide>
<add> def encode_with(coder)
<add> coder.represent_seq(nil, to_a)
<add> end
<add>
<ide> protected
<ide>
<id... | 2 |
Javascript | Javascript | add a test using stop propagation | b8b23d00decf77b6aabec167d36df79eda298705 | <ide><path>test/unit/plugins.js
<ide> test('Plugins should get events in registration order', function() {
<ide> (function (name) {
<ide> vjs.plugin(name, function (opts) {
<ide> this.on('test', function (event) {
<del> order.push(name)
<add> order.push(name);
<ide> });
<ide>... | 1 |
Javascript | Javascript | remove framestopop from yellowbox | cf4d45ec2bcd301be7793d5840de21ec7d02275b | <ide><path>Libraries/YellowBox/Data/YellowBoxRegistry.js
<ide> function handleUpdate(): void {
<ide> const YellowBoxRegistry = {
<ide> add({
<ide> args,
<del> framesToPop,
<ide> }: $ReadOnly<{|
<ide> args: $ReadOnlyArray<mixed>,
<del> framesToPop: number,
<ide> |}>): void {
<ide> if (typeof args... | 6 |
Python | Python | remove google from the bucket name | 0930d16718e8bfa8509937de8fceb8dd04c7bec8 | <ide><path>tests/system/providers/google/ads/example_ads.py
<ide>
<ide> DAG_ID = "example_google_ads"
<ide>
<del>BUCKET_NAME = f"bucket_{DAG_ID}_{ENV_ID}"
<add>BUCKET_NAME = f"bucket_ads_{ENV_ID}"
<ide> CLIENT_IDS = ["1111111111", "2222222222"]
<ide> GCS_OBJ_PATH = "folder_name/google-ads-api-results.csv"
<ide> GCS_A... | 1 |
Javascript | Javascript | add todo() for shading pattern | 20b0fb9dc084f40f14fad95edd5267db062eba51 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> error("Unable to find pattern resource");
<ide>
<ide> var pattern = xref.fetchIfRef(patternRes.get(patternName.name));
<del>
<del> const types = [null, this.tilingFill];
<del> ... | 1 |
Ruby | Ruby | fix undefined attribute method with attr_readonly | 429f0a7d67ae85395e549a0d33269d1c58175a29 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def merge_target_lists(persisted, memory)
<ide> persisted.map! do |record|
<ide> if mem_record = memory.delete(record)
<ide>
<del> ((record.attribute_names & mem_record.attribute_names) - mem_recor... | 4 |
Go | Go | remove overly spewy debugf | f7e374fb3a51bd25e61ae6c4343838a0ca756fba | <ide><path>devmapper/deviceset_devmapper.go
<ide> func (devices *DeviceSetDM) SetInitialized(hash string) error {
<ide> }
<ide>
<ide> func (devices *DeviceSetDM) ensureInit() error {
<del> utils.Debugf("ensureInit(). Initialized: %v", devices.initialized)
<ide> if !devices.initialized {
<ide> devices.initialized = ... | 1 |
Javascript | Javascript | fix whitespace in object3d.js | 340f82394fb41ab1df5527ce7979c779ab459363 | <ide><path>src/core/Object3D.js
<ide> THREE.Object3D.prototype = {
<ide> },
<ide>
<ide> removeChild: function ( child ) {
<del> var scene = this;
<add> var scene = this;
<ide>
<ide> var childIndex = this.children.indexOf( child );
<ide>
<ide> if ( childIndex !== - 1 ) {
<ide>
<del> child.pa... | 1 |
Javascript | Javascript | fix imageloader.getsize jest mock | 7be829f2c9756f8973401644579dd2910b5d3209 | <ide><path>jest/setup.js
<ide> jest
<ide> reload: jest.fn(),
<ide> },
<ide> ImageLoader: {
<del> getSize: jest.fn(url => Promise.resolve({width: 320, height: 240})),
<add> getSize: jest.fn(url => Promise.resolve([320, 240])),
<ide> prefetchImage: jest.fn(),
<ide> },
<ide> ImageView... | 1 |
PHP | PHP | add illuminate\support\arr to compiled class | aa1eada9c212ef879c03e9f71c93ad2b14c55614 | <ide><path>src/Illuminate/Foundation/Console/Optimize/config.php
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php',
<ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Suppor... | 1 |
PHP | PHP | apply fixes from styleci | 915c93d093323496446003bace29ce16d2e52da7 | <ide><path>src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
<ide> protected function getForeignKey($foreign)
<ide> // We need to columnize the columns that the foreign key is being defined for
<ide> // so that it is a properly formatted list. Once we have done this, we can
<ide> // retu... | 1 |
Mixed | Python | fix typos in sorts and bit_manipulation | 50485f7c8e33b0a3bf6e603cdae3505d40b1d97a | <ide><path>bit_manipulation/README.md
<del>https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
<del>https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations
<del>https://docs.python.org/3/library/stdtypes.html#bitwise-operations-on-integer-types
<del>
<del>... | 6 |
Text | Text | add new hint to break up problem into small chunks | 1ba28c9af60e8ec32b10468a5a1fa9aaf23a841c | <ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/telephone-number-validator/index.md
<ide> Start by trying to get it to validate each format from the example, each one sho
<ide>
<ide> > _try to solve the problem now_
<ide>
<add>## ![:... | 1 |
Mixed | Javascript | expose boxwidth and boxheight on tooltip | e1796d361fe7a942168a4193e2f7ec14b7ee1c49 | <ide><path>docs/configuration/tooltip.md
<ide> The tooltip configuration is passed into the `options.tooltips` namespace. The g
<ide> | `cornerRadius` | `number` | `6` | Radius of tooltip corner curves.
<ide> | `multiKeyBackground` | `Color` | `'#fff'` | Color to draw behind the colored boxes when multiple items are in... | 2 |
Javascript | Javascript | allow bound constructor fns as controllers | d17fbc3862e0a2e646db1222f184dbe663da4a1f | <ide><path>src/auto/injector.js
<ide> function createInjector(modulesToLoad, strictDi) {
<ide> // Check if Type is annotated and use just the given function at n-1 as parameter
<ide> // e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
<ide> // Object creation: http://jsper... | 4 |
PHP | PHP | add root url to elixir | 18dfea3a1c47116407bb7cefd6897318b9f2087a | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function elixir($file)
<ide> }
<ide>
<ide> if (isset($manifest[$file])) {
<del> return '/build/'.$manifest[$file];
<add> return asset('build/'.$manifest[$file]);
<ide> }
<ide>
<ide> throw new InvalidArgumentEx... | 1 |
PHP | PHP | fix coding standard issues with fixtures | fab9547ac903e1a1320ab041a588188b13c398b3 | <ide><path>lib/Cake/Test/Fixture/AccountFixture.php
<ide> class AccountFixture extends CakeTestFixture {
<ide> * @var string 'Aco'
<ide> */
<ide> public $name = 'Account';
<add>
<ide> public $table = 'Accounts';
<ide>
<ide> /**
<ide><path>lib/Cake/Test/Fixture/AssertTagsTestCase.php
<ide> public function testNumer... | 16 |
Python | Python | use morph hash in lemmatizer cache key | 8008e2f75b93505734018a072e4131650459ec3a | <ide><path>spacy/pipeline/lemmatizer.py
<ide> def rule_lemmatize(self, token: Token) -> List[str]:
<ide>
<ide> DOCS: https://spacy.io/api/lemmatizer#rule_lemmatize
<ide> """
<del> cache_key = (token.orth, token.pos, token.morph)
<add> cache_key = (token.orth, token.pos, token.morph.key)
<... | 2 |
Python | Python | fix a little typo | 9e1775dd2346d68dfdb882ff1581ed1d7e0ad15d | <ide><path>src/transformers/convert_graph_to_onnx.py
<ide> def convert(
<ide> def optimize(onnx_model_path: Path) -> Path:
<ide> """
<ide> Load the model at the specified path and let onnxruntime look at transformations on the graph to enable all the
<del> optimizations possibl
<add> optimizations possibl... | 1 |
Python | Python | freeze feature encoder in flaxspeechencoderdecoder | fde901877a9c876799fa4df5ebf36a2b344ef924 | <ide><path>src/transformers/models/speech_encoder_decoder/modeling_flax_speech_encoder_decoder.py
<ide> def _get_projection_module(self):
<ide> def _get_decoder_module(self):
<ide> return self.decoder
<ide>
<del> def freeze_feature_encoder(self):
<del> """
<del> Calling this function will ... | 2 |
Ruby | Ruby | show realpath for pyenv and rbenv | 6d786e7dbbeb9c1c473ec80aabbf4a61ecaca1a1 | <ide><path>Library/Homebrew/cmd/config.rb
<ide> def describe_perl
<ide> end
<ide>
<ide> def describe_python
<del> describe_path(which 'python')
<add> python = which 'python'
<add> if %r{/shims/python$} =~ python && which('pyenv')
<add> "#{python} => #{Pathname.new(`pyenv which python`.strip).realpath... | 1 |
Java | Java | fix maybetimber by using scheduler and unit | 56d5586f5ed8b08576418f6e8c8a2ea9c39ccb46 | <ide><path>src/main/java/io/reactivex/internal/operators/completable/CompletableTimer.java
<ide> package io.reactivex.internal.operators.completable;
<ide>
<ide> import java.util.concurrent.TimeUnit;
<add>import java.util.concurrent.atomic.AtomicReference;
<ide>
<ide> import io.reactivex.*;
<del>import io.reactivex.i... | 6 |
PHP | PHP | fix password check | 4436662a1ee19fc5e9eb76a0651d0de1aedb3ee2 | <ide><path>src/Illuminate/Auth/EloquentUserProvider.php
<ide> public function retrieveByCredentials(array $credentials)
<ide> {
<ide> if (empty($credentials) ||
<ide> (count($credentials) === 1 &&
<del> array_key_exists('password', $credentials))) {
<add> Str::contains($this... | 1 |
Text | Text | fix inconsistencies in code style | 28d9485c25a0ddeb8817525e25d4c7bb1ee5013b | <ide><path>doc/api/assert.md
<ide> const obj3 = {
<ide> a : {
<ide> b : 1
<ide> }
<del>}
<add>};
<ide> const obj4 = Object.create(obj1);
<ide>
<ide> assert.deepEqual(obj1, obj1);
<ide> const assert = require('assert');
<ide>
<ide> assert.ifError(0); // OK
<ide> assert.ifError(1); // Throws 1
<del>assert.ifErr... | 11 |
Java | Java | simplify reactornettytcpclient input | b874692452d63c61b25ccad591662a7e1e269e56 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/ReactorNettyTcpStompClient.java
<ide>
<ide> package org.springframework.messaging.simp.stomp;
<ide>
<del>import java.util.List;
<del>import java.util.function.BiConsumer;
<del>import java.util.function.Function;
<del>
<del>import io.ne... | 5 |
PHP | PHP | use hmac for token hashes to avoid collisions | 22b8fc4a247201865714e5ffd4cd68f7ffb3a38c | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> protected function _validatePost(Controller $controller)
<ide> {
<ide> $token = $this->_validToken($controller);
<ide> $hashParts = $this->_hashParts($controller);
<del> $check = Security::hash(implode('', $hashParts), 'sha1');
<... | 4 |
Ruby | Ruby | raise failures and handle later | 15761a283d4dca679f28ea1141f3da7a0b3247ef | <ide><path>Library/Homebrew/cleanup.rb
<ide> def cleanup_cask(cask, ds_store: true)
<ide> end
<ide>
<ide> def cleanup_keg(keg)
<del> cleanup_path(keg) { keg.uninstall }
<add> cleanup_path(keg) { keg.uninstall(raise_failures: true) }
<ide> rescue Errno::EACCES => e
<ide> opoo e.message
<ide>... | 2 |
Text | Text | fix indentation on http2 doc entry | 99580bd311b29ffd6a16aa01320bedca1697d7cd | <ide><path>doc/api/http2.md
<ide> the request body.
<ide> When this event is emitted and handled, the [`'request'`][] event will
<ide> not be emitted.
<ide>
<del>### Event: `'connection'`
<add>#### Event: `'connection'`
<ide> <!-- YAML
<ide> added: v8.4.0
<ide> -->
<ide> the request body.
<ide> When this event is emit... | 1 |
Go | Go | add key migration to daemon | 007ef161b45dd91afcfb7ef9cd32e6c88dbf196e | <ide><path>docker/daemon.go
<ide> package main
<ide>
<ide> import (
<add> "fmt"
<add> "io"
<add> "os"
<add> "path/filepath"
<add>
<ide> log "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/builder"
<ide> "github.com/docker/docker/builtins"
<ide> import (
<ide> flag "github.com/docker/docker/pkg/mflag"
... | 2 |
PHP | PHP | add tests for only/except multiple arguments | a0b5cd6d6af1ed5f599a81d4005168e134b150a7 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testExcept()
<ide> $data = new Collection(['first' => 'Taylor', 'last' => 'Otwell', 'email' => 'taylorotwell@gmail.com']);
<ide>
<ide> $this->assertEquals(['first' => 'Taylor'], $data->except(['last', 'email', 'missing'])->all());... | 1 |
Java | Java | simplify string concatenation | 1c24dc1f27fda6736c5a7b123f0476a1bc124a94 | <ide><path>spring-test/src/main/java/org/springframework/mock/web/MockHttpServletResponse.java
<ide> public void setCharacterEncoding(String characterEncoding) {
<ide>
<ide> private void updateContentTypeHeader() {
<ide> if (this.contentType != null) {
<del> StringBuilder sb = new StringBuilder(this.contentType);... | 1 |
Javascript | Javascript | remove console.logs and add more comments | a493c91d337340a71a1193923f78d486656434fd | <ide><path>test/math/random-test.js
<ide> suite.addBatch({
<ide> /**
<ide> * A macro that that takes a RNG and asserts that the values generated by the
<ide> * RNG could be generated by a random variable with cumulative distribution
<del> * function `cdf'.
<add> * function `cdf'. `n' is the number of sample points to... | 1 |
Ruby | Ruby | remove silly concatenation | 1d4699163760757826eba2d2ee971b20df20247b | <ide><path>Library/Homebrew/test/test_bucket.rb
<ide> def test_formula_funcs
<ide> assert_equal "FooBar", classname
<ide> assert_match Regexp.new("^#{HOMEBREW_PREFIX}/Library/Formula"), path.to_s
<ide>
<del> path=HOMEBREW_PREFIX+'Library'+'Formula'+"#{FOOBAR}.rb"
<add> path=HOMEBREW_PREFIX+"Library/Formu... | 1 |
PHP | PHP | add test for cache instances and group config | be4cebef30ce141c27078d640dbc9c784fe2b081 | <ide><path>tests/TestCase/Cache/CacheTest.php
<ide> public function testGroupConfigs()
<ide> $this->assertEquals(['archive' => ['archive', 'page']], $result);
<ide> }
<ide>
<add> /**
<add> * testGroupConfigsWithCacheInstance method
<add> */
<add> public function testGroupConfigsWithCacheInsta... | 1 |
Javascript | Javascript | fix missing semicolon | 53697d10efc25ff4fe2bfdd049b4967b7ab507e6 | <ide><path>src/css.js
<ide> jQuery(function() {
<ide> elem.style.display = display;
<ide> return ret;
<ide> }
<del> }
<add> };
<ide> }
<ide> });
<ide> | 1 |
PHP | PHP | remove useless reducewithkeys method | 9b4f011fb95c70444812f61d46c8e21fb5b66dd9 | <ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php
<ide> class_basename(static::class), gettype($result)
<ide> return $result;
<ide> }
<ide>
<del> /**
<del> * Reduce an associative collection to a single value.
<del> *
<del> * @template TReduceWithKeysInitial
<del> * @temp... | 4 |
Javascript | Javascript | remove the tabindex attrhook. fixes | 3e2a77c5e882b5fc88bf5469ea00067833a2a059 | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> }
<ide> });
<ide>
<del>// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
<del>jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
<del>
<ide> // Hook for boolean attributes
<ide> boolHook = {
<ide> get: function( elem... | 3 |
PHP | PHP | improve exception message | eb26fa0399668498c725ee13de51f9765b0b6ed2 | <ide><path>src/Log/LogEngineRegistry.php
<ide> protected function _create($class, string $alias, array $settings): LoggerInterf
<ide> return $instance;
<ide> }
<ide>
<del> throw new RuntimeException('Loggers must instanceof ' . LoggerInterface::class);
<add> throw new RuntimeException... | 1 |
Text | Text | clarify upstream versions requirement | df04c2f9faf4cc7b989094cdbe4e4347fee4dd10 | <ide><path>docs/Versions.md
<ide> Versioned formulae we include in [homebrew/core](https://github.com/homebrew/hom
<ide> * Versioned software should build on all Homebrew's supported versions of macOS.
<ide> * Versioned formulae should differ in major/minor (not patch) versions from the current stable release. This is ... | 1 |
Ruby | Ruby | remove hardcoded reference to env | 16c073a1531057c7f8244a2694d0923986b79d74 | <ide><path>Library/Homebrew/extend/ENV/shared.rb
<ide> def compiler
<ide> # an alternate compiler, altering the value of environment variables.
<ide> # If no valid compiler is found, raises an exception.
<ide> def validate_cc!(formula)
<del> if formula.fails_with? ENV.compiler
<add> if formula.fails_with? c... | 1 |
Text | Text | fix nits in http(s) server.headerstimeout | acedf1a55a0a1712a5b06babc34694ef718275ef | <ide><path>doc/api/http.md
<ide> added: v0.1.90
<ide>
<ide> Stops the server from accepting new connections. See [`net.Server.close()`][].
<ide>
<add>### server.headersTimeout
<add><!-- YAML
<add>added: v11.3.0
<add>-->
<add>
<add>* {number} **Default:** `40000`
<add>
<add>Limit the amount of time the parser will wai... | 2 |
PHP | PHP | add crypt facade methods hints | 801cbdbbe187dee2021ba9c4f69e474a526354a6 | <ide><path>src/Illuminate/Support/Facades/Crypt.php
<ide> namespace Illuminate\Support\Facades;
<ide>
<ide> /**
<del> * @method static string encrypt($value, bool $serialize = true)
<add> * @method static bool supported(string $key, string $cipher)
<add> * @method static string generateKey(string $cipher)
<add> * @met... | 1 |
Python | Python | fix default folder permissions | 662a8aaac302aae9e1768c7c55e15aa8c539208e | <ide><path>airflow/providers/sftp/hooks/sftp.py
<ide> def list_directory(self, path: str) -> list[str]:
<ide> files = sorted(conn.listdir(path))
<ide> return files
<ide>
<del> def mkdir(self, path: str, mode: int = 777) -> None:
<add> def mkdir(self, path: str, mode: int = 0o777) -> None:
<ide> ... | 2 |
PHP | PHP | add old request class for bc reason | 38d7a41e0d57933365588cb26c405a8e76a1a832 | <ide><path>src/Network/Request.php
<add><?php
<add>// @deprecated Load new class and alias
<add>class_exists('Cake\Http\ServerRequest');
<add>deprecationWarning('Use Cake\Http\ServerRequest instead of Cake\Network\Request.'); | 1 |
PHP | PHP | add missing reserved names | c32c4fb35f3e1cd75ff2ad1630754712a7e0c6f3 | <ide><path>src/Illuminate/Console/GeneratorCommand.php
<ide> abstract class GeneratorCommand extends Command
<ide> 'eval',
<ide> 'exit',
<ide> 'extends',
<add> 'false',
<ide> 'final',
<ide> 'finally',
<ide> 'fn',
<ide> abstract class GeneratorCommand extends Comman... | 1 |
Python | Python | fix official.vision.detection.ops import error | 403014db9f12c0228529db2c8b292efcced5133a | <ide><path>official/vision/detection/ops/__init__.py
<add># Copyright 2019 The TensorFlow Authors. All Rights Reserved.
<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 of the License at
<ad... | 1 |
Text | Text | fix typos in rc11 changelog | 212f685e0634a60687cae0d0824dea64accb0b26 | <ide><path>CHANGELOG.md
<ide>
<ide> ## Breaking Changes
<ide>
<del>- **$beforeRouteChange and $routeChangeStart events were renamed to $afterRouteChange and
<add>- **$beforeRouteChange and $afterRouteChange events were renamed to $routeChangeStart and
<ide> $routeChangeSuccess**
<ide>
<ide> This was done to make... | 1 |
Python | Python | pass app to multiprocessing pool workers | c24011bc2a87428c36afc4b5abdacda08d5da08e | <ide><path>celery/worker/__init__.py
<ide> WORKER_SIGIGNORE = frozenset(["SIGINT"])
<ide>
<ide>
<del>def process_initializer():
<add>def process_initializer(app):
<ide> """Initializes the process so it can be used to process tasks.
<ide>
<ide> Used for multiprocessing environments.
<ide>
<ide> """
<add>... | 1 |
PHP | PHP | fix errorhandler tests on php 8 | 513b3ade81fd618f993e76a4f0f82ed2edb72f47 | <ide><path>tests/TestCase/Error/ErrorHandlerTest.php
<ide> public function testHandleErrorDebugOn()
<ide> $result = ob_get_clean();
<ide>
<ide> $this->assertRegExp('/<pre class="cake-error">/', $result);
<del> $this->assertRegExp('/<b>Notice<\/b>/', $result);
<del> $this->assertRegExp('/v... | 1 |
Ruby | Ruby | simplify boolean logic into ternary | f87888066a7280430fd48f7b76bf63d31dbce81a | <ide><path>activesupport/lib/active_support/core_ext/module/delegation.rb
<ide> def delegate(*methods)
<ide> raise ArgumentError, "Can only automatically set the delegation prefix when delegating to a method."
<ide> end
<ide>
<del> prefix = options[:prefix] && "#{options[:prefix] == true ? to : options[:p... | 1 |
Ruby | Ruby | move dnsiff to the boneyard | 5123f0c80274ef483ba2359fe3b3264ea9a85d02 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "denyhosts" => "homebrew/boneyard",
<ide> "dotwrp" => "homebrew/science",
<ide> "drizzle" => "homebrew/boneyard",
<add> "dsniff" => "homebrew/boneyard",
<ide> "grads" => "homebrew/binary",
<ide> "hwloc" => "homebrew/science",
<ide> "ipopt" => "homebrew/sc... | 1 |
Javascript | Javascript | remove "klockan" in `moment.calendar()` | 341142010746c4714276b1868ef2e9b954d7cecc | <ide><path>lang/sv.js
<ide> require('../moment').lang('sv', {
<ide> LLLL : "dddd D MMMM YYYY LT"
<ide> },
<ide> calendar : {
<del> sameDay: '[Idag klockan] LT',
<del> nextDay: '[Imorgon klockan] LT',
<del> lastDay: '[Igår klockan] LT',
<del> nextWeek: 'dddd [klockan] LT',
<de... | 2 |
Ruby | Ruby | remove unneeded test after force_ssl removal | bd87b37d4fdd6407ab8a8106f14e786d738b8ec6 | <ide><path>railties/test/application/configuration_test.rb
<ide> class D < C
<ide> assert_equal :default, Rails.configuration.debug_exception_response_format
<ide> end
<ide>
<del> test "controller force_ssl declaration can be used even if session_store is disabled" do
<del> make_basic_app do |applica... | 1 |
Text | Text | use serial comma in webstreams docs | 595ce9dac63cdd32d893c3319328a752719644d2 | <ide><path>doc/api/webstreams.md
<ide> added: v16.6.0
<ide> * `ignoreBOM` {boolean} When `true`, the `TextDecoderStream` will include the
<ide> byte order mark in the decoded result. When `false`, the byte order mark
<ide> will be removed from the output. This option is only used when `encoding` is
<del> `... | 1 |
PHP | PHP | accept collection of models in belongtomany attach | d686c9147a87a9ad9da423a13df6c5a40471666a | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php
<ide> public function attach($id, array $attributes = [], $touch = true)
<ide> $id = $id->getKey();
<ide> }
<ide>
<add> if ($id instanceof Collection) {
<add> $id = $id->modelKeys();
<add> }
<add>
<ide>... | 2 |
Ruby | Ruby | avoid double call to to_s, avoid present? | 9fe94dd0c16facf2c9cfac9ae1166050b6f41cee | <ide><path>lib/arel/engines/sql/relations/table.rb
<ide> def initialize(name, options = {})
<ide> if options.is_a?(Hash)
<ide> @options = options
<ide> @engine = options[:engine] || Table.engine
<del> @table_alias = options[:as].to_s if options[:as].present? && options[:as].to_s != @name
<a... | 1 |
Text | Text | update instructions for cc | 15f92ee83708c2ecbcd999cd9bb3da848a2ad209 | <ide><path>doc/guides/security-release-process.md
<ide> information described.
<ide> * Described in the pre/post announcements
<ide>
<ide> * [ ] Pre-release announcement [email][]: ***LINK TO EMAIL***
<del> * CC: `oss-security@lists.openwall.com`
<ide> * Subject: `Node.js security updates for all active release... | 1 |
Text | Text | improve documentation for util.deprecate() | ccc87ebb3393a7a4738ed20d9378857633e74c76 | <ide><path>doc/api/util.md
<ide> environment variable set, then it will not print anything.
<ide> Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`
<ide> environment variable. For example: `NODE_DEBUG=fs,net,tls`.
<ide>
<del>## util.deprecate(function, string)
<add>## util.deprecate(fn, msg... | 1 |
Go | Go | add name generator | 971cf56d89ac9cc4959800bdfaadb69ba2cdd06a | <ide><path>names-generator/names-generator.go
<add>package namesgenerator
<add>
<add>import (
<add> "fmt"
<add> "math/rand"
<add> "time"
<add>)
<add>
<add>type NameChecker interface {
<add> Exists(name string) bool
<add>}
<add>
<add>var (
<add> colors = [...]string{"white", "silver", "gray", "black", "blue", "green", ... | 2 |
PHP | PHP | fix the fix | 7a7500860018398d7402d40e8081bf846b93b3e3 | <ide><path>src/ORM/Behavior/CounterCacheBehavior.php
<ide> protected function _processAssociation(Event $event, EntityInterface $entity, As
<ide> $count = $this->_getCount($config, $countConditions);
<ide> }
<ide> if ($count !== false) {
<del> $assoc->getTarget()->... | 1 |
Javascript | Javascript | fix jslint warnings | 07662cf0350dc8aa6df9abce2f1688ff30ce79ec | <ide><path>pdf.js
<ide> var PredictorStream = (function() {
<ide> var bits = this.bits = params.get('BitsPerComponent') || 8;
<ide> var columns = this.columns = params.get('Columns') || 1;
<ide>
<del> var pixBytes = this.pixBytes = (colors * bits + 7) >> 3;
<add> this.pixBytes = (colors * bits + 7) >> 3;... | 1 |
Python | Python | move another test within testnestediter | 526a9f9f49567b499de4335ac7851d6932853fa7 | <ide><path>numpy/core/tests/test_nditer.py
<ide> def test_dtype_buffered(self):
<ide> y[...] += 1
<ide> assert_equal(a, [[1, 2, 3], [4, 5, 6]])
<ide>
<add> def test_0d(self):
<add> a = np.arange(12).reshape(2, 3, 2)
<add> i, j = np.nested_iters(a, [[], [1, 0, 2]])
<add> ... | 1 |
Text | Text | fix `eventtarget.dispatchevent` docs | ffda9a8953ccf5afe099322d038eb23f2cfe6d82 | <ide><path>doc/api/events.md
<ide> target.removeEventListener('foo', handler, { capture: true });
<ide> added: v14.5.0
<ide> -->
<ide>
<del>* `event` {Object|Event}
<add>* `event` {Event}
<add>* Returns: {boolean} `true` if either event’s `cancelable` attribute value is
<add> false or its `preventDefault()` method wa... | 1 |
Python | Python | fix old markings for chord tests | ea2a803d57524db1edf0ecf81164e3c61fc8935b | <ide><path>t/integration/test_canvas.py
<del>import os
<ide> from datetime import datetime, timedelta
<ide> from time import sleep
<ide>
<ide> import pytest
<ide>
<ide> from celery import chain, chord, group, signature
<ide> from celery.backends.base import BaseKeyValueStoreBackend
<del>from celery.exceptions import ... | 1 |
Text | Text | add proper indentation to example code | 9621e372d0776524b2ba6d697d45749f5725e260 | <ide><path>guide/english/javascript/global-variables/index.md
<ide> title: Global Variables
<ide> Global variables are declared outside of a function for accessibility throughout the program, while local variables are stored within a function using `var` for use only within that function's [scope](https://developer.moz... | 1 |
Python | Python | fix minor issues in debug-data | 3ac4e8eb7a6c688ddc7abd205e2ed7060cbf0798 | <ide><path>spacy/cli/debug_data.py
<ide> def debug_data(
<ide> msg.text("{} training docs".format(len(train_dataset)))
<ide> msg.text("{} evaluation docs".format(len(gold_dev_data)))
<ide>
<add> if not len(gold_dev_data):
<add> msg.fail("No evaluation docs")
<ide> overlap = len(train_texts.inters... | 1 |
PHP | PHP | fix php flaw around intval with custom base | 3e25282d4c3f9940a7c9939bd189b89340c9d181 | <ide><path>lib/Cake/Utility/Folder.php
<ide> public function chmod($path, $mode = false, $recursive = true, $exceptions = arr
<ide>
<ide> if ($recursive === false && is_dir($path)) {
<ide> //@codingStandardsIgnoreStart
<del> if (@chmod($path, intval($mode, 8))) {
<add> if (@chmod($path, intval((string)$mode, ... | 1 |
Ruby | Ruby | consolidate stringify keys in `predicatebuilder` | 8714b359b2c6d3b402cdbaa3f12d2690417e53f4 | <ide><path>activerecord/lib/active_record/relation/predicate_builder.rb
<ide> def initialize(table)
<ide> end
<ide>
<ide> def build_from_hash(attributes, &block)
<del> attributes = attributes.stringify_keys
<ide> attributes = convert_dot_notation_to_hash(attributes)
<del>
<ide> expand_from_has... | 2 |
Javascript | Javascript | remove return pointer mutation | bf7b7aeb1070f5184733ece11e67902d1ace85bd | <ide><path>packages/react-reconciler/src/ReactFiberTreeReflection.js
<ide> export function findCurrentFiberUsingSlowPath(fiber: Fiber): Fiber | null {
<ide>
<ide> export function findCurrentHostFiber(parent: Fiber): Fiber | null {
<ide> const currentParent = findCurrentFiberUsingSlowPath(parent);
<del> if (!current... | 1 |
PHP | PHP | move env() to foundation helper | e6b368f7413d72b2095e445283df81827fcb47a4 | <ide><path>src/Illuminate/Foundation/Bootstrap/DetectEnvironment.php
<ide> public function bootstrap(Application $app)
<ide>
<ide> $app->detectEnvironment(function()
<ide> {
<del> return getenv('APP_ENV') ?: 'production';
<add> return env('APP_ENV', 'production');
<ide> });
<ide> }
<ide>
<ide><path>src/Ill... | 3 |
Text | Text | add joaocgreis as a collaborator | b612f085ec12a1937e07867e7d23c5d58022b8ea | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Сковорода Никита Андреевич** <chalkerx@gmail.com> ([@ChALkeR](https://github.com/ChALkeR))
<ide> * **Sakthipriyan Vairamani** <thechargingvolcano@gmail.com> ([@thefourtheye](https://github.com/thefourtheye))
<ide... | 1 |
Ruby | Ruby | remove unused variable | 1ea4a892a835ada735ba2943b20bdbfd39120e8c | <ide><path>activerecord/test/cases/base_test.rb
<ide> def test_comparison_with_different_objects
<ide>
<ide> def test_comparison_with_different_objects_in_array
<ide> topic = Topic.create
<del> category = Category.create(:name => "comparison")
<ide> assert_raises(ArgumentError) do
<ide> [1, topic].s... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.