content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | enable strict mode for vm tests | 15f13cd74a8bb9e62b871076328447b4ead7e8b6 | <ide><path>test/parallel/test-vm-new-script-new-context.js
<del>/* eslint-disable strict */
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var Script = require('vm').Script;
<add>'use strict';
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const ... | 3 |
Java | Java | add logging of statistics of fabric commits | 08aab2b4e1cfc0202dca544d22bc2cde82be7b39 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java
<ide> private void scheduleMountItem(
<ide> // When Binding.cpp calls scheduleMountItems during a commit phase, it always calls with
<ide> // a BatchMountItem. No other sites call into this with a BatchMountItem, and Binding.cp... | 1 |
Javascript | Javascript | put mask data to the canvas in small slices | 1ec3c341cc4416a35714ccecfb9e9e6a4bc1d283 | <ide><path>src/display/canvas.js
<ide> var CanvasGraphics = (function CanvasGraphicsClosure() {
<ide> }
<ide>
<ide> function putBinaryImageMask(ctx, imgData) {
<del> var width = imgData.width, height = imgData.height;
<del> var tmpImgData = ctx.createImageData(width, height);
<del> var data = imgData.data... | 1 |
Text | Text | add v3.27.0 to changelog | 3afd20cb64c334d86c657d021fdd52de1fb0c1d6 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.27.0-beta.4 (April 21, 2021)
<del>
<del>- [#19499](https://github.com/emberjs/ember.js/pull/19499) [BUGFIX beta] [DEPRECATION] Deprecate `@foo={{helper}}`
<del>- [#19499](https://github.com/emberjs/ember.js/pull/19499) [BUGFIX beta] `<:else>` and `<:inv... | 1 |
Text | Text | add reference to deployment wiki page | 9acc7cfc68186779ef485689c3602a00d1ffb064 | <ide><path>readme.md
<ide> componentWillReceiveProps(nextProps) {
<ide> ```
<ide>
<ide> > NOTES:
<del>>
<add>>
<ide> > Shallow routing works **only** for same page URL changes. For an example, let's assume we've another page called `about`, and you run this:
<ide> > ```js
<ide> > Router.push('/about?counter=10', '/ab... | 1 |
Java | Java | introduce "aware" superinterface | 5e6912302af99d78d05aff7080ed9b8bb33df913 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/Aware.java
<add>/*
<add> * Copyright 2002-2011 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<ad... | 21 |
Javascript | Javascript | add workaround for invalid rawmodel entries | e507c44e4c853e92475cddf86105831fe468481d | <ide><path>examples/js/loaders/FBXLoader.js
<ide> THREE.FBXLoader = ( function () {
<ide> if ( modelID !== undefined ) {
<ide>
<ide> var rawModel = fbxTree.Objects.Model[ modelID.toString() ];
<add>
<add> if (!rawModel) {
<add> console.log("invalid rawModel", modelID, ch... | 1 |
Ruby | Ruby | prevent possible bug in build's optlink | feb77b208566eed340197dc17d27e0de5c1e16f7 | <ide><path>Library/Homebrew/build.rb
<ide> def fixopt f
<ide> f.linked_keg.readlink
<ide> elsif f.prefix.directory?
<ide> f.prefix
<del> elsif (kids = f.rack.children).size == 1
<add> elsif (kids = f.rack.children).size == 1 and kids.first.directory?
<ide> kids.first
<ide> else
<ide> raise | 1 |
PHP | PHP | use "expire" to be consistent with other drivers | 880107fa8c24d4b31f155bd1b92fd4bfa1a1ac52 | <ide><path>src/Illuminate/Queue/Connectors/BeanstalkdConnector.php
<ide> public function connect(array $config)
<ide> $pheanstalk = new Pheanstalk($config['host'], Arr::get($config, 'port', PheanstalkInterface::DEFAULT_PORT));
<ide>
<ide> return new BeanstalkdQueue(
<del> $pheanstalk, $confi... | 1 |
PHP | PHP | fix each when there's no order by | 408aba4ec776e0a8bf016bb090eaa354d3725abc | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function chunk($count, callable $callback)
<ide> */
<ide> public function each(callable $callback, $count = 1000)
<ide> {
<add> if (is_null($this->getOrderBys())) {
<add> $this->orderBy('id', 'asc');
<add> }
<add>... | 2 |
Python | Python | fix broken mssql test | 933d863d6d39198dee40bd100658aa69e95d1895 | <ide><path>tests/task/task_runner/test_standard_task_runner.py
<ide> import psutil
<ide> import pytest
<ide>
<del>from airflow import models, settings
<ide> from airflow.jobs.local_task_job import LocalTaskJob
<del>from airflow.models import TaskInstance as TI
<add>from airflow.models.dagbag import DagBag
<add>from ai... | 1 |
Mixed | Python | use flags utils and distribution_utils | 252e63849b5cf8dd12d6930dc2e9f8c51ea70251 | <ide><path>official/nlp/bert/README.md
<ide> script should run with `tf-nightly`.
<ide> Just add the following flags to `run_classifier.py` or `run_squad.py`:
<ide>
<ide> ```shell
<del> --strategy_type=tpu
<add> --distribution_strategy=tpu
<ide> --tpu=grpc://${TPU_IP_ADDRESS}:8470
<ide> ```
<ide>
<ide> python run... | 5 |
Go | Go | log output as string | d898372568a3e00d4bda0359393d833a9f30fe1d | <ide><path>integration-cli/docker_cli_exec_test.go
<ide> func (s *DockerSuite) TestExecParseError(c *check.C) {
<ide> }
<ide>
<ide> func (s *DockerSuite) TestExecStopNotHanging(c *check.C) {
<del> if out, err := exec.Command(dockerBinary, "run", "-d", "--name", "testing", "busybox", "top").CombinedOutput(); err != nil... | 1 |
PHP | PHP | add test for #5a6c10d | 9b7eea0fa73c0bc359bec0132ccb8afec66084a0 | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function testAttributeNamesAreReplaced()
<ide> $this->assertFalse($v->passes());
<ide> $v->messages()->setFormat(':message');
<ide> $this->assertEquals('Name is required!', $v->messages()->first('name'));
<add>
<add> //set customAttributes by... | 1 |
Go | Go | fix goroutine leak | 2a331a5ef7f2d3f044773010ff3221d2ea36a921 | <ide><path>pkg/system/rm_test.go
<ide> func TestEnsureRemoveAllWithMount(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide>
<del> done := make(chan struct{})
<add> done := make(chan struct{}, 1)
<ide> go func() {
<ide> err = EnsureRemoveAll(dir1)
<ide> close(done) | 1 |
Ruby | Ruby | reduce odeprecated warnings | 459b113e28cab57cde94625b3f284e54986c2167 | <ide><path>Library/Homebrew/utils.rb
<ide> def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
<ide> # - Location of caller of deprecated method (if all else fails).
<ide> backtrace = caller
<ide> tap_message = nil
<add>
<add> # Don't throw deprecations at all for cached or .brew for... | 1 |
Go | Go | improve routes initialization | 8f68adfaf0231ded0ba6bd2ec522711752031885 | <ide><path>cmd/dockerd/daemon.go
<ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
<ide> }()
<ide> }
<ide>
<add> // TODO: extract to newApiServerConfig()
<ide> serverConfig := &apiserver.Config{
<ide> Logging: true,
<ide> SocketGroup: cli.Config.SocketGroup,
<ide> func (cli *DaemonCli) s... | 1 |
Python | Python | add simpler verbose mode to sequential model | 731f0ab42b808b0f90d4c1e97fcd80dbc214191c | <ide><path>keras/models.py
<ide> def fit(self, X, y, batch_size=128, nb_epoch=100, verbose=1,
<ide> np.random.shuffle(index_array)
<ide>
<ide> batches = make_batches(len(X), batch_size)
<del> progbar = Progbar(target=len(X))
<add> if verbose==1:
<add> pr... | 1 |
Ruby | Ruby | improve dependency listing | e02d6f2500fc81f98645d16b614ae83a76713a78 | <ide><path>Library/Homebrew/cmd/info.rb
<ide> def info_formula f
<ide> puts
<ide> end
<ide>
<del> puts "Depends on: #{f.deps*', '}" unless f.deps.empty?
<del> conflicts = f.conflicts.map { |c| c.formula }.sort
<add> conflicts = f.conflicts.map(&:formula).sort!
<ide> puts "Conflicts with: #{confl... | 1 |
Java | Java | add support for mime-based message conversion | 7d3b6497b5e95eaa212cf2dd985d6a7e686e2940 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/core/AbstractDestinationResolvingMessagingTemplate.java
<ide> */
<ide> package org.springframework.messaging.core;
<ide>
<add>import java.util.Map;
<add>
<ide> import org.springframework.messaging.Message;
<ide> import org.springframework.util.As... | 34 |
Python | Python | use metaclass to decorate errors | cab9209c3dfcd1b75dfe5657f10e52c4d847a3cf | <ide><path>spacy/errors.py
<ide> import warnings
<ide>
<ide>
<del>def add_codes(err_cls):
<del> """Add error codes to string messages via class attribute names."""
<del>
<del> class ErrorsWithCodes(err_cls):
<del> def __getattribute__(self, code):
<del> msg = super(ErrorsWithCodes, self).__get... | 2 |
Text | Text | add changelog entry | d8faa70b648974e2681f945c66af5e326015d8d7 | <ide><path>CHANGELOG.md
<ide> * Fix `null` showing up in a warning instead of the component stack. ([@gaearon](https://github.com/gaearon) in [#10915](https://github.com/facebook/react/pull/10915))
<ide> * Fix IE11 crash in development mode. ([@leidegre](https://github.com/leidegre) in [#10921](https://github.com/faceb... | 1 |
Ruby | Ruby | add tests for formula#installed_prefix | 8407ad23561882b879febbf4870efa7ccca36fd7 | <ide><path>Library/Homebrew/test/test_formula.rb
<ide> def test_installed?
<ide> assert f.installed?
<ide> end
<ide>
<add> def test_installed_prefix
<add> f = Class.new(TestBall).new
<add> assert_equal f.prefix, f.installed_prefix
<add> end
<add>
<add> def test_installed_prefix_head_installed
<add> f... | 1 |
Python | Python | add dependency to azure-core | 6fb4f4b260117e8b1313aa6c1c84bd9507bb194a | <ide><path>setup.py
<ide> def get_sphinx_theme_version() -> str:
<ide> # blob is the only exception
<ide> # Solution to that is being worked on in https://github.com/apache/airflow/pull/12188
<ide> # once it is merged, we can move those two back to `azure` extra.
<add> 'azure-core>=1.10.0',
<ide> 'az... | 1 |
Mixed | Javascript | add tojson to performance class | 93f0b4d35bf72a1119b8a5bfea932b85faa1a4a6 | <ide><path>doc/api/perf_hooks.md
<ide> If the wrapped function returns a promise, a finally handler will be attached
<ide> to the promise and the duration will be reported once the finally handler is
<ide> invoked.
<ide>
<add>### `performance.toJSON()`
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>An object... | 3 |
Ruby | Ruby | add prefix and suffix to renamed tables, closes | 0968ee3456a874aa46d37d68b2d7d2dd0a84a5fe | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def method_missing(method, *arguments, &block)
<ide> say_with_time "#{method}(#{arg_list})" do
<ide> unless arguments.empty? || method == :execute
<ide> arguments[0] = Migrator.proper_table_name(arguments.first)
<add> argument... | 4 |
Python | Python | add viterbi algorithm | 7b521b66cfe3d16960c3fa8e01ff947794cc44a6 | <ide><path>dynamic_programming/viterbi.py
<add>from typing import Any
<add>
<add>
<add>def viterbi(
<add> observations_space: list,
<add> states_space: list,
<add> initial_probabilities: dict,
<add> transition_probabilities: dict,
<add> emission_probabilities: dict,
<add>) -> list:
<add> """
<add> ... | 1 |
Javascript | Javascript | enable concurrent apis in all experimental forks | 9123c479f4f3a21f897a923aeb33bf0499f4891f | <ide><path>packages/shared/forks/ReactFeatureFlags.native-fb.js
<ide> export const enableProfilerTimer = __PROFILE__;
<ide> export const enableSchedulerTracing = __PROFILE__;
<ide> export const enableSuspenseServerRenderer = false;
<ide> export const enableSelectiveHydration = false;
<del>export const exposeConcurrentM... | 6 |
Text | Text | reduce ci options in collaborator_guide.md | f3e078fdce38cd8526e4f7f3aa657e030f141efc | <ide><path>COLLABORATOR_GUIDE.md
<ide> All bugfixes require a test case which demonstrates the defect. The
<ide> test should *fail* before the change, and *pass* after the change.
<ide>
<ide> All pull requests that modify executable code should also include a test case
<del>and be subjected to continuous integration t... | 1 |
Javascript | Javascript | update image api | db7b44ec8ebb9a72f13a8397dd35007e24f4e903 | <ide><path>Libraries/Image/Image.ios.js
<ide> const ImageViewManager = NativeModules.ImageViewManager;
<ide> * including network images, static resources, temporary local images, and
<ide> * images from local disk, such as the camera roll.
<ide> *
<del> * Example usage:
<add> * This exmaples shows both fetching and ... | 1 |
Python | Python | validate the existence of `.pyi` stub files | 66b17fbc9666b150c71bb94f2492fd880b2641e4 | <ide><path>numpy/typing/tests/test_isfile.py
<add>import os
<add>from pathlib import Path
<add>
<add>import numpy as np
<add>from numpy.testing import assert_
<add>
<add>ROOT = Path(np.__file__).parents[0]
<add>FILES = [
<add> ROOT / "py.typed",
<add> ROOT / "__init__.pyi",
<add> ROOT / "char.pyi",
<add> RO... | 1 |
Java | Java | add perf marker for create module | 1b2d9a858b8578b9e7e1c892792d07d2b9f83ab9 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java
<ide> public class ReactMarkerConstants {
<ide> "CREATE_UI_MANAGER_MODULE_CONSTANTS_START";
<ide> public static final String CREATE_UI_MANAGER_MODULE_CONSTANTS_END =
<ide> "CREATE_UI_MANAGER_MODULE_CONSTANTS_END";
<add> ... | 1 |
Python | Python | fix stateful lstm example | ff2f8ac69b8bcf013a42add480b662daa4cde656 | <ide><path>examples/stateful_lstm.py
<ide> def gen_cosine_amp(amp=100, period=25, x0=0, xn=50000, step=1, k=0.0001):
<ide> expected_output,
<ide> batch_size=batch_size,
<ide> verbose=1,
<del> nb_epoch=1)
<add> nb_epoch=1,
<add> shuffle=Fal... | 1 |
Python | Python | add netifaces optionnal dependancy | fda1085db040655e8d678c3a96cab888bf5297a9 | <ide><path>glances/core/glances_autodiscover.py
<ide>
<ide> # Import system libs
<ide> import socket
<add>try:
<add> import netifaces
<add> netifaces_tag = True
<add>except ImportError:
<add> netifaces_tag = True
<ide> try:
<ide> from zeroconf import ServiceBrowser, ServiceInfo, Zeroconf
<ide> zerocon... | 1 |
Python | Python | reuse ex_deploy_node when instatiating a new node | 101f77f06c2da6417678f9df9c0902bea5aba0fe | <ide><path>libcloud/compute/drivers/vcloud.py
<ide> def create_node(self, **kwargs):
<ide>
<ide> # Power on the VM.
<ide> if ex_deploy:
<add> res = self.connection.request(get_url_path(vapp_href))
<add> node = self._to_node(res.object)
<ide> # Retry 3 times: when insta... | 1 |
Javascript | Javascript | fix extra space | 3352b240596d2eec784dda8eeaf0d8ad989ead12 | <ide><path>lib/dependencies/ImportDependency.js
<ide> class ImportDependency extends ModuleDependency {
<ide> }
<ide> }
<ide>
<del>makeSerializable(
<del> ImportDependency,
<del> "webpack/lib/dependencies/ImportDependency "
<del>);
<add>makeSerializable(ImportDependency, "webpack/lib/dependencies/ImportDependency");
... | 1 |
PHP | PHP | add check for response status code being 204 | c19ec3bd1351c7097d62ca60ffdfb581808e9c35 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertJsonValidationErrors($keys)
<ide> */
<ide> public function assertJsonMissingValidationErrors($keys = null)
<ide> {
<del> if (empty($this->getContent())) {
<add> if (empty($this->getContent()) && $this->g... | 2 |
PHP | PHP | add replacedimensions for validator messages | a8e8b75ea7bc77919968300410b9739e7e6076f8 | <ide><path>src/Illuminate/Validation/Concerns/ReplacesAttributes.php
<ide> protected function replaceAfterOrEqual($message, $attribute, $rule, $parameters)
<ide> {
<ide> return $this->replaceBefore($message, $attribute, $rule, $parameters);
<ide> }
<add>
<add> /**
<add> * Replace all place-holder... | 2 |
Ruby | Ruby | convert cxxstdlib test to spec | b89c0f16dd5e5d75e6e72187bf2956ce456c8090 | <ide><path>Library/Homebrew/test/cxxstdlib_spec.rb
<add>require "formula"
<add>require "cxxstdlib"
<add>
<add>describe CxxStdlib do
<add> let(:clang) { CxxStdlib.create(:libstdcxx, :clang) }
<add> let(:gcc) { CxxStdlib.create(:libstdcxx, :gcc) }
<add> let(:gcc40) { CxxStdlib.create(:libstdcxx, :gcc_4_0) }
<add> let... | 2 |
Text | Text | fix typo in github.com url. | 8430f3e5b62605e3753018dd2e8f8975b41b0a0a | <ide><path>docs/api-guide/renderers.md
<ide> Comma-separated values are a plain-text tabular data format, that can be easily
<ide> [messagepack]: https://msgpack.org/
<ide> [juanriaza]: https://github.com/juanriaza
<ide> [mjumbewu]: https://github.com/mjumbewu
<del>[flipperpa]: https://githuc.com/flipperpa
<add>[flippe... | 1 |
Python | Python | fix lr in callback | b55c9da0c65f2de07150424ecede4cadc8583257 | <ide><path>official/vision/image_classification/callbacks.py
<ide> def get_callbacks(model_checkpoint: bool = True,
<ide> callbacks = []
<ide> if model_checkpoint:
<ide> ckpt_full_path = os.path.join(model_dir, 'model.ckpt-{epoch:04d}')
<del> callbacks.append(tf.keras.callbacks.ModelCheckpoint(
<del> ... | 1 |
PHP | PHP | remove problematic field | 20fb859d73c2cf9f3381668ece8f8fbd99f1522b | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testCastResults()
<ide> $this->loadFixtures('Profiles');
<ide> $query = new Query($this->connection);
<ide> $fields = [
<del> 'id' => 'integer',
<ide> 'user_id' => 'integer',
<ide> 'is_activ... | 1 |
Python | Python | fix slow dpr test | d51302cca0eb46f32a067aedc91ffee3edc29acb | <ide><path>tests/test_modeling_dpr.py
<ide> def test_inference_no_head(self):
<ide> def test_reader_inference(self):
<ide> tokenizer = DPRReaderTokenizer.from_pretrained("facebook/dpr-reader-single-nq-base")
<ide> model = DPRReader.from_pretrained("facebook/dpr-reader-single-nq-base")
<add> m... | 1 |
Mixed | Javascript | adjust object literal newlines for lint rule | 996b85b5c2e59262dfaeb017d882ea4324371729 | <ide><path>doc/api/http2.md
<ide> will be emitted.
<ide> const body = 'hello world';
<ide> response.writeHead(200, {
<ide> 'Content-Length': Buffer.byteLength(body),
<del> 'Content-Type': 'text/plain; charset=utf-8' });
<add> 'Content-Type': 'text/plain; charset=utf-8',
<add>});
<ide> ```
<ide>
<ide> `Content-Leng... | 33 |
PHP | PHP | unload plugins after use | e0f6112f3f1ceed25792cac8c026f26e8f08e5ec | <ide><path>tests/TestCase/Http/SessionTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Network;
<ide>
<add>use Cake\Core\Plugin;
<ide> use Cake\Http\Session;
<ide> use Cake\Http\Session\CacheSession;
<ide> use Cake\Http\Session\DatabaseSession;
<ide><path>tests/TestCase/Mailer/EmailTest.php
<ide> public function ... | 20 |
PHP | PHP | use better variable names | 5dfc55f42e63458339699250962c68ab6d7e5388 | <ide><path>src/TestSuite/Fixture/FixtureManager.php
<ide> protected function _aliasConnections()
<ide> $map['test_' . $connection] = $connection;
<ide> }
<ide> }
<del> foreach ($map as $alias => $connection) {
<del> ConnectionManager::alias($alias, $connection);
<ad... | 1 |
Python | Python | fix integer division issue and tests | 6c990fbdd58e969d179e3d721d85c9f0ea3a6005 | <ide><path>numpy/linalg/linalg.py
<ide> def eig(a):
<ide> w = wr+1j*wi
<ide> v = array(vr, w.dtype)
<ide> ind = flatnonzero(wi != 0.0) # indices of complex e-vals
<del> for i in range(len(ind)/2):
<add> for i in range(len(ind)//2):
<ide> v[i... | 2 |
Text | Text | add v2.18.1 to changelog.md | 8222f4eafd2a1ff305cb1e465b359badb77097fb | <ide><path>CHANGELOG.md
<ide> - [#16036](https://github.com/emberjs/ember.js/pull/16036) [CLEANUP] Convert ember-metal accessors tests to new style
<ide> - [#16023](https://github.com/emberjs/ember.js/pull/16023) Make event dispatcher work without jQuery
<ide>
<add>### 2.18.1 (February 13, 2018)
<add>
<add>- [#16174](... | 1 |
Go | Go | update code from pr post rebase | a11bee44d74235ec436c1b2272dc9f718497f88c | <ide><path>networkdriver/lxc/driver.go
<ide> func setupIPTables(addr net.Addr, icc bool) error {
<ide> natArgs := []string{"POSTROUTING", "-t", "nat", "-s", addr.String(), "!", "-d", addr.String(), "-j", "MASQUERADE"}
<ide>
<ide> if !iptables.Exists(natArgs...) {
<del> if output, err := iptables.Raw(append([]string... | 1 |
Javascript | Javascript | fix potential memory leak when unmounting | e2f094614f8e8dd5111f19690ad32cea00d407f2 | <ide><path>src/core/ReactCompositeComponent.js
<ide> var ReactCompositeComponentMixin = {
<ide>
<ide> this._defaultProps = null;
<ide>
<del> ReactComponent.Mixin.unmountComponent.call(this);
<ide> this._renderedComponent.unmountComponent();
<ide> this._renderedComponent = null;
<ide>
<add> ReactCom... | 3 |
Javascript | Javascript | improve coverage of lib/os.js | 35b445d089682aa08f18e383cbc7acc9e5ac956d | <ide><path>test/parallel/test-os.js
<ide> assert.strictEqual(`${os.endianness}`, os.endianness());
<ide> assert.strictEqual(`${os.tmpdir}`, os.tmpdir());
<ide> assert.strictEqual(`${os.arch}`, os.arch());
<ide> assert.strictEqual(`${os.platform}`, os.platform());
<add>assert.strictEqual(`${os.version}`, os.version());
... | 1 |
Python | Python | add more tests for the s3 driver | 5e82e5e39e8a8beac3f106a134d14ee1ca93fa59 | <ide><path>test/storage/test_s3.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<add>import os
<ide> import sys
<ide> import httplib
<ide> import unittest
<ide> from libcloud.storage.base import Container, Object
<ide> from libcloud.storage.ty... | 1 |
Text | Text | create list for commonly edited files in prs | f02e4b90a2c1cdcb0b0d20bcfa75bac8d991d66b | <ide><path>doc/guides/contributing/pull-requests.md
<ide> $ git checkout -b my-branch -t upstream/master
<ide> ### Step 3: Code
<ide>
<ide> The vast majority of Pull Requests opened against the `nodejs/node`
<del>repository includes changes to either the C/C++ code contained in the `src`
<del>directory, the JavaScript... | 1 |
Text | Text | add documentation for new static 500 behavior | e9a1d8fd4237b978ccb6e9637d9f4bcddff0c526 | <ide><path>docs/advanced-features/custom-error-page.md
<ide> export default function Custom404() {
<ide>
<ide> ## 500 Page
<ide>
<del>By default Next.js provides a 500 error page that matches the default 404 page’s style. This page is not statically optimized as it allows server-side errors to be reported. This is wh... | 1 |
Ruby | Ruby | add doc for joins and improve includes doc | 8e7470adcbce7c278f668ea671dfbcaf089114eb | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def create_with_value
<ide> #
<ide> # allows you to access the +address+ attribute of the +User+ model without
<ide> # firing an additional query. This will often result in a
<del> # performance improvement over a simple +join+
<ad... | 1 |
Javascript | Javascript | configure react-test-renderer as a secondary | ebbd2214326ca6a5f24f46ea7eaffc6cfabbbe1c | <ide><path>packages/react-art/src/__tests__/ReactART-test.js
<ide> const Circle = require('react-art/Circle');
<ide> const Rectangle = require('react-art/Rectangle');
<ide> const Wedge = require('react-art/Wedge');
<ide>
<add>// Isolate the noop renderer
<add>jest.resetModules();
<add>const ReactNoop = require('react-... | 3 |
Ruby | Ruby | relocate files in share/pkgconfig too | be46fc3a48dd277977a988a63461aee2015d9cab | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def script_files
<ide> def pkgconfig_files
<ide> pkgconfig_files = []
<ide>
<del> # find .pc files, which are stored in lib/pkgconfig
<del> pc_dir = self/'lib/pkgconfig'
<del> if pc_dir.directory?
<del> pc_dir.find do |pn|
<add> %w[lib s... | 1 |
PHP | PHP | use interface instead of scalar check | 8a78dd5ab987d22f1aa02ca2248f17d68f41e907 | <ide><path>src/ORM/Behavior/TreeBehavior.php
<ide> */
<ide> namespace Cake\ORM\Behavior;
<ide>
<add>use Cake\Datasource\EntityInterface;
<ide> use Cake\Datasource\Exception\RecordNotFoundException;
<ide> use Cake\Event\Event;
<ide> use Cake\ORM\Behavior;
<ide> public function getLevel($entity)
<ide> {
<ide> ... | 1 |
PHP | PHP | fix event fake dispatch method not returning | 44cccf2b27350ad41e93496ba435d1e255b9b8d6 | <ide><path>src/Illuminate/Support/Testing/Fakes/EventFake.php
<ide> public function dispatch($event, $payload = [], $halt = false)
<ide> if ($this->shouldFakeEvent($name, $payload)) {
<ide> $this->events[$name][] = func_get_args();
<ide> } else {
<del> $this->dispatcher->dispatch(... | 2 |
Ruby | Ruby | register mailer tests for minitest's spec dsl | 0ce383db58b4718147433ca0e06d7e88efd6c184 | <ide><path>actionmailer/lib/action_mailer/test_case.rb
<ide> def initialize(name)
<ide> end
<ide>
<ide> class TestCase < ActiveSupport::TestCase
<add>
<add> # Use AM::TestCase for the base class when describing a mailer
<add> register_spec_type(self) do |desc|
<add> Class === desc && desc < ActionMailer... | 2 |
Ruby | Ruby | improve documentation for add_lib_to_load_paths! | 9e081caee74e6d08035a8835899dcc566536a871 | <ide><path>railties/lib/rails/application.rb
<ide> def method_missing(*args, &block)
<ide>
<ide> delegate :middleware, :to => :config
<ide>
<del> def add_lib_to_load_paths!
<add> # This method is called just after an application inherits from Rails::Application,
<add> # allowing the developer to load cla... | 1 |
Go | Go | add static routes to the remote driver | 5c153bd0183cb8b48c5bc5ee18e33dd21435b168 | <ide><path>libnetwork/drivers/remote/driver.go
<ide> func (d *driver) Join(nid, eid types.UUID, sboxKey string, jinfo driverapi.JoinI
<ide> return errorWithRollback(fmt.Sprintf("failed to set gateway IPv6: %v", addr), d.Leave(nid, eid))
<ide> }
<ide> }
<add> if len(res.StaticRoutes) > 0 {
<add> routes, err := re... | 3 |
Mixed | Text | add check for writeable directory | 8cd6bd3fc3ee7b7eee887092a086cfb1e9c639db | <ide><path>errors/build-dir-not-writeable.md
<add># Build directory not writeable
<add>
<add>#### Why This Error Occurred
<add>
<add>The filesystem does not allow writing to the specified directory. A common cause for this error is starting a [custom server](https://github.com/zeit/next.js#custom-server-and-routing) in... | 3 |
Mixed | Ruby | add params.member? to mimic hash behavior | 34b6e8c0aee3fc3691e0ed8fb30de157f977e1c8 | <ide><path>actionpack/CHANGELOG.md
<add>* Add `params.member?` to mimic Hash behavior
<add>
<add> *Younes Serraj*
<add>
<ide> * `process_action.action_controller` notifications now include the following in their payloads:
<ide>
<ide> * `:request` - the `ActionDispatch::Request`
<ide><path>actionpack/lib/act... | 3 |
PHP | PHP | remove package tag | 92fdf77fdbd5ad0fb29edc959a9f66d05eea662c | <ide><path>lib/Cake/Core/App.php
<ide> <?php
<ide> /**
<del> * App class
<del> *
<ide> * PHP 5
<ide> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | 1 |
Ruby | Ruby | remove unecessary require | 5bda6e09156be417691a95baa2733e733500206b | <ide><path>activerecord/lib/active_record/transactions.rb
<del>require 'thread'
<del>
<ide> module ActiveRecord
<ide> # See ActiveRecord::Transactions::ClassMethods for documentation.
<ide> module Transactions | 1 |
Python | Python | add fk between xcom and task instance | 71c980a8ffb3563bf16d8a23a58de54c9e8cf556 | <ide><path>airflow/cli/commands/task_command.py
<ide> import os
<ide> import textwrap
<ide> from contextlib import contextmanager, redirect_stderr, redirect_stdout
<del>from typing import List, Optional
<add>from typing import List, Optional, Tuple, Union
<ide>
<ide> from pendulum.parsing.exceptions import ParserError... | 8 |
Javascript | Javascript | move the case 'latin1' | fc3105511793863ef3ab15ed779f89249bf20204 | <ide><path>lib/internal/util.js
<ide> exports.normalizeEncoding = function normalizeEncoding(enc) {
<ide> case 'utf-8':
<ide> return 'utf8';
<ide> case 'ucs2':
<del> case 'utf16le':
<ide> case 'ucs-2':
<add> case 'utf16le':
<ide> case 'utf-16le':
<ide> return 'utf16le';... | 1 |
Javascript | Javascript | add missing space in landing page [ci skip] | 9cee3f702a429c5a6f69cb134c1ee197653bc830 | <ide><path>website/src/widgets/landing.js
<ide> const Landing = ({ data }) => {
<ide> <H2>Benchmarks</H2>
<ide> <p>
<ide> In 2015, independent researchers from Emory University and Yahoo! Labs
<del> showed that spaCy offered the
<add... | 1 |
PHP | PHP | add additional entropy to postlink() | df8f5e8f84e1c37cc9d039c2971ef1bfa6ef3496 | <ide><path>lib/Cake/View/Helper/FormHelper.php
<ide> public function postLink($title, $url = null, $options = array(), $confirmMessag
<ide> unset($options['confirm']);
<ide> }
<ide>
<del> $formName = uniqid('post_');
<add> $formName = str_replace('.', '', uniqid('post_', true));
<ide> $formUrl = $this->url($u... | 1 |
Python | Python | add ssl support for smtp | 1d40d2b55663a3cadad446a146cef4ff588f7472 | <ide><path>airflow/configuration.py
<ide> class AirflowConfigException(Exception):
<ide> },
<ide> 'smtp': {
<ide> 'smtp_starttls': True,
<add> 'smtp_ssl': False,
<ide> 'smtp_user': '',
<ide> 'smtp_password': '',
<ide> },
<ide> class AirflowConfigException(Exception):
<ide> # s... | 2 |
Javascript | Javascript | use non-breaking space in ru_ru example | 45502ac0ec6bd6a1bb43cf0cfddaf3e6c1674fa1 | <ide><path>src/locale/ru-RU.js
<ide> import "locale";
<ide>
<ide> d3.locale.ru_RU = d3.locale({
<ide> decimal: ",",
<del> thousands: " ",
<add> thousands: "\xa0",
<ide> grouping: [3, 3],
<ide> currency: ["", " руб."],
<ide> dateTime: "%A, %e %B %Y г. %X",
<ide><path>test/locale/locale-test.js
<ide> suite.add... | 2 |
Python | Python | revise imdb conv1d example | 6899a9db16e04505b8a17770e7fb068a3c586347 | <ide><path>examples/imdb_conv.py
<ide> from keras.layers.convolutional import Convolution1D, MaxPooling1D
<ide> from keras.datasets import imdb
<ide>
<add>'''
<add> This example demonstrates the use of Convolution1D
<add> for text classification.
<add>
<add> Run on GPU: THEANO_FLAGS=mode=FAST_RUN,device=gpu,f... | 1 |
Python | Python | fix bart tests on gpu | 4bf5042240d33286460b83f3dbf9be77500faab3 | <ide><path>src/transformers/modeling_bart.py
<ide> def _resize_final_logits_bias(self, new_num_tokens: int, old_num_tokens: int) ->
<ide> if new_num_tokens <= old_num_tokens:
<ide> new_bias = self.final_logits_bias[:, :new_num_tokens]
<ide> else:
<del> extra_bias = torch.zeros((1,... | 2 |
Javascript | Javascript | apply the review comment to error message | 5f997d3169f1b0d270eea10da9d1cf98ddfc1bcc | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> loader.load( resolveURL( bufferDef.uri, options.path ), resolve, undefined, function () {
<ide>
<del> reject( new Error( 'THREE.GLTFLoader: Failed to load Buffer "' + bufferDef.uri + '".' ) );
<add> reject( new ... | 1 |
Ruby | Ruby | remove warnings from findermethods | 424b2019830ea4c08e86ba9ff9600aa23a54cb4f | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def forty_two!
<ide> # Person.offset(3).third_to_last # returns the third-to-last object from OFFSET 3
<ide> # Person.where(["user_name = :u", { u: user_name }]).third_to_last
<ide> def third_to_last
<del> find_nth -3
<add> ... | 1 |
Go | Go | remove symlinks on layer removal for overlay2 | e6f2e7646c813e8225b0bc16d3a0c13c76a9cd97 | <ide><path>daemon/graphdriver/overlay2/overlay.go
<ide> func (d *Driver) getLowerDirs(id string) ([]string, error) {
<ide>
<ide> // Remove cleans the directories that are created for this id.
<ide> func (d *Driver) Remove(id string) error {
<del> if err := os.RemoveAll(d.dir(id)); err != nil && !os.IsNotExist(err) {
<... | 1 |
Text | Text | use dom for link element tests | 50e6afcc144c5cc59ee5c673a720a5f4761b1dc4 | <ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md
<ide> assert.isAtLeast(title?.textContent?.length, 1);
<ide> Your code should have a `link` element.
<ide>
<ide> ```js
<del>assert(/<link/.test(code))
<add>assert.exists(document.... | 1 |
Ruby | Ruby | pass explicit sort to handle apfs | 795c7170e3e8135557b91e477e48cde98a714643 | <ide><path>Library/Homebrew/cmd/leaves.rb
<ide> module Homebrew
<ide> module_function
<ide>
<ide> def leaves
<del> installed = Formula.installed
<add> installed = Formula.installed.sort
<ide> deps_of_installed = Set.new
<ide>
<ide> installed.each do |f| | 1 |
Go | Go | add container join priority option to endpoint | a93d08aef58ba8f4e57c9e03304bee256b34c699 | <ide><path>libnetwork/controller.go
<ide> import (
<ide> "github.com/docker/libnetwork/datastore"
<ide> "github.com/docker/libnetwork/driverapi"
<ide> "github.com/docker/libnetwork/hostdiscovery"
<del> "github.com/docker/libnetwork/sandbox"
<ide> "github.com/docker/libnetwork/types"
<ide> "github.com/docker/swarm/... | 4 |
Python | Python | change custom message for clarity | 3d25dadbf36930439f6cb5bfa81166c0ddcf0b38 | <ide><path>tests/test_permissions.py
<ide> def has_permission(self, request, view):
<ide>
<ide>
<ide> class BasicPermWithDetail(permissions.BasePermission):
<del> message = 'Custom: You cannot post to this resource'
<add> message = 'Custom: You cannot access this resource'
<ide>
<ide> def has_permission(se... | 1 |
Mixed | Javascript | enable running tests under workers | 229dca3dee552f448dc9026237625ed58e8acfdc | <ide><path>test/async-hooks/init-hooks.js
<ide> 'use strict';
<ide> // Flags: --expose-gc
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide> const async_hooks = require('async_hooks');
<ide> const util = require('util');
<ide> class ActivityCollecto... | 84 |
Ruby | Ruby | add optional junit support | b1f00c57573bcb852f97cdbd863ba664635e9ab2 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> # --keep-logs: Write and keep log files under ./brewbot/
<ide> # --cleanup: Clean the Homebrew directory. Very dangerous. Use with care.
<ide> # --skip-setup: Don't check the local system is setup correctly.
<add># --junit: Generate a JUnit XM... | 1 |
Ruby | Ruby | use transform_values in a few more places | 7af59e16a255da5aee2863af0eefaa9f0cfd857d | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def as_json(options = nil)
<ide> # person.errors.to_hash # => {:name=>["cannot be nil"]}
<ide> # person.errors.to_hash(true) # => {:name=>["name cannot be nil"]}
<ide> def to_hash(full_messages = false)
<del> hash = {}
<ide> messag... | 2 |
Text | Text | make some translation improvements | 6bfabcb748f464666ea7f366faf9f2431b1e865c | <ide><path>guide/russian/swift/index.md
<ide> ---
<ide> title: Swift
<del>localeTitle: стриж
<add>localeTitle: Swift
<ide> ---
<ide> 
<ide>
<del># Что такое Свифт?
<add># Что такое Swift?
<ide>
<ide> Swift... | 1 |
Python | Python | change paramsdict to a mutablemapping subclass | 4ef1f9a0461c44e6de563386abfb6f8c2314dbb1 | <ide><path>airflow/models/param.py
<ide> # KIND, either express or implied. See the License for the
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<del>from typing import Any, Dict, Optional
<add>from typing import Any, Dict, ItemsView, MutableMapping, Optional, ValuesView
<... | 4 |
Javascript | Javascript | add compat trailers, adjust multi-headers | 641646463ddac7f306730a216675428e2bbe4dbf | <ide><path>lib/internal/http2/compat.js
<ide> const kStream = Symbol('stream');
<ide> const kRequest = Symbol('request');
<ide> const kResponse = Symbol('response');
<ide> const kHeaders = Symbol('headers');
<add>const kRawHeaders = Symbol('rawHeaders');
<ide> const kTrailers = Symbol('trailers');
<add>const kRawTraile... | 10 |
Text | Text | clarify model used in djangomodelpermissions | dca4d7c027be123f4634ed458cf2af4ef055c432 | <ide><path>docs/api-guide/permissions.md
<ide> This permission is suitable if you want to your API to allow read permissions to
<ide>
<ide> ## DjangoModelPermissions
<ide>
<del>This permission class ties into Django's standard `django.contrib.auth` [model permissions][contribauth]. This permission must only be appli... | 1 |
Text | Text | fix broken links in contributing.md | 850f7841f7e132460be44b9a9c5e5581368c296b | <ide><path>CONTRIBUTING.md
<ide>
<ide> Want to hack on Docker? Awesome! We have a contributor's guide that explains
<ide> [setting up a Docker development environment and the contribution
<del>process](https://docs.docker.com/project/who-written-for/).
<add>process](https://docs.docker.com/opensource/project/who-wri... | 1 |
Ruby | Ruby | fix regression introduced in pull request 8812 | c692774bbae528d83925d04e1c3cebb73e3f8ae5 | <ide><path>actionpack/lib/action_dispatch/middleware/static.rb
<ide> class FileHandler
<ide> def initialize(root, cache_control)
<ide> @root = root.chomp('/')
<ide> @compiled_root = /^#{Regexp.escape(root)}/
<del> @file_server = ::Rack::File.new(@root, 'Cache-Control' => cache_control)
<... | 1 |
PHP | PHP | fix macros method | 41e066e2eec5e496b48abfa94c7d50e681c9d0a7 | <ide><path>laravel/form.php
<ide> protected static function id($name, $attributes)
<ide> */
<ide> public static function __callStatic($method, $parameters)
<ide> {
<del> if (isset(static::$inputs[$method]))
<add> if (isset(static::$macros[$method]))
<ide> {
<del> return call_user_func_array(sta... | 1 |
Go | Go | remove some intermediate vars, use struct-literals | 0eb7b49a17088f7495a3353510b4f744a864af47 | <ide><path>daemon/inspect.go
<ide> func (daemon *Daemon) containerInspect120(name string) (*v1p20.ContainerJSON, er
<ide> return nil, err
<ide> }
<ide>
<del> mountPoints := ctr.GetMountPoints()
<del> config := &v1p20.ContainerConfig{
<del> Config: ctr.Config,
<del> MacAddress: ctr.Config.MacAddress,... | 2 |
Ruby | Ruby | enforce https on *.bintray.com urls | f6946cd9f644cb9686bf5541e11e463c0e8195af | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_urls
<ide> problem "Fossies urls should be https://, not http (url is #{p})."
<ide> when %r[^http://mirrors\.kernel\.org/]
<ide> problem "mirrors.kernel urls should be https://, not http (url is #{p})."
<add> when %r[^http://[^/]*\.bint... | 1 |
Python | Python | update error handling and docstring | bbb94b37c61d090e307da16519390839513dfc52 | <ide><path>spacy/errors.py
<ide> class Errors:
<ide> "issue tracker: http://github.com/explosion/spaCy/issues")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<del> E890 = ("Can not add the alias '{alias}' to the Knowledge base. "
<add> E886 = ("Can't replace {name} -> {tok2v... | 2 |
Python | Python | remove unused conftest | 3f3a46722c5ef89fe1964012b0abe04be8880e3b | <ide><path>spacy/tests/spans/conftest.py
<del>import pytest
<del>from spacy.en import English
<del>import os
<del>
<del>
<del>@pytest.fixture(scope="session")
<del>def en_nlp():
<del> return English() | 1 |
Ruby | Ruby | fix my typo | 694c9ed6c383f9b0d7e510f9e9b0a5491636e032 | <ide><path>activerecord/lib/active_record/nested_attributes.rb
<ide> class TooManyRecords < ActiveRecordError
<ide> # { title: 'Bar' } ])
<ide> #
<ide> # The keys of the hash which is the value for +:posts_attributes+ are
<del> # ignores in this case.
<add> # ignore... | 1 |
Javascript | Javascript | use tabs instead of spaces | f7528916a29f5d8cd3d19285a67cd84ea9dcfe91 | <ide><path>test/unit/manipulation.js
<ide> test( "insertAfter, insertBefore, etc do not work when destination is original e
<ide> });
<ide>
<ide> test( "Index for function argument should be received (#13094)", 2, function() {
<del> var i = 0;
<add> var i = 0;
<ide>
<ide> jQuery("<div/><div/>").before(function( i... | 1 |
PHP | PHP | add name alias to routeregistrar | f353d7586430ef0f06c8d4aeac100da63f510b76 | <ide><path>src/Illuminate/Routing/RouteRegistrar.php
<ide> class RouteRegistrar
<ide> 'get', 'post', 'put', 'patch', 'delete', 'options', 'any',
<ide> ];
<ide>
<add> /**
<add> * The attributes that are aliased.
<add> *
<add> * @var array
<add> */
<add> protected $aliases = [
<add> ... | 2 |
Python | Python | finalize optimizer fixes | 6fc8660a5148c1693e2c02874ffdb6a7d8f1a2c8 | <ide><path>keras/optimizers.py
<ide> def clip_norm(g, c, n):
<ide> g = T.switch(T.ge(n, c), g*c/n, g)
<ide> return g
<ide>
<add>def kl_divergence(p, p_hat):
<add> return p_hat - p + p*T.log(p/p_hat)
<add>
<ide> class Optimizer(object):
<ide> def get_updates(self, params, grads):
<ide> raise ... | 1 |
Ruby | Ruby | increase timeout for integration tests | 8298f95677c939f42299ba4c42d1bd89a38c6179 | <ide><path>Library/Homebrew/test/spec_helper.rb
<ide> if ENV["CI"]
<ide> config.verbose_retry = true
<ide> config.display_try_failure_messages = true
<del> config.default_retry_count = 2
<add>
<add> config.around(:each, :integration_test) do |example|
<add> example.metadata[:timeout] ||= 120
<add> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.