content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
change usec to 0 on tests that compare seconds
7058321725ba0054390a65d8f6343613df31eea9
<ide><path>activerecord/test/cases/persistence_test.rb <ide> def test_update_attribute_with_one_updated <ide> <ide> def test_update_attribute_for_updated_at_on <ide> developer = Developer.find(1) <del> prev_month = Time.now.prev_month <add> prev_month = Time.now.prev_month.change(usec: 0) <ide> <ide> ...
1
Python
Python
fix dag endpoint tests not being collected nor ran
ece021d1fc78a8f9b7b55460fd58d17fab620280
<ide><path>tests/api_connexion/endpoints/test_dag_endpoint.py <ide> <ide> SERIALIZER = URLSafeSerializer(conf.get('webserver', 'secret_key')) <ide> FILE_TOKEN = SERIALIZER.dumps(__file__) <add>DAG_ID = "test_dag" <add>TASK_ID = "op1" <add>DAG2_ID = "test_dag2" <add>DAG3_ID = "test_dag3" <ide> <ide> <ide> @pytest.fix...
1
Text
Text
add esm examples in `module` api doc page
b0cc6572b0d6d3f302af5bb4aa3f098c9d8003c8
<ide><path>doc/api/module.md <ide> * {Object} <ide> <ide> Provides general utility methods when interacting with instances of <del>`Module`, the `module` variable often seen in file modules. Accessed <del>via `require('module')`. <add>`Module`, the [`module`][] variable often seen in [CommonJS][] modules. Accessed <ad...
1
PHP
PHP
use proper assertions
bbc0a1980a51a8894c5bcc9a42e605f43b18f897
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testArrayAccessToAttributes() <ide> $this->assertTrue(isset($model['connection'])); <ide> $this->assertEquals($model['connection'], 2); <ide> $this->assertFalse(isset($model['table'])); <del> $this->assertEquals...
3
Java
Java
add packages documentation
ae6912086aa4177b13615339cb9050558fd8ce47
<ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/package-info.java <add>/* <add> * Copyright 2002-2016 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <add>...
12
Text
Text
add debugging section to index
62c147761558dc0d338437667710d61a0068b401
<ide><path>docs/index.md <ide> Guides explain general topics and use cases (e.g. setup). API docs are automatic <ide> * [Tech](#tech) <ide> * [Languages](#languages) <ide> * [Hooks](#hooks) <add> * [Debugging](#debugging) <ide> * [API Docs](#api-docs) <ide> <ide> ## Resolving Issues <ide> Video.js has m...
1
Go
Go
add destination validation to "validators"
71b0e47bee6674f2571303a3663f645368479c75
<ide><path>volume/mounts/lcow_parser.go <ide> var ( <ide> lcowSplitRawSpec = regexp.MustCompile(`^` + rxSource + rxLCOWDestination + rxMode + `$`) <ide> ) <ide> <del>var lcowSpecificValidators mountValidator = func(m *mount.Mount) error { <add>var lcowValidators mountValidator = func(m *mount.Mount) error { ...
2
PHP
PHP
use fetch_obj instead of fetch_class
6670a242a822676fbf995e6d494c4720acc810ae
<ide><path>src/Illuminate/Database/Capsule/Manager.php <ide> public function __construct(Container $container = null) <ide> */ <ide> protected function setupDefaultConfiguration() <ide> { <del> $this->container['config']['database.fetch'] = PDO::FETCH_CLASS; <add> $this->container['config']['database.fetch'] = PD...
2
Ruby
Ruby
expand dependencies only once
05f92b5c98775b554a609d10c96f6c55377045be
<ide><path>Library/Homebrew/build.rb <ide> def post_superenv_hacks <ide> <ide> def pre_superenv_hacks <ide> # Allow a formula to opt-in to the std environment. <del> ARGV.unshift '--env=std' if (f.env.std? or <del> f.recursive_dependencies.detect{|d| d.name == 'scons' }) and <add> ARGV.unshift '--env=...
1
Javascript
Javascript
reduce usage of public util
7866508482c39d1289a901a41ec6978fb8345e03
<ide><path>lib/timers.js <ide> const { <ide> initAsyncResource, <ide> validateTimerDuration <ide> } = require('internal/timers'); <del>const internalUtil = require('internal/util'); <del>const util = require('util'); <add>const { <add> promisify: { custom: customPromisify }, <add> deprecate <add>} = require('inte...
1
Javascript
Javascript
fix use of browsertrigger
821da26e18ab4dca7d5676525c35baf1ffc40776
<ide><path>test/ng/locationSpec.js <ide> describe('$location', function() { <ide> initBrowser(), <ide> initLocation(), <ide> function($browser) { <del> browserTrigger(link, 'click', ['ctrl']); <add> browserTrigger(link, 'click', { keys: ['ctrl'] }); <ide> ...
1
Javascript
Javascript
remove unused reference in text.js
47addd8e34a8ee1233694f250e9badae8b86defa
<ide><path>Libraries/Text/Text.js <ide> const ColorPropType = require('ColorPropType'); <ide> const EdgeInsetsPropType = require('EdgeInsetsPropType'); <ide> const NativeMethodsMixin = require('NativeMethodsMixin'); <del>const Platform = require('Platform'); <ide> const React = require('React'); <ide> const PropTypes =...
1
Python
Python
fix deprecation warnings
9cf956b88116e3b550d731751016e61f394d621c
<ide><path>glances/core/glances_processes.py <ide> def __init__(self, cache_timeout=60): <ide> # See: https://code.google.com/p/psutil/issues/detail?id=462 <ide> self.username_cache = {} <ide> self.cmdline_cache = {} <del> <add> <ide> # The internals caches will be cleaned each '...
2
Javascript
Javascript
remove ember.descriptor from exports
b339c671df7bcbdfdd9381ede4faf56f5f405b36
<ide><path>packages/ember-metal/lib/computed.js <ide> function UNDEFINED() { } <ide> <ide> @class ComputedProperty <ide> @namespace Ember <del> @extends Ember.Descriptor <ide> @constructor <ide> */ <ide> function ComputedProperty(config, opts) { <ide><path>packages/ember-metal/lib/injected_property.js <ide> imp...
5
Python
Python
use current working dir as default throughout
a46b76f188290adc17e3bf5f883c089c18383ec7
<ide><path>spacy/cli/project.py <ide> def project_clone_cli( <ide> <ide> @project_cli.command("init") <ide> def project_init_cli( <del> path: Path = Arg(..., help="Path to cloned project", exists=True, file_okay=False), <add> path: Path = Arg(Path.cwd(), help="Path to cloned project. Defaults to current working ...
1
Text
Text
add changelog entry for "fixtures" -> "fixtureset"
bf4d6a235367a4704fd341711806c170aa234f80
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Rename `ActiveRecord::Fixtures` class to `ActiveRecord::FixtureSet`. <add> Instances of this class normally hold a collection of fixtures (records) <add> loaded either from a single YAML file, or from a file and a folder <ad...
1
Ruby
Ruby
change directory for git rev-parse --verify
f92fc98ec03fd6b5176f65dd0d0d855925dcf59b
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def initialize(argument, options={}) <ide> @repository = @tap.path <ide> @skip_homebrew = options.fetch(:skip_homebrew, false) <ide> <del> if quiet_system "git", "rev-parse", "--verify", "-q", argument <add> if quiet_system "git", "-C", @repositor...
1
PHP
PHP
use configure to load plugin paths
b60cd1f8f6e7dc02355d85191c53c62b7e039102
<ide><path>src/Core/Plugin.php <ide> namespace Cake\Core; <ide> <ide> use Cake\Core\ClassLoader; <add>use Cake\Core\Configure; <ide> use DirectoryIterator; <ide> <ide> /** <ide> class Plugin <ide> */ <ide> protected static $_loader; <ide> <del> /** <del> * The config map of plugins and their paths. <...
2
Javascript
Javascript
add ngmobile module with mobile-specific ngclick
707c65d5a228b44ab3aea2fad95516fe6c57169a
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> dest: 'build/angular-loader.js', <ide> src: util.wrap(['src/loader.js'], 'loader') <ide> }, <add> mobile: { <add> dest: 'build/angular-mobile.js', <add> src: util.wrap([ <add> 'src/ngMobile/mobile.js...
6
Text
Text
update text to give an explanation of wrapping
f91dea9b5c6ae77b986a64454599eea08b9c0d0a
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/introduction-to-html5-elements.english.md <ide> videoUrl: 'https://scrimba.com/p/pVMPUv/c4Ep9Am' <ide> <ide> ## Description <ide> <section id='description'> <del>HTML5 introduces more descriptive HTML tags. These include <code>heade...
1
Ruby
Ruby
make generic caveats for launchd plist files
faf51f254d912e5e0c39a1f4fa5a696bd67c56c4
<ide><path>Library/Homebrew/formula.rb <ide> def etc; HOMEBREW_PREFIX+'etc' end <ide> def var; HOMEBREW_PREFIX+'var' end <ide> <ide> # override this to provide a plist <del> def startup_plist; nil; end <add> def plist; nil; end <add> alias :startup_plist :plist <ide> # plist name, i.e. the name of the launchd...
3
Python
Python
clarify tofile requirement
d3820fe823087fff37433fb0b2cb76c0b984fe44
<ide><path>numpy/add_newdocs.py <ide> def luf(lamdaexpr, *args, **kwargs): <ide> machines with different endianness. Some of these problems can be overcome <ide> by outputting the data as text files, at the expense of speed and file <ide> size. <add> <add> When fid is a file object, array contents ar...
1
Python
Python
unify computation of `nbin[i]`
89b402a9dab57c45eca0f942bde699ee6961a1f5
<ide><path>numpy/lib/histograms.py <ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None): <ide> if bins[i] < 1: <ide> raise ValueError( <ide> '`bins[{}]` must be positive, when an integer'.format(i)) <del> nbin[i] = bins[i] + 2 # +2 fo...
1
Python
Python
fix duplicate from merge [ci skip]
bfc212e68fae3eef401474794055d901f9db010f
<ide><path>spacy/language.py <ide> def make_doc(self, text: str) -> Doc: <ide> Errors.E088.format(length=len(text), max_length=self.max_length) <ide> ) <ide> return self.tokenizer(text) <del> return self.tokenizer(text) <ide> <ide> def update( <ide> self,
1
Javascript
Javascript
add coverage for breaklength one-column array
f0fc4b8a28ca386df74b1716be3c1f1977c265b4
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual( <ide> Object.setPrototypeOf(generatorPrototype, originalProtoOfProto); <ide> assert.strictEqual(getProtoOfProto(), originalProtoOfProto); <ide> } <add> <add>{ <add> // Test for when breakLength results in a single column. <add> const obj = Ar...
1
Text
Text
add spanish translation
76363247e4e21165e76a4531dcce9251bafa2663
<ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/object-oriented-programming/remember-to-set-the-constructor-property-when-changing-the-prototype.spanish.md <ide> videoUrl: '' <ide> localeTitle: Recuerde establecer la propiedad del constructor al cambiar el prototipo <ide> --- <ide>...
1
Text
Text
add huggingartists to community notebooks
3157fa3c5330342e8a14c2d13d0678eb9dbcb20e
<ide><path>docs/source/community.md <del># Community <add># Community <ide> <ide> This page regroups resources around 🤗 Transformers developed by the community. <ide> <ide> This page regroups resources around 🤗 Transformers developed by the community <ide> <ide> | Notebook | Description | Autho...
1
Javascript
Javascript
fix iterations for take
7217e1d1834c0bcb3487942fbddf66f1e2bbac02
<ide><path>dist/Immutable.js <ide> var $Sequence = Sequence; <ide> } <ide> var iterations = 0; <ide> sequence.__iterate((function(v, k) { <del> if (iterations < amount && fn(v, k, $__0) !== false) { <del> iterations++; <del> } else { <del> return false; <del> } <...
3
Python
Python
set version to v3.0.0a3
1827f22f56a1a6b6541f35a527c304cdf632f0b1
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a2" <add>__version__ = "3.0.0a3" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp...
1
PHP
PHP
include test to .0 and .00 decimals
18aa5a040f28ffad5dead569c5c07e6a7cb018c3
<ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php <ide> public function testDecimal() { <ide> $this->assertTrue(Validation::decimal('+1234')); <ide> $this->assertTrue(Validation::decimal(1234.56)); <ide> $this->assertTrue(Validation::decimal(1234.00)); <add> $this->assertTrue(Validation::decimal(.0)); <ad...
1
Text
Text
use es6 syntax in fetchposts()
c4c69f33180d27e8f0e081371fe5482a2a1f4c7d
<ide><path>docs/advanced/AsyncActions.md <ide> Here’s what the state shape for our “Reddit headlines” app might look like <ide> { <ide> id: 42, <ide> title: 'Confusion about Flux and Relay' <del> }, <add> }, <ide> { <ide> id: 500, <ide> title: 'Crea...
1
PHP
PHP
fix bad search replace
b9813be5ca898e1f497c37caeddcef5f5ae826fb
<ide><path>src/Database/Type/DateType.php <ide> class DateType extends DateTimeType <ide> * class is constructed. After that use `useMutable()` or `useImmutable()` instead. <ide> * <ide> * @var string <del> * @deprecated 3.2.0 Use DateTypeFactory::useMutable() or DateTypeFactory::useImmutable() inste...
1
Javascript
Javascript
add zh-cn for localization
eb404805a6bc91c8ebaf05511631445e62262cc5
<ide><path>src/locale/zh-CN.js <add>import "locale"; <add> <add>var d3_locale_zhCN = d3.locale({ <add> decimal: ".", <add> thousands: ",", <add> grouping: [3], <add> currency: ["¥", ""], <add> dateTime: "%a %b %e %X %Y", <add> date: "%Y/%-m/%-d", <add> time: "%H:%M:%S", <add> periods: ["上午", "下午"], <add> days:...
1
Ruby
Ruby
restore connection_id on error
8ca93c78832f4fdc78320e3f73ffd07bb71ce196
<ide><path>activerecord/lib/active_record/query_cache.rb <ide> def call(env) <ide> <ide> response = @app.call(env) <ide> response[2] = Rack::BodyProxy.new(response[2]) do <del> ActiveRecord::Base.connection_id = connection_id <del> ActiveRecord::Base.connection.clear_query_cache <del> ...
2
Ruby
Ruby
use normal download strategies for casks
d5de9d585b74cc861fcbaf4d43f51da2f113fb27
<ide><path>Library/Homebrew/cask/lib/hbc/download.rb <ide> def perform <ide> attr_accessor :downloaded_path <ide> <ide> def downloader <del> @downloader ||= case cask.url.using <del> when :svn <del> SubversionDownloadStrategy.new(cask) <del> when :post <del> CurlPostDownloadStrateg...
3
Java
Java
scheduler tests (no single() yet)
eddf7156aa164085d1d6b1b32b78fda63b9ba182
<ide><path>src/main/java/io/reactivex/internal/schedulers/ExecutorScheduler.java <ide> public Disposable schedulePeriodicallyDirect(Runnable run, long initialDelay, lo <ide> } <ide> return super.schedulePeriodicallyDirect(run, initialDelay, period, unit); <ide> } <del> <del> static final clas...
15
PHP
PHP
remove unneded phpstan suppression
4700f01313a1c5b08742b3c407453a63913e625d
<ide><path>src/Http/Client.php <ide> protected function _createRequest(string $method, string $url, $data, $options): <ide> $headers['Content-Type'] = 'application/x-www-form-urlencoded'; <ide> } <ide> <del> /** @phpstan-ignore-next-line */ <ide> $request = new Request($url, $method,...
1
Ruby
Ruby
add return values to example [ci skip]
5ad722c23b7cae9d2e135ee33eb786e315e62130
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def fetch(key, *args) <ide> # params.dig(:foo, :zot, :xyz) # => nil <ide> # <ide> # params2 = ActionController::Parameters.new(foo: [10, 11, 12]) <del> # params2.dig(:foo, 1) <add> # params2.dig(:foo, 1) # => 11 <id...
1
Text
Text
fix broken link
ebfbbdb331f8f93d92650cb4689807f67219833d
<ide><path>examples/with-redux-toolkit/README.md <ide> Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut <ide> <ide> ### TypeScript Setup (optional) <ide> <del>If you haven't already added [TypeScript](https://www.typescriptlang.org/) to your project, follow the [steps in the Next.js do...
1
PHP
PHP
allow validatein for type array
331dc60cd7ed387ef264d22899fb3c7c756e4453
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function getSize($attribute, $value) <ide> */ <ide> protected function validateIn($attribute, $value, $parameters) <ide> { <add> if (is_array($value) && in_array('array', $this->rules[$attribute])) { <add> return count(arr...
1
Python
Python
use bold for text with bg
555f84b976f03cc601d972c96b91e4014a955040
<ide><path>glances/outputs/glances_curses.py <ide> def _init_colors(self): <ide> self.filter_color = curses.color_pair(10) | A_BOLD <ide> <ide> self.no_color = curses.color_pair(1) <del> self.default_color = curses.color_pair(3) <add> self.default_color = curses.color_...
1
Ruby
Ruby
call the columns hash method
425925b1c6433309fcbaa7242df39394b70280a6
<ide><path>lib/arel/visitors/to_sql.rb <ide> def column_for attr <ide> <ide> return nil unless table_exists? table <ide> <del> column_cache[table][name] <add> column_cache(table)[name] <ide> end <ide> <del> def column_cache <del> @schema_cache.columns_hash <add> def colum...
2
Javascript
Javascript
add test for deepequal float32array
d968e4324b2653866d1718c68281b52da7bcbc24
<ide><path>test/parallel/test-assert-typedarray-deepequal.js <ide> const notEqualArrayPairs = [ <ide> [new Int16Array([-256]), new Uint16Array([0xff00])], // same bits <ide> [new Int32Array([-256]), new Uint32Array([0xffffff00])], // ditto <ide> [new Float32Array([0.1]), new Float32Array([0.0])], <add> [new Floa...
1
Javascript
Javascript
remove trailing whitespace
3f6e2e2983cf571b772afc89d6c52e558dc039bf
<ide><path>tests/test-scale-log.js <ide> var x = d3.scale.log(); <ide> console.log("nice():"); <ide> [ <ide> [1.1, 10.9], [10.9, 1.1], [.7, 11.001], [123.1, 6.7], [0, .49], <del> [.12, 1, 2.5, 3, 10.9] <add> [.12, 1, 2.5, 3, 10.9] <ide> ].forEach(function(d) { <ide> var s = " [" + d.map(f) + " ]"; <ide> while...
1
Ruby
Ruby
store#initialize options [ci-skip]
7e884e299618427c59d778e0868f73c1bc0aa948
<ide><path>activesupport/lib/active_support/cache.rb <ide> def retrieve_pool_options(options) <ide> end <ide> end <ide> <del> # Creates a new cache. The options will be passed to any write method calls <del> # except for <tt>:namespace</tt> which can be used to set the global <del> # nam...
1
Java
Java
fix minor issue in reactormessagechannel
f7f66f2e5c18a614a7d741b5ca3d6a07cb49fd8e
<ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/support/ReactorMessageChannel.java <ide> public boolean unsubscribe(MessageHandler<Message<?>> handler) { <ide> logger.trace("Channel " + getName() + ", removing subscription for handler " + handler); <ide> } <ide> <del> Registration<?> ...
1
Javascript
Javascript
move dgram invalid host test to internet tests
402a793012b934447276eacb5052efe5cf041cc2
<ide><path>test/internet/test-dgram-connect.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const { addresses } = require('../common/internet'); <add>const assert = require('assert'); <add>const dgram = require('dgram'); <add> <add>const PORT = 12345; <add> <add>const client = dgram.createSoc...
2
Text
Text
add rmg to collaborators
bd8753aabf58ba71d8a5b2d2c043ad78484f6778
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [petkaantonov](https://github.com/petkaantonov) - **Petka Antonov** &lt;petka_antonov@hotmail.com&gt; <ide> * [qard](https://github.com/qard) - **Stephen Belanger** &lt;admin@stephenbelanger.com&gt; <ide> * [rlidwka](https:/...
1
Ruby
Ruby
add more tests around the polymorphic url api
de6cda5e5fab17bd087b7fd6b6fa7a6cfa738ef1
<ide><path>actionview/test/activerecord/polymorphic_routes_test.rb <ide> def test_with_class <ide> end <ide> end <ide> <add> def test_with_class_list_of_one <add> with_test_routes do <add> assert_url "http://example.com/projects", [@project.class] <add> end <add> end <add> <ide> def test_with_new_...
1
Python
Python
fix bug in standalone mode [issue 279]
3a07899855af59097c2d4c83035772e966514f8a
<ide><path>glances/glances.py <ide> def displayMem(self, mem, memswap, proclist, offset_x=0): <ide> # get the psutil version installed on the server, if in client mode <ide> if client_tag: <ide> server_psutil_version = stats.getPsutilVersion() <add> else: <add> server_psuti...
1
Java
Java
fix issue with obtaining websocketcontainer
3c6c56fe0de9f31bf5f31e8f414f294fd03624dd
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/endpoint/ServerEndpointExporter.java <ide> import org.springframework.context.ApplicationContext; <ide> import org.springframework.context.ApplicationContextAware; <ide> import org.springframework.util.Assert; <del>import org.springframewor...
1
PHP
PHP
add a salt initialization
5cd64beef9c0a84d856b52d967dc58b19d50e784
<ide><path>tests/TestCase/TestSuite/IntegrationTestCaseTest.php <ide> use Cake\Routing\Router; <ide> use Cake\TestSuite\IntegrationTestCase; <ide> use Cake\Test\Fixture\AssertIntegrationTestCase; <add>use Cake\Utility\Security; <ide> <ide> /** <ide> * Self test of the IntegrationTestCase <ide> public function testReq...
1
PHP
PHP
take table name in delete()
7aba2d169ac6faf309cce7e03d67c6a6b06f5e24
<ide><path>lib/Cake/Model/Datasource/Database/Query.php <ide> public function update() { <ide> * Can be combined with from(), where() and other methods to <ide> * create delete queries with specific conditions. <ide> * <add> * @param string $table The table to use when deleting. This <ide> * @return Query <ide> */...
2
Javascript
Javascript
add primordials to adapters
ea92ca1484b0fcea212ee8d0c1fd4f086bf36e08
<ide><path>lib/internal/webstreams/adapters.js <ide> const { <ide> PromiseResolve, <ide> SafePromiseAll, <ide> SafePromisePrototypeFinally, <add> TypedArrayPrototypeGetBuffer, <add> TypedArrayPrototypeGetByteOffset, <add> TypedArrayPrototypeGetByteLength, <ide> Uint8Array, <ide> } = primordials; <ide> <ide>...
1
Python
Python
fix quarentine tests affected by aip-39
975a4e05c98803ce8491d9422516ccb04611082e
<ide><path>airflow/jobs/scheduler_job.py <ide> import time <ide> from collections import defaultdict <ide> from datetime import timedelta <del>from typing import DefaultDict, Dict, Iterable, List, Optional, Tuple <add>from typing import Collection, DefaultDict, Dict, List, Optional, Tuple <ide> <ide> from sqlalchemy i...
4
Javascript
Javascript
throw error when unexpected state has been found
7ebe12dde12a62301fb8979917592fdd5a51012a
<ide><path>lib/RuntimeTemplate.js <ide> module.exports = class RuntimeTemplate { <ide> } <ide> <ide> moduleId({ module, request }) { <del> if (!module) <add> if (!module) { <ide> return this.missingModule({ <ide> request <ide> }); <add> } <add> if (module.id === null) { <add> throw new Error( <add> ...
1
Ruby
Ruby
move route reloading into railties
5f8e48cbd297aca4add4b48efa2136ba6ac851b1
<ide><path>actionpack/lib/action_controller/dispatch/dispatcher.rb <ide> def define_dispatcher_callbacks(cache_classes) <ide> # Run prepare callbacks before every request in development mode <ide> self.prepare_each_request = true <ide> <del> # Development mode callbacks <del> Acti...
7
PHP
PHP
add `abilities` method to gate contract
f7fa463291a72f69aba8c03123078fddd5d039d1
<ide><path>src/Illuminate/Contracts/Auth/Access/Gate.php <ide> public function getPolicyFor($class); <ide> * @return static <ide> */ <ide> public function forUser($user); <add> <add> /** <add> * Get all of the defined abilities. <add> * <add> * @return array <add> */ <add> public fun...
1
Ruby
Ruby
add missing autoload `type`
24b59434e6aca9679b9f86a41cfbb1a33e3d5619
<ide><path>activemodel/lib/active_model.rb <ide> module ActiveModel <ide> autoload :SecurePassword <ide> autoload :Serialization <ide> autoload :Translation <add> autoload :Type <ide> autoload :Validations <ide> autoload :Validator <ide> <ide><path>activemodel/lib/active_model/attribute.rb <ide> # frozen_st...
19
Go
Go
support driver labels
421ef35df298c704b794bceb8780f17941f3c1d5
<ide><path>libnetwork/controller.go <ide> Package libnetwork provides the basic functionality and extension points to <ide> create network namespaces and allocate interfaces for containers to use. <ide> <del> // Create a new controller instance <del> controller, _err := libnetwork.New(nil) <del> <del> ...
1
Text
Text
update the doc of build-bridges.md
0ba6a128eeee3f1519fa3842a6847402a7eafa05
<ide><path>docs/userguide/networking/default_network/build-bridges.md <ide> parent = "smn_networking_def" <ide> <ide> # Build your own bridge <ide> <del>This section explains building your own bridge to replaced the Docker default <add>This section explains how to build your own bridge to replace the Docker default <...
1
Python
Python
remove scipy.org from the breadcrumb formattiong
b176563629800d2ae38832644b9ef1e1828a9d92
<ide><path>doc/source/conf.py <ide> def setup(app): <ide> "scipy_org_logo": False, <ide> "rootlinks": [("https://numpy.org/", "NumPy.org"), <ide> ("https://numpy.org/doc", "Docs"), <del> ("https://scipy.org/", "Scipy.org"), <ide> ] <ide> ...
1
Javascript
Javascript
do global clean up in teardown function
9475e31d32544c275ee79155b223322f132f3f1a
<ide><path>test/data/testrunner.js <ide> window.moduleTeardown = function() { <ide> oldActive = jQuery.active; <ide> } <ide> <add> Globals.cleanup(); <add> <ide> for ( i in jQuery.cache ) { <ide> ++cacheLength; <ide> }
1
Javascript
Javascript
use common.fixtures module
b9ad14d69d23c53bc65efb178c461f523b244ae1
<ide><path>test/parallel/test-eval-require.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const { fixturesDir } = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const spawn = require('child_process').spawn; <ide> <ide> const options = { <del> cwd: common.fi...
1
Javascript
Javascript
consider newlines for cursor position
93c3674ff7115fb2a3dbb5b4ffd22f4d5ed9a472
<ide><path>lib/readline.js <ide> Interface.prototype._historyPrev = function() { <ide> Interface.prototype._getDisplayPos = function(str) { <ide> var offset = 0; <ide> var col = this.columns; <add> var row = 0; <ide> var code; <ide> str = stripVTControlCharacters(str); <ide> for (var i = 0, len = str.length;...
2
Text
Text
add xray status
caa7ed543887a9da6d3d3c99f4da8e87c5aad0e3
<ide><path>docs/focus/2018-03-05.md <ide> - Fixed issues with the Bash parser <ide> - Fixed a bug found during constant fuzzing by the security team: https://github.com/tree-sitter/tree-sitter/issues/133 <ide> - Xray <add> - Decided not to run all text through HarfBuzz for performance reasons, and came up with a...
1
Javascript
Javascript
fix typo error
8578fcce8c582fe17fc05b9daacef07b1d78ce7f
<ide><path>src/renderers/webgl/WebGLProgram.js <ide> function getEncodingComponents( encoding ) { <ide> case GammaEncoding: <ide> return [ 'Gamma', '( value, float( GAMMA_FACTOR ) )' ]; <ide> case LogLuvEncoding: <del> return [ 'LogLuv', '( value )']; <add> return [ 'LogLuv', '( value )' ]; <ide> default: ...
1
PHP
PHP
add @throws tag to docblock
e8df362ca56b8f02c134fbf53803cfbacd174914
<ide><path>src/Validation/ValidatorAwareTrait.php <ide> trait ValidatorAwareTrait <ide> * @param \Cake\Validation\Validator|null $validator The validator instance to store, <ide> * use null to get a validator. <ide> * @return \Cake\Validation\Validator <add> * @throws \RuntimeException <ide> *...
1
Javascript
Javascript
fix typos on $new
b01c28c9004a693f6990ed0b44738ddd0c8fc241
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * the scope and its child scopes to be permanently detached from the parent and thus stop <ide> * participating in model change detection and listener notification by invoking. <ide> * <del> * @param {boolean} isolate i...
1
Python
Python
add id attribute to kubernetespod
e59a88cc12650ac139d154c216b2ee6a8244a2ea
<ide><path>libcloud/container/drivers/kubernetes.py <ide> <ide> <ide> class KubernetesPod(object): <del> def __init__(self, name, containers, namespace): <add> def __init__(self, id, name, containers, namespace): <ide> """ <ide> A Kubernetes pod <ide> """ <add> self.id = id <ide> ...
1
Ruby
Ruby
implement more of @reitermarkus's comments
7ee98eb421380afd45144ef8df1656cb22d4bb66
<ide><path>Library/Homebrew/cask/lib/hbc/cli/upgrade.rb <ide> def initialize(*) <ide> end <ide> <ide> def run <del> outdated_casks = casks(alternative: -> { Hbc.installed }).select { |cask| cask.outdated?(greedy?) || (args.include?(cask.token) && cask.outdated?(true)) } <add> outdated_casks =...
2
Text
Text
fix docs about `sudo docker login`
d6007b4db0c2dc788fc0b1d2e2c5e95a5fa0701f
<ide><path>docs/reference/commandline/login.md <ide> You can log into any public or private repository for which you have <ide> credentials. When you log in, the command stores encoded credentials in <ide> `$HOME/.docker/config.json` on Linux or `%USERPROFILE%/.docker/config.json` on Windows. <ide> <del>> **Note**: ...
2
Text
Text
update readme to link to master research models
9b401346a5c3b4da2e0b7f1ed5ad7deac48df68e
<ide><path>README.md <ide> This repository contains a number of different models implemented in [TensorFlow <ide> <ide> The [official models](official) are a collection of example models that use TensorFlow's high-level APIs. They are intended to be well-maintained, tested, and kept up to date with the latest stable T...
1
Ruby
Ruby
fix escape_javascript for unicode character \u2028
f6ceb944eaea525362db38aa990cac3e6f76ac5a
<ide><path>actionpack/lib/action_view/helpers/javascript_helper.rb <ide> module JavaScriptHelper <ide> "\n" => '\n', <ide> "\r" => '\n', <ide> '"' => '\\"', <del> "'" => "\\'" } <add> "'" => "\\'", <add> "\342\200\250" => '&#x2028;' } <ide> <ide> # E...
2
Ruby
Ruby
fix assert_redirected_to so it works with symbols
b0189f3f2ffd9de95ba2332cdcfaf48d28081e18
<ide><path>actionpack/lib/action_controller/assertions.rb <ide> def assert_redirected_to(options = {}, message=nil) <ide> assert_equal(eurl, url, msg) if eurl && url <ide> assert_equal(epath, path, msg) if epath && path <ide> else <del> @response_diff = options.diff(@respon...
2
Python
Python
fix empty and_query
0906bf2c08e67eb43789ef976a784a4da01a08bc
<ide><path>rest_framework/filters.py <ide> def filter_queryset(self, request, queryset, view): <ide> for orm_lookup in orm_lookups] <ide> and_queries.append(reduce(operator.or_, or_queries)) <ide> <del> if settings.DATABASES[queryset.db]["ENGINE"] == "django.db.backends.ora...
1
PHP
PHP
add unverified state to userfactory
eaf7289523b0730b3d0c5a7146ab0f078019a987
<ide><path>database/factories/UserFactory.php <ide> public function definition() <ide> 'remember_token' => Str::random(10), <ide> ]; <ide> } <add> <add> /** <add> * Define the model's unverified state. <add> * <add> * @return \Illuminate\Database\Eloquent\Factories\Factory <add> ...
1
Python
Python
patch view.head() only for django < 1.4
fe262ef3537fa67ecda374825a295ff854f027a3
<ide><path>djangorestframework/compat.py <ide> def request(self, **request): <ide> environ.update(request) <ide> return WSGIRequest(environ) <ide> <del># django.views.generic.View (Django >= 1.3) <add># django.views.generic.View (1.3 <= Django < 1.4) <ide> try: <ide> from django.views.gener...
1
PHP
PHP
add debug flag to flush output
b3396538b71340a3ca091af01845a40cc54d148f
<ide><path>lib/Cake/TestSuite/CakeTestCase.php <ide> public function tearDown() { <ide> ClassRegistry::flush(); <ide> } <ide> Configure::write($this->_configure); <add> if (isset($_GET['debug']) && $_GET['debug']) { <add> ob_flush(); <add> } <ide> } <ide> <ide> /**
1
PHP
PHP
add comment to queue listen command
81bf19b1e413164349e98b8e09c0603abaa5af33
<ide><path>src/Illuminate/Queue/Console/ListenCommand.php <ide> public function fire() <ide> <ide> $timeout = $this->input->getOption('timeout'); <ide> <add> // We need to get the right queue for the connection which is set in the queue <add> // configuration file for the application. We will pull it based on the...
1
Text
Text
fix url bug in docs
c7a09096eebefe345186b4f7b76cfe66085ab9c6
<ide><path>docs/recipes/MigratingToRedux.md <ide> We don't want to lock you in! <ide> <ide> Your process will look like this: <ide> <del>- Create a function called `createFluxStore(reducer)` that creates a Flux store compatible with your existing app from a reducer function. Internally it might look similar to [`crea...
2
Javascript
Javascript
add prop types
46e8281e89915d03d9462187b6866a7185699ef5
<ide><path>examples/todo/Body.js <del>import React from 'react'; <add>import React, { PropTypes } from 'react'; <ide> <ide> export default class Body { <add> static propTypes = { <add> todos: PropTypes.array.isRequired <add> }; <add> <ide> render() { <ide> return ( <ide> <div> <ide><path>examples/todo...
2
PHP
PHP
add dynamic component
f66c103a9457328f0984a010c27afdf889b3c562
<ide><path>src/Illuminate/View/DynamicComponent.php <add><?php <add> <add>namespace Illuminate\View; <add> <add>use Illuminate\Container\Container; <add>use Illuminate\Support\Str; <add>use Illuminate\View\Compilers\ComponentTagCompiler; <add> <add>class DynamicComponent extends Component <add>{ <add> /** <add> ...
7
Text
Text
update 8.5.0 changelog
cba206fa24e6ab15cad23ee7d44fa444f110582e
<ide><path>doc/api/assert.md <ide> changes: <ide> - version: REPLACEME <ide> pr-url: https://github.com/nodejs/node/pull/15001 <ide> - version: v8.5.0 <del> pr-url: https://github.com/nodejs/node/pull/12142 <add> pr-url: https://github.com/nodejs/node/pull/15001 <ide> description: Error names and mess...
2
Java
Java
add support for @exceptionhandler methods
34eb6d54263cd0ae426f021f98092e6daacbcd70
<ide><path>spring-web-reactive/src/main/java/org/springframework/http/server/reactive/ReactorServerHttpResponse.java <ide> <ide> import org.springframework.http.HttpHeaders; <ide> import org.springframework.http.HttpStatus; <del>import org.springframework.http.server.reactive.ServerHttpResponse; <ide> import org.sprin...
13
Javascript
Javascript
clarify the use of object map
8eb8c4a32fa6f61a84ee476ac0755d9263f84050
<ide><path>src/ng/directive/ngClass.js <ide> function classDirective(name, selector) { <ide> * @element ANY <ide> * @param {expression} ngClass {@link guide/expression Expression} to eval. The result <ide> * of the evaluation can be a string representing space delimited class <del> * names, an array, or a map of...
1
Javascript
Javascript
fix potential null reference
1cefeae8a1939f71f24c80e6e3017a9f1eda1a27
<ide><path>src/loaders/ObjectLoader.js <ide> THREE.ObjectLoader.prototype = { <ide> <ide> } <ide> <del> if( data.animations ) { <add> if( data.animations && data.animations.tracks ) { <ide> <ide> var dataTracks = data.animations.tracks; <ide>
1
PHP
PHP
prefer old input data over form field values
8be20fde8c25545677367908d25da4e222da2d17
<ide><path>src/Illuminate/Html/FormBuilder.php <ide> protected function getIdAttribute($name, $attributes) <ide> /** <ide> * Get the value that should be assigned to the field. <ide> * <add> * This returns either old input for this field, the <add> * value passed to this method or the equally-named attribute of ...
1
Python
Python
pass oauth_timestamp to oauth_provider
5239362951956f130a1ef91d12d6b7d680220104
<ide><path>rest_framework/authentication.py <ide> def check_nonce(self, request, oauth_request): <ide> """ <ide> Checks nonce of request, and return True if valid. <ide> """ <del> return oauth_provider_store.check_nonce(request, oauth_request, oauth_request['oauth_nonce']) <add> re...
1
Text
Text
remove old docs sections
81cc1c5852ff814d5d2fa675b6480469fef3ca3d
<ide><path>docs/api-reference/next.config.js/custom-webpack-config.md <ide> Before continuing to add custom webpack configuration to your application make s <ide> <ide> Some commonly asked for features are available as plugins: <ide> <del>- [@zeit/next-less](https://github.com/vercel/next-plugins/tree/master/packages...
2
Text
Text
fix url leak in application templates guide
80dbcf629c2d6a28109edafb15c144c3f83e8be8
<ide><path>guides/source/rails_application_templates.md <ide> end <ide> <ide> Adds the given source to the generated application's `Gemfile`. <ide> <del>For example, if you need to source a gem from "http://code.whytheluckystiff.net": <add>For example, if you need to source a gem from "[http://code.whytheluckystiff.n...
1
Javascript
Javascript
improve sortableset performance
645f98ae2d91ea2cfbf9d8e7a1df7ac43f19df99
<ide><path>lib/util/SortableSet.js <ide> class SortableSet extends Set { <ide> } <ide> <ide> sortWith(/** @type {(a: any, b: any) => number} */ sortFn) { <del> if (this.size === 0 || sortFn === this._lastActiveSortFn) { <add> if (this.size <= 1 || sortFn === this._lastActiveSortFn) { <ide> // already sorted - n...
1
Text
Text
update a link
a6ff7bd66101f63bf641a1f4b0a59a070aa4d172
<ide><path>docs/basic-features/data-fetching.md <ide> This approach works well for user dashboard pages, for example. Because a dashbo <ide> <ide> ### SWR <ide> <del>The team behind Next.js has created a React hook for data fetching called [**SWR**](https://swr.now.sh/). We highly recommend it if you’re fetching data...
1
Python
Python
use arg overwrite_cache
d9ece8233d584cdc2eeae5165dd3329328fae328
<ide><path>examples/language-modeling/run_language_modeling.py <ide> def get_dataset(args: DataTrainingArguments, tokenizer: PreTrainedTokenizer, eva <ide> if args.line_by_line: <ide> return LineByLineTextDataset(tokenizer=tokenizer, file_path=file_path, block_size=args.block_size) <ide> else: <del> ...
1
Go
Go
normalize comment formatting
580d3677c80398fb0fffb12a6a7db784ec1a135d
<ide><path>integration-cli/docker_api_build_test.go <ide> func (s *DockerSuite) TestBuildAPIUnnormalizedTarPaths(c *testing.T) { <ide> Name: "Dockerfile", <ide> Size: int64(len(dockerfile)), <ide> }) <del> //failed to write tar file header <del> assert.NilError(c, err) <add> assert.NilError(c, err, "failed t...
15
Java
Java
add wrapper class for async storage
4b6af5fa63909060225b8756319273fcedcd0898
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/storage/AsyncLocalStorageUtil.java <ide> /** <ide> * Helper for database operations. <ide> */ <del>/* package */ class AsyncLocalStorageUtil { <add>public class AsyncLocalStorageUtil { <ide> <ide> /** <ide> * Build the String required for an SQL s...
2
Java
Java
improve javadoc for contextcache#clearstatistics()
31a9694fc88e0a5b9343d2cca1cf008aef26830d
<ide><path>spring-test/src/main/java/org/springframework/test/context/cache/ContextCache.java <ide> /* <del> * Copyright 2002-2018 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> * you ma...
1
Python
Python
fix morphological features in de tag_map
3a667833d1a37ffa826ebb3ca76b057c1ce712e3
<ide><path>spacy/lang/de/tag_map.py <ide> "$,": {POS: PUNCT, "PunctType": "comm"}, <ide> "$.": {POS: PUNCT, "PunctType": "peri"}, <ide> "ADJA": {POS: ADJ}, <del> "ADJD": {POS: ADJ, "Variant": "short"}, <add> "ADJD": {POS: ADJ}, <ide> "ADV": {POS: ADV}, <ide> "APPO": {POS: ADP, "AdpType": "post...
1
Ruby
Ruby
remove superfluous branch
fa64a17ae9d5c09c3dac84accaa76eb8e3478ea3
<ide><path>Library/Homebrew/livecheck/livecheck.rb <ide> def run_checks(formulae_and_casks_to_check, args) <ide> livecheck_version = formula_or_cask.livecheck.version <ide> current = if livecheck_version.is_a?(String) <ide> Version.new(livecheck_version) <del> elsif livecheck_version.is...
1
Ruby
Ruby
remove redundent line and reword comments slightly
80c090aaaeefb0d573ec2c633795eba5b2a4a900
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def setup_build_environment <ide> xcode_path = "/Developer" if xcode_path.to_s.empty? <ide> ENV['CC'] = "#{xcode_path}/usr/bin/llvm-gcc" <ide> ENV['CXX'] = "#{xcode_path}/usr/bin/llvm-g++" <del> ENV['LD'] = ENV['CC'] <ide> cflags = ['-O4'] # l...
1