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
prepare exception even if errors ignored
7877c627f1d2becbdd535b48a22e1a854ebf3fc5
<ide><path>celery/worker/job.py <ide> def handle_retry(self, exc, type_, tb, strtb): <ide> <ide> def handle_failure(self, exc, type_, tb, strtb): <ide> """Handle exception.""" <del> # mark_as_failure returns an exception that is guaranteed to <del> # be pickleable. <ide> if self._stor...
1
PHP
PHP
add a method to get nodes from debugger
2f5b982c934a30143cb0ff64e316f41d23313d3c
<ide><path>src/Error/Debugger.php <ide> public static function exportVar($var, int $maxDepth = 3): string <ide> return static::getInstance()->getExportFormatter()->dump($node); <ide> } <ide> <add> /** <add> * Convert the variable to the internal node tree. <add> * <add> * The node tree can b...
2
PHP
PHP
add missing calls to parent
3f9e8e811326a34b848cc804e4b6b6105e81718f
<ide><path>lib/Cake/Test/Case/Network/CakeResponseTest.php <ide> class CakeResponseTest extends CakeTestCase { <ide> * @return void <ide> */ <ide> public function setUp() { <add> parent::setUp(); <ide> ob_start(); <ide> } <ide> <ide> public function setUp() { <ide> * @return void <ide> */ <ide> public functi...
1
Javascript
Javascript
add a format100 table for mac
3726686d22deac5d299b890bd0f7359053717956
<ide><path>fonts.js <ide> var Font = (function () { <ide> glyphs.push({ unicode: 0x0000 }); <ide> var ranges = getRanges(glyphs); <ide> <add> var numTables = 2; <add> var kFormat100ArraySize = 256; <add> var cmap = "\x00\x00" + // version <add> string16(numTables) + // numTables <add> ...
2
Javascript
Javascript
remove unused webpack import in flyfile.js
a0b16e03b89122295fb46d3e9ecb9e9f90d9056a
<ide><path>flyfile.js <del>const webpack = require('webpack') <ide> const notifier = require('node-notifier') <ide> const childProcess = require('child_process') <ide> const isWindows = /^win/.test(process.platform)
1
Ruby
Ruby
return the calculated remote_ip or ip
4f2bf6491cbc482d25a9357c2eb7fc8047d4f12e
<ide><path>actionpack/lib/action_dispatch/http/request.rb <ide> def ip <ide> <ide> # Originating IP address, usually set by the RemoteIp middleware. <ide> def remote_ip <del> @remote_ip ||= (@env["action_dispatch.remote_ip"] || ip).to_s <add> # Coerce the remote_ip object into a string, because to_s ...
1
Python
Python
fix example in ctypeslib module documentation
9118887ccb0e62d8814e31a80e1e6caf0e99eb3c
<ide><path>numpy/ctypeslib.py <ide> <ide> We wrap it using: <ide> <del>>>> lib.foo_func.restype = None #doctest: +SKIP <del>>>> lib.foo.argtypes = [array_1d_double, c_int] #doctest: +SKIP <add>>>> _lib.foo_func.restype = None #doctest: +SKIP <add>>>> _lib.foo_func.argtypes = [arra...
1
Python
Python
fix syntax error in generate docstrings
e4b234834a79541f31be227aadce13f5aafda85a
<ide><path>src/transformers/generation_utils.py <ide> def generate( <ide> This value is subtracted from a beam's score if it generates a token same as any beam from other group <ide> at a particular time. Note that `diversity_penalty` is only effective if `group beam search` is <ide> ...
1
Mixed
Python
add message to custom permission
9ea615af14303663a47fd155ab541d8302d609e4
<ide><path>docs/api-guide/permissions.md <ide> If you need to test if a request is a read operation or a write operation, you s <ide> <ide> --- <ide> <add>Custom permissions will raise a `PermissionDenied` exception if the test fails. To change the error message associated with the exception, implement a `message` at...
3
PHP
PHP
fix more types
8907b66e7e37bba1b0a62338da09060ebb9b3359
<ide><path>src/Filesystem/File.php <ide> public function open(string $mode = 'r', bool $force = false): bool <ide> * @param string|bool $bytes where to start <ide> * @param string $mode A `fread` compatible mode. <ide> * @param bool $force If true then the file will be re-opened even if its already opene...
2
Javascript
Javascript
use utf8stream for http streams with utf8 encoding
f987ecf45be6f5c7c18d5cebd38be0b411648140
<ide><path>lib/http.js <ide> function debug (x) { <ide> <ide> var sys = require('sys'); <ide> var net = require('net'); <add>var Utf8Stream = require('utf8_stream').Utf8Stream; <ide> var events = require('events'); <ide> var Buffer = require('buffer').Buffer; <ide> <ide> var parsers = new FreeList('parsers', 1000, fu...
1
Python
Python
add env opts for optimizer
f403c2cd5f62a3213a9348597b4f779ac558416e
<ide><path>spacy/language.py <ide> def begin_training(self, get_gold_tuples, **cfg): <ide> context = proc.begin_training(get_gold_tuples(), <ide> pipeline=self.pipeline) <ide> contexts.append(context) <del> optimizer = Adam(Model.ops, ...
1
Text
Text
move context api in changelog to "react" section
18ba36d89165ec15655f2606b0a6ba2e709ce641
<ide><path>CHANGELOG.md <ide> <ide> ### React <ide> <add>* Add a new officially supported context API. ([@acdlite](https://github.com/acdlite) in [#11818](https://github.com/facebook/react/pull/11818)) <ide> * Add a new `React.createRef()` API as an ergonomic alternative to callback refs. ([@trueadm](https://github.c...
1
Javascript
Javascript
use template strings
e266d9e37f7ca337c944a39231d257839f547fb8
<ide><path>lib/dependencies/ModuleDependencyTemplateAsRequireId.js <ide> class ModuleDependencyTemplateAsRequireId { <ide> apply(dep, source, outputOptions, requestShortener) { <ide> if(!dep.range) return; <ide> let comment = ""; <del> if(outputOptions.pathinfo) comment = "/*! " + requestShortener.shorten(dep.req...
1
Java
Java
add fast path for classutils.hasmethod()
8e5cad2af3d0465c98f7269ec1a6262a3f30c1bb
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/CglibAopProxy.java <ide> public int hashCode() { <ide> */ <ide> private static boolean implementsInterface(Method method, Set<Class<?>> ifcs) { <ide> for (Class<?> ifc : ifcs) { <del> if (ClassUtils.hasMethod(ifc, method.getName(), method.getP...
5
Ruby
Ruby
fix comment example in ar enum [ci skip]
b4d7be95e635da64b99e833a93c345bb4d6f2ba2
<ide><path>activerecord/lib/active_record/enum.rb <ide> def enum(definitions) <ide> # def active?() status == 0 end <ide> define_method("#{value}?") { self[name] == i } <ide> <del> # def active! update! status: :active end <add> # def active!() update! status: :active end ...
1
PHP
PHP
add seetext and dontseetext methods
0fe971b5dc41bb5afe51a530dcc17ed3d58ce19f
<ide><path>src/Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php <ide> protected function crawler() <ide> } <ide> <ide> /** <del> * Assert that a given string is seen on the page. <add> * Get the HTML from the current context or the full response. <add> * <add> * @return string <add...
2
Java
Java
implement java.io.closeable where appropriate
ea95da126af330863eb6b0431e86d3819bc97632
<ide><path>spring-context/src/main/java/org/springframework/context/ConfigurableApplicationContext.java <ide> /* <del> * Copyright 2002-2010 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide>...
4
Python
Python
check flask_skip_dotenv in app.run
6e1e3e03ca188a4d9b3aef493e572157c8ae2313
<ide><path>flask/app.py <ide> from .config import Config, ConfigAttribute <ide> from .ctx import AppContext, RequestContext, _AppCtxGlobals <ide> from .globals import _request_ctx_stack, g, request, session <del>from .helpers import _PackageBoundObject, \ <del> _endpoint_from_view_func, find_package, get_env, get_de...
1
Ruby
Ruby
remove unused variable
7ecaa0057c6bf653da8a9781454da1dfdc20f143
<ide><path>guides/rails_guides/markdown/renderer.rb <ide> def convert_notes(body) <ide> # if a bulleted list follows the first item is not rendered <ide> # as a list item, but as a paragraph starting with a plain <ide> # asterisk. <del> body.gsub(/^(TIP|IMPORTANT|CAUTION|WARNING|N...
1
Mixed
Python
update catch phrase
bbc3fcfa542a2489e838b793a9778eac360f5ae4
<ide><path>README.md <del># Keras: Deep Learning for Python <add># Keras: Deep Learning for humans <ide> <ide> ![Keras logo](https://s3.amazonaws.com/keras.io/img/keras-logo-2018-large-1200.png) <ide> <ide><path>setup.py <ide> <ide> setup(name='Keras', <ide> version='2.1.2', <del> description='Deep Lear...
2
Ruby
Ruby
pass explicit sort to handle apfs
ca69d654564246cf4db326dfb905ab02f32828b9
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def dump_formula_report(key, title) <ide> return if formulae.empty? <ide> # Dump formula list. <ide> ohai title <del> puts Formatter.columns(formulae) <add> puts Formatter.columns(formulae.sort) <ide> end <ide> <ide> def installed?(formula)
1
Javascript
Javascript
add loc helper
0e919f5e99c3615759a11e9bf8832434e8711ee8
<ide><path>packages/ember-handlebars/lib/helpers.js <ide> require("ember-handlebars/helpers/each"); <ide> require("ember-handlebars/helpers/template"); <ide> require("ember-handlebars/helpers/partial"); <ide> require("ember-handlebars/helpers/yield"); <add>require("ember-handlebars/helpers/loc"); <ide><path>packages/em...
2
Javascript
Javascript
remove some unnecessary local variables
d4e8b41639bde03bab4520caa7e60358ddc8d045
<ide><path>src/core/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> xobj, smask, <ide> operatorList, <ide> ...
2
Ruby
Ruby
try tests on gem load failure
8b63214c2e7493903f40511a59aba4dd60419349
<ide><path>Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb <ide> def brew(*args) <ide> ] <ide> if ENV["HOMEBREW_TESTS_COVERAGE"] <ide> simplecov_spec = Gem.loaded_specs["simplecov"] <del> specs = simplecov_spec.runtime_dependencies.flat_map(&:to_specs) <del> ...
1
Python
Python
fix 2.3 compatibility on windows
ee8e27ad4facd8123858f3b046f6bba78fea7c89
<ide><path>numpy/testing/utils.py <ide> def memusage(): <ide> """ Return memory usage of running python. [Not implemented]""" <ide> return <ide> <del>if os.name=='nt': <add>if os.name=='nt' and sys.version[:3] > '2.3': <ide> # Code stolen from enthought/debug/memusage.py <ide> import win32pdh <...
1
Python
Python
add dilation to separableconv2d
7610c55bdc046ff0b0d6300af5ea9dcfd0a427cb
<ide><path>keras/layers/convolutional.py <ide> def call(self, inputs): <ide> self.pointwise_kernel, <ide> data_format=self.data_format, <ide> strides=self.strides, <del> padding=self.padding) <add> padding=self.padding, <add> dilation_rate=self.dilati...
2
Javascript
Javascript
return a point from cursor word methods
87d38c0a4d3820d894acbc8d3d1dce8d4f1e17f0
<ide><path>src/cursor.js <ide> class Cursor extends Model { <ide> let result <ide> for (let range of ranges) { <ide> if (position.isLessThanOrEqual(range.start)) break <del> if (allowPrevious || position.isLessThanOrEqual(range.end)) result = range.start <add> if (allowPrevious || position.isLes...
1
Ruby
Ruby
assign `content_type` only once
235a0b5a5a7930bf20b66128496ee082ee76f6c9
<ide><path>actionpack/lib/action_controller/metal/data_streaming.rb <ide> def send_data(data, options = {}) #:doc: <ide> def send_file_headers!(options) <ide> type_provided = options.has_key?(:type) <ide> <del> self.content_type = DEFAULT_SEND_FILE_TYPE <add> content_type = options.fetch(:t...
1
Text
Text
add initial changelog for 1.11.0
9f3f96220d4243bad86e40b2d3f9283ce46bef85
<ide><path>CHANGELOG.md <ide> <ide> Items starting with `DEPRECATE` are important deprecation notices. For more <ide> information on the list of deprecated flags and APIs please have a look at <del>https://docs.docker.com/misc/deprecated/ where target removal dates can also <add>https://docs.docker.com/engine/deprecat...
1
Javascript
Javascript
add color palette to tailwind config file
fcc29419c6f29ebc9157243bb11e2da93693cee7
<ide><path>tools/ui-components/tailwind.config.js <ide> module.exports = { <ide> theme: { <ide> colors: { <ide> // Configure the color palette here <del> darkGreen: '#00471b' <add> // Layout Colors <add> gray00: '#ffffff', <add> gray05: '#f5f6f7', <add> gray10: '#dfdfe2', <add> ...
1
Text
Text
use generated binstubs in guides examples
981dda53dbb0f573e537e107271d2dce76447110
<ide><path>guides/source/action_mailer_basics.md <ide> views. <ide> #### Create the Mailer <ide> <ide> ```bash <del>$ rails generate mailer UserMailer <add>$ bin/rails generate mailer UserMailer <ide> create app/mailers/user_mailer.rb <ide> invoke erb <ide> create app/views/user_mailer <ide> Setting this up is pa...
16
Java
Java
convert field to local
0669a38b0113a5c4de14ad93d1845a332dcdd566
<ide><path>ReactAndroid/src/main/java/com/facebook/react/XReactInstanceManagerImpl.java <ide> private final MemoryPressureRouter mMemoryPressureRouter; <ide> private final @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler; <ide> private final JSCConfig mJSCConfig; <del> private @Nullab...
1
Text
Text
remove old changelogs
8a6010be76cd2fb514a8698e652e12d08be5a300
<ide><path>CHANGELOG-5.2.md <del># Release Notes <del> <del>## [Unreleased] <del> <del>### Fixed <del>- Fixed deferring write connection ([#16673](https://github.com/laravel/framework/pull/16673)) <del> <del> <del>## v5.2.45 (2016-08-26) <del> <del>### Fixed <del>- Revert changes to Eloquent `Builder` that breaks `firs...
2
Javascript
Javascript
fix spelling error
e17f85cc5b5ebc8be5c5551729549590324d5d64
<ide><path>src/ngMessages/messages.js <ide> angular.module('ngMessages', []) <ide> * <ide> * @description <ide> * `ngMessages` is a directive that is designed to show and hide messages based on the state <del> * of a key/value object that it listens on. The directive itself compliments error message <add...
1
Javascript
Javascript
add failing test for https2 compatibility
94963ab39adcf4b346646f9a4bb5cd3dbf09dac6
<ide><path>test/simple/test-regress-GH-1531.js <add>// Copyright Joyent, Inc. and other Node contributors. <add>// <add>// Permission is hereby granted, free of charge, to any person obtaining a <add>// copy of this software and associated documentation files (the <add>// "Software"), to deal in the Software without re...
1
Ruby
Ruby
allow enumerate non-git taps
a9b9c5ade798ca8378f9e8bf3d82f6f2b01d8312
<ide><path>Library/Homebrew/cmd/update.rb <ide> def update <ide> # this procedure will be removed in the future if it seems unnecessasry <ide> rename_taps_dir_if_necessary <ide> <del> Tap.each do |tap| <add> Tap.select(&:git?).each do |tap| <ide> tap.path.cd do <ide> updater = Updater.new(t...
2
Ruby
Ruby
change comments to not exceed 80 characters
ee2589723060c31cec874dabc9eade203c445421
<ide><path>actioncable/lib/rails/generators/channel/templates/application_cable/channel.rb <del># Be sure to restart your server when you modify this file. Action Cable runs in a loop that does not support auto reloading. <add># Be sure to restart your server when you modify this file. Action Cable runs in <add># a loo...
2
Ruby
Ruby
update error names in docs [ci skip]
96f59306101a6ee252df2a9636ef2569d26924f7
<ide><path>activestorage/app/models/active_storage/blob/representable.rb <ide> module ActiveStorage::Blob::Representable <ide> # This will create a URL for that specific blob with that specific variant, which the ActiveStorage::VariantsController <ide> # can then produce on-demand. <ide> # <del> # Raises ActiveS...
1
PHP
PHP
remove typehint from generateassociationquery()
3a226b03c3ca5ea255d2e1ec22bb9bd51fc13ea8
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function buildAssociationQuery(Model $Model, $queryData) { <ide> public function generateAssociationQuery(Model $Model, $LinkModel, $type, $association, $assocData, &$queryData, $external) { <ide> $assocData = $this->_scrubQueryData($assocData); <ide> ...
1
PHP
PHP
add type hinting on $parameters
27b1d17a420b4556a261c6f7a49115a90edd1018
<ide><path>src/Illuminate/Container/Container.php <ide> protected function isCallableWithAtSign($callback) <ide> * @param array $parameters <ide> * @return array <ide> */ <del> protected function getMethodDependencies($callback, $parameters = []) <add> protected function getMethodDependencies($callback, array $...
3
Java
Java
add webflux support for smile streaming
32f6ccece8ba348381b4dcee8e332a89e9e42b29
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java <ide> <ide> import java.io.IOException; <ide> import java.lang.annotation.Annotation; <add>import java.util.List; <ide> import java.util.Map; <ide> <ide> import com.fasterxml.jackson.core.JsonFactory; <ide> public Map...
12
Javascript
Javascript
ensure correct key order
2e32aa86301c098adc80dc44117ba395ff33494b
<ide><path>packages/next/build/webpack/plugins/build-manifest-plugin.js <ide> import { RawSource } from 'webpack-sources' <del>import { BUILD_MANIFEST, ROUTE_NAME_REGEX, IS_BUNDLED_PAGE_REGEX, CLIENT_STATIC_FILES_RUNTIME_MAIN } from 'next-server/constants' <add>import { <add> BUILD_MANIFEST, <add> ROUTE_NAME_REGEX, <...
1
Go
Go
initialize field with name
da6944ec8747a50941c170186605c8cead517201
<ide><path>daemon/cluster/executor/container/container.go <ide> func (c *containerConfig) networkCreateRequest(name string) (clustertypes.Networ <ide> options.IPAM.Config = append(options.IPAM.Config, c) <ide> } <ide> <del> return clustertypes.NetworkCreateRequest{na.Network.ID, types.NetworkCreateRequest{Name: nam...
2
Go
Go
add godoc to info.warnings field
7d63cbfd38d6059bfd56e89820948561fcead628
<ide><path>api/types/types.go <ide> type Info struct { <ide> SecurityOptions []string <ide> ProductLicense string `json:",omitempty"` <ide> DefaultAddressPools []NetworkAddressPool `json:",omitempty"` <del> Warnings []string <add> <add> // Warnings contains a slice of warnings that ...
1
Javascript
Javascript
handle errors on idle sockets
5a2541de819e4457b05f4eca14d1926869b15be5
<ide><path>lib/_http_client.js <ide> function socketErrorListener(err) { <ide> socket.destroy(); <ide> } <ide> <add>function freeSocketErrorListener(err) { <add> var socket = this; <add> debug('SOCKET ERROR on FREE socket:', err.message, err.stack); <add> socket.destroy(); <add> socket.emit('agentRemove'); <add>...
2
Go
Go
remove run from non-running commmands
f5fe3ce34e12f1660ee98cecdbe2c104567d88a6
<ide><path>buildfile.go <ide> func (b *buildFile) CmdAdd(args string) error { <ide> b.config.Cmd = []string{"/bin/sh", "-c", fmt.Sprintf("#(nop) ADD %s in %s", orig, dest)} <ide> <ide> // Create the container and start it <del> c, err := b.builder.Create(b.config) <add> container, err := b.builder.Create(b.config) <...
1
Javascript
Javascript
remove usages of listkey
bc5cb7cd7933da707c02ff0dd993c607ba7d40b3
<ide><path>Libraries/Lists/VirtualizedListProps.js <ide> type OptionalProps = {| <ide> * Styling for internal View for ListHeaderComponent <ide> */ <ide> ListHeaderComponentStyle?: ViewStyleProp, <del> /** <del> * A unique identifier for this list. If there are multiple VirtualizedLists at the same level of ...
2
Javascript
Javascript
use a "string_decoder" to parse "keypress" events
3c91a7ae10f0ccabe4550c77189813f8d95785b0
<ide><path>lib/readline.js <ide> exports.Interface = Interface; <ide> */ <ide> <ide> function emitKeypressEvents(stream) { <del> if (stream._emitKeypress) return; <del> stream._emitKeypress = true; <add> if (stream._keypressDecoder) return; <add> var StringDecoder = require('string_decoder').StringDecoder; // laz...
2
Javascript
Javascript
add support for hooks to reactdomserver
dd019d34db1d8d067637033c36856c8b259cb35b
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationHooks-test.internal.js <add>/** <add> * Copyright (c) 2013-present, Facebook, Inc. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @emails ...
5
Text
Text
add blanks lines in docs for clarity
d0737e9ac0bfcbac0e212d157ab305e561eea3ee
<ide><path>docs/tutorials/dockerimages.md <ide> Let's start with listing the images you have locally on our host. You can <ide> do this using the `docker images` command like so: <ide> <ide> $ docker images <add> <ide> REPOSITORY TAG IMAGE ID CREATED SIZE <ide> ...
25
Go
Go
copy inslice() to those parts that use it
5c154cfac89305f7ca9446854e56700e8a660f93
<ide><path>daemon/caps/utils_unix.go <ide> import ( <ide> "fmt" <ide> "strings" <ide> <del> "github.com/docker/docker/pkg/stringutils" <ide> "github.com/syndtr/gocapability/capability" <ide> ) <ide> <ide> func GetAllCapabilities() []string { <ide> return output <ide> } <ide> <add>// inSlice tests whether a strin...
7
Ruby
Ruby
remove unused variable
b9774a594339d5ac92503d91d180d88ec1faf436
<ide><path>activerecord/test/cases/associations/has_many_associations_test.rb <ide> def test_anonymous_has_many <ide> <ide> def test_has_many_build_with_options <ide> college = College.create(name: 'UFMT') <del> student = Student.create(active: true, college_id: college.id, name: 'Sarah') <add> Student.cre...
1
Javascript
Javascript
follow symbol naming convention
d30354859cb58a5ceaa77fd286a551b932236382
<ide><path>lib/_http_client.js <ide> const Agent = require('_http_agent'); <ide> const { Buffer } = require('buffer'); <ide> const { defaultTriggerAsyncIdScope } = require('internal/async_hooks'); <ide> const { URL, urlToOptions, searchParamsSymbol } = require('internal/url'); <del>const { outHeadersKey, ondrain } = re...
7
Python
Python
change misleading description of m_mul
634203bbdc1d9a2cf6fbdfdec6c78dbfcddd6b76
<ide><path>keras/optimizer_v2/learning_rate_schedule.py <ide> class CosineDecayRestarts(LearningRateSchedule): <ide> The learning rate multiplier first decays <ide> from 1 to `alpha` for `first_decay_steps` steps. Then, a warm <ide> restart is performed. Each new warm restart runs for `t_mul` times more <del> st...
1
PHP
PHP
create authorizesresources trait
80bb82a6398d51fe9b132ef450c268d78e95c165
<ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesResources.php <add><?php <add> <add>namespace Illuminate\Foundation\Auth\Access; <add> <add>use Illuminate\Routing\ControllerMiddlewareOptions; <add> <add>trait AuthorizesResources <add>{ <add> /** <add> * Authorize a resource action. <add> * <add> ...
1
Ruby
Ruby
accept tap as a non-flagged argument
0552dcff62f23017457ad4d1c76f7c8936d2a40a
<ide><path>Library/Homebrew/dev-cmd/extract.rb <del>#: * `extract` [`--force`] <formula> `--tap=`<tap> [`--version=`<version>]: <add>#: * `extract` [`--force`] <formula> <tap> [`--version=`<version>]: <ide> #: Looks through repository history to find the <version> of <formula> and <ide> #: creates a copy in <ta...
1
Python
Python
remove loss from some flax models docs & examples
525dbbf84a0d2933686281c513689da9794b7dd1
<ide><path>src/transformers/models/clip/modeling_flax_clip.py <ide> pixel_values (`numpy.ndarray` of shape `(batch_size, num_channels, height, width)`): <ide> Pixel values. Padding will be ignored by default should you provide it. Pixel values can be obtained using <ide> [`CLIPFeatureExt...
2
Ruby
Ruby
remove reference to homebrew/homebrew
732e0aa689b9a7f9a63c0a99472a9512a14ac291
<ide><path>Library/Homebrew/formula.rb <ide> def mirror(val) <ide> # <ide> # If you maintain your own repository, you can add your own bottle links. <ide> # https://docs.brew.sh/Bottles.html <del> # You can ignore this block entirely if submitting to Homebrew/Homebrew, It'll be <del> # handled for you...
1
Javascript
Javascript
remove extra server context argument
7e8a020a4aa8a24e5f0c0ce06b25e485d2888f57
<ide><path>packages/react-server-dom-webpack/src/ReactFlightDOMServerNode.js <ide> function renderToPipeableStream( <ide> model: ReactModel, <ide> webpackMap: BundlerConfig, <ide> options?: Options, <del> context?: Array<[string, ServerContextJSONValue]>, <ide> ): PipeableStream { <ide> const request = createR...
1
Python
Python
update the docstring for keras.dtensor components
275a0707c066bd90501e3fb3a0c26b1b676c06d3
<ide><path>keras/dtensor/layout_map.py <ide> def get_current_layout_map(): <ide> <ide> @keras_export('keras.dtensor.experimental.LayoutMap', v1=[]) <ide> class LayoutMap(collections.abc.MutableMapping): <add> """A dict-like object that maps string to `Layout` instances. <ide> <del> def __init__(self, mesh=None): <d...
2
Ruby
Ruby
fix syntax warning
b38498d9dc72f3be61465d72f180e2c024832748
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def outdated_brews(formulae) <ide> end <ide> end <ide> <del> f.rack.subdirs.each do |dir| <del> keg = Keg.new dir <add> f.rack.subdirs.each do |keg_dir| <add> keg = Keg.new keg_dir <ide> version = keg.version <ide> ...
1
Java
Java
use lambda expressions for lazy instantiation
f8340838b32ab4ae002dd720025073c16fa01c65
<ide><path>spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/DefaultJCacheOperationSource.java <ide> public void afterSingletonsInstantiated() { <ide> <ide> @Override <ide> protected <T> T getBean(Class<T> type) { <del> Assert.state(this.beanFactory != null, "BeanFactory required for...
11
Python
Python
fix strings for python 3k
9445a3d284c5cbc756fee1e6c313a114e937ddea
<ide><path>numpy/lib/tests/test_io.py <ide> def test_structure_unpack(self): <ide> assert_(a.dtype.str == '|S1') <ide> assert_(b.dtype.str == '<i4') <ide> assert_(c.dtype.str == '<f4') <del> assert_array_equal(a, np.array(['M', 'F'])) <add> assert_array_equal(a, np.array([asbytes('...
1
PHP
PHP
remove useless property.
30fd0cf229358d09b7029e3fe69abf58a6b02b7e
<ide><path>src/Illuminate/Console/Scheduling/CallbackEvent.php <ide> <ide> class CallbackEvent extends Event <ide> { <del> /** <del> * The cache store implementation. <del> * <del> * @var \Illuminate\Contracts\Cache\Repository <del> */ <del> protected $cache; <del> <ide> /** <ide> * The ...
1
PHP
PHP
remove broken code
970c9ed70b053aec7d69487a825577ed6f0329d1
<ide><path>src/Illuminate/Auth/RequestGuard.php <ide> public function validate(array $credentials = []) <ide> */ <ide> public function setRequest(Request $request) <ide> { <del> if ($this->request !== $request) { <del> $this->user = null; <del> } <del> <ide> $this->request ...
1
Ruby
Ruby
remove more on --force or --prune
e49a0434014464488de356550ffaa6028666faf5
<ide><path>Library/Homebrew/cmd/cleanup.rb <ide> def cleanup <ide> <ide> def cleanup_logs <ide> return unless HOMEBREW_LOGS.directory? <del> time = Time.now - 2 * 7 * 24 * 60 * 60 # two weeks <add> prune = ARGV.value "prune" <add> if prune <add> time = Time.now - 60 * 60 * 24 * prune.to_i <add> ...
1
Javascript
Javascript
add comments and clean up a bit
9a7a6b93bdc7bf8e037d5ec71a6d4b40519dc0f1
<ide><path>lib/optimize/CommonsChunkPlugin.js <ide> The available options are: <ide> }; <ide> } <ide> <del> getCommonChunks(allChunks, compilation) { <del> const asyncOrNoSelectedChunk = this.selectedChunks === false || this.async; <add> getCommonChunks(allChunks, compilation, chunkNames, selectedChunks, async) { ...
1
Javascript
Javascript
add createtypes function
4ef15109cd495561b5fbd4b151666ed64b5b615e
<ide><path>common/app/redux/types.js <del>const types = [ <add>import createTypes from '../utils/create-types'; <add> <add>export default createTypes([ <ide> 'updateTitle', <ide> <ide> 'fetchUser', <ide> const types = [ <ide> 'handleError', <ide> // used to hit the server <ide> 'hardGoTo' <del>]; <del> <del>...
4
Javascript
Javascript
use expectserror in test-debug-agent.js
ca37ec084a59ab20ab19882b77033bebf85ae555
<ide><path>test/parallel/test-debug-agent.js <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const assert = require('assert'); <ide> const debug = require('_debug_agent'); <ide> <ide> assert.throws( <ide> () => { debug.start(); }, <del> function(err) { <del> return ...
1
Javascript
Javascript
use extra duration precision for rounding
902b3db221b92909d2ab24d2edf7ef1bdab15911
<ide><path>src/lib/duration/create.js <ide> import { Duration, isDuration } from './constructor'; <ide> import toInt from '../utils/to-int'; <add>import absRound from '../utils/abs-round'; <ide> import hasOwnProp from '../utils/has-own-prop'; <ide> import { DATE, HOUR, MINUTE, SECOND, MILLISECOND } from '../units/const...
2
Text
Text
clarify our stance on mixing backbone & redux
dcb43261f3a4a20621f807fc370303084cc12e37
<ide><path>docs/recipes/MigratingToRedux.md <ide> Your process will look like this: <ide> <ide> ## From Backbone <ide> <del>Backbone's model layer is way too different compared with Redux one, so one possible option is to rewrite your app's model layer from scratch. <del>Or you can use [backbone-redux](https://git...
1
Ruby
Ruby
remove depreciated assertion to eliminate warning
65d592842af7bc28f7d11f286a941ae59ad1abb5
<ide><path>activesupport/test/hash_with_indifferent_access_test.rb <ide> def test_default_proc <ide> def test_double_conversion_with_nil_key <ide> h = { nil => "defined" }.with_indifferent_access.with_indifferent_access <ide> <del> assert_equal nil, h[:undefined_key] <add> assert_nil h[:undefined_key] <ide...
1
Python
Python
update documentation on decoder sequence indexing.
eee1a0ed2293be17bfe671a698d60da399317ba3
<ide><path>examples/lstm_seq2seq.py <ide> for t, char in enumerate(input_text): <ide> encoder_input_data[i, t, input_token_index[char]] = 1. <ide> for t, char in enumerate(target_text): <del> # decoder_target_data is ahead of decoder_target_data by one timestep <add> # decoder_target_data ...
1
Java
Java
add possible matches for field access
2ab34373d17c251b0ee89d4fa4537998164413c6
<ide><path>spring-beans/src/main/java/org/springframework/beans/DirectFieldAccessor.java <ide> protected DirectFieldAccessor newNestedPropertyAccessor(Object object, String ne <ide> <ide> @Override <ide> protected NotWritablePropertyException createNotWritablePropertyException(String propertyName) { <add> PropertyM...
4
Python
Python
set many explicitly from mixins. refs #564
55fd64663167ce4447565ecba7170f8eccc1fdf0
<ide><path>rest_framework/generics.py <ide> class Meta: <ide> return serializer_class <ide> <ide> def get_serializer(self, instance=None, data=None, <del> files=None, partial=False): <add> files=None, partial=False, many=False): <ide> """ <ide> Re...
2
PHP
PHP
change htmlentities to urlencode for link
8eae68bde0ed5ba98d291d5afabc4e79abbbd9af
<ide><path>laravel/html.php <ide> public static function decode($value) <ide> */ <ide> public static function script($url, $attributes = array()) <ide> { <del> $url = static::entities(URL::to_asset($url)); <add> $url = urlencode(URL::to_asset($url)); <ide> <ide> return '<script src="'.$url.'"'.static::attribut...
1
Python
Python
fix broken sla mechanism
604a37eee50715db345c5a7afed085c9afe8530d
<ide><path>airflow/jobs/scheduler_job.py <ide> def manage_slas(self, dag: DAG, session: Session = None) -> None: <ide> We are assuming that the scheduler runs often, so we only check for <ide> tasks that should have succeeded in the past hour. <ide> """ <add> self.log.info("Running SLA Ch...
4
Text
Text
add gpg fingerprint for cjihrig
a3c1b9720e517038ea7bf08fd658c07f0de74c33
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt; ([@fishrock123](https://github.com/fishrock123)) <ide> - Release GPG key: FD3A5288F042B6850C66B31F09FE44734EB7990E <ide> * **Colin Ihrig** &lt;cjihrig@gmail.com&gt; ([...
1
Javascript
Javascript
use relative imports in ember-debug
890db01442b8a1f7753947399d13e3a7fe0933d0
<ide><path>packages/ember-debug/lib/deprecate.js <ide> import Logger from 'ember-console'; <ide> <ide> import { ENV } from 'ember-environment'; <ide> <del>import { registerHandler as genericRegisterHandler, invoke } from 'ember-debug/handlers'; <add>import { registerHandler as genericRegisterHandler, invoke } from '....
3
PHP
PHP
add negative asserts
d3de877a0b40be49c2d5dcc55192caab8ee9c7a0
<ide><path>tests/Fixture/AssertHtmlTestCase.php <ide> use Cake\TestSuite\TestCase; <ide> <ide> /** <del> * This class helps in indirectly testing the functionalities of CakeTestCase::assertHtml <add> * This class helps in indirectly testing the functionalities of TestCase::assertHtml <ide> * <ide> */ <ide> class Ass...
3
Javascript
Javascript
fix failing ember.checkbox test on jquery master
3b8987626fc2516dc324a8ccb5fc8a6013bac2dc
<ide><path>packages/ember-handlebars/tests/controls/checkbox_test.js <del>var get = Ember.get, set = Ember.set, checkboxView, dispatcher; <add>var get = Ember.get, set = Ember.set, <add> isInternetExplorer = window.navigator.userAgent.match(/msie/i), <add> checkboxView, dispatcher; <ide> <ide> module("Ember.Chec...
1
Ruby
Ruby
add more documentation
f5cc07dfea3ebc965287ceda828c63f2811fe062
<ide><path>Library/Homebrew/cleaner.rb <ide> # * removes .la files <ide> # * removes empty directories <ide> # * sets permissions on executables <add># * removes unresolved symlinks <ide> class Cleaner <ide> <ide> # Create a cleaner for the given formula <ide> def clean <ide> <ide> private <ide> <add> # Removes...
1
Javascript
Javascript
avoid additional validation for buffers
0a937280d8353b86051b02206811974a658a47d5
<ide><path>benchmark/streams/writable-manywrites.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const Writable = require('stream').Writable; <add> <add>const bench = common.createBenchmark(main, { <add> n: [2e6] <add>}); <add> <add>function main(conf) { <add> const n = +conf.n; <add> cons...
2
PHP
PHP
remove a cast
f3389fe52661420f316ede0777fd07144db93b76
<ide><path>src/Routing/Route/Route.php <ide> protected function normalizeAndValidateMethods($methods) <ide> { <ide> $methods = is_array($methods) <ide> ? array_map('strtoupper', $methods) <del> : strtoupper($methods); <add> : [strtoupper($methods)]; <ide> <del> $dif...
1
Javascript
Javascript
add displayname to reacttransitiongroup + friends
734a34525779a349b25b2b7072f2a99f223c8308
<ide><path>src/addons/transitions/ReactCSSTransitionGroup.js <ide> var ReactTransitionGroup = require('ReactTransitionGroup'); <ide> var ReactCSSTransitionGroupChild = require('ReactCSSTransitionGroupChild'); <ide> <ide> var ReactCSSTransitionGroup = React.createClass({ <add> displayName: 'ReactCSSTransitionGroup', <...
3
Ruby
Ruby
change merge to merge!
bd674fd4e58387c331a7608bbfd48a690471c556
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def initialize(name, config) <ide> @config = { <ide> :terminator => "false", <ide> :scope => [ :kind ] <del> }.merge(config) <add> }.merge!(config) <ide> end <ide> <ide> def compile <ide><path>activesup...
2
Text
Text
update description of stern-brocot challenge
a5840f57a4225212d773e481d5440dd535362cb4
<ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/stern-brocot-sequence.md <ide> For this task, the Stern-Brocot sequence is to be generated by an algorithm simi <ide> <ide> # --instructions-- <ide> <del>Create a function that returns the $ n^{th} $ member of the sequence using the method...
1
Javascript
Javascript
remove extraneous condition
470377bbdb1874eec247a082ce418b0d26c43af6
<ide><path>packages/react-dom/src/shared/ReactControlledValuePropTypes.js <ide> if (__DEV__) { <ide> const propTypes = { <ide> value: function(props, propName, componentName) { <ide> if ( <del> !(propName in props) || <ide> hasReadOnlyValue[props.type] || <ide> props.onChange || <ide>...
1
Text
Text
update tutorial with reference to autobinding docs
f329099831b2cfafffc5fedf8f27497697ba4bff
<ide><path>docs/docs/tutorial.md <ide> var CommentForm = React.createClass({ <ide> <ide> React attaches event handlers to components using a camelCase naming convention. We attach `onChange` handlers to the two `<input>` elements. Now, as the user enters text into the `<input>` fields, the attached `onChange` callback...
1
PHP
PHP
refine the code & add related test case
cd6fea1d6e293a518433c69bcfaacaca3f39babd
<ide><path>src/Illuminate/Pagination/Paginator.php <ide> protected function calculateCurrentAndLastPages() <ide> } <ide> else <ide> { <del> $this->lastPage = (int) ceil($this->total / $this->perPage); <del> $this->lastPage = ($this->lastPage > 0) ? $this->lastPage : 1; <add> $this->lastPage = max((int) ceil...
2
Javascript
Javascript
reset profiler timer correctly after errors
9faf389e79c647d7792e631f3d8e9a9ce1a70625
<ide><path>packages/react-noop-renderer/src/createReactNoop.js <ide> function createReactNoop(reconciler: Function, useMutation: boolean) { <ide> <ide> let instanceCounter = 0; <ide> let failInBeginPhase = false; <add> let failInCompletePhase = false; <ide> <ide> function appendChild( <ide> parentInstance:...
9
PHP
PHP
apply prefix to foreign key's "on" attribute, too
7ead1796d08efe02fb2d5874affa06193c572c23
<ide><path>laravel/database/schema/grammars/grammar.php <ide> public function foreign(Table $table, Fluent $command) <ide> // command is being executed and the referenced table are wrapped. <ide> $table = $this->wrap($table); <ide> <del> $on = $this->wrap($command->on); <add> $on = $this->wrap_table($command->on...
1
Ruby
Ruby
restore argv even when irb.setup raises
d547102253d21f11e2ab772c282f96945928c1fa
<ide><path>Library/Homebrew/debrew/irb.rb <ide> module IRB <ide> def IRB.start_within(binding) <ide> unless @setup_done <ide> # make IRB ignore our command line arguments <del> saved_args = ARGV.shift(ARGV.size) <del> IRB.setup(nil) <del> ARGV.concat(saved_args) <add> begin <add> ...
1
Python
Python
fix some misspellings
12332f4a242c8263f93f126e17241d3221f319ea
<ide><path>glances/core/glances_processes.py <ide> def __init__(self, cache_timeout=60): <ide> self.processcount = { <ide> 'total': 0, 'running': 0, 'sleeping': 0, 'thread': 0} <ide> <del> # Tag to enable/disable the processes stats (to reduce the Glances CPU comsumption) <add> # Tag ...
2
PHP
PHP
fix eventtest testbuildcommand on windows
dcf6f41c49d47b8edc90bc0249766be1a409b954
<ide><path>tests/Console/Scheduling/EventTest.php <ide> public function tearDown() <ide> <ide> public function testBuildCommand() <ide> { <del> $quote = (DIRECTORY_SEPARATOR == '\\') ? '"' : "'"; <add> $isWindows = DIRECTORY_SEPARATOR == '\\'; <add> $quote = ($isWindows) ? '"' : "'"; <ide>...
6
Python
Python
use english instead of model
7939c6388656e1abb932b2deb1af90928c297aa2
<ide><path>spacy/tests/regression/test_issue4903.py <ide> from __future__ import unicode_literals <ide> <ide> import spacy <add>from spacy.lang.en import English <ide> from spacy.tokens import Span, Doc <ide> <ide> <ide> def _get_my_ext(span): <ide> <ide> def test_issue4903(): <ide> # ensures that this runs cor...
1
Mixed
Javascript
enable foreground ripple
6d175f2c257fe1acb1c36b15bc97bdb77560885c
<ide><path>Libraries/Components/Touchable/TouchableNativeFeedback.android.js <ide> */ <ide> 'use strict'; <ide> <add>var Platform = require('Platform'); <ide> var PropTypes = require('react/lib/ReactPropTypes'); <ide> var React = require('React'); <ide> var ReactNative = require('react/lib/ReactNative'); <ide> var ba...
3
PHP
PHP
fix table ordering
4ab4b1dd2c8f726f46150d2a1b040097da13eadc
<ide><path>tests/TestCase/TestSuite/Schema/test_schema.php <ide> declare(strict_types=1); <ide> <ide> return [ <add> [ <add> 'table' => 'schema_generator_comment', <add> 'columns' => [ <add> 'id' => ['type' => 'integer'], <add> 'title' => ['type' => 'string', 'null' => true], <ad...
1
Go
Go
extract helper method for volume linking
84f78d9cad4162ddfc1bccbe55402050123cb1c5
<ide><path>container.go <ide> func (container *Container) Start() (err error) { <ide> } <ide> <ide> // Apply volumes from another container if requested <del> if container.Config.VolumesFrom != "" { <del> containerSpecs := strings.Split(container.Config.VolumesFrom, ",") <del> for _, containerSpec := range contain...
1