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
Python
Python
remove shape_tuple usage for keras_tensor
59568edf69803a56d419cd211dd1ae6024d0195a
<ide><path>keras/engine/keras_tensor.py <ide> def type_spec_with_shape(spec, shape): <ide> # private fields.) <ide> shape = tf.TensorShape(shape) <ide> spec._shape = shape <del> if shape.rank is None: <del> spec._shape_tuple = None <del> else: <del> spec._shape_tuple = tuple(shape.as_list())...
1
Text
Text
add info for `change` column and table comment
e2ffa662564fd9ee9b9c6f386c833b11f521946c
<ide><path>guides/source/active_record_migrations.md <ide> and <ide> ### Using the `change` Method <ide> <ide> The `change` method is the primary way of writing migrations. It works for the <del>majority of cases, where Active Record knows how to reverse the migration <del>automatically. Currently, the `change` method...
1
Text
Text
add missing instruction text
ae7404eab72061c7710001769118e0d4e9ac2453
<ide><path>curriculum/challenges/russian/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.russian.md <ide> localeTitle: Ссылка на внешние страницы с элемент <ide> --- <ide> <ide> ## Description <add> <ide> <section id="description"> Вы можете использовать элементы <code>anchor<...
1
Ruby
Ruby
remove time stubs after each test
f51cf2e4b558787e6027b63d1ad051d553dfc80f
<ide><path>activerecord/test/cases/mixin_test.rb <ide> class TouchTest < ActiveRecord::TestCase <ide> travel_to Time.now <ide> end <ide> <del> teardown do <del> travel_back <del> end <del> <ide> def test_update <ide> stamped = Mixin.new <ide> <ide><path>activesupport/lib/active_support/testing/time_h...
3
Go
Go
stream the cp operation on the client
fdd8d4b7d9dbc32a76a708d0d51c201cf9c977f0
<ide><path>commands.go <ide> func (cli *DockerCli) CmdLogin(args ...string) error { <ide> authconfig.ServerAddress = serverAddress <ide> cli.configFile.Configs[serverAddress] = authconfig <ide> <del> body, statusCode, err := cli.call("POST", "/auth", cli.configFile.Configs[serverAddress]) <add> body, statusCode, err...
2
Javascript
Javascript
resolve react-dom/server (#688)
929041133cc05d958ddb5ab60ea82c5d8af324ad
<ide><path>server/build/babel/preset.js <ide> module.exports = { <ide> 'babel-runtime': babelRuntimePath, <ide> react: require.resolve('react'), <ide> 'react-dom': require.resolve('react-dom'), <add> 'react-dom/server': require.resolve('react-dom/server'), <ide> 'next/li...
1
Text
Text
add a function call to seed contents
aa0ae1ae6712ccec817286406cbddead4b74610b
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/apply-functional-programming-to-convert-strings-to-url-slugs.md <ide> function urlSlug(title) { <ide> <ide> } <ide> // Only change code above this line <add>urlSlug("A Mind Needs Books Like A Sword Needs A Whet...
1
Ruby
Ruby
treat future sdks as "latest"
e63eff22014d1a8ede20312f715fe062702abe2c
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def below_minimum_version? <ide> end <ide> <ide> def latest_sdk_version? <del> OS::Mac.version == OS::Mac.latest_sdk_version <add> OS::Mac.version >= OS::Mac.latest_sdk_version <ide> end <ide> <ide> def needs_clt_installed?
1
Python
Python
use less precision for almostequal
7664b74a2433df4527b0de578cbe830f0be51b1f
<ide><path>celery/tests/test_task.py <ide> def test_every_minute_execution_is_due(self): <ide> last_ran = self.now - timedelta(seconds=61) <ide> due, remaining = EveryMinutePeriodic().is_due(last_ran) <ide> self.assertTrue(due) <del> self.assertAlmostEquals(remaining, self.next_minute, 2)...
1
Mixed
Javascript
add cwd to cluster.settings
e0864e50ecf917cbfa98d443e6f122425d6447cf
<ide><path>doc/api/cluster.md <ide> changes: <ide> * `exec` {string} File path to worker file. **Default:** `process.argv[1]` <ide> * `args` {Array} String arguments passed to worker. <ide> **Default:** `process.argv.slice(2)` <add> * `cwd` {string} Current working directory of the worker process. **Default:**...
3
PHP
PHP
map small/tinyint to number input types
9102690ccaf33921024b7ab50b29a6d7556cbfae
<ide><path>src/View/Helper/FormHelper.php <ide> class FormHelper extends Helper <ide> 'idPrefix' => null, <ide> 'errorClass' => 'form-error', <ide> 'typeMap' => [ <del> 'string' => 'text', 'datetime' => 'datetime', 'boolean' => 'checkbox', <del> 'timestamp' => 'datetime', '...
2
Ruby
Ruby
use polymorphism to remove conditional
026c40fc1887b19af0f9a73a616d736f4ac4f5b4
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def define_named_route_methods(name, route) <ide> # <ide> class UrlHelper <ide> def self.create(route, options) <del> new route, options <add> if optimize_helper?(route) <add> Op...
1
Javascript
Javascript
fix the threshold for the florida keys
8a77b18d849234a641d6c0066796945f91e499d8
<ide><path>d3.geo.js <ide> d3.geo.albersUsa = function() { <ide> function albersUsa(coordinates) { <ide> var lon = coordinates[0], <ide> lat = coordinates[1]; <del> return (lat < 25 <add> return (lat < 21 <ide> ? (lon < -100 ? hawaii : puertoRico) <ide> : (lat > 50 ? alaska : lower48...
3
PHP
PHP
remove unneeded argument
0ecbd7fd259ba40affc33133ecae7f9095873730
<ide><path>src/Controller/ControllerFactory.php <ide> use Cake\Core\App; <ide> use Cake\Http\ControllerFactoryInterface; <ide> use Cake\Http\Exception\MissingControllerException; <del>use Cake\Http\Response; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Utility\Inflector; <ide> use Psr\Http\Message\ResponseInterfac...
1
Python
Python
add tests for print of float types
f66bcae0bf4fd13e499bf77fccf43eeb98bbdc47
<ide><path>numpy/core/tests/test_print.py <ide> <ide> import locale <ide> import sys <add>from StringIO import StringIO <ide> <ide> def check_float_type(tp): <ide> for x in [0, 1,-1, 1e10, 1e20] : <ide> def test_complex_types(): <ide> for t in [np.complex64, np.cdouble, np.clongdouble] : <ide> yield c...
1
PHP
PHP
add proper annotation
f633dc9aee95f245c485d1e9a9d55f83a3cfed1b
<ide><path>src/Filesystem/Folder.php <ide> public function tree($path = null, $exceptions = false, $type = null) <ide> continue; <ide> } <ide> } <add> /** @var \FilesystemIterator $item */ <ide> $item = $fsIterator->current(); <ide> if (...
1
Ruby
Ruby
add basic json option to brew cask
2d5ae645d9cc46af57aaaabbfe6bfb2db9f9e1bd
<ide><path>Library/Homebrew/cask/lib/hbc/cask.rb <ide> def dumpcask <ide> odebug "Cask instance method '#{method}':", send(method).to_yaml <ide> end <ide> end <add> <add> def to_hash <add> hsh = { <add> "name" => name, <add> "homepage" => homepage, <add> "url" => url, <add...
2
Ruby
Ruby
fix build failures on mysql
2eaa7be638854ec513be4966f526f2564aecb7dd
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def primary_keys(table_name) # :nodoc: <ide> <ide> def case_sensitive_comparison(table, attribute, column, value) # :nodoc: <ide> if column.collation && !column.case_sensitive? <del> table[attribute].eq...
2
Ruby
Ruby
add tests for cp_path_sub
522f7ea8c729ef6a5fddc5921ba045713236c28d
<ide><path>Library/Homebrew/test/test_pathname.rb <ide> def test_install_renamed_directory <ide> @dst.install @src <ide> assert_equal "a", File.read(@dst+@src.basename+@file.basename) <ide> end <add> <add> def test_cp_path_sub_file <add> @file.write "a" <add> @file.cp_path_sub @src, @dst <add> asser...
1
Javascript
Javascript
fix regexp nits in v8_prof_polyfill.js
6b9500bfc29f9917f13f0957ab719a9c09b3ea78
<ide><path>lib/internal/v8_prof_polyfill.js <ide> function versionCheck() { <ide> function macCppfiltNm(out) { <ide> // Re-grouped copy-paste from `tickprocessor.js` <ide> const FUNC_RE = /^([0-9a-fA-F]{8,16} [iItT] )(.*)$/gm; <add> const CLEAN_RE = /^[0-9a-fA-F]{8,16} [iItT] /; <ide> let entries = out.match(FUN...
1
Javascript
Javascript
fix support for haste packages
a26e0427846796809afb8a5742f864d733cad440
<ide><path>packager/src/ModuleGraph/node-haste/node-haste.js <ide> function getFakeModuleMap(hasteMap: HasteMap) { <ide> return module && module.type === 'Module' ? module.path : null; <ide> }, <ide> getPackage(name: string, platform: ?string): ?string { <del> const module = hasteMap.getModule(name, ...
2
Ruby
Ruby
use public_send for form tags
1ff67d82861c11cba7896e39536565ce93d0fc08
<ide><path>actionview/test/template/form_helper_test.rb <ide> class FooTag < ActionView::Helpers::Tags::Base <ide> def initialize; end <ide> end <ide> <add> class FooObject <add> <add> def method_missing(*args) <add> nil <add> end <add> <add> private <add> def private_property <add> ra...
1
Javascript
Javascript
fix path to require hello-world module
d2fba2bf35e3d55c55590116e7b7fd6951bb1fdb
<ide><path>test/addons/hello-world/test.js <ide> var assert = require('assert'); <del>var binding = require('./out/Release/binding'); <add>var binding = require('./build/Release/binding'); <ide> assert.equal('world', binding.hello()); <ide> console.log('binding.hello() =', binding.hello());
1
PHP
PHP
add docblocks for filesystem
0466fbefebf60c2a378ab475551c7ce9a400ccd6
<ide><path>src/Filesystem/Filesystem.php <ide> */ <ide> class Filesystem <ide> { <add> /** <add> * Direcotory type constant <add> * <add> * @var string <add> */ <ide> public const TYPE_DIR = 'dir'; <ide> <add> /** <add> * Find files (non-recursively) in given directory path. <add> * ...
1
Ruby
Ruby
remove use of mocha in the railties path tests
b36f159adf30657491e430b9c227de1bf2a9b042
<ide><path>railties/test/paths_test.rb <ide> require 'abstract_unit' <ide> require 'rails/paths' <del>require 'mocha/setup' # FIXME: stop using mocha <add>require 'minitest/mock' <ide> <ide> class PathsTest < ActiveSupport::TestCase <ide> def setup <del> File.stubs(:exist?).returns(true) <ide> @root = Rails::...
1
Python
Python
fix cropping2d empty list
f31256bca86bf551d9beeb4bd899234cc2f725d4
<ide><path>keras/layers/convolutional.py <ide> def compute_output_shape(self, input_shape): <ide> def call(self, inputs): <ide> # pylint: disable=invalid-unary-operand-type <ide> if self.data_format == 'channels_first': <add> if (inputs.shape[2] is not None and inputs.shape[3] is not None and <add> ...
2
Text
Text
fix typo and formatting, add colons
d57fdb6510f13343a88abe1977056935c624a7ee
<ide><path>README.md <ide> These are the available config options for making requests. Only the `url` is re <ide> }, <ide> <ide> formSerializer: { <del> visitor: (value, key, path, helpers)=> {}; // custom visitor funaction to serrialize form values <add> visitor: (value, key, path, helpers) => {}; // cu...
1
Javascript
Javascript
add test for output.charset
68b601716feeffa1cebd8a9d6d9a98da2498cd96
<ide><path>test/configCases/web/charset-attribute/chunk1.js <add>export default function () {} <ide><path>test/configCases/web/charset-attribute/index.js <add>const doImport = () => import(/* webpackChunkName: "chunk1" */ "./chunk1"); <add>__webpack_public_path__ = "https://example.com/public/path/"; <add> <add>it("sho...
3
Go
Go
skip testdevicepermissions on lxc
e55649192ef9c947e9c90018c71bbc0a8d99a546
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunPublishPort(c *check.C) { <ide> <ide> // Issue #10184. <ide> func (s *DockerSuite) TestDevicePermissions(c *check.C) { <add> testRequires(c, NativeExecDriver) <ide> const permissions = "crw-rw-rw-" <ide> out, status := dockerCmd(c, ...
1
Ruby
Ruby
simplify the code in target_scope
384984d7ca188d1dae59b204650b8319de9f9f05
<ide><path>activerecord/lib/active_record/associations/through_association.rb <ide> module ThroughAssociation #:nodoc: <ide> def target_scope <ide> scope = super <ide> chain.drop(1).each do |reflection| <del> relation = if reflection.scope <del> reflection.klass.all.i...
1
Javascript
Javascript
add tests for console.[info|error|warn]
fd49556c23a458455a460b6f043b079963e3576f
<ide><path>test/parallel/test-console.js <ide> assert.doesNotThrow(function() { <ide> }); <ide> <ide> // an Object with a custom .inspect() function <del>var custom_inspect = { foo: 'bar', inspect: function() { return 'inspect'; } }; <add>const custom_inspect = { foo: 'bar', inspect: () => { return 'inspect'; } }; <id...
1
Ruby
Ruby
match any values in hash match
7f2fda104a47b696b4333e424d078b28860cb5c3
<ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb <ide> def find_const(node, const_name) <ide> EOS <ide> <ide> def_node_search :dependency_name_hash_match?, <<~EOS <del> (hash (pair ({str sym} %1) ({str sym array} _))) <add> (hash (pair ({str sym} %1) (...))) <ide> EOS <ide> <...
1
PHP
PHP
add container support to controllerfactory
74166ca0b98185791aeb7fdb3c3aa6c2b3f0cd61
<ide><path>src/Controller/ControllerFactory.php <ide> namespace Cake\Controller; <ide> <ide> use Cake\Core\App; <add>use Cake\Core\ContainerInterface; <ide> use Cake\Http\ControllerFactoryInterface; <ide> use Cake\Http\Exception\MissingControllerException; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Utility\Infl...
2
Python
Python
move tf2_encoder_checkpoint_converter to public
da228b4224adce9534496e398a76802268230a45
<ide><path>official/nlp/bert/tf1_to_keras_checkpoint_converter.py <del># Copyright 2019 The TensorFlow Authors. All Rights Reserved. <del># <del># Licensed under the Apache License, Version 2.0 (the "License"); <del># you may not use this file except in compliance with the License. <del># You may obtain a copy of the L...
3
PHP
PHP
replace deprecated functions
8f2d3ef57d4d13de850181e5a253b14923893909
<ide><path>src/Illuminate/Http/Client/Factory.php <ide> namespace Illuminate\Http\Client; <ide> <ide> use Closure; <del>use function GuzzleHttp\Promise\promise_for; <add>use GuzzleHttp\Promise\Create; <ide> use GuzzleHttp\Psr7\Response as Psr7Response; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Tra...
2
PHP
PHP
add missing header
e42bfc62a9de2d8a3c48f3ccccafe3fe16d2b132
<ide><path>tests/TestCase/TestSuite/Fixture/TransactionStrategyTest.php <ide> <?php <ide> declare(strict_types=1); <ide> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The ...
1
PHP
PHP
remove welcome message and remove dead paths
530719bd95c240e02af1c4a02c9177a07cf74338
<ide><path>src/Shell/Task/ExtractTask.php <ide> class ExtractTask extends Shell <ide> */ <ide> protected $_extractCore = false; <ide> <add> /** <add> * No welcome message. <add> * <add> * @return void <add> */ <add> protected function _welcome() <add> { <add> } <add> <ide> /** ...
1
Java
Java
remove unnecessary workaround
1e8017107a2fd600de6b8743485d1da2f577dd33
<ide><path>spring-context/src/test/java/org/springframework/context/generator/ApplicationContextAotGeneratorRuntimeHintsTests.java <ide> <ide> import org.junit.jupiter.api.Test; <ide> <del>import org.springframework.aot.hint.MemberCategory; <ide> import org.springframework.aot.hint.RuntimeHints; <del>import org.sprin...
1
PHP
PHP
remove unused local var
1ff3f0b92776cfb8329ca6415f595d76c56291a0
<ide><path>src/View/Helper/FormHelper.php <ide> public function secure(array $fields = [], array $secureAttributes = []) <ide> if (empty($this->request['_Token'])) { <ide> return null; <ide> } <del> $locked = []; <ide> <ide> $tokenData = $this->_buildFieldToken( <ide> ...
1
Go
Go
call stickruntimedircontents only in rootless mode
56bea903efd2816722f2a71928872caacd54c586
<ide><path>cmd/dockerd/daemon.go <ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) { <ide> }() <ide> } <ide> <del> // Set sticky bit if XDG_RUNTIME_DIR is set && the file is actually under XDG_RUNTIME_DIR <del> if _, err := homedir.StickRuntimeDirContents(potentiallyUnderRuntimeDir); err != nil { <...
1
Text
Text
add changelog entry for `direct` method
960e73a96df55aecfaf196e35df80f8f0121f51d
<ide><path>actionpack/CHANGELOG.md <add>* Add the `direct` method to the routing DSL <add> <add> This new method allows customization of the routing behavior in two ways: <add> <add> 1. Custom url helpers: <add> <add> ``` ruby <add> direct(:apple) { "http://www.apple.com" } <add> <add> >> ...
1
Python
Python
prepare new pypi release
2ddd2bd557bd20e2f6856621bf22e8da8cb6acc8
<ide><path>keras/__init__.py <ide> from . import optimizers <ide> from . import regularizers <ide> <del>__version__ = '1.1.1' <add>__version__ = '1.1.2' <ide><path>setup.py <ide> <ide> <ide> setup(name='Keras', <del> version='1.1.1', <add> version='1.1.2', <ide> description='Deep Learning for Python'...
2
Javascript
Javascript
use local scope param in watcher
2931a6df034ad0b93b24718e86814e4592ade43e
<ide><path>src/ng/directive/ngModel.js <ide> function setupModelWatcher(ctrl) { <ide> // -> scope value did not change since the last digest as <ide> // ng-change executes in apply phase <ide> // 4. view should be changed back to 'a' <del> ctrl.$$scope.$watch(function ngModelWatch() { <del> var model...
1
Javascript
Javascript
handle unhandled rejections on quicsession
16b32eae3e76348c954e46965739fbfb91d097bd
<ide><path>lib/internal/quic/core.js <ide> class QuicSession extends EventEmitter { <ide> socket[kAddSession](this); <ide> } <ide> <add> [kRejections](err, eventname, ...args) { <add> this.destroy(err); <add> } <add> <ide> // Used to get the configured options for peer initiated QuicStream <ide> // inst...
1
Text
Text
give the commmand to install 1.0.0-rc
3ee3ae94de8555f853eace777fab3c8832ae7e9c
<ide><path>README.md <ide> Whether you used them or not, Redux takes a few minutes to get started with. <ide> <ide> ### Installation <ide> <add>To install the stable version: <ide> ``` <ide> npm install --save redux <ide> ``` <ide> <add>To install the release candidate (1.0.0-rc at the time of this writing): <add>``...
1
Python
Python
pass bind parameters to execute
625bf75332d12205197349d469690520efd874bd
<ide><path>airflow/hooks/dbapi_hook.py <ide> def get_pandas_df(self, sql, parameters=None): <ide> ''' <ide> import pandas.io.sql as psql <ide> conn = self.get_conn() <del> df = psql.read_sql(sql, con=conn) <add> df = psql.read_sql(sql, con=conn, params=parameters) <ide> con...
1
PHP
PHP
fix phpdoc return type
cfbc233215fb0800f4c0104bb7f748605e95d8f1
<ide><path>src/Illuminate/Mail/Mailer.php <ide> protected function createMessage() <ide> * <ide> * @param string $view <ide> * @param array $data <del> * @return \Illuminate\View\View <add> * @return string <ide> */ <ide> protected function getView($view, $data) <ide> {
1
PHP
PHP
apply fixes from styleci
cefd1c8a00d69aefb944c9c53f052039e6aa3d05
<ide><path>src/Illuminate/Support/Str.php <ide> public static function substrReplace($string, $replace, $offset = 0, $length = n <ide> public static function swap(array $map, $subject) <ide> { <ide> return strtr($subject, $map); <add> <ide> return str_replace(array_keys($map), array_values($map)...
1
Ruby
Ruby
fix meson template
b181328ac24395a291582aa38220fdbe54d98194
<ide><path>Library/Homebrew/formula_creator.rb <ide> class #{Formulary.class_s(name)} < Formula <ide> <% if mode == :cmake %> <ide> depends_on "cmake" => :build <ide> <% elsif mode == :meson %> <del> depends_on "meson-internal" => :build <add> depends_on "meson" => :build <id...
1
Javascript
Javascript
place holders for test animations
516dce8f38107e8585e438dc335e8fb4bdc04b09
<ide><path>src/animation/AnimationClip.js <ide> THREE.AnimationClip.prototype = { <ide> }; <ide> <ide> <add>THREE.AnimationClip.CreateMorphAnimation = function( morphTargetNames, duration ) { <add> // TODO <add> // - should create three keys per morphTarget track. <add> // - one track per morphTarget name. <add>}; ...
2
PHP
PHP
update helpers.php
db794ceea6734cc90286e04a8a2a48e5b4cd4130
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function rescue(callable $callback, $rescue = null, $report = true) <ide> report($e); <ide> } <ide> <del> return value($rescue); <add> return $rescue instanceof Closure ? $rescue($e) : $rescue; <ide> } <ide...
1
Python
Python
remove tolerance + drop_rows_to_fit by default
d415882b41e61c962df5c2c8086ec83fa4b71629
<ide><path>src/transformers/models/tapas/tokenization_tapas.py <ide> class TapasTokenizer(PreTrainedTokenizer): <ide> value for :obj:`lowercase` (as in the original BERT). <ide> cell_trim_length (:obj:`int`, `optional`, defaults to -1): <ide> If > 0: Trim cells so that the length is <= t...
3
PHP
PHP
fix stickler errors
25cba6f1aa4e04ae67bec570089c4393a29ae1f0
<ide><path>src/I18n/TranslatorFactory.php <ide> class TranslatorFactory extends BaseTranslatorFactory <ide> * Returns a new Translator. <ide> * @param string $locale The locale code for the translator. <ide> * @param array $messages The localized messages for the translator. <del> * @param FormatterI...
1
PHP
PHP
add typehint for urloptions argument
1ce7a97f382f159d4b3a182cc94837625a92ecba
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function sort($key, $title = null, array $options = []) <ide> * @return string By default, returns a full pagination URL string for use in non-standard contexts (i.e. JavaScript) <ide> * @link https://book.cakephp.org/3.0/en/views/helpers/paginator.h...
1
Ruby
Ruby
fix route creation when format is a blank string
ec14aad419381b502f510a9b3360f0e211e41066
<ide><path>actionpack/lib/action_dispatch/journey/formatter.rb <ide> def generate(name, options, path_parameters, parameterize = nil) <ide> defaults = route.defaults <ide> required_parts = route.required_parts <ide> parameterized_parts.keep_if do |key, value| <del> default...
2
Javascript
Javascript
refactor the repeat logic in readblock function
d54e425a96e2e5d3f68eababc3140eeedbcda900
<ide><path>pdf.js <ide> var FlateStream = (function() { <ide> }; <ide> <ide> constructor.prototype.readBlock = function() { <del> function repeat(stream, array, len, offset, what) { <del> var repeatLength = stream.getBits(len) + offset; <del> while (repeatLength-- > 0) <del> array[i++] = what; ...
1
Text
Text
add note to upgrade.md about new controller alias
e8f6597e2d01bdd824670dcd405f64421bbb8ec3
<ide><path>upgrade.md <ide> - `composer update`. <ide> - Replace `public/index.php`, `artisan.php`. <ide> - Add new `expire_on_close` option to `session` configuration file. <del>- Remove call to `redirectIfTrailingSlash` in `bootstrap/start.php` file. <ide>\ No newline at end of file <add>- Remove call to `redirectIfT...
1
PHP
PHP
fix failing test
2d9b6ccd8bce405dd57127d9df3c8931d653da9f
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testInputDatetime() { <ide> 'interval' => 15, <ide> 'options' => null, <ide> 'empty' => false, <del> 'id' => 'prueba' <add> 'id' => 'prueba', <add> 'required' => false, <ide> ]) <ide> ->will($this->returnValue('Thi...
1
Javascript
Javascript
add spec for exceptionsmanager
8ea749ad3e2cb8b73079fd7a3e409d723326c0aa
<ide><path>Libraries/Core/Devtools/parseErrorStack.js <ide> <ide> 'use strict'; <ide> <del>export type StackFrame = { <del> column: ?number, <del> file: string, <del> lineNumber: number, <del> methodName: string, <del>}; <add>import type {StackFrame} from '../NativeExceptionsManager'; <ide> <ide> export type Ext...
9
Mixed
Javascript
add reset method to chart prototype
16f23b2c44ebeccda1e144b3dd75e9c63f81307b
<ide><path>docs/09-Advanced.md <ide> myLineChart.data.datasets[0].data[2] = 50; // Would update the first dataset's v <ide> myLineChart.update(); // Calling update now animates the position of March from 90 to 50. <ide> ``` <ide> <add>#### .reset() <add> <add>Reset the chart to it's state before the initial animation....
3
Text
Text
add null length to crypto.subtle.derivebits
22fbf8333355ec9b34db32e48a92a3c22e671ca8
<ide><path>doc/api/webcrypto.md <ide> changes: <ide> <ide> * `algorithm`: {AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params} <ide> * `baseKey`: {CryptoKey} <del>* `length`: {number} <add>* `length`: {number|null} <ide> * Returns: {Promise} containing {ArrayBuffer} <ide> <ide> <!--lint enable maximum-li...
1
Javascript
Javascript
modernize js and tighten equality checking
3ffa6a884c48fe8dad6114cff022267fd836da82
<ide><path>test/parallel/test-child-process-cwd.js <ide> 'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <add>const common = require('../common'); <add>const assert = require('assert'); <ide> <del>var returns = 0; <add>let returns = 0; <ide> <ide> /* <ide> Spawns 'pwd' wit...
1
PHP
PHP
add apply(), map() and reduce()
ae66682c35d1f9055a82e9dc99cd29c9730f74e4
<ide><path>lib/Cake/Test/Case/Utility/Set2Test.php <ide> public function testFormatNullValues() { <ide> $expected = array('Boston, 42', 'Boondock, ', 'Venice Beach, '); <ide> $this->assertEquals($expected, $result); <ide> } <add> <add>/** <add> * Test map() <add> * <add> * @return void <add> */ <add> public functi...
2
Java
Java
use @payload on method declaration
e0103095301c580643d602ab6cd25d37b51d22ca
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Payload.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide>...
1
Javascript
Javascript
fix some stragglers
16249f0acd36d44d15a2d676ce932b10a7be06f2
<ide><path>test/unit/attributes.js <ide> test("attr(jquery_method)", function(){ <ide> equal( elem.style.paddingRight, "1px", "attr({...})"); <ide> }); <ide> <del>if ( !isLocal ) { <del> test("attr(String, Object) - Loaded via XML document", function() { <del> expect(2); <del> stop(); <del> jQuery.get("data/dashbo...
2
Ruby
Ruby
add underscore in front of internal method
8a91423b92e6583bf1799a000616982147ca2467
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def reload(options = nil) <ide> self.class.connection.clear_query_cache <ide> <ide> fresh_object = if self.class.default_scopes?(all_queries: true) && !(options && options[:unscoped]) <del> find_record(options) <add> _find_record(...
1
PHP
PHP
add connectoptions to doc block
3763b5f3db8e2d74c7a90e5b3f408f05d02d50b7
<ide><path>src/Routing/RouteBuilder.php <ide> public function namePrefix($value = null) <ide> * make sure that your mapped methods are also in the 'only' list. <ide> * - 'prefix' - Define a routing prefix for the resource controller. If the current scope <ide> * defines a prefix, this prefix will be ...
1
Ruby
Ruby
rescue only downloaderror
fd4f985cb6a915baf2dabb1d6b9b07b1d7d138a1
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch_fetchable f <ide> f.clear_cache if ARGV.force? <ide> <ide> already_fetched = f.cached_download.exist? <del> download = nil <ide> <ide> begin <ide> download = f.fetch <del> rescue => e <add> rescue DownloadError <ide> retry if re...
1
Javascript
Javascript
fix lint errors in src/
fbdcc71ad082065717027edec7460b8ea03e034c
<ide><path>src/createStore.js <del>import isPlainObject from './utils/isPlainObject'; <add>import isPlainObject from './utils/isPlainObject' <ide> <ide> /** <ide> * These are private action types reserved by Redux. <ide> import isPlainObject from './utils/isPlainObject'; <ide> */ <ide> export var ActionTypes = { <id...
9
Mixed
Text
use an empty query instead of select 1
8325d079763e058b4e685d1300889e99fc12478a
<ide><path>activerecord/CHANGELOG.md <add>* Use an empty query to check if the PostgreSQL connection is still active <add> <add> An empty query is faster than `SELECT 1`. <add> <add> *Heinrich Lee Yu* <add> <ide> * Add `ActiveRecord::Base#previously_persisted?` <ide> <ide> Returns `true` if the object ha...
2
Go
Go
remove checkpoint methods from builder backend
5fb3b4205a8b0635ff193791ef581939806eb8da
<ide><path>builder/builder.go <ide> type Backend interface { <ide> // ContainerUpdateCmdOnBuild updates container.Path and container.Args <ide> ContainerUpdateCmdOnBuild(containerID string, cmd []string) error <ide> <del> // CheckpointCreate checkpoints a running container <del> CheckpointCreate(container string, co...
1
Ruby
Ruby
add workflow scope to github.rb
f1ef1afd2130993cce87f27a634929810331ba1a
<ide><path>Library/Homebrew/utils/github.rb <ide> module GitHub <ide> <ide> CREATE_GIST_SCOPES = ["gist"].freeze <ide> CREATE_ISSUE_FORK_OR_PR_SCOPES = ["public_repo"].freeze <del> ALL_SCOPES = (CREATE_GIST_SCOPES + CREATE_ISSUE_FORK_OR_PR_SCOPES).freeze <add> CREATE_WORKFLOW_SCOPES = ["workflow"].freeze <add> ...
1
Javascript
Javascript
move aggrow table header into its own component
0c157bea367db82fc9955ee684ca920790e08292
<ide><path>local-cli/server/middleware/heapCapture/out/table.js <ide> dropFilter:React.PropTypes.func.isRequired, <ide> dropAction:React.PropTypes.func.isRequired};var <ide> <ide> <del>Table=function(_React$Component3){_inherits(Table,_React$Component3);// eslint-disable-line no-unused-vars <del>function Table(props)...
2
Javascript
Javascript
use strings as the type for dom elements
3aaccd2dc96cf229c0170d538fe81f7d22059a4e
<ide><path>src/browser/ReactDOM.js <ide> var ReactDescriptor = require('ReactDescriptor'); <ide> var ReactDescriptorValidator = require('ReactDescriptorValidator'); <ide> var ReactLegacyDescriptor = require('ReactLegacyDescriptor'); <del>var ReactDOMComponent = require('ReactDOMComponent'); <ide> <del>var mergeInto = ...
16
Python
Python
add test to hit rankwarning in polyutils._fit
dc4cdc8c1d388c921dd732596e9130f5db79f40f
<ide><path>numpy/polynomial/tests/test_classes.py <ide> from numpy.polynomial import ( <ide> Polynomial, Legendre, Chebyshev, Laguerre, Hermite, HermiteE) <ide> from numpy.testing import ( <del> assert_almost_equal, assert_raises, assert_equal, assert_, <add> assert_almost_equal, assert_raises, assert_equal, ...
1
Mixed
Ruby
add documentation for class_attribute options
5fa6563f09cd1ee84860364195249a9f7faa26a7
<ide><path>activesupport/lib/active_support/core_ext/class/attribute.rb <ide> class Class <ide> # Declare a class-level attribute whose value is inheritable by subclasses. <ide> # Subclasses can change their own value and it will not impact parent class. <ide> # <add> # ==== Options <add> # <add> # * <tt>:inst...
2
Ruby
Ruby
move renderers in to their own files
a85494dc0cba9f29e40ee910005b343ba8225434
<ide><path>actionview/lib/action_view.rb <ide> module ActionView <ide> autoload :Renderer <ide> autoload :AbstractRenderer <ide> autoload :PartialRenderer <del> autoload :CollectionRenderer, "action_view/renderer/partial_renderer" <del> autoload :ObjectRenderer, "action_view/renderer/partial...
4
Ruby
Ruby
handle empty database
1621eb0b9d296a80fb5190e28c1d2e8721fed030
<ide><path>Library/Homebrew/description_cache_store.rb <ide> def delete!(formula_name) <ide> # @return [nil] <ide> def populate_if_empty! <ide> return unless database.empty? <add> <ide> Formula.each { |f| update!(f.full_name, f.desc) } <ide> end <ide> <ide> def populate_if_empty! <ide> # @param [Repor...
2
PHP
PHP
replace camel_case with studly_case where needed
60f329b2ec008100971a7648c72b55ab0c978a88
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function getAttributeFromArray($key) <ide> */ <ide> public function hasGetMutator($key) <ide> { <del> return method_exists($this, 'get'.camel_case($key).'Attribute'); <add> return method_exists($this, 'get'.studly_case($key).'Attribute'); <ide>...
5
Python
Python
add unit test for issctype
b1fb17ab7c4e6479bd4632a2407930019ca4877e
<ide><path>numpy/core/tests/test_numerictypes.py <ide> def test_abstract_type(self): <ide> def test_non_type(self): <ide> assert_raises(ValueError, np.sctype2char, 1) <ide> <add>@pytest.mark.parametrize("rep, expected", [ <add> (np.int32, True), <add> (list, False), <add> (1.1, False), <add> (s...
1
Javascript
Javascript
defer invocation checks
65ec9f35e97c02e23c05232ac10d9192e98206be
<ide><path>test/async-hooks/test-tcpwrap.js <ide> function onconnection(c) { <ide> } <ide> <ide> function onserverClosed() { <del> checkInvocations(tcpserver, { init: 1, before: 1, after: 1, destroy: 1 }, <del> 'tcpserver when server is closed'); <ide> setImmediate(() => { <add> checkInvocation...
1
Ruby
Ruby
handle missing methods
cab0090048cc0caae1d73a74778f82dcd8ee4b2e
<ide><path>Library/Homebrew/formulary.rb <ide> def self.load_formula(name, path, contents, namespace) <ide> const_set(namespace, mod) <ide> begin <ide> mod.module_eval(contents, path) <del> rescue ArgumentError, ScriptError => e <add> rescue NoMethodError, ArgumentError, ScriptError => e <ide> ...
1
Python
Python
fix history in graph model
a6aa7940bf76aa12ed13df07c753f9b4abeaaa27
<ide><path>keras/models.py <ide> def fit(self, data, batch_size=128, nb_epoch=100, verbose=1, callbacks=[], <ide> val_ins = [validation_data[name] for name in self.input_order] + [standardize_y(validation_data[name]) for name in self.output_order] + sample_weight <ide> <ide> f = self._train <del> ...
1
Text
Text
add readme.md (nyu-mll)
1c5cd8e5f59154905c5ae0f47a8c8905618a12ff
<ide><path>model_cards/nyu-mll/roberta-base-100M-1/README.md <add>../roberta_1M_to_1B/README.md <ide>\ No newline at end of file <ide><path>model_cards/nyu-mll/roberta-base-100M-2/README.md <add>../roberta_1M_to_1B/README.md <ide>\ No newline at end of file <ide><path>model_cards/nyu-mll/roberta-base-100M-3/README.md <...
13
Python
Python
check clip for byteorder
0b26cf1b2b4d82fc88708733b453aa4699e4145f
<ide><path>numpy/core/tests/test_multiarray.py <ide> def _check_range(self,x,cmin,cmax): <ide> assert N.all(x >= cmin) <ide> assert N.all(x <= cmax) <ide> <del> def _clip_type(self,type_group,amax,cmin,cmax,inplace=False): <add> def _clip_type(self,type_group,array_max, <add> cl...
1
Ruby
Ruby
use strip instead of chomp.chomp
f231a8b07962d5307c16316106a294dbfa98dba7
<ide><path>Library/Homebrew/utils.rb <ide> def xctoolchain_path <ide> def sdk_path(v=MacOS.version) <ide> # The path of the MacOSX SDK. <ide> if !MacOS.xctools_fucked? and File.directory? `xcode-select -print-path`.chomp <del> path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.cho...
1
Javascript
Javascript
use common.port instead of hardcoded port number
debdc1dbb6851a0c341d58efe50d34a79807278a
<ide><path>test/sequential/test-debugger-invalid-args.js <ide> const { createServer } = require('net'); <ide> <ide> // Launch w/ invalid host:port. <ide> { <del> const cli = startCLI(['localhost:914']); <add> const cli = startCLI([`localhost:${common.PORT}`]); <ide> cli.quit() <ide> .then((code) => { <ide> ...
1
Javascript
Javascript
change misleading variable name
7abbbf2ff32b14da47ee4a8e345adb6e424b8689
<ide><path>test/pummel/test-crypto-dh-hash.js <ide> const hashes = { <ide> <ide> for (const name in hashes) { <ide> const group = crypto.getDiffieHellman(name); <del> const private_key = group.getPrime('hex'); <add> const prime = group.getPrime('hex'); <ide> const hash1 = hashes[name]; <ide> const hash2 = cryp...
1
Ruby
Ruby
extract transliteration code to a seperate method
a4629e707d80a5769f7a71ca6ed9471015e14dc9
<ide><path>activesupport/lib/active_support/inflector.rb <ide> require 'singleton' <add>require 'iconv' <ide> <ide> module ActiveSupport <ide> # The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, <ide> def demodulize(class_name_in_module) <ide...
1
Text
Text
add v3.24.2 to changelog.md
aa2594b09b8ce8e2df794aa46a1f86d03442ca43
<ide><path>CHANGELOG.md <ide> - [#19338](https://github.com/emberjs/ember.js/pull/19338) [BUGFIX] Add missing `deprecate` options (`for` + `since`) <ide> - [#19342](https://github.com/emberjs/ember.js/pull/19342) [BUGFIX] Fix misleading LinkTo error message <ide> <add>### v3.24.2 (February 10, 2021) <add> <add>- [#193...
1
Mixed
Go
add filter for `network ls` to hide predefined net
26dd026bd70c9c18a16b0e339821c309e56d8ff0
<ide><path>api/client/client.go <ide> type apiClient interface { <ide> NetworkCreate(options types.NetworkCreate) (types.NetworkCreateResponse, error) <ide> NetworkDisconnect(networkID, containerID string) error <ide> NetworkInspect(networkID string) (types.NetworkResource, error) <del> NetworkList() ([]types.Networ...
13
Javascript
Javascript
improve error message for unregistered callbacks
fd2cf119b13af65dbaeed9c5a6a34cfd27ef06af
<ide><path>Libraries/Utilities/MessageQueue.js <ide> class MessageQueue { <ide> let debug = this._debugInfo[cbID >> 1]; <ide> let module = debug && this._remoteModuleTable[debug[0]]; <ide> let method = debug && this._remoteMethodTable[debug[0]][debug[1]]; <del> invariant( <del> callback, <del> ...
1
Javascript
Javascript
filter more characters on font name
4275a68e2982840c201e3a5a43839603ca034d13
<ide><path>pdf.js <ide> var PartialEvaluator = (function() { <ide> <ide> var fontName = descriptor.get('FontName'); <ide> assertWellFormed(IsName(fontName), 'invalid font name'); <del> fontName = fontName.name.replace('+', '_'); <add> fontName = fontName.name.replace(/[\+,\-]/g, '_'); <ide> <ide...
1
Javascript
Javascript
add a version class to the player
ae423df4f56ae15bb105a8016822244d2bb7f9e1
<ide><path>src/js/player.js <ide> class Player extends Component { <ide> // Make player easily findable by ID <ide> Player.players[this.id_] = this; <ide> <add> // Add a major version class to aid css in plugins <add> const majorVersion = require('../../package.json').version.split('.')[0]; <add> <add> ...
2
Ruby
Ruby
remove datetime#to_time override
c685d12c19f953768ee445ab29faeb4a1be54535
<ide><path>activesupport/lib/active_support/core_ext/date_time/conversions.rb <ide> require 'active_support/values/time_zone' <ide> <ide> class DateTime <del> # Ruby 1.9 has DateTime#to_time which internally relies on Time. We define our own #to_time which allows <del> # DateTimes outside the range of what can be cr...
1
Javascript
Javascript
remove csrf from api calls
cda2fe768bc1d7ae5cd24588557693adc0c83213
<ide><path>server/middlewares/csurf.js <ide> import csurf from 'csurf'; <ide> <ide> export default function() { <del> return csurf({ cookie: true }); <add> const protection = csurf({ cookie: true }); <add> return function csrf(req, res, next) { <add> const path = req.path.split('/')[1]; <add> if (/api/.test(p...
2
Python
Python
use kombu disable_insecure_serializers
b51d3ed21953114e78bb1e64d15bffd81daa8009
<ide><path>celery/security/__init__.py <ide> """ <ide> from __future__ import absolute_import <ide> <del>from kombu.serialization import registry <add>from kombu.serialization import ( <add> registry, disable_insecure_serializers as _disable_insecure_serializers, <add>) <ide> <ide> from celery.exceptions import Im...
6
Text
Text
add 2.8.1 changelog
b7ac16200d112c0e3221712a68d93d77edcdbb63
<ide><path>CHANGELOG.md <ide> Changelog <ide> ========= <ide> <add>### 2.8.1 <add> <add>* bugfix [#1813](https://github.com/moment/moment/issues/1813): fix moment().lang([key]) incompatibility <add> <ide> ### 2.8.0 [See changelog](https://gist.github.com/ichernev/ac3899324a5fa6c8c9b4) <ide> <ide> * incompatible chang...
1
Python
Python
add docstrings for tok2vec component
39a3d64c013505a02a7b6b2116f83711dee01c42
<ide><path>spacy/pipeline/tok2vec.py <ide> def make_tok2vec(nlp: Language, name: str, model: Model) -> "Tok2Vec": <ide> <ide> <ide> class Tok2Vec(Pipe): <add> """Apply a "token-to-vector" model and set its outputs in the doc.tensor <add> attribute. This is mostly useful to share a single subnetwork between mult...
1
Mixed
Javascript
add controllist to dom property whitelist
d7157651f7b72d9888c0123e191f9b88cd8f41e9
<ide><path>docs/docs/reference-dom-elements.md <ide> React supports all `data-*` and `aria-*` attributes as well as these attributes: <ide> accept acceptCharset accessKey action allowFullScreen allowTransparency alt <ide> async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge <ide> charSet chec...
2