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
fix bugs for multilevel_native_crop_and_resize
eb4b727d66c09987ad5c7464f68e7508b3aa0c10
<ide><path>research/object_detection/utils/spatial_transform_ops.py <ide> def multilevel_roi_align(features, boxes, box_levels, output_size, <ide> <ide> def multilevel_native_crop_and_resize(images, boxes, box_levels, <ide> crop_size, scope=None): <del> #FIXME: fix docstring <de...
1
PHP
PHP
use own method instead
afb36eecf2b9e14b6cf3541d436e587b1e77261b
<ide><path>src/View/Helper/PaginatorHelper.php <ide> class PaginatorHelper extends Helper { <ide> public function __construct(View $View, array $config = array()) { <ide> parent::__construct($View, $config); <ide> <add> $this->setUpUrl(); <add> } <add> <add>/** <add> * Merges passed args with URL options. <add> * ...
2
Go
Go
ignore failure to save hns endpoint to store
8b400916cef1fd9d7f8681b20453c8d0af8b863c
<ide><path>libnetwork/drivers/windows/windows.go <ide> func (d *driver) CreateEndpoint(nid, eid string, ifInfo driverapi.InterfaceInfo, <ide> } <ide> <ide> if err = d.storeUpdate(endpoint); err != nil { <del> return fmt.Errorf("failed to save endpoint %s to store: %v", endpoint.id[0:7], err) <add> logrus.Errorf("F...
1
Go
Go
allow concurrent calls to agentclose
efc25da851bd68e52e6505e7c65f209bcb1fdfe4
<ide><path>libnetwork/agent.go <ide> func (c *controller) agentDriverNotify(d driverapi.Driver) { <ide> } <ide> <ide> func (c *controller) agentClose() { <del> if c.agent == nil { <add> // Acquire current agent instance and reset its pointer <add> // then run closing functions <add> c.Lock() <add> agent := c.agent <ad...
1
Javascript
Javascript
remove some useless bits of code
d1d66211644eee43292a874ec076b6bfb0169a6a
<ide><path>PDFFont.js <ide> var Type1Parser = function(aAsciiStream, aBinaryStream) { <ide> * as descrived in 'Using Subroutines' of 'Adobe Type 1 Font Format', <ide> * chapter 8. <ide> */ <del> this.flattenCharstring = function(aCharstring, aDefaultWidth, aNominalWidth, aSubrs) { <add> this.flattenCharstrin...
1
Java
Java
use mono.fromdirect for jetty reactiverespnose
2533ba5253ed285c00dd6f883d114eb7a0f3b29f
<ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java <ide> public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri, <ide> Request request = this.httpClient.newRequest(uri).method(method.toString()); <ide> <ide> return requestCallback.apply(new JettyC...
1
Ruby
Ruby
fix support for `homebrew_editor` with args
75aa369102b882e916f35821e57bd4ba1045604d
<ide><path>Library/Homebrew/utils.rb <ide> def which_editor <ide> <ide> def exec_editor(*args) <ide> puts "Editing #{args.join "\n"}" <del> with_homebrew_path { safe_system(which_editor, *args) } <add> with_homebrew_path { safe_system(*which_editor.shellsplit, *args) } <ide> end <ide> <ide> def exec_browser(*args...
1
Text
Text
remove unwanted images
527dd68f0161e8b341c7e4620f0c0866cd47f0e1
<ide><path>guide/english/sql/sql-server-convert-function/index.md <ide> Converts from one data type to another data type. <ide> <ide> `SELECT CONVERT(INT, 23.456) as IntegerNumber` <ide> <del>![convert a decimal number to integer number](https://user-images.githubusercontent.com/12566249/31314884-6c94db4a-ac57-11e7-...
1
PHP
PHP
add coverage for memory limit increases
0c541b7141f3cc249393363b769599ccc546a1e8
<ide><path>src/Error/BaseErrorHandler.php <ide> public function register() <ide> if ($megabytes === null) { <ide> $megabytes = 4; <ide> } <del> if ($megabytes !== false && $megabytes > 0) { <del> static::increaseMemoryLimit($megabytes * 1024); <add> ...
2
Text
Text
add comment about ulimit format
9292859fcef2306caeb494ee0eaf0ef98aa190d6
<ide><path>docs/sources/reference/commandline/cli.md <ide> set on the daemon. <ide> > `as` option is disabled now. In other words, the following script is not supported: <ide> > `$ docker run -it --ulimit as=1024 fedora /bin/bash` <ide> <add>The values are sent to the appropriate `syscall` as they are set. <add>Dock...
1
Text
Text
revert the guide after removing varargs from `in?`
62c62bc360bf1ce3db0a11be47a974fcc0777362
<ide><path>guides/source/active_support_core_extensions.md <ide> NOTE: Defined in `active_support/core_ext/kernel/reporting.rb`. <ide> <ide> ### `in?` <ide> <del>The predicate `in?` tests if an object is included in another object or a list of objects. An `ArgumentError` exception will be raised if a single argument ...
1
Javascript
Javascript
remove last argument in assert.strictequal()
1066b688bf56b490cb46d26d87e7b619037db151
<ide><path>test/addons-napi/test_env_sharing/test.js <ide> const storeEnv = require(`./build/${common.buildType}/store_env`); <ide> const compareEnv = require(`./build/${common.buildType}/compare_env`); <ide> const assert = require('assert'); <ide> <del>assert.strictEqual(compareEnv(storeEnv), true, <del> ...
1
Python
Python
fix mypy errors at graph_list
bc09ba9abfa220c893b23969a4b8de05f5ced1e1
<ide><path>graphs/graph_list.py <ide> # Author: OMKAR PATHAK, Nwachukwu Chidiebere <ide> <ide> # Use a Python dictionary to construct the graph. <add>from __future__ import annotations <ide> <ide> from pprint import pformat <add>from typing import Generic, TypeVar <ide> <add>T = TypeVar("T") <ide> <del>class GraphA...
1
PHP
PHP
apply suggestions from code review
88b8c8a955e15699661e2f16b5d3eb805a9e4280
<ide><path>src/Error/Debugger.php <ide> public static function exportVar($var, int $maxDepth = 3): string <ide> * @param int $maxDepth The depth to generate nodes to. Defaults to 3. <ide> * @return \Cake\Error\Debug\NodeInterface The root node of the tree. <ide> */ <del> public static function exportN...
2
PHP
PHP
apply fixes from styleci
cd366a40124818c8a550e5caeeded126025c2b42
<ide><path>src/Illuminate/View/Compilers/ComponentTagCompiler.php <ide> use Illuminate\Contracts\View\Factory; <ide> use Illuminate\Support\Str; <ide> use Illuminate\View\AnonymousComponent; <del>use Illuminate\View\Compilers\BladeCompiler; <ide> use InvalidArgumentException; <ide> use ReflectionClass; <ide>
1
Python
Python
remove class attribute
d7aff47ec72a0796b858613e5c70f9e49699732e
<ide><path>libcloud/compute/drivers/vsphere.py <ide> class VSphereNodeDriver(NodeDriver): <ide> name = 'VMware vSphere' <ide> website = 'http://www.vmware.com/products/vsphere/' <ide> type = Provider.VSPHERE <del> host = '' <ide> <ide> NODE_STATE_MAP = { <ide> 'poweredOn': NodeState.RUNNING,...
1
Python
Python
add a placeholder test
82628b0fc921e5e3f250bcad10f2b3c54111c17f
<ide><path>transformers/__init__.py <ide> BertForMaskedLM, BertForNextSentencePrediction, <ide> BertForSequenceClassification, BertForMultipleChoice, <ide> BertForTokenClassification, BertForQuestionAnswering, <del> ...
2
Javascript
Javascript
check inspect array with empty string key
21a3ae35740e8a89395d05c68dd40814264d4bb0
<ide><path>test/parallel/test-util-inspect.js <ide> if (typeof Symbol !== 'undefined') { <ide> assert.strictEqual(util.inspect(x), '{}'); <ide> } <ide> <add>{ <add> const x = []; <add> x[''] = 1; <add> assert.strictEqual(util.inspect(x), '[ \'\': 1 ]'); <add>} <add> <ide> // The following maxArrayLength tests wer...
1
Text
Text
add a statement in the documentation
50103bff5bf9098d48a41dba9568efb20408768f
<ide><path>doc/api/string_decoder.md <ide> substitution characters appropriate for the character encoding. <ide> <ide> If the `buffer` argument is provided, one final call to `stringDecoder.write()` <ide> is performed before returning the remaining input. <add>After `end()` is called, the `stringDecoder` object can be...
1
Python
Python
remove extraeneous spaces
4faea59a79bd6a038b964619560646d56ed66577
<ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py <ide> def get_proposal_feature_extractor_model(self, name=None): <ide> self._conv_hyperparams.build_activation_layer( <ide> name=layer_name)) <ide> self._coarse_feature_layers.appen...
1
Go
Go
add test for force-new-cluster
1acb8ef82572c52994b1ff00fe5c86aac53be4b8
<ide><path>integration-cli/docker_api_swarm_test.go <ide> func (s *DockerSwarmSuite) TestApiSwarmPromoteDemote(c *check.C) { <ide> break <ide> } <ide> if i > 100 { <del> c.Errorf("node did not turn into manager") <add> c.Errorf("node did not turn into worker") <ide> } else { <ide> break <ide> } <ide> ...
1
Go
Go
fix docker rmi via id
5a934fc923af316a6e82b9dd11169484b3b744f6
<ide><path>server.go <ide> func (srv *Server) deleteImageAndChildren(id string, imgs *[]APIRmi) error { <ide> if len(srv.runtime.repositories.ByID()[id]) != 0 { <ide> return ErrImageReferenced <ide> } <del> <ide> // If the image is not referenced but has children, go recursive <ide> referenced := false <ide> byP...
1
Ruby
Ruby
remove unnecessary require
5ec52ea4da260d2f7abfc765fdcd2819076bd212
<ide><path>Library/Homebrew/test/testing_env.rb <ide> def shutup <ide> <ide> require 'test/unit' # must be after at_exit <ide> require 'extend/ARGV' # needs to be after test/unit to avoid conflict with OptionsParser <del>require 'extend/ENV' <ide> ARGV.extend(HomebrewArgvExtension) <ide> <ide> begin
1
PHP
PHP
correct url generation
22471c4da005b936da686656d7e199fe82788edf
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function generateUrl(array $options = array(), $model = null, $full = fal <ide> ]; <ide> <ide> if (!empty($this->_config['options']['url'])) { <del> $url = array_merge($this->_config['options']['url'], $url); <add> $url = array_merge($url, $this->_con...
1
Javascript
Javascript
fix bug with unref var
8db37875445e3fc664b79261f14c222a152709d1
<ide><path>pdf.js <ide> var IndexedCS = (function() { <ide> return this.base.getRgb(c); <ide> }, <ide> getRgbBuffer: function indexcs_getRgbBuffer(input) { <add> var base = this.base; <ide> var numComps = base.numComps; <ide> var lookup = this.lookup; <ide> var length = input.length...
1
Text
Text
add changelog entry for
dbf6dbb147903bb1af497eb6c8da1cb9310aa435
<ide><path>activesupport/CHANGELOG.md <add>* Raises an `ArgumentError` when the first argument of `ActiveSupport::Notification.subscribe` is <add> invalid. <add> <add> *Vipul A M* <add> <ide> * `HashWithIndifferentAccess#deep_transform_keys` now returns a `HashWithIndifferentAccess` instead of a `Hash`. <ide>...
1
Java
Java
fix javadoc in pathpattern
0636ba68d76727daba0e7a54ff06d447f33c5225
<ide><path>spring-web/src/main/java/org/springframework/web/util/pattern/PathPattern.java <ide> * <li><code>/resources/{&#42;path}</code> &mdash; matches all files <ide> * underneath the {@code /resources/} path and captures their relative path in <ide> * a variable named "path"; {@code /resources/image.png} will ma...
1
Text
Text
add iarna to collaborators
7b09aade8468e1c930f36b9c81e6ac2ed5bc8732
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [domenic](https://github.com/domenic) - **Domenic Denicola** &lt;d@domenic.me&gt; <ide> * [evanlucas](https://github.com/evanlucas) - **Evan Lucas** &lt;evanlucas@me.com&gt; <ide> * [geek](https://github.com/geek) - **Wyatt ...
1
PHP
PHP
remove options retrieving from broadcaster
16ed752928a59e0b3003ab54675fcb3096b23d96
<ide><path>src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php <ide> public function channel($channel, $callback, array $options = []) <ide> * @return mixed <ide> * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException <ide> */ <del> protected function verifyUserCanAccessChann...
1
PHP
PHP
fix validator docblock
45bd699fd8a37148bc5a9dfbebce722b4d17d436
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateImage($attribute, $value) <ide> * Validate the MIME type of a file upload attribute is in a set of MIME types. <ide> * <ide> * @param string $attribute <del> * @param array $value <add> * @param mixed $value <ide> * @pa...
1
Python
Python
ensure closables in request.files get closed.
6d4d4dfd046e85253194f6bfe33574c080abf432
<ide><path>rest_framework/request.py <ide> def _load_data_and_files(self): <ide> else: <ide> self._full_data = self._data <ide> <add> # copy files refs to the underlying request so that closable <add> # objects are handled appropriately. <add> self._request....
3
PHP
PHP
remove undefined parameters from docblocks
f493e7a0878c9145b9dda1c8854732c80d84eacc
<ide><path>src/Illuminate/Contracts/Bus/Dispatcher.php <ide> interface Dispatcher <ide> * Dispatch a command to its appropriate handler. <ide> * <ide> * @param mixed $command <del> * @param \Closure|null $afterResolving <ide> * @return mixed <ide> */ <ide> public function dispatch($...
1
Text
Text
move correct example to the top
6f1f8627ee3becdcedd90d909ccda9b830ac9bf3
<ide><path>docs/recipes/structuring-reducers/ImmutableUpdatePatterns.md <ide> The articles listed in [Prerequisite Concepts#Immutable Data Management](Prerequ <ide> <ide> The key to updating nested data is **that _every_ level of nesting must be copied and updated appropriately**. This is often a difficult concept for...
1
Javascript
Javascript
remove getmaxprecision from webglstate
42520325677e0ae51c157e87ffd0c065ff8770c6
<ide><path>src/renderers/webgl/WebGLState.js <ide> THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { <ide> <ide> }; <ide> <del> this.getMaxPrecision = function ( precision ) { <del> <del> if ( precision === 'highp' ) { <del> <del> if ( gl.getShaderPrecisionFormat( gl.VERTEX_SHADER, gl.HIGH_FLOAT )....
1
Python
Python
print a stacktrace on cli error (closes )
5b7fd9ad889e54d4d694d310b559c921d7df75cf
<ide><path>flask/cli.py <ide> <ide> import os <ide> import sys <add>import traceback <ide> from threading import Lock, Thread <ide> from functools import update_wrapper <ide> <ide> def list_commands(self, ctx): <ide> # want the help page to break if the app does not exist. <ide> # If someone a...
1
Mixed
Javascript
support uint8array input to methods
627ecee9edd9df247e7541ee8084d925f85ede7f
<ide><path>doc/api/child_process.md <ide> added: v0.11.12 <ide> * `args` {Array} List of string arguments <ide> * `options` {Object} <ide> * `cwd` {String} Current working directory of the child process <del> * `input` {String|Buffer} The value which will be passed as stdin to the <del> spawned process <add> * `...
4
Text
Text
enclose a value of variable in back quote
f0a7b5df642b376a80f6ded3bea886826d55a45f
<ide><path>docs/docs/07-forms.md <ide> Using form components such as `<input>` in React presents a challenge that is ab <ide> <input type="text" name="title" value="Untitled" /> <ide> ``` <ide> <del>This renders an input *initialized* with the value, `Untitled`. When the user updates the input, the node's value *pro...
1
Javascript
Javascript
fix the combineurl function
220a8e4f0e8690c0ab9a0ad8e34edc176febb716
<ide><path>src/shared/util.js <ide> function combineUrl(baseUrl, url) { <ide> if (url.charAt(0) == '/') { <ide> // absolute path <ide> var i = baseUrl.indexOf('://'); <del> i = baseUrl.indexOf('/', i + 3); <add> if (url.charAt(1) === '/') { <add> ++i; <add> } else { <add> i = baseUrl.indexO...
1
Javascript
Javascript
simplify constructor retrieval in inspect()
f43d1ca3b0edf4181aaa4943e859a5875c5855a8
<ide><path>lib/internal/util/inspect.js <ide> const { <ide> Array, <ide> ArrayIsArray, <del> BigInt64Array, <ide> BigIntPrototypeValueOf, <del> BigUint64Array, <ide> BooleanPrototypeValueOf, <ide> DatePrototypeGetTime, <ide> DatePrototypeToISOString, <ide> DatePrototypeToString, <ide> ErrorPrototypeTo...
1
Text
Text
add a link to the metrics document
8a8ef43ffcf8d95d2880da073bbcee73e51aad48
<ide><path>docs/templates/getting-started/sequential-model-guide.md <ide> Before training a model, you need to configure the learning process, which is do <ide> <ide> - An optimizer. This could be the string identifier of an existing optimizer (such as `rmsprop` or `adagrad`), or an instance of the `Optimizer` class. ...
1
Javascript
Javascript
add jsdoc for the copy() method
7cb7fb91c673c006612c38a2ef07d850f642c8df
<ide><path>src/Angular.js <ide> function isLeafNode (node) { <ide> return false; <ide> } <ide> <add>/** <add> * Copies stuff. <add> * <add> * If destination is not provided and source is an object or an array, a copy is created & returned, <add> * otherwise the source is returned. <add> * <add> * If destination is p...
1
Go
Go
inspect changes to a container's filesystem
bdb66012a830e06103d0ed6913c38bbc69a09bca
<ide><path>dockerd/dockerd.go <ide> import ( <ide> "text/tabwriter" <ide> "sort" <ide> "os" <add> "archive/tar" <ide> ) <ide> <ide> func (docker *Docker) CmdHelp(stdin io.ReadCloser, stdout io.Writer, args ...string) error { <ide> func (docker *Docker) CmdHelp(stdin io.ReadCloser, stdout io.Writer, args ...str <ide...
1
Ruby
Ruby
remove autocorrection of some urls
1c2d76c4e4903322197c3cf854188e31d5a41838
<ide><path>Library/Homebrew/rubocops/patches.rb <ide> def patch_problems(patch_url_node) <ide> end <ide> <ide> if regex_match_group(patch_url_node, %r{https://github.com/[^/]*/[^/]*/commit/[a-fA-F0-9]*\.diff}) <del> problem "GitHub patches should end with .patch, not .diff: #{patch_url}"...
1
Ruby
Ruby
use activesupport hash#deep_merge
0c6331878f0a0c33b3f22dbd6cd6ebf1fb9232ae
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def merge <ide> write = args.write? <ide> <ide> bottles_hash = ARGV.named.reduce({}) do |hash, json_file| <del> deep_merge_hashes hash, JSON.parse(IO.read(json_file)) <add> hash.deep_merge(JSON.parse(IO.read(json_file))) <ide> end <ide> <ide> ...
5
Ruby
Ruby
exclude documentation from `brew list --unbrewed`
e537fc41de8baad61c9296d8628a9feb6edb4385
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list <ide> lib/gio/* <ide> lib/node_modules/* <ide> lib/python[23].[0-9]/* <add> share/doc/homebrew/* <ide> share/info/dir <ide> share/man/man1/brew.1 <ide> share/man/whatis
1
Javascript
Javascript
emend the comment
1e58a4287c065a6cd19b731dadf1868ab3ff0a57
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> var ScrollView = React.createClass({ <ide> snapToInterval: PropTypes.number, <ide> /** <ide> * When `snapToInterval` is set, `snapToAlignment` will define the relationship <del> * of the the snapping to the scroll view. <add> * of the s...
1
Javascript
Javascript
fix style in sys.js
d62b0f442a8bffc8f01a7edbece2c7c554a80948
<ide><path>lib/sys.js <ide> var events = require('events'); <ide> <add> <ide> exports.print = function () { <ide> for (var i = 0, len = arguments.length; i < len; ++i) { <ide> process.stdout.write(arguments[i]); <ide> } <ide> }; <ide> <add> <ide> exports.puts = function () { <ide> for (var i = 0, len = argu...
1
Ruby
Ruby
add database specific string concatenation
83c47c1962827698eb0ed58d191f121cedf89385
<ide><path>lib/arel/nodes/infix_operation.rb <ide> def initialize left, right <ide> end <ide> end <ide> <add> class Concat < InfixOperation <add> def initialize left, right <add> super('||', left, right) <add> end <add> end <ide> end <del>end <ide>\ No newline at end of file <add>end...
8
PHP
PHP
add interface for http client adapters
065556fdbe590e494a4ceb5724f25400632ea9bb
<ide><path>src/Http/Client/Adapter/Stream.php <ide> namespace Cake\Http\Client\Adapter; <ide> <ide> use Cake\Core\Exception\Exception; <add>use Cake\Http\Client\AdapterInterface; <ide> use Cake\Http\Client\Request; <ide> use Cake\Http\Client\Response; <ide> use Cake\Http\Exception\HttpException; <ide> * <ide> * This...
2
Go
Go
move runtime and container into sub pkg
36c3614fdde079fad178390f651945fba884668a
<ide><path>buildfile.go <ide> import ( <ide> "github.com/dotcloud/docker/auth" <ide> "github.com/dotcloud/docker/registry" <ide> "github.com/dotcloud/docker/runconfig" <add> "github.com/dotcloud/docker/runtime" <ide> "github.com/dotcloud/docker/utils" <ide> "io" <ide> "io/ioutil" <ide> type BuildFile interface { ...
15
Ruby
Ruby
replace sleep with synchronization
dae525eec8062bfbbe39141de448053b127d4756
<ide><path>activerecord/test/cases/scoping/default_scoping_test.rb <ide> require "models/computer" <ide> require "models/vehicle" <ide> require "models/cat" <add>require "concurrent/atomic/cyclic_barrier" <ide> <ide> class DefaultScopingTest < ActiveRecord::TestCase <ide> fixtures :developers, :posts, :comments <ide...
2
Ruby
Ruby
raise error if no watchlist
9f7e471382d61b5a6ea61c48767271edcedcebe2
<ide><path>Library/Homebrew/dev-cmd/livecheck.rb <ide> def livecheck <ide> rescue Errno::ENOENT => e <ide> onoe e <ide> end <add> else <add> raise UsageError, "ENV['HOMEBREW_LIVECHECK_WATCHLIST'] or ~/.brew_livecheck_watchlist is required " \ <add> "if no f...
1
PHP
PHP
fix doc block in test
f9fbead4b61be40d3b3544d0fb5c37e508ff5f66
<ide><path>tests/test_app/TestApp/Controller/AuthTestController.php <ide> class AuthTestController extends Controller <ide> /** <ide> * testUrl property <ide> * <del> * @var mixed <add> * @var string|array <ide> */ <ide> public $testUrl = null; <ide> <ide> /** <ide> * construct ...
1
Javascript
Javascript
remove ngview manual transclusion system
b7a54497b51061d0f5d9ae74b74f5dd7c8eae51d
<ide><path>src/ngRoute/directive/ngView.js <ide> 'use strict'; <ide> <add>ngRouteModule.directive('ngView', ngViewFactory); <add> <ide> /** <ide> * @ngdoc directive <ide> * @name ngRoute.directive:ngView <ide> * @description <ide> * Emitted every time the ngView content is reloaded. <ide> */ <del>var NG_VIEW_PRIO...
1
PHP
PHP
update assetfilter to use response methods
a11ab397f8eecad3a601dd5e11a92a5e9cb2ba99
<ide><path>src/Routing/Filter/AssetFilter.php <ide> public function beforeDispatch(Event $event) <ide> <ide> $pathSegments = explode('.', $url); <ide> $ext = array_pop($pathSegments); <del> $this->_deliverAsset($request, $response, $assetFile, $ext); <del> <del> return $response; <add> ...
2
Ruby
Ruby
clarify xquartz warning
4cbaeb6d61f10db1abcb3f844c3bc234107732c5
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_xcode_license_approved <ide> end <ide> <ide> def check_for_latest_xquartz <del> quartz = MacOS::XQuartz.version <del> return unless quartz <add> return unless MacOS::XQuartz.installed? <ide> return if MacOS::XQuartz.provided_by_apple? <ide> <d...
1
Python
Python
add tests for new response classes
2d3e1deb1e4e5c7a225ff0f271f249cb7e56b0af
<ide><path>test/test_response_classes.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Ap...
1
PHP
PHP
add route macro
7f08a725e0fdf34a7569bc62ec51220d8af9581f
<ide><path>src/Illuminate/Routing/Router.php <ide> use Illuminate\Pipeline\Pipeline; <ide> use Illuminate\Support\Collection; <ide> use Illuminate\Container\Container; <add>use Illuminate\Support\Traits\Macroable; <ide> use Illuminate\Contracts\Events\Dispatcher; <ide> use Illuminate\Contracts\Routing\Registrar as Regi...
2
Javascript
Javascript
improve docs and examples further
74ef7f14a49662ebf389a515b86e6dd68e746811
<ide><path>src/auto/injector.js <ide> function annotate(fn) { <ide> * <ide> * @description <ide> * <del> * Use `$provide` to register new providers with the `$injector`. The providers are the factories for the instance. <del> * The providers share the same name as the instance they create with `Provider` suffixed to...
1
PHP
PHP
remove invalid throws. restore typehint for ide
28756542b171fa2261a38a2ae35fa56d2840eba0
<ide><path>src/Database/Type/DecimalType.php <ide> public function toDatabase($value, DriverInterface $driver) <ide> * @param mixed $value The value to convert. <ide> * @param \Cake\Database\DriverInterface $driver The driver instance to convert with. <ide> * @return string|null <del> * @throws \Cake...
1
Go
Go
make daemon initialization in main goroutine
181fea24aac7499a3d6dc0c8c9de67e6c0036140
<ide><path>docker/daemon.go <ide> import ( <ide> "io" <ide> "os" <ide> "path/filepath" <del> "strings" <ide> <ide> "github.com/Sirupsen/logrus" <ide> apiserver "github.com/docker/docker/api/server" <ide> func mainDaemon() { <ide> } <ide> daemonCfg.TrustKeyPath = *flTrustKey <ide> <del> registryService := regis...
2
Python
Python
apply suggestions from code review
74df99926a2d561cd756d6df87f27af264213933
<ide><path>numpy/__init__.py <ide> ) <ide> for n, n2 in [("long", "int"), ("unicode", "str")] <ide> }) <add> # Numpy 1.20.0, 2020-10-19 <ide> __deprecated_attrs__["typeDict"] = ( <del> getattr(core.numerictypes, "typeDict"), <add> core.numerictypes.typeDict, <ide> "`np.t...
3
PHP
PHP
remove unnecessary variable
602efbadde06601577904c66608829087f2ce771
<ide><path>tests/Broadcasting/BroadcasterTest.php <ide> public function testNotFoundThrowsHttpException() <ide> $broadcaster = new FakeBroadcaster(); <ide> $callback = function ($user, BroadcasterTestEloquentModelNotFoundStub $model) { <ide> }; <del> $parameters = $broadcaster->extractAut...
1
Text
Text
add 0.68.3 changelog
bd17d83be112c2a0482c99d2a3e5d54ec7a6319c
<ide><path>CHANGELOG.md <ide> <ide> - Encode URL params in URLSearchParams.toString() ([1042a8012f](https://github.com/facebook/react-native/commit/1042a8012fb472bd5c882b469fe507dd6279d562) by [@sshic](https://github.com/sshic)) <ide> <add>## v0.68.3 <add> <add>### Changed <add> <add>#### Android specific <add> <add>...
1
Mixed
Ruby
use official database name [ci skip]
96f0114e082b116856e945b075abd747eff0e63e
<ide><path>activerecord/CHANGELOG.md <ide> bulk deletes by `delete_all`. <ide> <ide> Supports skipping or upserting duplicates through the `ON CONFLICT` syntax <del> for Postgres (9.5+) and Sqlite (3.24+) and `ON DUPLICATE KEY UPDATE` syntax <add> for PostgreSQL (9.5+) and SQLite (3.24+) and `ON DUPLICAT...
7
Text
Text
update hall of fame verbiage
9e1bac4807d0268c561bb8ddad84fffac8ee07e1
<ide><path>HoF.md <ide> # Responsible Disclosure <ide> <del>freeCodeCamp appreciates any responsible disclosure of vulnerabilities which might impact the integrity of the platform or the users associated with it. Although we do not offer any bounties or swags at the moment, we'll be happy to list your name in our Hall...
1
Ruby
Ruby
fix documentation for connected_to
59ef3c8e70dd8562d5ced4c3a87c37da66a61a30
<ide><path>activerecord/lib/active_record/connection_handling.rb <ide> def connects_to(database: {}, shards: {}) <ide> # Dog.create! # throws exception because we're on a replica <ide> # end <ide> # <del> # If only a shard is passed, Active Record will look up the shard on the <del> # current ro...
1
Python
Python
add support about region of '''cn-northwest-1'
358b9fa8ad124a088bb1f8a0a97012c78aeac3b7
<ide><path>libcloud/storage/drivers/s3.py <ide> import base64 <ide> import hmac <ide> import time <del> <ide> from hashlib import sha1 <ide> <ide> import libcloud.utils.py3 <add> <ide> try: <ide> if libcloud.utils.py3.DEFAULT_LXML: <ide> from lxml.etree import Element, SubElement <ide> from libcloud.storag...
3
Python
Python
fix bart slow test
f5516805c2d0ea39797d46d9433dab43f769bea1
<ide><path>tests/test_modeling_bart.py <ide> def test_inference_no_head(self): <ide> output = model.forward(**inputs_dict)[0] <ide> expected_shape = torch.Size((1, 11, 1024)) <ide> self.assertEqual(output.shape, expected_shape) <del> expected_slice = torch.Tensor( <add> expecte...
1
Go
Go
add katie bouman to names generator
191c0fec8c827ca4822baee72446ac155e63425e
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> // Satyendra Nath Bose - He provided the foundation for Bose–Einstein statistics and the theory of the Bose–Einstein condensate. - https://en.wikipedia.org/wiki/Satyendra_Nath_Bose <ide> "bose", <ide> <add> // Katherine Louise Bouman is an imaging...
1
Python
Python
fix document about response_check in httpsensor
ccd28cbf443b411731efce22e7a5e275f172691f
<ide><path>airflow/providers/http/sensors/http.py <ide> class HttpSensor(BaseSensorOperator): <ide> <ide> The response check can access the template context to the operator: <ide> <add> .. code-block:: python <add> <ide> def response_check(response, task_instance): <ide> # The task_instance...
1
Text
Text
add brief description of "user stories"
846a221493cc893d7ed2b1d85b431924371a9d9b
<ide><path>guide/english/agile/sprints/index.md <ide> title: Sprints <ide> In Scrum, the **Sprint** is a period of working time usually between one and four weeks in which the delivery team works on your project. Sprints are iterative, and continue until the project is completed. Each sprint begins with a Sprint Planni...
1
Go
Go
modify id to chainid to avoid confusing
1b0f2d71a1aa9e529357e2ffe342af2a12d7c145
<ide><path>layer/empty_test.go <ide> import ( <ide> <ide> func TestEmptyLayer(t *testing.T) { <ide> if EmptyLayer.ChainID() != ChainID(DigestSHA256EmptyTar) { <del> t.Fatal("wrong ID for empty layer") <add> t.Fatal("wrong ChainID for empty layer") <ide> } <ide> <ide> if EmptyLayer.DiffID() != DigestSHA256EmptyTa...
2
Javascript
Javascript
support filespec dictionary in annotations
4efab13c589516900a6436e4c8d9a351b14596a9
<ide><path>src/core.js <ide> var Page = (function PageClosure() { <ide> break; <ide> case 'GoToR': <ide> var url = a.get('F'); <add> if (isDict(url)) { <add> // We assume that the 'url' is a Filspec dictionary <add> ...
1
Python
Python
add stdev to the dense layer.
fa28535d2940adf24c5e668c4bdba46379286aec
<ide><path>official/resnet/keras/resnet_cifar_model.py <ide> import functools <ide> import tensorflow as tf <ide> from tensorflow.python.keras import backend <add>from tensorflow.python.keras import initializers <ide> from tensorflow.python.keras import layers <ide> from tensorflow.python.keras import regularizers <id...
2
Javascript
Javascript
minimize memory usage of font-related arrays
c7f02d2c8ee1d1c7cbb26c9600c910ab3b33603f
<ide><path>src/core/fonts.js <ide> var Font = (function FontClosure() { <ide> // length <ide> var length = data.length; <ide> <del> // Per spec tables must be 4-bytes align so add padding as needed <del> while (data.length & 3) { <del> data.push(0x00); <add> // Per spec tables must be 4-bytes ali...
2
Text
Text
create model card for asafaya/bert-mini-arabic
3cdf8b7ec2ac7b638bac7495870f1fd152314251
<ide><path>model_cards/asafaya/bert-mini-arabic/README.md <add>--- <add>language: arabic <add>datasets: <add>- oscar <add>- wikipedia <add>--- <add> <add># Arabic BERT Mini Model <add> <add>Pretrained BERT Mini language model for Arabic <add> <add>_If you use this model in your work, please cite this paper (to appear i...
1
Javascript
Javascript
add auth option case for url.format
9e0fb1acefe938843aee37c0c8bfa682f948f447
<ide><path>test/parallel/test-url-format-whatwg.js <ide> if (!common.hasIntl) <ide> const assert = require('assert'); <ide> const url = require('url'); <ide> <del>const myURL = new URL('http://xn--lck1c3crb1723bpq4a.com/a?a=b#c'); <add>const myURL = new URL('http://user:pass@xn--lck1c3crb1723bpq4a.com/a?a=b#c'); <ide>...
1
Ruby
Ruby
pull mock initialization code into initialize
df7756aeb9bbf13d3dc2a65fa291ff6625a48e69
<ide><path>Library/Homebrew/test/test_updater.rb <ide> <ide> class UpdaterTests < Test::Unit::TestCase <ide> class UpdaterMock < ::Updater <add> def initialize(*args) <add> super <add> @outputs = Hash.new { |h, k| h[k] = [] } <add> @expected = [] <add> @called = [] <add> end <add> <ide> ...
1
Javascript
Javascript
deprecate direct use of coreview
c6747547f5c1f73c64167c443e633c31867b2172
<ide><path>packages/ember-views/lib/main.js <ide> import { <ide> states <ide> } from "ember-views/views/states"; <ide> <del>import CoreView from "ember-views/views/core_view"; <add>import { DeprecatedCoreView } from "ember-views/views/core_view"; <ide> import View from "ember-views/views/view"; <ide> import Containe...
3
Python
Python
add default arguments for project euler problem 6
ddf83ec886373e1cb35318690b9bc2c737fc9f9b
<ide><path>project_euler/problem_06/sol1.py <ide> """ <del>Problem: <add>Problem 6: https://projecteuler.net/problem=6 <ide> <ide> The sum of the squares of the first ten natural numbers is, <ide> 1^2 + 2^2 + ... + 10^2 = 385 <ide> """ <ide> <ide> <del>def solution(n: int) -> int: <add>def solution(n: in...
5
Ruby
Ruby
update xcode checks and urls
6345ceef1fa13830b720dbf425c7408100ce2570
<ide><path>install_homebrew.rb <ide> def macos_version <ide> warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include? '/usr/local/bin' <ide> <ide> if macos_version < 10.7 <del> warn "Now install Xcode: http://developer.apple.com/technologies/xcode.html" unless Kernel.system "/usr/bin/which -s...
1
Python
Python
fix typo in retag_images.py
0d6e29abb0f47937e7546b564b9a445322d8c9b1
<ide><path>dev/retag_docker_images.py <ide> <ide> <ide> GHCR_IO_IMAGES = [ <del> "{prefix}/{repo}/{branch}/ci/python{python_version}:latest", <del> "{prefix}/{repo}/{branch}/prod/python{python_version}:latest", <add> "{prefix}/{repo}/{branch}/ci/python{python}:latest", <add> "{prefix}/{repo}/{branch}/prod...
1
PHP
PHP
return responses from blackhole callbacks
4b7a8060708c886b8fae3ae77863ff452a2b141e
<ide><path>src/Controller/Component/SecurityComponent.php <ide> public function startup(Event $event) <ide> $isNotRequestAction && <ide> $this->_config['validatePost'] <ide> ) { <del> $this->_validatePost($controller); <add> $this->_validateP...
3
Python
Python
return global attentions (see )
b3544e4cc5f29c97e84992b7869edd66e52e46b6
<ide><path>src/transformers/models/longformer/modeling_longformer.py <ide> def forward( <ide> logits=prediction_scores, <ide> hidden_states=outputs.hidden_states, <ide> attentions=outputs.attentions, <add> global_attentions=outputs.global_attentions, <ide> ) <ide> ...
1
Javascript
Javascript
use has_native_symbol consistently
f2dfd1393acf7abe4d00fa82acb13c918f13598c
<ide><path>packages/@ember/-internals/glimmer/tests/integration/content-test.js <ide> import { set, computed } from '@ember/-internals/metal'; <ide> import { getDebugFunction, setDebugFunction } from '@ember/debug'; <ide> import { readOnly } from '@ember/object/computed'; <ide> import { Object as EmberObject, ObjectPro...
2
Text
Text
remove trailing whitespace. [ci skip]
e83a6ff5b75fa8407fa8f3733a39b365dace141a
<ide><path>guides/source/caching_with_rails.md <ide> This method generates a cache key that depends on all products and can be used i <ide> <% end %> <ide> ``` <ide> <del>If you want to cache a fragment under certain condition you can use `cache_if` or `cache_unless` <add>If you want to cache a fragment under certain...
2
Javascript
Javascript
remove the unnecessary 'var' in `runverbose`
f799fa13b838d84bc9fe62ba7b30b80002085552
<ide><path>react-native-cli/index.js <ide> function run(root, projectName, rnPackage) { <ide> <ide> checkNodeVersion(); <ide> <del> var cli = require(CLI_MODULE_PATH()); <add> cli = require(CLI_MODULE_PATH()); <ide> cli.init(root, projectName); <ide> }); <ide> }
1
Javascript
Javascript
fix lint errors
e777c0de8e258bea76e3e53025c6642316858ba9
<ide><path>src/history-manager.js <ide> export class HistoryManager { <ide> } <ide> <ide> addProject (paths, lastOpened) { <del> if (paths.length == 0) return <add> if (paths.length === 0) return <ide> <ide> let project = this.getProject(paths) <ide> if (!project) { <ide> export class HistoryManager...
1
Mixed
Ruby
introduce a benchmark template [ci skip]
f2f9b8868590bb4be8965583096862e29b9f83fb
<ide><path>guides/bug_report_templates/benchmark.rb <add>begin <add> require "bundler/inline" <add>rescue LoadError => e <add> $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" <add> raise e <add>end <add> <add>gemfile(true) do <add> source "https://rubygems.org" <add> gem "rails...
2
Ruby
Ruby
read version from sdksettings
8c81a2822cb1a2af4794d5d08ee38c8d376f43e2
<ide><path>Library/Homebrew/os/mac/sdk.rb <ide> module Mac <ide> # <ide> # @api private <ide> class SDK <add> VERSIONED_SDK_REGEX = /MacOSX(\d+\.\d+)\.sdk$/.freeze <add> <ide> attr_reader :version, :path, :source <ide> <ide> def initialize(version, path, source) <ide> class BaseSDKLocator ...
1
Python
Python
set version to v2.1.4
3aceeeaaeb0d27d1cfa3f1d5b7671c49ccc9174a
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy" <del>__version__ = "2.1.4.dev1" <add>__version__ = "2.1.4" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI"
1
Text
Text
fix internal hyperlink typo
be57c8eeef69ec22edc577e6aba17eb8609ad65b
<ide><path>README.md <ide> This implementation is provided with [Google's pre-trained models](https://githu <ide> | [Doc](#doc) | Detailed documentation | <ide> | [Examples](#examples) | Detailed examples on how to fine-tune Bert | <ide> | [Notebooks](#notebooks) | Introduction on the provided Jupyter Notebooks | <del...
1
Python
Python
fix printing of limits
1775a591a73fe76162ea871f07349648620ac5b5
<ide><path>numpy/lib/getlimits.py <ide> def __new__(cls, dtype): <ide> return obj <ide> <ide> def _init(self, dtype): <del> self.dtype = dtype <add> self.dtype = np.dtype(dtype) <ide> if dtype is ntypes.double: <ide> itype = ntypes.int64 <ide> fmt = '%24.16e' <...
1
Javascript
Javascript
use prefetchimage method in image
0167dff2094e1b1c42d981c0b97f9baf3707921f
<ide><path>Libraries/Image/Image.ios.js <ide> function getSizeWithHeaders( <ide> } <ide> <ide> function prefetch(url: string): any { <del> return ImageViewManager.prefetchImage(url); <add> return NativeImageLoader.prefetchImage(url); <ide> } <ide> <ide> async function queryCache(
1
Python
Python
fix import error
7e1a13ffbd212e928e866c2e4cf5d92d85660f86
<ide><path>examples/minitwit/minitwit/__init__.py <del>from minitwit import app <ide>\ No newline at end of file <add>from .minitwit import app
1
PHP
PHP
load cakephp-plugins when searching paths
703b4860b7f3b827e609bb59c16ff79860e1eb99
<ide><path>src/Core/PluginCollection.php <ide> protected function loadConfig() <ide> */ <ide> public function findPath($name) <ide> { <add> $this->loadConfig(); <add> <ide> $path = Configure::read('plugins.' . $name); <ide> if ($path) { <ide> return $path; <ide><path>test...
2
PHP
PHP
add alias for call silent
7f3101bf6e8a0f048a243a55be7fc79eb359b609
<ide><path>src/Illuminate/Console/Concerns/CallsCommands.php <ide> public function call($command, array $arguments = []) <ide> } <ide> <ide> /** <del> * Call another console command silently. <add> * Call another console command without output. <ide> * <ide> * @param \Symfony\Component\Conso...
1
Go
Go
remove lcow bits
c33b9bcfd420049b95936092282fe33c1ab9917c
<ide><path>libcontainerd/local/local_windows.go <ide> package local // import "github.com/docker/docker/libcontainerd/local" <ide> <ide> import ( <ide> "context" <del> "encoding/json" <ide> "fmt" <ide> "io/ioutil" <ide> "os" <ide> type container struct { <ide> // have access to the Spec <ide> ociSpec *specs.Spec...
1
PHP
PHP
update use of deprecated class name
48d6eddca0cbf46521974feb2575e48f05184272
<ide><path>src/Database/Expression/TupleComparison.php <ide> * This expression represents SQL fragments that are used for comparing one tuple <ide> * to another, one tuple to a set of other tuples or one tuple to an expression <ide> */ <del>class TupleComparison extends Comparison <add>class TupleComparison extends ...
1