content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Javascript
Javascript
hide reactelement constructor
20af6b0a140c84f46d214cdc90a7c7aa9da1bf83
<ide><path>src/core/ReactElement.js <ide> var ReactElement = function(type, key, ref, owner, context, props) { <ide> this.props = props; <ide> }; <ide> <add>// We intentionally don't expose the function on the constructor property. <add>// ReactElement should be indistinguishable from a plain object. <add>ReactEleme...
2
Ruby
Ruby
fix a regression in association preloader
830da94739830f3b509feb397e94265514f6075e
<ide><path>activerecord/lib/active_record/associations/preloader/batch.rb <ide> class Preloader <ide> class Batch # :nodoc: <ide> def initialize(preloaders, available_records:) <ide> @preloaders = preloaders.reject(&:empty?) <del> @available_records = available_records.flatten <add> ...
2
Python
Python
fix advanced activations
a066cf8680372f107f4da35b1518998a851e02b7
<ide><path>keras/engine/topology.py <ide> class Container(Layer): <ide> def __init__(self, input, output, name=None): <ide> # handle name argument <ide> if not name: <del> name = self.__class__.__name__.lower() + '_' + str(id(self)) <add> prefix = self.__class__.__name__.lower(...
4
Javascript
Javascript
ensure promises resolve in webcrypto tests
dc8d54d3654ba340c542c72dd08bee82eb52e72f
<ide><path>test/parallel/test-webcrypto-digest.js <ide> const kData = (new TextEncoder()).encode('hello'); <ide> })); <ide> })().then(common.mustCall()); <ide> <del>[1, [], {}, null, undefined].forEach((i) => { <del> assert.rejects(subtle.digest(i), { message: /Unrecognized name/ }); <del>}); <add>Promise.all([1, [...
4
Ruby
Ruby
fix formula path
db559a97dc7f1a7461b0cf1fbc4524691ac4eab4
<ide><path>Library/Homebrew/formula.rb <ide> def self.factory name <ide> end <ide> <ide> def self.path name <del> HOMEBREW_PREFIX+'Library'+'Formula'+"#{name.downcase}.rb" <add> HOMEBREW_REPOSITORY+"Library/Formula/#{name.downcase}.rb" <ide> end <ide> <ide> def deps
1
Text
Text
add tox note
5422eedd0a3f97c9ac9e93645b4e94cdfbe07f0d
<ide><path>README.md <ide> To run the tests. <ide> <ide> ./rest_framework/runtests/runtests.py <ide> <add>To run the tests against all supported configurations, first install [the tox testing tool][tox] globally, using `pip install tox`, then simply run `tox`: <add> <add> tox <add> <ide> # License <ide> <ide...
1
Javascript
Javascript
add string as possible proptype for 'systemicon'
dd9c1e16ee372f419e9c4e5757dc25cb3e2dcd66
<ide><path>Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js <ide> var TabBarItemIOS = React.createClass({ <ide> /** <ide> * A custom icon for the tab. It is ignored when a system icon is defined. <ide> */ <del> icon: Image.propTypes.source, <add> icon: React.PropTypes.oneOfType([ <add> React...
1
Text
Text
move mikeal to collaborator emeriti list
72549aa9cd37585256ceb0e6215404f6fe4f7fdb
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Michael Dawson** &lt;michael_dawson@ca.ibm.com&gt; (he/him) <ide> * [micnic](https://github.com/micnic) - <ide> **Nicu Micleușanu** &lt;micnic90@gmail.com&gt; (he/him) <del>* [mikeal](https://github.com/mikeal) - <d...
1
PHP
PHP
fix helper tests
f1b7f7e5af0396f00a31c60bfdccd6b842b52c33
<ide><path>tests/TestCase/View/Helper/HtmlHelperTest.php <ide> public function testDocType() <ide> public function testLink() <ide> { <ide> Router::reload(); <add> Router::connect('/:controller', ['action' => 'index']); <ide> Router::connect('/:controller/:action/*'); <ide> <ide> ...
2
Javascript
Javascript
remove the unused `util.apply3dtransform` method
4b39b1c76b4347a817b010b9d88b4c220a02170b
<ide><path>src/shared/util.js <ide> class Util { <ide> ]; <ide> } <ide> <del> // Apply a generic 3d matrix M on a 3-vector v: <del> // | a b c | | X | <del> // | d e f | x | Y | <del> // | g h i | | Z | <del> // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i], <del> // with v as [X,Y,Z] <del...
1
Text
Text
use new hash syntax
4d88e85d98639b4ea6ec7e67b8c5a52422199b0f
<ide><path>guides/source/migrations.md <ide> end <ide> # app/models/product.rb <ide> <ide> class Product < ActiveRecord::Base <del> validates :flag, :inclusion => { :in => [true, false] } <add> validates :flag, inclusion: { in: [true, false] } <ide> end <ide> ``` <ide> <ide> end <ide> # app/models/product.rb <ide> ...
1
PHP
PHP
apply fixes from styleci
471f9233037c354b541ea33dacb807b55a44cffc
<ide><path>src/Illuminate/Database/Grammar.php <ide> public function wrap($value, $prefixAlias = false) <ide> */ <ide> protected function wrapAliasedValue($value, $prefixAlias = false) <ide> { <del> $segments = preg_split( '/\s+as\s+/i', $value ); <add> $segments = preg_split('/\s+as\s+/i', $...
2
Javascript
Javascript
update helpers to use new args
6d1983c98a3210717689e22c3ac99dbcba72e7ca
<ide><path>packages/ember-glimmer/lib/helpers/-class.js <ide> function classHelper({ positional }) { <ide> } <ide> <ide> export default function(vm, args) { <del> return new InternalHelperReference(classHelper, args); <add> return new InternalHelperReference(classHelper, args.capture()); <ide> } <ide><path>packages/...
10
Ruby
Ruby
drop conditionals in conversion logic
5046d5179e9627bb84962f7ebf2153bfac6db254
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def []=(key, value) <ide> # params.fetch(:none, 'Francesco') # => "Francesco" <ide> # params.fetch(:none) { 'Francesco' } # => "Francesco" <ide> def fetch(key, *args, &block) <del> convert_hashes_to_parameters( <del> ...
1
Text
Text
add a note about manual tagging
af6da3d8db6186199f0d6fbfc0a4d1c540aeb4f2
<ide><path>docs/rfcs/xxx-pretranspile.md <ide> Transpiling packages on _publish_ rather than _load_ will have great benefits fo <ide> <ide> During the `apm publish` call, apm will invoke [`npm pack`](https://docs.npmjs.com/cli/pack) to run all standard npm lifecycle hooks and prepare a `.tar.gz` file. apm then uploads...
1
Go
Go
move strslice to types
f9b857a200696b07b67e6a7f94ede32487f5649d
<add><path>api/types/strslice/strslice.go <del><path>pkg/stringutils/strslice.go <del>package stringutils <add>package strslice <ide> <ide> import ( <ide> "encoding/json" <ide> func (e *StrSlice) ToString() string { <ide> return strings.Join(s, " ") <ide> } <ide> <del>// NewStrSlice creates an StrSlice based on the...
11
Javascript
Javascript
add support for standalone months
96c73a0672f0e46ae9285c482b057bd03ce135ba
<ide><path>i18n/spec/closureI18nExtractorSpec.js <ide> function newTestLocaleInfo() { <ide> DATETIME_FORMATS: { <ide> MONTH: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', <ide> 'octobre', 'novembre', 'décembre'], <add> STANDALONEMONTH: ['janvier', 'février...
3
Ruby
Ruby
fix the count test for postgres
a56518aee2258472f5f80807d733ccfa63eedb2d
<ide><path>activerecord/test/cases/relations_test.rb <ide> def test_count_explicit_columns <ide> Post.update_all(:comments_count => nil) <ide> posts = Post.scoped <ide> <del> assert_equal 0, posts.select('comments_count').where('id is not null').order('id').count <add> assert_equal [0], posts.select('com...
1
Text
Text
fix typo guides/source/configuring.md
612d106d5d732cc7cc0e3a6c5b8a0aa31e4fdf39
<ide><path>guides/source/configuring.md <ide> The schema dumper adds two additional configuration options: <ide> <ide> * `config.action_controller.per_form_csrf_tokens` configures whether CSRF tokens are only valid for the method/action they were generated for. <ide> <del>* `config.action_controller.default_protect_f...
1
Ruby
Ruby
pass the mapping object to build_route
5ba6966766e67af4ae0028c4429acbd280a100a2
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> class Mapping #:nodoc: <ide> <ide> attr_reader :requirements, :conditions, :defaults <ide> attr_reader :to, :default_controller, :default_action <add> attr_reader :required_defaults <ide> <ide> def self.build(scope, set, ...
3
Python
Python
add correct uppercase variants for boolean flags
fca3907d4e761519e08b785aba958bf7846585ac
<ide><path>spacy/cli/download.py <ide> def download_cli( <ide> # fmt: off <ide> ctx: typer.Context, <ide> model: str = Arg(..., help="Model to download (shortcut or name)"), <del> direct: bool = Opt(False, "--direct", "-d", help="Force direct download of name + version"), <add> direct: bool = Opt(Fals...
3
PHP
PHP
add file class
99cf673faea7ed8c18f534596685492b4fb615e0
<ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php <ide> namespace Illuminate\Filesystem; <ide> <ide> use RuntimeException; <add>use Illuminate\Http\File; <ide> use Illuminate\Support\Str; <ide> use InvalidArgumentException; <ide> use Illuminate\Http\UploadedFile; <ide> public function get($path) <ide> */...
4
Go
Go
move testrundetach to integration-cli
f7538c77efaf47fa5b82ae844b5c01887239ce65
<ide><path>integration-cli/docker_cli_run_unix_test.go <ide> package main <ide> <ide> import ( <add> "bufio" <ide> "fmt" <ide> "io/ioutil" <ide> "os" <ide> func TestRunDeviceDirectory(t *testing.T) { <ide> <ide> logDone("run - test --device directory mounts all internal devices") <ide> } <add> <add>// TestRunDeta...
3
PHP
PHP
fix doc block
f9db56b5576fb32c52e2963fd5927ae111938bb8
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testGetWithCache($options, $cacheKey, $cacheConfig) <ide> /** <ide> * Tests that get() will throw an exception if the record was not found <ide> * <del> * @expectedException Cake\Datasource\Exception\RecordNotFoundException <add> * ...
1
Go
Go
replace pkg/units with docker/go-units
4fef42ba206ac90346e6e0fe25bead3f77dc4b0f
<ide><path>api/client/build.go <ide> import ( <ide> "github.com/docker/docker/pkg/progress" <ide> "github.com/docker/docker/pkg/streamformatter" <ide> "github.com/docker/docker/pkg/ulimit" <del> "github.com/docker/docker/pkg/units" <ide> "github.com/docker/docker/pkg/urlutil" <ide> "github.com/docker/docker/regist...
21
Python
Python
fix another sorting issue in python 3
887c811bdec8798f8ee0948c123af1c69c5dc234
<ide><path>glances/exports/glances_history.py <ide> def generate_graph(self, stats): <ide> # Find if anothers key ends with the key <ide> # Ex: key='tx' => 'ethernet_tx' <ide> # Add one curve per chart <del> stats_history_filtered = [key for...
1
Go
Go
fix size_test.go compilation
e59aad9cd387bf20dc0f4664afdd5c55b394cb5b
<ide><path>pkg/units/size_test.go <ide> func TestHumanSize(t *testing.T) { <ide> assertEquals(t, "1 MB", HumanSize(1000000)) <ide> assertEquals(t, "1.049 MB", HumanSize(1048576)) <ide> assertEquals(t, "2 MB", HumanSize(2*MB)) <del> assertEquals(t, "3.42 GB", HumanSize(int64(float64(3.42*GB)))) <del> assertEquals(t, ...
1
Text
Text
specifiy the list of supported platforms
c4f57af057e1faa6d03c29c758bdb168f2870918
<ide><path>docs/Acceptable-Formulae.md <ide> Some formulae should not go in <ide> additional [Interesting Taps and Forks](Interesting-Taps-and-Forks.md) and anyone can start their <ide> own! <ide> <add>### Supported platforms in `homebrew/core` <add> <add>The formula needs to build and pass tests on the latest 3 suppo...
1
Javascript
Javascript
add getupdatecount() to reactcomponenttreedevtool
bc241bfcfef0fb54f6b8436bcf12c402102f565e
<ide><path>src/isomorphic/ReactDebugTool.js <ide> function resetMeasurements() { <ide> tree[id] = { <ide> displayName: ReactComponentTreeDevtool.getDisplayName(id), <ide> text: ReactComponentTreeDevtool.getText(id), <add> updateCount: ReactComponentTreeDevtool.getUpdateCount...
4
PHP
PHP
change 419 error title
9b6f69be67ef03977aa2d25469b3853796529817
<ide><path>src/Illuminate/Foundation/Exceptions/views/419.blade.php <ide> @extends('errors::layout') <ide> <del>@section('title', 'Logged out') <add>@section('title', 'Page Expired') <ide> <ide> @section('message') <ide> The page has expired due to inactivity.
1
Javascript
Javascript
add rwpodplayer as showcase for react native apps
c91f9ce5764482ddd32e5805e12858ae9a6ed091
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/rota-worker-shifts-on-demand/id1042111289?mt=8', <ide> author: 'Rota', <ide> }, <add> { <add> name: 'RWpodPlayer - audio player for RWpod podcast', <add> icon: 'http://a1.mzstatic.com/us/r30/...
1
Javascript
Javascript
remove focus from previous node on click
204d540af29536a2aee9b3758ce020df41902f00
<ide><path>web/grab_to_pan.js <ide> var GrabToPan = (function GrabToPanClosure() { <ide> event.preventDefault(); <ide> event.stopPropagation(); <ide> this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING); <add> <add> var focusedElement = document.activeElement; <add> if (focus...
1
Javascript
Javascript
add tounicodemap class
9576047f0daec1d8a6ae27fd8337b90da73eebc5
<ide><path>src/core/evaluator.js <ide> isNum, isStream, isString, JpegStream, Lexer, Metrics, <ide> MurmurHash3_64, Name, Parser, Pattern, PDFImage, PDFJS, serifFonts, <ide> stdFontMap, symbolsFonts, getTilingPatternIR, warn, Util, Promise, <del> RefSetCache, isRef, TextRender...
2
Python
Python
add a builderror hook to url_for, #456
bb31188ec3882e9a6c6035b7a65ca257d424e31a
<ide><path>flask/app.py <ide> def __init__(self, import_name, static_path=None, static_url_path=None, <ide> #: decorator. <ide> self.error_handler_spec = {None: self._error_handlers} <ide> <add> #: If not `None`, this function is called when :meth:`url_for` raises <add> #: :exc:`~werkzeug...
3
Javascript
Javascript
use faster check for $$ prefix
cb29632a5802e930262919b3db64ca4806c5cfc7
<ide><path>src/Angular.js <ide> function shallowCopy(src, dst) { <ide> for(var key in src) { <ide> // shallowCopy is only ever called by $compile nodeLinkFn, which has control over src <ide> // so we don't need to worry about using our custom hasOwnProperty here <del> if (src.hasOwnProperty(key) && key.sub...
2
Text
Text
update security section
8e705d29fbcba39b7dbf5ff018a84f3fb59c3134
<ide><path>README.md <ide> If you're confident it's a new bug and have confirmed that someone else is facin <ide> <ide> ### Reporting Security Issues and Responsible Disclosure <ide> <del>[Our security policy is available here.](https://contribute.freecodecamp.org/#/security) <add>We appreciate responsible disclosure...
1
Mixed
Python
add sequential.pop() method
b6a776b24278bebaec721c3cfead33bfc01e32cf
<ide><path>docs/templates/getting-started/faq.md <ide> - [How can I record the training / validation loss / accuracy at each epoch?](#how-can-i-record-the-training-validation-loss-accuracy-at-each-epoch) <ide> - [How can I "freeze" layers?](#how-can-i-freeze-keras-layers) <ide> - [How can I use stateful RNNs?](#how-can...
3
Ruby
Ruby
add backtrace on failure
6eb80c67a43a908883ceb9303806c910c48b04d5
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> # Need to rescue before `FormulaUnavailableError` (superclass of this) <ide> # is handled, as searching for a formula doesn't make sense here (the <ide> # formula was found, but there's a problem with its implementation). <add> $stderr.pu...
2
Go
Go
replace newclient() with newclientt()
2cb7b73a1bdbf2e7ea6da7d0c050b303c2c4f5dc
<ide><path>integration-cli/daemon/daemon_swarm.go <ide> func (d *Daemon) CheckServiceUpdateState(service string) func(*check.C) (interfa <ide> // CheckPluginRunning returns the runtime state of the plugin <ide> func (d *Daemon) CheckPluginRunning(plugin string) func(c *check.C) (interface{}, check.CommentInterface) { <...
19
Javascript
Javascript
fix groups in extrudebuffergeometry
294639a8182a4b92ea410b0d094500b2eb0d9c88
<ide><path>src/geometries/ExtrudeGeometry.js <ide> ExtrudeBufferGeometry.prototype.addShape = function ( shape, options ) { <ide> <ide> } <ide> <del> if (options.extrudeMaterial !== undefined){ <del> <del> scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options....
1
Python
Python
address reviewer comment
38fe698843d8d13fcdbcdce13b186aa66623a324
<ide><path>numpy/ma/core.py <ide> def masked_equal(x, value, copy=True): <ide> """ <ide> Mask an array where equal to a given value. <ide> <add> Return a MaskedArray, masked where the data in array `x` are <add> equal to `value`. The fill_value of the returned MaskedArray <add> is set to `value`. <add...
1
Ruby
Ruby
remove pre_bug_report links
7c048b6f71b031ab8ee1289a70b51cef24408dcc
<ide><path>Library/Homebrew/cask/lib/hbc/utils.rb <ide> <ide> require "hbc/utils/file" <ide> <del>PREBUG_URL = "https://github.com/caskroom/homebrew-cask/blob/master/doc/reporting_bugs/pre_bug_report.md".freeze <del>ISSUES_URL = "https://github.com/caskroom/homebrew-cask#reporting-bugs".freeze <add>BUG_REPORTS_URL = ...
2
Text
Text
add french translation
22b2790d70d50f08c73a94770630b4bc6a1734d2
<ide><path>threejs/lessons/fr/threejs-scenegraph.md <del>Title: Graphe de scène Three.js <del>Description: What's a scene graph? <add>Title: Graphique de scène de Three.js <add>Description: Qu'est-ce qu'un graphique de scène ? <ide> TOC: Scenegraph <ide> <ide> Cet article fait partie d'une série consacrée à Three.js. ...
1
Text
Text
replace data urls with cdn urls for d3 projects
b730b67e1ad9764e16e911070c210f77d25c7866
<ide><path>curriculum/challenges/chinese/04-data-visualization/data-visualization-projects/visualize-data-with-a-choropleth-map.chinese.md <ide> localeTitle: 使用等值线图可视化数据 <ide> --- <ide> <ide> ## Description <del><section id="description"> <strong>目标:</strong>构建一个功能类似于此的<a href="https://codepen.io" target="_blank">Code...
10
Go
Go
use prefix naming for links tests
b6325907e9de4020381ad1d016614f819da58cc6
<ide><path>integration-cli/docker_cli_links_test.go <ide> import ( <ide> "github.com/docker/docker/pkg/iptables" <ide> ) <ide> <del>func TestEtcHostsRegularFile(t *testing.T) { <add>func TestLinksEtcHostsRegularFile(t *testing.T) { <ide> runCmd := exec.Command(dockerBinary, "run", "--net=host", "busybox", "ls", "-la...
1
PHP
PHP
return array from ucsplit
498fdd2b40644bb48529c2530978555cf4b0766c
<ide><path>src/Illuminate/Support/Stringable.php <ide> public function ucfirst() <ide> /** <ide> * Split a string by uppercase characters. <ide> * <del> * @return static <add> * @return array <ide> */ <ide> public function ucsplit() <ide> { <del> return new static(Str::ucsplit(...
1
Python
Python
add __init__.py for modeling sub-directories
65dc825dad6f30205ce7cc5553e608c179ba9808
<ide><path>official/projects/qat/nlp/modeling/models/__init__.py <add># Copyright 2022 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the Li...
2
Python
Python
add slow_pypy support
9df2c98537b72c74f4e996ad840f1fe5a5f003df
<ide><path>numpy/_pytesttester.py <ide> def __call__(self, label='fast', verbose=1, extra_argv=None, <ide> pytest_args += ["--cov=" + module_path] <ide> <ide> if label == "fast": <del> pytest_args += ["-m", "not slow"] <add> # not importing at the top level to avoid circular i...
4
Javascript
Javascript
propagate bind errors"
a2851b62345c59ab5d41d8e3d0da1bad8a9c59d3
<ide><path>lib/net.js <ide> Server.prototype._listen2 = function(address, port, addressType) { <ide> <ide> <ide> function listen(self, address, port, addressType) { <del> if (!process.env.NODE_WORKER_ID) { <add> if (process.env.NODE_WORKER_ID) { <add> require('cluster')._getServer(address, port, addressType, fun...
3
Python
Python
add new getproducttype api in outscale ec2 driver
d277e988f1f6c078e79cfb2e6848d465ceb24f26
<ide><path>libcloud/compute/drivers/ec2.py <ide> def ex_describe_quota(self, dry_run=False, filters=None, <ide> <ide> return is_truncated, quota <ide> <add> def _to_product_type(self, elem): <add> <add> productTypeId = findtext(element=elem, xpath='productTypeId', <add> ...
1
Ruby
Ruby
increase `ar#cache_key` precision to nanoseconds
900dbc54f17500e14e481eab2ebf88acfc5448aa
<ide><path>activerecord/lib/active_record/integration.rb <ide> def cache_key <ide> when new_record? <ide> "#{self.class.model_name.cache_key}/new" <ide> when timestamp = self[:updated_at] <del> timestamp = timestamp.utc.to_s(:number) <add> timestamp = timestamp.utc.to_s(:nsec) <ide> ...
4
Ruby
Ruby
remove a stray process2 require
85f2f34d5ec8ccdea4755740b810ac514d9f3dd9
<ide><path>railties/test/rails_info_controller_test.rb <ide> require 'abstract_unit' <ide> require 'action_controller' <del>require 'action_controller/testing/process2' <add>require 'action_controller/testing/process' <ide> <ide> require 'rails/info' <ide> require 'rails/info_controller'
1
Mixed
Javascript
support boxed strings and toprimitive
22cf25cf2d251371590ea35c740793a5f19d4623
<ide><path>doc/api/buffer.md <ide> console.log(buf2.toString()); <ide> <ide> A `TypeError` will be thrown if `str` is not a string. <ide> <add>### Class Method: Buffer.from(object[, offsetOrEncoding[, length]]) <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `object` {Object} An object supporting `Symbol.t...
3
Javascript
Javascript
update amp example to amp-first wording
549965282045beda0cf0b31823b35a13014a0d6b
<ide><path>examples/amp/pages/dog.js <ide> export default withAmp( <ide> return ( <ide> <div> <ide> <Head> <del> <title>The Dog (Hybrid AMP Page)</title> <add> <title>The Dog</title> <ide> </Head> <del> <h1>The Dog</h1> <add> <h1>The Dog (Hybrid AMP Page)</h1> <...
2
Python
Python
add timeout option to gcs hook methods.
323084e97ddacbc5512709bf0cad8f53082d16b0
<ide><path>airflow/providers/google/cloud/hooks/gcs.py <ide> RT = TypeVar('RT') # pylint: disable=invalid-name <ide> T = TypeVar("T", bound=Callable) # pylint: disable=invalid-name <ide> <add># Use default timeout from google-cloud-storage <add>DEFAULT_TIMEOUT = 60 <add> <ide> <ide> def _fallback_object_url_to_obje...
3
Text
Text
update cloud tpu readme to include efficientnet
f2dcb8d4bf76192f3cb0730c29cf25a9b1f92a31
<ide><path>official/README-TPU.md <ide> <ide> ## Computer Vision <ide> <add>* [efficientnet](vision/image_classification): A family of convolutional <add> neural networks that scale by balancing network depth, width, and <add> resolution and can be used to classify ImageNet's dataset of 1000 classes. <add> ...
1
Python
Python
use neq instead of xor in diff
47242a25920e72366e906a7ffaa2fb41144623d3
<ide><path>numpy/lib/function_base.py <ide> def diff(a, n=1, axis=-1): <ide> slice2 = tuple(slice2) <ide> <ide> if a.dtype == np.bool_: <del> da = a[slice1] ^ a[slice2] <add> da = a[slice1] != a[slice2] <ide> else: <ide> da = a[slice1] - a[slice2] <ide>
1
Ruby
Ruby
add an assertion to the regression test
097e4afcbacfe50abd97679adcf5fcf9a0dd87f1
<ide><path>activerecord/test/cases/filter_attributes_test.rb <ide> class FilterAttributesTest < ActiveRecord::TestCase <ide> <ide> test "proc filter_attributes don't prevent marshal dump" do <ide> ActiveRecord::Base.filter_attributes = [ lambda { |key, value| value.reverse! if key == "name" } ] <del> account ...
1
Javascript
Javascript
fix upgradehead bounds
6ad18a27a0bf9a8f0c6d618c0011f2264239af04
<ide><path>lib/http.js <ide> function connectionListener (socket) { <ide> socket.ondata = function (d, start, end) { <ide> var bytesParsed = parser.execute(d, start, end - start); <ide> if (parser.incoming && parser.incoming.upgrade) { <del> var upgradeHead = d.slice(start + bytesParsed, end - start); <a...
1
Go
Go
fix vet errors in aufs.go about lock by value
2540765ddc8889e2757f9ccfbfe852074b61601c
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> func supportsAufs() error { <ide> return ErrAufsNotSupported <ide> } <ide> <del>func (a Driver) rootPath() string { <add>func (a *Driver) rootPath() string { <ide> return a.root <ide> } <ide> <del>func (Driver) String() string { <add>func (*Driver) String() string { ...
1
PHP
PHP
apply fixes from styleci
76af3fbf3c67889506ebbb1e94bd1060a20e9e5c
<ide><path>tests/Notifications/NotificationMailMessageTest.php <ide> public function testTemplate() <ide> <ide> $this->assertSame('notifications::foo', $message->markdown); <ide> } <add> <ide> public function testHtmlView() <ide> { <ide> $message = new MailMessage; <ide> public function tes...
1
Ruby
Ruby
centralize definition of `rack` in formula.rb
94dba21f7d5c3a1c6d935b62dd965c491a158e40
<ide><path>Library/Homebrew/build.rb <ide> def install f <ide> rescue Exception <ide> if f.prefix.directory? <ide> f.prefix.rmtree <del> f.prefix.parent.rmdir_if_possible <add> f.rack.rmdir_if_possible <ide> end <ide> raise <ide> end <ide><path>Library/Homebrew/cmd/cleanup.rb <ide> def cleanup <ide> <i...
6
Javascript
Javascript
remove multimaterial from outlineeffect
8f319e4a2c7af16435d0bbe6ae90f2a7e34af631
<ide><path>examples/js/effects/OutlineEffect.js <ide> * <ide> * // How to set outline parameters for each material <ide> * material.outlineParameters = { <del> * thickNess: 0.01, // this paremeter won't work for MultiMaterial <del> * color: new THREE.Color( 0x888888 ), // this paremeter won't ...
1
PHP
PHP
add joiningtablesegment to model
a43562b6a139887b421d1d3f3fdfc110c9a8df2b
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasRelationships.php <ide> public function belongsToMany($related, $table = null, $foreignPivotKey = null, <ide> // models using underscores in alphabetical order. The two model names <ide> // are transformed to snake case from their default CamelCase...
1
Python
Python
add convert command
789ce8a45eb56c6103757a5731fc0f6ee0f02aff
<ide><path>spacy/__main__.py <ide> from spacy.cli import package as cli_package <ide> from spacy.cli import train as cli_train <ide> from spacy.cli import model as cli_model <add>from spacy.cli import convert as cli_convert <ide> <ide> <ide> class CLI(object): <ide> """Command-line interface for spaCy""" <ide> <...
3
Ruby
Ruby
remove unknown yard tags
65f17664971391895d8167963e07517742730309
<ide><path>Library/Homebrew/extend/ENV/super.rb <ide> def self.extended(base) <ide> end <ide> <ide> # The location of Homebrew's shims on this OS. <del> # @public <ide> sig { returns(Pathname) } <ide> def self.shims_path <ide> HOMEBREW_SHIMS_PATH/"super" <ide><path>Library/Homebrew/extend/os/linux/extend/...
3
PHP
PHP
improve handling of arrayobject instances
fbaae50200851ee89d3eca52bf42f1f54f0d7d39
<ide><path>src/Log/Engine/BaseLog.php <ide> */ <ide> namespace Cake\Log\Engine; <ide> <add>use ArrayObject; <ide> use Cake\Core\InstanceConfigTrait; <ide> use JsonSerializable; <ide> use Psr\Log\AbstractLogger; <ide> protected function _format(string $message, array $context = []): string <ide> contin...
2
Go
Go
add push fallback to v1 for the official registry
7d62943178e803663b4939666377b75a21d3e537
<ide><path>graph/push.go <ide> package graph <ide> <ide> import ( <ide> "bytes" <add> "errors" <ide> "fmt" <ide> "io" <ide> "io/ioutil" <ide> import ( <ide> "github.com/docker/libtrust" <ide> ) <ide> <add>var ErrV2RegistryUnavailable = errors.New("error v2 registry unavailable") <add> <ide> // Retrieve the all t...
1
Python
Python
fix lint errors
9d9cb200cb2d8c24d648f342ecc67b90efcf1f48
<ide><path>numpy/lib/function_base.py <ide> def _parse_gufunc_signature(signature): <ide> if not re.match(_SIGNATURE, signature): <ide> raise ValueError( <ide> 'not a valid gufunc signature: {}'.format(signature)) <del> return tuple([tuple([dim.strip() for dim in re.findall(_DIMENSION_NAME, a...
2
Python
Python
remove parametrization in pickle_utils_test.py
f1c5826dbfdbc62ae6eea599d939b9da2f70f1ab
<ide><path>keras/saving/pickle_utils_test.py <ide> class TestPickleProtocol(keras_parameterized.TestCase): <ide> """Tests pickle protoocol support. <ide> """ <ide> <del> @keras_parameterized.run_all_keras_modes <ide> def test_pickle_model(self): <ide> """Test copy.copy, copy.deepcopy and pickle on Functiona...
1
Javascript
Javascript
mutate the children array
2993b168e55cd83d4bcf9265cad32bbe37e8a87e
<ide><path>src/devtools/store.js <ide> export default class Store extends EventEmitter { <ide> const parentElement = ((this._idToElement.get( <ide> parentID <ide> ): any): Element); <del> parentElement.children = parentElement.children.concat(id); <add> parent...
1
Javascript
Javascript
increase coverage for _http_incoming.js
19291351bb13381818a033ae22aa9c6a28fd6e95
<ide><path>test/parallel/test-http-incoming-message-connection-setter.js <add>'use strict'; <add> <add>// Test that the setter for http.IncomingMessage,prototype.connection sets the <add>// socket property too. <add>require('../common'); <add> <add>const assert = require('assert'); <add>const http = require('http'); <a...
1
PHP
PHP
add trailing ds
0f278b84f7771539d8ea9f0ea97e6d8b5adb9025
<ide><path>tests/TestCase/Cache/CacheTest.php <ide> public function testCacheFallbackIntegration() <ide> ]); <ide> Cache::setConfig('tests_fallback_final', [ <ide> 'engine' => 'File', <del> 'path' => TMP . 'cake_test', <add> 'path' => TMP . 'cake_test' . DS, <ide> ...
1
Python
Python
add disable retry flag on backfill
ada0f13a2a738e67433070f2ecba4114065136d2
<ide><path>airflow/cli/cli_parser.py <ide> def string_lower_type(val): <ide> help=("if set, the backfill will keep going even if some of the tasks failed"), <ide> action="store_true", <ide> ) <add>ARG_DISABLE_RETRY = Arg( <add> ("--disable-retry",), <add> help=("if set, the backfill will set tasks as fail...
6
Python
Python
replace requests with urllib
7fbc9e587439bc63feb30e2ff1852fbed7f89d83
<ide><path>spacy/cli/download.py <ide> from __future__ import unicode_literals <ide> <ide> import plac <del>import requests <ide> import os <ide> import subprocess <ide> import sys <add>import ujson <ide> <ide> from .link import link <ide> from ..util import prints, get_package_path <add>from ..compat import url_open...
2
Go
Go
handle error from getdevice early
17b95ecb08f1705bd74d6c94c8bcfd4c87ccfca6
<ide><path>daemon/container.go <ide> func populateCommand(c *Container, env []string) error { <ide> userSpecifiedDevices := make([]*devices.Device, len(c.hostConfig.Devices)) <ide> for i, deviceMapping := range c.hostConfig.Devices { <ide> device, err := devices.GetDevice(deviceMapping.PathOnHost, deviceMapping.Cgr...
2
Javascript
Javascript
improve grammar of apollo.js comments
1c64c1e93c5e6e0855b1cff987889886b155e34a
<ide><path>examples/with-apollo/lib/apollo.js <ide> import App from 'next/app' <ide> import { ApolloProvider } from '@apollo/react-hooks' <ide> import createApolloClient from '../apolloClient' <ide> <del>// On the client we store the apollo client in the following variable <del>// this prevents the client from reiniti...
1
Javascript
Javascript
reduce function calls
7dc707042692398392bd910b01f3a6aab81a90a0
<ide><path>src/effects.js <ide> jQuery.fn.extend({ <ide> jQuery._mark( this ); <ide> } <ide> <del> var opt = jQuery.extend({}, optall), p, <add> var opt = jQuery.extend({}, optall), <ide> isElement = this.nodeType === 1, <ide> hidden = isElement && jQuery(this).is(":hidden"), <del> self = this; <...
1
PHP
PHP
return collection
b12f44c37bc057e98757743cd67ba47e934dac2a
<ide><path>src/Illuminate/Support/Stringable.php <ide> public function ucfirst() <ide> /** <ide> * Split a string by uppercase characters. <ide> * <del> * @return array <add> * @return \Illuminate\Support\Collection <ide> */ <ide> public function ucsplit() <ide> { <del> return ...
1
Ruby
Ruby
fix merge conflicts for
5c32f41d5258743500345db34839a21139676f8e
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> def aliases <ide> def instantiate(result_set, aliases) <ide> primary_key = aliases.column_alias(join_root, join_root.primary_key) <ide> <del> seen = Hash.new { |h,parent_klass| <del> h[parent_klass] = Hash.new...
6
Java
Java
remove bodyinserters.fromserversentevent variants
0b3ea405ab8a93610286c1de1a393c3fa9cbe071
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/BodyInserters.java <ide> private static HttpMessageWriter<Resource> resourceHttpMessageWriter(BodyInserte <ide> <ide> /** <ide> * Return a {@code BodyInserter} that writes the given {@code ServerSentEvent} publisher. <add> * <p>Note ...
3
Python
Python
add support for the new amazon region (tokyo)
5dc2ea314c85fe5e6b8b8541a8e296286597f70a
<ide><path>libcloud/drivers/ec2.py <ide> EC2_US_WEST_HOST = 'ec2.us-west-1.amazonaws.com' <ide> EC2_EU_WEST_HOST = 'ec2.eu-west-1.amazonaws.com' <ide> EC2_AP_SOUTHEAST_HOST = 'ec2.ap-southeast-1.amazonaws.com' <add>EC2_AP_NORTHEAST_HOST = 'ec2.ap-northeast-1.amazonaws.com' <ide> <ide> API_VERSION = '2010-08-31' <ide> ...
4
Ruby
Ruby
fix protection against overriding formula#brew
9614301be4f2647de6a0395b125c3a2ca69e3889
<ide><path>Library/Homebrew/formula.rb <ide> def set_instance_variable(type) <ide> instance_variable_set("@#{type}", class_value) if class_value <ide> end <ide> <del> def method_added method <del> raise 'You cannot override Formula.brew' if method == 'brew' <add> def self.method_added method <add> raise ...
2
Ruby
Ruby
use namespaces in notifications
6fbe9ef2ffb1858027130789246f3ae24a0a182f
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def deliver!(mail = @mail) <ide> logger.debug "\n#{mail.encoded}" <ide> end <ide> <del> ActiveSupport::Notifications.instrument(:deliver_mail, :mail => mail) do <add> ActiveSupport::Notifications.instrument("actionmailer.deliver", :mail =>...
14
Javascript
Javascript
add test case
17e8eed735ed3aabfa40b4e52c577f00fcd17f1c
<ide><path>lib/dependencies/ImportMetaPlugin.js <ide> class ImportMetaPlugin { <ide> const parserHandler = (parser, { importMeta }) => { <ide> if (importMeta === false) { <ide> const { importMetaName } = compilation.outputOptions; <add> if (importMetaName === "import.meta") return; <ide> <ide> ...
5
Ruby
Ruby
restrict audit to homebrew/core
1b95059c2b1db0e45e9a10fb2040a90311bbdd3d
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> # This cop ensures that new formulae depending on Requirements are not introduced in homebrew/core. <ide> class CoreRequirements < FormulaCop <ide> def audit_formula(_node, ...
1
Text
Text
resolve merge conflict
8afc9875f6bc273c63cc555d0606db1329455af5
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> Then, don't get your hopes up! Unless you have a "Code Red, Mission Critical, th <ide> <ide> Having a way to reproduce your issue will be very helpful for others to help confirm, investigate, and ultimately fix your issue. You can do this by providing an ...
1
Javascript
Javascript
remove addons path deleted in
35ae38db2fa92d5f49a6a028762c0618be8a368b
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> name: 'react', <ide> paths: [ <ide> 'src/isomorphic/**/*.js', <del> 'src/addons/**/*.js', <ide> <ide> 'src/ReactVersion.js', <ide> 'src/shared/**/*.js',
1
PHP
PHP
fix psr-16 ttl conformity
eb6087c370a3584a1f1e232d564194e551694349
<ide><path>src/Illuminate/Cache/RedisTaggedCache.php <ide> class RedisTaggedCache extends TaggedCache <ide> * <ide> * @param string $key <ide> * @param mixed $value <del> * @param \DateTime|float|int|null $minutes <add> * @param \DateTimeInterface|\DateInterval|float|int|null $minutes <i...
6
Ruby
Ruby
allow python symlinks based on keg-only status
6e82f77108c326ede038d11a81fc6e9d9c229886
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_plist(prefix, plist) <ide> EOS <ide> end <ide> <del> PYTHON_SYMLINK_ALLOWED_FORMULA = "python@3.8" <del> <del> def check_python_symlinks(name) <add> def check_python_symlinks(name, keg_only) <add> return unless keg_only <ide> return u...
1
Python
Python
register most stuff only once
f7e71b518f30923f494750e476f30d91c415723e
<ide><path>flask/app.py <ide> def register_blueprint(self, blueprint, **options): <ide> <ide> .. versionadded:: 0.7 <ide> """ <add> first_registration = False <ide> if blueprint.name in self.blueprints: <ide> assert self.blueprints[blueprint.name] is blueprint, \ <ide> ...
2
Go
Go
remove the unneeded deprecation markup
d9c257732e435cecdcc1ec8452f35e7614e4713f
<ide><path>runconfig/parse.go <ide> func parseRun(cmd *flag.FlagSet, args []string, sysInfo *sysinfo.SysInfo) (*Conf <ide> cmd.Var(&flVolumes, []string{"v", "-volume"}, "Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)") <ide> cmd.Var(&flLinks, []string{"#link", "-link"}, "Add...
1
Mixed
Text
add changelog entry for [ci skip]
f141919974806568f480cf2c670f990322308044
<ide><path>activerecord/CHANGELOG.md <add>* Fix presence validator for association when the associated record responds to `to_a`. <add> <add> *gmarik* <add> <ide> * Fixed regression on preload/includes with multiple arguments failing in certain conditions, <ide> raising a NoMethodError internally by calling ...
2
Go
Go
avoid unset credentials in containerd
effb2bd9d23cc05305c4772338b9eb39423e92c6
<ide><path>builder/builder-next/adapters/containerimage/pull.go <ide> func (is *imageSource) getResolver(ctx context.Context, rfn resolver.ResolveOpti <ide> func (is *imageSource) getCredentialsFromSession(ctx context.Context) func(string) (string, string, error) { <ide> id := session.FromContext(ctx) <ide> if id == ...
1
Java
Java
fix build failures
4ed581cdd723e232935a277d092ea6ec981909b6
<ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseBodyResultHandlerTests.java <ide> private void testProblemDetailMediaType(MockServerWebExchange exchange, MediaTyp <ide> "\"title\":\"Bad Request\"," + <ide> "\"status\":400," + <ide> "\"detail\":...
2
Python
Python
add unit tests for bert_models.py
c25c3e882e398d287240f619d7f56ac5b2973b6e
<ide><path>official/nlp/bert/bert_models_test.py <add># Copyright 2020 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <add># ...
1
Javascript
Javascript
move suspenselist to experimental package
c47f59331ee94b1d04f974f075373d368a8c8ab3
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js <ide> describe('ReactDOMServerPartialHydration', () => { <ide> ReactDOMServer = require('react-dom/server'); <ide> Scheduler = require('scheduler'); <ide> Suspense = React.Suspense; <del> SuspenseList = React.unst...
9
Python
Python
replace function calls to set litteral
b17d6c82b3200f095381298fa6af9cbe27129521
<ide><path>libcloud/test/compute/test_azure_arm.py <ide> def test_sizes_returned_successfully(self): <ide> def test_ex_get_ratecard(self): <ide> ratecard = self.driver.ex_get_ratecard('0026P') <ide> self.assertEqual(set(ratecard.keys()), <del> set(['Currency', <del> ...
3
Python
Python
fix failing 'default' on modelserializer
67f1265e493adc35239d90aeb3bfeb8492fbd741
<ide><path>rest_framework/serializers.py <ide> def get_field(self, model_field): <ide> kwargs = {} <ide> if model_field.has_default(): <ide> kwargs['required'] = False <del> kwargs['default'] = model_field.default <add> kwargs['default'] = model_field.get_default() <ide...
3
Javascript
Javascript
fix navigation widget to work without jquery
00ea08e0ab2a0154e168e63f2505d885bbca9096
<ide><path>docs/src/templates/doc_widgets.js <ide> this.descend(true); <ide> <ide> var tabs = angular.element(HTML_TPL.replace('{show}', element.attr('show') || 'false')), <del> nav = tabs.find('.tabs-nav ul'), <del> content = tabs.find('.tabs-content-inner'), <add> nav = tabs.find('ul'), ...
1