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
Ruby
Ruby
remove warning from integer ext test
90f3c28820fa126ccab4635868c9b69cc9ef2cef
<ide><path>activesupport/test/core_ext/integer_ext_test.rb <ide> def test_ordinal <ide> def test_positive <ide> assert 1.positive? <ide> assert_not 0.positive? <del> assert_not -1.positive? <add> assert_not(-1.positive?) <ide> end <ide> <ide> def test_negative <del> assert -1.negative? <add> ...
1
Mixed
Ruby
remove deprecation warning from attribute_missing
0d4075fb47db388f1365ce4784401fa4454a2499
<ide><path>activerecord/CHANGELOG.md <add>* Remove deprecation warning from `attribute_missing` for attributes that are columns. <add> <add> *Arun Agrawal* <add> <ide> * Remove extra decrement of transaction deep level. <ide> <ide> Fixes: #4566 <ide><path>activerecord/lib/active_record/attribute_methods.rb ...
3
Javascript
Javascript
use module.exports = {} on internal/readline
392a8987c62f0c54de9036659853467b48f113cd
<ide><path>lib/internal/readline.js <ide> const ansi = <ide> /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; <ide> <del> <del>module.exports = { <del> emitKeys, <del> stripVTControlCharacters <del>}; <add>var getStringWidth; <add>var isFullWidthCodePoint; <ide> <ide> if (process.bin...
1
PHP
PHP
apply fixes from styleci
315baf73daac7fb005d2135f37dc4bbf96e1062c
<ide><path>src/Illuminate/View/Factory.php <ide> public function first(array $views, $data = [], $mergeData = []) <ide> }); <ide> <ide> if (! $view) { <del> throw new InvalidArgumentException("None of the views in the given array exist."); <add> throw new InvalidArgumentException(...
1
PHP
PHP
fix path to cafile.pem
751b8def11796e8e5a5b735f24a1a3755b2b9e55
<ide><path>src/Network/Socket.php <ide> protected function _setSslContext($host) <ide> } <ide> } <ide> if (empty($this->_config['context']['ssl']['cafile'])) { <del> $dir = dirname(__DIR__); <add> $dir = dirname(dirname(__DIR__)); <ide> $this->_config['conte...
1
Ruby
Ruby
add tests for symbols passed to polymorphic_url
bfcbd6fd4cf5f60d8de3824355e0348b0fc91637
<ide><path>actionview/test/activerecord/polymorphic_routes_test.rb <ide> def test_string_with_options <ide> end <ide> end <ide> <add> def test_symbol <add> with_test_routes do <add> assert_equal "http://example.com/projects", polymorphic_url(:projects) <add> end <add> end <add> <add> def test_symbo...
1
Text
Text
add angular logo
b688afcf7d23b6fe29822bbd6f2c69c2c2f733c1
<ide><path>guide/english/angular/index.md <ide> title: Angular <ide> <ide> <ide> ## Angular <add>![alt text](https://angular.io/assets/images/logos/angular/angular.png) <ide> <ide> AngularJS (versions 1.x) is a JavaScript based open source Framework. It is cross platform and used to develop Single Page Web Applicati...
1
Ruby
Ruby
drop pointless string split
dae83fc89586938ca6bebcf22c1c38022bb91303
<ide><path>Library/Homebrew/exceptions.rb <ide> def dump <ide> puts <ide> puts "#{Tty.red}READ THIS#{Tty.reset}: #{Tty.em}#{ISSUES_URL}#{Tty.reset}" <ide> if formula.tap? <del> user, repo = formula.tap.split '/' <del> tap_issues_url = "https://github.com/#{user}/#{repo}/issues" <add> ...
1
Python
Python
add test for multilevel
3f3135bb5c2413a6b2207e58d523f1f9c44e1849
<ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch_test_lib.py <ide> def get_box_classifier_feature_extractor_model(self, name): <ide> 3, kernel_size=1, padding='SAME', name=name + '_layer2')]) <ide> <ide> <add>class FakeFasterRCNNKerasMultilevelFeatureExtractor( <add> faster_rcn...
1
Go
Go
add test for cgroup parent flag for build
f40dd69c97a5a3797f07d52fe5f76e296ef629dc
<ide><path>integration-cli/docker_cli_build_test.go <ide> func (s *DockerSuite) TestBuildEmptyStringVolume(c *check.C) { <ide> } <ide> <ide> } <add> <add>func TestBuildContainerWithCgroupParent(t *testing.T) { <add> testRequires(t, NativeExecDriver) <add> defer deleteImages() <add> <add> cgroupParent := "test" <add> ...
1
PHP
PHP
allow mocking protected methods on facades
8a2a2d5d9102ecab0cd4a69ffc073f09f03760e1
<ide><path>src/Illuminate/Support/Facades/Facade.php <ide> protected static function createFreshMockInstance($name) <ide> { <ide> static::$resolvedInstance[$name] = $mock = static::createMockByName($name); <ide> <add> $mock->shouldAllowMockingProtectedMethods(); <add> <ide> if (isset(static:...
1
Text
Text
provide example for media query
9a95f232e1e5d698342d07fad095f0560541da32
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-responsive-web-design-by-building-a-piano/612ec19d5268da7074941f84.md <ide> dashedName: step-32 <ide> <ide> # --description-- <ide> <del>Add another `@media` rule to apply if the browser window is bigger than `769px` but smaller than `1199px`....
1
Python
Python
fix issues with target assigner for pr
de3a34b1a0213cc8d6d6dc0931b0f9924cdc5456
<ide><path>research/object_detection/core/region_similarity_calculator.py <ide> def _compare(self, boxlist1, boxlist2): <ide> """ <ide> groundtruth_labels = boxlist1.get_field(fields.BoxListFields.classes) <ide> predicted_labels = boxlist2.get_field(fields.BoxListFields.classes) <add> # Currently support...
3
Ruby
Ruby
add missing monkey-patch
d4a2006f0404de6696876e0e252ebc707ce419ee
<ide><path>Library/Homebrew/dev-cmd/extract.rb <ide> def respond_to_missing?(*) <ide> end <ide> end <ide> <add>class Resource <add> def method_missing(*); end <add> <add> def respond_to_missing?(*) <add> true <add> end <add>end <add> <ide> class DependencyCollector <ide> def parse_symbol_spec(*); end <ide>
1
Python
Python
restrict pymorphy2 requirement to pymorphy2 mode
f4008bdb13e262c389e3d0c7017a634605f6e706
<ide><path>spacy/lang/ru/lemmatizer.py <ide> def __init__( <ide> mode: str = "pymorphy2", <ide> overwrite: bool = False, <ide> ) -> None: <del> try: <del> from pymorphy2 import MorphAnalyzer <del> except ImportError: <del> raise ImportError( <del> "...
4
Javascript
Javascript
add spec for animatedmodule
116ac65feade4e4cfb7b91b6a90ecdfb8fd137f5
<ide><path>Libraries/Animated/src/NativeAnimatedHelper.js <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <ide> * <del> * @flow <add> * @flow strict-local <ide> * @format <ide> */ <ide> 'use strict'; <ide> <del>const NativeAni...
4
Ruby
Ruby
do proper adapter check
18b9595814057095084f508b6837ad3c7331079f
<ide><path>activerecord/test/cases/finder_test.rb <ide> def test_exists <ide> def test_exists_fails_when_parameter_has_invalid_type <ide> begin <ide> assert_equal false, Topic.exists?(("9"*53).to_i) # number that's bigger than int <del> flunk if defined? ActiveRecord::ConnectionAdapters::PostgreSQLAdap...
1
PHP
PHP
fix pivot table losing its connection
172ebcb00d60400060b7fa5028a4558e0233b193
<ide><path>laravel/database/eloquent/pivot.php <ide> class Pivot extends Model { <ide> * <ide> * @var string <ide> */ <del> public $pivot_table; <add> protected $pivot_table; <add> <add> /** <add> * The database connection used for this model. <add> * <add> * @var Laravel\Database\Connection <add> */ <add> pr...
1
Python
Python
move most new loadtxt tests to its own file
90c71f0a8a84d9f17243e28e01527b5fd1ecdbb9
<ide><path>numpy/lib/tests/test_io.py <ide> def test_load_refcount(): <ide> with assert_no_gc_cycles(): <ide> x = np.loadtxt(TextIO("0 1 2 3"), dtype=dt) <ide> assert_equal(x, np.array([((0, 1), (2, 3))], dtype=dt)) <del> <del> <del>def test_loadtxt_scientific_notation(): <del> """Test that both ...
2
Python
Python
replace xrange by range
190f7df6dff4f06b5d61e04ab375185089fc91dd
<ide><path>numpy/core/tests/test_nditer.py <ide> def test_iter_buffered_reduce_reuse(): <ide> op_dtypes = [np.float, a.dtype] <ide> <ide> def get_params(): <del> for xs in xrange(-3**2, 3**2 + 1): <del> for ys in xrange(xs, 3**2 + 1): <add> for xs in range(-3**2, 3**2 + 1): <add> ...
1
Python
Python
improve test coverage of snshook
63d38b82a93595021dfdb438eadb6e8ef2ded7af
<ide><path>tests/providers/amazon/aws/hooks/test_sns.py <ide> def test_publish_to_target_plain(self): <ide> response = hook.publish_to_target(target, message) <ide> <ide> assert 'MessageId' in response <add> <add> @mock_sns <add> def test_publish_to_target_error(self): <add> hook = SnsHook...
1
Ruby
Ruby
improve manpage output
0fff6e0c09f2d1bdf9d1486b193840f0b1bc356e
<ide><path>Library/Homebrew/dev-cmd/man.rb <ide> require "erb" <ide> require "ostruct" <ide> require "cli_parser" <del>require "dev-cmd/audit" <del>require "dev-cmd/bottle" <del>require "dev-cmd/bump-formula-pr" <del>require "dev-cmd/create" <del>require "dev-cmd/edit" <del>require "dev-cmd/extract" <del>require "dev-c...
1
PHP
PHP
update doc blocks
2a8242141209a4912d00ee8be596dd7b33f2487f
<ide><path>src/Core/Plugin.php <ide> <?php <ide> /** <del> * PHP 5 <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * <ide> * <ide> * It also can retrieve plugin paths and load their bootstrap and r...
1
Python
Python
add test for openapi schemagenerator url argument
30a21a98dc4b3f85746315c974bd2e007a3e5393
<ide><path>tests/schemas/test_openapi.py <ide> def test_prefixed_paths_construction(self): <ide> assert '/v1/example/' in paths <ide> assert '/v1/example/{id}/' in paths <ide> <add> def test_mount_url_prefixed_to_paths(self): <add> patterns = [ <add> url(r'^example/?$', views.Examp...
1
Ruby
Ruby
remove default arguments that aren't used
b3d73e789cc8616fad30621e96f872bfd86ee099
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def empty? <ide> routes.empty? <ide> end <ide> <del> def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil, anchor = true) <add> def add_route(app, conditions, requirements, defaults, name, anchor) <...
1
Text
Text
add changelog message for pr
141a0859f8162002fefd38c8b46bc28f6f688f60
<ide><path>actionview/CHANGELOG.md <add>* Improve error messages when file does not exist at filepath. <add> <add> *Ted Whang* <add> <ide> * Add `:country_code` option to `sms_to` for consistency with `phone_to`. <ide> <ide> *Jonathan Hefner*
1
Text
Text
add instructions to fetch the dataset
fe25eefc1589a0362e1b60c30734f88f666aff5b
<ide><path>examples/README.md <ide> similar API between the different models. <ide> | [GLUE](#glue) | Examples running BERT/XLM/XLNet/RoBERTa on the 9 GLUE tasks. Examples feature distributed training as well as half-precision. | <ide> | [SQuAD](#squad) | Using BERT for question answering, ...
1
Text
Text
fix broken links in arabic challenges
fce8e8efee916c8b5fdfbc3ba954d4ba98b8f076
<ide><path>curriculum/challenges/arabic/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.arabic.md <ide> localeTitle: التنازل مع القيمة المرتجعة <ide> --- <ide> <ide> ## Description <del><section id="description"> إذا كنت ستتذكر من مناقشتنا لـ <a href="javascript-algorithm...
3
Javascript
Javascript
add some documentation to ember.view helpers
b0d48458e28d484ac58b8ea85698aaa589e578a5
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View.reopen({ <ide> }); <ide> <ide> Ember.View.reopenClass({ <add> <add> /** <add> @private <add> <add> Parse a path and return an object which holds the parsed properties. <add> <add> For example a path like "content.isEnabled:enabled:disabled" w...
1
Text
Text
add images of deprecations
d523f9e1ecc1163fd2ba90e73a29769d0a51db5e
<ide><path>docs/upgrading/upgrading-your-package.md <ide> All of the methods in Atom core that have changes will emit deprecation messages <ide> <ide> Just run your specs, and all the deprecations will be displayed in yellow. <ide> <del>TODO: image of deprecations in specs <add>![spec-deps](https://cloud.githubuserco...
1
PHP
PHP
fix inconsistency in php7.1
5ac906226510176d45ed5095f040bcca28b78846
<ide><path>src/Cache/CacheRegistry.php <ide> protected function _create($class, $alias, $config) <ide> * @param string $name The adapter name. <ide> * @return void <ide> */ <del> public function unload($name) <add> public function unload(string $name) <ide> { <ide> unset($this->_loaded[...
1
Python
Python
apply itertools fixer
5de56efaad908f2b731a7eda2b9ca2a9196f820a
<ide><path>numpy/lib/npyio.py <ide> <ide> if sys.version_info[0] >= 3: <ide> import pickle <add> imap = map <ide> else: <ide> import cPickle as pickle <add> imap = itertools.imap <ide> <ide> loads = pickle.loads <ide> <ide> def genfromtxt(fname, dtype=float, comments='#', delimiter=None, <ide> ...
3
PHP
PHP
update factorylocator tests
955914ccda06972170fb9f28639370a316064e4a
<ide><path>tests/TestCase/Datasource/FactoryLocatorTest.php <ide> <ide> use Cake\Datasource\FactoryLocator; <ide> use Cake\Datasource\LocatorInterface; <del>use Cake\Datasource\RepositoryInterface; <ide> use Cake\TestSuite\TestCase; <del>use TestApp\Stub\Stub; <ide> <ide> /** <ide> * FactoryLocatorTest test case <id...
1
PHP
PHP
interface the queue factory
d08dc59aa0eb1d19ce9cd936a58da32d609dbfbe
<ide><path>src/Illuminate/Contracts/Queue/Factory.php <add><?php namespace Illuminate\Contracts\Queue; <add> <add>interface Factory { <add> <add> /** <add> * Resolve a queue connection instance. <add> * <add> * @param string $name <add> * @return \Illuminate\Contracts\Queue\Queue <add> */ <add> public function c...
3
PHP
PHP
ignore static properties in serializes model
8fad785de66ffaa18e7d8b9e9cd7c4465e60daac
<ide><path>src/Illuminate/Queue/SerializesModels.php <ide> public function __sleep() <ide> )); <ide> } <ide> <del> return array_map(function ($p) { <del> return $p->getName(); <del> }, $properties); <add> return array_filter(array_map(function ($p) { <add> ...
1
Ruby
Ruby
remove private attribute? warning
16bd04f6bbb4bf461ca375e077e84e224552bc79
<ide><path>actionpack/lib/action_view/dependency_tracker.rb <ide> def dependencies <ide> render_dependencies + explicit_dependencies <ide> end <ide> <add> attr_reader :name, :template <add> private :name, :template <add> <ide> private <del> attr_reader :name, :template <ide> <ide>...
1
Javascript
Javascript
fix a bunch of warnings from firebug strict mode
26389c083ab26499ac3f9836ff4dcee82ebaaf7d
<ide><path>fonts.js <ide> var Font = (function () { <ide> return font.getBytes(); <ide> }, <ide> <del> convert: function font_convert(name, font, properties) { <add> convert: function font_convert(fontName, font, properties) { <ide> var otf = new Uint8Array(kMaxFontFileSize); <ide> <ide> f...
2
PHP
PHP
use implicit mixed
648e2dd12b7acdae55a8129c4a90c3c44c3e8acf
<ide><path>src/Http/Uri.php <ide> public function __construct(UriInterface $uri, string $base, string $webroot) <ide> * @param string $name The attribute to read. <ide> * @return mixed <ide> */ <del> public function __get(string $name): mixed <add> public function __get(string $name) <ide> { <i...
1
Python
Python
remove use of compiler module
9917a12d397e6e1188823752aa21996dbb1444d5
<ide><path>numpy/lib/utils.py <ide> class SafeEval(object): <ide> <ide> """ <ide> <del> if sys.version_info[0] < 3: <del> def visit(self, node, **kw): <del> cls = node.__class__ <del> meth = getattr(self, 'visit'+cls.__name__, self.default) <del> return meth(node, **kw) ...
1
Text
Text
update model documentation with recent changes
12318cf4ff0368fe4a296b2076950fd029928ad6
<ide><path>docs/sources/models.md <ide> model = keras.models.Sequential() <ide> - __optimizer__: str (name of optimizer) or optimizer object. See [optimizers](optimizers.md). <ide> - __loss__: str (name of objective function) or objective function. See [objectives](objectives.md). <ide> ...
1
PHP
PHP
add opera mobi to mobile detectors
621cb43e93eeb2ee64667ba21d5a3a8e114cc832
<ide><path>lib/Cake/Network/CakeRequest.php <ide> class CakeRequest implements ArrayAccess { <ide> 'flash' => array('env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/'), <ide> 'mobile' => array('env' => 'HTTP_USER_AGENT', 'options' => array( <ide> 'Android', 'AvantGo', 'BlackBerry', 'DoCoMo', '...
1
Text
Text
fix an awkward expression in the readme
ee227dda766d769b7499a5549e8ed77b5e88105b
<ide><path>README.md <ide> to free you to focus on the parts of the problem that really matter. <ide> simple workflows should be quick and easy, while arbitrarily advanced workflows <ide> should be *possible* via a clear path that builds upon what you've already learned. <ide> - **Powerful** -- Keras provides industry-...
1
Python
Python
fix python 2.5 test failure
4cdf4474856082ce7fbdc9366361c3b33ce031a9
<ide><path>libcloud/compute/drivers/ec2.py <ide> def create_node(self, **kwargs): <ide> if not isinstance(kwargs['ex_blockdevicemappings'], (list, tuple)): <ide> raise AttributeError('ex_blockdevicemappings not list or tuple') <ide> <del> for idx, mapping in enumerate(kwargs['ex_...
1
Ruby
Ruby
add some basic render_test to abstractcontroller
03960048616593c249745d1e321dbcc7f0483c76
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def formats <ide> [:"*/*"] <ide> end <ide> <del> # Refactor out all mailer_name <del> def _prefix <del> mailer_name <del> end <del> <ide> class << self <ide> attr_writer :mailer_name <ide> <ide><path>actionpack/lib/abstract_cont...
5
Javascript
Javascript
fix missing name copy in bufferattribute.copy
03f74c4dca672a6d413138f70b4a971997379edf
<ide><path>src/core/BufferAttribute.js <ide> Object.assign( BufferAttribute.prototype, { <ide> <ide> copy: function ( source ) { <ide> <add> this.name = source.name; <ide> this.array = new source.array.constructor( source.array ); <ide> this.itemSize = source.itemSize; <ide> this.count = source.count;
1
Java
Java
use collection factory methods when applicable
941b6af9acada0c85522a1aeb91178f71c2c641a
<ide><path>spring-beans/src/main/java/org/springframework/beans/BeanUtils.java <ide> import java.util.Arrays; <ide> import java.util.Collections; <ide> import java.util.Date; <del>import java.util.HashMap; <ide> import java.util.List; <ide> import java.util.Locale; <ide> import java.util.Map; <ide> public abstract clas...
14
Text
Text
add debugging native code
2fe55734921d07952e4c5cbf78af5f2a8b3ea31c
<ide><path>docs/Debugging.md <ide> The debugger will receive a list of all project roots, separated by a space. For <ide> <ide> 5. In a new chrome tab, open : ```chrome://inspect```, click on 'Inspect device' (the one followed by "Powered by Stetho") <ide> <add>## Debugging native code <add> <add>When working with na...
1
Text
Text
fix module name in section 3
71129dc747fd59bfcd3b3c1ffd250988a979d30a
<ide><path>docs/tutorial/3-class-based-views.md <ide> We can also write our API views using class based views, rather than function ba <ide> <ide> We'll start by rewriting the root view as a class based view. All this involves is a little bit of refactoring. <ide> <del> from snippet.models import Snippet <del> ...
1
Python
Python
remove some unnecesary uses of bool
98788d3c3af9f6cce2b94c276d17726f46608b08
<ide><path>django/contrib/gis/gdal/datasource.py <ide> def __init__(self, ds_input, ds_driver=False, write=False, encoding='utf-8'): <ide> else: <ide> raise OGRException('Invalid data source input type: %s' % type(ds_input)) <ide> <del> if bool(ds): <add> if ds: <ide> self...
7
PHP
PHP
remove bonus intval()
5270721adee6aa4b2d07a61f589f729092ab9632
<ide><path>lib/Cake/Test/Case/Utility/SetTest.php <ide> public function testClassicExtract() { <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add>/** <add> * test classicExtract with keys that exceed 32bit max int. <add> * <add> * @return void <add> */ <add> public function testClassicExtractMaxInt()...
2
Ruby
Ruby
fix variable name
2b1d7ea335afa46fa167a680492cdf5461c46064
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> def recompile!(_options) <ide> end <ide> <ide> # Wraps code with filter <del> def apply(code) <add> def apply(next_callback) <ide> conditions = conditions_lambdas <ide> source = make_lambda @raw_filter <ide> <ide> def...
1
Python
Python
use new huggingface_hub tools for download models
5cd40323684c183c30b34758aea1e877996a7ac9
<ide><path>src/transformers/configuration_utils.py <ide> <ide> from packaging import version <ide> <del>from requests import HTTPError <del> <ide> from . import __version__ <ide> from .dynamic_module_utils import custom_object_save <del>from .utils import ( <del> CONFIG_NAME, <del> HUGGINGFACE_CO_RESOLVE_ENDPOI...
13
Javascript
Javascript
add ember.handlebars.get in ember-htmlbars/compat
2ac6f1219e664a95d656f4656b63ac51aca65c97
<ide><path>packages/ember-handlebars/lib/ext.js <ide> import { <ide> readArray, <ide> readHash <ide> } from "ember-metal/streams/read"; <add>import handlebarsGet from "ember-htmlbars/compat/handlebars-get"; <ide> <ide> var slice = [].slice; <ide> <del>/** <del> Lookup both on root and on window. If the path star...
3
Text
Text
clarify fs.access works on directories too
d976d66cfc3159e0405ab66dcac3cb14fba2c5da
<ide><path>doc/api/fs.md <ide> added: v1.0.0 <ide> * `mode` {Integer} <ide> * `callback` {Function} <ide> <del>Tests a user's permissions for the file specified by `path`. `mode` is an <del>optional integer that specifies the accessibility checks to be performed. The <del>following constants define the possible values...
1
Text
Text
add contribution and license in readme
40093e13dc89c2e424d5c66320ded2fa399ecb1d
<ide><path>README.md <ide> The [research models](https://github.com/tensorflow/models/tree/master/research) <ide> The [samples folder](samples) contains code snippets and smaller models that demonstrate features of TensorFlow, including code presented in various blog posts. <ide> <ide> The [tutorials folder](tutorials...
1
PHP
PHP
remove duplicated attribute handling code
6279a0d8ae6b35aa2a725ee7c061dd7cf36cfe9a
<ide><path>Cake/View/Input/SelectBox.php <ide> */ <ide> class SelectBox { <ide> <del>/** <del> * Minimized attributes <del> * <del> * @var array <del> */ <del> protected $_minimizedAttributes = array( <del> 'compact', 'checked', 'declare', 'readonly', 'disabled', 'selected', <del> 'defer', 'ismap', 'nohref', 'nosha...
1
PHP
PHP
add proper method to cut the string
f405fdfade475709b0f99ca0a89ddd7c76bbc65b
<ide><path>src/Filesystem/File.php <ide> public function name() <ide> } <ide> <ide> /** <del> * Returns the file basename. simulate the php basename(). <add> * Returns the file basename. simulate the php basename() for multibyte (mb_basename). <ide> * <ide> * @param string $path Path to file ...
2
Ruby
Ruby
fix bug in levenshtein distance calculation
6f0a69c5899ebdc892e2aa23e68e2604fa70fb73
<ide><path>guides/rails_guides/levenshtein.rb <ide> def self.distance str1, str2 <ide> t = str2 <ide> n = s.length <ide> m = t.length <del> max = n/2 <ide> <ide> return m if (0 == n) <ide> return n if (0 == m) <del> return n if (n - m).abs > max <ide> <ide> d = (0..m).to_...
1
Javascript
Javascript
remove event listener on dispose
c70c29885a96c3b2b77fe9bd28bb30db763f0d7e
<ide><path>src/js/control-bar/progress-control/seek-bar.js <ide> class SeekBar extends Slider { <ide> <ide> this.off(this.player_, ['ended', 'durationchange', 'timeupdate'], this.update); <ide> if (this.player_.liveTracker) { <del> this.on(this.player_.liveTracker, 'liveedgechange', this.update); <add> ...
1
Java
Java
register annotated handlers in rsocketrequester
dd15ff79d7223bb33c8e69558d69deb546aadfe1
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequesterBuilder.java <ide> <ide> import java.net.URI; <ide> import java.util.ArrayList; <add>import java.util.Arrays; <ide> import java.util.List; <ide> import java.util.function.Consumer; <ide> import java.util.stream.Strea...
3
Go
Go
add unit test to ensure log line order
5ba6cab0a9b9e51029fd48858ba6722103356b1a
<ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go <ide> import ( <ide> "errors" <ide> "fmt" <ide> "net/http" <add> "reflect" <ide> "runtime" <ide> "strings" <ide> "testing" <ide> func TestCollectBatchMaxTotalBytes(t *testing.T) { <ide> t.Errorf("Expected message to be %s but was %s", "B", message[len(mess...
1
PHP
PHP
add missing tests for mysql
7bc185df5b990ecfae7e4faafd575dab6e05d7b8
<ide><path>lib/Cake/Test/TestCase/Model/Datasource/Database/Driver/MysqlTest.php <ide> public function setUp() { <ide> $config = Configure::read('Datasource.test'); <ide> $this->skipIf(strpos($config['datasource'], 'Mysql') === false, 'Not using Mysql for test config'); <ide> } <add> <ide> /** <ide> * Test connec...
1
Javascript
Javascript
add day marker character for japanese
6dd81c9f993de7352fce5ad303d441aff2f422cb
<ide><path>locale/ja.js <ide> lastWeek : '[前週]dddd LT', <ide> sameElse : 'L' <ide> }, <add> ordinalParse : /\d{1,2}日/, <add> ordinal : function (number, period) { <add> switch (period) { <add> case 'd': <add> case 'D': <add> case ...
1
Python
Python
add groups in ci output for parallell tasks
62bf0f8a611688d551413476d14b649d095b35de
<ide><path>dev/breeze/src/airflow_breeze/commands/ci_commands.py <ide> def fix_ownership(github_repository: str, use_sudo: bool, verbose: bool, dry_run <ide> shell_params.airflow_image_name_with_tag, <ide> "/opt/airflow/scripts/in_container/run_fix_ownership.sh", <ide> ] <del> run_command( <del> ...
14
Javascript
Javascript
correct the spec name
cb44450e923ec6040c4b7151d0106fd2dbd52f41
<ide><path>spec/git-repository-async-spec.js <ide> describe('GitRepositoryAsync', () => { <ide> repo = GitRepositoryAsync.open(workingDirectory) <ide> }) <ide> <del> it('returns 0, 0 for a branch with no upstream', async () => { <add> it('returns 1, 0 for a branch which is ahead by 1', async ()...
1
Text
Text
update props description
f965e6072d5346dbe8092df56de29df1e68b08b2
<ide><path>guide/portuguese/react/props/index.md <ide> localeTitle: Adereços <ide> --- <ide> ### Quais são os adereços? <ide> <del>Adereços (abreviação de propriedades) são a data passada no componente. Eles são imutáveis ​​(somente leitura). <ide>\ No newline at end of file <add>Adereços (abreviação de propriedades) ...
1
Javascript
Javascript
add a currentview property to statemanager
7429f461cb8b5ee82b12efefe5e15f936b25ff97
<ide><path>packages/ember-states/lib/state_manager.js <ide> Ember.StateManager = Ember.State.extend({ <ide> <ide> currentState: null, <ide> <add> /** <add> If the current state is a view state or the descendent of a view state, <add> this property will be the view associated with it. If there is no <add> ...
2
PHP
PHP
fix failing test case for `validate` option
6337937a62670838af94852f44c8867e3630243a
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testSaveDeepAssociationOptions() { <ide> ->with($entity->author->supervisor, ['name' => 'Marc']) <ide> ->will($this->returnValue($entity->author->supervisor)); <ide> <del> $options = new \ArrayObject([ <del> 'validate' => false, <del> 'atomic...
1
PHP
PHP
fix unrelated test
3db385623bf1bc56ca49b8a3bf01aff5c44c5abb
<ide><path>tests/Integration/View/templates/components/hello-span.blade.php <ide> @props([ <ide> 'name', <ide> ]) <del> <ide> <span {{ $attributes }}> <ide> Hello {{ $name }} <ide> </span>
1
Text
Text
add micnic as collaborator
00f822f276c08465db3f6c70f154e9f28cc372d6
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Brendan Ashworth** ([@brendanashworth](https://github.com/brendanashworth)) &lt;brendan.ashworth@me.com&gt; <ide> * **Vladimir Kurchatkin** ([@vkurchatkin](https://github.com/vkurchatkin)) &lt;vladimir.kurchatkin@gmail.com&g...
1
Python
Python
fix sign order for clipvalue
46a2fb6fd8e52b02df78f1416cc9fbd4b3156604
<ide><path>keras/optimizers.py <ide> def get_gradients(self, loss, params): <ide> grads = [clip_norm(g, self.clipnorm, norm) for g in grads] <ide> <ide> if hasattr(self, 'clipvalue') and self.clipvalue > 0: <del> grads = [T.clip(g, self.clipvalue, -self.clipvalue) for g in grads] <add> ...
1
Python
Python
fix typo in warning messages
74944fabc1dcaf0a42418029366eae8af23316bc
<ide><path>weave/build_tools.py <ide> def configure_temp_dir(temp_dir=None): <ide> if temp_dir is None: <ide> temp_dir = tempfile.gettempdir() <ide> elif not os.path.exists(temp_dir) or not os.access(temp_dir,os.W_OK): <del> print "warning: specified temp_dir '%s' does not exist or is " ...
1
Python
Python
fix local starage driver, add tests for it
ed1d64c02589e904ef2a034569751881c39c4248
<ide><path>libcloud/storage/drivers/local.py <ide> def download_object_range_as_stream(self, obj, start_bytes, end_bytes=None, <ide> file_size = len(obj_file.read()) <ide> <ide> if not end_bytes: <del> read_bytes = file_size <add> read_bytes = (file_size - start_by...
2
PHP
PHP
remove unused variable
437e1f0668f94000f2c7ce0abcf774f00c30ce9d
<ide><path>src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php <ide> public function handle() <ide> { <ide> $this->components->info('Running schedule tasks every minute.'); <ide> <del> [$lastExecutionStartedAt, $keyOfLastExecutionWithOutput, $executions] = [null, null, []]; <add> [$last...
1
Ruby
Ruby
use public api when adding legacy options
045a02aa74bf4924ae7d2d2108a2cb89d75a6897
<ide><path>Library/Homebrew/formula.rb <ide> def self.method_added method <ide> <ide> specs.each do |spec| <ide> instance.options.each do |opt, desc| <del> spec.options << Option.new(opt[/^--(.+)$/, 1], desc) <add> spec.option(opt[/^--(.+)$/, 1], desc) <ide> end <ide> end ...
1
Ruby
Ruby
use map rather than array concatenation
c6b4ef082f80255c1e3ec6e4feb1d199ed1e7efa
<ide><path>activemodel/lib/active_model/errors.rb <ide> def add_on_blank(attributes, options = {}) <ide> # company.errors.full_messages # => <ide> # ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Address can't be blank"] <ide> def full_messages <del> full_messages = [] <d...
1
Javascript
Javascript
remove duplicate class members
c0e489b7293f15858cb706f1b8587600e429af28
<ide><path>Libraries/Animated/AnimatedEvent.js <ide> function validateMapping(argMapping, args) { <ide> class AnimatedEvent { <ide> _argMapping: $ReadOnlyArray<?Mapping>; <ide> _listeners: Array<Function> = []; <del> _callListeners: Function; <ide> _attachedEvent: ?{detach: () => void, ...}; <ide> __isNative: ...
4
Javascript
Javascript
handle multi-file solutions
301212e194250051413ff846e3c0ea8cc9f37138
<ide><path>curriculum/getChallenges.js <ide> Trying to parse ${fullPath}`); <ide> return prepareChallenge(challenge); <ide> } <ide> <add>// TODO: tests and more descriptive name. <add>function filesToObject(files) { <add> return reduce( <add> files, <add> (map, file) => { <add> map[file.key] = { <add> ...
3
PHP
PHP
review feedback on docs and class refs
ec4c3647b3284537078ecfebf3175a69b4b50223
<ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php <ide> protected function getRenderer($exception) <ide> * <ide> * @param \Psr\Http\Message\ServerRequestInterface $request The current request. <ide> * @param \Exception $exception The exception to log a message for. <del> * @return void|null ...
2
Mixed
Ruby
fix relation merging with skip_query_cache!
28ef2de2292695815eace5f2645fe4e305768403
<ide><path>activerecord/CHANGELOG.md <del>* Add `ActiveRecord::Base.base_class?` predicate. <add>* Fix relation merging with skip_query_cache! <add> <add> *James Williams* <add> <add>* Add `ActiveRecord::Base.base_class?` predicate. <ide> <ide> *Bogdan Gusiev* <ide> <ide><path>activerecord/lib/active_re...
3
PHP
PHP
remove unused element
248896c9a045534b4dc599dec935c74b40f4636e
<ide><path>src/View/XmlView.php <ide> class XmlView extends SerializedView <ide> */ <ide> protected $_responseType = 'xml'; <ide> <del> /** <del> * Option to allow setting an array of custom options for Xml::fromArray() <del> * <del> * For e.g. 'format' as 'attributes' instead of 'tags'. <del> ...
1
Mixed
Ruby
add option to stop swallowing errors on callbacks
b11b1e868a89319b8523c5f7b0da4c130ee42992
<ide><path>activerecord/CHANGELOG.md <add>* Currently, Active Record will rescue any errors raised within <add> after_rollback/after_create callbacks and print them to the logs. Next versions of rails <add> will not rescue those errors anymore, and just bubble them up, as the other callbacks. <add> <add> Thi...
5
Ruby
Ruby
handle legacy bottle os tags
42c9ecd6654e65ed39f1cf20ccc8e24007254c3a
<ide><path>Library/Homebrew/software_spec.rb <ide> def checksums <ide> checksum_os_versions = send checksum_type <ide> next unless checksum_os_versions <ide> os_versions = checksum_os_versions.keys <del> os_versions.map! {|osx| MacOS::Version.from_symbol osx } <add> os_versions.map! {|osx| M...
1
Python
Python
fix regexes with escape sequence
4c722e9e227bb5850172100ea51d8d498adf1aa7
<ide><path>src/transformers/dynamic_module_utils.py <ide> def get_relative_imports(module_file): <ide> content = f.read() <ide> <ide> # Imports of the form `import .xxx` <del> relative_imports = re.findall("^\s*import\s+\.(\S+)\s*$", content, flags=re.MULTILINE) <add> relative_imports = re.findall(r"...
2
Java
Java
fix subtle bugs in cloning and fabricuimanager
ac929ef4f6069dfbf4a9be93a33dd938b3801e6c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> public ReactShadowNode createNode(int reactTag, <ide> ReactShadowNode node = viewManager.createShadowNodeInstance(mReactApplicationContext); <ide> ReactShadowNode rootNode = getRootNode(rootTag); <ide> node.setR...
2
Mixed
Ruby
fix logic on disabling commit callbacks
a779b1a08bb73be2b50d42ae69b3946de98e5af4
<ide><path>activerecord/CHANGELOG.md <add>* Fix logic on disabling commit callbacks so they are not called unexpectedly when errors occur. <add> <add> *Brian Durand* <add> <ide> * Ensure `Associations::CollectionAssociation#size` and `Associations::CollectionAssociation#empty?` <ide> use loaded association i...
3
PHP
PHP
apply fixes from styleci
3d8ae049e84f5ed06107bd0bbf9a68538576f5d2
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testPartition() <ide> <ide> public function testPartitionCallbackWithKey() <ide> { <del> $collection = new Collection(['zero', 'one','two', 'three']); <add> $collection = new Collection(['zero', 'one', 'two', 'three']); <ide...
1
Python
Python
expose config through the cli arguments
7711403bbdefad62e7ee88a88e04ec08b53412bc
<ide><path>transformers/commands/run.py <ide> def try_infer_format_from_ext(path: str): <ide> <ide> <ide> def run_command_factory(args): <del> nlp = pipeline(task=args.task, model=args.model, tokenizer=args.tokenizer, device=args.device) <add> nlp = pipeline(task=args.task, model=args.model, config=args.config,...
1
Python
Python
fix some style issues (mainly long lines)
7a4251853534001e4c9ff7b942ff15f42f86ca4f
<ide><path>numpy/lib/npyio.py <ide> def _ensure_ndmin_ndarray(a, *, ndmin: int): <ide> _loadtxt_chunksize = 50000 <ide> <ide> <del>def _loadtxt_dispatcher(fname, dtype=None, comments=None, delimiter=None, <del> converters=None, skiprows=None, usecols=None, unpack=None, <del> ...
1
Text
Text
add descriptions to api ref pages
a76c9efe8453e69be3b98f864db951d9743f91f1
<ide><path>docs/FAQ.md <ide> id: faq <ide> title: FAQ Index <ide> hide_title: true <add>description: 'FAQ Index: Frequently Asked Questions about Redux' <ide> --- <ide> <ide> &nbsp; <ide><path>docs/api/Store.md <ide> id: store <ide> title: Store <ide> hide_title: true <add>description: 'API > Store: the core Redux sto...
7
Ruby
Ruby
pull `@template` in to a local variable
5bb1ad59b1fea70c82d0a3b654ef81a0a31c715c
<ide><path>actionview/lib/action_view/renderer/abstract_renderer.rb <ide> def extract_details(options) # :doc: <ide> end <ide> <ide> def instrument(name, **options) # :doc: <del> options[:identifier] ||= (@template && @template.identifier) || @path <del> <ide> ActiveSupport::Notifications.in...
4
Javascript
Javascript
send progress events via multipart response
b8804fdbc30a3bfd161a9b55966e507040e6bf16
<ide><path>packager/react-packager/src/Server/MultipartResponse.js <add>/** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. An additional ...
4
Javascript
Javascript
fix the lint issue introduced in
4c804361e089844c65dad251a0a1c7860771b563
<ide><path>src/renderers/dom/client/ReactBrowserEventEmitter.js <ide> var ReactBrowserEventEmitter = assign({}, ReactEventEmitterMixin, { <ide> * <ide> * @see http://www.quirksmode.org/dom/events/scroll.html <ide> */ <del> ensureScrollValueMonitoring: function(){ <add> ensureScrollValueMonitoring: function()...
1
PHP
PHP
fix regex for sql execution duration
be7450801c4cd8d07fbab49a5a1d6f3c1dcc0e36
<ide><path>tests/TestCase/Database/Log/LoggingStatementTest.php <ide> public function testExecuteWithParams() <ide> <ide> $messages = Log::engine('queries')->read(); <ide> $this->assertCount(1, $messages); <del> $this->assertRegExp('/^debug duration=\d rows=4 SELECT bar FROM foo WHERE x=1 AND y=...
1
Javascript
Javascript
fix crash when maps are merged
9a9d79f50931795014e0f631ea0ab1c774161eda
<ide><path>lib/FileSystemInfo.js <ide> const applyMtime = mtime => { <ide> }; <ide> <ide> const mergeMaps = (a, b) => { <del> if (b.size === 0) return a; <add> if (!b || b.size === 0) return a; <add> if (!a || a.size === 0) return b; <ide> const map = new Map(a); <ide> for (const [key, value] of b) { <ide> map.set...
1
Text
Text
fix broken table in "using an overload with ..."
63572c792182f0c2446ceeb3262d843f28558459
<ide><path>README.md <ide> allow further customization of the backpressure behavior. <ide> Many frequently used operator has overloads that can deal with the other types. These are usually named with the suffix of the target type: <ide> <ide> | Operator | Overloads | <add>|----------|-----------| <ide> | `flatMap` | `...
1
Python
Python
add test for ssh command
25c78501530e5f296d0a30534b4149772a43f6a6
<ide><path>tests/core.py <ide> def test_parse_s3_url(self): <ide> "Incorrect parsing of the s3 url") <ide> <ide> <add>class SSHHookTest(unittest.TestCase): <add> def setUp(self): <add> configuration.test_mode() <add> from airflow.contrib.hooks.ssh_hook import SSHHook <add> ...
1
Go
Go
add some adjectives to the namesgenerator
169b4d92a15a08683e3f3afe7f278d9a0199153a
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> "amazing", <ide> "angry", <ide> "awesome", <del> "backstabbing", <del> "berserk", <del> "big", <add> "blissful", <ide> "boring", <add> "brave", <ide> "clever", <ide> "cocky", <ide> "compassionate", <add> "competent", <ide> "condesc...
1
Ruby
Ruby
add tests for cgirequest#content_type
89eec91e670ae267cd88b2b3555bfefe527f0eaa
<ide><path>actionpack/test/controller/cgi_test.rb <ide> def test_doesnt_interpret_request_uri_as_query_string_when_missing <ide> end <ide> end <ide> <add>class CgiRequestContentTypeTest < BaseCgiTest <add> def test_html_content_type_verification <add> @request.env['CONTENT_TYPE'] = Mime::HTML.to_s <add> asser...
1
Ruby
Ruby
add a test case for
58d52171bb8c7a5589bb13ce1bab81d635ae9cf0
<ide><path>activerecord/test/cases/relation/where_test.rb <ide> def test_where_on_association_with_custom_primary_key_with_array_of_ids <ide> assert_equal essays(:david_modest_proposal), essay <ide> end <ide> <add> def test_where_on_association_with_select_relation <add> essay = Essay.where(author: A...
2