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
Java
Java
add heartbeat lock to sockjs server sessions
ba885f3d0b6284bdadb7d4026376296fc85324db
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2016 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (...
2
PHP
PHP
apply fixes from styleci
68fec90c18d5a4871ad62d6aea5065c8763b988c
<ide><path>src/Illuminate/Database/SQLiteConnection.php <ide> public function __construct($pdo, $database = '', $tablePrefix = '', array $conf <ide> $this->getSchemaBuilder()->enableForeignKeyConstraints(); <ide> } <ide> } <add> <ide> /** <ide> * Get the default query grammar instance. ...
1
Ruby
Ruby
simplify cask `spec_helper`
a1fbb1020bdfa5cad0659b466c4b236c7d37c789
<ide><path>Library/Homebrew/cask/lib/hbc/locations.rb <ide> def default_caskroom <ide> @default_caskroom ||= HOMEBREW_PREFIX.join("Caskroom") <ide> end <ide> <add> attr_writer :caskroom <add> <ide> def caskroom <ide> @caskroom ||= begin <ide> if Utils.path_occupied?(legacy_ca...
2
Python
Python
use language.pipe in evaluate
a0cdc2b007799317e3d8691b31de045dd8a893d1
<ide><path>spacy/language.py <ide> def evaluate( <ide> for eg in examples: <ide> self.make_doc(eg.reference.text) <ide> # apply all pipeline components <del> for name, pipe in self.pipeline: <del> kwargs = component_cfg.get(name, {}) <del> kwargs.setdefault("batc...
1
Ruby
Ruby
unwrap another html_escape
fadbc7c9eea63e9d8d6ef29b126db4bd3335785b
<ide><path>actionview/lib/action_view/helpers/output_safety_helper.rb <ide> def raw(stringish) <ide> # # => "<p>foo</p><br /><p>bar</p>" <ide> # <ide> def safe_join(array, sep=$,) <del> sep = ERB::Util.html_escape(sep) <add> sep = ERB::Util.unwrapped_html_escape(sep) <ide> <del> ...
1
Python
Python
improve lemmatization rule for am|vbp
b29e6bff46f4afd20f50fc24d4460ef8c260516a
<ide><path>spacy/lang/en/morph_rules.py <ide> <ide> "VBP": { <ide> "are": {LEMMA: "be", "VerbForm": "Fin", "Tense": "Pres", "Mood": "Ind"}, <del> "'re": {LEMMA: "be", "VerbForm": "Fin", "Tense": "Pres", "Mood": "Ind"} <add> "'re": {LEMMA: "be", "VerbForm": "Fin", "T...
1
Javascript
Javascript
add typedarray constructors to primordials
e9f2d7cff76607fe88e066f4f9c241abb2228952
<ide><path>lib/internal/per_context/primordials.js <ide> primordials.SafePromise = makeSafe( <ide> 'Array', <ide> 'ArrayBuffer', <ide> 'BigInt', <add> 'BigInt64Array', <add> 'BigUint64Array', <ide> 'Boolean', <ide> 'Date', <ide> 'Error', <add> 'Float32Array', <add> 'Float64Array', <ide> 'Function', <a...
1
PHP
PHP
change exception message
b3203fcda645b641eb64b920df2962c1f37e5004
<ide><path>src/Illuminate/View/Concerns/ManagesStacks.php <ide> public function startPush($section, $content = '') <ide> public function stopPush() <ide> { <ide> if (empty($this->pushStack)) { <del> throw new InvalidArgumentException('Cannot end a section without first starting one.'); <add> ...
1
PHP
PHP
apply fixes from styleci
692b2917099b3ff414097245dc8de04dd5543f2e
<ide><path>tests/Routing/RoutingUrlGeneratorTest.php <ide> public function testSignedRelativeUrl() <ide> $this->assertFalse($url->hasValidSignature($request, false)); <ide> } <ide> <del> public function testSignedUrlParameterCannotBeNamedSignature() { <add> public function testSignedUrlParameterCanno...
1
Go
Go
enable 2 testattach* tests
934fe3f73ee2afccfa051ade5487e39bfa9e1718
<ide><path>integration-cli/docker_cli_attach_test.go <ide> import ( <ide> const attachWait = 5 * time.Second <ide> <ide> func (s *DockerSuite) TestAttachMultipleAndRestart(c *check.C) { <del> testRequires(c, DaemonIsLinux) <del> <ide> endGroup := &sync.WaitGroup{} <ide> startGroup := &sync.WaitGroup{} <ide> endGrou...
1
Go
Go
fix error messages for `--cpus` from daemon
d22ac2f3a0de8e2ff6da8f1787e3ac3ac7438f17
<ide><path>daemon/daemon_unix.go <ide> func getCPUResources(config containertypes.Resources) *specs.CPU { <ide> } <ide> <ide> if config.NanoCPUs > 0 { <del> // Use the default setting of 100ms, as is specified in: <add> // We set the highest value possible (1s), as is specified in: <ide> // https://www.kernel.or...
3
PHP
PHP
fix undefined property in withfaker
4e33586e6cf6baf3a857e8ec6bd6de2ae4f93ad9
<ide><path>src/Illuminate/Foundation/Testing/WithFaker.php <ide> protected function makeFaker($locale = null) <ide> { <ide> $locale = $locale ?? config('app.faker_locale', Factory::DEFAULT_LOCALE); <ide> <del> if ($this->app->bound(Generator::class)) { <add> if (isset($this->app) && $this->ap...
1
Text
Text
refer people to "good first issue"
221aa954fb2c2eb3b5d8fb52f9cc821db2ff1f7f
<ide><path>README.md <ide> Facebook has adopted a Code of Conduct that we expect project participants to ad <ide> <ide> Read our [contributing guide](https://reactjs.org/contributing/how-to-contribute.html) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your...
1
Javascript
Javascript
fix csp auto-detection and stylesheet injection
08f376f2ea3d3bb384f10e3c01f7d48ed21ce351
<ide><path>lib/grunt/utils.js <ide> module.exports = { <ide> .replace(/\\/g, '\\\\') <ide> .replace(/'/g, "\\'") <ide> .replace(/\r?\n/g, '\\n'); <del> return "angular.element(document).find('head').prepend('<style type=\"text/css\">" + css + "</style>');"; <add> return "!angular.$$csp...
8
Javascript
Javascript
introduce nativeimagesource api
dcbcda75ec6b969d885f5f7ac97728d45a9bee0d
<ide><path>Libraries/Image/nativeImageSource.js <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional grant <add> * of pa...
1
Javascript
Javascript
extract argument handling logic in pickby
3866df1baec8600e0f861a24acf6bffd443cd75a
<ide><path>moment.js <ide> config._d = new Date(config._i); <ide> }); <ide> <del> function _pickBy(key, moments) { <add> // Pick a moment m from moments so that m[fn](other) is true for all <add> // other. This relies on the function fn to be transitive. <add> // <add> // moments should eith...
1
Ruby
Ruby
add test case for text_field_tag
c293eca83f46f9645c40b2476b71daec8b33c3e2
<ide><path>actionview/test/template/form_tag_helper_test.rb <ide> def test_text_field_tag_maxlength_string <ide> assert_dom_equal expected, actual <ide> end <ide> <del> def test_text_field_disabled <add> def test_text_field_tag_disabled <ide> actual = text_field_tag "title", "Hello!", disabled: true <ide> ...
1
Javascript
Javascript
provide shape necessary for shapegeometry
e1174d34fae5eaf3a6429698e53416f946972db2
<ide><path>test/unit/src/geometries/ShapeGeometry.tests.js <ide> import { <ide> ShapeBufferGeometry <ide> } from '../../../../src/geometries/ShapeGeometry'; <ide> <add>import {Shape} from '../../../../src/extras/core/Shape'; <add> <ide> export default QUnit.module( 'Geometries', () => { <ide> <ide> QUnit.module( 'S...
1
Ruby
Ruby
reduce method calls to the join base object
a79e1de90a6062926a8ec11870702923eb691944
<ide><path>activerecord/lib/active_record/associations.rb <ide> def count_aliases_from_table_joins(name) <ide> end <ide> <ide> def instantiate(rows) <del> rows.each_with_index do |row, i| <del> primary_id = join_base.record_id(row) <add> primary_key = join_base.al...
1
Javascript
Javascript
remove interleavedgeometryattribute test
ae49679f4e947ab6592cbc509b3ce9250d332298
<ide><path>test/unit/src/core/BufferGeometry.tests.js <ide> import { <ide> Uint16BufferAttribute, <ide> Uint32BufferAttribute <ide> } from '../../../../src/core/BufferAttribute'; <del>import { InterleavedBufferAttribute } from '../../../../src/core/InterleavedBufferAttribute'; <del>import { InterleavedBuffer } from '...
1
PHP
PHP
set default auth_mode for smtp mail driver
0f133c1e8eff44d765a40fc1934172e7bf046e56
<ide><path>config/mail.php <ide> 'username' => env('MAIL_USERNAME'), <ide> 'password' => env('MAIL_PASSWORD'), <ide> 'timeout' => null, <add> 'auth_mode' => null, <ide> ], <ide> <ide> 'ses' => [
1
PHP
PHP
add fix and tests for
18c801d282fa387c7f0b0f9b6d438aea920736d2
<ide><path>src/Database/Type/DateTimeType.php <ide> public function toDatabase($value, Driver $driver) <ide> */ <ide> public function toPHP($value, Driver $driver) <ide> { <del> if ($value === null || (int)$value === 0) { <add> if ($value === null || strpos($value, '-') !== false && (int)$val...
2
Javascript
Javascript
fix jshint warnings
f8d551721102c6b430a884bc256cf77c9edcff36
<ide><path>packages/ember-htmlbars/tests/attr_nodes/sanitized_test.js <ide> var badTags = [ <ide> ]; <ide> <ide> for (var i = 0, l = badTags.length; i < l; i++) { <add> /* jshint -W083 */ <ide> (function() { <ide> var subject = badTags[i]; <ide> <ide> for (var i = 0, l = badTags.length; i < l; i++) { <ide> ...
3
Text
Text
add redux egghead course notes to ecosystem
05325a7857ccda1b6a26db12d274fac0e2efec83
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> ### Tutorials and Articles <ide> <ide> * [Redux Tutorial](https://github.com/happypoulp/redux-tutorial) — Learn how to use Redux step by step <add>* [Redux Egghead Course Notes](https:/...
1
Python
Python
use list to allow modification in-place
a559493bfa54d7a685e8e66139c52f0f2dd8e1bb
<ide><path>airflow/executors/celery_executor.py <ide> def execute_async(self, key, command, queue=DEFAULT_QUEUE): <ide> def sync(self): <ide> logging.debug( <ide> "Inquiring about {} celery task(s)".format(len(self.tasks))) <del> for key, async in self.tasks.items(): <add> for key,...
1
Javascript
Javascript
assemble cmap table from strings instead of arrays
0c948d7b0631215385cd4ffaae1dea01c3650978
<ide><path>fonts.js <ide> var Font = (function () { <ide> function createCMAPTable(aGlyphs) { <ide> var ranges = getRanges(aGlyphs); <ide> <del> // The size in bytes of the header is equal to the size of the <del> // different fields * length of a short + (size of the 4 parallels arrays <de...
1
PHP
PHP
add test for previous commit
a5657db545da37bb40930b2e5098be070768a05f
<ide><path>tests/TestCase/Database/Expression/ComparisonTest.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and lic...
1
PHP
PHP
fix ticket 3429
41f2d812bbaf77d6cb4f5402c01f25fc245bf4eb
<ide><path>lib/Cake/Console/Command/Task/FixtureTask.php <ide> public function getPath() { <ide> * @return string fields definitions <ide> */ <ide> protected function _generateSchema($tableInfo) { <del> $schema = $this->_Schema->generateTable('f', $tableInfo); <del> return substr($schema, 13, -2); <add> $schema =...
1
PHP
PHP
add fixture i missed
ad0861189eccb0da67171c5bbf93b0ecb9bd61ac
<ide><path>tests/test_app/Plugin/TestPlugin/tests/Fixture/Blog/CommentsFixture.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full...
1
PHP
PHP
refactor the view class
6278daca9cbeebac21473bd453630c5bd3dea2d2
<ide><path>system/view.php <ide> private function find_composer_function($composer) <ide> <ide> if (is_callable($composer)) return $composer; <ide> <del> foreach ($composer as $value) <add> foreach ($composer as $key => $value) <ide> { <ide> if (is_callable($value)) return $value; <ide> } <ide> public func...
1
Python
Python
fix bad intersphinx link
414b30b2ec8ae365ca311b697d44578394371ff6
<ide><path>docs/conf.py <ide> "jinja": ("https://jinja.palletsprojects.com/", None), <ide> "itsdangerous": ("https://itsdangerous.palletsprojects.com/", None), <ide> "sqlalchemy": ("https://docs.sqlalchemy.org/", None), <del> "wtforms": ("https://wtforms.readthedocs.io/en/stable/", None), <add> "wtfor...
1
Text
Text
add changelog for [ci skip]
f009e553ce3770a7af80508893534879b0bc4e99
<ide><path>activemodel/CHANGELOG.md <add>* Add `config.active_model.i18n_full_message` in order to control whether <add> the `full_message` error format can be overridden at the attribute or model <add> level in the locale files. This is `false` by default. <add> <add> *Martin Larochelle* <add> <ide> * Rai...
2
Javascript
Javascript
fix uiexplorer image example on ios
a10c1b5a309586ac6b8977ccfd71ac41fd51c513
<ide><path>Examples/UIExplorer/ImageExample.js <ide> var React = require('react-native'); <ide> var { <ide> Image, <add> Platform, <ide> StyleSheet, <ide> Text, <ide> View, <ide> exports.examples = [ <ide> source={image} <ide> /> <ide> </View> <del> ...
1
Ruby
Ruby
require integer conversion for this test
4b4bed83e2c68bcd7fb62cb3eb2aa75733043a92
<ide><path>actionview/test/template/date_helper_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "abstract_unit" <add>require "active_support/core_ext/integer/time" <ide> <ide> class DateHelperTest < ActionView::TestCase <ide> tests ActionView::Helpers::DateHelper
1
PHP
PHP
add tests for activeclass template variable
657973f8a28659c24d5b14d79d84775b2a096c9e
<ide><path>tests/TestCase/View/Widget/RadioWidgetTest.php <ide> public function testRenderSimple() <ide> $this->assertHtml($expected, $result); <ide> } <ide> <add> /** <add> * Test rendering the activeClass template var <add> * <add> * @return void <add> */ <add> public function testR...
1
PHP
PHP
add success message to clear-compiled command
67128a4cdbb2d40c34b878cb28f58d59d63c9877
<ide><path>src/Illuminate/Foundation/Console/ClearCompiledCommand.php <ide> public function fire() <ide> if (file_exists($servicesPath)) { <ide> @unlink($servicesPath); <ide> } <add> <add> $this->info('Compiled class file removed!'); <ide> } <ide> }
1
Python
Python
fix exception message upacking
f7fdf950ad8178e4f08a00892e8994ea6002a286
<ide><path>celery/backends/base.py <ide> def exception_to_python(self, exc): <ide> celery.exceptions.__name__) <ide> exc_msg = exc['exc_message'] <ide> try: <del> exc = cls(*exc_msg if isinstance(exc_msg, tuple) else e...
1
Mixed
Javascript
move tmpdir to submodule of common
bf6ce47259ebfe9f6349c223cc1735726aee062d
<ide><path>benchmark/http/http_server_for_chunky_client.js <ide> <ide> const assert = require('assert'); <ide> const http = require('http'); <del>const fs = require('fs'); <ide> const { fork } = require('child_process'); <ide> const common = require('../common.js'); <del>const { PIPE, tmpDir } = require('../../test/co...
154
Python
Python
introduce model.summary() feature
1ef35e90fc285680f368dc395fb44c680d47421d
<ide><path>keras/models.py <ide> from . import regularizers <ide> from . import constraints <ide> from . import callbacks as cbks <del>from .utils.layer_utils import container_from_config <add>from .utils.layer_utils import container_from_config, model_summary <ide> from .utils.generic_utils import Progbar, printv <ide...
4
Python
Python
add filename attribute to memmap
4d821188c3baeefccaff0d8074ea0ee838327f66
<ide><path>numpy/core/memmap.py <ide> def __new__(subtype, filename, dtype=uint8, mode='r+', offset=0, <ide> self = ndarray.__new__(subtype, shape, dtype=descr, buffer=mm, <ide> offset=offset, order=order) <ide> self._mmap = mm <add> self.filename = filename <ide> return self ...
2
Text
Text
add 4.10.0-beta.4 to changelog
5ee2c9b95a3c4b96fa66d811cb24d63fdcba4ada
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>## v4.10.0-beta.4 (December 13, 2022) <add> <add>- [#20321](https://github.com/emberjs/ember.js/pull/20321) [BUGFIX LTS] types: `ContainerDebugAdapter` extends `EmberObject`, not `Object` <add> <ide> ## v4.9.2 (December 12, 2022) <ide> <ide> - [#20296](https:...
1
Javascript
Javascript
add box3 unittests
16e079ae125612bd4c0d7e4cc17dd39048c77313
<ide><path>test/unit/src/math/Box3.tests.js <ide> export default QUnit.module( 'Maths', () => { <ide> } ); <ide> <ide> // PUBLIC STUFF <del> QUnit.todo( "isBox3", ( assert ) => { <add> QUnit.test( "isBox3", ( assert ) => { <ide> <del> assert.ok( false, "everything's gonna be alright" ); <add> var a = new Bo...
1
Javascript
Javascript
add basic support for non-embedded wingdings fonts
96a77e9d6acdad45d3545a45ddb774883fe4e9a6
<ide><path>src/core/fonts.js <ide> var nonStdFontMap = { <ide> 'MS-PMincho': 'MS PMincho', <ide> 'MS-PMincho-Bold': 'MS PMincho-Bold', <ide> 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic', <del> 'MS-PMincho-Italic': 'MS PMincho-Italic' <add> 'MS-PMincho-Italic': 'MS PMincho-Italic', <add> 'Wingdings': 'ZapfD...
1
Go
Go
fix some bashism's in dockerfiles
dbde4786e48531f095f9c3ecaff0f57b838abefc
<ide><path>integration-cli/docker_cli_build_test.go <ide> func (s *DockerSuite) TestBuildBuildTimeArgEnv(c *testing.T) { <ide> ARG FOO6 <ide> ARG FO10 <ide> RUN env <del> RUN [ "$FOO1" == "fromcmd" ] <del> RUN [ "$FOO2" == "" ] <del> RUN [ "$FOO3" == "fromenv" ] <del> RUN [ "$FOO4" == "fromfile" ] <del> RUN ...
1
Python
Python
remove unreachable code in test_user_command.py
6bed074b2dd55d6c80749626cb8986aa7d1ef362
<ide><path>tests/cli/commands/test_user_command.py <ide> def find_by_username(username): <ide> matches = [u for u in retrieved_users if u['username'] == username] <ide> if not matches: <ide> self.fail("Couldn't find user with username {}".format(username)) <del> re...
1
Mixed
Ruby
handle relations with having clauses in #include?
644d694dea8f1c58631f2ee7f1efc02ecf7bcf5c
<ide><path>activerecord/CHANGELOG.md <add>* Skip optimised #exist? query when #include? is called on a relation <add> with a having clause <add> <add> Relations that have aliased select values AND a having clause that <add> references an aliased select value would generate an error when <add> #include? wa...
3
Python
Python
run mypy once and cache the results
a6289b5c2b60b15371605ab95f5ed53dd60d7f14
<ide><path>numpy/typing/tests/test_typing.py <ide> MYPY_INI = os.path.join(DATA_DIR, "mypy.ini") <ide> CACHE_DIR = os.path.join(DATA_DIR, ".mypy_cache") <ide> <add>#: A dictionary with file names as keys and lists of the mypy stdout as values. <add>#: To-be populated by `run_mypy`. <add>OUTPUT_MYPY: Dict[str, List[str...
1
Text
Text
add scopes and scope descriptors docs
7d8b5bc1fcd7e7543d65653916efc37582310f66
<ide><path>docs/advanced/scopes-and-scope-descriptors.md <add># Scoped Settings, Scopes and Scope Descriptors <add> <add>Atom supports language-specific settings. You can soft wrap only markdown files, or set the tab length to 4 in python files. <add> <add>Language-specific settings are but a subset of something more g...
2
Ruby
Ruby
support nesting mailboxes in modules
622901636b417731e4239359feef7cf6943b8b3c
<ide><path>lib/action_mailbox/router/route.rb <ide> def match?(inbound_email) <ide> end <ide> <ide> def mailbox_class <del> "#{mailbox_name.to_s.capitalize}Mailbox".constantize <add> "#{mailbox_name.to_s.camelize}Mailbox".constantize <ide> end <ide> <ide> private <ide><path>test/unit/router_test.rb <ide...
2
Javascript
Javascript
replace var with let
cc6f99de449beb0993db3647de4ef979bead804d
<ide><path>lib/_tls_wrap.js <ide> function loadSession(hello) { <ide> ); <ide> const owner = this[owner_symbol]; <ide> <del> var once = false; <add> let once = false; <ide> function onSession(err, session) { <ide> debug('server resumeSession callback(err %j, sess? %s)', err, !!session); <ide> if (once)...
1
Go
Go
fix docker search problem
f04e8fdb9bbcdad28de5c328b7de3f3abdae0b5a
<ide><path>api/client/search.go <ide> func (cli *DockerCli) CmdSearch(args ...string) error { <ide> <ide> // Resolve the Repository name from fqn to hostname + name <ide> taglessRemote, _ := parsers.ParseRepositoryTag(name) <del> repoInfo, err := registry.ParseRepositoryInfo(taglessRemote) <add> <add> indexInfo, err...
4
PHP
PHP
contain the junction table when proxying finders
88af5c27fa59bc13f0e0fb36b68936a50363f708
<ide><path>src/ORM/Association/BelongsToMany.php <ide> function () use ($sourceEntity, $targetEntities, $options) { <ide> $sourceEntity->dirty($property, false); <ide> } <ide> <add> /** <add> * Proxies the finding operation to the target table's find method <add> * and modifies the query accordi...
2
Ruby
Ruby
prepare deprecations for the old bottle syntax
f68a3961c75fbc2dc2bd2b3fe0e67f70c981675f
<ide><path>Library/Homebrew/formula.rb <ide> def sha256(val) <ide> # <ide> # <pre>bottle do <ide> # root_url "https://example.com" # Optional root to calculate bottle URLs. <del> # cellar "/opt/homebrew/Cellar" # Optional HOMEBREW_CELLAR in which the bottles were built. <ide> # rebuild 1 # Mark...
2
PHP
PHP
ignore error reported by psalm
bb8c67cbb555804d684fee0b0427098e8a6ff061
<ide><path>src/Core/App.php <ide> public static function path(string $type, ?string $plugin = null): array <ide> } <ide> <ide> if ($type === 'templates') { <add> /** @psalm-suppress PossiblyNullArgument */ <ide> return [Plugin::templatePath($plugin)]; <ide> } <ide>
1
Ruby
Ruby
avoid extra array allocations
acbc0e0467e7d4b7075c7b2df6404d807ba7d06c
<ide><path>actionpack/lib/action_dispatch/middleware/debug_exceptions.rb <ide> def log_error(request, wrapper) <ide> message = [] <ide> message << " " <ide> message << "#{exception.class} (#{exception.message}):" <del> message += exception.annoted_source_code if exception.respond...
1
Javascript
Javascript
use jscs to check test helpers
3dee2983ab211bc9b1bdbf372b0ac002f7debb03
<ide><path>Gruntfile.js <ide> module.exports = function( grunt ) { <ide> jscs: { <ide> src: "src/**/*.js", <ide> gruntfile: "Gruntfile.js", <add> <add> // Right know, check only test helpers <add> test: [ "test/data/testrunner.js", "test/data/testinit.js" ], <ide> tasks: "build/tasks/*.js" <ide> }, <id...
3
Ruby
Ruby
clarify 10.10 xcode situation
f96c6e5c6c1c4ee86be783441ab682135636643c
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_installed_developer_tools <ide> end <ide> <ide> def check_xcode_up_to_date <del> if MacOS::Xcode.installed? && MacOS::Xcode.outdated? then <<-EOS.undent <add> if MacOS::Xcode.installed? && MacOS::Xcode.outdated? <add> s = <<-EOS.undent <ide> ...
1
PHP
PHP
fix tests for collection reverse
9611a25144f5bb23a72b75e7029fb0d1dd64a116
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testReverse() <ide> $data = new Collection(['zaeed', 'alan']); <ide> $reversed = $data->reverse(); <ide> <del> $this->assertEquals(['alan', 'zaeed'], array_values($reversed->all())); <add> $this->assertSame([1 => 'al...
1
Javascript
Javascript
remove unused createhierarchyrenderer
c848b65378ac15b5b98a1e486f76945e9a6426c1
<ide><path>src/test/createHierarchyRenderer.js <del>/** <del> * Copyright 2013-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An additional grant <del> * of patent ...
1
Python
Python
fix typo in test
314bdc7c14452862e4fa498e84a07c9a950b8980
<ide><path>tests/test_modeling_gpt2.py <ide> def test_lm_generate_gpt2(self): <ide> @slow <ide> def test_lm_generate_distilgpt2(self): <ide> model = GPT2LMHeadModel.from_pretrained("distilgpt2") <del> input_ids = torch.tensor([[463, 1893]], dtype=torch.long, device=torch_device) # The president ...
1
Javascript
Javascript
fix function declaration in if statement
3c3c30a19a25fd542861e97f197d22b8f4c586de
<ide><path>.eslintrc.js <ide> module.exports = { <ide> 'indent': [ERROR, 2, {SwitchCase: 1}], <ide> 'jsx-quotes': [ERROR, 'prefer-double'], <ide> 'no-bitwise': OFF, <add> 'no-inner-declarations': [ERROR, 'functions'], <ide> 'no-multi-spaces': ERROR, <ide> 'no-restricted-syntax': [ERROR, 'WithStat...
3
Text
Text
add restart-policies to 'run reference'
8833779ae0384f3f9a995f94e42478451107a5ed
<ide><path>docs/sources/reference/commandline/cli.md <ide> application change: <ide> <ide> #### Restart Policies <ide> <del>Using the `--restart` flag on Docker run you can specify a restart policy for <del>how a container should or should not be restarted on exit. <del> <del>An ever increasing delay (double the prev...
2
Ruby
Ruby
add rdoc document for array#forty_two
3f79d8423078f0671c8aa505ae199608d451663d
<ide><path>activesupport/lib/active_support/core_ext/array/access.rb <ide> def fifth <ide> end <ide> <ide> # Equal to <tt>self[41]</tt>. Also known as accessing "the reddit". <add> # <add> # (1..42).to_a.forty_two # => 42 <ide> def forty_two <ide> self[41] <ide> end
1
Javascript
Javascript
expose correct dispose method
1bceadf0944c9d91e0de059fd7d08f2a98d17eed
<ide><path>src/js/exports.js <ide> goog.exportSymbol('videojs.options', vjs.options); <ide> goog.exportSymbol('videojs.cache', vjs.cache); <ide> <ide> goog.exportSymbol('videojs.Component', vjs.Component); <del>goog.exportProperty(vjs.Component.prototype, 'dispose', vjs.Component.prototype.dispose); <add>//goog.export...
3
Java
Java
fix malformed javadoc
4500bf7661493aa236510a4151cd58f7af66e9dd
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/tags/MessageTag.java <ide> * message. Thus, this tag can also be used for HTML escaping of any texts. <ide> * <ide> * <p>Message arguments can be specified via the {@link #setArguments(Object) arguments} <del> * attribute or by using nested {@cod...
2
Go
Go
allocate subnets in order rather than restarting
cc8b2cac28ed34523cd18ee3a25ca599968ed7a0
<ide><path>libnetwork/ipam/allocator.go <ide> const ( <ide> // Allocator provides per address space ipv4/ipv6 book keeping <ide> type Allocator struct { <ide> // Predefined pools for default address spaces <del> predefined map[string][]*net.IPNet <add> // Separate from the addrSpace because they should not be serializ...
1
Ruby
Ruby
use a case statement
deb65a959d6b1a8434b0304f6389a6e8065d1e25
<ide><path>Library/Homebrew/extend/ENV/super.rb <ide> def determine_path <ide> <ide> # Homebrew's apple-gcc42 will be outside the PATH in superenv, <ide> # so xcrun may not be able to find it <del> if self['HOMEBREW_CC'] == 'gcc-4.2' <del> apple_gcc42 = begin <del> Formulary.factory('apple-gcc42...
1
Text
Text
add solution to accessibility challenge
bad8846e043fb3dbfdf5655e42aafeb2cb09fa4c
<ide><path>curriculum/challenges/english/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.english.md <ide> tests: <ide> ## Solution <ide> <section id='solution'> <ide> <del>```js <del>// solution required <add>```html <add><img src="doingKarateWow.jpeg...
1
Text
Text
remove link to discuss forum
b9e954548aafcd44c421770a07cca976cccebe93
<ide><path>README.md <ide> repeat these steps to upgrade to future releases. <ide> <ide> ## Discussion <ide> <del>* Discuss Atom on our [forums](https://discuss.atom.io/) or on [GitHub Discussions](https://github.com/atom/atom/discussions) <add>* Discuss Atom on [GitHub Discussions](https://github.com/atom/atom/discu...
1
Ruby
Ruby
move the coders to the serialized_attributes hash
a6cf6ec98b58dc2a7d0586ccb6ef970d93f0bafc
<ide><path>activerecord/lib/active_record/attribute_methods/read.rb <ide> def unserializable_attribute?(attr_name, column) <ide> <ide> # Returns the unserialized object of the attribute. <ide> def unserialize_attribute(attr_name) <del> unserialized_object = object_from_yaml(@attributes[attr_name]) <...
4
Text
Text
add contributor agreement for jmargeta
ed1c37189af25519c45d375fb7b67453a93b5cdb
<ide><path>.github/contributors/jmargeta.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <...
1
Text
Text
add links to tools, grammar fixes.
15b14afe53448982d9e8fbe773fee12ba57d8c10
<ide><path>guide/english/electron/index.md <ide> can build desktop apps for Windows, Mac, and most common flavors of Linux. <ide> <ide> ### What is Electron, exactly? <ide> <del>Electron is actually built on two technologies: Node.js (or simply Node) and Chromium (the open-sourced version of Google Chrome). You use w...
1
PHP
PHP
add an interface for the application
955885a05c54750d3d01b7cd158eb23ef47d8e38
<ide><path>src/Console/CommandRunner.php <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Console\Shell; <ide> use Cake\Event\EventManagerTrait; <del>use Cake\Http\BaseApplication; <add>use Cake\Core\ApplicationInterface; <ide> use Cake\Shell\HelpShell; <ide> use Cake\Shell\VersionShell; <ide> use Runtime...
4
Ruby
Ruby
fix use of select!
f9917768a9cfd136c80e807bb4e5e6b32bd35097
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def formula formula_name <ide> changed_dependences = dependencies - unchanged_dependencies <ide> <ide> dependents = `brew uses #{formula_name}`.split("\n") <del> testable_dependents = dependents.map {|d| Formulary.factory(d)} <del> testable_depend...
1
Javascript
Javascript
add extra test cases for new `pretty` behaviour
7daf4e01253258fa3525b6a0f3ace9f2b4224619
<ide><path>test/AngularSpec.js <ide> describe('angular', function() { <ide> }); <ide> <ide> <del> it('should format objects pretty', function() { <add> iit('should format objects pretty', function() { <ide> expect(toJson({a: 1, b: 2}, true)). <del> toBeOneOf('{\n "a": 1,\n "b": 2\n}', '{\n ...
1
PHP
PHP
remove additional line
094879204c1ed887337bf67294062d68b5e20ef8
<ide><path>src/Illuminate/Routing/ResourceRegistrar.php <ide> public function register($name, $controller, array $options = []) <ide> return; <ide> } <ide> <del> <ide> // We need to extract the base resource from the resource name. Nested resources <ide> // are supported in the fram...
1
Ruby
Ruby
apply suggestions from code review
5b3530b23de9beff1eb8bf68ab77832b9a219aaa
<ide><path>Library/Homebrew/test/dev-cmd/audit_spec.rb <ide> class Foo < Formula <ide> RUBY <ide> <ide> fa.audit_license <del> p fa.problems <ide> expect(fa.problems.first).to match "No license specified for package." <ide> end <ide> <ide><path>Library/Homebrew/utils/github.rb <id...
2
Text
Text
fix typo in diagnostics_channel
37115034dded06f54876a3b4784c5c478e8b65e1
<ide><path>doc/api/diagnostics_channel.md <ide> added: <ide> --> <ide> <ide> The class `Channel` represents an individual named channel within the data <del>pipeline. It is use to track subscribers and to publish messages when there <add>pipeline. It is used to track subscribers and to publish messages when there <ide...
1
PHP
PHP
remove unneeded psalm annotations
c45956873b43a171dfce0dc38f088480a564492d
<ide><path>src/Database/Driver/Sqlserver.php <ide> public function connect(): bool <ide> ]; <ide> <ide> if (!empty($config['encoding'])) { <del> /** @psalm-suppress UndefinedConstant */ <ide> $config['flags'][PDO::SQLSRV_ATTR_ENCODING] = $config['encoding']; <ide> } <ide>...
2
Text
Text
add notice about getinitialprops
2c85b367ce5d3fa5da88914570fab654d722a295
<ide><path>README.md <ide> Notice that to load data when the page loads, we use `getInitialProps` which is <ide> <ide> For the initial page load, `getInitialProps` will execute on the server only. `getInitialProps` will only be executed on the client when navigating to a different route via the `Link` component or usi...
1
Ruby
Ruby
fix behavior of handling bc era dates
f4bd67b687ba1a2a6f907939ea44717b41a505e1
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/date_time.rb <ide> def cast_value(value) <ide> when 'infinity' then ::Float::INFINITY <ide> when '-infinity' then -::Float::INFINITY <ide> when / BC$/ <del> super("-" + value.sub(/ BC$/,...
3
Javascript
Javascript
remove unneeded declare
b977cf13c4ddb9a26a91c38eb6b99b5a51f767a6
<ide><path>src/isomorphic/hooks/ReactComponentTreeHook.js <ide> function isNative(fn) { <ide> } <ide> } <ide> <del>type Item = { // eslint-disable-line no-unused-vars <del> element: ReactElement, <del> parentID: DebugID, <del> text: ?string, <del> childIDs: Array<DebugID>, <del> isMounted: bool, <del> updateCo...
1
Javascript
Javascript
remove ambiguous error messages from test_error
094d92bb57207fbc184bf15ef83591416333f1cf
<ide><path>test/addons-napi/test_error/test.js <ide> common.expectsError( <ide> <ide> let error = test_error.createError(); <ide> assert.ok(error instanceof Error, 'expected error to be an instance of Error'); <del>assert.strictEqual(error.message, 'error', 'expected message to be "error"'); <add>assert.strictEqual(er...
1
Ruby
Ruby
remove unused connectionfailed exception
ed6949b2d76f881ede33fc6c21c75de0d01bde56
<ide><path>activerecord/lib/active_record/base.rb <ide> class AdapterNotFound < ActiveRecordError # :nodoc: <ide> end <ide> class ConnectionNotEstablished < ActiveRecordError #:nodoc: <ide> end <del> class ConnectionFailed < ActiveRecordError #:nodoc: <del> end <ide> class RecordNotFound < ActiveRecordError #...
1
Ruby
Ruby
decrease string allocations in apply_inflections
1bf50badd943e684a56a03392ef0ddafefca0ad7
<ide><path>activesupport/lib/active_support/inflector/inflections.rb <ide> module Inflector <ide> class Inflections <ide> @__instance__ = ThreadSafe::Cache.new <ide> <add> class Uncountables < Array <add> def initialize <add> @regex_array = [] <add> super <add> end <add> ...
2
PHP
PHP
add tests for datetime container type
1b4ec6684cc025e5eb47fb9a10cdfc366ea57679
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testInputContainerTemplates() { <ide> 'checkboxContainer' => '<div class="check">{{content}}</div>', <ide> 'radioContainer' => '<div class="rad">{{content}}</div>', <ide> 'radioContainerError' => '<div class="rad err">{{content}}</d...
1
Go
Go
add getidinrange api in idm package
cbe520b62cc94410ca0cef503a79af8e08d0ef58
<ide><path>libnetwork/idm/idm.go <ide> func (i *Idm) GetSpecificID(id uint64) error { <ide> return i.handle.Set(id - i.start) <ide> } <ide> <add>// GetIDInRange returns the first available id in the set within a range <add>func (i *Idm) GetIDInRange(start, end uint64) (uint64, error) { <add> if i.handle == nil { <add...
1
Ruby
Ruby
remove deprecatedconstanttomethodproxy again
d897acfbb11aaa2d7f3138e1f9772546ecb6f981
<ide><path>activesupport/lib/active_support/deprecation.rb <ide> def warn(callstack, called, args) <ide> ActiveSupport::Deprecation.warn("#{@old_const} is deprecated! Use #{@new_const} instead.", callstack) <ide> end <ide> end <del> <del> class DeprecatedConstantToMethodProxy < DeprecationProxy...
1
Text
Text
add mathjax syntax in project euler problem 326
124b8944cd7bd2ce5218d3453c92305f8b03a97e
<ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-326-modulo-summations.md <ide> dashedName: problem-326-modulo-summations <ide> <ide> # --description-- <ide> <del>Let an be a sequence recursively defined by: $a_1 = 1$, $\displaystyle a_n = \left(\sum_{k = 1}^{n - 1} k \times a_k...
1
PHP
PHP
fix failing test in router
f8a72c95cf729c9ffaad42daab29b68daa61b121
<ide><path>lib/Cake/Routing/Router.php <ide> public static function url($url = null, $options = array()) { <ide> list($full, $options) = array($options, array()); <ide> } <ide> $urlType = gettype($url); <del> $hasColonSlash = $hasLeadingSlash = $plainString = false; <add> $hasLeadingSlash = $plainString = fals...
1
Mixed
Text
enforce alphabetical order for md refs
7794d36a372b7cb448f5a637765a8fe2e1431d95
<ide><path>doc/api/inspector.md <ide> session.post('HeapProfiler.takeHeapSnapshot', null, (err, r) => { <ide> }); <ide> ``` <ide> <del>[`'Debugger.paused'`]: https://chromedevtools.github.io/devtools-protocol/v8/Debugger#event-paused <del>[`session.connect()`]: #inspector_session_connect <ide> [CPU Profiler]: https://...
17
Java
Java
fix javadoc glitch
b2d67914a8c908af1ff4ef2c45d2ce1b21f6fe7e
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/ParameterizedRowMapper.java <ide> * @since 2.0 <ide> * @see org.springframework.jdbc.core.simple.SimpleJdbcOperations <ide> * @deprecated along with {@link SimpleJdbcTemplate}, in favor of the regular <del> * {@link org.springframework.jdbc.co...
1
Python
Python
add setupscons.py for pure python packages
2bcb222f37f7c4912ee6e5f99c75e25beceb7de7
<ide><path>numpy/distutils/setupscons.py <add>#!/usr/bin/env python <add> <add>def configuration(parent_package='',top_path=None): <add> from numpy.distutils.misc_util import Configuration <add> config = Configuration('distutils',parent_package,top_path) <add> config.add_subpackage('command') <add> config.a...
4
Text
Text
add v1.2.3 changes
7ab5098c14ee4f195dbfe2681e402fe2dfeacd78
<ide><path>CHANGELOG.md <add><a name="1.2.3"></a> <add># 1.2.3 unicorn-zapper (2013-11-27) <add> <add> <add>## Bug Fixes <add> <add>- **$animate:** <add>- ensure blocked keyframe animations are unblocked before the DOM operation <add> ([2efe8230](https://github.com/angular/angular.js/commit/2efe82309ac8ff4f67df8b6e40a...
1
Ruby
Ruby
reduce some noise
a6df701fad516a1da54ea245fb47826d47dc03b5
<ide><path>Library/Homebrew/dev-cmd/tests.rb <ide> def tests <ide> ENV["HOMEBREW_DEVELOPER"] = "1" <ide> ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat" <ide> ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if ARGV.include? "--generic" <del> ENV["HOMEBREW_NO_GITHUB_API"] = "1" unless ARGV.in...
7
Javascript
Javascript
remove unused argument
0511c0ae4a5f18b81b3c64ad31f15dbfd8ba3a38
<ide><path>src/text-editor-registry.js <ide> export default class TextEditorRegistry { <ide> <ide> let currentScore = this.editorGrammarScores.get(editor) <ide> if (currentScore == null || score > currentScore) { <del> editor.setGrammar(grammar, score) <add> editor.setGrammar(grammar)...
1
Javascript
Javascript
fix failing autobind test on ie
d304b0c3df41b3b1e67c2b9d56c02dc95194512d
<ide><path>test/AngularSpec.js <ide> describe('angular', function(){ <ide> } <ide> <ide> angularInit({autobind: 'child'}, dom); <add> <add> delete dom.getElementById; //make IE and sortedHtml happy <add> <ide> expect(sortedHtml(dom)).toEqual('<div foo="{{1+2}}">{{2+3}}' + <ide> ...
1
Javascript
Javascript
add pnpapi as builtin
f8fdc19c7147bd12a8a9555c60862c76360adafe
<ide><path>lib/node/NodeTargetPlugin.js <ide> const builtins = [ <ide> "vm", <ide> "wasi", <ide> "worker_threads", <del> "zlib" <add> "zlib", <add> <add> // cspell:word pnpapi <add> // Yarn PnP adds pnpapi as "builtin" <add> "pnpapi" <ide> ]; <ide> <ide> class NodeTargetPlugin {
1
Go
Go
remove duplicate package godoc
775dcab7a2c0898971268a57b1351b4424f6087e
<ide><path>pkg/parsers/kernel/kernel_unix.go <ide> //go:build linux || freebsd || openbsd <ide> // +build linux freebsd openbsd <ide> <del>// Package kernel provides helper function to get, parse and compare kernel <del>// versions for different platforms. <ide> package kernel // import "github.com/docker/docker/pkg/p...
1
Python
Python
use ncw/nwc for conv1d data format in tf backend
9c689775a22f9e8647207eeae012978048d44bed
<ide><path>keras/backend/tensorflow_backend.py <ide> def _preprocess_conv1d_input(x, data_format): <ide> """ <ide> if dtype(x) == 'float64': <ide> x = tf.cast(x, 'float32') <del> tf_data_format = 'NHWC' # to pass TF Conv2dNative operations <add> tf_data_format = 'NWC' # to pass TF Conv2dNative o...
1