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 |
|---|---|---|---|---|---|
Python | Python | add widgets for datefield and datetimefield | 7bf03bbd66008b58d023de312378be17c0a7931d | <ide><path>rest_framework/fields.py
<ide> def __deepcopy__(self, memo):
<ide>
<ide> class DateField(WritableField):
<ide> type_name = 'DateField'
<add> widget = widgets.DateInput
<ide>
<ide> default_error_messages = {
<ide> 'invalid': _(u"'%s' value has an invalid date format. It must be "
<ide> de... | 1 |
Text | Text | add tom to the platform dev team 🎉 | 0463aae2f5dfb1b954bd816671dc354b95c669e2 | <ide><path>docs/README.md
<ide> When in doubt, you can reach out to our platform dev team to help you with this:
<ide> | Mrugesh Mohapatra | [@raisedadead](https://gitter.im/raisedadead) | [@raisedadead](https://twitter.com/raisedadead) |
<ide> | Ahmad Abdolsaheb | [@ahmadabdolsaheb](https:... | 1 |
PHP | PHP | replace deprecated shoulddefermissing usages | ecb57fe678c3dcb0547053bc3429f49d09b03fad | <ide><path>tests/Database/DatabaseSoftDeletingScopeTest.php
<ide> public function testOnlyTrashedExtension()
<ide> m::mock(Processor::class)
<ide> ));
<ide> $model = m::mock(Model::class);
<del> $model->shouldDeferMissing();
<add> $model->makePartial();
<ide> $scope = m... | 2 |
Text | Text | add model card for google ai's bert miniatures | b2028cc26b61a9dad960274d427e261af7c9bdc8 | <ide><path>model_cards/iuliaturc/bert_uncased_L-2_H-128_A-2/README.md
<add>BERT Miniatures
<add>===
<add>
<add>This is the set of 24 BERT models referenced in [Well-Read Students Learn Better: On the Importance of Pre-training Compact Models](https://arxiv.org/abs/1908.08962) (English only, uncased, trained with WordPi... | 1 |
Javascript | Javascript | run property names through propfix in removeprop | 3ed4b22073767c17c099351637514f5928c0fd68 | <ide><path>src/attributes.js
<ide> jQuery.fn.extend({
<ide> },
<ide>
<ide> removeProp: function( name ) {
<add> name = jQuery.propFix[ name ] || name;
<ide> return this.each(function() {
<ide> // try/catch handles cases where IE balks (such as removing a property on window)
<ide> try { | 1 |
PHP | PHP | apply fixes from styleci | 8902690a87f87f516e298c6e00fa1dbf8a0224dd | <ide><path>tests/Database/DatabaseQueryBuilderTest.php
<ide> public function testCursorPaginateWithUnionWheres()
<ide> $builder->toSql());
<ide> $this->assertEquals([$ts], $builder->bindings['where']);
<ide> $this->assertEquals([$ts], $builder->bindings['union']);
<add>
<ide> ... | 1 |
Python | Python | install all header files openssl-1.1.0 | 2b235830fb8bf387cce0449105877c30f6e5d44f | <ide><path>tools/install.py
<ide> def headers(action):
<ide> 'false' == variables.get('node_shared_openssl'):
<ide> subdir_files('deps/openssl/openssl/include/openssl', 'include/node/openssl/', action)
<ide> subdir_files('deps/openssl/config/archs', 'include/node/openssl/archs', action)
<del> action(['d... | 1 |
Javascript | Javascript | remove all uses of executionenvironment.global | 426cdbb3aeca313784af25bff8bfb6d7ad7b1b38 | <ide><path>src/core/ReactEventTopLevelCallback.js
<ide>
<ide> "use strict";
<ide>
<del>var ExecutionEnvironment = require('ExecutionEnvironment');
<ide> var ReactEventEmitter = require('ReactEventEmitter');
<ide> var ReactMount = require('ReactMount');
<ide>
<ide> var ReactEventTopLevelCallback = {
<ide> }
<id... | 5 |
PHP | PHP | show warning if view already exists | ecb516445b06a15600f29e51738a409c2b9827ec | <ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php
<ide> protected function writeView()
<ide> $this->files->makeDirectory(dirname($path), 0777, true, true);
<ide> }
<ide>
<add> if ($this->files->exists($path) && ! $this->option('force')) {
<add> $this->warn('Vie... | 1 |
Go | Go | fix potential deadlock in getsvcrecords() | 92e20b70e648b666bc82f4eff448e6a11726eb5b | <ide><path>libnetwork/network.go
<ide> func (n *network) getSvcRecords(ep *endpoint) []etchosts.Record {
<ide> continue
<ide> }
<ide> if len(ip) == 0 {
<del> log.Warnf("Found empty list of IP addresses for service %s on network %s (%s)", h, n.Name(), n.ID())
<add> log.Warnf("Found empty list of IP addresses ... | 1 |
Ruby | Ruby | allow optional output path in std_go_args | 3f357861aa2dde712b02f2e2a05e30aefc0c4842 | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_args(install_prefix: prefix, install_libdir: "lib", find_framework
<ide> end
<ide>
<ide> # Standard parameters for Go builds.
<del> sig { params(ldflags: T.nilable(String)).returns(T::Array[String]) }
<del> def std_go_args(ldflags: nil)
<del> args = [... | 1 |
Javascript | Javascript | adjust specs for the changed event shape | 67a8ba2a046f6f6abe40589e554b1e746e6ba69c | <ide><path>spec/path-watcher-spec.js
<ide> describe('watchPath', function () {
<ide> return new Promise(resolve => {
<ide> const sub = watcher.onDidChange(events => {
<ide> for (const event of events) {
<del> if (waiting.delete(event.oldPath)) {
<add> if (waiting.delete(event.path)) ... | 1 |
Ruby | Ruby | remove unused require | 47200f502d4ae477545b3d7583f05db2df09c5ba | <ide><path>actionpack/lib/action_controller/metal/rendering.rb
<ide> # frozen_string_literal: true
<ide>
<del>require "active_support/core_ext/string/filters"
<del>
<ide> module ActionController
<ide> module Rendering
<ide> extend ActiveSupport::Concern | 1 |
Text | Text | fix typo in ignoring-typescript-errors.md | 04d5bbcc50fb532de1d0cff3f04791fcd52b309c | <ide><path>docs/api-reference/next.config.js/ignoring-typescript-errors.md
<ide> If you'd like Next.js to dangerously produce production code even when your appl
<ide>
<ide> > Be sure you are running type checks as part of your build or deploy process, otherwise this can be very dangerous.
<ide>
<del>Open `next.confi... | 1 |
Ruby | Ruby | move linkedkegs migration | 8f1ae3b28b0a12fe4a9d905dd4c41873d1674377 | <ide><path>Library/Homebrew/brew.rb
<ide> def require?(path)
<ide> # `Homebrew.help` never returns, except for external/unknown commands.
<ide> end
<ide>
<add> # Migrate LinkedKegs/PinnedKegs if update didn't already do so
<add> migrate_legacy_keg_symlinks_if_necessary
<add>
<ide> # Uninstall old brew-cask i... | 4 |
Ruby | Ruby | enable more deprecations | 2d18ba586b3250062cd58c8f5af81fc30a35bb5f | <ide><path>Library/Homebrew/cask/lib/hbc/dsl.rb
<ide> def sha256(arg = nil)
<ide> end
<ide>
<ide> def license(*)
<del> # TODO: Uncomment after `license` has been
<del> # removed from all official taps.
<del> # odeprecated "Hbc::DSL#license"
<add> odeprecated "Hbc::DSL#license"
<ide> ... | 6 |
Python | Python | ensure linspace works on object input | b3fdef08b5c586fff50fdabb0967e53ccaaab3c4 | <ide><path>numpy/core/function_base.py
<ide>
<ide> from . import numeric as _nx
<ide> from .numeric import (result_type, NaN, shares_memory, MAY_SHARE_BOUNDS,
<del> TooHardError, asanyarray)
<add> TooHardError, asanyarray, ndim)
<ide> from numpy.core.multiarray import add_docs... | 2 |
Javascript | Javascript | remove flowfixme on ref | 0939b938b2a9beee74f5c44cdef25e0a227efe0d | <ide><path>Libraries/Lists/VirtualizedSectionList.js
<ide> class VirtualizedSectionList<
<ide> index += this.props.getItemCount(this.props.sections[i].data) + 2;
<ide> }
<ide> let viewOffset = params.viewOffset || 0;
<add> if (this._listRef == null) {
<add> return;
<add> }
<ide> if (params.... | 1 |
Ruby | Ruby | replace x.sort_by!.select! with x.select!.sort_by! | 8ee785a17fa0dab88762c2866507bb33760c9f7a | <ide><path>actionpack/lib/action_dispatch/journey/router.rb
<ide> def find_routes req
<ide> routes.concat get_routes_as_head(routes)
<ide> end
<ide>
<del> routes.sort_by!(&:precedence).select! { |r| r.matches?(req) }
<add> routes.select! { |r| r.matches?(req) }
<add> ro... | 1 |
PHP | PHP | fix touchowners() on many to many relationship | deebda1e4a02fe901b83bacaf35a53da9606c1e1 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function touchOwners()
<ide> {
<ide> $this->$relation()->touch();
<ide>
<del> if ( ! is_null($this->$relation))
<add> if ( ! is_null($this->$relation) && $this->$relation instanceof Model)
<ide> {
<ide> $this->$relation->touchOwners();
... | 1 |
PHP | PHP | withouteventdispatcher() method | 645e622a519f5bc8a52ddabf1cd6507fd5d57d39 | <ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php
<ide> public static function unsetEventDispatcher()
<ide> {
<ide> static::$dispatcher = null;
<ide> }
<add>
<add> /**
<add> * Execute a callback without the event dispatcher.
<add> *
<add> * @param callable $callback
<ad... | 2 |
Java | Java | fix behavior of clientresponse#bodyto** with void | 126ac849e5592f65d742d1f23bf891e1a115af01 | <ide><path>spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java
<ide> public class MockClientHttpResponse implements ClientHttpResponse {
<ide>
<ide> private final DataBufferFactory bufferFactory = new DefaultDataBufferFactory();
<ide>
<del> private boolean closed = fal... | 11 |
Javascript | Javascript | add test for overriding attr value in init | 04e0251493099503a3602303c66ff23543ca213c | <ide><path>packages/ember-htmlbars/tests/integration/component_invocation_test.js
<ide> QUnit.test('non-block with properties on attrs and component class', function()
<ide> equal(jQuery('#qunit-fixture').text(), 'In layout - someProp: something here');
<ide> });
<ide>
<add>QUnit.test('non-block with properties on o... | 1 |
PHP | PHP | fix selected columns on hasmanythrough | 078697196e7f7f6c3315c8657ec2fb2310c4d423 | <ide><path>src/Illuminate/Database/Eloquent/Relations/HasManyThrough.php
<ide> public function get($columns = array('*'))
<ide> // First we'll add the proper select columns onto the query so it is run with
<ide> // the proper columns. Then, we will get the results and hydrate out pivot
<ide> // models with the re... | 2 |
Javascript | Javascript | fix inconsistency between load and _findpath | 1b92214d097358040efb7d3ec5dff1736f364bc0 | <ide><path>lib/internal/modules/cjs/loader.js
<ide> function tryExtensions(p, exts, isMain) {
<ide> return false;
<ide> }
<ide>
<add>function readExtensions() {
<add> const exts = Object.keys(Module._extensions);
<add> for (var i = 0, j = 0; i < exts.length; ++i) {
<add> if (path.extname(exts[i]) === '')
<add> ... | 3 |
PHP | PHP | fix return type | 773e2f20f8941f965407778345ecd4c3a33921b1 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function first(Closure $callback = null, $default = null)
<ide> /**
<ide> * Get a flattened array of the items in the collection.
<ide> *
<del> * @return array
<add> * @return \Illuminate\Support\Collection
<ide> */
<ide> public function flatten()
... | 1 |
Python | Python | fix docs of `metrics` parameter in `compile` | e6c11160ecd8e4e2c0bd8a10332c8bd494880aa8 | <ide><path>keras/engine/training.py
<ide> def compile(
<ide> strings 'accuracy' or 'acc', we convert this to one of
<ide> `tf.keras.metrics.BinaryAccuracy`,
<ide> `tf.keras.metrics.CategoricalAccuracy`,
<del> `tf.keras.metrics.SparseCategoricalAccuracy` based on th... | 1 |
Python | Python | fix errorswithcodes().__class__ return value | a987e9e45d4084f30964a4cec9914ae6ed25a73c | <ide><path>spacy/errors.py
<ide> def add_codes(err_cls):
<ide>
<ide> class ErrorsWithCodes(object):
<ide> def __getattribute__(self, code):
<del> msg = getattr(err_cls, code)
<del> return "[{code}] {msg}".format(code=code, msg=msg)
<add> if not code.startswith('__'):
<add> ... | 2 |
Ruby | Ruby | use the correct table name from fixture | 64f106dfd1bcff13882ef2be44585f68c6cb9950 | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def self.create_fixtures(fixtures_directory, table_names, class_names = {})
<ide>
<ide> # Cap primary key sequences to max(pk).
<ide> if connection.respond_to?(:reset_pk_sequence!)
<del> table_names.each do |table_name|
<d... | 1 |
Text | Text | use es6 in language tooling doc | eddcee9884c2ccd849b6d1b1b5dccc966c47ae8e | <ide><path>docs/docs/09.1-language-tooling.md
<ide> Example output:
<ide>
<ide> ```
<ide> $ cat test.js
<del>var HelloMessage = React.createClass({
<del> render: function() {
<del> return <div>Hello {this.props.name}</div>;
<del> }
<del>});
<add>function HelloMessage(props) {
<add> return <div>Hello {props.name}... | 1 |
PHP | PHP | implement the pipingdispatcher contract | 8ff29231212e9b2d8c078b7037f382d68cccb51b | <ide><path>src/Illuminate/Bus/Dispatcher.php
<ide> use Illuminate\Contracts\Container\Container;
<ide> use Illuminate\Contracts\Bus\HandlerResolver;
<ide> use Illuminate\Contracts\Queue\ShouldBeQueued;
<add>use Illuminate\Contracts\Bus\PipingDispatcher;
<ide> use Illuminate\Contracts\Bus\QueueingDispatcher;
<ide> use I... | 1 |
Javascript | Javascript | ensure text() stream consumer flushes correctly | ca19775d0ee0ce0863b46e3c76f00f3018b1e19f | <ide><path>lib/stream/consumers.js
<ide> async function text(stream) {
<ide> else
<ide> str += dec.decode(chunk, { stream: true });
<ide> }
<add> // Flush the streaming TextDecoder so that any pending
<add> // incomplete multibyte characters are handled.
<add> str += dec.decode(undefined, { stream: false... | 2 |
Ruby | Ruby | pass a type caster when aliasing tables for joins | 7931c96338353adc0ebfc780769ef3cd06ab0d79 | <ide><path>activerecord/lib/active_record/associations/alias_tracker.rb
<ide> def initialize(connection, aliases)
<ide> @connection = connection
<ide> end
<ide>
<del> def aliased_table_for(table_name, aliased_name)
<add> def aliased_table_for(table_name, aliased_name, **table_options)
<ide> ... | 4 |
PHP | PHP | remove flaky test that was of questionable value | a098d96c94df99d8136f2959b8c7abab0c4c6529 | <ide><path>lib/Cake/Test/Case/Utility/ValidationTest.php
<ide> public function testEmailDeep() {
<ide>
<ide> $this->assertTrue(Validation::email('abc.efg@cakephp.org', true));
<ide> $this->assertFalse(Validation::email('abc.efg@caphpkeinvalid.com', true));
<del> $this->assertFalse(Validation::email('abc@example.a... | 1 |
Ruby | Ruby | ensure homebrew_prefix/bin in test path | d89c870621fb78f3b9be4e0758031bcd6bbc3c31 | <ide><path>Library/Homebrew/formula.rb
<ide> def run_test
<ide> old_temp = ENV["TEMP"]
<ide> old_tmp = ENV["TMP"]
<ide> old_term = ENV["TERM"]
<del> old_path = ENV["HOMEBREW_PATH"]
<add> old_path = ENV["PATH"]
<add> old_homebrew_path = ENV["HOMEBREW_PATH"]
<ide>
<ide> ENV["CURL_HOME"] = old_cu... | 1 |
Python | Python | add some comments to the processlist.py | e135dc339fe00c769ad224c0fe722176599890c8 | <ide><path>glances/processes.py
<ide> def update(self):
<ide>
<ide> # Grab standard stats
<ide> #####################
<add> sorted_attrs = ['cpu_percent', 'cpu_times',
<add> 'memory_percent', 'name',
<add> 'status', 'status', 'num_threads']
<ad... | 1 |
Ruby | Ruby | add support for namespaced validators | 972011a2e58be5caf84bf06dd954ba095c823984 | <ide><path>activemodel/lib/active_model/validations/validates.rb
<ide> module ClassMethods
<ide> # validates :name, :title => true
<ide> # end
<ide> #
<add> # Additionally validator classes may be in another namespace and still used within any class.
<add> #
<add> # validates :n... | 3 |
Javascript | Javascript | add extra info to authentication | aed7f643e2d60a3eb58ff23e038b029afe00241c | <ide><path>examples/with-cookie-auth/www/utils/auth.js
<ide> export const withAuthSync = WrappedComponent =>
<ide> export const auth = ctx => {
<ide> const { token } = nextCookie(ctx)
<ide>
<add> /*
<add> * This happens on server only, ctx.req is available means it's being
<add> * rendered on server. If we are ... | 1 |
Javascript | Javascript | add url to jquery.event deprecation | 9657caeb9d8519705a5820aa7a21885aa670e851 | <ide><path>packages/ember-views/lib/system/jquery_event_deprecation.js
<ide> export default function addJQueryEventDeprecation(jqEvent) {
<ide> {
<ide> id: 'ember-views.event-dispatcher.jquery-event',
<ide> until: '4.0.0',
<add> url: 'https://emberjs.com/deprecations... | 1 |
PHP | PHP | apply fixes from styleci | e6471a6f2e73dd244f957751ab315aa5903c32ea | <ide><path>database/factories/UserFactory.php
<ide> |
<ide> */
<ide>
<del>/** @var \Illuminate\Database\Eloquent\Factory $factory */
<add>/* @var \Illuminate\Database\Eloquent\Factory $factory */
<ide>
<ide> $factory->define(User::class, function (Faker $faker) {
<ide> return [ | 1 |
Javascript | Javascript | add systrace to all performancelogger.js markers | e81258a15b076d2805912fae11351311c412ad5e | <ide><path>Libraries/Utilities/PerformanceLogger.js
<ide>
<ide> const BatchedBridge = require('BatchedBridge');
<ide> const performanceNow = global.nativePerformanceNow || require('fbjs/lib/performanceNow');
<add>const Systrace = require('Systrace');
<ide>
<ide> var timespans = {};
<ide> var extras = {};
<add>var coo... | 1 |
Java | Java | add bigdecimal support for spel numeric operations | d0ab131a57b2dc0cec6b379d439ceff912d5c3d1 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/ast/OpDec.java
<ide>
<ide> package org.springframework.expression.spel.ast;
<ide>
<add>import java.math.BigDecimal;
<add>
<ide> import org.springframework.expression.EvaluationException;
<ide> import org.springframework.expression.Operatio... | 18 |
Python | Python | update the docstring for the return type | 3c194341b928da32817cca8756c2416284465d2b | <ide><path>keras/engine/compile_utils.py
<ide> def __call__(self,
<ide> regularization_losses: Additional losses to be added to the total loss.
<ide>
<ide> Returns:
<del> Tuple of `(total_loss, per_output_loss_list)`
<add> The total loss as a `tf.Tensor`, or `None` if no loss results.
<ide> """... | 2 |
PHP | PHP | improve cookie encryption | 594a3abdec383b55ce32a9e960263f55b41318e2 | <ide><path>src/Illuminate/Cookie/Middleware/EncryptCookies.php
<ide> protected function decrypt(Request $request)
<ide> }
<ide>
<ide> try {
<del> $request->cookies->set($key, $this->decryptCookie($key, $cookie));
<add> $value = $this->decryptCookie($key, $cookie);
... | 1 |
Text | Text | improve security section of readme.md | c3e75ae0ee97553f5f9c4150c936ae9d81fca558 | <ide><path>README.md
<ide> officially supported platforms.
<ide>
<ide> ## Security
<ide>
<del>All security bugs in Node.js are taken seriously and should be reported by
<del>emailing security@nodejs.org. This will be delivered to a subset of the project
<del>team who handle security issues. Please don't disclose secu... | 1 |
Javascript | Javascript | use long property names in share scope | 90b8056b1d95b949d74ab29faf0c23ba59d3977e | <ide><path>lib/sharing/ConsumeSharedRuntimeModule.js
<ide> class ConsumeSharedRuntimeModule extends RuntimeModule {
<ide> 'typeof console !== "undefined" && console.warn && console.warn(msg);',
<ide> "return 1;"
<ide> ])};`,
<del> "var v = scope[key].v;",
<add> "var v = scope[key].version;",
<ide> ... | 1 |
Go | Go | add extra permission check in removal test | d6cbeee470105df403b7ae716c923fd11003b67c | <ide><path>integration/image/remove_unix_test.go
<ide> import (
<ide> "io/ioutil"
<ide> "os"
<ide> "strconv"
<add> "strings"
<ide> "syscall"
<ide> "testing"
<ide> "unsafe"
<ide> func TestRemoveImageGarbageCollector(t *testing.T) {
<ide> argp = uintptr(unsafe.Pointer(&attr))
<ide> _, _, errno = syscall.Syscall(s... | 1 |
Python | Python | fix failing tests | e2ae2f74f0bae47033da7444cc78a736fadbf5cd | <ide><path>libcloud/dns/base.py
<ide> def _get_bind_record_line(self, record):
<ide>
<ide> if record.type in [RecordType.MX, RecordType.SRV]:
<ide> priority = str(record.extra['priority'])
<del> parts = [name, ttl, 'IN', record.type, priority, data]
<add> parts = [name, ttl, '... | 1 |
Javascript | Javascript | add removed vm-browserify hint | fe393fbb4e2994dff479a7b12cafad95bf20691d | <ide><path>lib/ModuleNotFoundError.js
<ide> const previouslyPolyfilledBuiltinModules = {
<ide> tty: "tty-browserify",
<ide> url: "url",
<ide> util: "util",
<add> vm: "vm-browserify",
<ide> zlib: "browserify-zlib"
<ide> };
<ide> | 1 |
Go | Go | remove unused functions | 236a125c3afdee30b739399aaea263c37cb28b04 | <ide><path>cli/required.go
<ide> func NoArgs(cmd *cobra.Command, args []string) error {
<ide> cmd.Short,
<ide> )
<ide> }
<del>
<del>// RequiresMinArgs returns an error if there is not at least min args
<del>func RequiresMinArgs(min int) cobra.PositionalArgs {
<del> return func(cmd *cobra.Command, args []string) erro... | 1 |
Javascript | Javascript | remove plain object warning | b2297ae6c3117ca9b3e15aedaf73d9187eb88e6c | <ide><path>src/isomorphic/classic/element/ReactElement.js
<ide> ReactElement.createElement = function(type, config, children) {
<ide> var source = null;
<ide>
<ide> if (config != null) {
<del> if (__DEV__) {
<del> warning(
<del> /* eslint-disable no-proto */
<del> config.__proto__ == null || ... | 3 |
Java | Java | add protected method for required requestbody | e4539d9f4003bee0f3cd31dd70b87a32ffb95884 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.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, Versi... | 1 |
Javascript | Javascript | improve flagincludedchunksplugin performance | 4dabf3075fd396c6d0fb7e9a93c2d4a69ace9101 | <ide><path>lib/optimize/FlagIncludedChunksPlugin.js
<ide> class FlagIncludedChunksPlugin {
<ide> compilation.hooks.optimizeChunkIds.tap(
<ide> "FlagIncludedChunksPlugin",
<ide> chunks => {
<add> // prepare two bit integers for each module
<add> // 2^31 is the max number represented as SMI in v8
<add>... | 1 |
Ruby | Ruby | add quiet flags if not verbose | 9bd216725798148a28c0c6fa5422ad12148db799 | <ide><path>Library/Homebrew/unpack_strategy.rb
<ide> def self.can_extract?(path:, magic_number:)
<ide> private
<ide>
<ide> def extract_to_dir(unpack_dir, basename:, verbose:)
<del> safe_system "unzip", "-qq", path, "-d", unpack_dir
<add> quiet_flags = verbose ? [] : ["-qq"]
<add> safe_system "unzip", *qui... | 1 |
Python | Python | fix failures with recent moto library 2.2.15 | 49b7e751eb3cb512d138a06237116c3aec6c4290 | <ide><path>setup.py
<ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
<ide> 'jira',
<ide> 'jsondiff',
<ide> 'mongomock',
<del> 'moto~=2.2, >=2.2.7',
<add> 'moto~=2.2, >=2.2.12',
<ide> 'mypy==0.770',
<ide> 'parameterized',
<ide> 'paramiko',
<ide><path>te... | 4 |
Go | Go | add test for links in volumes | a57eee2229c2f0c53c32372587fcc2a8327044ea | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func TestBuildAddBadLinks(t *testing.T) {
<ide> logDone("build - ADD must add files in container")
<ide> }
<ide>
<add>func TestBuildAddBadLinksVolume(t *testing.T) {
<add> const (
<add> dockerfileTemplate = `
<add> FROM busybox
<add> RUN ln -s /../../../../... | 1 |
Javascript | Javascript | update material properties for point clouds | d33553080ed90db6ebb59da4f30c094f6ea8fd34 | <ide><path>examples/jsm/loaders/3DMLoader.js
<ide> Rhino3dmLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
<ide> case 'PointSet':
<ide>
<ide> var geometry = loader.parse( obj.geometry );
<del> var _color = attributes.drawColor;
<del> var color = new Color( _color.r / 255.0, _color.g... | 1 |
Text | Text | move massive paragraph out of intro | 0c294e0010810e3d9a4bcfa72ab96ff2af0240a6 | <ide><path>guides/source/migrations.md
<ide> Migrations
<ide> ==========
<ide>
<add>Migrations are a feature of Active Record that allows you to evolve your
<add>database schema over time. Rather than write schema modifications in pure SQL,
<add>migrations allow you to use an easy Ruby DSL to describe changes to your
... | 1 |
Ruby | Ruby | avoid extra allocations when don't need escaping | a2720dd0537cabe956406b591f0fd0a2c3964605 | <ide><path>actionview/lib/action_view/helpers/tag_helper.rb
<ide> def tag_option(key, value, escape)
<ide> if value.is_a?(Array)
<ide> value = escape ? safe_join(value, " ") : value.join(" ")
<ide> else
<del> value = escape ? ERB::Util.unwrapped_html_escape(value).dup : value.... | 1 |
Go | Go | isolate git from local system | 72119f5d9bcce3f4901b7ef2bf4b8181fc1b8062 | <ide><path>builder/remotecontext/git/gitutils.go
<ide> func checkoutGit(root, ref, subdir string) (string, error) {
<ide> }
<ide>
<ide> func gitWithinDir(dir string, args ...string) ([]byte, error) {
<add> args = append([]string{"-c", "protocol.file.allow=never"}, args...) // Block sneaky repositories from using repos... | 2 |
Python | Python | expose more attributes in the slicehost driver | a05ae1cda86cb5538b2a16267671a25dd91bdec7 | <ide><path>libcloud/drivers/slicehost.py
<ide> def _to_node(self, element):
<ide> except:
<ide> state = NodeState.UNKNOWN
<ide>
<add> # for consistency with other drivers, we put this in two places.
<add> node_attrs['password'] = node_attrs['root-password']
<ide> n = Node(id=e... | 1 |
Javascript | Javascript | remove unnecessary var declaration | 0c77b2f3eb28471ad664b6272b7426603b757527 | <ide><path>src/renderers/dom/client/ReactEventListener.js
<ide> var ReactEventListener = {
<ide> *
<ide> * @param {string} topLevelType Record from `EventConstants`.
<ide> * @param {string} handlerBaseName Event name (e.g. "click").
<del> * @param {object} handle Element on which to attach listener.
<add> ... | 1 |
Javascript | Javascript | update vendored modules | 182379305a92c86f415837f30cb0afac3acf361d | <ide><path>src/vendor/core/mapObject.js
<ide> * @providesModule mapObject
<ide> */
<ide>
<del>"use strict";
<add>'use strict';
<add>
<add>var hasOwnProperty = Object.prototype.hasOwnProperty;
<ide>
<ide> /**
<del> * For each key/value pair, invokes callback func and constructs a resulting
<del> * object which conta... | 3 |
Ruby | Ruby | define activesupport#to_param as to_str - closes | 1fa059cd017c134499835593ba29620c4cd7358c | <ide><path>actionpack/test/template/url_helper_test.rb
<ide> class UrlHelperTest < ActiveSupport::TestCase
<ide> routes.draw do
<ide> match "/" => "foo#bar"
<ide> match "/other" => "foo#other"
<add> match "/article/:id" => "foo#article", :as => :article
<ide> end
<ide>
<ide> include routes.url_helpers... | 3 |
Javascript | Javascript | add error checking to include parser | 807a8ec729c715f6e4008c48c0cd49b0d4e66dbd | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> THREE.WebGLProgram = ( function () {
<ide> var pattern = /#include[ \t]+<([\w\d.]+)>/g;
<ide>
<ide> function replace( match, include ) {
<del> return parseIncludes( THREE.ShaderChunk[ include ] );
<add> var replace = THREE.ShaderChunk[ include ];
<add> if(... | 1 |
Ruby | Ruby | fix conditional for 10.4 | 64b472788acf8fe5087fabea3efa23036b3efcc2 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def macports_or_fink
<ide> end
<ide>
<ide> def prefer_64_bit?
<del> Hardware::CPU.is_64_bit? and version != :leopard
<add> Hardware::CPU.is_64_bit? and version > :leopard
<ide> end
<ide>
<ide> def preferred_arch | 1 |
Javascript | Javascript | add workspace center | 7f5ad9a359aebfc6bc76df718f71bd20b34ed9e6 | <ide><path>src/workspace-center.js
<add>'use strict'
<add>
<add>const TextEditor = require('./text-editor')
<add>
<add>module.exports = class WorkspaceCenter {
<add> constructor (paneContainer) {
<add> this.paneContainer = paneContainer
<add> }
<add>
<add> /*
<add> Section: Event Subscription
<add> */
<add>
<ad... | 2 |
Java | Java | expand hints conditions support in runtimehints | 8af1496b376165c3bfadacfa8e0da8746aa5774c | <ide><path>spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorAotContributionTests.java
<ide> import org.springframework.aot.generate.InMemoryGeneratedFiles;
<ide> import org.springframework.aot.generate.MethodGenerator;
<ide> import org.springframework.aot.generate.Metho... | 29 |
Text | Text | add model card for electra-base-german-uncased | 3c72f5584b410f5f53bea300b4e092e43955c300 | <ide><path>model_cards/german-nlp-group/electra-base-german-uncased/README.md
<add>---
<add>language: de
<add>license: mit
<add>thumbnail: "https://raw.githubusercontent.com/German-NLP-Group/german-transformer-training/master/model_cards/german-electra-logo.png"
<add>tags:
<add>- electra
<add>- commoncrawl
<add>- uncas... | 1 |
Javascript | Javascript | avoid memory leak in v8 ics after (de)serializing | 2696446edfaf7fd2060e57ac35c4237d191fbb23 | <ide><path>lib/serialization/ObjectMiddleware.js
<ide> class ObjectMiddleware extends SerializerMiddleware {
<ide> */
<ide> serialize(data, context) {
<ide> /** @type {any[]} */
<del> const result = [CURRENT_VERSION];
<add> let result = [CURRENT_VERSION];
<ide> let currentPos = 0;
<del> const referenceable = ... | 1 |
Javascript | Javascript | remove deprecated calls from statusbarios | 4de616b4c1a9d3556632a93504828f0539fa4fa5 | <ide><path>Examples/UIExplorer/StatusBarIOSExample.js
<del>/**
<del> * The examples provided by Facebook are for non-commercial testing and
<del> * evaluation purposes only.
<del> *
<del> * Facebook reserves all rights not expressly granted.
<del> *
<del> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND... | 3 |
PHP | PHP | remove unnecessary assignment | 78d3974eaa6341b0c8e6a1fbda3168a09739353c | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testInvokeActionException()
<ide> $response = $this->getMockBuilder(Response::class)->getMock();
<ide>
<ide> $Controller = new TestController($url, $response);
<del> $result = $Controller->invokeAction();
<add> ... | 1 |
Java | Java | add missing coverage, fix unused/inconsistent ops | b3ad0752de398f4536bb88a7b1c77b0b9fbecb87 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Completable.java
<ide> private static Completable merge0(@NonNull Publisher<@NonNull ? extends Completa
<ide> @SafeVarargs
<ide> public static Completable mergeArrayDelayError(@NonNull CompletableSource... sources) {
<ide> Objects.requireNonNull(sources... | 225 |
Python | Python | fix pmt test in numpy/lib/tests/test_financial.py | 97c481ee90459e8e372b74144f666cf06ad9df61 | <ide><path>numpy/lib/tests/test_financial.py
<ide>
<ide> import numpy as np
<ide> from numpy.testing import (
<del> run_module_suite, TestCase, assert_, assert_almost_equal
<add> run_module_suite, TestCase, assert_, assert_almost_equal,
<add> assert_allclose
<ide> )
<ide>
<ide>
<ide> def test_rate(self)... | 1 |
Text | Text | change port number through example context | b0a65f93a5ab2de540825fab43b4d2ec01f22f36 | <ide><path>docs/userguide/dockerlinks.md
<ide> The components in this prefix are:
<ide> Docker uses this prefix format to define three distinct environment variables:
<ide>
<ide> * The `prefix_ADDR` variable contains the IP Address from the URL, for
<del>example `WEBDB_PORT_8080_TCP_ADDR=172.17.0.82`.
<add>example `WE... | 1 |
Javascript | Javascript | restore context after an error happens | 9cd52b27fe7be3c320d1e94a016fc416e66569b1 | <ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
<ide> describe('ReactDOMFizzServer', () => {
<ide> );
<ide> });
<ide>
<add> // @gate experimental
<add> it('should recover the outer context when an error happens inside a provider', async () => {
<add> const ContextA = React.createConte... | 2 |
Javascript | Javascript | prevent extra method.tostring checks | dc3d707141a39bb4dedee3f8e86d6b7ad39f2591 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> function giveMethodSuper(obj, key, method, values, descs) {
<ide>
<ide> if (hasSuper === undefined) {
<ide> hasSuper = method.toString().indexOf('_super');
<add> method.__hasSuper = hasSuper;
<ide> }
<ide>
<ide> if (hasSuper) { | 1 |
Ruby | Ruby | fix unittest test_arch_for_command for 10.5 | f150e5ece29d3e5c9bedfe557446a62380cd4f21 | <ide><path>Library/Homebrew/unittest.rb
<ide> def test_my_float_assumptions
<ide> end
<ide>
<ide> def test_arch_for_command
<del> # NOTE only works on Snow Leopard I bet, pick a better file!
<ide> arches=arch_for_command '/usr/bin/svn'
<del> assert_equal 3, arches.count
<del> assert arches.include?(:x... | 1 |
Python | Python | add a test script for model_utils | 896880f84dcf6615fe33123dd1e6fe24bc1a7896 | <ide><path>tests/manual/check_model_utils.py
<add>from __future__ import absolute_import
<add>from __future__ import print_function
<add>from keras.models import Sequential, Graph
<add>from keras.layers.core import Layer, Activation, Dense, Flatten, Reshape, Merge
<add>from keras.layers.convolutional import Convolution... | 1 |
Javascript | Javascript | fix user redirect on email account creation | 2a48f4231327aec380f724355ce2f08470d4650e | <ide><path>server/boot/a-extendUser.js
<ide> module.exports = function(app) {
<ide> });
<ide>
<ide> // send welcome email to new camper
<del> User.afterRemote('create', function(ctx, user, next) {
<add> User.afterRemote('create', function({ req, res }, user, next) {
<ide> debug('user created, sending email')... | 1 |
Javascript | Javascript | remove addparsedvariabletomodule helper | 5553166603c9f813bc99d4e77d102080bfcdb9ad | <ide><path>lib/JavascriptParserHelpers.js
<ide> const BasicEvaluatedExpression = require("./BasicEvaluatedExpression");
<ide> const UnsupportedFeatureWarning = require("./UnsupportedFeatureWarning");
<ide> const ConstDependency = require("./dependencies/ConstDependency");
<ide>
<del>exports.addParsedVariableToModule =... | 1 |
Python | Python | fix ticket #928 | e02bf24487e84fb7bbb6bb2ffc25d5833f5ae30d | <ide><path>numpy/lib/function_base.py
<ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
<ide> Ncount[i][on_edge] -= 1
<ide>
<ide> # Flattened histogram matrix (1D)
<del> hist = zeros(nbin.prod(), float)
<add> # Reshape is used so that overlarge arrays
<add> # will rai... | 2 |
Text | Text | add major features to the 6.1 release notes | 9bcf72fc1fa9648fb277a55bb3ba174d6393e9f8 | <ide><path>guides/source/6_1_release_notes.md
<ide> Ruby on Rails 6.1 Release Notes
<ide>
<ide> Highlights in Rails 6.1:
<ide>
<add>* Per-database Connection Switching
<add>* Horizontal Sharding
<add>* Strict Loading Associations
<add>* Delegated Types
<add>* Destroy Associations Async
<add>
<ide> These release notes... | 1 |
PHP | PHP | add copy button | 832d9a3e5a002d1b14d7fc5c15e37962a23b7783 | <ide><path>templates/layout/dev_error.php
<ide> padding: 10px;
<ide> }
<ide> .header-title {
<add> display: flex;
<add> align-items: center;
<ide> font-size: 30px;
<ide> margin: 0;
<ide> }
<del> .header-title:hover:after {
<del> content: attr(data-content);
<a... | 1 |
Text | Text | fix quickstart tutorial | e2b39088345e564a06ce332b740215600c29e481 | <ide><path>docs/tutorial/quickstart.md
<ide> Create a new Django project named `tutorial`, then start a new app called `quick
<ide> pip install djangorestframework
<ide>
<ide> # Set up a new project with a single application
<del> django-admin.py startproject tutorial
<add> django-admin.py startproject t... | 1 |
Ruby | Ruby | move some uninstall tests to new file | 4127a7b62422ed0b9c38dbe022ee958640b7c614 | <ide><path>Library/Homebrew/test/cmd/uninstall_spec.rb
<ide> .and be_a_success
<ide> end
<ide> end
<del>
<del>describe Homebrew do
<del> let(:dependency) { formula("dependency") { url "f-1" } }
<del> let(:dependent) do
<del> formula("dependent") do
<del> url "f-1"
<del> depends_on "dependency"
<d... | 2 |
Python | Python | fix bert example code for nsp and multiple choice | e2230ba77bbf68d9966458bbd0c66e15844ba456 | <ide><path>src/transformers/modeling_bert.py
<ide> def forward(
<ide> tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
<ide> model = BertForNextSentencePrediction.from_pretrained('bert-base-uncased')
<ide>
<del> input_ids = torch.tensor(tokenizer.encode("Hello, my dog is cute", add... | 2 |
Python | Python | fix the .t attribute in the array_api namespace | eb865fa4683bca9a9d7c840f8addd30e39b62f5b | <ide><path>numpy/array_api/_array_object.py
<ide> def T(self) -> Array:
<ide> # https://data-apis.org/array-api/latest/API_specification/array_object.html#t
<ide> if self.ndim != 2:
<ide> raise ValueError("x.T requires x to have 2 dimensions. Use x.mT to transpose stacks of matrices and perm... | 1 |
Text | Text | provide more guidance about process.version | 09e23b842b83ab0f2b093ea8d47821fabb47ede2 | <ide><path>doc/api/process.md
<ide> added: v0.1.3
<ide>
<ide> * {string}
<ide>
<del>The `process.version` property returns the Node.js version string in the form of
<del>`v<major>.<minor>.<patch>`.
<add>The `process.version` property contains the Node.js version string.
<ide>
<ide> ```js
<ide> console.log(`Version: ... | 1 |
PHP | PHP | selectmonth | ebaf26c71b44f1f7650ba79d55cae0a64f029e7f | <ide><path>src/Illuminate/Html/FormBuilder.php
<ide> public function selectYear()
<ide> * @param string $name
<ide> * @param string $selected
<ide> * @param array $options
<add> * @param string $format
<ide> * @return string
<ide> */
<del> public function selectMonth($name, $selected = null, $option... | 1 |
Python | Python | fix lint violations in the container api | 982665b586b826c644782905f036bf204acbb997 | <ide><path>libcloud/container/drivers/docker.py
<ide> def list_containers(self, image=None, all=True):
<ide> result = self.connection.request(
<ide> "/containers/json%s" % (ex)).object
<ide> except Exception as exc:
<del> if hasattr(exc, 'errno') and exc.errno == 111:
<add... | 2 |
PHP | PHP | add test for | 4d8a51f035becb5e289aaa5c4b2bec9b2867a4de | <ide><path>tests/TestCase/I18n/I18nTest.php
<ide> public function testBasicDomainFunction()
<ide> $package = new Package('default');
<ide> $package->setMessages([
<ide> 'Cow' => 'Le moo',
<del> 'The {0} is tasty' => 'The {0} is delicious'
<add> 'The ... | 1 |
Go | Go | add breakout tests | 221617dbcd9431f14a3779d8bac9aba52f78ea21 | <ide><path>pkg/archive/archive.go
<ide> type (
<ide> Archiver struct {
<ide> Untar func(io.Reader, string, *TarOptions) error
<ide> }
<add>
<add> // breakoutError is used to differentiate errors related to breaking out
<add> // When testing archive breakout in the unit tests, this error is expected
<add> // in orde... | 4 |
Text | Text | update http urls to https in doc/api | 7ab784000aad7df44a27d1dc2ad5a10395fd57e7 | <ide><path>doc/api/_toc.md
<ide> <div class="line"></div>
<ide>
<ide> * [GitHub Repo & Issue Tracker](https://github.com/nodejs/node)
<del>* [Mailing List](http://groups.google.com/group/nodejs)
<add>* [Mailing List](https://groups.google.com/group/nodejs)
<ide><path>doc/api/crypto.md
<ide> the `crypto`, `tls`, and `h... | 4 |
Ruby | Ruby | reduce object allocations in journey | 2db4c0203adc97d69a64fefc95f3fd62e642a05f | <ide><path>actionpack/lib/action_dispatch/journey/gtg/transition_table.rb
<ide> def move(t, a)
<ide> return [] if t.empty?
<ide>
<ide> regexps = []
<add> strings = []
<ide>
<del> t.map { |s|
<add> t.each { |s|
<ide> if states = @regexp_states[s]
<del> ... | 1 |
Javascript | Javascript | add a test for expect & checkexpectation | 6eeb06f234ea5766831f2c51dbb2e3c84bc9bff6 | <ide><path>test/parallel/test-http2-compat-expect-handling.js
<add>// Flags: --expose-http2
<add>'use strict';
<add>
<add>const common = require('../common');
<add>if (!common.hasCrypto)
<add> common.skip('missing crypto');
<add>const assert = require('assert');
<add>const http2 = require('http2');
<add>
<add>const ex... | 1 |
Javascript | Javascript | fix a comment in testinit.js | 7bdf307b51e4d4a891b123a96d4899e31bfba024 | <ide><path>test/data/testinit.js
<ide> QUnit.basicTests = ( QUnit.urlParams.module + "" ) === "basic";
<ide> // Says whether jQuery positional selector extensions are supported.
<ide> // A full selector engine is required to support them as they need to be evaluated
<ide> // left-to-right. Remove that property when sup... | 1 |
Go | Go | keep processing signals after the first one | 88cb9f3116e41b00b00fdccf6359a555e87061bd | <ide><path>commands.go
<ide> func (cli *DockerCli) CmdRun(args ...string) error {
<ide> if err := cli.CmdStop("-t", "4", runResult.ID); err != nil {
<ide> fmt.Printf("failed to stop container:", err)
<ide> }
<del> return
<ide> }
<ide> }
<ide> }() | 1 |
Go | Go | change url of robots.txt test to dockerproject.com | 367e66e9721c33a64ab091bd5430ab4a9af12083 | <ide><path>integration-cli/docker_cli_build_test.go
<ide> RUN mkdir /exists
<ide> RUN touch /exists/exists_file
<ide> RUN chown -R dockerio.dockerio /exists
<ide> COPY test_file1 test_file2 /exists/
<del>ADD test_file3 test_file4 https://docker.com/robots.txt /exists/
<add>ADD test_file3 test_file4 https://dockerprojec... | 1 |
Javascript | Javascript | simplify vector#slice in eager world | 156953cb5741212b9b44c3e6d6c22cfaa4b523a1 | <ide><path>dist/immutable.js
<ide> function resolveEnd(end, size) {
<ide> return resolveIndex(end, size, size);
<ide> }
<ide> function resolveIndex(index, size, defaultIndex) {
<del> return index == null ? defaultIndex : index < 0 ? Math.max(0, size + index) : size == null ? index : Math.min(size, index);
<add> ret... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.