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
Text
Text
add grafgiti to examples
9ecf8870c7cc123bd8cfb534ea9212ee4eae7e23
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> <ide> * [Official Examples](Examples.md) — A few official examples covering different Redux techniques <ide> * [SoundRedux](https://github.com/andrewngu/sound-redux) — A SoundCloud clie...
1
PHP
PHP
remove empty files for test and plugin bakes
bf4c69a97a31ad081102f412abaf35c5b74fe412
<ide><path>src/Shell/Task/PluginTask.php <ide> public function bake($plugin) { <ide> $out .= "class AppController extends BaseController {\n\n"; <ide> $out .= "}\n"; <ide> $this->createFile($this->path . $plugin . DS . $classBase . DS . 'Controller' . DS . $controllerFileName, $out); <add> $emptyFile = $this...
2
Python
Python
add tests for it
31b61eeda5373d53b8c3fb2dbbadb3a548861fe7
<ide><path>libcloud/test/storage/test_cloudfiles.py <ide> from libcloud.test import MockHttp # pylint: disable-msg=E0611 <ide> from libcloud.test import unittest, generate_random_data, make_response <ide> from libcloud.test.file_fixtures import StorageFileFixtures # pylint: disable-msg=E0611 <add>from libcloud.test.s...
1
PHP
PHP
avoid call to method alias
be140fcc63fb2c7373e8c19269125b8f711a127b
<ide><path>src/Illuminate/Cache/Repository.php <ide> public function put($key, $value, $ttl = null) <ide> $seconds = $this->getSeconds($ttl); <ide> <ide> if ($seconds <= 0) { <del> return $this->delete($key); <add> return $this->forget($key); <ide> } <ide> <ide> $...
1
Java
Java
use correct return type in javadoc documentation
913e80046194b2f679e4213335c7a17cfa74c1e0
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public final Maybe<T> elementAt(long index) { <ide> } <ide> <ide> /** <del> * Returns a Flowable that emits the item found at a specified index in a sequence of emissions from <add> * Returns a Single that emits the item found at a specified ind...
2
Javascript
Javascript
fix a memory leak in reactcomponenttreedevtool
3779a5d18c3e624bd12846592469e9c69a8c19c9
<ide><path>src/isomorphic/ReactDebugTool.js <ide> var currentTimerDebugID = null; <ide> var currentTimerStartTime = null; <ide> var currentTimerType = null; <ide> <add>function clearHistory() { <add> ReactComponentTreeDevtool.purgeUnmountedComponents(); <add> ReactNativeOperationHistoryDevtool.clearHistory(); <add>}...
9
Python
Python
improve error messages in dense_attention.py
0fadd903ecc41214a7fcdc92cd944351e8c2e07d
<ide><path>keras/layers/dense_attention.py <ide> def _validate_call_args(self, inputs, mask): <ide> class_name = self.__class__.__name__ <ide> if not isinstance(inputs, list): <ide> raise ValueError( <del> '{} layer must be called on a list of inputs, namely [query, value] ' <del> 'or [q...
1
Ruby
Ruby
fix version update task to deal with .beta1.1
23c36725a0fa097cbfde0a3661fa21e9470d0a48
<ide><path>tasks/release.rb <ide> file = Dir[glob].first <ide> ruby = File.read(file) <ide> <del> major, minor, tiny, pre = version.split('.') <add> major, minor, tiny, pre = version.split('.', 4) <ide> pre = pre ? pre.inspect : "nil" <ide> <ide> ruby.gsub!(/^(\s*)MAJOR(\s*)= .*?$/, ...
1
Ruby
Ruby
fix syntax of routing tests so they actually run
aa31a255c831808b42c28978a36ffa42ff03e68e
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def test_constraints_are_merged_from_scope <ide> assert_equal 'Not Found', @response.body <ide> assert_raises(ActionController::RoutingError){ movie_trailer_path(:movie_id => '00001') } <ide> end <add> end <ide> <del> def test_only_option_sh...
1
Javascript
Javascript
remove platform blacklists
23d84c8df894bf7daba1ece53cc68cddb5f0c489
<ide><path>local-cli/bundle/buildBundle.js <ide> function buildBundle(args, config, output = outputBundle, packagerInstance) { <ide> projectRoots: config.getProjectRoots(), <ide> assetExts: defaultAssetExts.concat(assetExts), <ide> assetRoots: config.getAssetRoots(), <del> blacklistRE: config.get...
5
Ruby
Ruby
add more helper methods
5d1f4dd531f9e88c762f2f65e73e67511798c62d
<ide><path>Library/Homebrew/migrator.rb <ide> def initialize(formula, tap) <ide> # path to newname keg that will be linked if old_linked_keg isn't nil <ide> attr_reader :new_linked_keg_record <ide> <del> def initialize(formula) <add> def self.needs_migration?(formula) <add> oldname = formula.oldname <add> ...
1
Ruby
Ruby
fix example in thread_mattr_accessor documentation
b1589f671224adbb30eb54799483218376752411
<ide><path>activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb <ide> def #{sym}=(obj) <ide> # Or pass <tt>instance_accessor: false</tt>, to opt out both instance methods. <ide> # <ide> # class Current <del> # mattr_accessor :user, instance_accessor: false <add> # thread_...
1
Mixed
Javascript
add missing deprecation code
a67b73b9aee64d74dba52029b57c7d2b97b9e149
<ide><path>doc/api/deprecations.md <ide> Type: Documentation-only <ide> Prefer [`response.socket`][] over [`response.connection`] and <ide> [`request.socket`][] over [`request.connection`]. <ide> <del><a id="DEP0XXX"></a> <del>### DEP0XXX: process._tickCallback <add><a id="DEP0134"></a> <add>### DEP0134: process._tick...
2
Text
Text
add initial contributing.md
ed824469c15301584f479c17471f121ec69b92e8
<ide><path>CONTRIBUTING.md <add># :rotating_light: Contributing to Atom :rotating_light: <add> <add>## Issues <add> * Include screenshots and animated GIFs whenever possible, they are immensely <add> helpful <add> * Include the behavior you expected to happen and other places you've seen <add> that behavior suc...
1
Text
Text
simplify collaborator_guide.md instructions
a72bfb94ddb27b1c8cff229702f32df46233506c
<ide><path>COLLABORATOR_GUIDE.md <ide> The TSC should serve as the final arbiter where required. <ide> one](https://github.com/nodejs/node/commit/b636ba8186) if unsure exactly how <ide> to format your commit messages. <ide> <del>Additionally: <add>Check PRs from new contributors to make sure the person's name an...
1
Java
Java
add reset() to mockrestserviceserver
4e8754ea87c1f52c589049eb123cc5e0e897639f
<ide><path>spring-test/src/main/java/org/springframework/test/web/client/AbstractRequestExpectationManager.java <ide> protected AssertionError createUnexpectedRequestError(ClientHttpRequest request) <ide> return new AssertionError(message + getRequestDetails()); <ide> } <ide> <add> @Override <add> public void reset...
6
Java
Java
add tests for stringutils split() method
f1827cb1f94b365f31531002a6bf1aa43c51fe9e
<ide><path>spring-core/src/test/java/org/springframework/util/StringUtilsTests.java <ide> void invalidLocaleWithLanguageTag() { <ide> assertThat(StringUtils.parseLocale("")).isNull(); <ide> } <ide> <add> @Test <add> void split() { <add> assertThat(StringUtils.split("Hello, world", ",")).isEqualTo(new String[]{"Hel...
1
Javascript
Javascript
fix ping callback
bb546ac001356da4dffd762c3f847660210f3064
<ide><path>lib/internal/http2/core.js <ide> const proxySocketHandler = { <ide> // data received on the PING acknowlegement. <ide> function pingCallback(cb) { <ide> return function pingCallback(ack, duration, payload) { <del> const err = ack ? null : new ERR_HTTP2_PING_CANCEL(); <del> cb(err, duration, payload);...
1
Javascript
Javascript
allow zero when parsing http req/s
b888bfe81d39a0b528ca371c7fa1376111f9e667
<ide><path>benchmark/_http-benchmarkers.js <ide> WrkBenchmarker.prototype.create = function(options) { <ide> WrkBenchmarker.prototype.processResults = function(output) { <ide> const match = output.match(this.regexp); <ide> const result = match && +match[1]; <del> if (!result) { <add> if (!isFinite(result)) { <ide...
1
Javascript
Javascript
remove string argument to strictequal()
5977f28ebf1855580a2eef46ec609acc6ef5ca07
<ide><path>test/sequential/test-crypto-timing-safe-equal.js <ide> if (!common.hasCrypto) <ide> const assert = require('assert'); <ide> const crypto = require('crypto'); <ide> <add>// 'should consider equal strings to be equal' <ide> assert.strictEqual( <ide> crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('fo...
1
Javascript
Javascript
preserve process.env after test-init exec
7592615aaa1eb7a18dca1b9ab70865bbfd99a80d
<ide><path>test/simple/test-init.js <ide> // being in the test folder <ide> process.chdir(__dirname); <ide> <del> child.exec(process.execPath + ' test-init', {env: {'TEST_INIT': 1}}, <add> // slow but simple <add> var envCopy = JSON.parse(JSON.stringify(process.env)); <add> envCopy.TEST_INIT = 1; <...
1
Text
Text
fix broken link
927a11976012975c8d1c7beb1fbd388cc684c280
<ide><path>docs/faq/Reducers.md <ide> <ide> ## Table of Contents <ide> <del>- [How do I share state between two reducers? Do I have to use combineReducers?](#reducers-share-state) <del>- [Do I have to use the switch statement to handle actions?](#reducers-use-switch) <add>- [How do I share state between two reducer...
1
Ruby
Ruby
remove unnecessary rescue-all exception handling
471502bc06e8dde06618b30885d21d10c53528e5
<ide><path>Library/Contributions/cmd/brew-ls-taps.rb <ide> require 'vendor/multi_json' <ide> <ide> GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f| <del> begin <del> MultiJson.decode(f.read)["repositories"].each do |repo| <del> if repo['name'] =~ /^homebrew-(\S+)$/ <del> puts ta...
3
Ruby
Ruby
remove unused modules from strongparameters
93e0f975e9dbf2bc766b5e58fcf792b577bacd1f
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> require "active_support/core_ext/array/wrap" <ide> require "active_support/core_ext/string/filters" <ide> require "active_support/core_ext/object/to_query" <del>require "active_support/rescuable" <ide> require "action_dispatch/http/upload" <id...
1
Go
Go
return proper error types on sandbox creation
2e88dfa4062e777c9dec28cfbb8258250dbba3eb
<ide><path>libnetwork/controller.go <ide> func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s <ide> // If not a stub, then we already have a complete sandbox. <ide> if !s.isStub { <ide> c.Unlock() <del> return nil, types.BadRequestErrorf("container %s is already present: %v", c...
1
Javascript
Javascript
add spec for blobmodule
342c81d75448e760ae32d62ebd9004bf6eeeff46
<ide><path>Libraries/Blob/BlobManager.js <ide> <ide> const Blob = require('./Blob'); <ide> const BlobRegistry = require('./BlobRegistry'); <del>const {BlobModule} = require('../BatchedBridge/NativeModules'); <add>import NativeBlobModule from './NativeBlobModule'; <add>import invariant from 'invariant'; <ide> <ide> im...
4
Ruby
Ruby
create custom matchers for “valid symlink”
6cd36428505b1b3548b1e15fe7e0a850b2e2aeaa
<ide><path>Library/Homebrew/cask/spec/cask/artifact/binary_spec.rb <ide> shutup do <ide> Hbc::Artifact::Binary.new(cask).install_phase <ide> end <del> expect(FileHelper.valid_alias?(expected_path)).to be true <add> expect(expected_path).to be_a_valid_symlink <ide> end <ide> <ide> it "avoids clo...
6
Javascript
Javascript
use fresh maps when not available
5601c5618599d035340567a04221c0c4f47c7dce
<ide><path>lib/node/NodeWatchFileSystem.js <ide> class NodeWatchFileSystem { <ide> getFileTimeInfoEntries: () => { <ide> if (fileMap) return fileMap; <ide> if (this.watcher) { <del> this.watcher.getTimeInfoEntries(fileMap, directoryMap); <add> this.watcher.getTimeInfoEntries( <add> (fileMap = ne...
1
Javascript
Javascript
fix regression on randomfillsync
4cbcfaee9c11f242107f21b01c1a835f9c36ac86
<ide><path>lib/internal/crypto/random.js <ide> function randomFillSync(buf, offset = 0, size) { <ide> <ide> const job = new RandomBytesJob( <ide> kCryptoJobSync, <del> buf.buffer || buf, <add> buf, <ide> offset, <ide> size); <ide> <ide><path>test/parallel/test-crypto-randomfillsync-regression.js <...
2
Python
Python
upgrade version number of trunk and add 'math'
2aba0e2b842867f7d5c5bb48be1b15e709903828
<ide><path>numpy/lib/__init__.py <ide> from utils import * <ide> from arraysetops import * <ide> <del>__all__ = [] <add>__all__ = ['math'] <ide> __all__ += type_check.__all__ <ide> __all__ += index_tricks.__all__ <ide> __all__ += function_base.__all__ <ide><path>numpy/version.py <del>version='0.9.5' <add>version='0.9....
2
Ruby
Ruby
remove unused parser option required_for
1d5c668110b81e417382ccb78dc09e19c2863cc5
<ide><path>Library/Homebrew/cli/parser.rb <ide> def initialize(&block) <ide> generate_banner <ide> end <ide> <del> def switch(*names, description: nil, replacement: nil, env: nil, required_for: nil, depends_on: nil, <add> def switch(*names, description: nil, replacement: nil, env: nil, depends_...
2
Go
Go
fix goroutine leak on logs -f with no output
0c84604f5458bc38b793e5bcdf86624eef3e3184
<ide><path>api/server/server.go <ide> func (s *Server) getContainersLogs(version version.Version, w http.ResponseWrite <ide> since = time.Unix(s, 0) <ide> } <ide> <add> var closeNotifier <-chan bool <add> if notifier, ok := w.(http.CloseNotifier); ok { <add> closeNotifier = notifier.CloseNotify() <add> } <add> <id...
3
Text
Text
update main branch name in onboarding.md
2af48c0ef84bb42bd62eadccf2b19c8b2588b9b5
<ide><path>onboarding.md <ide> onboarding session. <ide> * Add the canonical nodejs repository as `upstream` remote: <ide> * `git remote add upstream git@github.com:nodejs/node.git` <ide> * To update from `upstream`: <del> * `git checkout master` <add> * `git checkout main` <ide> * `git fetch upstream...
1
PHP
PHP
unskip tests that now pass
c67eee98c8bf15f05eb19a368023ba24592e58bc
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testDateTimeRounding() { <ide> * @return void <ide> */ <ide> public function testDatetimeWithDefault() { <del> $this->markTestIncomplete('Need to revisit soon.'); <ide> $result = $this->Form->dateTime('Contact.updated', array('value' =...
1
Javascript
Javascript
fix version number processing
ed4cd6c3c6a30ddfead1cbcf48f2ac6adf60a802
<ide><path>lib/grunt/utils.js <ide> module.exports = { <ide> .replace(/"NG_VERSION_FULL"/g, NG_VERSION.full) <ide> .replace(/"NG_VERSION_MAJOR"/, NG_VERSION.major) <ide> .replace(/"NG_VERSION_MINOR"/, NG_VERSION.minor) <del> .replace(/"NG_VERSION_DOT"/, NG_VERSION.dot) <add> .replace(/"NG_VE...
1
Go
Go
reduce testruncommandwithtimeoutkilled flakiness
797f630d2e3c9180848b1adb7fd6fa879f284165
<ide><path>pkg/integration/cmd/command_test.go <ide> func TestRunCommandWithTimeoutKilled(t *testing.T) { <ide> t.Skip("Needs porting to Windows") <ide> } <ide> <del> command := []string{"sh", "-c", "while true ; do echo 1 ; sleep .1 ; done"} <del> result := RunCmd(Cmd{Command: command, Timeout: 500 * time.Millisec...
1
PHP
PHP
remove duplicate call to prepareresponse
bb83eeb94759803685813daf7436b3013f6b767d
<ide><path>src/Illuminate/Routing/Router.php <ide> public function dispatch(Request $request) <ide> { <ide> $this->currentRequest = $request; <ide> <del> $response = $this->dispatchToRoute($request); <del> <del> return $this->prepareResponse($request, $response); <add> return $this->di...
1
Go
Go
allow .dockerignore to ignore everything
82ea6ed2bc33ac1ec2ad2bd8d4a098031dd77095
<ide><path>api/client/build.go <ide> func (cli *DockerCli) CmdBuild(args ...string) error { <ide> } <ide> <ide> if err := utils.ValidateContextDirectory(root, excludes); err != nil { <del> return fmt.Errorf("Error checking context is accessible: '%s'. Please check permissions and try again.", err) <add> return...
3
PHP
PHP
add blade cache command
9fd1273ad79a46bb3aa006129109c6bc72766e4b
<ide><path>src/Illuminate/Foundation/Console/BladeCacheCommand.php <add><?php <add> <add>namespace Illuminate\Foundation\Console; <add> <add>use Illuminate\Console\Command; <add>use Illuminate\Support\Collection; <add>use Illuminate\Support\Facades\View; <add>use Symfony\Component\Finder\Finder; <add>use Symfony\Compon...
2
Python
Python
fix syntax error
30e35d9666f03cbe27c80fc6adc3e1c571aa9105
<ide><path>spacy/util.py <ide> def get_model_meta(path): <ide> meta = read_json(meta_path) <ide> for setting in ['lang', 'name', 'version']: <ide> if setting not in meta or not meta[setting]: <del> raise ValueError('No valid '%s' setting found in model meta.json' % setting) <add> r...
1
PHP
PHP
catch throwable in timezone validation
c2e4b5c000961800650f8ef6b40160ff664261f5
<ide><path>src/Illuminate/Validation/Validator.php <ide> use DateTime; <ide> use Countable; <ide> use Exception; <add>use Throwable; <ide> use DateTimeZone; <ide> use RuntimeException; <ide> use DateTimeInterface; <ide> protected function validateTimezone($attribute, $value) <ide> new DateTimeZone($value); ...
2
Text
Text
add cli flag to docs for selinux support
64d0f7e39b395a3fc52f441a53f188a19bd53cf3
<ide><path>docs/sources/reference/commandline/cli.md <ide> expect an integer, and they can only be specified once. <ide> -d, --daemon=false: Enable daemon mode <ide> --dns=[]: Force docker to use specific DNS servers <ide> --dns-search=[]: Force Docker to use specific DNS search domains <add> --e...
1
Python
Python
remove trailing whitespace from the lines
b20c2857c8e6eb855a64bcec923cb1b27c2c31a2
<ide><path>contrib/generate_contributor_list.py <ide> def compare(item1, item2): <ide> else: <ide> line = '* %(name)s' % {'name': name} <ide> <del> result.append(line) <add> result.append(line.strip()) <ide> <ide> result = '\n'.join(result) <ide> return result
1
PHP
PHP
add model.initialize event
c71f919819e69e19aaf2653910686baaf57c1371
<ide><path>src/ORM/Table.php <ide> public function __construct(array $config = []) { <ide> <ide> $this->initialize($config); <ide> $this->_eventManager->attach($this); <add> $this->dispatchEvent('Model.initialize'); <ide> } <ide> <ide> /** <ide><path>tests/TestCase/ORM/TableTest.php <ide> use Cake\Database\Expr...
2
Text
Text
fix example of crypto.generatekeysync
8037d1749afe7736c4a1c691e8fb43f4791c8e7a
<ide><path>doc/api/crypto.md <ide> const { <ide> generateKeySync <ide> } = await import('crypto'); <ide> <del>const key = generateKeySync('hmac', 64); <add>const key = generateKeySync('hmac', { length: 64 }); <ide> console.log(key.export().toString('hex')); // e89..........41e <ide> ``` <ide> <ide> const { <ide> ...
1
Python
Python
move abbreviations below other exceptions
a23504fe07c5d3d55b247e4aa0b185dd0a338ee7
<ide><path>spacy/en/tokenizer_exceptions.py <ide> } <ide> <ide> <del># Other exceptions <del> <del>OTHER = { <del> " ": [ <del> {ORTH: " ", TAG: "SP"} <del> ], <del> <del> "\u00a0": [ <del> {ORTH: "\u00a0", TAG: "SP", LEMMA: " "} <del> ], <del> <del> "and/or": [ <del> {ORTH: "and/...
1
Python
Python
add note about compatibility
085f2559f01b5b9a668fa624e5d8be19ca16aeaa
<ide><path>libcloud/compute/drivers/opennebula.py <ide> # See the License for the specific language governing permissions and <ide> # limitations under the License. <ide> """ <del>OpenNebula driver <add>OpenNebula driver. Compatible with OpenNebula 1.4 <ide> """ <ide> <ide> from base64 import b64encode
1
Python
Python
use a tuple when defining the ms_win64 macro
a7bf18812f143bc6926c1c21fcda25ef4ea1d26e
<ide><path>numpy/distutils/command/build_ext.py <ide> def build_extension(self, ext): <ide> # Py_ModuleInit4_64, etc... So we add it here <ide> if self.compiler.compiler_type == 'mingw32' and \ <ide> get_build_architecture() == 'AMD64': <del> macros.append('MS_WIN64') <add> ...
1
Text
Text
fix broken link in inception readme
2f09f78b8db9e13942acec3d061ef9c80ad59627
<ide><path>inception/README.md <ide> your custom data set. Please see the associated options and assumptions behind <ide> this script by reading the comments section of [`build_image_data.py`] <ide> (inception/data/build_image_data.py). Also, if your custom data has a different <ide> number of examples or classes, you...
1
Javascript
Javascript
add util inspect null getter test
1dbf2765bc30745dd7e221e96e88f010526d13a4
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual( <ide> const value = {}; <ide> value.a = value; <ide> assert.strictEqual(util.inspect(value), '<ref *1> { a: [Circular *1] }'); <add> const getterFn = { <add> get one() { <add> return null; <add> } <add> }; <add> assert.strictEqu...
1
Go
Go
fix loading of containerized plugins
d85b9f858050dbfb2dde3d68517952958b8e38ee
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) Register(container *container.Container) error { <ide> } <ide> } <ide> <del> if err := daemon.prepareMountPoints(container); err != nil { <del> return err <del> } <del> <ide> return nil <ide> } <ide> <ide> func (daemon *Daemon) restore() error { <ide> } <i...
2
Python
Python
harmonize max and min docstrings with each other
f40e9d53548a5033d1fd2c68c8257dddea14e9f1
<ide><path>numpy/core/code_generators/ufunc_docstrings.py <ide> def add_newdoc(place, name, doc): <ide> """ <ide> Element-wise maximum of array elements. <ide> <del> Compare two arrays and returns a new array containing <del> the element-wise maxima. If one of the elements being <del> compared is a na...
3
Ruby
Ruby
use tt in doc for activerecord [ci skip]
a2f2d2617b144b616700af4fe0f4c184d15cee66
<ide><path>activemodel/lib/active_model/callbacks.rb <ide> def self.extended(base) #:nodoc: <ide> # end <ide> # end <ide> # <del> # NOTE: +method_name+ passed to `define_model_callbacks` must not end with <del> # `!`, `?` or `=`. <add> # NOTE: +method_name+ passed to define_model_callbacks mu...
7
Go
Go
fix golint errors in docker/api/client
58065d0dd9adec4b2f397a453652cc8cc7237a17
<ide><path>api/client/cli.go <ide> func (cli *DockerCli) Cmd(args ...string) error { <ide> return cli.CmdHelp() <ide> } <ide> <add>// Subcmd is a subcommand of the main "docker" command. <add>// A subcommand represents an action that can be performed <add>// from the Docker command line client. <add>// <add>// To see...
5
Java
Java
fix race condition for asynchronousfilechannel
d5da823482134cc447a7023ad223a661cc50e348
<ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java <ide> public void failed(Throwable exc, AsynchronousFileChannel channel) { <ide> <ide> private final AtomicBoolean completed = new AtomicBoolean(); <ide> <del> private long position; <add> private final AtomicLong positio...
2
Javascript
Javascript
fix reference to wrong variable
154a8cf32869cb9fabbb0ef2b68c77a5c17954e9
<ide><path>scripts/rollup/build-all-release-channels.js <ide> function updatePackageVersions( <ide> <ide> if (packageInfo.dependencies) { <ide> for (const dep of Object.keys(packageInfo.dependencies)) { <del> if (modulesDir.includes(dep)) { <add> if (versionsMap.has(dep)) { <ide> ...
1
Text
Text
add a badge with latest npm package published
b157088e717a2a47f691c1d6322b735bd8e81dd7
<ide><path>README.md <del># [React](https://facebook.github.io/react) [![Build Status](https://travis-ci.org/facebook/react.svg?branch=master)](https://travis-ci.org/facebook/react) <add># [React](https://facebook.github.io/react) [![Build Status](https://travis-ci.org/facebook/react.svg?branch=master)](https://travis-...
1
Go
Go
replace multiline with empty string not space
1e723bc95a61fb6c46af82557c128d1e95a33a99
<ide><path>buildfile.go <ide> func (b *buildFile) Build(context io.Reader) (string, error) { <ide> return "", err <ide> } <ide> dockerfile := string(fileBytes) <del> dockerfile = lineContinuation.ReplaceAllString(dockerfile, " ") <add> dockerfile = lineContinuation.ReplaceAllString(dockerfile, "") <ide> stepN := 0...
1
Javascript
Javascript
optimize outline rendering of mmd
501f2da27291d3244e184bc837953c03e18bf111
<ide><path>examples/js/loaders/MMDLoader.js <ide> THREE.MMDHelper.prototype = { <ide> <ide> add: function ( mesh ) { <ide> <add> if ( ! ( mesh instanceof THREE.SkinnedMesh ) ) { <add> <add> throw new Error( 'THREE.MMDHelper.add() accepts only THREE.SkinnedMesh instance.' ); <add> <add> } <add> <ide> mesh.mixer...
1
Ruby
Ruby
fix typo in postgres requirement
3bdce1a7fa12ec9e779edb429971249fefe9a501
<ide><path>Library/Homebrew/requirements.rb <ide> def message; <<-EOS.undent <ide> end <ide> end <ide> <del>class PostgresInstalled < Requirement <add>class PostgresqlInstalled < Requirement <ide> def fatal?; true; end <ide> <ide> def satisfied?
1
PHP
PHP
fix path that doesn't exist
855bb1b07e1d0cd8e88115849baf4c5c02136a95
<ide><path>src/Illuminate/Foundation/Providers/PublisherServiceProvider.php <ide> protected function registerViewPublisher() <ide> <ide> $this->app->bindShared('view.publisher', function($app) <ide> { <del> $viewPath = $app['path.views']; <add> $viewPath = $app['path'].'/resources/views';; <ide> <ide> // O...
1
Go
Go
remove a test that was moved to docker/cli
1a03bd396b21f0c291499e1c5bd185d23e20ffc1
<ide><path>integration-cli/docker_cli_cp_from_container_test.go <ide> func (s *DockerSuite) TestCpFromErrSrcNotDir(c *check.C) { <ide> c.Assert(isCpNotDir(err), checker.True, check.Commentf("expected IsNotDir error, but got %T: %s", err, err)) <ide> } <ide> <del>// Test for error when SRC is a valid file or directory...
1
Mixed
Ruby
add prepend option to protect_from_forgery
0074bbb07bb9c0a2e6a134a4230bf3afac8a71b1
<ide><path>actionpack/CHANGELOG.md <add>* Allow you to pass `prepend: false` to protect_from_forgery to have the <add> verification callback appended instead of prepended to the chain. <add> This allows you to let the verification step depend on prior callbacks. <add> Example: <add> <add> class Appli...
3
PHP
PHP
update reserved names in generatorcommand
6a05d150eb828c852960517f9d15d99ea42f0f41
<ide><path>src/Illuminate/Console/GeneratorCommand.php <ide> abstract class GeneratorCommand extends Command <ide> 'endif', <ide> 'endswitch', <ide> 'endwhile', <add> 'enum', <ide> 'eval', <ide> 'exit', <ide> 'extends', <ide> abstract class GeneratorCommand extends...
1
Javascript
Javascript
improve test case
70da0dd0432299c674e603fd1efd4d321ad1fa60
<ide><path>test/configCases/trusted-types/devtool-eval/index.js <del>it("should pass TrustedScript to eval", function() { <del> class TrustedScript { <del> constructor(script) { <del> this._script = script; <del> } <del> }; <del> <add>it("should pass TrustedScript to eval", function () { <ide> var policy = __webpa...
1
Text
Text
add issue templates
7c524d631e4c0fd0531d02d6a155fc95a3e90810
<ide><path>.github/ISSUE_TEMPLATE/bug-report.md <add>--- <add>name: "\U0001F41B Bug Report" <add>about: Submit a bug report to help us improve PyTorch Transformers <add>--- <add> <add>## 🐛 Bug <add> <add><!-- A clear and concise description of what the bug is. --> <add> <add>## To Reproduce <add> <add>Steps to reprodu...
4
Java
Java
assert context uniqueness against merged config
7658d856cac027ae367f04833bee6c43c62b5534
<ide><path>spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java <ide> private static void convertContextConfigToConfigAttributesAndAddToList(ContextCo <ide> * never {@code null} <ide> * @throws IllegalArgumentException if the supplied class is {@code null}; if <ide> * neither {@code ...
2
PHP
PHP
use openssl constants rather than a bool
a05d02db9d1f7e02e12a10505dc331cdd5924aec
<ide><path>src/Utility/Crypto/OpenSsl.php <ide> public static function encrypt($plain, $key, $hmacSalt = null) <ide> $ivSize = openssl_cipher_iv_length($method); <ide> <ide> $iv = openssl_random_pseudo_bytes($ivSize); <del> return $iv . openssl_encrypt($plain, $method, $key, true, $iv); <add> ...
1
Python
Python
add the dbapi_hook
f77205994b8cf3d9385b403ffc633304e2f539bd
<ide><path>airflow/hooks/dbapi_hook.py <add>from datetime import datetime <add>import numpy <add>import logging <add> <add>from airflow.hooks.base_hook import BaseHook <add>from airflow.utils import AirflowException <add> <add> <add>class DbApiHook(BaseHook): <add> """ <add> Abstract base class for sql hooks. <ad...
1
Javascript
Javascript
remove domain enter and exit
2c94424a0d9941f7e2290f86f3417b66905acdef
<ide><path>lib/timers.js <ide> function listOnTimeout() { <ide> continue; <ide> } <ide> <del> var domain = timer.domain; <del> if (domain) { <del> domain.enter(); <del> } <del> <ide> tryOnTimeout(timer, list); <del> <del> if (domain) <del> domain.exit(); <ide> } <ide> <ide> // ...
1
Javascript
Javascript
remove outdated comment
1bee544a20633370d33a592d54ab44f2e6653e69
<ide><path>lib/internal/util/inspect.js <ide> function formatPromise(ctx, value, recurseTimes) { <ide> if (state === kPending) { <ide> output = [ctx.stylize('<pending>', 'special')]; <ide> } else { <del> // Using `formatValue` is correct here without the need to fix the <del> // indentation level. <ide> ...
1
Javascript
Javascript
remove obsolete todo comments
bdfeb798ad3b3a6eac5d0c24ec2136480907f783
<ide><path>test/parallel/test-fs-read-stream-inherit.js <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> <del>// TODO Improved this test. test_ca.pem is too small. A proper test would <del>// great a large utf8 (with multibyte chars) file and stream it in, <del>// performing sanity ...
2
Javascript
Javascript
add tests for provider settings
3cb5bad15db3b85490f29e24a4880c5dbcd60f43
<ide><path>test/ng/compileSpec.js <ide> describe('$compile', function() { <ide> <ide> describe('configuration', function() { <ide> <add> it('should allow aHrefSanitizationWhitelist to be configured', function() { <add> module(function($compileProvider) { <add> expect($compileProvider.aHrefSanitizatio...
1
Go
Go
implement stringer interface
d9524d92a9ddf02fa8f209291032ce4e37cb2a3f
<ide><path>api/types/swarm/common.go <ide> package swarm // import "github.com/docker/docker/api/types/swarm" <ide> <del>import "time" <add>import ( <add> "strconv" <add> "time" <add>) <ide> <ide> // Version represents the internal object version. <ide> type Version struct { <ide> Index uint64 `json:",omitempty"` <i...
7
Javascript
Javascript
add `invalidheaders` test
1e4187fcf4b8cc27df027fee2c4c266f17f14161
<ide><path>lib/internal/http2/compat.js <ide> let statusConnectionHeaderWarned = false; <ide> // close as possible to the current require('http') API <ide> <ide> const assertValidHeader = hideStackFrames((name, value) => { <del> if (name === '' || typeof name !== 'string') { <add> if (name === '' || typeof name !== ...
4
Javascript
Javascript
introduce synthetic scrolling
5a47f179e3cad7d68c2bf323372d035cc985c6e6
<ide><path>spec/text-editor-component-spec.js <ide> describe('TextEditorComponent', () => { <ide> expect(element.querySelectorAll('.line-number').length).toBe(9) <ide> expect(element.querySelectorAll('.line').length).toBe(9) <ide> <del> component.refs.scroller.scrollTop = 5 * component.measurements.lineHeig...
3
Go
Go
remove double newline
fcf37be2b1efa11da1958658da0e04755a225c89
<ide><path>api/server/server.go <ide> func makeHttpHandler(eng *engine.Engine, logging bool, localMethod string, local <ide> log.Debugf("Calling %s %s", localMethod, localRoute) <ide> <ide> if logging { <del> log.Infof("%s %s\n", r.Method, r.RequestURI) <add> log.Infof("%s %s", r.Method, r.RequestURI) <ide> ...
5
Ruby
Ruby
use arel to compile sql rather than build strings
6ca921a98cefa2bce67486f1ba2a8f52f4170d78
<ide><path>activerecord/lib/active_record/association_preload.rb <ide> def preload_has_and_belongs_to_many_association(records, reflection, preload_opt <ide> right[reflection.association_foreign_key]) <ide> <ide> join = left.create_join(right, left.create_on(condition)) <add> select = [ <add> ...
1
Text
Text
use es6 module instead of commonjs
3a4c2a661fd875c98d9589922545fb98457611cf
<ide><path>docs/docs/context.md <ide> class MessageList extends React.Component { <ide> In this example, we manually thread through a `color` prop in order to style the `Button` and `Message` components appropriately. Using context, we can pass this through the tree automatically: <ide> <ide> ```javascript{6,13-15,21,...
1
Javascript
Javascript
add zhopout to showcase
c01435ced01d5bf1bea2f6f457c82b16708181ce
<ide><path>website/src/react-native/showcase.js <ide> var featured = [ <ide> link: 'https://itunes.apple.com/us/app/wpv/id725222647?mt=8', <ide> author: 'Yamill Vallecillo', <ide> }, <add> { <add> name: 'Zhopout', <add> icon: 'http://zhopout.com/Content/Images/zhopout-logo-app-3.png', <add> link...
1
Javascript
Javascript
remove react.autobind entirely
f0a4ca5f69a4c0bffe40aa26335a7171ab6e7883
<ide><path>src/core/__tests__/ReactBind-test.js <ide> describe('React.autoBind', function() { <ide> }, <ide> onMouseEnter: ReactDoNotBindDeprecated.doNotBind(mouseDidEnter), <ide> onMouseLeave: ReactDoNotBindDeprecated.doNotBind(mouseDidLeave), <del> onClick: React.autoBind(mouseDidClick), <add> ...
1
Javascript
Javascript
use parser#hooks instead of tapable#plugin
9669c9e013664a5e4d8ed1f3baeab283ebd92e16
<ide><path>lib/APIPlugin.js <ide> class APIPlugin { <ide> <ide> const handler = parser => { <ide> Object.keys(REPLACEMENTS).forEach(key => { <del> parser.plugin(`expression ${key}`, NO_WEBPACK_REQUIRE[key] ? ParserHelpers.toConstantDependency(parser, REPLACEMENTS[key]) : ParserHelpers.toConstantDependencyWi...
27
Ruby
Ruby
update documentation of length validation
30edef785f61fa505426ff5307be7d0fe3255d6e
<ide><path>activemodel/lib/active_model/validations/validates.rb <ide> module ClassMethods <ide> # Example: <ide> # <ide> # validates :password, presence: true, confirmation: true, if: :password_required? <del> # validates :token, length: 24, strict: TokenLengthException <add> # valida...
1
Ruby
Ruby
run relocation machinery on local bottles
0daa33668b66a4c2a9dfee554845ce58f6a3475a
<ide><path>Library/Homebrew/formula_installer.rb <ide> def fix_install_names <ide> keg = Keg.new(f.prefix) <ide> keg.fix_install_names(:keg_only => f.keg_only?) <ide> <del> if @poured_bottle and f.bottle <add> if @poured_bottle <ide> keg.relocate_install_names Keg::PREFIX_PLACEHOLDER, HOMEBREW_PREF...
1
PHP
PHP
fix invalid function calls
c1f48eca0947d81ae0a351c7680767a8a8bb5045
<ide><path>src/Database/Schema/CachedCollection.php <ide> public function __construct(CollectionInterface $collection, string $prefix, Cac <ide> $this->cacher = $cacher; <ide> } <ide> <del> /** <del> * @inheritDoc <del> */ <del> public function listTablesAndViews(): array <del> { <del> ...
1
Python
Python
push trunk to 0.4.3-dev
3865d8a168365847e28cb7a1cb5e0f2bfa6b3863
<ide><path>libcloud/__init__.py <ide> <ide> __all__ = ["__version__", "enable_debug"] <ide> <del>__version__ = "0.4.2" <add>__version__ = "0.4.3-dev" <ide> <ide> <ide> def enable_debug(fo): <ide><path>setup.py <ide> def run(self): <ide> <ide> setup( <ide> name='apache-libcloud', <del> version='0.4.2', <add>...
2
Text
Text
add a chinese translation to pythonzen
e2fa3aeb6126b5427ac70d6117ac02c555c9089a
<ide><path>guide/chinese/python/index.md <ide> $ python3.5 <ide> If the implementation is hard to explain, it's a bad idea. <ide> If the implementation is easy to explain, it may be a good idea. <ide> Namespaces are one honking great idea -- let's do more of those! <add> <add> 优美胜于丑陋,显明胜于隐含。 <add> 简单胜于复杂,复杂胜于繁复。...
1
Ruby
Ruby
move cdf to the boneyard
649579072ca7a0f5fe2576f78499a7a35597161f
<ide><path>Library/Homebrew/tap_migrations.rb <ide> "cantera" => "homebrew/science", <ide> "cardpeek" => "homebrew/x11", <ide> "catdoc" => "homebrew/boneyard", <add> "cdf" => "homebrew/boneyard", <ide> "clam" => "homebrew/boneyard", <ide> "cloudfoundry-cli" => "pivotal/tap", <ide> "clusterit" => "homebrew/...
1
Python
Python
add general attention classes
15a2fc88a68741163cc9b798921e6b33ef32528a
<ide><path>transformers/modeling_bert.py <ide> def forward(self, input_ids, token_type_ids=None, position_ids=None): <ide> return embeddings <ide> <ide> <del>class BertSelfAttention(nn.Module): <add>class BertGeneralAttention(nn.Module): <ide> def __init__(self, config): <del> super(BertSelfAttenti...
1
PHP
PHP
update helper usage to 2.x style in code examples
db8127626a912fd3a2167d766d6bd107c485af59
<ide><path>lib/Cake/View/Helper/HtmlHelper.php <ide> public function script($url, $options = array()) { <ide> public function scriptBlock($script, $options = array()) { <ide> $options += array('safe' => true, 'inline' => true); <ide> if ($options['safe']) { <del> $script = "\n" . '//<![CDATA[' . "\n" . $script ...
1
Python
Python
stop recursion after 5000 nodes
16bcb47a6557baaae8106569712d6603941c6d03
<ide><path>airflow/www/app.py <ide> def tree(self): <ide> for ti in dag.get_task_instances(session, from_date): <ide> task_instances[(ti.task_id, ti.execution_date)] = ti <ide> <del> # if force_expand is passed True, then no timeout is applied <del> # when computing all possible paths...
1
Javascript
Javascript
fix bug, not calling animationaction.init
a1fb6c3134d6dd68035aecab72bfaf58ff3a3c20
<ide><path>src/animation/AnimationMixer.js <ide> THREE.AnimationMixer.prototype = { <ide> // TODO: check for duplicate action names? Or provide each action with a UUID? <ide> <ide> this.actions.push( action ); <add> action.init( this.time ); <ide> action.mixer = this; <ide> <ide> var tracks = action.clip.tr...
1
Javascript
Javascript
convert all zone tests to utc offset
4256ce79bacdf6bd53f0860fdbbc70b825b6a057
<ide><path>test/moment/utc_offset.js <ide> exports.offset = { <ide> test.done(); <ide> }, <ide> <add> 'utcOffset shorthand hours -> minutes' : function (test) { <add> var i; <add> for (i = -15; i <= 15; ++i) { <add> test.equal(moment().utcOffset(i).utcOffset(), i * 60, <add> ...
1
PHP
PHP
remove use of file from unloadtask
edb31ea550887122a3aa3b8714c6e6a9cf5e2d5e
<ide><path>src/Shell/Task/UnloadTask.php <ide> <ide> use Cake\Console\ConsoleOptionParser; <ide> use Cake\Console\Shell; <del>use Cake\Filesystem\File; <ide> <ide> /** <ide> * Task for unloading plugins. <ide> protected function _modifyBootstrap(string $plugin): bool <ide> { <ide> $finder = "@\nPlugin::l...
1
Python
Python
implement cors for the restful api
8a51ba58aadbb7843b029d9561c6b7b7d4a0181c
<ide><path>glances/outputs/glances_bottle.py <ide> <ide> # Import mandatory Bottle lib <ide> try: <del> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response <add> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response, request <ide> except ImportError: <ide> ...
1
Javascript
Javascript
accept undefined bufferview.bytelength (for 1.0)
5bef7d6947ba89e3f2f56c083521cd2b74e3224e
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> var arraybuffer = dependencies.buffers[ bufferView.buffer ]; <ide> <del> return arraybuffer.slice( bufferView.byteOffset, bufferView.byteOffset + bufferView.byteLength ); <add> var byteLength = bufferView.byteL...
1
Python
Python
add integration test case for
0d6df0a1ca35a35388d41125feb3ff3faecfcb7a
<ide><path>t/integration/test_canvas.py <ide> def test_chord_in_chords_with_chains(self, manager): <ide> r = c.delay() <ide> <ide> assert r.get(timeout=TIMEOUT) == 4 <add> <add> @flaky <add> def test_chain_chord_chain_chord(self, manager): <add> # test for #2573 <add> try: <add> ...
1
Ruby
Ruby
add timestamp and argument list to log files
03abf834724714b29e7d44720953affc01dd7415
<ide><path>Library/Homebrew/formula.rb <ide> def system cmd, *args <ide> wr.close <ide> <ide> File.open(logfn, 'w') do |f| <add> f.puts Time.now, "", cmd, args, "" <add> <ide> while buf = rd.gets <ide> f.puts buf <ide> puts buf if ARGV.verbose?
1
Ruby
Ruby
fix typo in it comment
1e07b77f49e6893eccdcb9096acd445aa0351f36
<ide><path>Library/Homebrew/test/bintray_spec.rb <ide> expect(hash).to eq("449de5ea35d0e9431f367f1bb34392e450f6853cdccdc6bd04e6ad6471904ddb") <ide> end <ide> <del> it "fails on a non-existant file" do <add> it "fails on a non-existent file" do <ide> hash = bintray.remote_checksum(repo: "bottles",...
1
Python
Python
remove special cases for 0d arrays in quantile
919a8258da892cb154c29b83521b913630820fda
<ide><path>numpy/lib/function_base.py <ide> def _lerp(a, b, t, out=None): <ide> def _quantile_ureduce_func(a, q, axis=None, out=None, overwrite_input=False, <ide> interpolation='linear', keepdims=False): <ide> a = asarray(a) <del> if q.ndim == 0: <del> # Do not allow 0-d arrays ...
1