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
pull shared behavior into superclass
d476a84f4f1829cff818d18458d77f17c698fc92
<ide><path>Library/Homebrew/formulary.rb <ide> class FormulaLoader <ide> attr_reader :path <ide> <ide> # Gets the formula instance. <del> # Subclasses must define this. <del> def get_formula; end <add> def get_formula <add> klass.new(name, path) <add> end <ide> <ide> # Return the Class fo...
1
Javascript
Javascript
remove stream.pause/resume calls
81e356279dcd37fda20d827fbab3550026e74c63
<ide><path>lib/child_process.js <ide> var handleConversion = { <ide> 'net.Socket': { <ide> send: function(message, socket) { <ide> // pause socket so no data is lost, will be resumed later <del> socket.pause(); <ide> <ide> // if the socket wsa created by net.Server <ide> if (socket.server)...
1
Java
Java
add ifpresent utility methods on runtimehints
d6d4b98780132fff58ba610d2cde53419d32ce4a
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/ReflectionHints.java <ide> <ide> import org.springframework.aot.hint.TypeHint.Builder; <ide> import org.springframework.lang.Nullable; <add>import org.springframework.util.ClassUtils; <ide> <ide> /** <ide> * Gather the need for reflection at runtime. ...
4
Ruby
Ruby
remove unused requires
8189abc1f23b78e4cad3857848a1333fd77eca37
<ide><path>activerecord/test/cases/serialized_attribute_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "cases/helper" <del>require "models/topic" <ide> require "models/person" <ide> require "models/traffic_light" <ide> require "models/post" <del>require "bcrypt" <ide> <ide> class SerializedAttributeT...
1
Javascript
Javascript
add promise support to asyncstorage
2aa52880b73af86daa069232fb38ad2249568ec1
<ide><path>Examples/UIExplorer/AsyncStorageExample.js <ide> var COLORS = ['red', 'orange', 'yellow', 'green', 'blue']; <ide> <ide> var BasicStorageExample = React.createClass({ <ide> componentDidMount() { <del> AsyncStorage.getItem(STORAGE_KEY, (error, value) => { <del> if (error) { <del> this._append...
2
Javascript
Javascript
add .tojson to bufferattribute
672258ec1dcaf18a809d1b2b52628540f1290ee7
<ide><path>src/core/BufferAttribute.js <ide> Object.assign( BufferAttribute.prototype, { <ide> <ide> return new this.constructor( this.array, this.itemSize ).copy( this ); <ide> <add> }, <add> <add> toJSON: function() { <add> <add> return { <add> itemSize: this.itemSize, <add> type: this.array.constructor.name...
3
Text
Text
fix url example to match behavior
3b1baf63722b34c75e75d2e9f0f21e867e113332
<ide><path>doc/api/url.md <ide> const myURL = new URL('https://%CF%80.example.com/foo'); <ide> console.log(myURL.href); <ide> // Prints https://xn--1xa.example.com/foo <ide> console.log(myURL.origin); <del>// Prints https://π.example.com <add>// Prints https://xn--1xa.example.com <ide> ``` <ide> <ide> [`Error`]: error...
1
Javascript
Javascript
support multiple `setstate` invocation
2264e3d04401fc15192a253baaf0ad923096f4b8
<ide><path>src/renderers/testing/ReactShallowRendererEntry.js <ide> class Updater { <ide> } <ide> <ide> enqueueSetState(publicInstance, partialState, callback, callerName) { <add> const currentState = this._renderer._newState || publicInstance.state; <add> <ide> if (typeof partialState === 'function') { <de...
2
Javascript
Javascript
fill more gaps for format 6 dense array
a772c9a2e2c40abdc52aa266fc67b4ecfaa3ea00
<ide><path>fonts.js <ide> var Font = (function () { <ide> var firstCode = FontsUtils.bytesToInteger(font.getBytes(2)); <ide> var entryCount = FontsUtils.bytesToInteger(font.getBytes(2)); <ide> <del> // Since Format 6 is a dense array, check for gaps in the indexes <del> //...
1
Javascript
Javascript
remove unused parameters
130aa3fd18ff20eefb9c1b8c8c29f7a1f0900820
<ide><path>packages/next/client/page-loader.js <ide> export default class PageLoader { <ide> } <ide> <ide> if (document.readyState === 'complete') { <del> return this.loadPage(route).catch((e) => {}) <add> return this.loadPage(route).catch(() => {}) <ide> } else { <del> return new Promise((r...
1
Python
Python
fix version comparison bug on py25
909010af44d3cab2066bfe02a916a36fe1040e54
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def __init__ (self, <ide> # bad consequences, like using Py_ModuleInit4 instead of <ide> # Py_ModuleInit4_64, etc... So we add it here <ide> if get_build_architecture() == 'AMD64': <del> if self.gcc_version < "4.": <add> ...
1
Javascript
Javascript
reset handle index on close
0c294362502684b9273e7e7c7039ec7028471014
<ide><path>lib/cluster.js <ide> function workerInit() { <ide> <ide> // obj is a net#Server or a dgram#Socket object. <ide> cluster._getServer = function(obj, options, cb) { <del> const key = [ options.address, <del> options.port, <del> options.addressType, <del> opti...
3
Ruby
Ruby
improve inspect output for dependency collections
1a1f9aa323ae03ac59ae5ba4c006ef459a586b68
<ide><path>Library/Homebrew/dependencies.rb <ide> def ==(other) <ide> deps == other.deps <ide> end <ide> alias_method :eql?, :== <add> <add> def inspect <add> "#<#{self.class.name}: #{to_a.inspect}>" <add> end <ide> end <ide> <ide> class Requirements
1
Java
Java
fix failing test
8edbdf4ddb144cc4abd5e8cdf14d99c9732f6d4d
<ide><path>spring-websocket/src/test/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapterTests.java <ide> package org.springframework.web.socket.adapter.jetty; <ide> <ide> import org.eclipse.jetty.websocket.api.Session; <add>import org.eclipse.jetty.websocket.api.UpgradeRequest; <add>import o...
1
Javascript
Javascript
restore only the contents of the challenge files
003492cd7c9c7d35e715907bab33085bf4d19093
<ide><path>client/src/templates/Challenges/redux/code-storage-epic.js <ide> function loadCodeEpic(action$, state$) { <ide> <ide> const codeFound = getCode(id); <ide> if (codeFound && isFilesAllPoly(codeFound)) { <del> finalFiles = codeFound; <add> finalFiles = { <add> ...fileKeys.map...
1
Ruby
Ruby
fix false flag handling
c6cddacc5ef10703db87b277158548f3959085f1
<ide><path>Library/Homebrew/utils/curl.rb <ide> def curl_http_content_headers_and_checksum( <ide> file = Tempfile.new.tap(&:close) <ide> <ide> specs = specs.flat_map do |option, argument| <del> next if argument == false # No flag. <add> next [] if argument == false # No flag. <ide> <ide> ...
1
Go
Go
fix merge issue
b438565609917439cb4172717e5505c265c4e291
<ide><path>commands.go <ide> func (cli *DockerCli) CmdHelp(args ...string) error { <ide> return nil <ide> } <ide> } <del> help := fmt.Sprintf("Usage: docker [OPTIONS] COMMAND [arg...]\n -H=\"%s:%d\": Host:port to bind/connect to\n\nA self-sufficient runtime for linux containers.\n\nCommands:\n", cli.addr, cli.po...
2
Python
Python
allow dynamic backends in _need_convert_kernel
d7884570b10951d156aa086ee29a4df9eab79cf3
<ide><path>keras/applications/nasnet.py <ide> def NASNet(input_shape=None, <ide> RuntimeError: If attempting to run this model with a <ide> backend that does not support separable convolutions. <ide> ''' <del> if K.backend() != 'tensorflow': <add> if K.backend() in ['cntk', 'theano']: <ide...
2
Text
Text
update readme - fix example command distil*
fa735208c96c18283b8d2f3fcbfc3157bbd12b1e
<ide><path>examples/distillation/README.md <ide> python train.py \ <ide> --student_config training_configs/distilbert-base-uncased.json \ <ide> --teacher_type bert \ <ide> --teacher_name bert-base-uncased \ <del> --alpha_ce 5.0 --alpha_mlm 2.0 --alpha_cos 1.0 --mlm \ <add> --alpha_ce 5.0 --alpha_mlm 2...
1
Ruby
Ruby
fix missing dependency
eeac054d59dd9373313596dc3ef9db30c4b227d5
<ide><path>activesupport/test/core_ext/string_ext_test.rb <ide> <ide> require 'active_support/core_ext/string' <ide> require 'active_support/core_ext/time' <add>require 'active_support/core_ext/kernel/reporting' <ide> <ide> class StringInflectionsTest < Test::Unit::TestCase <ide> include InflectorTestCases
1
PHP
PHP
update doc block for logserviceprovider
2167722748982e0124082f9f7a54795b6eb66e1c
<ide><path>app/Providers/LogServiceProvider.php <ide> class LogServiceProvider extends ServiceProvider { <ide> /** <ide> * Configure the application's logging facilities. <ide> * <add> * @param \Illuminate\Contracts\Logging\Log $log <ide> * @return void <ide> */ <ide> public function boot(Log $log)
1
Text
Text
fix broken link.
fdd3ede6aa8e3678d3034d8b4e347819de7707ee
<ide><path>docs/axes/labelling.md <ide> The method receives 3 arguments: <ide> <ide> * `value` - the tick value in the **internal data format** of the associated scale. <ide> * `index` - the tick index in the ticks array. <del>* `ticks` - the array containing all of the [tick objects](../api/interfaces/tick). <add>* `...
1
Javascript
Javascript
convert the `viewhistory` to an es6 class
16b4132ebfe348462b34e7f740524bde80de54d4
<ide><path>web/view_history.js <ide> * limitations under the License. <ide> */ <ide> <del>var DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20; <add>const DEFAULT_VIEW_HISTORY_CACHE_SIZE = 20; <ide> <ide> /** <ide> * View History - This is a utility for saving various view parameters for <ide> var DEFAULT_VIEW_HISTORY_CACHE_S...
1
Javascript
Javascript
use regular expressions in throw assertions
e6eb5c00dada92754a4d1c33e52fae70047d1b59
<ide><path>test/addons-napi/test_constructor/test.js <ide> assert.strictEqual(test_object.readwriteValue, 1); <ide> test_object.readwriteValue = 2; <ide> assert.strictEqual(test_object.readwriteValue, 2); <ide> <del>assert.throws(() => { test_object.readonlyValue = 3; }, TypeError); <add>assert.throws(() => { test_obj...
1
PHP
PHP
create a new "crossjoin" method
4eb16f030d00f34d5086aac4a6f42d00f035b5e5
<ide><path>src/Illuminate/Support/Arr.php <ide> public static function collapse($array) <ide> return $results; <ide> } <ide> <add> /** <add> * Cross join the given arrays, returning all possible permutations. <add> * <add> * @param array ...$arrays <add> * @return array <add> */ <a...
4
PHP
PHP
allow negative condition in presence verifier
e0c7d76bbbc829c4069bf142fe5d56545252b99e
<ide><path>src/Illuminate/Validation/DatabasePresenceVerifier.php <ide> <ide> namespace Illuminate\Validation; <ide> <add>use Illuminate\Support\Str; <ide> use Illuminate\Database\ConnectionResolverInterface; <ide> <ide> class DatabasePresenceVerifier implements PresenceVerifierInterface <ide> protected function add...
2
Ruby
Ruby
use applescript to check if gui apps are running
d8afed206fc782a1411f1d9dfb5813caa9167670
<ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb <ide> def running_processes(bundle_id) <ide> # :quit/:signal must come before :kext so the kext will not be in use by a running process <ide> def uninstall_quit(*bundle_ids, command: nil, **_) <ide> bundle_ids.each do |bundle_id| <del> ...
2
Python
Python
add char classes to global language data
604f299cf6398fa490acc48c55f7999e935283ac
<ide><path>spacy/lang/char_classes.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import regex as re <add> <add> <add>re.DEFAULT_VERSION = re.VERSION1 <add>merge_char_classes = lambda classes: '[{}]'.format('||'.join(classes)) <add>split_chars = lambda char: list(char.strip().split(' '))...
1
Javascript
Javascript
use msie instead of $document[0].documentmode
45252c3a545336a0bac93be6ee28cde6afaa3cb4
<ide><path>src/ng/sce.js <ide> function $SceProvider() { <ide> $document, $parse, $sceDelegate) { <ide> // Prereq: Ensure that we're not running in IE<11 quirks mode. In that mode, IE < 11 allow <ide> // the "expression(javascript expression)" syntax which is insecure. <del> if (enabled ...
3
Java
Java
remove outdated documentation in @reflective
1f0a35bacc8c35b75c72cc53b7f842c569eb9165
<ide><path>spring-core/src/main/java/org/springframework/aot/hint/annotation/Reflective.java <ide> * the annotated element. By default, a reflection hint is added on the <ide> * annotated element so that it can be discovered and invoked if necessary. <ide> * <del> * <p>A reflection hint is also added if necessary on...
1
Java
Java
remove redundant collections.unmodifiablelist()
3fa4e4168d4562f0b59a324ef6f06a7d32f4a196
<ide><path>spring-web/src/main/java/org/springframework/web/cors/CorsConfiguration.java <ide> public class CorsConfiguration { <ide> /** Wildcard representing <em>all</em> origins, methods, or headers. */ <ide> public static final String ALL = "*"; <ide> <del> private static final List<String> ALL_LIST = Collections...
1
Javascript
Javascript
use frombufferattribute
793f66f41c7eb7d5622cc357a681eae9a3ec68cc
<ide><path>examples/jsm/exporters/OBJExporter.js <ide> class OBJExporter { <ide> <ide> for ( let i = 0, l = vertices.count; i < l; i ++, nbVertex ++ ) { <ide> <del> vertex.x = vertices.getX( i ); <del> vertex.y = vertices.getY( i ); <del> vertex.z = vertices.getZ( i ); <add> vertex.fromBufferAttri...
7
Python
Python
show listener info in the 'stats' control command
20c1fd67345bdcfcf60f15607cefd476c52f4b5a
<ide><path>celery/utils/info.py <ide> def format_queues(queues, indent=0): <ide> return textindent(info, indent=indent) <ide> <ide> <del>def get_broker_info(): <del> broker_connection = establish_connection() <add>def get_broker_info(broker_connection=None): <add> if broker_connection is None: <add> ...
3
Javascript
Javascript
run all fixtures through prettier
d04618b28b4faf0e512878d073a93a779d735f96
<ide><path>fixtures/art/VectorWidget.js <ide> * LICENSE file in the root directory of this source tree. An additional grant <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> */ <del>"use strict"; <add>'use strict'; <ide> <ide> var React = require('react'); <ide> var ReactART = r...
59
Java
Java
simplify string concatenation
29f382b04eda1c3b8cabb231bcb014395643c725
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/BeanDefinitionHolder.java <ide> public String getShortDescription() { <ide> * @see #getBeanDefinition() <ide> */ <ide> public String getLongDescription() { <del> StringBuilder sb = new StringBuilder(getShortDescription()); <del> sb.ap...
6
PHP
PHP
remove loadfixtures() when auto fixtures enabled
592ee6c180a98ebee14903b89d131882747b0c7f
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testWith(): void <ide> 'The current driver does not support window functions.' <ide> ); <ide> <del> $this->loadFixtures('Articles'); <del> <ide> $table = $this->getTableLocator()->get('Articles'); <ide> <ide> ...
1
PHP
PHP
apply global scopes on update/delete
c1b2a7b8887a3e28096ea3d4b36d8861a050e1f9
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function simplePaginate($perPage = null, $columns = ['*'], $pageName = 'p <ide> */ <ide> public function update(array $values) <ide> { <del> return $this->query->update($this->addUpdatedAtColumn($values)); <add> return $this...
1
Javascript
Javascript
remove usages of asynctest
e4f08b41f2b45f4970cbbe822d5a7079d7498bb8
<ide><path>packages/ember/tests/routing/basic_test.js <ide> QUnit.test('The loading state doesn\'t get entered for promises that resolve on <ide> assert.equal(jQuery('p', '#qunit-fixture').text(), '1', 'The app is now in the specials state'); <ide> }); <ide> <del>/* <del>asyncTest("The Special page returning an erro...
1
Text
Text
add v3.25.4 to changelog.md
d3a764c35b5363c180519cf3cf0e04e1cf44f75e
<ide><path>CHANGELOG.md <ide> - [#19405](https://github.com/emberjs/ember.js/pull/19405) [BUGFIX] Avoid instantiation errors when `app/router.js` injects the router service. <ide> - [#19436](https://github.com/emberjs/ember.js/pull/19436) [BUGFIX] Support observer keys with colons <ide> <add>### v3.25.4 (March 24, 202...
1
Javascript
Javascript
add ability to add conditions to ng-required
3245209bdb9e656622756220c5bbeb80d3ae2eac
<ide><path>src/widgets.js <ide> function compileValidator(expr) { <ide> function valueAccessor(scope, element) { <ide> var validatorName = element.attr('ng-validate') || NOOP, <ide> validator = compileValidator(validatorName), <del> required = element.attr('ng-required'), <add> requiredExpr = element....
2
Javascript
Javascript
note precedence when used with filters
42ec95ebae716c81087684b55ed8fa8c13888abc
<ide><path>src/ng/directive/ngInit.js <ide> * should use {@link guide/controller controllers} rather than `ngInit` <ide> * to initialize values on a scope. <ide> * </div> <add> * <div class="alert alert-warning"> <add> * **Note**: If you have assignment in `ngInit` along with {@link api/ng.$filter `$filter`}, make <...
1
Ruby
Ruby
fix #audit_head_branch error
942f419a48426d14a1b49d35f343cbe00a583e71
<ide><path>Library/Homebrew/resource_auditor.rb <ide> def audit_head_branch <ide> return if specs[:tag].present? <ide> <ide> branch = Utils.popen_read("git", "ls-remote", "--symref", url, "HEAD") <del> .match(%r{ref: refs/heads/(.*?)\s+HEAD})[1] <del> <del> return if branch == specs...
1
Javascript
Javascript
fix separator keys for layoutanimation
e8f9c442d6eb3f503234fd0b55a097db07e36fe1
<ide><path>Libraries/Lists/VirtualizedList.js <ide> class VirtualizedList extends React.PureComponent<OptionalProps, Props, State> { <ide> /> <ide> ); <ide> if (ItemSeparatorComponent && ii < end) { <del> cells.push(<ItemSeparatorComponent key={'sep' + ii}/>); <add> cells.push(<ItemSep...
1
Ruby
Ruby
prevent crash from nil exitstatus (#532)
b51283424321cb996d0a587e9a62a070d21f3342
<ide><path>Library/Homebrew/cmd/style.rb <ide> def check_style_impl(files, output_type, options = {}) <ide> !$?.success? <ide> when :json <ide> json = Utils.popen_read_text("rubocop", "--format", "json", *args) <del> # exit status of 1 just means violations were found; others are errors <del> ...
1
Javascript
Javascript
bring tagname regexes up to spec
fb9472c7fbf9979f48ef49aff76903ac130d0959
<ide><path>src/core/var/rsingleTag.js <ide> define( function() { <ide> <ide> // Match a standalone tag <del> return ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ ); <add> return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); <ide> } ); <ide><path>src/manipulation.js <ide> define( [ <ide> dataPriv, dataUs...
4
PHP
PHP
remove legacy factories
54f543a3005447f5af67b793afbec8d6c3ca056a
<ide><path>src/Illuminate/Database/Eloquent/Factory.php <del><?php <del> <del>namespace Illuminate\Database\Eloquent; <del> <del>use ArrayAccess; <del>use Faker\Generator as Faker; <del>use Symfony\Component\Finder\Finder; <del> <del>class Factory implements ArrayAccess <del>{ <del> /** <del> * The model definit...
3
Javascript
Javascript
fix irregular whitespace issue
d66f18e6cde8cadf20e3c4ddc85ec495546d1fb4
<ide><path>test/parallel/test-promises-unhandled-rejections.js <ide> asyncTest('Catching the Promise.all() of a collection that includes a' + <ide> 'rejected promise prevents unhandledRejection', function(done) { <ide> var e = new Error(); <ide> onUnhandledFail(done); <del> Promise.all([Promise.reject(e)...
1
Text
Text
fix typo s/create_at/created_at/ [ci skip]
e20654a12a3dc88c1a8e18ebf281bae9d06ec462
<ide><path>activerecord/CHANGELOG.md <ide> ``` <ide> <ide> From type casting and table/column name resolution's point of view, <del> `where("create_at >=": time)` is better alternative than `where("create_at >= ?", time)`. <add> `where("created_at >=": time)` is better alternative than `where("created_at...
1
Python
Python
fix typo for load array
9777b51ee2f898c176b6e7d2c9412eb7556bb60b
<ide><path>keras/utils/io_utils.py <ide> def save_array(array, name): <ide> <ide> def load_array(name): <ide> if tables is None: <del> raise ImportError('The use of `save_array` requires ' <add> raise ImportError('The use of `load_array` requires ' <ide> 'the tables module.'...
1
Text
Text
fix a typo in api.md
b62d444a37338596cd6f0dcc2058d2599fa1eeab
<ide><path>API.md <ide> Methods for computing basic summary statistics. <ide> * [d3.sum](https://github.com/d3/d3-array/blob/v2.12.0/README.md#sum) - compute the sum of an iterable of numbers. <ide> * [d3.mean](https://github.com/d3/d3-array/blob/v2.12.0/README.md#mean) - compute the arithmetic mean of an iterable of n...
1
Text
Text
update challengetype 11 to hidden
82a929681fb71214c3bdbdcbfed00454aa2c467a
<ide><path>curriculum/challenges/english/07-scientific-computing-with-python/python-for-everybody/build-your-own-functions.english.md <ide> id: 5e7b9f060b6c005b0e76f05b <ide> title: Build your own Functions <ide> challengeType: 11 <add>isHidden: true <ide> isRequired: true <ide> videoId: nLDychdBwUg <ide> --- <ide><pat...
136
Ruby
Ruby
remove 4 unroutable routes from actionmailbox
c9e48feef2e29f1a81250dabe0a7c52667886ea9
<ide><path>actionmailbox/config/routes.rb <ide> <ide> # TODO: Should these be mounted within the engine only? <ide> scope "rails/conductor/action_mailbox/", module: "rails/conductor/action_mailbox" do <del> resources :inbound_emails, as: :rails_conductor_inbound_emails <add> resources :inbound_emails, as: :r...
2
PHP
PHP
fix additional tests
8dc9715494a36dbe58ff242d105c9fed495fcd4e
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> class ValidateUsersTable extends Table { <ide> 'id' => array('type' => 'integer', 'null' => '', 'default' => '', 'length' => '8'), <ide> 'name' => array('type' => 'string', 'null' => '', 'default' => '', 'length' => '255'), <ide> 'email' => array('typ...
1
PHP
PHP
fix lint errors
87e41d14947dbb6a00d2e975c3371834d627f5e7
<ide><path>tests/TestCase/I18n/I18nTest.php <ide> public function tearDown() <ide> Plugin::unload(); <ide> Cache::clear(false, '_cake_core_'); <ide> } <del> <add> <ide> /** <ide> * Tests that the default locale is set correctly <ide> * <ide> * @return void <ide> */ <del> ...
1
PHP
PHP
add a test for overlapping aliases
fd701cc4fa1f39226372644f12e834ee10774e83
<ide><path>tests/TestCase/ORM/TableRegistryTest.php <ide> public function testGetPluginWithFullNamespaceName() <ide> $this->assertTrue(TableRegistry::exists('Comments'), 'Class name should exist'); <ide> } <ide> <add> /** <add> * Test get() with same-alias models in different plugins <add> * <ad...
2
Python
Python
update vocab init
d5155376fd7d913734507f0647ddd4d33c625bbe
<ide><path>spacy/cli/init_pipeline.py <ide> from wasabi import msg <ide> import typer <ide> from thinc.api import Config, fix_random_seed, set_gpu_allocator <add>import srsly <ide> <ide> from .. import util <del>from ..util import registry, resolve_dot_names <add>from ..util import registry, resolve_dot_names, OOV_RAN...
3
Go
Go
use imagestore.children instead of whole the map
1350e8b7b8025d73056b800963c001fb9619a85c
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) GetRemappedUIDGID() (int, int) { <ide> return uid, gid <ide> } <ide> <del>// ImageGetCached returns the earliest created image that is a child <add>// ImageGetCached returns the most recent created image that is a child <ide> // of the image with imgID, that had...
1
Text
Text
fix typographical issues
6f4721b7335f7f849c04af8c1158067eaf4ddae3
<ide><path>doc/api/synopsis.md <ide> An example of a [web server][] written with Node.js which responds with <ide> <ide> Commands displayed in this document are shown starting with `$` or `>` <ide> to replicate how they would appear in a user's terminal. <del>Do not include the `$` and `>` character they are there to ...
1
Text
Text
fix the sqlite gem name
700c6c65bcce17d4c61423ceaef031bcbe203337
<ide><path>guides/source/development_dependencies_install.md <ide> $ sudo yum install libxml2 libxml2-devel libxslt libxslt-devel <ide> <ide> If you have any problems with these libraries, you can install them manually by compiling the source code. Just follow the instructions at the [Red Hat/CentOS section of the Nok...
1
Go
Go
use consts for http methods
90aa0901da11582da7639cc1ab202260183799e0
<ide><path>api/server/router/local.go <ide> package router // import "github.com/docker/docker/api/server/router" <ide> <ide> import ( <add> "net/http" <add> <ide> "github.com/docker/docker/api/server/httputils" <ide> ) <ide> <ide> func NewRoute(method, path string, handler httputils.APIFunc, opts ...RouteWrapp <ide...
1
Javascript
Javascript
handle null or undefined
04234bd95a18f1ea1dbda0d5b9e26249ce369dfb
<ide><path>src/panel-container-element.js <ide> class PanelContainerElement extends HTMLElement { <ide> if (visible) { this.hideAllPanelsExcept(panel) } <ide> })) <ide> <del> if (panel.autoFocus !== false) { <add> if (panel.autoFocus) { <ide> const focusOptions = { <ide> // fo...
1
Python
Python
add test for fix to issue
d7ffaea9855834c6d1a51a788ff0e6ffbe929e01
<ide><path>numpy/ma/tests/test_core.py <ide> def test_masked_where_shape_constraint(self): <ide> test = masked_equal(a, 1) <ide> assert_equal(test.mask, [0, 1, 0, 0, 0, 0, 0, 0, 0, 0]) <ide> <add> def test_masked_where_structured(self): <add> # test that masked_where on a structured array set...
1
Python
Python
fix linting errors
5de0eb4ec44f5edc05b7ec31b6ecb67dd4b5acf6
<ide><path>libcloud/compute/drivers/dimensiondata.py <ide> def _to_firewall_address(self, element): <ide> port_list_id=port_list.get('id', None) <ide> if port_list is not None else None, <ide> address_list_id=address_list.get('id') <del> if address_list is ...
1
Text
Text
fix changelog [ci skip]
526e5e845a552abadf7e718ed1f1c5e0bf7c8876
<ide><path>railties/CHANGELOG.md <ide> * Remove deprecated `test:all` and `test:all:db` tasks. <ide> <add> *Rafael Mendonça França* <add> <ide> * Remove deprecated `Rails::Rack::LogTailer`. <ide> <ide> *Rafael Mendonça França*
1
Ruby
Ruby
pull construction of @clone into superclass
932091f9e0881ebbc26df08d98544298af1a6116
<ide><path>Library/Homebrew/download_strategy.rb <ide> class VCSDownloadStrategy < AbstractDownloadStrategy <ide> def initialize name, resource <ide> super <ide> @ref_type, @ref = destructure_spec_hash(resource.specs) <add> @clone = HOMEBREW_CACHE/cache_filename <ide> end <ide> <ide> def destructure_s...
1
Javascript
Javascript
add monitor module for logging instrumentation
eee04b19e1866fdf5fb40298dbbfe7804b691d26
<ide><path>src/browser/dom/DOMPropertyOperations.js <ide> var DOMProperty = require('DOMProperty'); <ide> <ide> var escapeTextForBrowser = require('escapeTextForBrowser'); <ide> var memoizeStringOnly = require('memoizeStringOnly'); <add>var warning = require('warning'); <ide> <ide> function shouldIgnoreValue(name, va...
8
Ruby
Ruby
pass strings to factory, not symbols
ad320c96fd7675ada7daa77b4975417109c4abbc
<ide><path>Library/Homebrew/cmd/irb.rb <ide> <ide> class Symbol <ide> def f <del> Formula.factory(self) <add> Formula.factory(self.to_s) <ide> end <ide> end <ide> class String
1
Java
Java
avoid expensive assertions in httprange
da557e741519f6d110bccd6f10e1f808c40d661b
<ide><path>spring-web/src/main/java/org/springframework/http/HttpRange.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this fil...
2
Javascript
Javascript
fix tests that got broken by a spelling change
377b36b263ed2e82b6ce4d8fa9bd0bafbbf7a71a
<ide><path>packages/ember-metal/tests/main_test.js <ide> QUnit.test('SEMVER_REGEX properly validates and invalidates version numbers', fu <ide> QUnit.test('Ember.keys is deprecated', function() { <ide> expectDeprecation(function() { <ide> Ember.keys({}); <del> }, 'Ember.keys is deprecated in-favour of Object.key...
1
Java
Java
fix faulty tests
897557fd1b14a169e017f262b5336b84da23369e
<ide><path>spring-orm/src/test/java/org/springframework/orm/jpa/support/OpenEntityManagerInViewTests.java <ide> package org.springframework.orm.jpa.support; <ide> <ide> import java.util.concurrent.Callable; <add>import java.util.concurrent.CountDownLatch; <add>import java.util.concurrent.TimeUnit; <ide> import java.ut...
1
Python
Python
add __len__ method to ma.mvoid; closes #576
216d8cbc46f808eeff1942b3a607afca427125f2
<ide><path>numpy/ma/core.py <ide> def __iter__(self): <ide> else: <ide> yield d <ide> <add> def __len__(self): <add> return self._data.__len__() <add> <ide> def filled(self, fill_value=None): <ide> """ <ide> Return a copy with masked fields filled with ...
2
Ruby
Ruby
add tests for fileutils call in system
7dfe09ccae5b1a8309326e5a5cb3172fbcd795d3
<ide><path>Library/Homebrew/rubocops/lines_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "Dir([\"#{string_content(path)}\"]) is unnecessary; just use \"#{match[0]}\"" <ide> end <ide> <del> # <del> # fileUtils_methods= FileUtils.s...
2
Python
Python
fix text preprocessing test
69932604f9b9ecd6bf63af60aaf4b2b854759d56
<ide><path>tests/keras/preprocessing/test_text.py <ide> def test_tokenizer(): <ide> texts = ['The cat sat on the mat.', <ide> 'The dog sat on the log.', <ide> 'Dogs and cats living together.'] <del> tokenizer = Tokenizer(nb_words=20) <add> tokenizer = Tokenizer(nb_words=10) <ide> ...
1
Javascript
Javascript
transfer defaultwidth for files without the file
a0ef97fb6044c6028b7ca4b63a4cd884d9181933
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> // name ArialBlack for example will be replaced by Helvetica. <ide> this.black = (name.search(/Black/g) != -1); <ide> <add> this.defaultWidth = properties.defaultWidth; <ide> this.loadedName = fontName.split('-')[0]; <ide> this....
1
PHP
PHP
remove api shell
78284801c36fb3ada9a2ce4594f81200d9d8963a
<ide><path>Cake/Console/Command/ApiShell.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, plea...
4
Ruby
Ruby
remove obsolete method, add migrate_taps
171c3dd2d9cba6b7da8f1a97667a437ea1776c4b
<ide><path>Library/Homebrew/cmd/prune.rb <ide> def prune <ide> end <ide> end <ide> <del> repair_taps(false) unless ARGV.dry_run? <add> migrate_taps :force => true unless ARGV.dry_run? <ide> <ide> if ObserverPathnameExtension.total.zero? <ide> puts "Nothing pruned" if ARGV.verbose? <ide><path...
4
Text
Text
fix the lint of an example in cluster.md
8637c27b7754e2f7527e8eee9b3243ddce68f2c7
<ide><path>doc/api/cluster.md <ide> Similar to the `cluster.on('exit')` event, but specific to this worker. <ide> ```js <ide> const worker = cluster.fork(); <ide> worker.on('exit', (code, signal) => { <del> if( signal ) { <add> if (signal) { <ide> console.log(`worker was killed by signal: ${signal}`); <del> } el...
1
Javascript
Javascript
add querystring test for hasownproperty usage
b3af074a0258aa6694bec8eabfc04d2871be57b9
<ide><path>test/simple/test-querystring.js <ide> var qsTestCases = [ <ide> [' foo = bar ', '%20foo%20=%20bar%20', {' foo ': ' bar '}], <ide> ['foo=%zx', 'foo=%25zx', {'foo': '%zx'}], <ide> ['foo=%EF%BF%BD', 'foo=%EF%BF%BD', {'foo': '\ufffd' }], <del> [ 'toString=foo&valueOf=bar&__defineGetter__=baz', <del> 't...
1
PHP
PHP
add failing tests for patches from 'teddyzeenny'
2f51ef00ed4cd215e797c6c80c6c9aaeb2c4f34f
<ide><path>lib/Cake/Test/Case/Network/CakeRequestTest.php <ide> public function testGetParamsWithDot() { <ide> $this->assertEquals(array(), $request->query); <ide> } <ide> <add>/** <add> * Test that a request with urlencoded bits in the main GET parameter are filtered out. <add> * <add> * @return void <add> */ <add...
2
Text
Text
remove a colon in rosetta-code/happy-numbers
8a5711dda7b62b7c8e57d39131e3f86fc6f84491
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/happy-numbers.md <ide> assert(typeof happy === 'function'); <ide> assert(typeof happy(1) === 'boolean'); <ide> ``` <ide> <del>`happy(1)` should return true. <add>`happy(1)` should return `true`. <ide> <ide> ```js <ide> assert(happy(1)); <i...
1
Javascript
Javascript
fix broken link $xhr docs
cc5dfaf0ab4c0ce580a292e54ae64508ef7ee114
<ide><path>src/service/xhr.js <ide> * {@link angular.service.$browser $browser.xhr()} and adds error handling and security features. <ide> * While $xhr service provides nicer api than raw XmlHttpRequest, it is still considered a lower <ide> * level api in angular. For a higher level abstraction that utilizes `$xhr`,...
1
Python
Python
add test_connection method to `googlebasehook`
3b35325840e484f86df00e087410f5d5da4b9130
<ide><path>airflow/providers/google/common/hooks/base_google.py <ide> import google.auth.credentials <ide> import google.oauth2.service_account <ide> import google_auth_httplib2 <add>import requests <ide> import tenacity <ide> from google.api_core.exceptions import Forbidden, ResourceExhausted, TooManyRequests <ide> fr...
2
PHP
PHP
implement test generation for cell classes
7be6da04821965e64a9db25253a91d87905aef76
<ide><path>src/Console/Command/Task/TestTask.php <ide> class TestTask extends BakeTask { <ide> 'Behavior' => 'Model\Behavior', <ide> 'Helper' => 'View\Helper', <ide> 'Shell' => 'Console\Command', <add> 'Cell' => 'View\Cell', <ide> ]; <ide> <ide> /** <ide> class TestTask extends BakeTask { <ide> 'behavior' =>...
2
Javascript
Javascript
introduce registry#container method
2bde50dc4252dffeba0ff34eef1ae0368cbf18b3
<ide><path>packages/container/lib/container.js <ide> Container.prototype = { <ide> <ide> ```javascript <ide> var registry = new Registry(); <del> var container = new Container(registry); <add> var container = registry.container(); <ide> <ide> registry.register('api:twitter', Twitter); <ide> <ide> Contai...
38
PHP
PHP
move middleware into core
2eae07bd5f60966788ad52887eeb6572443d612a
<ide><path>src/Illuminate/Foundation/Http/Middleware/UnderMaintenance.php <add><?php namespace Illuminate\Foundation\Http\Middleware; <add> <add>use Closure; <add>use Illuminate\Http\Response; <add>use Illuminate\Contracts\Routing\Middleware; <add>use Illuminate\Contracts\Foundation\Application; <add> <add>class UnderM...
1
Javascript
Javascript
throw exception on missing key/cert
8bec26122d6de0b230f74731c1d09da267c95add
<ide><path>lib/tls.js <ide> function Server(/* [options], listener */) { <ide> // Handle option defaults: <ide> this.setOptions(options); <ide> <add> if (!self.pfx && (!self.cert || !self.key)) { <add> throw new Error('Missing PFX or certificate + private key.'); <add> } <add> <ide> var sharedCreds = crypto...
3
Text
Text
fix typo in path doc
db1087c9757c31a82c50a1eba368d8cba95b57d0
<ide><path>doc/api/path.md <ide> added: v0.1.16 <ide> <ide> * `...paths` {String} A sequence of path segments <ide> <del>The `path.join()` method join all given `path` segments together using the <add>The `path.join()` method joins all given `path` segments together using the <ide> platform specific separator as a de...
1
Text
Text
fix typo in the plugins guide
3ea078d40b1320f2d4a189430ccdb42cdf7efd1d
<ide><path>docs/guides/plugins.md <ide> For any given plugin initialization, there are four events to be aware of: <ide> * `beforepluginsetup`: Triggered immediately before any plugin is initialized. <ide> * `beforepluginsetup:examplePlugin` Triggered immediately before the `examplePlugin` is initialized. <ide> * `plug...
1
Python
Python
skip failing test until they are fixed
8f400775fc5bc1011a2674dcfd5408d30d69f678
<ide><path>tests/pipelines/test_pipelines_image_segmentation.py <ide> def run_pipeline_test(self, image_segmenter, examples): <ide> def test_small_model_tf(self): <ide> pass <ide> <add> @unittest.skip("Model has moved, skip until it's fixed.") <ide> @require_torch <ide> def test_small_model_pt(s...
2
Python
Python
replace raw prints with io_utils.print_msg
b2e4b0485304705dc4e4ea22710b5b79eac90ced
<ide><path>keras/utils/dataset_utils.py <ide> import numpy as np <ide> import tensorflow.compat.v2 as tf <ide> <add>from keras.utils import io_utils <add> <ide> # isort: off <ide> from tensorflow.python.util.tf_export import keras_export <ide> <ide> def index_directory( <ide> i += len(partial_labels) <ide...
1
Python
Python
fix typos in partition method
692a0aff0ac96129eac67d34247427e7212ef088
<ide><path>numpy/add_newdocs.py <ide> def luf(lamdaexpr, *args, **kwargs): <ide> """ <ide> a.partition(kth, axis=-1, kind='introselect', order=None) <ide> <del> Rearranges the elements in the array in such a way that value of the <add> Rearranges the elements in the array in such a way that the value of ...
1
Text
Text
remove duplicated line
f585eee125c36c200edfc470377ea3ab747d9cff
<ide><path>docs/api-guide/serializers.md <ide> Here's an example of how you might choose to implement multiple updates: <ide> # We need to identify elements in the list using their primary key, <ide> # so use a writable field here, rather than the default which would be read-only. <ide> id = ser...
1
Python
Python
make tests to clean temp files properly
1bb5bb5529d78ba95e76c802544f8b6efa84ec33
<ide><path>numpy/core/tests/test_memmap.py <ide> def setUp(self): <ide> self.data = arange(12, dtype=self.dtype) <ide> self.data.resize(self.shape) <ide> <add> def tearDown(self): <add> self.tmpfp.close() <add> <ide> def test_roundtrip(self): <ide> # Write data to file <ide> ...
2
PHP
PHP
fix whitespace errors
c6d62884c165656e5cdac096bc76df665851e2f4
<ide><path>lib/Cake/Test/Case/TestSuite/ControllerTestCaseTest.php <ide> * @package Cake.Test.Case.TestSuite <ide> */ <ide> if (!class_exists('AppController', false)) { <del> /** <del> * AppController class <del> * <del> * @package Cake.Test.Case.TestSuite <del> */ <add>/** <add> * AppController class...
1
PHP
PHP
add datetimeimmutable as valid date to model.php
8499b3a9774729bc1ebb3058f8c7c8a98d8e647d
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function asDateTime($value) <ide> if ($value instanceof DateTime) { <ide> return Carbon::instance($value); <ide> } <add> <add> // If the value is a DateTimeImmutable instance, also skip the rest of these <ad...
1
Ruby
Ruby
delegate delete_all to relation
f216fadc0e4a54d1807fe5a9462f7bd34e9024b0
<ide><path>activerecord/lib/active_record/base.rb <ide> def colorize_logging(*args) <ide> end <ide> alias :colorize_logging= :colorize_logging <ide> <del> delegate :find, :first, :last, :all, :destroy, :destroy_all, :exists?, :delete, :to => :scoped <add> delegate :find, :first, :last, :all, :des...
2
PHP
PHP
fix incorrect paramerter name in docblock
a039b0c627dc26d3b132e5ab56bd288b23806f65
<ide><path>src/Illuminate/Validation/Concerns/FormatsMessages.php <ide> protected function replaceAttributePlaceholder($message, $value) <ide> * Replace the :input placeholder in the given message. <ide> * <ide> * @param string $message <del> * @param string $value <add> * @param string $at...
1
Text
Text
clarify `button_to` helper changes in rails 7.0
f52a6f49822e6ab5894486890005843fad799126
<ide><path>guides/source/7_0_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> <ide> ### Notable changes <ide> <add>* `button_to` infers HTTP verb [method] from an Active Record object if object is used to build URL <add> <add> ```ruby <add> button_to("Do a POST", ...
2
Javascript
Javascript
highlight the $templatecache service
1c3bbada27f2f628a431e1ce9e8f5024a29eba20
<ide><path>src/ng/cacheFactory.js <ide> function $CacheFactoryProvider() { <ide> * the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE, <ide> * element with ng-app attribute), otherwise the template will be ignored. <ide> * <del> * Adding via the $templateCache service: <add> * ...
1
Python
Python
fix impersonation issue with localtaskjob
feea38057ae16b5c09dfdda19552a5e75c01a2dd
<ide><path>airflow/jobs/local_task_job.py <ide> import signal <ide> from typing import Optional <ide> <add>import psutil <ide> from sqlalchemy.exc import OperationalError <ide> <ide> from airflow.configuration import conf <ide> def heartbeat_callback(self, session=None): <ide> fqdn, <ide> ...
2