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
PHP
PHP
add integration tests for psr7 + request bodies
a8567c5d3845057832e024557d564491a5d1fcf1
<ide><path>src/TestSuite/MiddlewareDispatcher.php <ide> use LogicException; <ide> use ReflectionClass; <ide> use ReflectionException; <add>use Zend\Diactoros\Stream; <ide> <ide> /** <ide> * Dispatches a request capturing the response for integration <ide> public function execute($request) <ide> ); <ide> <ide...
3
Javascript
Javascript
use multistep hmr by default
69b5e548d5138cd5ee30e440937e1582cbf69822
<ide><path>bin/convert-argv.js <ide> module.exports = function(optimist, argv, convertOptions) { <ide> ifBooleanArg("hot", function() { <ide> ensureArray(options, "plugins"); <ide> var HotModuleReplacementPlugin = require("../lib/HotModuleReplacementPlugin"); <del> options.plugins.push(new HotModuleReplacemen...
2
Text
Text
fix broken docs link
3d708ac7005e29ca75aa68b447edb8d9dc111637
<ide><path>docs/topics/rest-hypermedia-hateoas.md <ide> REST framework also includes [serialization] and [parser]/[renderer] components <ide> <ide> What REST framework doesn't do is give you machine readable hypermedia formats such as [HAL][hal], [Collection+JSON][collection], [JSON API][json-api] or HTML [microformat...
1
Python
Python
show tasks in grid view based on topological sort.
34154803ac73d62d3e969e480405df3073032622
<ide><path>airflow/models/dag.py <ide> import sys <ide> import traceback <ide> import warnings <del>from collections import OrderedDict <ide> from datetime import datetime, timedelta <ide> from inspect import signature <ide> from typing import ( <ide> def topological_sort(self, include_subdag_tasks: bool = False): <ide...
8
PHP
PHP
apply fixes from styleci
92ffcb35f2e863984aff235f7d094f8b5ae1a3af
<ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php <ide> public function get($path) <ide> */ <ide> public function put($path, $contents, $options = []) <ide> { <del> $options = is_string($options) <add> $options = is_string($options) <ide> ? ['visibility' => $opt...
1
Python
Python
add sslerror to retry decorator exceptions
5733de362d198e70ae5c81082f96de83f307d4b2
<ide><path>libcloud/test/common/test_retry_limit.py <ide> <ide> import socket <ide> import tempfile <add>import ssl <ide> <ide> from mock import Mock, patch, MagicMock <ide> <ide> from libcloud.utils.py3 import httplib <add>from libcloud.utils.misc import TRANSIENT_SSL_ERROR <ide> from libcloud.common.base import Co...
2
Go
Go
fix flaky testruncontainerwithrmflag tests
585c147b7a78c02f04773ab611bb41268ed1aa3b
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunVolumesFromRestartAfterRemoved(c *testing.T) { <ide> <ide> // run container with --rm should remove container if exit code != 0 <ide> func (s *DockerSuite) TestRunContainerWithRmFlagExitCodeNotEqualToZero(c *testing.T) { <del> existin...
1
Python
Python
use underscore, not -
f8bdf9a02fb8027487e9a07bd9cb73a9d1149f71
<ide><path>libcloud/drivers/slicehost.py <ide> def _to_node(self, element): <ide> <ide> # for consistency with other drivers, we put this in two places. <ide> node_attrs['password'] = node_attrs['root-password'] <add> extra = {} <add> for k in node_attrs.keys(): <add> ek = k.repl...
1
Javascript
Javascript
use different port numbers per build
84187b6d94179edf04512038f68c14f34a8e6219
<ide><path>lib/browser-stack/start-tunnel.js <ide> var http = require('http'); <ide> var BrowserStackTunnel = require('browserstacktunnel-wrapper'); <ide> <ide> var HOSTNAME = 'localhost'; <del>var PORTS = [9090, 9876]; <add>var PORTS = require('../grunt/utils').availablePorts; <ide> var ACCESS_KEY = process.env.BROWS...
2
Javascript
Javascript
remove typos in code example
3c3e77a72ff52b8ee3aaef9af145ddae8685cd16
<ide><path>lib/ember.js <ide> Ember.empty = Ember.deprecateFunc("Ember.empty is deprecated. Please use Ember.i <ide> Ember.compare('hello', 'hello'); // 0 <ide> Ember.compare('abc', 'dfg'); // -1 <ide> Ember.compare(2, 1); // 1 <del> ```javascript <add> ``` <ide> <ide> @method compare <ide>...
2
PHP
PHP
test broken case
c52e1a467345607926c9378fb2646f8ead6cc1a4
<ide><path>src/Illuminate/Mail/Mailable.php <ide> public function replyTo($address, $name = null) <ide> */ <ide> protected function setAddress($address, $name = null, $property = 'to') <ide> { <del> if (! is_array($address) && ! $address instanceof Collection) { <del> $address = [$address...
2
Python
Python
fix f401 flake8 warning (x28)
939148b050930897510c26f6d2833ef8e8029fa2
<ide><path>examples/run_bertology.py <ide> from tqdm import tqdm <ide> <ide> from run_glue import ALL_MODELS, MODEL_CLASSES, load_and_cache_examples, set_seed <del>from transformers import ( <del> WEIGHTS_NAME, <del> BertConfig, <del> BertForSequenceClassification, <del> BertTokenizer, <del> XLMConfig, ...
11
Ruby
Ruby
fix number_to_human docs [ci skip]
848276dfba42f996a01e720a252e5fee83a4b6c2
<ide><path>actionpack/lib/action_view/helpers/number_helper.rb <ide> def number_to_human_size(number, options = {}) <ide> # * *integers*: <tt>:unit</tt>, <tt>:ten</tt>, <tt>:hundred</tt>, <tt>:thousand</tt>, <tt>:million</tt>, <tt>:billion</tt>, <tt>:trillion</tt>, <tt>:quadrillion</tt> <ide> # * *fra...
1
Java
Java
fix failing tests
5345bd4a85cc5f9ba723bec7c558f685ccb22bac
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultControllerSpec.java <ide> import org.springframework.context.ApplicationContext; <ide> import org.springframework.context.annotation.AnnotationConfigApplicationContext; <ide> import org.springframework.format.FormatterRegistry; <de...
2
Javascript
Javascript
add spec for networking
e8037cb942bf7dab13cc7e18baee53db720411f8
<ide><path>Libraries/Network/NativeNetworkingAndroid.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <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> * @flow <add> * @format <add> */ <add> <...
4
Python
Python
enable xception to work on theano and cntk
24daab1c7b3ceebf04a19d3df3fdcdef11fe773b
<ide><path>keras/applications/xception.py <ide> and that the input preprocessing function <ide> is also different (same as Inception V3). <ide> <del>Also do note that this model is only available for the TensorFlow backend, <del>due to its reliance on `SeparableConvolution` layers. <del> <ide> # Reference <ide> <ide>...
2
Javascript
Javascript
fix race condition in test-dgram-pingpong
fafb5848819d3a17ae54955467ed651685d98672
<ide><path>test/simple/test-dgram-pingpong.js <ide> function pingPongTest(port, host) { <ide> client.send(buf, 0, buf.length, port, 'localhost'); <ide> } else { <ide> sent_final_ping = true; <del> client.send(buf, 0, buf.length, port, 'localhost'); <del> process.nextTick(function() {...
1
PHP
PHP
remove uneeded method
6af16ddb23f5973513f3a5ddf230f99f5915a6cf
<ide><path>src/Mailer/Message.php <ide> public function __construct(?array $config = null) <ide> } <ide> } <ide> <del> /** <del> * Clone Renderer instance when email object is cloned. <del> * <del> * @return void <del> */ <del> public function __clone() <del> { <del> if ($th...
1
Javascript
Javascript
add tests for outgoingmessage settimeout
730ec83a00626a361d5a91dc4ef14b6f4aeb89da
<ide><path>test/parallel/test-http-outgoing-settimeout.js <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add> <add>const { OutgoingMessage } = require('http'); <add> <add>{ <add> // tests for settimeout method with socket <add> const expectedMsecs = 42; <add> con...
1
Ruby
Ruby
restore some line breaks
3898010309d51d9c7a91fecb2f5bdbcb80e38180
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_linked_kegonly_brews <ide> EOS <ide> <ide> puts *warnings.keys.collect { |f| " #{f}" } <add> puts <ide> end <ide> end <ide> <ide> def check_missing_deps <ide> if s.length > 0 <ide> ohai "You should brew install these missing dependenc...
1
Go
Go
fix silly little syntax mistake
6292354dc359a6d8f47b3199284147d557d2c697
<ide><path>api/client/utils.go <ide> func (cli *DockerCli) monitorTtySize(id string, isExec bool) error { <ide> sigchan := make(chan os.Signal, 1) <ide> gosignal.Notify(sigchan, signal.SIGWINCH) <ide> go func() { <del> for _ := range sigchan { <add> for _ = range sigchan { <ide> cli.resizeTty(id, isExec) <ide> ...
1
Ruby
Ruby
remove unused requires
b8533ec9f0ef4afe1bba701effc68824f0c6cfed
<ide><path>activerecord/lib/active_record/attribute_methods.rb <del>require "active_support/core_ext/enumerable" <del>require "active_support/core_ext/string/filters" <ide> require "mutex_m" <del>require "concurrent/map" <ide> <ide> module ActiveRecord <ide> # = Active Record Attribute Methods <ide><path>activerecor...
2
Ruby
Ruby
add branch support in rev_list
22e47ffa435fdacc12b7c5b65f64dfba36998201
<ide><path>Library/Homebrew/cmd/versions.rb <ide> def entry_name <ide> end <ide> end <ide> <del> def rev_list <add> def rev_list branch='HEAD' <ide> repository.cd do <del> `git rev-list --abbrev-commit HEAD -- #{entry_name}`.split <add> `git rev-list --abbrev-commit #{branch} -- #{e...
1
Text
Text
update changelog for 0.68.2
1839f68fa6282fefe32f0424f944642fd9ad63e2
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>## v0.68.2 <add> <add>### Changed <add> <add>- Bump used version of react-native-codegen to 0.0.17 ([dfda480a98](https://github.com/facebook/react-native/commit/dfda480a9888d95c542cea40f25e8e783565c1db) by [@cortinico](https://github.com/cortinico)) <add>- Bump reac...
1
Ruby
Ruby
fix root not being defined on travis
519467babcce795193877ab4f8eefb23200e664f
<ide><path>railties/lib/rails/test_unit/reporter.rb <ide> def format_rerun_snippet(result) <ide> end <ide> <ide> def app_root <del> @app_root ||= defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root <add> @app_root ||= <add> if defined?(ENGINE_ROOT) <add> ENGINE_ROOT <add> ...
1
Go
Go
fix typo in godoc
881a30c707141b06af0cc7a076b62ff338615f2b
<ide><path>daemon/logger/context.go <ide> func (ctx *Context) ImageID() string { <ide> return ctx.ContainerImageID[:12] <ide> } <ide> <del>// ImageFullID is an alias of ContainerID. <add>// ImageFullID is an alias of ContainerImageID. <ide> func (ctx *Context) ImageFullID() string { <ide> return ctx.ContainerImageID...
1
Text
Text
fix punctuation of layout and rendering doc
d5962ff062be42d3ce0a4cb43ca4fed601399cc6
<ide><path>guides/source/layouts_and_rendering.md <ide> To include `http://example.com/main.js`: <ide> <ide> The [`stylesheet_link_tag`][] helper returns an HTML `<link>` tag for each source provided. <ide> <del>If you are using Rails with the "Asset Pipeline" enabled, this helper will generate a link to `/assets/sty...
1
Javascript
Javascript
fix minor typos in react-native-codegen errors
375ef14c04adafb80947e67f7d8756d21682fbe5
<ide><path>packages/react-native-codegen/src/parsers/flow/components/events.js <ide> function buildEventSchema( <ide> } <ide> <ide> if (argumentProps === null) { <del> throw new Error(`Unabled to determine event arguments for "${name}"`); <add> throw new Error(`Unable to determine event arguments for "${name...
1
Javascript
Javascript
fix race condition when using loadmodule
985e6fb001541931e4f7f3b80a280f7fd37ae228
<ide><path>lib/dependencies/LoaderPlugin.js <ide> class LoaderPlugin { <ide> }` <ide> ) <ide> ); <add> compilation.semaphore.release(); <ide> compilation.addModuleDependencies( <ide> module, <ide> [ <ide> class LoaderPlugin { <ide> "lm", <ide> false, <ide> ...
6
Javascript
Javascript
replace fixturesdir with common.fixtures
6b5433dcd2f518643d67a16a5f89ad4e845e4902
<ide><path>test/parallel/test-http2-respond-file-304.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <add>const fixtures = require('../common/fixtures'); <ide> const http2 = require('http2'); <ide> const assert = require('assert'); <del>const path = requ...
1
Text
Text
replace the word "dashes" with "hyphens"
7f4531aed089faad044477c390b54ce4b9031a1f
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/create-a-custom-css-variable.english.md <ide> forumTopicId: 301086 <ide> <ide> ## Description <ide> <section id='description'> <del>To create a CSS variable, you just need to give it a name with two dashes in front of it and assign it a value ...
1
Ruby
Ruby
use delegated logger
04aed03c896f661143bce1e4b879cff480963fe6
<ide><path>lib/action_cable/connection/subscriptions.rb <ide> def add(data) <ide> if subscription_klass <ide> subscriptions[id_key] = subscription_klass.new(connection, id_key, id_options) <ide> else <del> connection.logger.error "Subscription class not found (#{data.inspect})" <add> ...
1
Ruby
Ruby
make ci test with and without im
056f05adcd030634dc6a6e3054f25d80b7fd4445
<ide><path>ci/ci_build.rb <ide> def rake(*tasks) <ide> rm_f "#{root_dir}/activerecord/debug.log" <ide> cd "#{root_dir}/activerecord" do <ide> puts <del> puts "[CruiseControl] Building Active Record with MySQL" <add> puts "[CruiseControl] Building Active Record with MySQL IM enabled" <ide> puts <add> ENV['IM'] = ...
1
Javascript
Javascript
pass all extra, owned properties as params
acb545ec3ebf099db68561033645941c900973b5
<ide><path>src/ngResource/resource.js <ide> angular.module('ngResource', ['ng']). <ide> encodedVal, <ide> protocolAndDomain = ''; <ide> <del> var urlParams = self.urlParams = {}; <add> var urlParams = self.urlParams = Object.create(null); <ide> forEach(url.split(/\W/...
2
PHP
PHP
add additional test
f63d955f73d6717bfa266d41eb277f00b6d53261
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php <ide> public function testPagingLinks() { <ide> ); <ide> $this->assertTags($result, $expected); <ide> <add> $result = $this->Paginator->prev('<i class="fa fa-angle-left"></i>', array('escape' => false), null, array('escape' => true)); <add> $expec...
2
Javascript
Javascript
update isnumeric tests for pre-es2015 safety
2868db0d41b8d1d7b141c0494c262120dd9864b7
<ide><path>test/unit/core.js <ide> QUnit.test( "isFunction", function( assert ) { <ide> } ); <ide> <ide> QUnit.test( "isNumeric", function( assert ) { <del> assert.expect( 41 ); <add> assert.expect( 43 ); <ide> <ide> var t = jQuery.isNumeric, <ide> ToString = function( value ) { <ide> QUnit.test( "isNumeric", func...
1
Javascript
Javascript
improve coverage of lib/_http_outgoing.js
5a1140222379f7b75203648e73b5daf7d3d3ef76
<ide><path>test/parallel/test-http-information-headers.js <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const assert = require('assert'); <ide> const http = require('http'); <ide> const Countdown = require('../common/countdown'); <ide> const server = http.createServer((r...
2
PHP
PHP
add message for "not regex" validation rule
293fae6bd8285d076cedf2b8147a20e4090aa5bc
<ide><path>resources/lang/en/validation.php <ide> 'array' => 'The :attribute must have at least :min items.', <ide> ], <ide> 'not_in' => 'The selected :attribute is invalid.', <add> 'not_regex' => 'The :attribute format is invalid.', <ide> 'numeric' => 'The...
1
Text
Text
add thekemkid to collaborators
4daab7f8edf4176dc9be2e7051fc11588fd971c2
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [tellnes](https://github.com/tellnes) - **Christian Tellnes** &lt;christian@tellnes.no&gt; <ide> * [thealphanerd](https://github.com/thealphanerd) - **Myles Borins** &lt;myles.borins@gmail.com&gt; <ide> * [thefourtheye](http...
1
Java
Java
raise exception on missing request parameters
3c09b07652ed3c7a2e4cee1295a450aee387f99b
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/RequestMappingInfoHandlerMapping.java <ide> import javax.servlet.http.HttpServletRequest; <ide> <ide> import org.springframework.http.MediaType; <add>import org.springframework.util.CollectionUtils; <ide> import org.springframework.util....
2
Javascript
Javascript
expose underlying buffer object always
c21458a15dcbff405b18a680e9ed18863567736b
<ide><path>lib/buffer.js <ide> Object.defineProperty(Buffer.prototype, 'parent', { <ide> get: function() { <ide> if (!(this instanceof Buffer)) <ide> return undefined; <del> if (this.byteLength === 0 || <del> this.byteLength === this.buffer.byteLength) { <del> return undefined; <del> } <id...
4
Python
Python
fix message error to the keras standards
67d3fb98bfa82c20e816a4d156e677d4f27553bc
<ide><path>keras/layers/convolutional.py <ide> def compute_output_shape(self, input_shape): <ide> <ide> def call(self, inputs): <ide> if tf.not_equal(tf.size(inputs), 0) and sum(self.cropping) >= inputs.shape[1]: <del> raise ValueError( <del> 'cropping parameter of Cropping layer is too high,' + <del...
1
PHP
PHP
add error() and haserror()
fd950cc628d69ee45d5fdb54fee16d5e18487a54
<ide><path>src/View/Form/ArrayContext.php <ide> * Important keys: <ide> * <ide> * - `defaults` The default values for fields. These values <del> * will be used when there is no request data set. <add> * will be used when there is no request data set. Data should be nested following <add> * the dot separated pa...
2
Go
Go
increase timeout to reduce flakiness
87b89475803595970b512377f3a644ead7493b39
<ide><path>integration/network/dns_test.go <ide> func TestDaemonDNSFallback(t *testing.T) { <ide> cid := container.Run(ctx, t, c, container.WithNetworkMode("test"), container.WithCmd("nslookup", "docker.com")) <ide> defer c.ContainerRemove(ctx, cid, types.ContainerRemoveOptions{Force: true}) <ide> <del> poll.WaitOn(...
1
Python
Python
add timer to evaluate
a44c4c3a5b91dcf85681df57865942a888485a65
<ide><path>spacy/cli/evaluate.py <ide> model=("Model name or path", "positional", None, str), <ide> data_path=("Location of JSON-formatted evaluation data", "positional", None, str), <ide> gold_preproc=("Use gold preprocessing", "flag", "G", bool), <add> gpu_id=("Use GPU", "option", "g", int), <ide> ) <d...
1
Python
Python
use conn_name_attr for sqlitehook connection
4a0fdb6308400ddda38b0904cfe14b5872e5c0eb
<ide><path>airflow/providers/sqlite/hooks/sqlite.py <ide> class SqliteHook(DbApiHook): <ide> <ide> conn_name_attr = 'sqlite_conn_id' <ide> default_conn_name = 'sqlite_default' <del> supports_autocommit = False <ide> <ide> def get_conn(self): <ide> """ <ide> Returns a sqlite connection o...
2
Text
Text
remove use of "random port" re dgram send
cdfe47b323b8f8b495c23f65b6570021eea16239
<ide><path>doc/api/dgram.md <ide> the error is emitted as an `'error'` event on the `socket` object. <ide> Offset and length are optional but both *must* be set if either are used. <ide> They are supported only when the first argument is a `Buffer` or `Uint8Array`. <ide> <del>Example of sending a UDP packet to a rando...
1
Javascript
Javascript
add isintersectionsphere to sphere
dcd25863e4d083c1945fab6380bdf06543d7397e
<ide><path>src/math/Sphere.js <ide> THREE.Sphere.prototype = { <ide> <ide> }, <ide> <add> isIntersectionSphere: function(sphere) { <add> <add> return ( sphere.center.distanceToSquared( this.center ) <= ( this.radius * this.radius + sphere.radius * sphere.radius) ); <add> <add> }, <add> <ide> clampPoint: function...
1
Java
Java
use text blocks with junit jupiter 5.8.1
08bce08018596d4e46ba01d1899062428d7b2c7e
<ide><path>spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java <ide> void closeContextAfterTest() { <ide> } <ide> <ide> @ParameterizedTest <del> @CsvSource({ <del> "FixedDelay, 5000", <del> "FixedDelayInSeconds, 5000", <del> "FixedDelayInMinutes, 1...
4
Javascript
Javascript
expose result of send()
67368d8553977a281f778a144de9b0a75bc17f90
<ide><path>lib/cluster.js <ide> Worker.prototype.kill = function() { <ide> }; <ide> <ide> Worker.prototype.send = function() { <del> this.process.send.apply(this.process, arguments); <add> return this.process.send.apply(this.process, arguments); <ide> }; <ide> <ide> Worker.prototype.isDead = function isDead() { <id...
3
Text
Text
keep the other translations table
6f7b65dd660f4c3fe9b3ef9f3a8c3b29e33a71c6
<ide><path>docs/portuguese/how-to-catch-outgoing-emails-locally.md <add><table> <add> <tr> <add> <td> Read these guidelines in </td> <add> <td><a href="/CONTRIBUTING.md"> English </a></td> <add> <td><a href="/docs/chinese/CONTRIBUTING.md"> 中文 </a></td> <add> <td><a href="/docs/russian/CON...
1
Ruby
Ruby
fix installation error from argv `--head` filter
d9c3f19e6a7e13081982c93ba335e23a136c688f
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> else <ide> ARGV.filter_for_dependencies do <ide> # Re-create the formula object so that args like `--HEAD` won't <del> # affect properties like the installation prefix. <add> # affect p...
1
Python
Python
update pt to tf cli for audio models
67a3511443fdcfd7ea616d6fb70ab823f300a7a0
<ide><path>src/transformers/commands/pt_to_tf.py <ide> def _get_audio_input(): <ide> raw_samples = [x["array"] for x in speech_samples] <ide> return raw_samples <ide> <add> model_config_class = type(pt_model.config) <add> if model_config_class in PROCESSOR_MAPPING: <add> ...
1
Text
Text
add documentation for stream.destroyed
70bb570bfb9e35e8a2295efe7277d35437235074
<ide><path>doc/api/stream.md <ide> the `'drain'` event before destroying the stream. <ide> Implementors should not override this method, <ide> but instead implement [`writable._destroy()`][writable-_destroy]. <ide> <add>##### writable.destroyed <add><!-- YAML <add>added: v8.0.0 <add>--> <add> <add>* {boolean} <add> <a...
1
Java
Java
remove erroneous javadoc link
9ec937c843de372ea9e4d7e6c1312c936b58ef22
<ide><path>spring-test/src/main/java/org/springframework/test/context/SmartContextLoader.java <ide> public interface SmartContextLoader extends ContextLoader { <ide> * @return a new application context <ide> * @throws ContextLoadException if context loading failed <ide> * @see #processContextConfiguration(Context...
1
Javascript
Javascript
use $readonlyarray for section stuff
5084e1ba0fcfc6409898d746086629011e7134da
<ide><path>Libraries/Lists/SectionList.js <ide> type SectionBase<SectionItemT> = { <ide> /** <ide> * The data for rendering items in this section. <ide> */ <del> data: Array<SectionItemT>, <add> data: $ReadOnlyArray<SectionItemT>, <ide> /** <ide> * Optional key to keep track of section re-ordering. If yo...
2
Text
Text
fix typo in the security guide
5c2678056ac5d7af1a2f82a6e1e98401467cb5eb
<ide><path>guides/source/security.md <ide> The two dashes start a comment ignoring everything after it. So the query return <ide> Usually a web application includes access control. The user enters their login credentials and the web application tries to find the matching record in the users table. The application grant...
1
Python
Python
fix resnet tests
092def7b4b4a49cc5d2583d1265c37227ed27fea
<ide><path>official/resnet/keras/keras_cifar_test.py <ide> from official.resnet import cifar10_main <ide> from official.resnet.keras import keras_cifar_main <ide> from official.resnet.keras import keras_common <add>from official.utils.misc import keras_utils <ide> from official.utils.testing import integration <ide> # ...
2
Java
Java
describe merge() error handling.
a694145b6775960520dcd3964d9bcf3540fced24
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public static <T> Flowable<T> mergeArray(int maxConcurrency, int bufferSize, Pub <ide> * backpressure; if violated, the operator <em>may</em> signal {@code MissingBackpressureException}.</dd> <ide> * <dt><b>Scheduler:</b></dt> <ide> * <dd>{@cod...
1
Ruby
Ruby
remove unneeded requires at active record
61b5f5d2f1f2de0aaa4a6c8445c47c2df7ef1f36
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb <del>require "active_support/core_ext/string/filters" <del> <ide> module ActiveRecord <ide> module ConnectionAdapters <ide> module PostgreSQL <ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> require "act...
3
Go
Go
prevent potential panic in testlogsapiuntil
e77de7856bf212c764555ab8c2f346f2c529467c
<ide><path>integration-cli/docker_api_logs_test.go <ide> func (s *DockerSuite) TestLogsAPIUntil(c *check.C) { <ide> <ide> // Get timestamp of second log line <ide> allLogs := extractBody(c, types.ContainerLogsOptions{Timestamps: true, ShowStdout: true}) <add> c.Assert(len(allLogs), checker.GreaterOrEqualThan, 3) <ad...
1
Text
Text
fix grammatical typo
8365bf62df45d1cafdfbd8c4aad0a6f3ced5f854
<ide><path>docs/basic-features/data-fetching/get-static-paths.md <ide> In development (`next dev`), `getStaticPaths` will be called on every request. <ide> <ide> `getStaticProps` allows you to control which pages are generated during the build instead of on-demand with [`fallback`](/docs/api-reference/data-fetching/ge...
1
Javascript
Javascript
use correct arg name in domains benchmark
feba43c40e97aa40e79923a326d91d5a23f10537
<ide><path>test/parallel/test-benchmark-domain.js <ide> require('../common'); <ide> <ide> const runBenchmark = require('../common/benchmark'); <ide> <del>runBenchmark('domain', ['n=1', 'arguments=0']); <add>runBenchmark('domain', ['n=1', 'args=0']);
1
Text
Text
replace stub with hints and code solution
3ac898b041bcbaaf9f6268b9aef4519014389070
<ide><path>guide/english/certifications/apis-and-microservices/mongodb-and-mongoose/create-and-save-a-record-of-a-model/index.md <ide> --- <ide> title: Create and Save a Record of a Model <ide> --- <del>## Create and Save a Record of a Model <add># Create and Save a Record of a Model <ide> <del>This is a stub. <a href...
1
PHP
PHP
update trait description
45b79ddd13075865fffeba1846e3fa9a44ab5435
<ide><path>src/TestSuite/StringCompareTrait.php <ide> /** <ide> * Compare a string to the contents of a file <ide> * <del> * Implementing objects are expected to declare a `$_compareBasePath` property. <add> * Implementing objects are expected to modify the `$_compareBasePath` property <add> * before use. <ide> */ <...
1
Python
Python
modify compression tools to be python3 compatible
e8adaffd4bd5cea79a23c3ae440e8933fc6c3723
<ide><path>compression/decoder.py <ide> <ide> def get_input_tensor_names(): <ide> name_list = ['GruBinarizer/SignBinarizer/Sign:0'] <del> for i in xrange(1, 16): <add> for i in range(1, 16): <ide> name_list.append('GruBinarizer/SignBinarizer/Sign_{}:0'.format(i)) <ide> return name_list <ide> <ide> <ide> de...
3
Javascript
Javascript
support old private properties and function
b377034359aa07f2ba83a5a0c9f859418cb80e39
<ide><path>lib/_http_outgoing.js <ide> function OutgoingMessage() { <ide> util.inherits(OutgoingMessage, Stream); <ide> <ide> <add>Object.defineProperty(OutgoingMessage.prototype, '_headers', { <add> get: function() { <add> return this.getHeaders(); <add> }, <add> set: function(val) { <add> if (val == null) ...
1
Python
Python
catch cpuinfo importerror
5c78b9d7620dd1350b86d66ad5c94d19fe53d1bb
<ide><path>official/utils/logs/logger.py <ide> def _collect_cpu_info(run_info): <ide> <ide> cpu_info["num_cores"] = multiprocessing.cpu_count() <ide> <del> # Note: cpuinfo is not installed in the TensorFlow OSS tree. <del> # It is installable via pip. <del> import cpuinfo # pylint: disable=g-import-not-at-top...
1
Javascript
Javascript
upgrade warncasesensitivemodulesplugin to es6
7140b7dd057ceb7f434308724d6a8b56554b7703
<ide><path>lib/WarnCaseSensitiveModulesPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var CaseSensitiveModulesWarning = require("./CaseSensitiveModulesWarning"); <add>"use strict"; <ide> <del>function WarnCaseSensitiveModulesPlugin() {}...
1
Ruby
Ruby
remove documentation duplicates
c175563b88a2114258120cacaf3f4bce5a615736
<ide><path>activemodel/lib/active_model/validations/acceptance.rb <ide> module HelperMethods <ide> # Configuration options: <ide> # * <tt>:message</tt> - A custom error message (default is: "must be <ide> # accepted"). <del> # * <tt>:on</tt> - Specifies when this validation is active. Runs in a...
9
Javascript
Javascript
enable continuous replay flag
3f9480f0f5ceb5a32a3751066f0b8e9eae5f1b10
<ide><path>packages/shared/ReactFeatureFlags.js <ide> export const warnOnSubscriptionInsideStartTransition = false; <ide> <ide> export const enableSuspenseAvoidThisFallback = false; <ide> <del>export const enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay = false; <add>export const enableCapturePhaseSele...
8
Python
Python
enable v2 layers for resnet_model
caa5158fde0532d31f64cb05061b5cb7444c6265
<ide><path>official/vision/image_classification/resnet_model.py <ide> from __future__ import division <ide> from __future__ import print_function <ide> <add>import tensorflow as tf <add> <ide> from tensorflow.python.keras import backend <ide> from tensorflow.python.keras import initializers <del>from tensorflow.python...
1
PHP
PHP
remove unused variable
f3e92bac8b0bc12776e2693917d5cfe4076e835b
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function appendFilePath($contents) <ide> protected function getOpenAndClosingPhpTokens($contents) <ide> { <ide> return collect(token_get_all($contents)) <del> ->pluck($tokenNumber = 0) <add> ->pluck(0) <ide>...
1
Javascript
Javascript
fix incorrect comment
6a33aa63cd3f0497baa5587b0335a793ffd02864
<ide><path>validate-commit-msg.js <ide> * <ide> * Installation: <ide> * >> cd <angular-repo> <del> * >> ln -s ../../validate-commit-msg.js .git/hooks/commit-msg <add> * >> ln -s validate-commit-msg.js .git/hooks/commit-msg <ide> */ <ide> var fs = require('fs'); <ide> var util = require('util');
1
Ruby
Ruby
apply suggestions from code review
e8eb781470df7463ca2147862d257815f5062314
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_openssl_links <ide> These object files were linked against the deprecated system OpenSSL or <ide> the system's private LibreSSL. <ide> Adding `depends_on "openssl"` to the formula may help. <del> #{system_openssl...
1
Javascript
Javascript
avoid clones while interpolating values
281f51051c30a1d9ceb6cc120a9bf0e695d1a724
<ide><path>src/animation/AnimationUtils.js <ide> <ide> }, <ide> <add> clone: function( exemplarValue ) { <add> <add> var typeName = typeof exemplarValue; <add> if( typeName === "object" ) { <add> if( exemplarValue.clone ) { <add> return exemplarValue.clone(); <add> } <add> console.error( "can not figure...
3
Javascript
Javascript
remove unused variable
60ff02d81b7676da4fc0fc98b874eef99c8c9f1e
<ide><path>packages/ember-views/lib/system/sanitize_attribute_value.js <ide> /* jshint scripturl:true */ <ide> <del>var parsingNode; <ide> var badProtocols = { <ide> 'javascript:': true, <ide> 'vbscript:': true
1
PHP
PHP
extract registercreator method
0081f75ee8acc8c16fe3c165b7e41dacbbf14df5
<ide><path>src/Illuminate/Database/MigrationServiceProvider.php <ide> protected function registerInstallCommand() <ide> */ <ide> protected function registerMakeCommand() <ide> { <del> $this->app->bindShared('migration.creator', function($app) <del> { <del> return new MigrationCreator($app['files']); <del> }); ...
1
Ruby
Ruby
use in_memory_db? test helper
8a91f7293d16caeed04e1fd7fd1c26aafcd78ad5
<ide><path>activerecord/test/cases/migration/foreign_key_test.rb <ide> def test_schema_dumping_with_defferable_initially_immediate <ide> end <ide> end <ide> <del> def test_does_not_create_foreign_keys_when_bypassed_by_config <del> if current_adapter?(:SQLite3Adapter) && !ActiveRecord:...
2
PHP
PHP
remove unique index
4df192314896f4afe5da51f68fb689186bbc8526
<ide><path>src/Illuminate/Database/Migrations/DatabaseMigrationRepository.php <ide> public function createRepository() <ide> // The migrations table is responsible for keeping track of which of the <ide> // migrations have actually run for the application. We'll create the <ide> // table to hold the migration ...
1
PHP
PHP
correct doc block
3100118a4e7d5b90a0b58235888a51cd670dcceb
<ide><path>lib/Cake/Utility/String.php <ide> public static function uuid() { <ide> * @param string $separator The token to split the data on. <ide> * @param string $leftBound The left boundary to ignore separators in. <ide> * @param string $rightBound The right boundary to ignore separators in. <del> * @return array...
1
PHP
PHP
prevent repeated calls
8ea72714480e03c0288f80ac0bed5265381222ba
<ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php <ide> protected function seeJsonContains(array $data) <ide> $expected = $this->formatToExpectedJson($key, $value); <ide> <ide> $this->assertTrue( <del> Str::contains($actual, $this->formatToExpectedJson($key, $value)),...
1
Javascript
Javascript
add comments to describe the modification
9b781b1542ac5376d4f58f92c38b5f191bc0d6d7
<ide><path>examples/js/loaders/STLLoader.js <ide> THREE.STLLoader.prototype = { <ide> <ide> } <ide> <add> // some binary files will have different size from expected, <add> // checking characters higher than ASCII to confirm is binary <ide> var fileLength = reader.byteLength; <del> <ide> for ( var in...
1
PHP
PHP
fix method descriptions in frozentime
4e35047d26f23b350124704cbfac0f04ab80d950
<ide><path>src/I18n/FrozenTime.php <ide> public static function listTimezones($filter = null, $country = null, $options = <ide> } <ide> <ide> /** <del> * Returns true this instance will happen within the specified interval <add> * Returns true this instance happened within the specified interval <ide> ...
1
Text
Text
modify guides for a better sounding sentence
b7aa845c018f3b01e70f274a9b30112276a6dcaa
<ide><path>guides/source/getting_started.md <ide> second argument, and then the options as another argument. The `method: :delete` <ide> and `data: { confirm: 'Are you sure?' }` options are used as HTML5 attributes so <ide> that when the link is clicked, Rails will first show a confirm dialog to the <ide> user, and the...
1
Text
Text
change "ocsp request" to "ocsp request"
84ea25223eca444e9eeb259d5b38db08db12b2f3
<ide><path>doc/api/tls.md <ide> no OCSP response. <ide> <ide> Calling `callback(err)` will result in a `socket.destroy(err)` call. <ide> <del>The typical flow of an OCSP Request is as follows: <add>The typical flow of an OCSP request is as follows: <ide> <ide> 1. Client connects to the server and sends an `'OCSPRequ...
1
Java
Java
adjust checkforleaks timeout settings
3d89acf9ea0bce8c41d2084b55e7eca15d481be4
<ide><path>spring-core/src/test/java/org/springframework/core/codec/ResourceRegionEncoderTests.java <ide> void canEncode() { <ide> } <ide> <ide> @Test <del> void shouldEncodeResourceRegionFileResource() throws Exception { <add> void shouldEncodeResourceRegionFileResource() { <ide> ResourceRegion region = new Resou...
4
Ruby
Ruby
run multiple files on runner
b58c0914f4d85faa39f22eb3408970ac8a176913
<ide><path>railties/lib/rails/test_unit/runner.rb <ide> def self.parse(args) <ide> <ide> opt_parser.order!(args) <ide> <del> if arg = args.shift <add> options[:patterns] = [] <add> while arg = args.shift <ide> if Dir.exists?(arg) <del> options[:pattern] = "#{arg}/**/*...
2
Text
Text
update webcrypto docs for global access
46dcfb3c7be167ed27a3e8db4e40ff8b17d892fb
<ide><path>doc/api/webcrypto.md <ide> changes: <ide> <ide> Node.js provides an implementation of the standard [Web Crypto API][]. <ide> <del>Use `require('node:crypto').webcrypto` to access this module. <add>Use `globalThis.crypto` or `require('node:crypto').webcrypto` to access this <add>module. <ide> <ide> ```js <...
1
Javascript
Javascript
fix bug in 'y' tooltip mode
274aa290ca69f38aac5fd1a5fb55cc5043ea5d8c
<ide><path>src/core/core.interaction.js <ide> module.exports = function(Chart) { <ide> var position = helpers.getRelativePosition(e, chart.chart); <ide> var items = []; <ide> parseVisibleItems(chart, function(element) { <del> if (element.inYRange(position.x)) { <add> if (element.inYRange(position.y)...
1
Javascript
Javascript
remove redundant checks
ce50b6c0cdd50ec1fe380704aa1efec07a16b419
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> var size = geometryAttribute.itemSize; <ide> var buffer = objects.getAttributeBuffer( geometryAttribute ); <ide> <del> if ( geometryAttribute && geometryAttribute.isInterleavedBufferAttribute ) { <add> if ( g...
1
Ruby
Ruby
fix latest_tag error
f345f554c898748967a0b7768387d88eaa03176d
<ide><path>Library/Homebrew/dev-cmd/update-license-data.rb <ide> def update_license_data <ide> ohai "git add" <ide> safe_system "git", "add", SPDX::JSON_PATH <ide> ohai "git commit" <del> system "git", "commit", "--message", "data/spdx.json: update to #{latest_tag}" <add> system "git", "commit", "--me...
2
Text
Text
release readme file for example project
707c4ef8b769eda7127e91b3f0175a849a09b824
<ide><path>official/vision/beta/projects/example/README.md <add># TF Vision Example Project <add> <add>This is a minimal example project to demonstrate how to use TF Model Garden's <add>building blocks to implement a new vision project from scratch. <add> <add>Below we use classification as an example. We will walk you...
1
PHP
PHP
implement simple methods in associations class
766f1db16e2fdd5ce88222d8605b7f3a520fc998
<ide><path>Cake/ORM/Associations.php <ide> <?php <ide> /** <del> * PHP Version 5.4 <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * <ide> */ <ide> namespace Cake\ORM; <ide> <add>use Cake\ORM\Assoc...
2
Text
Text
fix typos in readme.md and examples/readme.md
38086edaaaa3eae4a3439ff7c18bb1fa720a8660
<ide><path>README.md <ide> define(["amd-module", "../file"], function (amdModule, file) { <ide> // this is async <ide> require(["big-module/big/file"], function (big) { <ide> // For async dependencies, webpack splits <del> // your application into multiple "chunks." <add> // your application into multiple "chu...
2
Ruby
Ruby
avoid formula lookup when we know it will fail
26a2e4c4d38f111ab89093c12e3532529fc8da0b
<ide><path>Library/Homebrew/formulary.rb <ide> def get_formula(spec) <ide> end <ide> end <ide> <add> class NullLoader < FormulaLoader <add> def initialize(name) <add> @name = name <add> end <add> <add> def get_formula(spec) <add> raise FormulaUnavailableError.new(name) <add> end <add> end...
1
Java
Java
remove unnecessary imports
40ea9ffd636923275af2788939f12a29459db476
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebConnection.java <ide> import org.springframework.test.web.servlet.MockMvc; <ide> import org.springframework.test.web.servlet.RequestBuilder; <ide> import org.springframework.test.web.servlet.ResultActions; <del>import org.sprin...
2
Python
Python
test the best dev acc model when model is training
3c7e676f8b3cafd501a2616030f4bd1e512212f9
<ide><path>examples/single_model_scripts/run_multiple_choice.py <ide> def train(args, train_dataset, model, tokenizer): <ide> results = evaluate(args, model, tokenizer) <ide> for key, value in results.items(): <ide> tb_writer.add_scalar('eval_{...
1
Java
Java
allow custom instances of webjarassetlocator
977840884bf9c670a88bac1aeee3b3c8f1f9bf7b
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceChainRegistration.java <ide> /* <del> * Copyright 2002-2015 the original author or authors. <add> * Copyright 2002-2016 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "...
3
PHP
PHP
correct small typos
6c3a63ea9b15fc3931ff32cf087f896e7a73c682
<ide><path>lib/Cake/Console/Command/TestShell.php <ide> public function getOptionParser() { <ide> */ <ide> public function initialize() { <ide> $this->_dispatcher = new CakeTestSuiteDispatcher(); <del> $sucess = $this->_dispatcher->loadTestFramework(); <del> if (!$sucess) { <add> $success = $this->_dispatcher->l...
2