content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Go | Go | use golang.org/x/sys service.setrecoveryactions() | 3c585e6567e5931fcc62b10ca4eda9a6e0ce97fb | <ide><path>cmd/dockerd/service_windows.go
<ide> import (
<ide> "os/exec"
<ide> "path/filepath"
<ide> "time"
<del> "unsafe"
<ide>
<ide> "github.com/sirupsen/logrus"
<ide> "github.com/spf13/pflag"
<ide> func registerService() error {
<ide> }
<ide> defer s.Close()
<ide>
<del> // See http://stackoverflow.com/quest... | 1 |
Javascript | Javascript | fix $httpparamserializerjqlike description | 65bed615dfc41bfcf93ad00db9e389e3b0a35559 | <ide><path>src/ng/http.js
<ide> function $HttpParamSerializerJQLikeProvider() {
<ide> /**
<ide> * @ngdoc service
<ide> * @name $httpParamSerializerJQLike
<add> * @description
<ide> *
<ide> * Alternative $http params serializer that follows jQuerys `param()` method {http://api.jquery.com/jquery.param/} l... | 1 |
Python | Python | add adafactor optimizer from fairseq | 971d1802d009d9996b36a34a34477cee849ef39f | <ide><path>src/transformers/__init__.py
<ide>
<ide> # Optimization
<ide> from .optimization import (
<add> Adafactor,
<ide> AdamW,
<ide> get_constant_schedule,
<ide> get_constant_schedule_with_warmup,
<ide><path>src/transformers/optimization.py
<ide> def step(self, closure: Calla... | 3 |
Python | Python | fix issue with nan scalar | 2a5422da7cb6759d75477738cc192fee3ca2a19c | <ide><path>numpy/lib/function_base.py
<ide> def percentile(a,
<ide> ``i < j``. If ``g`` is the fractional part of the index surrounded by
<ide> ``i`` and alpha and beta are correction constants modifying i and j.
<ide>
<del> Below, 'q' is the quantile value, 'n' is the samle size and
<add> Below, 'q' is... | 2 |
Text | Text | add checkpoint links | 1f2c317e957e8d564f258c6ee03518b4803857f5 | <ide><path>official/resnet/README.md
<ide> num_gpus:
<ide> + 0: Use OneDeviceStrategy and train on CPU.
<ide> + 1: Use OneDeviceStrategy and train on GPU.
<ide> + 2+: Use MirroredStrategy (data parallelism) to distribute a batch between devices.
<add>
<add>### Pre-trained model
<add>You can download 190 MB pre-traine... | 1 |
Javascript | Javascript | fix crypto test case | 34f56e2d711aaff10838167aa4ece77d278cfa09 | <ide><path>test/parallel/test-crypto-cipher-decipher.js
<ide> testCipher2(Buffer.from('0123456789abcdef'));
<ide> 'TypedArray, or DataView. Received type object'
<ide> });
<ide>
<del> common.expectsError(
<del> () => crypto.createCipher('aes-256-cbc', 'secret').setAuthTag(null),
<del> {
<del>... | 1 |
Javascript | Javascript | simplify functions and remove redundant args/calls | e7d8eee46d3ed11fe7054db5e616bd2a8eeb2c1b | <ide><path>src/ngAnimate/animateQueue.js
<ide> var $$AnimateQueueProvider = ['$animateProvider', /** @this */ function($animate
<ide> }
<ide> }
<ide>
<del> function isAllowed(ruleType, element, currentAnimation, previousAnimation) {
<add> function isAllowed(ruleType, currentAnimation, previousAnimation) {
<ide... | 1 |
Python | Python | fix black test | e80581b6a68b230b0a0d9556665592cd4a503852 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def _to_sizes(self, obj):
<ide> def _create_args_to_params(self, node, **kwargs):
<ide> server_params = {
<ide> "name": kwargs.get("name"),
<del> "metadata": kwargs.get("ex_metadata", {}) or {}
<add> "metadata": kwargs.... | 1 |
Python | Python | add multi-gpu to mnist, take two | e8726907ea5a479359b2a0d93f9a5d4b9b8a1e12 | <ide><path>official/mnist/mnist.py
<ide> def model_fn(features, labels, mode, params):
<ide> })
<ide> if mode == tf.estimator.ModeKeys.TRAIN:
<ide> optimizer = tf.train.AdamOptimizer(learning_rate=1e-4)
<add>
<add> # If we are running multi-GPU, we need to wrap the optimizer.
<add> if params.get('mu... | 2 |
Text | Text | add initial "service" docs | f565bc7ec964537a4e20bf5d4e497d15c0c9b5bf | <ide><path>docs/reference/commandline/index.md
<ide> You start the Docker daemon with the command line. How you start the daemon affe
<ide> * [swarm leave](swarm_leave.md)
<ide> * [swarm update](swarm_update.md)
<ide>
<add>### Swarm service commands
<add>
<add>* [service create](service_create.md)
<add>* [service insp... | 8 |
Javascript | Javascript | use port number from env in tls socket test | c9e682d587e3095667423cd7ada1afea7561ff3e | <ide><path>test/parallel/test-tls-async-cb-after-socket-end.js
<ide> server.on('resumeSession', function(id, cb) {
<ide> next();
<ide> });
<ide>
<del>server.listen(1443, function() {
<add>server.listen(common.PORT, function() {
<ide> var clientOpts = {
<del> port: 1443,
<add> port: common.PORT,
<ide> rej... | 1 |
Ruby | Ruby | fix method name in `renderer` doc [ci skip] | 67471a28f5e68fc6057b705c4bdce27d7edb1a78 | <ide><path>actionpack/lib/action_controller/renderer.rb
<ide> def with_defaults(defaults)
<ide> end
<ide>
<ide> # Accepts a custom Rack environment to render templates in.
<del> # It will be merged with ActionController::Renderer.defaults
<add> # It will be merged with the default Rack environment define... | 1 |
Text | Text | replace vars with let and const | 38c22252f4deb2dd7f10644404ae122f1fd0cb88 | <ide><path>docs/docs/addons-animation.md
<ide> class TodoList extends React.Component {
<ide> }
<ide>
<ide> handleAdd() {
<del> var newItems = this.state.items.concat([
<add> const newItems = this.state.items.concat([
<ide> prompt('Enter some text')
<ide> ]);
<ide> this.setState({items: newItem... | 10 |
Text | Text | use code markup/markdown in headers | cdb727d6db0be76c3ed2585e71c0427809f377fb | <ide><path>doc/api/string_decoder.md
<ide> decoder.write(Buffer.from([0x82]));
<ide> console.log(decoder.end(Buffer.from([0xAC])));
<ide> ```
<ide>
<del>## Class: StringDecoder
<add>## Class: `StringDecoder`
<ide>
<del>### new StringDecoder(\[encoding\])
<add>### `new StringDecoder([encoding])`
<ide> <!-- YAML
<ide> ... | 1 |
PHP | PHP | apply fixes from styleci | 481cd52e06cfa56c941d93ec5401438b6cbf7a23 | <ide><path>types/Support/LazyCollection.php
<ide>
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\Support\LazyCollection;
<del>
<ide> use function PHPStan\Testing\assertType;
<ide>
<ide> $collection = new LazyCollection([new User]); | 1 |
Java | Java | add support for shadows to rctvirtualtext | 76abec8894d51d2cc68e190834c2bd80d41a2942 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java
<ide> import android.text.SpannableStringBuilder;
<ide> import android.text.TextUtils;
<ide>
<add>import com.facebook.react.bridge.ReadableMap;
<ide> import com.facebook.react.uimanager.PixelUtil;
<ide> import com.facebook.react.uimanage... | 2 |
Go | Go | add benchmark for etchosts.delete | de7607f50920d3bf199ce46f77dc06c79f51848a | <ide><path>libnetwork/etchosts/etchosts_test.go
<ide> func TestDelete(t *testing.T) {
<ide> Hosts: "testhostname2",
<ide> IP: "2.2.2.2",
<ide> },
<add> Record{
<add> Hosts: "testhostname3",
<add> IP: "3.3.3.3",
<add> },
<ide> }); err != nil {
<ide> t.Fatal(err)
<ide> }
<ide> func TestDelete(t *t... | 1 |
Javascript | Javascript | increase coverage for util.inspect() | c19ea7bd810e91f1359f2d7ee53302e268a78059 | <ide><path>test/parallel/test-util-inspect.js
<ide> assert.strictEqual(
<ide> // Consistency check.
<ide> assert(fullObjectGraph(global).has(Function.prototype));
<ide> }
<add>
<add>{
<add> // Confirm that own constructor value displays correctly.
<add>
<add> function Fhqwhgads() {}
<add>
<add> const sterrance =... | 1 |
Java | Java | write charsequence instances to databuffers | 6361b0cb236e62b24a07af5d0a20f42d78d4efaa | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java
<ide> import java.io.InputStream;
<ide> import java.io.OutputStream;
<ide> import java.nio.ByteBuffer;
<add>import java.nio.CharBuffer;
<add>import java.nio.charset.Charset;
<add>import java.nio.charset.CharsetEncoder;
<add>import j... | 7 |
Javascript | Javascript | update cdn on bump | 5a79b42a460e95e6adbd27f03d333183f6c0f2c1 | <ide><path>gulpfile.js
<ide> function bumpTask(complete) {
<ide> choices: choices
<ide> }, function(res) {
<ide> var increment = res.version.split(' ')[0],
<del> newVersion = semver.inc(package.version, increment);
<add> newVersion = semver.inc(package.version, increment),
<add> oldVersion = pa... | 1 |
Python | Python | add 2.2.5 to revision heads map | 4993c7c94185608510cc9e349bbc74f75f4a7fdc | <ide><path>airflow/utils/db.py
<ide> "2.2.2": "7b2661a43ba3",
<ide> "2.2.3": "be2bfac3da23",
<ide> "2.2.4": "587bdf053233",
<add> "2.2.5": "587bdf053233",
<ide> }
<ide>
<ide> | 1 |
Text | Text | fix typo in writing-and-running-benchmarks.md | 46c3dd701a65702f7e8fc97cad2faae17d4ff24f | <ide><path>doc/guides/writing-and-running-benchmarks.md
<ide> an example. This pull request _claims_ to improve the performance of the
<ide>
<ide> First build two versions of Node.js, one from the master branch (here called
<ide> `./node-master`) and another with the pull request applied (here called
<del>`./node-pr-5... | 1 |
Python | Python | remove use_remote_tpu as it is deprecated | 4457c1a81c8e2b1f3fa50cc5362686cdab8e8bd9 | <ide><path>official/modeling/model_training_utils.py
<ide> def run_customized_training_loop(
<ide> eval_steps=None,
<ide> metric_fn=None,
<ide> init_checkpoint=None,
<del> use_remote_tpu=False,
<ide> custom_callbacks=None,
<ide> run_eagerly=False):
<ide> """Run BERT pretrain model training usin... | 1 |
Text | Text | use serial comma in addons docs | 1a0a058fdafde8b0a2aa263fc03fab34be530e6b | <ide><path>doc/api/addons.md
<ide> _Addons_ are dynamically-linked shared objects written in C++. The
<ide> Addons provide an interface between JavaScript and C/C++ libraries.
<ide>
<ide> There are three options for implementing addons: Node-API, nan, or direct
<del>use of internal V8, libuv and Node.js libraries. Unl... | 1 |
Ruby | Ruby | remove a const_defined? check | 4651b5214f4d90e16cb5ec8e832ff18dc06221f6 | <ide><path>Library/Homebrew/test/test_requirement.rb
<ide> def test_dsl_build
<ide> end
<ide>
<ide> def test_infer_name_from_class
<del> klass, const = self.class, :FooRequirement
<add> const = :FooRequirement
<add> klass = self.class
<add>
<ide> klass.const_set(const, Class.new(Requirement))
<del> ... | 1 |
Go | Go | use image id if tag has been updated | 2167f40a766d1909443695d96bcecc3d039fb482 | <ide><path>daemon/list.go
<ide> func (daemon *Daemon) Containers(config *ContainersConfig) ([]*types.Container,
<ide> ID: container.ID,
<ide> Names: names[container.ID],
<ide> }
<del> newC.Image = container.Config.Image
<add>
<add> img, err := daemon.Repositories().LookupImage(container.Config.Image)
<add>... | 2 |
Python | Python | use explicit nat in test_structure_format | 0724f58bf999f844930a0b49dba449e0f12e5bd6 | <ide><path>numpy/core/tests/test_arrayprint.py
<ide> def test_structure_format(self):
<ide>
<ide> # for issue #5692
<ide> A = np.zeros(shape=10, dtype=[("A", "M8[s]")])
<del> A[5:].fill(np.nan)
<add> A[5:].fill(np.datetime64('NaT'))
<ide> assert_equal(np.array2string(A),
<ide> ... | 1 |
PHP | PHP | use defaultformatter with arraylog | c91320a782776269c8ea87001733db4b8b1fc60e | <ide><path>src/Log/Engine/ArrayLog.php
<ide> */
<ide> namespace Cake\Log\Engine;
<ide>
<add>use Cake\Log\Formatter\DefaultFormatter;
<add>
<ide> /**
<ide> * Array logger.
<ide> *
<ide> */
<ide> class ArrayLog extends BaseLog
<ide> {
<add> /**
<add> * Default config for this class
<add> *
<add> * @va... | 3 |
Java | Java | refine antpathmatcher.combine when p1 contains '.' | c1dafed886f9f136b788f1a23528d5173167a3e8 | <ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java
<ide> public String combine(String pattern1, String pattern2) {
<ide> if (!StringUtils.hasText(pattern1) && !StringUtils.hasText(pattern2)) {
<ide> return "";
<ide> }
<del> else if (!StringUtils.hasText(pattern1)) {
<add> if (!St... | 2 |
Javascript | Javascript | add required imports | 04468e1e9fbf8fe143d07697f979d6a3b87f75b7 | <ide><path>src/renderers/webvr/WebVRManager.js
<ide> /**
<ide> * @author mrdoob / http://mrdoob.com/
<ide> */
<add>import { Matrix4 } from '../../math/Matrix4';
<add>import { Vector4 } from '../../math/Vector4';
<add>import { ArrayCamera } from '../../cameras/ArrayCamera';
<add>import { PerspectiveCamera } from '../.... | 1 |
Python | Python | allow batch size > 1 with exporter_main_v2.py | 0d6ce6025ffc2bed437160fc8b2e9934b3f82fad | <ide><path>research/object_detection/dataset_tools/context_rcnn/generate_detection_data_tf2_test.py
<ide> def __init__(self, conv_weight_scalar=1.0):
<ide> value=conv_weight_scalar))
<ide>
<ide> def preprocess(self, inputs):
<del> true_image_shapes = [] # Doesn't matter for the fake model.
<del> r... | 4 |
PHP | PHP | fix whitespace errors | 203172477fc99d541a6def73449c8cacc3718ca6 | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> public function any($abilities, $arguments = [])
<ide> });
<ide> }
<ide>
<del> /**
<add> /**
<ide> * Determine if any one of the given abilities should be denied for the current user.
<ide> *
<ide> * @param iterable|string $abilit... | 1 |
Text | Text | remove patterns and strings from urls | da385c9c1f9deeeefd705154a6e6612d6d62f41b | <ide><path>docs/api-guide/authentication.md
<ide> If you've already created some users, you can generate tokens for all existing u
<ide>
<ide> When using `TokenAuthentication`, you may want to provide a mechanism for clients to obtain a token given the username and password. REST framework provides a built-in view to... | 10 |
Text | Text | add missing bracket | 7ce777f9c57bec5e38bb48503877f5baddb7cd3d | <ide><path>README.md
<ide> Flowable.just("Hello world")
<ide> @Override public void accept(String s) {
<ide> System.out.println(s);
<ide> }
<del> );
<add> });
<ide> ```
<ide>
<ide> RxJava 2 features several base classes you can discover operators on: | 1 |
Python | Python | add test of new `parametrize` decorator | ea0115974afa3539bdb21c351034c9e755b02591 | <ide><path>numpy/testing/tests/test_decorators.py
<add>"""
<add>Test the decorators from ``testing.decorators``.
<add>
<add>"""
<ide> from __future__ import division, absolute_import, print_function
<ide>
<ide> import warnings
<ide> def slow_func(x, y, z):
<ide>
<ide> assert_(slow_func.slow)
<ide>
<add>
<ide> de... | 1 |
Text | Text | replace unneeded snake cases | 068c001dee01e8ac7401e97249c5f61215aed233 | <ide><path>doc/api/process.md
<ide> setTimeout(() => {
<ide> ```
<ide>
<ide>
<del>## process.initgroups(user, extra_group)
<add>## process.initgroups(user, extraGroup)
<ide> <!-- YAML
<ide> added: v0.9.4
<ide> -->
<ide>
<ide> * `user` {string|number} The user name or numeric identifier.
<del>* `extra_group` {string|... | 2 |
Javascript | Javascript | remove unused method parameter | 3f58edbe800aacb9fc943a19af700e1cc8c439d4 | <ide><path>src/core/core.scale.js
<ide> function getEvenSpacing(arr) {
<ide> /**
<ide> * @param {number[]} majorIndices
<ide> * @param {Tick[]} ticks
<del> * @param {number} axisLength
<ide> * @param {number} ticksLimit
<ide> */
<del>function calculateSpacing(majorIndices, ticks, axisLength, ticksLimit) {
<add>func... | 1 |
Ruby | Ruby | fix use of xcode_version in llvm check | 94f84544c6da64b60d5ea2c48d2c4ee3533807c2 | <ide><path>Library/Homebrew/formula.rb
<ide> def handle_llvm_failure llvm
<ide> that we can update the formula accordingly. Thanks!
<ide> EOS
<ide> puts
<del> if xcode_version < "4.2"
<add> if MacOS.xcode_version < "4.2"
<ide> puts "If it doesn't work you can: brew install --use-... | 1 |
Python | Python | stream large assets on download | d85117f88c689c8914be5386d15b63a3330a9124 | <ide><path>spacy/cli/_util.py
<ide> def download_file(src: Union[str, "Pathy"], dest: Path, *, force: bool = False)
<ide> src = str(src)
<ide> with smart_open.open(src, mode="rb", ignore_ext=True) as input_file:
<ide> with dest.open(mode="wb") as output_file:
<del> output_file.write(input_fil... | 1 |
Mixed | Javascript | fix benchmark runner | 8540768616861e513010ea2874a3188098105cca | <ide><path>scripts/bench/README.md
<ide>
<ide> In most cases, the only two commands you might want to use are:
<ide>
<del>- `yarn bench`
<del>- `yarn build -- --type=UMD_PROD && yarn bench -- --skip-build`
<add>- `yarn start`
<add>- `yarn build core,dom-client --type=UMD_PROD && yarn start --skip-build`
<ide>
<del>T... | 4 |
PHP | PHP | fix risky test warnings | aae5191bea6859abaab9d49661fe9d791d17d9ac | <ide><path>tests/TestCase/TestSuite/IntegrationTestCaseTest.php
<ide> public function testAssertNoRedirectFail()
<ide> {
<ide> $test = new AssertIntegrationTestCase('testBadAssertNoRedirect');
<ide> $result = $test->run();
<del> ob_start();
<add>
<ide> $this->assertFalse($result->wasS... | 2 |
Javascript | Javascript | add addextension method | 3b10641e4c87531725a28e0edb5173a472577839 | <ide><path>examples/js/loaders/3MFLoader.js
<del>THREE.ThreeMFLoader = function ( manager, extensions ) {
<add>THREE.ThreeMFLoader = function ( manager ) {
<ide>
<del> if ( manager instanceof Array ) {
<del>
<del> this.manager = THREE.DefaultLoadingManager;
<del> this.availableExtensions = manager;
<del>
<del> } els... | 1 |
Python | Python | support multiple choice in tf common model tests | 20451195f02e771a256faf53e482b85dcd5187b0 | <ide><path>src/transformers/modeling_tf_bert.py
<ide> def call(
<ide> flat_attention_mask = tf.reshape(attention_mask, (-1, seq_length)) if attention_mask is not None else None
<ide> flat_token_type_ids = tf.reshape(token_type_ids, (-1, seq_length)) if token_type_ids is not None else None
<ide> ... | 3 |
Javascript | Javascript | add file parameter to getshallowdependencies() | 0b17524134e7139686570f957744cee62f8336b1 | <ide><path>local-cli/server/util/attachHMRServer.js
<ide> type DependencyOptions = {|
<ide> +minify: boolean,
<ide> +platform: ?string,
<ide> +recursive: boolean,
<add> +rootEntryFile: string,
<ide> |};
<ide>
<ide> /**
<ide> function attachHMRServer<TModule: Moduleish>(
<ide> const response = await packager... | 1 |
Text | Text | update documentation for where chained modifiers | 5dfaf8b5b5d6175fc6dc1992f47f6ac740bdc011 | <ide><path>guides/source/active_record_querying.md
<ide> This code will generate SQL like this:
<ide> SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5))
<ide> ```
<ide>
<del>### NOT, LIKE, and NOT LIKE Conditions
<add>### NOT Conditions
<ide>
<del>`NOT`, `LIKE`, and `NOT LIKE` SQL queries can be built by `... | 1 |
Python | Python | fix another docstring formatting | d7f1ae929c99c71dee6a7a950937608ddbe92fce | <ide><path>numpy/testing/decorators.py
<ide> def skipif(skip_condition, msg=None):
<ide> ''' Make function raise SkipTest exception if skip_condition is true
<ide>
<ide> Parameters
<del> ---------
<add> ----------
<ide> skip_condition : bool or callable.
<ide> Flag to determine whether to ski... | 1 |
Go | Go | update archive/tar to match go 1.17.0 | aa606307b7d10890885e2c76c1652c48a6914db4 | <ide><path>vendor/archive/tar/stat_actime1.go
<ide> // Use of this source code is governed by a BSD-style
<ide> // license that can be found in the LICENSE file.
<ide>
<add>//go:build aix || linux || dragonfly || openbsd || solaris
<ide> // +build aix linux dragonfly openbsd solaris
<ide>
<ide> package tar
<ide><path... | 4 |
Python | Python | fix textcat model for gpu | 28c26e212dcd17773209596bedb8d928b2583d84 | <ide><path>spacy/_ml.py
<ide> def _zero_init_impl(self, *args, **kwargs):
<ide> @layerize
<ide> def _preprocess_doc(docs, drop=0.0):
<ide> keys = [doc.to_array(LOWER) for doc in docs]
<del> ops = Model.ops
<ide> # The dtype here matches what thinc is expecting -- which differs per
<ide> # platform (by in... | 1 |
Mixed | Text | remove contentlength middleware from the defaults | 56903585a099ab67a7acfaaef0a02db8fe80c450 | <ide><path>railties/CHANGELOG.md
<add>* Remove ContentLength middleware from the defaults. If you want it, just
<add> add it as a middleware in your config.
<add>
<add> *Egg McMuffin*
<add>
<ide> * Make it possible to customize the executable inside rerun snippets.
<ide>
<ide> *Yves Senn*
<ide><path>rai... | 2 |
Python | Python | fix some typos in random forest classifier | 7ffdef2636e8368d72f50815fe8ced98294b1053 | <ide><path>machine_learning/random_forest_classifier.py
<ide> def main():
<ide>
<ide> """
<del> Random Tree Classifier Example using sklearn function.
<add> Random Forest Classifier Example using sklearn function.
<ide> Iris type dataset is used to demonstrate algorithm.
<ide> """
<ide>
<del> # L... | 1 |
Java | Java | convert non-utf-8 json | 4882eb278d3ed71a75f0183c790228847b5bc08b | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
<ide> public Flux<Object> decode(Publisher<DataBuffer> input, ResolvableType elementTy
<ide> forceUseOfBigDecimal = true;
<ide> }
<ide>
<del> Flux<TokenBuffer> tokens = Jackson2Tokenizer.tokenize(Flux.from(input)... | 3 |
Javascript | Javascript | change var to let in lib/https.js | 9a4b16f62056dcffd71f5d564684488c390a9a66 | <ide><path>lib/https.js
<ide> Object.setPrototypeOf(Agent, HttpAgent);
<ide> Agent.prototype.createConnection = createConnection;
<ide>
<ide> Agent.prototype.getName = function getName(options) {
<del> var name = HttpAgent.prototype.getName.call(this, options);
<add> let name = HttpAgent.prototype.getName.call(this,... | 1 |
Python | Python | add support for sqlalchemy 1.4 | 0953a4d9ecf7008d10236359864d334695cc530c | <ide><path>celery/backends/database/session.py
<ide> from kombu.utils.compat import register_after_fork
<ide> from sqlalchemy import create_engine
<ide> from sqlalchemy.exc import DatabaseError
<del>from sqlalchemy.ext.declarative import declarative_base
<ide> from sqlalchemy.orm import sessionmaker
<ide> from sqlalche... | 1 |
Ruby | Ruby | remove a puts message | 0c143c03441cf2a66557ec7ba2f5d3d2f889fb5d | <ide><path>lib/action_cable/connection/registry.rb
<ide> def register_connection
<ide>
<ide> pubsub.subscribe(internal_redis_channel, &callback)
<ide> logger.info "[ActionCable] Registered connection (#{connection_identifier})"
<del> puts "[ActionCable] Registered connection: #{connection_... | 1 |
Go | Go | add implementation and test for setupiptables() | 6311a967107bf4e97c3474d9d7da6e521fd80365 | <ide><path>libnetwork/drivers/bridge/bridge.go
<ide> type Configuration struct {
<ide> FixedCIDRv6 *net.IPNet
<ide> EnableIPv6 bool
<ide> EnableIPTables bool
<add> EnableIPMasquerade bool
<add> EnableICC bool
<ide> EnableIPForwarding bool
<ide> }
<ide>
<ide><path>libnetwork/drivers/brid... | 4 |
Text | Text | fix minor typo in streams.md | c9d9ddcbc99b04489ca378250c555a57af3aa050 | <ide><path>doc/api/stream.md
<ide> primarily for examples and testing, but there are some use cases where
<ide> Prior to Node.js 0.10, the `Readable` stream interface was simpler, but also
<ide> less powerful and less useful.
<ide>
<del>* Rather than waiting for calls the [`stream.read()`][stream-read] method,
<add>* ... | 1 |
Text | Text | add note about path.basename on windows | a03e15f571dc54455896489589504df7ce45a0c8 | <ide><path>doc/api/path.md
<ide> path.basename('/foo/bar/baz/asdf/quux.html', '.html');
<ide> // Returns: 'quux'
<ide> ```
<ide>
<add>Although Windows usually treats file names, including file extensions, in a
<add>case-insensitive manner, this function does not. For example, `C:\\foo.html` and
<add>`C:\\foo.HTML` ref... | 1 |
Text | Text | add shigeki as collaborator | aea9b89b5c2e3fb9fdbd96c7483eb1f60d09a39e | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Nikolai Vavilov** ([@seishun](https://github.com/seishun)) <vvnicholas@gmail.com>
<ide> * **Nicu Micleușanu** ([@micnic](https://github.com/micnic)) <micnic90@gmail.com>
<ide> * **Aleksey Smolenchuk** ([@lxe](htt... | 1 |
Javascript | Javascript | add composition events to react | 578863881f50dbd1ce59c4ee453f51ce895b57b0 | <ide><path>src/core/ReactEventEmitter.js
<ide> var ReactEventEmitter = merge(ReactEventEmitterMixin, {
<ide> mountAt
<ide> );
<ide>
<add> trapBubbledEvent(
<add> topLevelTypes.topCompositionEnd,
<add> 'compositionend',
<add> mountAt
<add> );
<add> trapBubbledEvent(
<add> topLevel... | 4 |
Javascript | Javascript | remove unused definition `currentsource` | 3dcf7253a831946bd1cbb5ad74bfec6bc014f92e | <ide><path>lib/_debugger.js
<ide> function Client() {
<ide>
<ide> this.currentFrame = NO_FRAME;
<ide> this.currentSourceLine = -1;
<del> this.currentSource = null;
<ide> this.handles = {};
<ide> this.scripts = {};
<ide> this.breakpoints = []; | 1 |
Javascript | Javascript | add maximumdistance prop | 41a78cd85c461d2f029c1863614c73a28faabade | <ide><path>packages/react-events/src/dom/Tap.js
<ide> import {
<ide> isMac,
<ide> dispatchDiscreteEvent,
<ide> dispatchUserBlockingEvent,
<add> getTouchById,
<add> hasModifierKey,
<ide> } from './shared';
<ide>
<del>type TapProps = {|
<del> disabled: boolean,
<del> preventDefault: boolean,
<del> onTapCancel... | 3 |
Python | Python | fix dense layer bias_add bug when ndim > 2. | 86a683540504c6f6ecd44d03941ba4d0a97ad08c | <ide><path>keras/layers/core.py
<ide> def build(self, input_shape):
<ide> def call(self, inputs):
<ide> output = K.dot(inputs, self.kernel)
<ide> if self.use_bias:
<del> output = K.bias_add(output, self.bias)
<add> output = K.bias_add(output, self.bias, data_format='channels_la... | 1 |
PHP | PHP | apply fixes from styleci | c00a8e7d1ed48b1a4c9303aad4aceea6cea87c14 | <ide><path>tests/Routing/RoutingRouteTest.php
<ide> public function testNullValuesCanBeInjectedIntoRoutes()
<ide> return $router;
<ide> });
<ide>
<del> $container->bind(RoutingTestUserModel::class, function() {
<del> return null;
<add> $container->bind(RoutingTestUserModel:... | 1 |
Ruby | Ruby | fix ar tests for sqlite | fd87a787101e4b58249bf953ada756b992dff5f5 | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def teardown_with_fixtures
<ide> ActiveRecord::Base.connection.rollback_db_transaction
<ide> ActiveRecord::Base.unlock_mutex
<ide> end
<del> ActiveRecord::Base.clear_active_connections!
<add> ActiveRecord::Base.verify_... | 1 |
Python | Python | fix bug in sparse_categorical_accuracy | 6dff721a3a8755356b2e89d02ef63ad8ab38ec95 | <ide><path>keras/metrics.py
<ide> def categorical_accuracy(y_true, y_pred):
<ide>
<ide>
<ide> def sparse_categorical_accuracy(y_true, y_pred):
<del> # flatten y_true in case it's in shape (num_samples, 1) instead of (num_samples,)
<del> return K.cast(K.equal(K.flatten(y_true),
<del> K.c... | 2 |
Text | Text | update dep0102 text | 70dae240f04b91a05d1859f5440ca1305762d3da | <ide><path>doc/api/deprecations.md
<ide> changes:
<ide>
<ide> Type: End-of-Life
<ide>
<del>Using the `noAssert` argument has no functionality anymore. All input is going
<del>to be verified, no matter if it is set to true or not. Skipping the verification
<del>could lead to hard to find errors and crashes.
<add>Using... | 1 |
PHP | PHP | copy debugger test fix from 5.0 | c440c727674675f0204afd2b91f0d5e7bcc392fe | <ide><path>tests/TestCase/Error/DebuggerTest.php
<ide> public function testLogDepth(): void
<ide> Log::setConfig('test', [
<ide> 'className' => 'Array',
<ide> ]);
<del> $val = [
<add> $veryRandomName = [
<ide> 'test' => ['key' => 'val'],
<ide> ];
<ide> ... | 1 |
Java | Java | avoid repeated charset resolution in mimetype | c04400890f54bb2d342348085666066072b7bab9 | <ide><path>spring-core/src/main/java/org/springframework/util/MimeType.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this fil... | 1 |
PHP | PHP | add listener optinos | a82a25f58252eab6831a0efde35a17403710abdc | <ide><path>src/Illuminate/Queue/Console/ListenCommand.php
<ide>
<ide> use Illuminate\Queue\Listener;
<ide> use Illuminate\Console\Command;
<del>use Symfony\Component\Console\Input\InputOption;
<del>use Symfony\Component\Console\Input\InputArgument;
<add>use Illuminate\Queue\ListenerOptions;
<ide>
<ide> class ListenCo... | 4 |
Python | Python | fix bug in pos_tag.py script | eaccbcda0fc0705364cfc17277fe4ca3579fc2c2 | <ide><path>examples/pos_tag.py
<ide> def represent_word(word):
<ide> # Only do this if the lower-cased form is more probable.
<ide> if text.istitle() \
<ide> and is_sent_begin(word) \
<del> and word.prob < word.vocab[text.lower()].prob:
<add> and word.prob < word.doc.vocab[text.lower()].prob:
<ide> ... | 1 |
PHP | PHP | table | 818c78f44c66422a0721b206a7c95b56d8af8c78 | <ide><path>src/Illuminate/Cache/Console/CacheTableCommand.php
<ide> protected function createBaseMigration()
<ide> {
<ide> $name = 'create_cache_table';
<ide>
<del> $path = $this->laravel['path'].'/database/migrations';
<add> $path = $this->laravel['path.database'].'/migrations';
<ide>
<ide> return $this->lara... | 1 |
Javascript | Javascript | fix "the the" typo in comments | e84e6e7fad68f1c4a54f19d6d4625c322286f849 | <ide><path>lib/internal/streams/readable.js
<ide> function maybeReadMore_(stream, state) {
<ide> // conditions prevent the data from being read:
<ide> // - The stream has ended (state.ended).
<ide> // - There is already a pending 'read' operation (state.reading). This is a
<del> // case where the the stream ha... | 2 |
Text | Text | add docs for examples | 8abfb5e0e2015a0b8a80cba81ccf249df275adcb | <ide><path>Examples/Movies/README.md
<add># Movies app
<add>
<add>The Movies app is a demonstration of basic concepts, such as fetching data, rendering a list of data including images, and navigating between different screens.
<add>
<add>## Running this app
<add>
<add>Before running the app, make sure you ran:
<add>
<a... | 2 |
PHP | PHP | add unit test for debugsecurity param | b64bcff5652b0c49f43168ad75a8a4d5c237ca09 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function secure(array $fields = [], array $secureAttributes = [])
<ide> if (empty($this->request['_Token'])) {
<ide> return null;
<ide> }
<del> $debugSecurity = Hash::get($secureAttributes, 'debugSecurity') ?: Configure::read('deb... | 2 |
Text | Text | fix punctuation in line 46 | ed2d5f09ab1686d33475b8d7e286cea873aefb82 | <ide><path>guide/english/css/margins/index.md
<ide> An element can be aligned to the center by making it a block element and changin
<ide> - `%` implies relative to the parent element.
<ide>
<ide> ## Browser Support
<del>It is effectively supported in all browsers (since IE6+, Firefox 2+, Chrome 1+ etc)
<add>It is ef... | 1 |
PHP | PHP | simplify "app" function. | d72ecc447b40e77629891b9fdeb6b64db7411ff4 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function app($abstract = null, array $parameters = [])
<ide> return Container::getInstance();
<ide> }
<ide>
<del> return empty($parameters)
<del> ? Container::getInstance()->make($abstract)
<del> : Container::getIns... | 1 |
Javascript | Javascript | update donators copy | 0975b87a633f0cf89a9943a4f01d22e7942b3346 | <ide><path>client/src/components/Supporters.js
<ide> function Supporters({ isDonating, activeDonations }) {
<ide> freeCodeCamp.org is a tiny non-profit that's helping millions of
<ide> people learn to code for free. <br />
<ide> {isDonating
<del> ? 'Thank you for support... | 1 |
Javascript | Javascript | add support for custom tracking of items | 61f2767ce65562257599649d9eaf9da08f321655 | <ide><path>src/apis.js
<ide> HashMap.prototype = {
<ide> return value;
<ide> }
<ide> };
<del>
<del>/**
<del> * A map where multiple values can be added to the same key such that they form a queue.
<del> * @returns {HashQueueMap}
<del> */
<del>function HashQueueMap() {}
<del>HashQueueMap.prototype = {
<del> /**
<... | 5 |
Text | Text | add explanation of cancel token | 3958e9fbc8ebc0f72a8ce568cbf86f391d6869f3 | <ide><path>README.md
<ide> cancel();
<ide> ```
<ide>
<ide> > Note: you can cancel several requests with the same cancel token.
<add>> If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make real request.
<ide>
<id... | 1 |
Python | Python | fix raise_warnings in np.test in py3 | ede15881846af7aa6058c89359b9f9190201bfb5 | <ide><path>numpy/testing/nosetester.py
<ide> def test(self, label='fast', verbose=1, extra_argv=None,
<ide>
<ide> _warn_opts = dict(develop=(DeprecationWarning, RuntimeWarning),
<ide> release=())
<del> if raise_warnings in _warn_opts.keys():
<add> if isinstance(raise_war... | 1 |
Text | Text | add react 18 changelog | 509d2d906591b0fd364b2853433a4fe5b111bf02 | <ide><path>CHANGELOG.md
<add>## 18.0.0 (March 29, 2022)
<add>
<add>Below is a list of all new features, APIs, deprecations, and breaking changes.
<add>Read [React 18 release post](https://reactjs.org/blog/2022/03/29/react-v18.html) and [React 18 upgrade guide](https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.... | 1 |
Javascript | Javascript | split large image groups into smaller chunks | cae62341ac9bd94b5f4a03b139dc57141ca9cc8f | <ide><path>src/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> 'setFillCMYKColor': true,
<ide> 'paintJpegXObject': true,
<ide> 'paintImageXObject': true,
<add> 'paintInlineImageXObject': true,
<add> 'paintInlineImageXObjectGroup': true,
<ide> 'paintImageM... | 3 |
Python | Python | fix issue with parsing error logs in the kpo | 4752fb3eb8ac8827e6af6022fbcf751829ecb17a | <ide><path>airflow/providers/cncf/kubernetes/utils/pod_launcher.py
<ide> import math
<ide> import time
<ide> from datetime import datetime as dt
<del>from typing import Optional, Tuple
<add>from typing import Optional, Tuple, Union
<ide>
<ide> import pendulum
<ide> import tenacity
<ide> from kubernetes import client, ... | 2 |
Javascript | Javascript | add the type1 subrs into the cff local subrs index | 159c986e6e6858b87a609af068d65ca5d9f8aefd | <ide><path>fonts.js
<ide> CFF.prototype = {
<ide> "hlineto": 6,
<ide> "vlineto": 7,
<ide> "rrcurveto": 8,
<add> "callsubr": 10,
<add> "return": 11,
<ide> "endchar": 14,
<ide> "rmoveto": 21,
<ide> "hmoveto": 22,
<ide> "vhcurveto": 30,
<ide> "hvcurveto": 31,
<ide> },
<ide>
<del> ... | 1 |
Javascript | Javascript | suppress private property accesses | 94845b57834b8d73c0abb5c12319c3566f1ce1b7 | <ide><path>Libraries/Components/Keyboard/__tests__/Keyboard-test.js
<ide> describe('Keyboard', () => {
<ide>
<ide> // $FlowFixMe
<ide> expect(Keyboard._subscriber).toBe(KeyboardEventEmitter._subscriber);
<add> // $FlowFixMe Cannot access private property
<ide> expect(Keyboard._nativeModule).toBe(Keyboar... | 2 |
Python | Python | use planids map, but with correct values | a146be2c01d4b8646ca720018085cd0b13b34610 | <ide><path>libcloud/common/linode.py
<ide> # Constants that map a RAM figure to a PlanID (updated 2014-08-25)
<ide> LINODE_PLAN_IDS = {1024: '1',
<ide> 2048: '2',
<del> 4096: '4',
<del> 8192: '6',
<del> 16384: '7',
<add> 4096: '3... | 1 |
Ruby | Ruby | add missing require | 0f39f18b43082d7a40bf042d5db95b2f0c8d39eb | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> require "active_support/core_ext/hash/slice"
<ide> require "active_support/core_ext/enumerable"
<ide> require "active_support/core_ext/array/extract_options"
<add>require "active_support/core_ext/regexp"
<ide> require "action_dispatch/routing/redirection... | 1 |
Text | Text | improve arabic translation | 46e2a1b262d211cd9936a3cb16e3667cb8d7217b | <ide><path>curriculum/challenges/arabic/01-responsive-web-design/applied-accessibility/add-a-text-alternative-to-images-for-visually-impaired-accessibility.arabic.md
<ide> localeTitle: إضافة نص بديل للصور لذوي ضعاف البصر
<ide> ---
<ide>
<ide> ## Description
<del><section id="description"> من المحتمل أنك رأيت سمة <code... | 1 |
Go | Go | fix gcc warning | 7da12bcfa9db4d84b2c547bee93dafeaead15b16 | <ide><path>pkg/devicemapper/devmapper_wrapper.go
<ide> static void log_cb(int level, const char *file, int line, int dm_errno_or_class,
<ide> {
<ide> char *buffer = NULL;
<ide> va_list ap;
<add> int ret;
<ide>
<ide> va_start(ap, f);
<del> vasprintf(&buffer, f, ap);
<add> ret = vasprintf(&buffer, f, ap);
<ide> va_e... | 1 |
Go | Go | add support for udp (closes #33) | fac0d87d00ada08309ea3b82cae69beeef637c89 | <ide><path>container.go
<ide> func ParseRun(args []string, capabilities *Capabilities) (*Config, *HostConfig,
<ide> return config, hostConfig, cmd, nil
<ide> }
<ide>
<add>type portMapping map[string]string
<add>
<ide> type NetworkSettings struct {
<ide> IPAddress string
<ide> IPPrefixLen int
<ide> Gateway st... | 6 |
Javascript | Javascript | remove ids from viewer page and thumbnail divs | 52360694b0f28828f9a103d4649724effac2bb98 | <ide><path>web/pdf_page_view.js
<ide> var PDFPageView = (function PDFPageViewClosure() {
<ide> this.annotationLayer = null;
<ide>
<ide> var div = document.createElement('div');
<del> div.id = 'pageContainer' + this.id;
<ide> div.className = 'page';
<ide> div.style.width = Math.floor(this.viewport.wi... | 3 |
Python | Python | fix tests to use new prepared_request method | 6287bf1bf6b6927960cbfb9443b1b145b7ad8b2f | <ide><path>libcloud/httplib_ssl.py
<ide> import requests
<ide>
<ide> import libcloud.security
<del>from libcloud.utils.py3 import httplib
<ide> from libcloud.utils.py3 import urlparse
<ide>
<ide>
<ide> def request(self, method, url, body=None, headers=None, raw=False):
<ide> verify=self.ca_cert if self.c... | 5 |
PHP | PHP | fix references to missingcontrollerexception | c8b55013c8ee8c4685208e280ca9d886fc747e88 | <ide><path>tests/TestCase/Error/ErrorHandlerTest.php
<ide> use Cake\Error\ErrorHandler;
<ide> use Cake\Http\Exception\ForbiddenException;
<ide> use Cake\Http\Exception\NotFoundException;
<add>use Cake\Http\Exception\MissingControllerException;
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Log\Log;
<del>use Cake\Rou... | 4 |
Javascript | Javascript | fix comment indentation | a8991900b5c9045c54e5fbd4ad10480af18abc8c | <ide><path>examples/js/loaders/FBXLoader.js
<ide> materials[ materialsIndex ].skinning = true;
<ide>
<ide> }
<add>
<ide> model = new THREE.SkinnedMesh( geometry, material );
<ide>
<ide> } else {
<ide>
<ide> }
<ide>
<del> // FBX does not list materials for Nurbs lines, so we'll just put our own in h... | 1 |
PHP | PHP | fix incorrect defaults | 8e3ae129989c7cee47943b36b5435271a87a3123 | <ide><path>lib/Cake/Database/Schema/Table.php
<ide> class Table {
<ide> 'type' => null,
<ide> 'columns' => [],
<ide> 'length' => [],
<del> 'references' => null,
<del> 'update' => null,
<del> 'delete' => null,
<add> 'references' => [],
<add> 'update' => 'cascade',
<add> 'delete' => 'cascade',
<ide> ];
<ide>... | 1 |
Python | Python | add tests for sorting strings containing zeros | 2bd3c4c8d52560717a8acc2b30da14d269fb2e37 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_searchsorted_variable_length(self, level=rlevel):
<ide> y = np.array(['d','e'])
<ide> assert_equal(x.searchsorted(y), [3,3])
<ide>
<add> def check_string_argsort_with_zeros(self, level=rlevel):
<add> """Check argsort for strings c... | 1 |
Text | Text | add content from wiki to docs/ | 599c2293d6bc0076e96d6355bfcc6ca009e18b48 | <ide><path>docs/kyles-little-things.md
<add>I recently switched over to Sublime Text 2 and for the most part it's been pretty awesome. But I've been noticing a lot of little things that I really appreciate in an editor, so I thought I'd note them down.
<add>
<add>1. Indenting soft-wrapped lines http://share.kyleneath.c... | 1 |
Ruby | Ruby | remove deprecated specs | 16bdd423089f5fa307b4b87a8868bd4598237fdf | <ide><path>Library/Homebrew/test/cask/dsl/version_spec.rb
<ide> "1.2.3,abc" => "abc"
<ide> end
<ide>
<del> describe "#before_colon" do
<del> include_examples "version expectations hash", :before_colon,
<del> "1.2.3" => "1.2.3",
<del> "1... | 1 |
Text | Text | fix stability indicator in webcrypto doc | 2c2c87e291d36df4c8c3357cc6b896a711c219ef | <ide><path>doc/api/webcrypto.md
<ide>
<ide> <!-- introduced_in=REPLACEME -->
<ide>
<del>> Stability: 0 - Experimental
<add>> Stability: 1 - Experimental
<ide>
<ide> Node.js provides an implementation of the standard [Web Crypto API][].
<ide> | 1 |
Javascript | Javascript | hide toggle arrows in owners list mode | 61203f77cf850b07a6da57ea4257bcfeea200ae5 | <ide><path>src/devtools/views/Components/Element.js
<ide> export default function ElementView({ data, index, style }: Props) {
<ide> const {
<ide> baseDepth,
<ide> getElementAtIndex,
<add> ownerStack,
<ide> selectOwner,
<ide> selectedElementID,
<ide> selectElementByID,
<ide> export default func... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.