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
Go
Go
use index=off if possible
8422d85087bfa770b62ef4e1daaca95ee6783d86
<ide><path>daemon/graphdriver/overlay2/overlay.go <ide> var ( <ide> <ide> useNaiveDiffLock sync.Once <ide> useNaiveDiffOnly bool <add> <add> indexOff string <ide> ) <ide> <ide> func init() { <ide> func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap <ide> return nil, fmt.Errorf("Storag...
1
Javascript
Javascript
add some todos, add hash type
96c5dd1cb027234facf3a61eba73a08a1c845294
<ide><path>lib/Compilation.js <ide> const ModuleDependency = require("./dependencies/ModuleDependency"); <ide> /** @typedef {import("./DependenciesBlock")} DependenciesBlock */ <ide> /** @typedef {import("./AsyncDependenciesBlock")} AsyncDependenciesBlock */ <ide> /** @typedef {import("./Dependency").DependencyLocation...
1
Mixed
Go
remove unsued sysinit package
29af9c14e442f5cf3760f439d8c0fffaf84e2268
<ide><path>sysinit/README.md <del>Sys Init code <del> <del>This code is run INSIDE the container and is responsible for setting <del>up the environment before running the actual process <ide><path>sysinit/sysinit.go <del>package sysinit <del> <del>import ( <del> "fmt" <del> "os" <del> "runtime" <del>) <del> <del>// Sys...
2
Javascript
Javascript
make regular elements like identity elements
87e021a83559001dec692e6872a69ce2752f8f59
<ide><path>packages/ember-htmlbars/lib/hooks/component.js <ide> import ComponentNodeManager from 'ember-htmlbars/node-managers/component-node-manager'; <del>import buildComponentTemplate from 'ember-views/system/build-component-template'; <add>import buildComponentTemplate, { buildHTMLTemplate } from 'ember-views/syste...
3
Java
Java
support decoding mono in jaxb2xmldecoder
af0cb5374271ddeaab09541eb155cba4a8204d61
<ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java <ide> public Flux<Object> decode(Publisher<DataBuffer> inputStream, ResolvableType ele <ide> return splitEvents.map(events -> unmarshal(events, outputClass)); <ide> } <ide> <add> @Override <add> public Mono<Object> decodeToM...
3
PHP
PHP
update description of filled rule
90886732cf6df6d8694287c3f9d92496a4f1c61b
<ide><path>resources/lang/en/validation.php <ide> 'email' => 'The :attribute must be a valid email address.', <ide> 'exists' => 'The selected :attribute is invalid.', <ide> 'file' => 'The :attribute must be a file.', <del> 'filled' => 'The :attri...
1
PHP
PHP
update default datasource file
baffc963dc7a93f302995fefe344e7648f22cca3
<ide><path>App/Config/datasources.default.php <ide> * by all models. <ide> */ <ide> Configure::write('Datasource.default', [ <del> 'datasource' => 'Database/Mysql', <add> 'datasource' => 'Cake\Database\Driver\Mysql', <ide> 'persistent' => false, <ide> 'host' => 'localhost', <ide> 'login' => 'user', <ide> * while ...
2
Python
Python
add test for ticket
78a867887f58e564622ebfb2ef6c753a22f14971
<ide><path>numpy/core/tests/test_regression.py <ide> def test_dtype_keyerrors_(self): <ide> assert_raises(IndexError, dt.__getitem__, 1) <ide> assert_raises(ValueError, dt.__getitem__, 0.0) <ide> <add> def test_lexsort_buffer_length(self): <add> """Ticket #1217, don't segfault.""" <add> ...
1
Javascript
Javascript
fix nested yield
7f2fa488945b3dfb8ebc91560ca6137cee22def0
<ide><path>packages/ember-handlebars/lib/helpers/yield.js <ide> var get = Ember.get, set = Ember.set; <ide> inserting the view's own rendered output at the `{{yield}}` location. <ide> <ide> An empty `<body>` and the following application code: <del> <add> <ide> ```javascript <ide> AView = Ember.View.extend({...
4
Go
Go
fix printf verbs of wrong types
5759b95e7e7c269af48a095773961ed8d13f8798
<ide><path>integration-cli/docker_cli_create_test.go <ide> func (s *DockerSuite) TestCreateWithPortRange(c *check.C) { <ide> c.Fatalf("Expected 1 ports binding, for the port %s but found %s", k, v) <ide> } <ide> if k.Port() != v[0].HostPort { <del> c.Fatalf("Expected host port %d to match published port %d",...
2
Go
Go
remove unused test-utilities
bca161d7cb219258d2ed208c92998db47c1b05d5
<ide><path>runconfig/config_test.go <ide> import ( <ide> "github.com/docker/docker/api/types/container" <ide> networktypes "github.com/docker/docker/api/types/network" <ide> "github.com/docker/docker/api/types/strslice" <del> "gotest.tools/assert" <del> is "gotest.tools/assert/cmp" <ide> ) <ide> <ide> type f struct...
1
Ruby
Ruby
standardize the use of current_adapter?
bb38df89bfbfc37913babe2edf6ad73b0dc80358
<ide><path>activerecord/test/cases/adapters/mysql/active_schema_test.rb <ide> def test_drop_table <ide> assert_equal "DROP TABLE `people`", drop_table(:people) <ide> end <ide> <del> if current_adapter?(:MysqlAdapter) or current_adapter?(:Mysql2Adapter) <add> if current_adapter?(:MysqlAdapter, :Mysql2Adapter) <...
9
Go
Go
propagate cpushares in mergeconfig
eef8b0d406412ffe6622ed1f2c858540eb7f75f1
<ide><path>builder.go <ide> func (builder *Builder) mergeConfig(userConf, imageConf *Config) { <ide> if userConf.MemorySwap == 0 { <ide> userConf.MemorySwap = imageConf.MemorySwap <ide> } <add> if userConf.CpuShares == 0 { <add> userConf.CpuShares = imageConf.CpuShares <add> } <ide> if userConf.PortSpecs == nil |...
1
Text
Text
fix example in repl documentation
73b0182553da673b12f5c07583dc34e01bb1d396
<ide><path>doc/api/repl.md <ide> const repl = require('repl'); <ide> var msg = 'message'; <ide> <ide> const r = repl.start('> '); <del>Object.defineProperty(r, 'm', { <add>Object.defineProperty(r.context, 'm', { <ide> configurable: false, <ide> enumerable: true, <ide> value: msg
1
Java
Java
add marble diagram to the single.filter method
c8a98520ee38152d8acce56bdb0a9e9127ccf7cc
<ide><path>src/main/java/io/reactivex/Single.java <ide> public final Single<T> doOnDispose(final Action onDispose) { <ide> * Filters the success item of the Single via a predicate function and emitting it if the predicate <ide> * returns true, completing otherwise. <ide> * <p> <del> * <img width="640...
1
Javascript
Javascript
fix iterable hook
19316037b03cf7e012dd8342c6764a3159603f45
<ide><path>packages/ember-glimmer/lib/environment.js <ide> export default class Environment extends GlimmerEnvironment { <ide> return ConditionalReference.create(reference); <ide> } <ide> <del> iterableFor(ref, args) { <del> let keyPath = args.named.get('key').value(); <del> return createIterable(ref, key...
1
Ruby
Ruby
remove unused webrick_server file
746a3856782293b7b81706498ebaf58b51da294e
<ide><path>railties/lib/rails/webrick_server.rb <del># Donated by Florian Gross <del> <del>require 'webrick' <del>require 'cgi' <del>require 'stringio' <del>require 'dispatcher' <del> <del>include WEBrick <del> <del>class CGI #:nodoc: <del> def stdinput <del> @stdin || $stdin <del> end <del> <del> def env_table...
1
Python
Python
update eye and tri to take dtype in mlab
1a83cc8b5cfc71b5a7f01a5dcefcd4de4e306cfd
<ide><path>numpy/oldnumeric/mlab.py <ide> from numpy.linalg import eig, svd <ide> from numpy.random import rand, randn <ide> <del>from typeconv import oldtype2dtype as o2d <add>from typeconv import convtypecode <ide> <del>def eye(N, M=None, k=0, typecode=None): <add>def eye(N, M=None, k=0, typecode=None, dtype=N...
1
Text
Text
replace stub with init summary and examples
8605ddfbfe7d2d58c7dd686c7fc683042c085aed
<ide><path>client/src/pages/guide/english/computer-hardware/rom/index.md <ide> title: ROM <ide> --- <ide> ## Read Only Memory <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/computer-hardware/rom/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>....
1
Text
Text
add v4.4.0-beta.1 to changelog
97aa2436b08e7569e4f6d4e8e692e32dc1d0e909
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.4.0-beta.1 (March 24, 2022) <add> <add>- [#19882](https://github.com/emberjs/ember.js/pull/19882) / [#20005](https://github.com/emberjs/ember.js/pull/20005) [FEATURE] Implement the `unique-id` helper per [RFC #0659](https://github.com/emberjs/rfcs/blob/...
1
Text
Text
add oxford comma
c562b63b7fdd7ba438b0c0be1bfe6a891b432d80
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> <!-- <del>Pull Requests without a descriptive title, thorough description or tests will be closed. <add>Pull Requests without a descriptive title, thorough description, or tests will be closed. <ide> <ide> Please include the benefit to end users; the reasons it does no...
1
Javascript
Javascript
add notes to remove in v5
3b2e3317908d1d6b1bb70b55306e03ba85401568
<ide><path>lib/webpack.js <ide> const defineMissingPluginError = (pluginName, errorMessage) => { <ide> }); <ide> }; <ide> <add>// TODO remove in webpack 5 <ide> defineMissingPluginError( <ide> "UglifyJsPlugin", <ide> "webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead....
1
Ruby
Ruby
build fix for plugin new generator change
a6c41601fe7d39320cc44091952e360ea2bae726
<ide><path>railties/test/generators/plugin_new_generator_test.rb <ide> def test_invalid_plugin_name_raises_an_error <ide> <ide> content = capture(:stderr){ run_generator [File.join(destination_root, "things4.3")] } <ide> assert_equal "Invalid plugin name things4.3. Please give a name which use only alphabetic ...
1
Ruby
Ruby
fix version audit for version subclasses
132e6a3a8eff2b1887f7d59ddce3806098e7cbde
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_specs <ide> else <ide> version_text = s.version unless s.version.detected_from_url? <ide> version_url = Version.parse(s.url) <del> if version_url.to_s == version_text.to_s <add> if version_url.to_s == version_text.to_s && s.ver...
1
Ruby
Ruby
extend #ds_file? in pathname
56a0afe5792d398d1682426bbebb1e53346b34d5
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def install_metafiles(from = Pathname.pwd) <ide> end <ide> end <ide> <add> def ds_store? <add> basename.to_s == ".DS_Store" <add> end <add> <ide> # https://bugs.ruby-lang.org/issues/9915 <ide> if RUBY_VERSION == "2.0.0" <ide> prepend Module.new { ...
2
Go
Go
use canonical names for http headers
948c2c45bb9215b2f08d1f605215249da926760f
<ide><path>client/request.go <ide> func (cli *Client) addHeaders(req *http.Request, headers headers) *http.Request <ide> // Add CLI Config's HTTP Headers BEFORE we set the Docker headers <ide> // then the user can't change OUR headers <ide> for k, v := range cli.customHTTPHeaders { <del> if versions.LessThan(cli.ve...
1
Javascript
Javascript
remove duplicated client code
45f80409dca104aa824cfbbca13baaf102f2c077
<ide><path>packages/next/client/index.js <ide> export async function render (props) { <ide> export async function renderError (props) { <ide> const { App, err } = props <ide> <add> // In development runtime errors are caught by react-error-overlay <add> // In production we catch runtime errors using componentDidCa...
1
Javascript
Javascript
remove superfluous elses
cc00e6610021fb998ad019408ced7301f95d3f99
<ide><path>d3.js <ide> d3 = function() { <ide> if (!dx && q < 0) return; <ide> r = -q / dx; <ide> if (dx < 0) { <del> if (r < t0) return; else if (r < t1) t1 = r; <add> if (r < t0) return; <add> if (r < t1) t1 = r; <ide> } else if (dx > 0) { <del> if (r > t1) return; ...
2
Javascript
Javascript
add redux wiring for legacy certs
c2ffd6471b91047206150548d72b227c307d0f03
<ide><path>client/src/components/settings/Certification.js <ide> class CertificationSettings extends Component { <ide> const isCertClaimed = this.getUserIsCertMap()[certName]; <ide> const initialObject = {}; <ide> let filledforms = 0; <del> legacyProjectMap[certName].forEach(element => { <add> legacyP...
3
Go
Go
reset stdin config before running build actions
0f293f9eb31bdf8ff7adcb31baafca3f6fde3aab
<ide><path>builder/dockerfile/internals.go <ide> func (b *Builder) processImageFrom(img builder.Image) error { <ide> onBuildTriggers := b.runConfig.OnBuild <ide> b.runConfig.OnBuild = []string{} <ide> <add> // Reset stdin settings as all build actions run without stdin <add> b.runConfig.OpenStdin = false <add> b.run...
1
PHP
PHP
update doc blocks
b6d1d1c7158e62035813bad1515fced87ee9e53f
<ide><path>lib/Cake/Database/Schema/MysqlSchema.php <ide> public function extraSchemaColumns() { <ide> /** <ide> * Generate the SQL to create a table. <ide> * <del> * @param Table $table Table instance <add> * @param Cake\Database\Schema\Table $table Table instance <ide> * @param array $columns The columns to go ins...
3
Javascript
Javascript
fix tests when inspector is disabled
7c8a60851c459ea18afbfc54bfc8cf7394ea56c3
<ide><path>test/parallel/test-repl-history-navigation.js <ide> const tests = [ <ide> env: { NODE_REPL_HISTORY: defaultHistoryPath }, <ide> test: ['const util = {}', ENTER, <ide> 'ut', RIGHT, ENTER], <del> expected: common.hasIntl && common.hasCrypto ? [ <add> expected: [ <ide> prompt, ......
1
Javascript
Javascript
use setter function
a31539c59f4e26b89a8add347ecde70d3a527e86
<ide><path>examples/jsm/math/MeshSurfaceSampler.js <ide> var MeshSurfaceSampler = ( function () { <ide> } <ide> <ide> this.geometry = geometry; <add> this.randomFunction = Math.random; <ide> <ide> this.positionAttribute = this.geometry.getAttribute( 'position' ); <ide> this.weightAttribute = null; <ide> var ...
1
Python
Python
add predict paths to _ml models
a21d8f3f0b2b470ce1fd17df96429a2300b04018
<ide><path>spacy/_ml.py <ide> def drop_layer_fwd(X, drop=0.): <ide> return layer.begin_update(X, drop=drop) <ide> else: <ide> return X, lambda dX, sgd=None: dX <del> return wrap(drop_layer_fwd, layer) <add> <add> model = wrap(drop_layer_fwd, layer) <add> model.predict = layer <a...
1
Text
Text
fix a typo in dockerfile.5.md
c4340de04faec1b9d54da62a8a2174da4d6a301b
<ide><path>docs/man/Dockerfile.5.md <ide> or <ide> whitespace. <ide> The ADD instruction copies new files, directories <ide> or remote file URLs to the filesystem of the container at path <dest>. <del> Mutliple <src> resources may be specified but if they are files or directories <add> Multiple <src> resources may b...
1
Java
Java
fix checkstyle error
0a7fdb380f78321a943f070fb89485f039265b96
<ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/HttpHeadResponseDecoratorTests.java <ide> import java.nio.charset.StandardCharsets; <ide> <ide> import io.netty.buffer.PooledByteBufAllocator; <del>import org.junit.After; <add>import org.junit.jupiter.api.AfterEach; <ide> import org.junit.ju...
1
Python
Python
fix typo in "make_mask" documentation
88c2cb10958de6a063a2f42f81cf8e2eb4dca080
<ide><path>numpy/ma/core.py <ide> def make_mask(m, copy=False, shrink=True, dtype=MaskType): <ide> Return `m` as a boolean mask, creating a copy if necessary or requested. <ide> The function can accept any sequence that is convertible to integers, <ide> or ``nomask``. Does not require that contents must be...
1
PHP
PHP
add test for spread operator as well
19daf251030fdec427444bb00815dd1462b85d64
<ide><path>tests/TestCase/Controller/ControllerFactoryTest.php <ide> public function testInvokeInjectParametersRequiredWithPassedParameters() <ide> */ <ide> public function testInvokeInjectPassedParametersVariadic() <ide> { <del> $this->container->add(stdClass::class, json_decode('{"key":"value"}'))...
2
Ruby
Ruby
catch all exceptions in brew
fe283686979c59dd86861d111a3211d93ccb47b2
<ide><path>Library/Homebrew/brewkit.rb <ide> def brew <ide> yield self <ide> end <ide> end <del> rescue Interrupt, RuntimeError <del> if ARGV.include? '--debug' <add> rescue => e <add> if e.kind_of? Interrupt and ARGV.include? '--debug' <ide> # debug mode ...
1
PHP
PHP
add tobase method to the eloquent builder
19958d826c6e8a83dc50dc256f6ce669424f3410
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function getQuery() <ide> return $this->query; <ide> } <ide> <add> /** <add> * Get a base query builder instance. <add> * <add> * @return \Illuminate\Database\Query\Builder <add> */ <add> public function toBase() <ad...
2
Text
Text
add additional cra info to todos example
a44c4f4ec9bfe6e0fe4d5bd155a3f399ab123fbe
<ide><path>examples/todos/README.md <ide> # Redux Todos Example <ide> <del>This project template was built with [Create React App](https://github.com/facebookincubator/create-react-app). <add>This project template was built with [Create React App](https://github.com/facebookincubator/create-react-app), which provides ...
1
Ruby
Ruby
prepare bottle tooling for formula revisions
44dc21ca5d231d7860f0abe82fcb1406eee955f7
<ide><path>Library/Homebrew/bottles.rb <ide> def bottle_filename f, options={} <ide> options = { :tag => bottle_tag }.merge(options) <ide> name = f.name.downcase <del> version = f.stable.version <add> version = PkgVersion.new(f.stable.version, f.revision) <ide> options[:revision] ||= f.bottle.revision.to_i if f...
3
Java
Java
allow plugging in custom requestexpectationmanager
08a08725be865a620373e36ceec0820e36f1fd83
<ide><path>spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java <ide> import org.springframework.util.Assert; <ide> <ide> /** <del> * Base class for {@code RequestExpectationManager} implementations. <del> * Creates and contains expectations and stores actual requests. <...
7
Javascript
Javascript
fix missing controllermodel usage
fb84d84123f8b433b83c6ffa133a765a00ac380e
<ide><path>examples/jsm/webxr/XRControllerModelFactory.js <ide> var XRControllerModelFactory = ( function () { <ide> null, <ide> () => { <ide> <del> throw new Error( `Asset ${motionController.assetUrl} missing or malformed.` ); <add> throw new Error( `Asset ${controllerModel.motionController.as...
1
Ruby
Ruby
use parser to parse args
78b41b07f12d503bb130170f1cde87176e8fec0c
<ide><path>Library/Homebrew/dev-cmd/man.rb <ide> require "formula" <ide> require "erb" <ide> require "ostruct" <add>require "cli_parser" <ide> <ide> module Homebrew <ide> module_function <ide> module Homebrew <ide> TARGET_DOC_PATH = HOMEBREW_REPOSITORY/"docs" <ide> <ide> def man <add> @args = Homebrew::CLI::...
1
Javascript
Javascript
make ngswitch compatible with controller bc module
9b7c1d0f7ce442d4ad2ec587e66d2d335e64fa4e
<ide><path>src/ng/directive/ngSwitch.js <ide> var NG_SWITCH = 'ng-switch'; <ide> var ngSwitchDirective = valueFn({ <ide> restrict: 'EA', <ide> require: 'ngSwitch', <del> controller: function ngSwitchController() { <add> // asks for $scope to fool the BC controller module <add> controller: ['$scope', function ngS...
1
Javascript
Javascript
fix comment typos and code format
9e7fd8e810dc5f2365201e09ad3eaa6d34c52e14
<ide><path>benchmark/common.js <ide> function Benchmark(fn, options) { <ide> Benchmark.prototype._parseArgs = function(argv, options) { <ide> const cliOptions = Object.assign({}, options); <ide> <del> // Parse configuarion arguments <add> // Parse configuration arguments <ide> for (const arg of argv) { <ide> ...
2
Text
Text
add changelog for unreleased commits
7bdf93b17a35a5d8fcf0ceae0bf48ed5e6b16688
<ide><path>CHANGELOG.md <ide> Click to see more. <ide> </summary> <ide> <del>No unreleased changes yet. <add>### All Packages <add> <add>* Fix an accidental extra global variable in the UMD builds. ([@gaearon](https://github.com/gaearon) in [#10935](https://github.com/facebook/react/pull/10935)) <add> <add>### R...
1
Ruby
Ruby
use class name as xml_type_names key
25cce680134fb97cf2e2b5be03e0043272eaa710
<ide><path>activerecord/lib/active_record/xml_serialization.rb <ide> def compute_value <ide> end <ide> end <ide> end <del> <add> <ide> class MethodAttribute < Attribute #:nodoc: <ide> protected <ide> def compute_type <del> Hash::XML_TYPE_NAMES[@record.send(name).class]...
2
Java
Java
remove deprecated warnings
75c88ffbeba845c49c4869400d7206ff240339cd
<ide><path>spring-context/src/test/java/org/springframework/aop/target/CommonsPoolTargetSourceTests.java <ide> * @author Rob Harrop <ide> * @author Chris Beams <ide> */ <add>@SuppressWarnings("deprecation") <ide> public class CommonsPoolTargetSourceTests { <ide> <ide> /**
1
Java
Java
register lazy @jmslistener components
5c9f09c2c778be2dc0def9c471ceb3061fc8472a
<ide><path>spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistrar.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> *...
3
Python
Python
update interp docstring
1d901ee669aa1999d074bb26612d8196d8b27dc9
<ide><path>numpy/lib/function_base.py <ide> def interp(x, xp, fp, left=None, right=None, period=None): <ide> The x-coordinates at which to evaluate the interpolated values. <ide> <ide> xp : 1-D sequence of floats <del> The x-coordinates of the data points, must be increasing if argument <del> ...
1
Ruby
Ruby
use array.wrap not array()
41af6d9a78446a5219a321cf638945b1608cefd8
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> require 'mail' <ide> require 'action_mailer/tmail_compat' <ide> require 'action_mailer/collector' <add>require 'active_support/core_ext/array/wrap' <ide> <ide> module ActionMailer #:nodoc: <ide> # Action Mailer allows you to send email from your application usi...
3
Ruby
Ruby
pull effective arch detection into a method
e0f86a1a86ec3c42e53fa4b6d29753925aaf2e09
<ide><path>Library/Homebrew/extend/ENV/std.rb <ide> def set_cpu_flags flags, default=DEFAULT_FLAGS, map=Hardware::CPU.optimization_f <ide> remove flags, %r{-mssse3} <ide> remove flags, %r{-msse4(\.\d)?} <ide> append flags, xarch unless xarch.empty? <add> append flags, map.fetch(effective_arch, default) <...
1
Text
Text
fix method markdown highlight
5166a1b4461b55a2d3f073198aa05d0298200d22
<ide><path>docs/docs/reference-react-component.md <ide> In particular, `this.props.children` is a special prop, typically defined by the <ide> <ide> The state contains data specific to this component that may change over time. The state is user-defined, and it should be a plain JavaScript object. <ide> <del>If you do...
1
PHP
PHP
add dropcolumns method on the schema class
fc600c4594f0122be5f455cbeb908d1af8373ffd
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> public function blueprintResolver(Closure $resolver) <ide> { <ide> $this->resolver = $resolver; <ide> } <add> <add> /** <add> * Drop columns from a table schema. <add> * <add> * @param string $table <add> * @param string|a...
2
Javascript
Javascript
fix broken tests
a65cbb8c35ed0f7b8187c139cd82b3f7af1cb246
<ide><path>src/test/moment/locale.js <ide> test('duration deprecations', function (assert) { <ide> }); <ide> <ide> test('from and fromNow with invalid date', function (assert) { <del> assert.equal(moment(NaN).from(), 'Invalid Date', 'moment.from with invalid moment'); <del> assert.equal(moment(NaN).fromNow(), 'I...
1
Javascript
Javascript
add automatic retry to download script
f8545f6eb8b2041df5efffe8987a3fcb63321190
<ide><path>scripts/release/get-build-id-for-commit.js <ide> <ide> const fetch = require('node-fetch'); <ide> <add>const POLLING_INTERVAL = 5 * 1000; // 5 seconds <add>const RETRY_TIMEOUT = 10 * 60 * 1000; // 10 minutes <add> <add>function wait(ms) { <add> return new Promise(resolve => { <add> setTimeout(() => res...
1
Javascript
Javascript
add version of lumin
f8648ce40b18a403fb0ae27052acce88e33ed1c7
<ide><path>examples/js/vr/HelioWebXRPolyfill.js <ide> * @author mvilledieu / http://github.com/mvilledieu <ide> */ <ide> <del>if (/(Helio)/g.test(navigator.userAgent) && "xr" in navigator) { <del> console.log("Helio WebXR Polyfill", navigator.xr); <add>if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigato...
1
Ruby
Ruby
use travel_to to in date_helper_test.rb
64f3bd0a8d8709ea2c6f082838461201bffcdcfa
<ide><path>actionview/test/template/date_helper_test.rb <ide> def test_select_year <ide> end <ide> <ide> def test_select_year_with_empty_hash_value_and_no_start_year <del> expected = +%(<select id="date_year" name="date[year]">\n) <del> expected << %(<option value="2014">2014</option>\n<option value="2015">2...
1
PHP
PHP
move bindingresolutionexception exception
df8df9eb3a3da7c9f93669cc261b9658742da207
<ide><path>src/Illuminate/Container/BindingResolutionException.php <ide> <ide> use Exception; <ide> <add>/** <add> * @deprecated since version 5.1. Use Illuminate\Contracts\Container\BindingResolutionException. <add> */ <ide> class BindingResolutionException extends Exception <ide> { <ide> } <ide><path>src/Illuminate...
4
Javascript
Javascript
add banner to lint-md.js by rollup.config.js
27cf6f7629e101de59b12f1a1bd053a5e6525b59
<ide><path>tools/lint-md.js <ide> 'use strict'; <ide> <add>// Don't change this file manually, <add>// it is generated from tools/node-lint-md-cli-rollup <add> <ide> function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } <ide> <ide> var stream = _interopDefa...
2
PHP
PHP
implement arrayaccess on testresponse
f5c3c60d52eccd77274e586fc4c775374e826b0f
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> <ide> namespace Illuminate\Foundation\Testing; <ide> <add>use ArrayAccess; <ide> use Closure; <ide> use Illuminate\Contracts\View\View; <ide> use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Trait...
1
Python
Python
add config to enable xla in tf 2.0
dba24007f47e9de3eb123207ca46838b32f50ad9
<ide><path>official/resnet/keras/keras_cifar_main.py <ide> def run(flags_obj): <ide> Returns: <ide> Dictionary of training and eval stats. <ide> """ <del> config = keras_common.get_config_proto() <ide> # TODO(tobyboyd): Remove eager flag when tf 1.0 testing ends. <ide> # Eager is default in tf 2.0 and shou...
3
PHP
PHP
remove typehint on $linkmodel argument
5a944734b8261079bb83d1b8b6dce1b6276e3c57
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function buildAssociationQuery(Model $Model, $queryData) { <ide> * String representing a query. <ide> * True, when $external is false and association $type is 'hasOne' or 'belongsTo'. <ide> */ <del> public function generateAssociationQuery(Model $Mo...
1
Ruby
Ruby
show invoked generators options on meta generators
c03585aa8da175888ad0893ef29d887f87fb749b
<ide><path>railties/lib/generators/base.rb <ide> def self.source_root <ide> # <ide> def self.desc(description=nil) <ide> return super if description <del> usage = File.join(source_root, "..", "USAGE") <add> usage = File.expand_path(File.join(source_root, "..", "USAGE")) <ide> <ide> ...
4
PHP
PHP
fix pivot when is force filled
a0673f2ac215066c80a4945c3c6510ab6aedb57a
<ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php <ide> public function __construct(Model $parent, $attributes, $table, $exists = false) <ide> // The pivot model is a "dynamic" model since we will set the tables dynamically <ide> // for the instance. This allows it work for any intermediat...
2
Python
Python
add test for issue-1959
7ba4111554cd8637763947d21decbab25bd95369
<ide><path>spacy/tests/regression/test_issue1959.py <add># coding: utf8 <add>from __future__ import unicode_literals <add>import pytest <add> <add>from ..util import load_test_model <add> <add> <add>@pytest.mark.models('en') <add>def test_issue1959(): <add> texts = ['Apple is looking at buying U.K. startup for $1 bi...
1
Python
Python
adjust default attrs for textcat configs
865691d169c3be413007f0d7324e03a7aac3b3cb
<ide><path>spacy/pipeline/textcat.py <ide> [model.tok2vec.embed] <ide> @architectures = "spacy.MultiHashEmbed.v2" <ide> width = 64 <del>rows = [2000, 2000, 1000, 1000, 1000, 1000] <del>attrs = ["ORTH", "LOWER", "PREFIX", "SUFFIX", "SHAPE", "ID"] <add>rows = [2000, 2000, 500, 1000, 500] <add>attrs = ["NORM", "LOWER", "P...
2
Ruby
Ruby
check dependencies for a compatible c++ stdlib
7c3d6ea81c23d4c2c9daf4c9d97e75e6ac6320a5
<ide><path>Library/Homebrew/build.rb <ide> end <ide> <ide> require 'global' <add>require 'cxxstdlib' <ide> require 'debrew' if ARGV.debug? <ide> <ide> def main <ide> def install <ide> end <ide> end <ide> <add> # We only support libstdc++ right now <add> stdlib_in_use = CxxStdlib.new(:libstdcxx, ENV.c...
3
Java
Java
remove synchronized block around pathpatternparser
8db4b2f7ed4b3a8efb8eadf630ae8693048a641b
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/RequestPredicates.java <ide> public static RequestPredicate path(String pattern) { <ide> */ <ide> public static Function<String, RequestPredicate> pathPredicates(PathPatternParser patternParser) { <ide> Assert.notNull(patternP...
1
PHP
PHP
unify exception formatting
ba0fa733243fd9b5abac67e40c9a1f7ba2ca0391
<ide><path>src/Illuminate/Database/Connectors/ConnectionFactory.php <ide> protected function createConnection($driver, $connection, $database, $prefix = ' <ide> return new SqlServerConnection($connection, $database, $prefix, $config); <ide> } <ide> <del> throw new InvalidArgumentExceptio...
22
Javascript
Javascript
fix small typo in code example
52c1498e25992f93ada72ea0621755ff2242b97f
<ide><path>src/ng/directive/input.js <ide> function checkboxInputType(scope, element, attr, ctrl) { <ide> <tt>myForm.userName.$valid = {{myForm.userName.$valid}}</tt><br> <ide> <tt>myForm.userName.$error = {{myForm.userName.$error}}</tt><br> <ide> <tt>myForm.lastName.$valid = {{myForm.lastNam...
1
Ruby
Ruby
return the installed path(s) from install
435518252910b9839033cab4da1c4138d1a8bd99
<ide><path>Library/Homebrew/pathname+yeast.rb <ide> def rename newname <ide> <ide> def install src <ide> if src.is_a? Array <del> src.each {|src| install src } <add> src.collect {|src| install src } <ide> elsif File.exist? src <ide> mkpath <ide> if File.symlink? src <ide> # we u...
1
Javascript
Javascript
fix template compiler
8cb2c6b27e68c30f1528a55970a943eee1a6a9f2
<ide><path>ember-cli-build.js <ide> module.exports = function() { <ide> 'container/lib/**', <ide> 'ember-environment/index.js', <ide> 'ember-environment/lib/**', <add> 'ember-browser-environment/index.js', <add> 'ember-browser-environment/lib/**', <ide> 'ember-glimmer/index...
1
Ruby
Ruby
reduce calls to hash#[]
cf00da66924de0a4435391be70efe04ccfb12787
<ide><path>lib/arel/engines/sql/christener.rb <ide> def initialize <ide> def name_for(relation) <ide> table = relation.table <ide> name = table.table_alias || table.name <del> @names[name] ||= [] <add> list = @names[name] ||= [] <ide> <del> @names[name] << table unless @names...
1
Javascript
Javascript
fix test-http-conn-reset.js on osx
3a349726720b609fb19f06e0a870f6f400e19a6e
<ide><path>lib/http.js <ide> ClientRequest.prototype.abort = function() { <ide> } <ide> }; <ide> <add> <add>function createHangUpError() { <add> var error = new Error('socket hang up'); <add> error.code = 'ECONNRESET'; <add> return error; <add>} <add> <add> <ide> ClientRequest.prototype.onSocket = function(socket...
2
Ruby
Ruby
remove unused variable step#@time
4e927d9ce855cbd74b2f893237bb2b6489f88da8
<ide><path>Library/Homebrew/dev-cmd/test-bot.rb <ide> def resolve_test_tap <ide> # Wraps command invocations. Instantiated by Test#test. <ide> # Handles logging and pretty-printing. <ide> class Step <del> attr_reader :command, :name, :status, :output, :time <add> attr_reader :command, :name, :status, :outpu...
1
Text
Text
update line 1
f194ddb7fc645ede9a18ab47f3ff7f121c03d221
<ide><path>guide/english/computer-hardware/cpu/index.md <ide> title: CPU <ide> --- <ide> <ide> # CPU <del>**The Central Processing Unit (CPU)** serves as the "brain" of a computer, allowing it to perform essential computational tasks. <add>**The Central Processing Unit (CPU)** often refered to as the "brain" of a comp...
1
Javascript
Javascript
use compilefunction over module.wrap
d345b0dc128d99afc8476f58ed5546b43d52d30a
<ide><path>lib/internal/modules/cjs/loader.js <ide> Module.prototype._compile = function(content, filename) { <ide> <ide> content = stripShebang(content); <ide> <del> // create wrapper function <del> var wrapper = Module.wrap(content); <del> <del> var compiledWrapper = vm.runInThisContext(wrapper, { <del> fil...
1
Javascript
Javascript
log missing roots instead of extra roots twice
8e15d9656acbf9524b83402dda7a0ab77af9d8ba
<ide><path>spec/main-process/atom-application.new.test.js <ide> class LaunchScenario { <ide> parts.push(`* extra roots ${shorten(comparison.extraRoots)}\n`) <ide> } <ide> if (comparison.missingRoots.length > 0) { <del> parts.push(`* missing roots ${shorten(comparison.extraRoots)}\n`) <add> ...
1
Javascript
Javascript
add invalidate token handler
09174c9687eb88cc4ba8c698b51ab8f65dfd957a
<ide><path>server/boot/user.js <ide> module.exports = function(app) { <ide> router.get('/email-signin', getEmailSignin); <ide> router.get('/deprecated-signin', getDepSignin); <ide> router.get('/update-email', getUpdateEmail); <del> router.get('/passwordless-auth', getPasswordlessAuth); <add> router.get('/passwo...
1
Go
Go
use map for capabilities to simplify lookup
72b1fb59fed262287d81e8628138fa7e3dd6b294
<ide><path>oci/caps/utils.go <ide> func init() { <ide> } <ide> capName := "CAP_" + strings.ToUpper(c.String()) <ide> allCaps[i] = capName <del> capabilityList[i] = &CapabilityMapping{ <add> capabilityList[capName] = &CapabilityMapping{ <ide> Key: capName, <ide> Value: c, <ide> } <ide> type ( <ide> V...
1
Text
Text
fix import names in integration example
d063f654cfd1b2f4e17f9bcd810680fcb5efbded
<ide><path>docs/docs/getting-started/integration.md <ide> var myChart = new Chart(ctx, {...}); <ide> Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use. <ide> <ide> ```javascript <del>import { Chart, LineController, Line, Point, Li...
1
PHP
PHP
remove lies in paginatorhelper doc blocks
9d5097698f2d05ce6c979ccb34a5fd19fff7b93e
<ide><path>Cake/View/Helper/PaginatorHelper.php <ide> class PaginatorHelper extends Helper { <ide> * <ide> * The values that may be specified are: <ide> * <del> * - `format` Format of the counter. Supported formats are 'range' and 'pages' <del> * and custom (default). In the default mode the supplied string is pa...
1
PHP
PHP
use methods that exist
219faee36f74e1962e3810297628fc40aded5d5f
<ide><path>src/Console/CommandCollection.php <ide> public function autoDiscover() <ide> $this->add($info['fullName'], $info['class']); <ide> } <ide> } catch (InvalidArgumentException $e) { <del> Log::warn("Could not add {$info['class']} via ...
1
Ruby
Ruby
fix frozen string error
7ab50ef6f611b88915112b8b96db93f198e43e1a
<ide><path>Library/Homebrew/rubocops/homepage.rb <ide> def autocorrect(node) <ide> lambda do |corrector| <ide> return if node.nil? <ide> <del> homepage = string_content(node) <add> homepage = string_content(node).dup <ide> homepage.sub!("readthedocs.org", "readth...
1
Python
Python
change token.generate_key to a classmethod
35c0abf24ea4a6c38e6fc2ee22b4aabe73776783
<ide><path>rest_framework/authtoken/models.py <ide> def save(self, *args, **kwargs): <ide> self.key = self.generate_key() <ide> return super().save(*args, **kwargs) <ide> <del> def generate_key(self): <add> @classmethod <add> def generate_key(cls): <ide> return binascii.hexlify(os....
2
Python
Python
add server default for map_index in log table
f471d4f54dafdb57c04346421d89795381f79017
<ide><path>airflow/models/log.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> <del>from sqlalchemy import Column, Index, Integer, String, Text <add>from sqlalchemy import Column, Index, Integer, String, Text, text <ide> <ide> from airflow.models.base import Base, St...
1
Python
Python
allow newaxis indexing for `array_api` arrays
befef7b26773eddd2b656a3ab87f504e6cc173db
<ide><path>numpy/array_api/_array_object.py <ide> _dtype_categories, <ide> ) <ide> <del>from typing import TYPE_CHECKING, Optional, Tuple, Union, Any <add>from typing import TYPE_CHECKING, Optional, Tuple, Union, Any, SupportsIndex <ide> import types <ide> <ide> if TYPE_CHECKING: <ide> def _normalize_two_args(x1,...
2
Javascript
Javascript
remove duplicated code in shaderlib
158676fe0911ff735c2f1289c9d631d802055a42
<ide><path>src/renderers/shaders/ShaderChunk.js <ide> ].join("\n") <ide> <ide> <del>}; <del> <del>THREE.UniformsUtils = { <del> <del> merge: function ( uniforms ) { <del> <del> var u, p, tmp, merged = {}; <del> <del> for ( u = 0; u < uniforms.length; u ++ ) { <del> <del> tmp = this.clone( uniforms[ u ] ); <del> ...
1
PHP
PHP
use bar "or" syntax
ea6c72149c67697c84c28c21afedf434d6184842
<ide><path>src/Illuminate/Http/Response.php <ide> protected function morphToJson($content) <ide> */ <ide> protected function shouldBeJson($content) <ide> { <del> return ($content instanceof JsonableInterface or <del> $content instanceof ArrayObject or <del> is_array($content)); <add> return $content i...
1
Python
Python
remove wheel and pex files in fab clean
fbb67b1b4bd2ba3e62bc2bea50c31e4cfd4a9ecf
<ide><path>fabfile.py <ide> def pex(): <ide> <ide> def clean(): <ide> with lcd(path.dirname(__file__)): <add> local('rm -f dist/*.whl') <add> local('rm -f dist/*.pex') <ide> with virtualenv(VENV_DIR) as venv_local: <ide> venv_local('python setup.py clean --all') <ide>
1
Ruby
Ruby
initialize path to nil or a pathname
0d08a5af00011679acd6d82714e9883f93b9fb7c
<ide><path>Library/Homebrew/formula.rb <ide> def initialize name='__UNKNOWN__', path=nil <ide> @name=name <ide> validate_variable :name <ide> <del> @path=path <add> @path = path.nil? ? nil : Pathname.new(path) <ide> <ide> set_instance_variable 'version' <ide> @version ||= @spec_to_use.detect_ver...
1
PHP
PHP
get default value
607b23b74213a63f6cc363be39794faee78c5160
<ide><path>system/session.php <ide> public static function load() <ide> static::$session = static::driver()->load($id); <ide> } <ide> <del> // --------------------------------------------------------- <ide> // If the session is invalid or expired, start a new one. <del> // ------------------------------------...
1
Go
Go
remove unused constants in plugin_responses
9bb57aa3fef6c1f31e9e8344e06670c3d41e4395
<ide><path>api/types/plugin_responses.go <ide> import ( <ide> // PluginsListResponse contains the response for the Engine API <ide> type PluginsListResponse []*Plugin <ide> <del>const ( <del> authzDriver = "AuthzDriver" <del> graphDriver = "GraphDriver" <del> ipamDriver = "IpamDriver" <del> networkDriver = "Net...
1
Javascript
Javascript
add type checking for path inputs
eb995d682201018b2a47c44e921848cfa31486a2
<ide><path>lib/path.js <ide> 'use strict'; <ide> <add>const util = require('util'); <ide> const isWindows = process.platform === 'win32'; <ide> <add>function assertPath(path) { <add> if (typeof path !== 'string') { <add> throw new TypeError('Path must be a string. Received ' + <add> util.in...
3
Javascript
Javascript
stabilize minimal server rendering api
37cde3d864406f2af65dc03eae45a216ea969600
<ide><path>src/core/React.js <ide> var ReactCompositeComponent = require('ReactCompositeComponent'); <ide> var ReactComponent = require('ReactComponent'); <ide> var ReactDOM = require('ReactDOM'); <ide> var ReactMount = require('ReactMount'); <add>var ReactServerRendering = require('ReactServerRendering'); <ide> <ide>...
6
Ruby
Ruby
remove another call to `scope`
ae3269b79b32ecbb141a37b4c8ccf6e330b1a631
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def scope(*args) <ide> # controller "food" do <ide> # match "bacon", action: :bacon, via: :get <ide> # end <del> def controller(controller, options={}) <del> options[:controller] = controller <del> ...
1
Python
Python
update structured array docs to reflect , fixups
a08da3f34e8c1fe7e8997f254acf1c92eea520f9
<ide><path>numpy/doc/structured_arrays.py <ide> structured datatypes, and it may also be a :term:`sub-array` which behaves like <ide> an ndarray of a specified shape. The offsets of the fields are arbitrary, and <ide> fields may even overlap. These offsets are usually determined automatically by <del>numpy, but can als...
1