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
Java
Java
add javadoc since for jaxb2xmldecoder(mimetype...)
946fc39d423da66833a2130256c68c834c7685ca
<ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java <ide> public Jaxb2XmlDecoder() { <ide> super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); <ide> } <ide> <add> /** <add> * Create a {@code Jaxb2XmlDecoder} with the specified MIME types. <add> * @param supportedM...
1
Javascript
Javascript
export an object instead of array for asset type
71e84e6ee89782ca56f70e20a19a733081a91beb
<ide><path>Examples/UIExplorer/js/CameraRollExample.js <ide> * <ide> * @flow <ide> * @providesModule CameraRollExample <add> * @format <ide> */ <ide> 'use strict'; <ide> <ide> const { <ide> Switch, <ide> Text, <ide> View, <del> TouchableOpacity <add> TouchableOpacity, <ide> } = ReactNative; <ide> <ide> co...
2
Mixed
Go
implement tail for docker logs
1dc0caf9c0170ab8e7f5a2f77f2dbdacff322eff
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdLogs(args ...string) error { <ide> cmd = cli.Subcmd("logs", "CONTAINER", "Fetch the logs of a container") <ide> follow = cmd.Bool([]string{"f", "-follow"}, false, "Follow log output") <ide> times = cmd.Bool([]string{"t", "-timestamps"}, false, "...
8
Python
Python
refactor the code in a separate function
69fc915b52fc42b288fa503b2c44c4cc4691ec18
<ide><path>libcloud/httplib_ssl.py <ide> def connect(self): <ide> if self.http_proxy_used: <ide> self._activate_http_proxy(sock=sock) <ide> <add> ssl_version = libcloud.security.SSL_VERSION <add> <ide> try: <ide> self.sock = ssl.wrap_socket( <ide> sock, <i...
1
Javascript
Javascript
fix unused bonedics, rootbone and keys
883603a32018b7ebaa7413ba0b3626d02322349a
<ide><path>examples/js/loaders/XLoader.js <ide> THREE.XLoader.prototype = { <ide> scope.loadingXdata.FrameInfo_Raw[ nowFrameName ].Geometry.groupsNeedUpdate = true; <ide> var putBones = []; <ide> var BoneInverse = []; <del> var BoneDics = []; <del> var rootBone = new THREE.Bone(); <ide> if ( scope.loadi...
1
Python
Python
remove "redefinition" of dict element
e7e6cbfb8ff4a85be123c124d8ea0a449afe9f9c
<ide><path>project_euler/problem_074/sol1.py <ide> 871: 2, <ide> 45361: 2, <ide> 872: 2, <del> 45361: 2, <ide> } <ide> <ide>
1
Go
Go
resolve conflicts with restart policies
e49c70109228d657790190007c8f9d7c55a25be2
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdRun(args ...string) error { <ide> flDetach = cmd.Bool([]string{"d", "-detach"}, false, "Detached mode: run the container in the background and print the new container ID") <ide> flSigProxy = cmd.Bool([]string{"#sig-proxy", "-sig-proxy"}, true, "...
2
Ruby
Ruby
use assert_nil when appropriate
0fc4a52c6c34deaee59c55b1d7ff3ea62eda2b36
<ide><path>Library/Homebrew/test/shell_test.rb <ide> def test_path_to_shell <ide> end <ide> <ide> def test_path_to_shell_failure <del> assert_equal nil, Utils::Shell.path_to_shell("") <del> assert_equal nil, Utils::Shell.path_to_shell("@@") <del> assert_equal nil, Utils::Shell.path_to_shell("invalid_shell...
2
Text
Text
fix typos
2385358edd9652ce115632002027ac71bf2633db
<ide><path>CHANGELOG-6.x.md <ide> ### Fixed <ide> - Fixed default value for $count in `PhpRedisConnection::spop()` method ([#30546](https://github.com/laravel/framework/pull/30546)) <ide> - Fixed breaking compatibility with multi-schema postgres ([#30562](https://github.com/laravel/framework/pull/30562), [6460d2b](http...
1
Ruby
Ruby
handle nil @version
c32865011d1536eb6f7e626a3cb389d35beda48a
<ide><path>Library/Homebrew/requirements/xcode_requirement.rb <ide> def message <ide> A full installation of Xcode.app#{version} is required to compile this software. <ide> Installing just the Command Line Tools is not sufficient. <ide> EOS <del> if Version.new(MacOS::Xcode.latest_version) < Version....
1
Javascript
Javascript
add process.hrtime.bigint benchmark
69906fbc52b6a89d0a571c70b98701e51900a884
<ide><path>benchmark/process/bench-hrtime.js <ide> const assert = require('assert'); <ide> <ide> const bench = common.createBenchmark(main, { <ide> n: [1e6], <del> type: ['raw', 'diff'] <add> type: ['raw', 'diff', 'bigint'] <ide> }); <ide> <ide> function main({ n, type }) { <ide> const hrtime = process.hrtime; ...
2
Python
Python
use execute instead of check_output
fff3792e7187eb2bebf8ee1bada93d2fb29802c3
<ide><path>tools/test.py <ide> def ArgsToTestPaths(test_root, args, suites): <ide> return paths <ide> <ide> <del>def get_env_type(vm, options_type): <add>def get_env_type(vm, options_type, context): <ide> if options_type is not None: <ide> env_type = options_type <ide> else: <del> if "fips" in subprocess...
1
Java
Java
remove dead code
7f8ede14077189114c5040da9192b31ff01475db
<ide><path>org.springframework.beans/src/test/java/org/springframework/beans/factory/config/PropertyResourceConfigurerTests.java <ide> public void testPreferencesPlaceholderConfigurerWithPathInPlaceholder() { <ide> Preferences.systemRoot().node("mySystemPath/mypath").remove("myName"); <ide> } <ide> <del> /* TODO SP...
4
Python
Python
add test of simple textcat workflow
1831dbd065a8776a77d18e10b44f84c99bca4c75
<ide><path>spacy/tests/textcat/test_textcat.py <add>from __future__ import unicode_literals <add>from ...language import Language <add> <add>def test_simple_train(): <add> nlp = Language() <add> <add> nlp.add_pipe(nlp.create_pipe('textcat')) <add> nlp.get_pipe('textcat').add_label('is_good') <add> <add> nlp...
1
Javascript
Javascript
add blink app in showcase
977acb9b681b28457e90686deef79b950936dc70
<ide><path>website/src/react-native/showcase.js <ide> var featured = [ <ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.bloomberg.android.plus&hl=en', <ide> infoLink: 'https://www.techatbloomberg.com/blog/bloomberg-used-react-native-develop-new-consumer-app/', <ide> infoTitle: 'How Bl...
1
Ruby
Ruby
use similar logic to `brew fetch`
79cb9e051bf4788a4ffb0e59523d342212715cbb
<ide><path>Library/Homebrew/dev-cmd/bump-cask-pr.rb <ide> # frozen_string_literal: true <ide> <ide> require "cask" <add>require "cask/download" <ide> require "cli/parser" <ide> require "utils/tar" <ide> <ide> def bump_cask_pr <ide> silent: true) <ide> <i...
1
PHP
PHP
add includewhen directive
5fe39aa3bac01f49ffaf5d44bf03688690106dbe
<ide><path>src/Illuminate/View/Compilers/Concerns/CompilesIncludes.php <ide> protected function compileIncludeIf($expression) <ide> <ide> return "<?php if (\$__env->exists({$expression})) echo \$__env->make({$expression}, array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>"; <ide> } ...
2
Javascript
Javascript
fix touchables inspector
5f8d7ac61817f7cb9fa08a39c513a1114f69746e
<ide><path>Libraries/Components/Touchable/TouchableWithoutFeedback.js <ide> const TouchableWithoutFeedback = React.createClass({ <ide> ((child._owner && child._owner.getName && child._owner.getName()) || '<unknown>') <ide> ); <ide> if (Touchable.TOUCH_TARGET_DEBUG && child.type && child.type.displayName...
1
PHP
PHP
add test skeleton for orm cache shell
041885dcaa3358c4357603ff85ce0f839e880cb1
<ide><path>tests/TestCase/Console/Command/OrmCacheShellTest.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and licens...
1
PHP
PHP
fix assertpushedon docblock
2574aca756138811b331060bb0d572592971d764
<ide><path>src/Illuminate/Support/Facades/Queue.php <ide> * @method static void assertNotPushed(string|\Closure $job, callable $callback = null) <ide> * @method static void assertNothingPushed() <ide> * @method static void assertPushed(string|\Closure $job, callable|int $callback = null) <del> * @method static void ...
1
Text
Text
update example explanation in detail
158b27c7150af4bfdb4d683e0d3d576f74d6539a
<ide><path>guide/english/javascript/loops/for-loop/index.md <ide> any of these three expressions or the statement can be omitted. For loops are co <ide> When indexing over an array many times it is easy to exceed the bounds of the array (ex. try to reference the 4th element of a 3 element array). <ide> <ide> ```javasc...
1
Ruby
Ruby
use new skool ruby instead of ruby classic™
b7934afe326f8bba9cdcacdfac93062dff155efe
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def read_fixture_files <ide> end <ide> <ide> def read_yaml_fixture_files <del> yaml_string = "" <del> Dir["#{@fixture_path}/**/*.yml"].select { |f| test(?f, f) }.each do |subfixture_path| <del> yaml_string << IO.read(subfixture_path) ...
1
PHP
PHP
fix double encoding in postlink() urls
d730ea59db8d6683af10cbd0c2c7fa5c1f5045fe
<ide><path>src/View/Helper/FormHelper.php <ide> public function postLink($title, $url = null, array $options = []) <ide> <ide> $formName = str_replace('.', '', uniqid('post_', true)); <ide> $formOptions = [ <del> 'action' => $this->Url->build($url), <ide> 'name' => $formName, <id...
2
Text
Text
clarify symlink resolution for __filename
bb04a8bbf2dc97ee3e75f985de1b8b6ff4f0619c
<ide><path>doc/api/modules.md <ide> added: v0.0.1 <ide> <ide> * {string} <ide> <del>The file name of the current module. This is the resolved absolute path of the <del>current module file. <add>The file name of the current module. This is the current module file's absolute <add>path with symlinks resolved. <ide> <id...
1
Ruby
Ruby
cure some ills discovered with the refactoring
2f7c5f84e4834e49001ed565cfe45f14e120613f
<ide><path>actionpack/lib/action_controller/base.rb <ide> def action_name <ide> <ide> # A unified replacement for the individual renders (work-in-progress). <ide> def render(options = {}, deprecated_status = nil) <add> # puts "Rendering: #{options.inspect}" <ide> raise DoubleRenderError, "Ca...
5
PHP
PHP
update return type for tap
f67efea418b541dd3e6e083335f40a848f8660f4
<ide><path>src/Illuminate/Database/Concerns/BuildsQueries.php <ide> protected function cursorPaginator($items, $perPage, $cursor, $options) <ide> * Pass the query to a given callback. <ide> * <ide> * @param callable $callback <del> * @return $this <add> * @return $this|mixed <ide> */ <ide>...
1
Javascript
Javascript
remove obsolete mocks
99b81da6292fcec0d7a375e4f606f85214e20987
<ide><path>Libraries/BatchedBridge/__mocks__/NativeModules.js <del>/** <del> * Copyright (c) 2013-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An additional grant...
9
Text
Text
add note in updating.md about fab datamodel change
714a07542c2560b50d013d66f71ad9a209dd70b6
<ide><path>UPDATING.md <ide> executor = my_acme_company.executors.MyCustomExecutor <ide> <ide> The old configuration is still works but can be abandoned at any time. <ide> <add>#### Use `CustomSQLAInterface` instead of `SQLAInterface` for custom data models. <add> <add>From Airflow 2.0, if you want to define your own...
1
PHP
PHP
add test for html rendering
829a6e33ea2d7c5c607ee1bb6487c2f2212d1ddd
<ide><path>tests/TestCase/Error/ExceptionTrapTest.php <ide> public function testRenderExceptionText() <ide> $this->assertStringContainsString('ExceptionTrapTest', $out); <ide> } <ide> <add> /** <add> * Test integration with HTML exception rendering <add> * <add> * Run in a separate process b...
1
Text
Text
fix broken code blocks in readme.md
8feede229cc801485fff1e4db28a432a2e9aebb4
<ide><path>examples/pytorch/contrastive-image-text/README.md <ide> wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip <ide> wget http://images.cocodataset.org/annotations/image_info_test2017.zip <ide> cd .. <ide> ``` <del>```suggestion <ide> <ide> Having downloaded COCO dataset manually you sh...
1
Javascript
Javascript
start caching source maps
d6212cfc795d3848ff080cd89998ef678e83278b
<ide><path>static/index.js <ide> window.onload = function() { <ide> // This sets require.extensions['.coffee']. <ide> require('coffee-cash').register(path.join(cacheDir, 'coffee')); <ide> <add> require('coffeestack').setCacheDirectory(path.join(cacheDir, 'coffee', 'source-maps')); <add> <ide> re...
1
Javascript
Javascript
avoid expensive work for filtered cached assets
3385d0d1981ffaf19fd486c7fff5805caf9448b4
<ide><path>lib/stats/DefaultStatsFactoryPlugin.js <ide> const { makePathsRelative, parseResource } = require("../util/identifier"); <ide> * @typedef {Object} SimpleExtractors <ide> * @property {ExtractorsByOption<Compilation>} compilation <ide> * @property {ExtractorsByOption<ExtendedAsset>} asset <add> * @property ...
1
Text
Text
add 1.6.1 release info
ee1458fdba025e00840827a6a8e9c2ef1a7edd6b
<ide><path>CHANGELOG.md <add><a name="1.6.1"></a> <add># 1.6.1 promise-rectification (2016-12-23) <add> <add> <add>## Bug Fixes <add>- **$q:** Add traceback to unhandled promise rejections <add> ([174cb4](https://github.com/angular/angular.js/commit/174cb4a8c81e25581da5b452c2bb43b0fa377a9b) <add> [#14631](https://git...
1
Go
Go
add interface for untar
1d4a82365bfa215767fc4a4cc7e4d5d10dbcd0e4
<ide><path>pkg/archive/archive.go <ide> type ( <ide> Compression Compression <ide> NoLchown bool <ide> } <add> <add> // Archiver allows the reuse of most utility functions of this package <add> // with a pluggable Untar function. <add> Archiver struct { <add> Untar func(io.Reader, string, *TarOptions) error <a...
1
Text
Text
correct external command docs
007926d7a6aaec1a5ab8614a1f8d4ad70497908c
<ide><path>share/doc/homebrew/External-Commands.md <ide> without modifying Homebrew's internals. <ide> ## COMMAND TYPES <ide> External commands come in two flavors: Ruby commands and shell scripts. <ide> <del>In both cases, the command file should be `chmod +x` (executable) and live somewhere in `$PATH`. <del> <del>In...
1
Text
Text
add tools doc
e63a693c6d4ae76cded0029bb7f60216c4b11da6
<ide><path>project/TOOLS.md <add># Tools <add> <add>This page describes the tools we use and infrastructure that is in place for <add>the Docker project. <add> <add>### CI <add> <add>The Docker project uses [Jenkins](https://jenkins.dockerproject.com/) as our <add>continuous integration server. Each Pull Request to Doc...
1
Ruby
Ruby
remove github warning
34ae063c6734b8cab9562d44e771dfcf5ac4582a
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_urls <ide> problem "Google Code homepage should end with a slash (url is #{f.homepage})." <ide> end <ide> <del> if f.homepage =~ %r[^http://(.*)\.github\.com/] <del> if $1 != 'github' <del> problem "GitHub pages should use the github.io ...
1
Ruby
Ruby
remove outdated comment
ed6894bf2386cf469018a5b32e60568c8df20e2d
<ide><path>activerecord/test/models/pirate.rb <ide> class Pirate < ActiveRecord::Base <ide> has_many :treasures, :as => :looter <ide> has_many :treasure_estimates, :through => :treasures, :source => :price_estimates <ide> <del> # These both have :autosave enabled because accepts_nested_attributes_for is used on t...
1
Javascript
Javascript
remove dead code
8f1ee0bc6f90ff3417889bedfcb246e4faebe551
<ide><path>lib/internal/errors.js <ide> E('ERR_INVALID_ARG_VALUE', (name, value, reason = 'is invalid') => { <ide> }, TypeError, RangeError); <ide> E('ERR_INVALID_ARRAY_LENGTH', <ide> (name, len, actual) => { <del> internalAssert(typeof actual === 'number', 'actual must be of type number'); <ide> return `The a...
1
Javascript
Javascript
pull request comments + eslint
12129ac36685b74702b2820d0927c60e49e10b89
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> case 'directional': <ide> lightNode = new THREE.DirectionalLight( color ); <del> lightNode.target.position.set( 0, 0, -1 ); <add> lightNode.target.position.set( 0, 0, - 1 ); <ide> lightNode.add( lightNode...
1
Ruby
Ruby
handle corrupt checkouts
a380265e90e36a6a9e60123f300bdc4094318b98
<ide><path>Library/Homebrew/download_strategy.rb <ide> def bzrpath <ide> ].find { |p| File.executable? p } <ide> end <ide> <add> def repo_valid? <add> @clone.join(".bzr").directory? <add> end <add> <ide> def fetch <ide> ohai "Cloning #{@url}" <del> unless @clone.exist? <del> url=@url.sub(%r[...
1
Java
Java
fix race condition in sendblockingmessage
20e6ca3601d2748b049d918a5f8c50e5f4191207
<ide><path>spring-websocket/src/test/java/org/springframework/web/socket/handler/ConcurrentWebSocketSessionDecoratorTests.java <ide> public void closeStatusChangesToSessionNotReliable() throws Exception { <ide> } <ide> <ide> private void sendBlockingMessage(ConcurrentWebSocketSessionDecorator session) throws Interru...
1
Text
Text
add mongoose section
56cac693799240045fec8b11d60769ab32b5eb55
<ide><path>README.md <ide> And that's it, we are done! <ide> <ide> If you want to see a really cool real-time dashboard check out this [live example](http://hackathonstarter.herokuapp.com/dashboard). Refer to the [pull request #23](https://github.com/sahat/hackathon-starter/pull/23/files) to see how it is implemented....
1
PHP
PHP
add method in router to fetch middleware by path
45b97d10d46f4c9086b3510b6aa20dc916649926
<ide><path>src/Routing/Router.php <ide> <ide> use Cake\Core\Configure; <ide> use Cake\Http\ServerRequest; <add>use Cake\Http\MiddlewareQueue; <ide> use Cake\Utility\Inflector; <ide> use InvalidArgumentException; <ide> use Psr\Http\Message\ServerRequestInterface; <ide> public static function routes() <ide> retu...
2
Javascript
Javascript
remove platformos from rn
5c0b9071e77d1d2da920768bc8472496a750a0c6
<ide><path>Libraries/Utilities/PlatformOS.android.js <del>/** <del> * Copyright (c) Facebook, Inc. and its affiliates. <del> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <del> * <del> * @format <del> * @flow strict <del> */ <de...
2
Text
Text
fix links [ci skip]
83cb835ff70044d4a0cf0b56acf9503161f8ba8c
<ide><path>guides/source/security.md <ide> rotations going at any one time. <ide> For more details on key rotation with encrypted and signed messages as <ide> well as the various options the `rotate` method accepts, please refer to <ide> the <del>[MessageEncryptor API](api.rubyonrails.org/classes/ActiveSupport/MessageE...
1
Python
Python
add debug information to gfortran builds
4c4212b792ffce841ae31d842c0e0a52e285e071
<ide><path>numpy/distutils/fcompiler/gnu.py <ide> def version_match(self, version_string): <ide> possible_executables = ['gfortran', 'f95'] <ide> executables = { <ide> 'version_cmd' : ["<F90>", "--version"], <del> 'compiler_f77' : [None, "-Wall", "-ffixed-form", <add> 'compiler_f77' : [No...
1
Text
Text
update validation guide for acceptance method
29acc869db72570822c9774aec3ab6ac4a229890
<ide><path>guides/source/active_record_validations.md <ide> available helpers. <ide> This method validates that a checkbox on the user interface was checked when a <ide> form was submitted. This is typically used when the user needs to agree to your <ide> application's terms of service, confirm that some text is read, ...
1
Text
Text
optimize some descriptions for swarm nodes.md
fa52bd5cf8f8e40189a0a9ba1bac61bd5ace4a91
<ide><path>docs/swarm/how-swarm-mode-works/nodes.md <ide> manager. If the manager in a single-manager swarm fails, your services will <ide> continue to run, but you will need to create a new cluster to recover. <ide> <ide> To take advantage of swarm mode's fault-tolerance features, Docker recommends <del>you implement...
1
Python
Python
add coarse layers for faster rcnn fpn keras model
70c974d36e63955b82f4df23989d5aa902e1d51b
<ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py <ide> def __init__(self, <ide> self._resnet_block_names = ['block1', 'block2', 'block3', 'block4'] <ide> self.classification_backbone = None <ide> self._fpn_features_generator = None <add> self._coarse_featur...
2
Javascript
Javascript
remove ios gating to fix sticky header
6eed1e4f80572de038f67496e51ae0fea7e66617
<ide><path>Libraries/Components/ScrollView/ScrollViewStickyHeader.js <ide> class ScrollViewStickyHeader extends React.Component<Props, State> { <ide> this.setState({ <ide> translateY: value, <ide> }); <del> // This fixes jank on iOS, especially around paging, <del> ...
1
Go
Go
set bigger grpc limit for array requests
489b8eda6674523df8b82a210399b7d2954427d0
<ide><path>daemon/cluster/cluster.go <ide> package cluster // import "github.com/docker/docker/daemon/cluster" <ide> import ( <ide> "context" <ide> "fmt" <add> "math" <ide> "net" <ide> "os" <ide> "path/filepath" <ide> const stateFile = "docker-state.json" <ide> const defaultAddr = "0.0.0.0:2377" <ide> <ide> const...
3
Text
Text
remove travis ci badge from readme
7f026d12b8115bff4b6ad59cabb3df4f3f0a3872
<ide><path>README.md <ide> <ide> [![PyPI version](https://badge.fury.io/py/apache-airflow.svg)](https://badge.fury.io/py/apache-airflow) <ide> ![Airflow](https://github.com/apache/airflow/workflows/Airflow/badge.svg) <del>[![Build Status](https://travis-ci.org/apache/airflow.svg?branch=master)](https://travis-ci.org/a...
1
Ruby
Ruby
add missing colon to internal
9b9dec5b5f713edbe0d7556558fd0fe4216053d5
<ide><path>activerecord/lib/active_record/properties.rb <ide> module Properties # :nodoc: <ide> Type = ActiveRecord::Type <ide> <ide> included do <del> class_attribute :user_provided_columns, instance_accessor: false # :internal <add> class_attribute :user_provided_columns, instance_accessor: false #...
1
Text
Text
remove coverage badge
ede46717523d8c0a9839758e4857c7e4b92d0eb5
<ide><path>README.md <ide> Second, read the [Troubleshooting Checklist](https://docs.brew.sh/Troubleshootin <ide> <ide> ## Contributing <ide> [![Azure Pipelines](https://img.shields.io/vso/build/Homebrew/56a87eb4-3180-495a-9117-5ed6c79da737/1.svg)](https://dev.azure.com/Homebrew/Homebrew/_build/latest?definitionId=1) ...
1
PHP
PHP
fix coding standards in case/core
b4a444fb14f514b68f8a9e84d9de761e5ee9656f
<ide><path>lib/Cake/Test/Case/Core/AppTest.php <ide> public function testCompatibleBuild() { <ide> App::build(array('helpers' => array('/path/to/helpers/'))); <ide> $expected = array( <ide> '/path/to/helpers/', <del> APP . 'View' . DS . 'Helper' .DS <add> APP . 'View' . DS . 'Helper' . DS <ide> ); <ide> ...
3
Python
Python
fix error with recarry. patch by c. gohlke. closes
5e4a4075a8476a6c6d46481f33a4c873f545d4c7
<ide><path>numpy/compat/py3k.py <ide> def asstr(s): <ide> return s <ide> return s.decode('latin1') <ide> def isfileobj(f): <del> return isinstance(f, io.FileIO) <add> return isinstance(f, (io.FileIO, io.BufferedReader)) <ide> def open_latin1(filename, mode='r'): <ide> r...
2
Text
Text
update 2.x maintenance date, include 3.0 wiki
1c17f3669bcfc7651925f7dc977a9561ace84d7d
<ide><path>README.md <ide> It extends the [observer pattern](http://en.wikipedia.org/wiki/Observer_pattern) <ide> <ide> Learn more about RxJava in general on the <a href="https://github.com/ReactiveX/RxJava/wiki">Wiki Home</a>. <ide> <add>:information_source: Please read the [What's different in 3.0](https://github.c...
1
Javascript
Javascript
remove unused methods
b40dab553f888070f1eaae6f749dc511d7c281fd
<ide><path>lib/internal/linkedlist.js <ide> function init(list) { <ide> list._idlePrev = list; <ide> } <ide> <del>// create a new linked list <del>function create() { <del> const list = { _idleNext: null, _idlePrev: null }; <del> init(list); <del> return list; <del>} <del> <ide> // show the most idle item <ide> f...
2
Ruby
Ruby
fix mysql/mysql2 failing with fk constraint errors
c031016558d7be757c9216186670bf3418a1a6ae
<ide><path>activerecord/test/cases/persistence_test.rb <ide> require 'rexml/document' <ide> <ide> class PersistenceTest < ActiveRecord::TestCase <del> fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories, :posts, :mini...
1
Python
Python
add a warning for broken prophetnet fine-tuning
45dcfdec52e28ef65c52d0a3b4e5120e134c5d49
<ide><path>src/transformers/models/prophetnet/modeling_prophetnet.py <ide> def forward( <ide> >>> last_hidden_states_ngram = outputs.last_hidden_state_ngram # predict hidden states <ide> """ <ide> <add> if self.training: <add> logger.warning( <add> "There is a know...
1
Python
Python
fix md5 import for python 2.6 in paver file
6dce85229c750519f75ac09c34997545b8586d98
<ide><path>pavement.py <ide> import subprocess <ide> import re <ide> try: <del> from hash import md5 <add> from hashlib import md5 <ide> except ImportError: <del> import md5 <add> from md5 import md5 <ide> <ide> import paver <ide> from paver.easy import \ <ide> def compute_md5(idirs): <ide> released = ...
1
Ruby
Ruby
allow skipping analytics message
d41e2ea5e8714d80948033c04165137f0d46e9ac
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> analytics_disabled = \ <ide> Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsdisabled").chuzzle <ide> if analytics_message_displayed != "true" && analytics_disabled != "true" && <del> !ENV...
1
Go
Go
fix stats cli
2894d07696a3160c5f6f372e69b241386bb82c94
<ide><path>cli/command/container/stats.go <ide> func runStats(dockerCli *command.DockerCli, opts *statsOptions) error { <ide> } <ide> } <ide> <add> // Get the daemonOSType if not set already <add> if daemonOSType == "" { <add> svctx := context.Background() <add> sv, err := dockerCli.Client().ServerVersion(svctx) ...
2
Python
Python
fix one more distributed_tensorflow
a19e90f38d574d60517c065afd0e1983f32b9816
<ide><path>samples/outreach/blogs/blog_custom_estimators.py <ide> # http://www.apache.org/licenses/LICENSE-2.0 <ide> # <ide> # Unless required by applicable law or agreed to in writing, software <del># distributed under the License is Distributed_TensorFlow on an "AS IS" BASIS, <add># distributed under the License ...
1
Python
Python
fix mypy violation
2c3e38087e18de9f452e856d10fdf8ccc5c8b926
<ide><path>libcloud/common/base.py <ide> def _retryable_request(self, url: str, data: bytes, <ide> try: <ide> # @TODO: Should we just pass File object as body to request method <ide> # instead of dealing with splitting and sending the file ourselves? <add> assert self.connecti...
1
Text
Text
fix content-type of response for `/commit`
78de066a28c5e01524401840ff4d1ae76e8e0fc2
<ide><path>docs/reference/api/docker_remote_api_v1.12.md <ide> Create a new image from a container's changes <ide> **Example response**: <ide> <ide> HTTP/1.1 201 Created <del> Content-Type: application/vnd.docker.raw-stream <add> Content-Type: application/json <ide> <ide> {"Id": "596069d...
10
Python
Python
add head masking and pruning to gpt-2
b860e47cf5a61b76b480657504de2588a9385b53
<ide><path>pytorch_pretrained_bert/modeling_gpt2.py <ide> PRETRAINED_CONFIG_ARCHIVE_MAP = {"gpt2": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-config.json", <ide> "gpt2-medium": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-config.json"} <ide> <add>def ...
2
Ruby
Ruby
remove slashes from documentation
d0c138ad985fa70f55792288f73a31e01656e37b
<ide><path>Library/Homebrew/cmd/--cache.rb <ide> module Homebrew <ide> def __cache_args <ide> Homebrew::CLI::Parser.new do <ide> usage_banner <<~EOS <del> `--cache` [<options>] [<formula/cask>] <add> `--cache` [<options>] [<formula>] <ide> <ide> Display Homebrew's download cache. See ...
1
Ruby
Ruby
drop errors constant
b2f7c460767c2ce544d80399ce7d0d2cbc3aa7cb
<ide><path>activerecord/lib/active_record/coders/yaml_column.rb <ide> module ActiveRecord <ide> module Coders # :nodoc: <ide> class YAMLColumn # :nodoc: <del> RESCUE_ERRORS = [ ArgumentError, Psych::SyntaxError ] <ide> <ide> attr_accessor :object_class <ide> <ide> def load(yaml) <ide> obj |...
2
Javascript
Javascript
fix typo in atom.confirm documentation
aa8d3d6ee8031777679c5d9303effbcf86ca85b2
<ide><path>src/atom-environment.js <ide> class AtomEnvironment { <ide> // window.alert('bummer') <ide> // } <ide> // }) <add> // ``` <ide> // <ide> // ```js <ide> // // Legacy sync version
1
Java
Java
add test case for writefunction error signal
4c08863776df9cf6da99b871ba1b5766a4772948
<ide><path>spring-web/src/test/java/org/springframework/http/server/reactive/ChannelSendOperatorTests.java <ide> package org.springframework.http.server.reactive; <ide> <ide> import java.nio.charset.StandardCharsets; <add>import java.time.Duration; <ide> import java.util.ArrayList; <ide> import java.util.Arrays; <ide>...
1
Ruby
Ruby
add support for uniqueness validations
a61692cf4152e4dcc6850207a55b6d8bab4280dd
<ide><path>activerecord/lib/active_record/encryption.rb <ide> module Encryption <ide> autoload :EnvelopeEncryptionKeyProvider <ide> autoload :Errors <ide> autoload :ExtendedDeterministicQueries <add> autoload :ExtendedDeterministicUniquenessValidator <ide> autoload :Key <ide> autoload...
7
Text
Text
fix wordy sentence
bb87c16ad92c13ca91d8e349c0f0b277431b81af
<ide><path>guides/source/getting_started.md <ide> styling for it afterwards. <ide> <ide> ### Laying down the ground work <ide> <del>The first thing that you are going to need to create a new article within the <del>application is a place to do that. A great place for that would be at <del>`/articles/new`. <del>With t...
1
Javascript
Javascript
release callback and buffer after processing
313ef544173965309a5b24e3bf3a7f57af397c01
<ide><path>lib/zlib.js <ide> Zlib.prototype._processChunk = function(chunk, flushFlag, cb) { <ide> req.callback = callback; <ide> <ide> function callback(availInAfter, availOutAfter) { <add> // When the callback is used in an async write, the callback's <add> // context is the `req` object that was created. ...
1
Javascript
Javascript
improve assertions in pummel/test-timers
87c433e120604b2c44b87d5f6bcd8f8e00da6af6
<ide><path>test/pummel/test-timers.js <ide> const WINDOW = 200; // Why does this need to be so big? <ide> assert.ok(diff > 0); <ide> console.error(`diff: ${diff}`); <ide> <del> assert.strictEqual(1000 - WINDOW < diff && diff < 1000 + WINDOW, true); <add> assert.ok(1000 <= diff && diff < 1000 + WINDOW); <...
1
Go
Go
increase test coverage of pkg/authorization
f1eb0c0ebb85af2ae5373f16fd529588c07815cc
<ide><path>pkg/authorization/api_test.go <add>package authorization <add> <add>import ( <add> "crypto/rand" <add> "crypto/rsa" <add> "crypto/tls" <add> "crypto/x509" <add> "crypto/x509/pkix" <add> "math/big" <add> "net/http" <add> "testing" <add> "time" <add> <add> "github.com/stretchr/testify/require" <add>) <add> <ad...
3
Python
Python
add regression test for #775
19501f3340127c7c874e551632c36e19ba2176d3
<ide><path>spacy/tests/regression/test_issue775.py <add># coding: utf-8 <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add> <add>@pytest.mark.parametrize('text', ["Shell", "shell"]) <add>def test_issue775(en_tokenizer, text): <add> """Test that 'Shell' and 'shell' are excluded from the ...
1
Python
Python
improve help string
492fdab94de8fb77bac9f10f48b196db08852677
<ide><path>runtests.py <ide> def main(argv): <ide> parser.add_argument("--verbose", "-v", action="count", default=1, <ide> help="more verbosity") <ide> parser.add_argument("--debug-configure", action="store_true", <del> help="add -v to build_src to show cconfigurat...
1
Ruby
Ruby
remove uncommented railties boot_test.rb
2dffe37ce489309aa2b5c6061516e98031a2da05
<ide><path>railties/test/application/initializers/boot_test.rb <del>require "isolation/abstract_unit" <del> <del>module ApplicationTests <del> class BootTest < ActiveSupport::TestCase <del> include ActiveSupport::Testing::Isolation <del> <del> def setup <del> # build_app <del> # boot_rails <del> end...
1
Python
Python
add timehistory callback to bert
b39958cff891fcf31a4bab4ca55a95e401086ab3
<ide><path>official/benchmark/bert_benchmark_utils.py <ide> def on_batch_begin(self, batch, logs=None): <ide> self.batch_start_times[batch] = time.time() <ide> <ide> def on_batch_end(self, batch, logs=None): <add> # If there are multiple steps_per_loop, the end batch index will not be the <add> # same as t...
6
Text
Text
fix typo from
7fd22bcda513c4cb1db30de8afccdc31f44d9f73
<ide><path>docs/C++-Standard-Libraries.md <ide> so Homebrew will refuse to install software if a dependency was built with an <ide> incompatible C++ library. It's recommended that you install the dependency tree <ide> using a compatible compiler. <ide> <del>**If you've upgraded to or later 10.9 from an earlier version...
1
Javascript
Javascript
remove unneeded async
f4af03b9c8f684662c473f60c11349c82deaecf2
<ide><path>lib/router/router.js <ide> export default class Router { <ide> } <ide> } <ide> <del> async onPopState (e) { <add> onPopState (e) { <ide> if (!e.state) { <ide> // We get state as undefined for two reasons. <ide> // 1. With older safari (< 8) and older chrome (< 34)
1
Javascript
Javascript
remove unused code
020694907500e363c2ca11428afa458b8696eb01
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> return false; <ide> } <ide> <del> hasChunkInGraph(filterFn) { <del> const queue = new Set(this.groupsIterable); <del> const chunksProcessed = new Set(); <del> <del> for(const chunkGroup of queue) { <del> for(const chunk of chunkGroup.chunks) { <del> if(!chun...
7
Text
Text
add optional callback to socket.end()
9697c0820f015ccf898a3662305a0caa3cd9c208
<ide><path>doc/api/net.md <ide> listeners for that event will receive `exception` as an argument. <ide> * {boolean} Indicates if the connection is destroyed or not. Once a <ide> connection is destroyed no further data can be transferred using it. <ide> <del>### socket.end([data][, encoding]) <add>### socket.end([dat...
1
Python
Python
fix funny printing
b2281119259681f04ffe178579efcb16a9b06f81
<ide><path>spacy/cli/project.py <ide> def run_commands( <ide> elif len(command) and command[0] in ("pip", "pip3"): <ide> command = [sys.executable, "-m", "pip", *command[1:]] <ide> if not silent: <del> print(" ".join(command)) <add> print(f"Running command: {command}") ...
1
Javascript
Javascript
export path.normalizearray for the uri module
120492e5c222f8d1b0890ea0e8170dfe7370d74c
<ide><path>src/node.js <ide> var pathModule = createInternalModule("path", function (exports) { <ide> return exports.normalize(Array.prototype.join.call(arguments, "/")); <ide> }; <ide> <del> function normalizeArray (parts) { <add> exports.normalizeArray = function (parts) { <ide> var directories = []; <id...
1
Text
Text
remove references to autoflow
78958fe0f54b7e118db033481b1bd04aab0a7f8f
<ide><path>README.md <ide> React is a JavaScript library for building user interfaces. <ide> <ide> [Learn how to use React in your own project.](http://facebook.github.io/react/docs/getting-started.html) <ide> <del>## The `react` npm package has recently changed! <del> <del>If you're looking for jeffbski's [React.js]...
1
Ruby
Ruby
remove old fixme comment
e6b585e838e475b005b73a8b1a4b4cc3edb09474
<ide><path>lib/arel/select_manager.rb <ide> def group *columns <ide> <ide> def from table <ide> table = Nodes::SqlLiteral.new(table) if String === table <del> # FIXME: this is a hack to support <del> # test_with_two_tables_in_from_without_getting_double_quoted <del> # from the AR tests. <ide> ...
1
PHP
PHP
add order assertions and test coverage
75d7e077905f7ebba7a0b957934442d680699bda
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertSee($value) <ide> return $this; <ide> } <ide> <add> /** <add> * Assert that the given strings are contained in order within the response. <add> * <add> * @param array $values <add> * @return $this...
2
Ruby
Ruby
fix comma splice in outdated brew message
a316a072517e4ea82d619c6b0f97104474d7f479
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_outdated_homebrew <ide> <ide> if Time.now.to_i - timestamp > 60 * 60 * 24 then <<-EOS.undent <ide> Your Homebrew is outdated. <del> You haven't updated for at least 24 hours, this is a long time in brewland! <add> You haven't updated for...
1
PHP
PHP
update blade.php
e9e805f36f767ace53791e88830042fcf69b7513
<ide><path>src/Illuminate/Support/Facades/Blade.php <ide> * @method static void compile(string|null $path = null) <ide> * @method static void component(string $class, string|null $alias = null, string $prefix = '') <ide> * @method static void components(array $components, string $prefix = '') <del> * @method static ...
1
Python
Python
fix xla fp16 and bf16 error checking
639422187157bb19339e0ecdd6eeff7e1011a801
<ide><path>src/transformers/training_args.py <ide> def get_int_from_env(env_keys, default): <ide> return default <ide> <ide> <add>def get_xla_device_type(device: "torch.device") -> Optional[str]: <add> """ <add> Returns the xla device type (CPU|GPU|TPU) or None if the device is a non-xla device. <add> ""...
1
Go
Go
fix golint issues
35f7e7c50a131494c9d530800e80bf2da42fb89c
<ide><path>builder/builder-next/adapters/snapshot/snapshot.go <ide> func (s *snapshotter) Prepare(ctx context.Context, key, parent string, opts ...s <ide> if err := s.opt.GraphDriver.Create(key, parent, nil); err != nil { <ide> return err <ide> } <del> if err := s.db.Update(func(tx *bolt.Tx) error { <add> return s....
4
Javascript
Javascript
apply strict mode in test-repl
f3b9a85f869beb2c3bc66cb796860f8b42f36dad
<ide><path>test/parallel/test-repl.js <del>/* eslint-disable max-len, strict */ <add>/* eslint-disable max-len */ <add>'use strict'; <add> <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide>
1
PHP
PHP
remove old fixture
b454d5c343ca44a07c781be953fd8997e8c35eaa
<ide><path>tests/Routing/fixtures/annotations/BasicController.php <del><?php namespace App\Http\Controllers; <del> <del>/** <del> * @Resource("foobar/photos", only={"index", "update"}, names={"index": "index.name"}) <del> * @Controller(domain="{id}.account.com") <del> * @Middleware("FooMiddleware") <del> * @Middleware(...
1
Ruby
Ruby
remove node support
36cef3c9744c7bc5d7215c5b79ea304a3aa2cfc2
<ide><path>Library/Homebrew/dependency_collector.rb <ide> class DependencyCollector <ide> # Define the languages that we can handle as external dependencies. <ide> LANGUAGE_MODULES = Set[ <del> :jruby, :lua, :node, :ocaml, :perl, :python, :python3, :ruby <add> :jruby, :lua, :ocaml, :perl, :python, :python3, :...
3
Ruby
Ruby
fix rubocop style
0c472ea6d9a5f96775c52d484064dddb871043e7
<ide><path>Library/Homebrew/test/test_create.rb <ide> def test_create <ide> <ide> formula_file = CoreTap.new.formula_dir/"testball.rb" <ide> assert formula_file.exist?, "The formula source should have been created" <del> assert_match %(sha256 "#{TESTBALL_SHA256}"), formula_file.read <add> assert_match %Q...
1
Ruby
Ruby
extract output methods
6790f6adb05206b005a3b7aeb13c4de6379568a7
<ide><path>Library/Homebrew/cmd/deps.rb <ide> module Homebrew extend self <ide> def deps <ide> if ARGV.include? '--installed' <del> Formula.installed.each do |f| <del> puts "#{f.name}: #{f.deps*' '}" <del> end <add> puts_deps Formula.installed <ide> elsif ARGV.include? '--all' <del...
1
Ruby
Ruby
apply suggestions from code review
3e1c8ea8778d1a33f15212e33a701c969e5dfe34
<ide><path>Library/Homebrew/upgrade.rb <ide> def upgrade_formulae( <ide> formula_installers = formulae_to_install.map do |formula| <ide> Migrator.migrate_if_needed(formula, force: force) <ide> begin <del> fi = create_formula_installer( <add> fi = create_and_fetch_formula_installe...
1