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
add some esdoc definitions
fc6852f47dfe49232fe88a88b296079e2896150d
<ide><path>lib/SourceMapDevToolPlugin.js <ide> const validateOptions = require("schema-utils"); <ide> const schema = require("../schemas/plugins/SourceMapDevToolPlugin.json"); <ide> <ide> /** @typedef {import("../declarations/plugins/SourceMapDevToolPlugin").SourceMapDevToolPluginOptions} SourceMapDevToolPluginOptions...
1
Python
Python
fix syntax error
0ca152a01541f306ca23d5c41b0f56a1dafef260
<ide><path>examples/vectors_fast_text.py <ide> import plac <ide> import numpy <ide> <del>import from spacy.language import Language <add>from spacy.language import Language <ide> <ide> <ide> @plac.annotations(
1
Python
Python
change local variable name from map to mapping
56191ca1eca82f72f6cfab887802d996c6f139b9
<ide><path>celery/backends/asynchronous.py <ide> def remove_pending_result(self, result): <ide> return result <ide> <ide> def _remove_pending_result(self, task_id): <del> for map in self._pending_results: <del> map.pop(task_id, None) <add> for mapping in self._pending_results: <add...
1
Ruby
Ruby
simplify the logic
fac17e8459c193e40144c5e7875f5b634d8af9a0
<ide><path>Library/Homebrew/formulary.rb <ide> def self.from_rack(rack, spec = nil) <ide> end <ide> <ide> def self.to_rack(ref) <del> name = canonical_name(ref) <del> rack = HOMEBREW_CELLAR/name <del> <del> # Handle the case when ref is an old name and the installation <del> # hasn't been migrated or w...
1
Text
Text
add decorator brackets back. refs #941
8d83ff8e6c8513d0a88d6b1fecb34ed86f1e2085
<ide><path>docs/api-guide/viewsets.md <ide> For example: <ide> queryset = User.objects.all() <ide> serializer_class = UserSerializer <ide> <del> @action <add> @action() <ide> def set_password(self, request, pk=None): <ide> user = self.get_object() <ide> ser...
1
Javascript
Javascript
inline default props
88f64a5782e3903b394f4265676f0ca4cff743db
<ide><path>Libraries/Components/Slider/Slider.js <ide> * LICENSE file in the root directory of this source tree. <ide> * <ide> * @format <del> * @flow <add> * @flow strict-local <ide> */ <ide> <ide> 'use strict'; <ide> <ide> const Platform = require('../../Utilities/Platform'); <ide> import SliderNativeComponent ...
1
Javascript
Javascript
make hot cases better
720f3b271aebef0feaef207f07adcdb6d2be5ecc
<ide><path>test/HotTestCases.test.js <ide> describe("HotTestCases", () => { <ide> let options = {}; <ide> if (fs.existsSync(configPath)) options = require(configPath); <ide> if (!options.mode) options.mode = "development"; <add> if (!options.devtool) options.devtool = false; <ide> if (...
2
Ruby
Ruby
add more checks for conflics_with audit
4c14675021ce399dc64459f94763e2016bc58b41
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def audit_deps <ide> <ide> def audit_conflicts <ide> formula.conflicts.each do |c| <del> Formulary.factory(c.name) <add> conflicting_formula = Formulary.factory(c.name) <add> problem "Formula should not conflict with itself" if formula...
1
Ruby
Ruby
add test for build.with? "--with-foo"
5a7cbb762f1a9e715ae03e82eb6cb8ef4ac4a0bb
<ide><path>Library/Homebrew/rubocops/lines_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "Don't duplicate 'without': Use `build.without? \"#{match[1]}\"` to check for \"--without-#{match[1]}\"" <ide> end <ide> <del> # find_instance_method...
2
Python
Python
fix wrong query on running tis
84df8646ba396088e70ca8469b301d11d13d2da7
<ide><path>airflow/api/common/experimental/delete_dag.py <ide> def delete_dag(dag_id: str, keep_records_in_log: bool = True, session=None) -> i <ide> """ <ide> log.info("Deleting DAG: %s", dag_id) <ide> running_tis = ( <del> session.query(models.TaskInstance.state).filter(models.TaskInstance.state.in...
1
Javascript
Javascript
improve regular expression validation
4a3af65a88122307a86b28bf385b8f87767803e6
<ide><path>lib/assert.js <ide> function compareExceptionKey(actual, expected, key, message, keys, fn) { <ide> } <ide> } <ide> <del>function expectedException(actual, expected, msg, fn) { <add>function expectedException(actual, expected, message, fn) { <ide> if (typeof expected !== 'function') { <del> if (isRegE...
2
Ruby
Ruby
move class methods to deprecated stuff
bb9d71ff9e537597ff4d5962e7870ad99001f605
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> module ActionMailer #:nodoc: <ide> # +implicit_parts_order+. <ide> class Base < AbstractController::Base <ide> include Quoting <del> extend AdvAttrAccessor <ide> <ide> include AbstractController::Logger <ide> include AbstractController::Rend...
2
Text
Text
add info about valet to article
b1372bba158959c2b40bb9f4ee6c8bbbb0a6523d
<ide><path>guide/english/laravel/index.md <ide> title: Laravel <ide> # Laravel <ide> [Laravel](https://laravel.com/) is a free and open-source PHP web framework available on [GitHub](https://github.com/laravel/laravel) and licensed under the terms of MIT License. It was created by Taylor Otwell and designed with the ob...
1
Ruby
Ruby
remove pointless assertion
5ae32d5a793c00fb3f52c3c19f4469feab4aaf2f
<ide><path>Library/Homebrew/test/test_cleaner.rb <ide> def test_clean_file <ide> f = CleanerTestBall.new <ide> shutup { f.brew { f.install } } <ide> <del> assert_nothing_raised { Cleaner.new f } <add> Cleaner.new f <add> <ide> assert_equal 0100555, (f.bin/'a.out').stat.mode <ide> assert_equal 010...
1
Java
Java
delete unused imports in headerassertiontests
d8fb6c557d890c2404c6bbc42790be469af55fe2
<ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/HeaderAssertionTests.java <ide> import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*; <ide> import static org.springframework.test.web.servlet.setup.MockMvcBuilders.*; <ide> <del>imp...
1
PHP
PHP
fix pagination comment
bbae90adad1d22353bf59ae3a7163bc84184a173
<ide><path>laravel/database/query.php <ide> public function aggregate($aggregator, $columns) <ide> public function paginate($per_page = 20, $columns = array('*')) <ide> { <ide> // Because some database engines may throw errors if we leave orderings <del> // on the query when retrieving the total number of records,...
1
Ruby
Ruby
fix new_full_name in report
9a4987533af8207041c8061a36661286a429003d
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def report <ide> if tap.core_formula_repository? <ide> new_full_name = new_name <ide> else <del> new_full_name = "#{tap}/#{new_full_name}" <add> new_full_name = "#{tap}/#{new_name}" <ide> end <ide> <ide> renamed_formul...
1
PHP
PHP
add tests for aftersavecommit
3b0c4b92e55b6dade6b4ae9b9de436f9c91e807a
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testAfterSave() <ide> $called = true; <ide> }; <ide> $table->eventManager()->attach($listener, 'Model.afterSave'); <add> <add> $calledAfterCommit = false; <add> $listenerAfterCommit = function ($e, $entity, $opti...
1
PHP
PHP
fix some issues with stack middleware merging
fe5fa984b1ebe73cf40e96c0f3acb58718618090
<ide><path>src/Illuminate/Foundation/Application.php <ide> protected function getStackedClient() <ide> * @param \Stack\Builder <ide> * @return void <ide> */ <del> protected function mergeCustomMiddlewares($stack) <add> protected function mergeCustomMiddlewares(\Stack\Builder $stack) <ide> { <del> foreach ($thi...
1
Text
Text
add a warning about the @jsx declaration
0647c2ee98539776abda0640d4f76416eba78c9b
<ide><path>docs/docs/tutorial.md <ide> For this tutorial we'll use prebuilt JavaScript files on a CDN. Open up your fav <ide> /** <ide> * @jsx React.DOM <ide> */ <add> // The above declaration must remain intact at the top of the script. <ide> // Your code here <ide> </script> <ide> ...
1
PHP
PHP
update doc blocks
8e934b602280a4da565c12f4c609853e6643043f
<ide><path>src/Database/Driver/Sqlserver.php <ide> use Cake\Database\Statement\PDOStatement; <ide> use PDO; <ide> <add>/** <add> * SQLServer driver. <add> */ <ide> class Sqlserver extends \Cake\Database\Driver { <ide> <ide> use PDODriverTrait; <ide> public function connect() { <ide> $connection->exec("SET {$key}...
2
Text
Text
add v3.26.0-beta.4 to changelog
75fa7e35aadf5d260e5e9a14fe28634da0fccd82
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.26.0-beta.4 (March 08, 2021) <add> <add>- [#19436](https://github.com/emberjs/ember.js/pull/19436) [BUGFIX] Support observer keys with colons <add>- [#19448](https://github.com/emberjs/ember.js/pull/19448) [BUGFIX] Ensure query params are preserved thro...
1
Mixed
Ruby
pass default values for `translate` through i18n
dd884eb4253b698039ea302becb71630cc7bc8a0
<ide><path>actionview/CHANGELOG.md <add>* The `translate` helper now passes `default` values that aren't <add> translation keys through `I18n.translate` for interpolation. <add> <add> *Jonathan Hefner* <add> <ide> * Adds option `extname` to `stylesheet_link_tag` to skip default <ide> `.css` extension appe...
3
Ruby
Ruby
push the autoloads up to requires
60736fec5397c331cc8791b884f3579ef29f4f09
<ide><path>activesupport/lib/active_support/notifications.rb <add>require 'active_support/notifications/instrumenter' <add>require 'active_support/notifications/instrumenter' <add>require 'active_support/notifications/fanout' <add> <ide> module ActiveSupport <ide> # = Notifications <ide> # <ide> module ActiveSuppor...
1
PHP
PHP
remove invalid escape in comment
56c50f5e4fef14f939b834a86bb957150e76ae90
<ide><path>src/Datasource/EntityTrait.php <ide> trait EntityTrait <ide> * means no fields are accessible <ide> * <ide> * The special field '\*' can also be mapped, meaning that any other field <del> * not defined in the map will take its value. For example, `'\*' => true` <add> * not defined in t...
1
Javascript
Javascript
improve view documentation
dfad0c557334b651db5419cd94e5f50034d0671e
<ide><path>packages/ember-views/lib/views/view.js <ide> var invokeForState = { <ide> firstName: 'Barry' <ide> }) <ide> excitedGreeting: function(){ <del> return this.getPath("contnet.firstName") + "!!!" <add> return this.getPath("content.firstName") + "!!!" <ide> } <i...
1
Javascript
Javascript
add support for namespaced listeners
c31590e2f7e126e1fe161f37f22c1590197a245e
<ide><path>d3.js <del>(function(){d3 = {version: "0.30.6"}; // semver <add>(function(){d3 = {version: "0.30.8"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide> function d3_selection(groups) { <ide> return groups; <ide> }; <ide> <del> // TODO namespaced event li...
4
Python
Python
add building block for the zroconf protocol
0ad3fcdbfd3413fedc70ba86e593ac8c6cc9c831
<ide><path>glances/__init__.py <ide> # First log with Glances and PSUtil version <ide> logger.info('Start Glances {0}'.format(__version__)) <ide> logger.info('{0} {1} and PSutil {2} detected'.format(platform.python_implementation(), <del> platform.python_version(), <del>...
4
Ruby
Ruby
reduce action.blank? calls
c99d28f1f223e87523559f071eca2d84ac41f14c
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def default_controller_and_action <ide> <ide> hash = {} <ide> <del> action = action.to_s unless action.is_a?(Regexp) <del> <ide> if controller.is_a? Regexp <ide> hash[:controller] = contr...
1
Javascript
Javascript
remove the `document.readystate` polyfill
9ff3c6f99dc1c2debcd99158e09f7a1c3cab7065
<ide><path>src/shared/compatibility.js <ide> PDFJS.compatibilityChecked = true; <ide> }); <ide> })(); <ide> <del>// Provides correct document.readyState value for legacy browsers. <del>// Support: IE9,10. <del>(function checkDocumentReadyState() { <del> if (!hasDOM) { <del> return; <del> } <del> if (!document....
1
Python
Python
improve error message
24e94730368c96ffe809370dad8ae5140136279d
<ide><path>rest_framework/permissions.py <ide> def has_permission(self, request, view): <ide> <ide> assert queryset is not None, ( <ide> 'Cannot apply DjangoModelPermissions on a view that ' <del> 'does not have `.queryset` property.' <add> 'does not have `.queryset` property ...
1
Javascript
Javascript
fix the merge
8ee1f96b1918cf95dd636651bab6e7f6bf3a01df
<ide><path>src/obj.js <ide> var XRef = (function XRefClosure() { <ide> return e; <ide> }, <ide> getCatalogObj: function XRef_getCatalogObj() { <del> return this.this.root; <add> return this.root; <ide> } <ide> }; <ide>
1
Javascript
Javascript
add accusative condition for russian locale, fix
5131e2d2b57cade078d197310b96c244d0cc24bd
<ide><path>locale/ru.js <ide> 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_') <ide> }, <ide> <del> nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ? <add> nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test...
1
Ruby
Ruby
extract common controllers to abstract_unit
546497d027f9e4e55e99dbf7b499bb091d6b5d24
<ide><path>actionpack/test/abstract_unit.rb <ide> def url_for(set, options, recall = nil) <ide> set.send(:url_for, options.merge(:only_path => true, :_recall => recall)) <ide> end <ide> end <add> <add>class ResourcesController < ActionController::Base <add> def index() render :nothing => true end <add> alias_me...
3
Javascript
Javascript
remove hardwired references to 'iojs'
f78c722df5a254b27f4ae05d69dd03e1d2cb9ebc
<ide><path>test/debugger/test-debugger-remote.js <ide> var expected = []; <ide> var scriptToDebug = common.fixturesDir + '/empty.js'; <ide> <ide> function fail() { <del> assert(0); // `iojs --debug-brk script.js` should not quit <add> assert(0); // `--debug-brk script.js` should not quit <ide> } <ide> <ide> // runn...
3
Python
Python
update version number for trunk to 1.4.0
d854e19f4a1c6e5b2ae4007152bbd962fb851642
<ide><path>numpy/version.py <del>version='1.3.0' <add>version='1.4.0' <ide> release=False <ide> <ide> if not release:
1
Python
Python
specify the 'num_gpus' argument
ddbf38334a8a2d4e469d72fc4fde22c8b794680e
<ide><path>research/deep_speech/deep_speech.py <ide> def run_deep_speech(_): <ide> <ide> # Use distribution strategy for multi-gpu training <ide> num_gpus = flags_core.get_num_gpus(flags_obj) <del> distribution_strategy = distribution_utils.get_distribution_strategy(num_gpus) <add> distribution_strategy = distri...
1
PHP
PHP
remove useless property
e56f2f4f0d64d033ad71c9822e404067568c2331
<ide><path>tests/test_app/TestApp/Controller/RequestActionController.php <ide> class RequestActionController extends AppController <ide> { <ide> <del> /** <del> * modelClass property <del> * <del> * @var string <del> */ <del> public $modelClass = 'Posts'; <del> <ide> /** <ide> * test_req...
1
Ruby
Ruby
remove useless number sign
7bb34b12f09bdd94fe285caa18501aeffd1c64e6
<ide><path>activerecord/lib/active_record/base.rb <ide> module ActiveRecord #:nodoc: <ide> # <ide> # Dynamic attribute-based finders are a cleaner way of getting (and/or creating) objects <ide> # by simple queries without turning to SQL. They work by appending the name of an attribute <del> # to <tt>find_by_</tt...
1
Ruby
Ruby
use system tar for bottle toc inspection
edbb3a9e53358a720c390df23839cf8f4abb1b10
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_tag <ide> end <ide> <ide> def bottle_receipt_path(bottle_file) <del> Utils.popen_read("tar", "-tzf", bottle_file, "*/*/INSTALL_RECEIPT.json").chomp <add> Utils.popen_read("/usr/bin/tar", "-tzf", bottle_file, "*/*/INSTALL_RECEIPT.json").chomp <ide> end <ide> <i...
1
Mixed
Ruby
implement replace method so key? works correctly
f38e752bdf27668faf1125479f815832484c0a72
<ide><path>activesupport/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Implement HashWithIndifferentAccess#replace so key? works correctly. *David Graham* <add> <ide> * Hash#extract! returns only those keys that present in the receiver. <ide> <ide> {:a => 1, :b => 2}.extract!(:a, :x) # =>...
3
Javascript
Javascript
fix edge-case when protocol is non-lowercase
48a4600c5669bb2b624bf004bbbb88a2d97ff6f8
<ide><path>lib/url.js <ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { <ide> this.query = {}; <ide> } <ide> if (rest) this.pathname = rest; <del> if (slashedProtocol[proto] && <add> if (slashedProtocol[lowerProto] && <ide> this.hostname && !this.pathname) { <ide> this...
2
Text
Text
add 2.15.0-beta.1 to changelog.md
6ccb09546ecc300148b737eaed653b0361c16311
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### 2.15.0-beta.1 (July 5, 2017) <add> <add>- [#14338](https://github.com/emberjs/ember.js/pull/14338) [FEATURE] Remove explicit names from initializers. <add>- [#15325](https://github.com/emberjs/ember.js/pull/15325) / [#15326](https://github.com/emberjs/embe...
1
Go
Go
correct regexp to match v6 addresses with zone id
3776604aab56cf610365d40279df7e598cc64d33
<ide><path>libnetwork/resolvconf/resolvconf.go <ide> var ( <ide> // -- e.g. other link-local types -- either won't work in containers or are unnecessary. <ide> // For readability and sufficiency for Docker purposes this seemed more reasonable than a <ide> // 1000+ character regexp with exact and complete IPv6 valida...
2
Python
Python
fix docstrings in data_preprocessing.py.
f0e10716160cd048618ccdd4b6e18336223a172f
<ide><path>official/recommendation/data_preprocessing.py <ide> def __init__(self, user_map, item_map, num_data_readers, cache_paths, <ide> item_map: Dict mapping raw item ids to regularized ids. <ide> num_data_readers: The number of reader Datasets used during training. <ide> cache_paths: Object conta...
1
Text
Text
replace github -> github (english)
3e4bcf00b54640a9c9d7bfedd180ec217a924fd5
<ide><path>guide/english/electron/index.md <ide> Some apps built using Electron include: <ide> * [Skype](https://www.skype.com/) (Microsoft's popular video chat application) <ide> * [Slack](https://slack.com/) (A messaging app for teams) <ide> * [Discord](https://discordapp.com) (A popular messaging app for gamers) <de...
1
Python
Python
avoid use of deepcopy in printer
5916d46ba8a9c85f5f8c115bb831561e3c64d256
<ide><path>spacy/tokens/printers.py <ide> def parse_tree(doc, light=False, flat=False): <ide> >>> trees = doc.print_tree() <ide> [{'modifiers': [{'modifiers': [], 'NE': 'PERSON', 'word': 'Bob', 'arc': 'nsubj', 'POS_coarse': 'PROPN', 'POS_fine': 'NNP', 'lemma': 'Bob'}, {'modifiers': [], 'NE': 'PERSON', 'word': '...
1
PHP
PHP
fix indentation (tabs for now)
3626b9b5bd8a47e6ae2000655ee29c3e690f453c
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function booted($callback) <ide> /** <ide> * {@inheritdoc} <ide> */ <del> public function handle(SymfonyRequest $request, $type = self::MASTER_REQUEST, $catch = true) <del> { <del> return $this['Illuminate\Contracts\Http\Kernel']->handle(R...
1
Javascript
Javascript
fix false redirect alarm in router.didtransition
9758b1e1635be19ccd577de9557f3016f69fe1f3
<ide><path>packages/ember-routing/lib/system/route.js <ide> Ember.Route = Ember.Object.extend({ <ide> @param {...Object} models the <ide> */ <ide> transitionTo: function() { <del> this.transitioned = true; <add> if (this._checkingRedirect) { this.redirected = true; } <ide> return this.router.transitio...
3
Ruby
Ruby
repair pub-date in livecheck
6720f8bd1e0237a44bbc0f53769a9d232fb19d62
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.item_from_content(content) <ide> version ||= (item > "version").first&.text&.strip <ide> <ide> title = (item > "title").first&.text&.strip <del> pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d|...
1
Ruby
Ruby
push content_type assigment in to metal
cd8eb351fb514a0e7225cb548e5eec082a0b495e
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def render(*args, &block) <ide> options = _normalize_render(*args, &block) <ide> self.response_body = render_to_body(options) <ide> if options[:html] <del> _set_content_type Mime::HTML.to_s <add> _set_html_content_type <ide...
3
Ruby
Ruby
use env helper
32b7e32856e61f256f2703faa17cdbcee26e17b7
<ide><path>Library/Homebrew/formula.rb <ide> def run_post_install <ide> build = self.build <ide> self.build = Tab.for_formula(self) <ide> <del> old_tmpdir = ENV["TMPDIR"] <del> old_temp = ENV["TEMP"] <del> old_tmp = ENV["TMP"] <del> old_path = ENV["HOMEBREW_PATH"] <del> <del> ENV["TMPDIR"] = ENV...
1
Javascript
Javascript
remove warning for pre-build files
84506cb60928792c6b3d3f337a3877da9f94b61d
<ide><path>lib/CompatibilityPlugin.js <ide> CompatibilityPlugin.prototype.apply = function(compiler) { <ide> if(last.critical && last.request === "." && last.userRequest === "." && last.recursive) <ide> this.state.current.dependencies.pop(); <ide> } <del> dep.critical = "This seems to be a pre-built javascrip...
1
Javascript
Javascript
use firefox 47
1d4216a8bcd32428f826ab544c3da88b87a2ca7b
<ide><path>docs/protractor-conf.js <ide> config.specs = [ <ide> 'app/e2e/**/*.scenario.js' <ide> ]; <ide> <del>config.capabilities = { <del> browserName: 'chrome', <del>}; <add>config.capabilities.browserName = 'chrome'; <ide> <ide> exports.config = config; <ide><path>protractor-conf.js <ide> config.specs = [ <ide...
4
PHP
PHP
fix codestyle errors
adb78e6c3992279bb0dcede982f7ba86db765a25
<ide><path>lib/Cake/Database/Schema/MysqlSchema.php <ide> protected function _foreignOnClause($on) { <ide> } <ide> } <ide> <del> <ide> } <ide><path>lib/Cake/Database/Schema/Table.php <ide> public function addConstraint($name, $attrs) { <ide> * <ide> * @param array $attrs Attributes to set. <ide> * @return array ...
14
Javascript
Javascript
add an annon unsubscribe route
a5ea7ad87928079c89c7e4a87a1d3eb819e87091
<ide><path>server/boot/randomAPIs.js <ide> import request from 'request'; <add>import { isMongoId } from 'validator'; <add>import dedent from 'dedent'; <add> <ide> import constantStrings from '../utils/constantStrings.json'; <ide> import testimonials from '../resources/testimonials.json'; <add>import { wrapHandledError...
1
PHP
PHP
add back test file lost during merge
bdda6bec42904b9ce4ff1829feeec90995143071
<ide><path>tests/TestCase/Console/CommandCollectionTest.php <ide> public function testAutoDiscoverApp() <ide> <ide> $this->assertTrue($collection->has('app')); <ide> $this->assertTrue($collection->has('demo')); <add> $this->assertTrue($collection->has('i18m')); <ide> $this->assertTrue($c...
3
Javascript
Javascript
fix reactrenderdocument tests
fea4fec0bc3cd72b57cc65e75ef6ba2131cdedcb
<ide><path>src/core/__tests__/ReactRenderDocument-test.js <ide> describe('rendering React components at document', function() { <ide> testDocument = getTestDocument(); <ide> }); <ide> <del> if (!testDocument) { <del> // These tests are not applicable in jst, since jsdom is buggy. <del> return; <del> } <d...
1
Javascript
Javascript
create internal connresetexception
aa8b820aaa4d36085baaf8beb1187b2b9955fffb
<ide><path>lib/_http_client.js <ide> const { Buffer } = require('buffer'); <ide> const { defaultTriggerAsyncIdScope } = require('internal/async_hooks'); <ide> const { URL, urlToOptions, searchParamsSymbol } = require('internal/url'); <ide> const { outHeadersKey, ondrain } = require('internal/http'); <add>const { connRe...
3
Python
Python
use np.ndindex, which seems just as efficient
5307aeda11a5d567a966a16232860fd852734606
<ide><path>numpy/lib/shape_base.py <ide> ) <ide> from numpy.core.fromnumeric import product, reshape, transpose <ide> from numpy.core import vstack, atleast_3d <add>from numpy.lib.index_tricks import ndindex <ide> <ide> <ide> __all__ = [ <ide> def apply_along_axis(func1d, axis, arr, *args, **kwargs): <ide> di...
1
Ruby
Ruby
print the linked_version [linux]
06b9f1c50d62b8f60cf80e407492a3b202e67096
<ide><path>Library/Homebrew/extend/os/linux/system_config.rb <ide> def host_gcc_version <ide> `#{gcc} --version 2>/dev/null`[/ (\d+\.\d+\.\d+)/, 1] <ide> end <ide> <del> def formula_version(formula) <add> def formula_linked_version(formula) <ide> return "N/A" unless CoreTap.instance.installed? <d...
1
Text
Text
fix import statement in docs
bdef29ebb10b2d8d7f2689ee5038433a01f8b8a2
<ide><path>docs/docs/getting-started/integration.md <ide> var myChart = new Chart(ctx, {...}); <ide> Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use. <ide> <ide> ```javascript <del>import Chart, LineController, Line, Point, Line...
2
PHP
PHP
reset select bindings when setting select
70d7ba1175b6e54eb2abe82cea8f1e04fd7c4d69
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function __construct(ConnectionInterface $connection, <ide> public function select($columns = ['*']) <ide> { <ide> $this->columns = []; <add> $this->bindings['select'] = []; <ide> <ide> $columns = is_array($columns) ? $col...
2
Javascript
Javascript
change assert.equal to assert.strictequal
558fa1cf1006aa149ca8a0f42aaff0036c9fb33c
<ide><path>test/parallel/test-cluster-send-handle-twice.js <ide> if (cluster.isMaster) { <ide> for (var i = 0; i < workers.toStart; ++i) { <ide> var worker = cluster.fork(); <ide> worker.on('exit', function(code, signal) { <del> assert.equal(code, 0, 'Worker exited with an error code'); <add> assert...
1
Ruby
Ruby
support un m.49 region codes
479544665b9e6edf66c7add1eb6b3c98d98de384
<ide><path>Library/Homebrew/locale.rb <ide> class Locale <ide> class ParserError < StandardError <ide> end <ide> <del> LANGUAGE_REGEX = /(?:[a-z]{2,3})/ # ISO 639-1 or ISO 639-2 <del> REGION_REGEX = /(?:[A-Z]{2})/ # ISO 3166-1 <del> SCRIPT_REGEX = /(?:[A-Z][a-z]{3})/ # ISO 15924 <add> LANGUAGE_REGE...
2
Javascript
Javascript
fix offscreen orbitcontrols
26f7cb8be721cd0cb4d4bc4ab4b488d97c97fa3e
<ide><path>threejs/offscreencanvas-worker-orbitcontrols.js <ide> function noop() { <ide> class ElementProxyReceiver extends EventDispatcher { <ide> constructor() { <ide> super(); <add> // because OrbitControls try to set style.touchAction; <add> this.style = {}; <ide> } <ide> get clientWidth() { <ide> ...
1
Javascript
Javascript
fix e2e test focussing
8c08fcfb1b993f05ecbec94b0c44dd3757066b51
<ide><path>src/ng/directive/input.js <ide> var ngValueDirective = function() { <ide> <ide> it('should allow custom events', function() { <ide> input.sendKeys(' hello'); <add> input.click(); <ide> expect(model.getText()).toEqual('say'); <ide> other.click(); <ide> expect(mode...
1
Python
Python
add ability to restore fine-tuned tf mdoel
7de17404901853e2d4b64a7624082a57fca70ad1
<ide><path>pytorch_pretrained_bert/convert_xlnet_checkpoint_to_pytorch.py <ide> <ide> from pytorch_pretrained_bert.modeling_xlnet import (CONFIG_NAME, WEIGHTS_NAME, <ide> XLNetConfig, XLNetRunConfig, <del> XLNetLMHea...
2
Go
Go
add validatecontextdirectory to utils/utils.go
1dedcd0d376f57abae5cadd38116c1aca2821330
<ide><path>utils/utils.go <ide> func TreeSize(dir string) (size int64, err error) { <ide> }) <ide> return <ide> } <add> <add>// ValidateContextDirectory checks if all the contents of the directory <add>// can be read and returns an error if some files can't be read <add>// symlinks which point to non-existing files d...
1
Text
Text
fix small typos in create-subscription readme
2e1cc2802709877fb2454163ba30e52a91feac8e
<ide><path>packages/create-subscription/README.md <ide> const ReplaySubscription = createSubscription({ <ide> <ide> Below is an example showing how `create-subscription` can be used with native Promises. <ide> <del>**Note** that it an initial render value of `undefined` is unavoidable due to the fact that Promises pr...
1
Ruby
Ruby
remove unused line
1f39b731c1b8e53bb9f91fe06dd26be71c134017
<ide><path>activerecord/test/cases/adapters/postgresql/array_test.rb <ide> def test_column <ide> <ide> ratings_column = PgArray.columns_hash['ratings'] <ide> assert_equal :integer, ratings_column.type <del> type = PgArray.type_for_attribute("ratings") <ide> assert ratings_column.array? <ide> end <ide>...
1
Go
Go
fix a bug when encoding a job environment to json
434f06d03dc2825cb4f348a88ddc6d1aa17ea19c
<ide><path>api.go <ide> func postContainersStart(srv *Server, version float64, w http.ResponseWriter, r <ide> } <ide> name := vars["name"] <ide> job := srv.Eng.Job("start", name) <add> if err := job.ImportEnv(HostConfig{}); err != nil { <add> return fmt.Errorf("Couldn't initialize host configuration") <add> } <ide>...
2
Go
Go
replace diffpath with diffgetter
58bec40d16265362fd4e41dbd652e6fba903794d
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> import ( <ide> "syscall" <ide> <ide> "github.com/Sirupsen/logrus" <add> "github.com/vbatts/tar-split/tar/storage" <ide> <ide> "github.com/docker/docker/daemon/graphdriver" <ide> "github.com/docker/docker/pkg/archive" <ide> func (a *Driver) Diff(id, parent string) (...
4
Javascript
Javascript
allow nonce attribute
e39f51429b7e81b44ba38cbe3959fbd9a658cf48
<ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js <ide> var HTMLDOMPropertyConfig = { <ide> multiple: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, <ide> muted: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE, <ide> name: null, <add> nonce: MUST_USE_ATTRIBUTE, <ide> noValidate: HAS_BOOLEAN_VALUE, <ide> ...
1
Text
Text
use sha256 for example
04959403ac23bc16d52fc52aafed80b574231b02
<ide><path>share/doc/homebrew/Python-for-Formula-Authors.md <ide> class Foo < Formula <ide> url ... <ide> <ide> resource "six" do <del> url "https://pypi.python.org/packages/source/s/six/six-1.8.0.tar.gz" <del> sha1 "aa3b0659cbc85c6c7a91efc51f2d1007040070cd" <add> url "https://pypi.python.org/packages/sou...
1
Javascript
Javascript
add callback to fs.close() in test-fs-stat
665695fbea4a4dc3c241e7f27738003d00218c78
<ide><path>test/parallel/test-fs-stat.js <ide> fs.open('.', 'r', undefined, common.mustCall(function(err, fd) { <ide> fs.fstat(fd, common.mustCall(function(err, stats) { <ide> assert.ifError(err); <ide> assert.ok(stats.mtime instanceof Date); <del> fs.close(fd); <add> fs.close(fd, assert.ifError); <ide>...
1
Text
Text
note typescript migration
b900ad9b85ef44c6f83f86638d5ac6a9282694d9
<ide><path>UPGRADING.md <ide> <ide> ## Breaking Changes <ide> <add>#### `@zeit/next-typescript` is no longer necessary <add> <add>Next.js will now ignore usage `@zeit/next-typescript` and warn you to remove it. Please remove this plugin from your `next.config.js`. <add> <add>Usage of [`fork-ts-checker-webpack-plugin`...
1
Python
Python
fix typos and even more informative docs.
2d3880dc359ef67e30dc6fd751fcfafef7aa281d
<ide><path>examples/neural_turing_machine_copy.py <ide> <ide> """ <ide> Copy Problem defined in Graves et. al [0] <del>After about 3500 updates, the accuracy becomes jumps from around 50% to >90%. <add> <add>Training data is made of sequences with length 1 to 20. <add>Test data are sequences of length 100. <add>The m...
1
Java
Java
fix typo and polish
42a95b8f35708612e40ad3b2ecd215da3216b6c1
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/WiretapConnector.java <ide> public Mono<byte[]> getContent() { <ide> //noinspection ConstantConditions <ide> (this.publisher != null ? this.publisher : this.publisherNested) <ide> .onErrorMap(ex -> new IllegalStateExcepti...
1
Javascript
Javascript
expose parsers freelist
0003c701bcb1d916073f8893ee4cbe698515158d
<ide><path>lib/http.js <ide> var parsers = new FreeList('parsers', 1000, function () { <ide> <ide> return parser; <ide> }); <add>exports.parsers = parsers; <ide> <ide> <ide> var CRLF = "\r\n";
1
Python
Python
remove `print()`'s in distutils template handling
7f45b555df88dbf860de5f035a32dfc03b2e06d6
<ide><path>numpy/distutils/conv_template.py <ide> def resolve_includes(source): <ide> if not os.path.isabs(fn): <ide> fn = os.path.join(d, fn) <ide> if os.path.isfile(fn): <del> print('Including file', fn) <ide> lines.extend(reso...
2
Python
Python
use assertequal instead of assertequals
81cd3a74609086a34ced5a5af65768f58cee2c87
<ide><path>tests/template_tests/tests.py <ide> def test_context_comparable(self): <ide> # adds __eq__ in the future <ide> request = RequestFactory().get('/') <ide> <del> self.assertEquals( <add> self.assertEqual( <ide> RequestContext(request, dict_=test_data), <ide> ...
1
PHP
PHP
fix double semicolon
92d9b11aeef140b1e39ed61ff5b266c814de19c5
<ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php <ide> public function testExportVarZero() { <ide> 'false' => false, <ide> 'szero' => '0', <ide> 'zero' => 0 <del> );; <add> ); <ide> $result = Debugger::exportVar($data); <ide> $expected = <<<TEXT <ide> array(
1
PHP
PHP
improve layout more
673abc89e249525c4d574b75cd3ee3678f55ca81
<ide><path>templates/Error/duplicate_named_route.php <ide> <ide> <?php if (isset($attributes['duplicate'])): ?> <ide> <h3>Duplicate Route</h3> <del> <table cellspacing="0" cellpadding="0"> <add> <table cellspacing="0" cellpadding="0" width="100%"> <ide> <tr><th>Template</th><th>Defaults</th><th>Options</...
2
Javascript
Javascript
add back comments
dd6406ace23796cc668f9ffdabf4cc58df944210
<ide><path>packages/next/taskfile-babel.js <ide> module.exports = function(task) { <ide> const options = { <ide> ...babelOpts, <ide> compact: true, <del> comments: false, <ide> babelrc: false, <ide> configFile: false, <ide> filename: file.base, <ide> module.exports = function(task...
1
Java
Java
provide simple way to create serverrequest
22edab852da456bea728daf84df09f0047e1d13f
<ide><path>spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java <ide> import org.springframework.http.HttpRange; <ide> import org.springframework.http.HttpRequest; <ide> import org.springframework.http.MediaType; <add>import org.springframework.http.codec.HttpMessageRea...
8
Ruby
Ruby
prevent string polymorphic route arguments
c4c21a9f8d7c9c8ca6570bdb82d64e2dc860e62c
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> def handle_list(list) <ide> <ide> args = [] <ide> <del> route = record_list.map { |parent| <add> route = record_list.map do |parent| <ide> case parent <del> when Symbol, String <a...
3
Python
Python
fix missing `type` in identity test
7c7ad152867928a3b4b6d5d5ff6c5e266360c6be
<ide><path>numpy/core/tests/test_nditer.py <ide> class MyNDArray(np.ndarray): <ide> [['readonly'], ['readonly'], <ide> ['writeonly', 'allocate', 'no_subtype']]) <ide> assert_equal(type(b), type(i.operands[2])) <del> assert_(type(a) is not (i.operands[2])) <add> assert_(type(a) i...
1
Javascript
Javascript
reset tooltip when calling chart.update
13e9676625723a4c6d4e8232b2fe3fa02421d38b
<ide><path>src/core/core.controller.js <ide> module.exports = function(Chart) { <ide> <ide> me.updateDatasets(); <ide> <add> // Need to reset tooltip in case it is displayed with elements that are removed <add> // after update. <add> me.tooltip.initialize(); <add> <add> // Last active contains items that w...
3
Go
Go
add satoshi nakamoto to names generator
4bfd23b7ee5f053a4e45b4b016144690c683ce1e
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Mildred Sanderson - American mathematician best known for Sanderson's theorem concerning modular invariants. https://en.wikipedia.org/wiki/Mildred_Sanderson <ide> "sanderson", <ide> <add> // Satoshi Nakamoto is the name used by the unknown pers...
1
PHP
PHP
ensure non empty locale when generating cache key
201130ea158a0ba555121afe866171da0f0b535f
<ide><path>src/I18n/DateFormatTrait.php <ide> public function i18nFormat($format = null, $timezone = null, $locale = null) <ide> * <ide> * @param \DateTime $date Date. <ide> * @param string|int|array $format Format. <del> * @param string $locale The locale name in which the date should be displayed. ...
2
Text
Text
remove references to 'source repository'
b143c05d64c4532b090d1f718ab93b4f7b1c466c
<ide><path>docs/reference/builder.md <ide> parent = "mn_reference" <ide> <ide> # Dockerfile reference <ide> <del>**Docker can build images automatically** by reading the instructions <del>from a `Dockerfile`. A `Dockerfile` is a text document that contains all <del>the commands you would normally execute manually in ...
1
Text
Text
fix spelling errors and grammar issues
c4d2e8eef218677d44e542fdf1b41d6b6fe027b7
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> Please don't put "feature request" items into GitHub Issues. If there's a new <ide> feature that you want to see added to Ruby on Rails, you'll need to write the <ide> code yourself - or convince someone else to partner with you to write the code. <ide> La...
1
Javascript
Javascript
fix loading of the font widths
8aab1a7a7ba92573cce69d6bb60e6bbefac408a4
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> if (widths) { <ide> var start = 0, end = 0; <ide> for (var i = 0, ii = widths.length; i < ii; i++) { <del> var code = widths[i]; <add> var code = xref.fetchIfRef(widths[...
1
Text
Text
remove image from challenge
96bed09af63edbd1baf1a1b96f81d4e8e6a6cb2d
<ide><path>curriculum/challenges/english/01-responsive-web-design/applied-visual-design/move-a-relatively-positioned-element-with-css-offsets.md <ide> dashedName: move-a-relatively-positioned-element-with-css-offsets <ide> <ide> The CSS offsets of `top` or `bottom`, and `left` or `right` tell the browser how far to of...
1
Python
Python
fix gelu test for torch 1.10
1e53faeb2ef7f3b6e68a4d10113cd889c95acc4f
<ide><path>tests/test_activations.py <ide> class TestActivations(unittest.TestCase): <ide> def test_gelu_versions(self): <ide> x = torch.tensor([-100, -1, -0.1, 0, 0.1, 1.0, 100]) <ide> torch_builtin = get_activation("gelu") <del> self.assertTrue(torch.eq(_gelu_python(x), torch_builtin(x)).al...
1
Text
Text
add missing word in frameerror event docs
ad4d626bb9e2e8be93cd31b569048c7278ed5d35
<ide><path>doc/api/http2.md <ide> added: v8.4.0 <ide> <ide> The `'frameError'` event is emitted when an error occurs while attempting to <ide> send a frame on the session. If the frame that could not be sent is associated <del>with a specific `Http2Stream`, an attempt to emit `'frameError'` event on the <add>with a sp...
1
Text
Text
replace head of readme with updated text
7ed09a36ec702c249b6e470194c20b118057e836
<ide><path>README.md <del> <ide> Node.js <del>===== <add>======= <ide> <ide> [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/nodejs/node?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) <ide> <del>This repository began as a GitHub fork of <del>[joyent/node](https://gith...
1
Go
Go
extract loading options to a function
cd58d11b2ab10131b9ab8e835c39ffd6e53917e3
<ide><path>volume/local/local.go <ide> func New(scope string, rootIdentity idtools.Identity) (*Root, error) { <ide> // unclean shutdown). This is a no-op on windows <ide> unmount(v.path) <ide> <del> if b, err := os.ReadFile(filepath.Join(v.rootPath, "opts.json")); err == nil { <del> opts := optsConfig{} <del> ...
1
Java
Java
fix handling of required payload
52c3f713bf0f467a43fa55c9be425447d371531b
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/MethodArgumentNotValidException.java <ide> import org.springframework.validation.ObjectError; <ide> <ide> /** <del> * Exception to be thrown when validation on an method parameter annotated with {@code @Valid} fails. <ad...
4