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
add `searchable` helper module
46e0de1762c8b2b8d5dfaa4953e9b031489a9a6b
<ide><path>Library/Homebrew/searchable.rb <add>module Searchable <add> def search(string_or_regex, &block) <add> case string_or_regex <add> when Regexp <add> search_regex(string_or_regex, &block) <add> else <add> search_string(string_or_regex.to_str, &block) <add> end <add> end <add> <add> priv...
2
Ruby
Ruby
adjust semantics of formula#fetch
daef74aa27b8316865a44484fefd2d7c424c7342
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def already_fetched? f <ide> <ide> def fetch_formula f <ide> f.cached_download.rmtree if already_fetched?(f) && ARGV.force? <del> download, _ = f.fetch <add> download = f.fetch <ide> <ide> # FIXME why are strategies returning different types? <ide> re...
3
Javascript
Javascript
fix lint errors
092235a56fc6a754dfc4bcacfb66be864cb9c190
<ide><path>fonts.js <ide> var Font = (function Font() { <ide> return constructor; <ide> })(); <ide> <del>/** <add>/* <ide> * Type1Parser encapsulate the needed code for parsing a Type1 font <ide> * program. Some of its logic depends on the Type2 charstrings <ide> * structure. <ide> var Type1Parser = function() { ...
5
Python
Python
fix broken span.as_doc test
51d9679aa382bce06366f4c7096d8e8965172775
<ide><path>spacy/tests/doc/test_span.py <ide> def test_span_to_array(doc): <ide> assert arr[0, 1] == len(span[0]) <ide> <ide> <del>def test_span_as_doc(doc): <del> span = doc[4:10] <del> span_doc = span.as_doc() <del> assert span.text == span_doc.text.strip() <add>#def test_span_as_doc(doc): <add># sp...
1
PHP
PHP
support atomic add on memcached driver
11c0d7bb08b767f7746867f3bdee141c9cc7e5b3
<ide><path>src/Illuminate/Cache/MemcachedStore.php <ide> public function put($key, $value, $minutes) <ide> $this->memcached->set($this->prefix.$key, $value, $minutes * 60); <ide> } <ide> <add> /** <add> * Store an item in the cache if the key doesn't exist. <add> * <add> * @param string $key <add> * @param m...
2
Text
Text
fix typos in writingtests.md
6d070b149161c2f2a23d4648c60ae352cd74b84e
<ide><path>docs/recipes/WritingTests.md <ide> # Writing Tests <ide> <del>Because most of the Redux code you write are functions, and many of them are pure, they are easy test without mocking. <add>Because most of the Redux code you write are functions, and many of them are pure, they are easy to test without mocking. ...
1
Javascript
Javascript
fix weird failure in edge 16 css
5e6deb3999539e6666106a524fe6f067f60a41f1
<ide><path>test/unit/css.js <ide> QUnit.test( "css() non-px relative values (gh-1711)", function( assert ) { <ide> <ide> getUnits( "lineHeight" ); <ide> cssCurrent = parseFloat( $child.css( "lineHeight", "1em" ).css( "lineHeight" ) ); <add> add( "lineHeight", 50, "%" ); <ide> add( "lineHeight", 2, "em" ); <ide>...
1
PHP
PHP
fix style issues with previous commit
6dc5c7c9edb9a9aa9ea031b80b4b0c832eea78bb
<ide><path>src/Illuminate/Database/Query/Processors/SqlServerProcessor.php <ide> public function processInsertGetId(Builder $query, $sql, $values, $sequence = nu <ide> $connection = $query->getConnection(); <ide> $connection->insert($sql, $values); <ide> if ($connection->getConfig('odbc') === tr...
1
PHP
PHP
use iso standard for time format
9ababa2c564204062e28520eebe5f3d5fb667692
<ide><path>src/View/Helper/FormHelper.php <ide> class FormHelper extends Helper { <ide> 'button' => '<button{{attrs}}>{{text}}</button>', <ide> 'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>', <ide> 'checkboxContainer' => '<div class="checkbox">{{input}}{{label}}</div>', <del...
4
Javascript
Javascript
fix horizontalbar deprecation warnings
21da5be3c63e69a4edfc364d040e270471d8234d
<ide><path>src/controllers/controller.horizontalBar.js <ide> defaults._set('horizontalBar', { <ide> yAxes: [{ <ide> type: 'category', <ide> position: 'left', <del> categoryPercentage: 0.8, <del> barPercentage: 0.9, <ide> offset: true, <ide> gridLines: { <ide> offsetGridLines: true <ide> defaults._...
2
Text
Text
fix casing of dense keyword
d5543cd69235082d616bd11661dfba6b932039f6
<ide><path>curriculum/challenges/english/11-machine-learning-with-python/tensorflow/natural-language-processing-with-rnns-sentimental-analysis.md <ide> Fill in the blanks below to create the model for the RNN: <ide> model = __A__.keras.Sequential([ <ide> __A__.keras.layers.__B__(88584, 32), <ide> __A__.keras.la...
1
PHP
PHP
remove unused code paths
98e4f253e22f37b96c146610b3743aa2cde254bc
<ide><path>src/Controller/Component/CookieComponent.php <ide> protected function _decrypt($values, $mode) { <ide> <ide> $decrypted = array(); <ide> foreach ($values as $name => $value) { <del> if (is_array($value)) { <del> foreach ($value as $key => $val) { <del> $decrypted[$name][$key] = $this->_decode($...
1
Python
Python
add regression test for #636
c8ae682ff98f2c5b5733ae4b299970c820e46630
<ide><path>spacy/tests/regression/test_issue636.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>from ...tokens.doc import Doc <add>import pytest <add> <add> <add>@pytest.mark.xfail <add>@pytest.mark.models <add>@pytest.mark.parametrize('text', ["I cant do this."]) <add>def test_issue636(E...
1
Python
Python
accept non arrays in cor and corrcoeff
df84ecfea50ef33a1259c67c534a09238c0eefc8
<ide><path>numpy/lib/function_base.py <ide> def cov(m, y=None, rowvar=1, bias=0, ddof=None): <ide> "ddof must be integer") <ide> <ide> # Handles complex arrays too <add> m = np.asarray(m) <ide> if y is None: <ide> dtype = np.result_type(m, np.float64) <ide> else: <add> y = np....
2
Text
Text
fix nits in guides/using-internal-errors.md
259466c6f4e01f547b1400dc7caf7df471d6f0aa
<ide><path>doc/guides/using-internal-errors.md <ide> are intended to replace existing `Error` objects within the Node.js source. <ide> For instance, an existing `Error` such as: <ide> <ide> ```js <del> const err = new TypeError('Expected string received ' + type); <add>const err = new TypeError(`Expected string recei...
1
Python
Python
bloom minor fixes small test
6a1b1bf7a6abb303ccf655d53a0e1f9b30890470
<ide><path>tests/models/bloom/test_modeling_bloom.py <ide> def test_model_from_pretrained(self): <ide> def test_simple_generation(self): <ide> # This test is a bit flaky. For some GPU architectures, pytorch sets by default allow_fp16_reduced_precision_reduction = True and some operations <ide> # do ...
1
Ruby
Ruby
add a test case for layout nil
dd0275e46314b6c4cddb1ae438ce1390d13aa53c
<ide><path>actionpack/lib/abstract_controller/layouts.rb <ide> def conditional_layout? <ide> # Symbol:: call the method specified by the symbol, which will return the template name <ide> # false:: There is no layout <ide> # true:: raise an ArgumentError <add> # nil:: Force default layout be...
2
PHP
PHP
add missing import
777efcdf458edaffbe759cb633ab847788a336fa
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> <ide> use DateTime; <ide> use Exception; <add>use Throwable; <ide> use ArrayAccess; <ide> use Carbon\Carbon; <ide> use LogicException;
1
Javascript
Javascript
fix tests in amd mode
6051609df35ef5e478c79c76534c03e4b46100bf
<ide><path>build/tasks/build.js <ide> module.exports = function( grunt ) { <ide> skipSemiColonInsertion: true, <ide> wrap: { <ide> startFile: "src/intro.js", <del> endFile: "src/outro.js" <add> endFile: [ "src/exports/global.js", "src/outro.js" ] <ide> }, <ide> paths: { <ide> sizzle: "../exter...
8
Python
Python
add xla test
fdcde144d848c338f9a540e8e0ba97ab05a74fff
<ide><path>tests/test_modeling_tf_bart.py <ide> def test_mixed_precision(self): <ide> # TODO JP: Make BART float16 compliant <ide> pass <ide> <add> def test_xla_mode(self): <add> # TODO JP: Make BART XLA compliant <add> pass <add> <ide> <ide> def _assert_tensors_equal(a, b, atol=1e-12...
18
Python
Python
batch validation in fit
03e512a3f4dfbd3c241c5f7824c3f052005d4e6f
<ide><path>keras/models.py <ide> def _fit(self, f, ins, out_labels=[], batch_size=128, nb_epoch=100, verbose=1, c <ide> epoch_logs = {} <ide> if do_validation: <ide> # replace with self._evaluate <del> val_outs = val_f(*val_ins) <add...
1
Python
Python
add regression test for [ci skip]
96bb8f2187569b4f4f6a01bc34b17cabfa8a9f6e
<ide><path>spacy/tests/regression/test_issue4528.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add>import pytest <add>from spacy.tokens import Doc, DocBin <add> <add> <add>@pytest.mark.xfail <add>def test_issue4528(en_vocab): <add> """Test that user_data is correctly serialized in DocBin...
1
Javascript
Javascript
fix tests in browsers
2034c1db7eaac61fabd4319af2e9b4478d1d6b52
<ide><path>test/specs/core/mergeConfig.spec.js <ide> describe('core::mergeConfig', function() { <ide> expect(merged.data).toEqual(undefined); <ide> }); <ide> <del> ['auth', 'headers', 'params', 'proxy'].forEach(key => { <del> it(`should set new config for ${key} without default`, function() { <del> expe...
1
PHP
PHP
extract container extend tests
cca9bfffc1f0a33bbb42d843208383c8fd3f83ec
<ide><path>tests/Container/ContainerExtendTest.php <add><?php <add> <add>namespace Illuminate\Tests\Container; <add> <add>use stdClass; <add>use PHPUnit\Framework\TestCase; <add>use Illuminate\Container\Container; <add> <add>class ContainerExtendTest extends TestCase <add>{ <add> public function testExtendedBindings...
2
Python
Python
add condition around mask transformation
cd286c2145221f3d1372aef103d0bc3ed03879da
<ide><path>transformers/modeling_bert.py <ide> def forward(self, input_ids=None, attention_mask=None, token_type_ids=None, posi <ide> <ide> if attention_mask is None: <ide> attention_mask = torch.ones(input_shape, device=device) <del> if self.config.is_decoder and encoder_attention_mask is N...
1
Ruby
Ruby
fix circular import warning on build
179b9f6a25705a456ae5544948a914adba60421e
<ide><path>activerecord/lib/active_record/schema_migration.rb <ide> require 'active_record/scoping/default' <ide> require 'active_record/scoping/named' <del>require 'active_record/base' <ide> <ide> module ActiveRecord <ide> class SchemaMigration < ActiveRecord::Base
1
Ruby
Ruby
encourage usage of the new clt4xcode
f37e22838cb0df651f50dd063135d975f7d30e3f
<ide><path>install_homebrew.rb <ide> def macos_version <ide> end <ide> <ide> warn "/usr/local/bin is not in your PATH." unless ENV['PATH'].split(':').include? '/usr/local/bin' <del>warn "Now install Xcode: http://developer.apple.com/technologies/xcode.html" unless Kernel.system "/usr/bin/which -s gcc" <add> <add>if ma...
1
Text
Text
fix typo on pull request template
d2b4cfb3873134d04f1e89995475f4c6b38dbac4
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> <!-- <del>Please only send a pull request to branches which are currently supported: https://laravel.com/docs/releases#support-policy <add>Please only send a pull request to branches that are currently supported: https://laravel.com/docs/releases#support-policy <ide> ...
1
Javascript
Javascript
cache new dataview to increase performance
552d0ed3ffcb75d639ac334d95b19da4058babc1
<ide><path>examples/js/loaders/EXRLoader.js <ide> THREE.EXRLoader.prototype._parser = function ( buffer ) { <ide> return true; <ide> } <ide> <del> function getChar(c, lc, inBuffer, inOffset) { <del> c = (c << 8) | parseUint8(inBuffer, inOffset); <add> function getChar(c, lc, inDataView, inOffset) { <add> c = (c <...
1
Javascript
Javascript
add some tests to improve coverage
774493e23d1e3ee99f7d865e7852baf73bd9fb44
<ide><path>test/matchers.js <ide> function toBeCloseToPixel() { <ide> }; <ide> } <ide> <add>function toBeCloseToPoint() { <add> function rnd(v) { <add> return Math.round(v * 100) / 100; <add> } <add> return { <add> compare: function(actual, expected) { <add> return { <add> pass: rnd(actual.x) === rnd(expected....
5
PHP
PHP
fix redirectroute by stopping execution
841e7aa560d27f14c6f381a3548c8d8c74e4a463
<ide><path>lib/Cake/Network/CakeResponse.php <ide> public function send() { <ide> foreach ($this->_headers as $header => $value) { <ide> $this->_sendHeader($header, $value); <ide> } <add> <add> if (isset($this->_headers['Location'])) { <add> $this->_stop(); <add> } <ide> $this->_sendContent($this->_body); ...
4
PHP
PHP
remove non primary key indexes
dccf9aca465630842804523e6104a4da8ceb132a
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> public function fixtures() { <ide> $this->out(__d('cake_console', 'Updating %s...', $file), 1, Shell::VERBOSE); <ide> $content = $this->_processFixture(file_get_contents($file)); <ide> if (empty($this->params['dryRun'])) { <del> file_put_contents($f...
1
Javascript
Javascript
add dummy modules when running basic tests
f9af896bb8f4cb37b22d508443174c8edf40fc54
<ide><path>test/data/testinit.js <ide> this.loadTests = function() { <ide> <ide> // Get testSubproject from testrunner first <ide> require( [ "data/testrunner.js" ], function() { <del> var tests = [] <del> .concat( [ <del> <add> var i = 0, <add> tests = [ <ide> // A special module with basic tests, meant f...
1
Python
Python
change doc string for rpn_box_predictor_features
e186a9404587781310c2602c0677e912bffb5ad4
<ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch.py <ide> def predict(self, preprocessed_inputs, true_image_shapes, **side_inputs): <ide> Returns: <ide> prediction_dict: a dictionary holding "raw" prediction tensors: <ide> 1) rpn_box_predictor_features: A list of 4-D float...
1
Javascript
Javascript
add ngswiperight/left directives to ngmobile
5e0f876c39099adb6a0300c429b8df1f6b544846
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> dest: 'build/angular-mobile.js', <ide> src: util.wrap([ <ide> 'src/ngMobile/mobile.js', <del> 'src/ngMobile/directive/ngClick.js' <add> 'src/ngMobile/directive/ngClick.js', <add> 'src/ngMobile/dir...
6
Javascript
Javascript
add prefixes for literals
43f1946c7a57b42cf1306c5857859cec9209edbc
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> <ide> // (reserved partial commands for the lexer) <ide> BM: null, <del> BD: null <add> BD: null, <add> 'true': null, <add> fa: null, <add> fal: null, <add> fals: null, <add> 'false': null,...
2
Javascript
Javascript
add metro to paths to be babel-transformed
af661e4a6f6583b4c2b372a22d71f41470760d93
<ide><path>setupBabel.js <ide> const babelRegisterOnly = require('metro/src/babelRegisterOnly'); <ide> const escapeRegExp = require('lodash/escapeRegExp'); <ide> const path = require('path'); <ide> <del>const BABEL_ENABLED_PATHS = ['local-cli']; <add>const BABEL_ENABLED_PATHS = ['local-cli', 'metro']; <ide> <ide> /**...
1
Ruby
Ruby
fix use of issues_url
53b387987b54515c2eef7270dbceccb6361f4fc0
<ide><path>Library/Homebrew/exceptions.rb <ide> def dump <ide> puts <ide> onoe "#{formula.name} did not build" <ide> puts "Logs: #{logs}" unless Dir["#{logs}/*"].empty? <del> puts "Help: #{Tty.em}https://github.com/mxcl/homebrew/wiki/troubleshooting#{Tty.reset}" <add> puts "Help: #{Tty.em}#{ISSUES_URL...
2
Ruby
Ruby
fix interplay of humanize and html_escape
26698fb91d88dca0f860adcb80528d8d3f0f6285
<ide><path>activesupport/lib/active_support/inflector/methods.rb <ide> def humanize(lower_case_and_underscored_word, options = {}) <ide> result.gsub!(/([a-z\d]*)/i) { |match| <ide> "#{inflections.acronyms[match] || match.downcase}" <ide> } <del> result.gsub!(/^\w/) { $&.upcase } if options.fetc...
2
Python
Python
remove unused imports
41037f0f077c033b77b23fd211ee78e3495005c1
<ide><path>spacy/cli/convert.py <ide> # coding: utf8 <del>from __future__ import unicode_literals, division, print_function <add>from __future__ import unicode_literals <ide> <ide> import io <del>from pathlib import Path, PurePosixPath <add>from pathlib import Path <ide> <ide> from .converters import conllu2json <ide...
2
Python
Python
clean tf bert
4adbdce5ee4f784a56b9bf9252c3f6a007f9daca
<ide><path>src/transformers/modeling_tf_utils.py <ide> logger = logging.get_logger(__name__) <ide> tf_logger = tf.get_logger() <ide> <add>TFModelInputType = Union[ <add> List[tf.Tensor], List[np.ndarray], Dict[str, tf.Tensor], Dict[str, np.ndarray], np.ndarray, tf.Tensor <add>] <add> <ide> <ide> class TFModelUtils...
15
Javascript
Javascript
linkify error messages on minerr docs pages
6aaae062171bfc8e5046c3eae99bc9d63037120a
<ide><path>docs/component-spec/errorLinkFilterSpec.js <add>describe("errorLinkFilter", function () { <add> <add> var errorLinkFilter; <add> <add> beforeEach(module('docsApp')); <add> <add> beforeEach(inject(function ($filter) { <add> errorLinkFilter = $filter('errorLink'); <add> })); <add> <add> it('should not ...
2
Java
Java
simplify width calculation in rcttext
a5413846216aec2d03ca8c71a0493e1b4a06da3c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTText.java <ide> protected void collectState( <ide> mDrawCommand = new DrawTextLayout(new BoringLayout( <ide> mText, <ide> PAINT, <del> (int) getLayoutWidth(), <add> (int) (right - left), <ide> mAlignme...
1
PHP
PHP
remove empty files after bake
fa495a6fece4ab858a198c715170c66c8bc6c36e
<ide><path>src/Shell/Task/ModelTask.php <ide> use Cake\Console\Shell; <ide> use Cake\Core\Configure; <ide> use Cake\Datasource\ConnectionManager; <add>use Cake\Filesystem\File; <ide> use Cake\ORM\Table; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\Utility\Inflector; <ide> public function bakeEntity($model, array $d...
2
Text
Text
add examples for gender neutral pronouns
98af6596a9316f134c92ace8debdfc3b6a2c50de
<ide><path>guides/source/api_documentation_guidelines.md <ide> Spell names correctly: Arel, Test::Unit, RSpec, HTML, MySQL, JavaScript, ERB. Wh <ide> <ide> Use the article "an" for "SQL", as in "an SQL statement". Also "an SQLite database". <ide> <del>When using pronouns in reference to a hypothetical person, such as...
1
Mixed
Go
fix description of 'docker swarm init'
3abee1bf8aad5e24df635d70bceb39c69a1c2407
<ide><path>cli/command/swarm/opts.go <ide> func parseExternalCA(caSpec string) (*swarm.ExternalCA, error) { <ide> <ide> func addSwarmFlags(flags *pflag.FlagSet, opts *swarmOptions) { <ide> flags.Int64Var(&opts.taskHistoryLimit, flagTaskHistoryLimit, 5, "Task history retention limit") <del> flags.DurationVar(&opts.dis...
2
Ruby
Ruby
clarify ar dependency
6eee1dd62c85e23d84f16e8f300d8aba77bd5c64
<ide><path>actionpack/test/controller/caching_test.rb <ide> def page_cached?(action) <ide> <ide> class ActionCachingTestController < ActionController::Base <ide> rescue_from(Exception) { head 500 } <del> rescue_from(ActiveRecord::RecordNotFound) { head :not_found } <add> if defined? ActiveRecord <add> rescue_fr...
1
Javascript
Javascript
fix compiler.hooks.make callbacks
f860c870acb1d6e9ed9d8f4506c08463a75914e3
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> <ide> /** <ide> * @param {ChunkGraph} chunkGraph the chunk graph <del> * @returns {Record<string, Set<TODO>[]>} a record object of names to lists of child ids(?) <add> * @returns {Record<string, Set<string | number>[]>} a record object of names to lists of child i...
4
Java
Java
remove extraneous dimension conversion
dd8ee4ad751309b3adf5f2295c7565c47cd343fb
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/toolbar/DrawableWithIntrinsicSize.java <ide> public DrawableWithIntrinsicSize(Drawable drawable, ImageInfo imageInfo) { <ide> <ide> @Override <ide> public int getIntrinsicWidth() { <del> return (int) PixelUtil.toDIPFromPixel(mImageInfo.getWidth()); ...
1
PHP
PHP
add caches shell
4ce2da2e486d97c62e0ab7c5268fcc955f506d67
<ide><path>src/Shell/CachesShell.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 license information, please see t...
4
Javascript
Javascript
fix typo in error message
973c223429279286b8441f20807a770920d58bcb
<ide><path>lib/internal/process/report.js <ide> exports.setup = function() { <ide> if (err == null) { <ide> return nr.getReport(new ERR_SYNTHETIC().stack); <ide> } else if (typeof err !== 'object') { <del> throw new ERR_INVALID_ARG_TYPE('err', 'Objct', err); <add> throw new ERR_INVALID...
1
Text
Text
add dependency check to read me
b626dabaa85910a5f4d5a3a8ccc068d17ff2d0f3
<ide><path>readme.md <ide> ## Laravel Framework (Core) <ide> <del>[![Latest Stable Version](https://poser.pugx.org/laravel/framework/version.png)](https://packagist.org/packages/laravel/framework) [![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.png)](https://packagist.org/packages/laravel/framewor...
1
Python
Python
reorganize core/setup.py a bit
39a420ca5a42b7450f2ff242cd7f6c78f3832b72
<ide><path>numpy/core/setup.py <ide> def generate_api(ext, build_dir): <ide> config.add_include_dirs(join(local_dir, "src")) <ide> config.add_include_dirs(join(local_dir)) <ide> <del> # Multiarray version: this function is needed to build foo.c from foo.c.src <del> # when foo.c is included in another fil...
1
Go
Go
modify the minor typo in deviceset.go
5c1559a754f7b1fba45be01a6f1a4b3c7c6c4c68
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) unregisterDevice(id int, hash string) error { <ide> devices.devicesLock.Unlock() <ide> <ide> if err := devices.removeMetadata(info); err != nil { <del> log.Debugf("Error removing meta data: %s", err) <add> log.Debugf("Error removi...
1
Text
Text
remove duplicate the from onboarding.md
b7c0de5eb83f70c44ed19f3320b360eeec64ce64
<ide><path>doc/onboarding.md <ide> onboarding session. <ide> (especially if it just has nits left). <ide> * Approving a change <ide> * Collaborators indicate that they have reviewed and approve of the <del> the changes in a pull request using Github’s approval interface <add> changes in a pu...
1
Ruby
Ruby
omit empty caveats
fca07369ab5c81d3abaa77841b9403a73efa2f78
<ide><path>Library/Homebrew/cmd/info.rb <ide> def info_formula f <ide> end <ide> end <ide> <del> if f.caveats <add> the_caveats = (f.caveats || "").strip <add> unless the_caveats.empty? <ide> puts <ide> puts f.caveats <ide> puts <ide><path>Library/Homebrew/formula_installer.rb <ide...
2
Text
Text
move usage and example to same header level
fe4d53df512edcd046f002b1b78c47a687f0fad1
<ide><path>doc/api/synopsis.md <del># Usage <add># Usage & Example <add> <add>## Usage <ide> <ide> <!--introduced_in=v0.10.0--> <ide> <!--type=misc-->
1
Javascript
Javascript
fix a bunch of problems with implicit autobinding
a61f4df0b9b23250a5a59285aad82cf7d82a19b8
<ide><path>src/core/ReactCompositeComponent.js <ide> var keyMirror = require('keyMirror'); <ide> var merge = require('merge'); <ide> var mixInto = require('mixInto'); <ide> <del>var invokedBeforeMount = function() { <del> invariant( <del> false, <del> 'You have invoked a method that is automatically bound, befo...
2
Java
Java
fix checkstyle violation
e124cbb310721041731421c41030e6a1d2d06286
<ide><path>spring-expression/src/test/java/org/springframework/expression/spel/MethodInvocationTests.java <ide> <ide> import org.springframework.core.convert.TypeDescriptor; <ide> import org.springframework.expression.AccessException; <del>import org.springframework.expression.BeanResolver; <ide> import org.springfram...
1
PHP
PHP
apply fixes from styleci
88c93eb59568d228736fa96b52bac51f1c2116cc
<ide><path>tests/Mail/MailManagerTest.php <ide> public function emptyTransportConfigDataProvider() <ide> public function testForgetMailer() <ide> { <ide> $this->app['config']->set('mail.mailers.custom_smtp', [ <del> 'transport' => "smtp", <del> 'host' => "example.com", <del> ...
1
Mixed
Text
fix a minor mistake in the generator and docs
336ecb8999d9c8206e242abcd90dd9465f20b21f
<ide><path>docs/Operator-Matrix.md <ide> Operator | `Flowable` | `Observable` | `Maybe` | `Single` | `Completable` | <ide> `zip`|![present](https://raw.github.com/wiki/ReactiveX/RxJava/images/checkmark_on.png)|![present](https://raw.github.com/wiki/ReactiveX/RxJava/images/checkmark_on.png)|![present](https://raw.github...
3
Javascript
Javascript
expand http2 frameerror test case
15879adf1dab3d67839fd90cfee51c7181b01e30
<ide><path>test/parallel/test-http2-options-max-headers-block-length.js <ide> server.listen(0); <ide> server.on('listening', common.mustCall(() => { <ide> <ide> // Setting the maxSendHeaderBlockLength, then attempting to send a <del> // headers block that is too big should cause a 'meError' to <add> // headers blo...
1
Text
Text
fix example threejs-prerequisites.md
cdb5482850b4dc7dcbfffc3c541a046959d566bd
<ide><path>threejs/lessons/threejs-prerequisites.md <ide> Destructuring works with arrays too. Assume an array `const position = [1, 2, 3, <ide> old code <ide> <ide> ```js <del>const x = position[2]; <del>const y = position[1]; <add>const x = position[2]; // 3 <add>const y = position[1]; // 2 <ide> ``` <ide> <ide> ne...
1
Ruby
Ruby
detect download strategy from url
edd1c76d409e224e329131bbd635d944cdf6fe1f
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> new_url.sub "mirrors.ocf.berkeley.edu/debian", "mirrorservice.org/sites/ftp.debian.org/debian" <ide> end <ide> resource = Resource.new { @url = new_url } <del> resource.download_strategy = CurlDownloadStrateg...
1
Text
Text
add description for the listener argument
8850ef276ad215b7449cee713bc6096d067c33f7
<ide><path>doc/api/http2.md <ide> changes: <ide> instance passed to `connect` and the `options` object, and returns any <ide> [`Duplex`][] stream that is to be used as the connection for this session. <ide> * ...: Any [`net.connect()`][] or [`tls.connect()`][] options can be provided. <del>* `listener` {Funct...
1
Java
Java
avoid stacktrace for invalid origin header values
9c66dfa7b5f610ddeb69b9dc10baa227fbddcbf1
<ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java <ide> public static UriComponentsBuilder fromHttpRequest(HttpRequest request) { <ide> <ide> /** <ide> * Create an instance by parsing the "origin" header of an HTTP request. <add> * @see <a href="https://tools.ietf.org/html/...
2
Mixed
Ruby
add days_in_year method
2f4f4d2cf1e4c5a442459fc250daf66186d110fa
<ide><path>activesupport/CHANGELOG.md <ide> <ide> To opt-in load the [listen](https://github.com/guard/listen) gem in `Gemfile`: <ide> <del> group :development do <del> gem 'listen', '~> 3.0.4' <del> end <add> group :development do <add> gem 'listen', '~> 3.0.4' <add> end <...
3
Javascript
Javascript
add support for finished after .destroy()
2da36112d177efc19201f1610dcf51647378131c
<ide><path>lib/_http_incoming.js <ide> IncomingMessage.prototype._destroy = function _destroy(err, cb) { <ide> this.emit('aborted'); <ide> } <ide> <del> // If aborted and the underlying socket is not already destroyed, <del> // destroy it. <del> // We have to check if the socket is already destroyed because f...
4
Go
Go
improve godoc, and minor touch-ups
c2c7e9d4492a52c926a860cfabf7f1289f168985
<ide><path>client/client.go <ide> package client // import "github.com/docker/docker/client" <ide> <ide> import ( <ide> "context" <del> "fmt" <ide> "net" <ide> "net/http" <ide> "net/url" <ide> type Client struct { <ide> } <ide> <ide> // CheckRedirect specifies the policy for dealing with redirect responses: <del>...
4
Javascript
Javascript
add note about potential future bugs
48b7b2c67c96aec21b6c4150c6c3f80d481f709b
<ide><path>src/renderers/shared/fiber/ReactFiberCompleteWork.js <ide> module.exports = function<T, P, I, C>(config : HostConfig<T, P, I, C>) { <ide> } <ide> <ide> /* <add> // TODO: It's possible this will create layout thrash issues because mutations <add> // of the DOM and life-cycles are interleaved. E.g. if a...
1
Text
Text
fix markdown style for better readability
1e093b26a5c5200856f90ad8ad9c794f2dd721fc
<ide><path>object_detection/g3doc/preparing_inputs.md <ide> The raw 2012 PASCAL VOC data set can be downloaded <ide> [here](http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar). <ide> Extract the tar file and run the `create_pascal_tf_record` script: <ide> <del>``` <add>```bash <ide> # From tens...
1
Ruby
Ruby
allow travel blocks after standalone travelt
a829bb76396b0f6dd00dbb4631de0d6ed6fb9fc7
<ide><path>activesupport/lib/active_support/testing/time_helpers.rb <ide> def travel(duration, &block) <ide> # end <ide> # Time.current # => Sat, 09 Nov 2013 15:34:49 EST -05:00 <ide> def travel_to(date_or_time) <del> if block_given? && simple_stubs.stubbing(Time, :now) <add> if bloc...
2
Javascript
Javascript
add quarter diff support
d16828e7469eabb43b500298b766e234fe8a459c
<ide><path>moment.js <ide> <ide> units = normalizeUnits(units); <ide> <del> if (units === 'year' || units === 'month') { <add> if (units === 'year' || units === 'month' || units === 'quarter') { <ide> // average number of days in the months in the given dates <ide> ...
2
PHP
PHP
allow multiple parameters for required_if
4bc806c6fc5759d5f7227c3aa632af82282a6fa5
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateRequiredIf($attribute, $value, $parameters) <ide> { <ide> $this->requireParameterCount(2, $parameters, 'required_if'); <ide> <del> if ($parameters[1] == array_get($this->data, $parameters[0])) <add> $data = array_get($this->data, ...
2
Javascript
Javascript
fix comment typo
0b329511b9aaff7e27990fc16354db8ea0a16de8
<ide><path>packages/react-reconciler/src/__tests__/ReactCache-test.js <ide> describe('ReactCache', () => { <ide> <ide> // Unmount children: the first text cache instance is created only after the root <ide> // commits, so both fresh cache instances are released by their cache boundaries, <del> // cleaning u...
1
Java
Java
use concurrenthashmaps in defaultcontextcache
d66d1605430c73444082d219214edb74327d3c13
<ide><path>spring-test/src/main/java/org/springframework/test/context/support/DefaultContextCache.java <ide> import java.util.List; <ide> import java.util.Map; <ide> import java.util.Set; <add>import java.util.concurrent.ConcurrentHashMap; <ide> import java.util.concurrent.atomic.AtomicInteger; <ide> <ide> import org....
1
Python
Python
add type hints and default args for problem 20
11a5afd8a10b21dfebddcf3c6022402ac463b634
<ide><path>project_euler/problem_20/sol1.py <ide> """ <add>Problem 20: https://projecteuler.net/problem=20 <add> <ide> n! means n × (n − 1) × ... × 3 × 2 × 1 <ide> <ide> For example, 10! = 10 × 9 × ... × 3 × 2 × 1 = 3628800, <ide> """ <ide> <ide> <del>def factorial(n): <add>def factorial(num: int) -> int: <add> "...
4
Text
Text
update the big table of tasks
201d23f2854c7a13d3c32df4947af9fd7365c2cd
<ide><path>examples/README.md <ide> This is still a work-in-progress – in particular documentation is still sparse <ide> | [**`text-classification`**](https://github.com/huggingface/transformers/tree/master/examples/text-classification) | GLUE, XNLI | ✅ | ✅ | ✅ | [![Open In Colab](https://colab.research.google.c...
1
Go
Go
increase the coverage of pkg/platform
bdc87676bfee0f9a26fe12323dbe6875af783645
<ide><path>pkg/platform/utsname_int8_test.go <add>// +build linux,386 linux,amd64 linux,arm64 <add> <add>package platform <add> <add>import ( <add> "testing" <add> <add> "github.com/stretchr/testify/assert" <add>) <add> <add>func TestCharToString(t *testing.T) { <add> machineInBytes := [65]int8{120, 56, 54, 95, 54, 52}...
2
Python
Python
add no attribute to textcategorizer model
bd8e84998a7bf4706c18f9b3099a84d4a2ba6a52
<ide><path>spacy/_ml.py <ide> def build_text_classifier(nr_class, width=64, **cfg): <ide> >> zero_init(Affine(nr_class, nr_class*2, drop_factor=0.0)) <ide> >> logistic <ide> ) <del> <add> model.nO = nr_class <ide> model.lsuv = False <ide> return model <ide>
1
Python
Python
add relative positional embedding to kerasbert
2db2501bc9928f68e225282f3884b81680a9cccb
<ide><path>official/nlp/modeling/layers/masked_softmax.py <ide> def call(self, inputs): <ide> <ide> # Since we are adding it to the raw scores before the softmax, this is <ide> # effectively the same as removing these entirely. <add> <ide> scores += adder <ide> <ide> if len(self._normalization_a...
4
PHP
PHP
add missing `throwunless` magic method
ff5c52b7556a41901b961d9ceee4fee55da27b3a
<ide><path>src/Illuminate/Http/Client/Factory.php <ide> * @method \Illuminate\Http\Client\PendingRequest withoutVerifying() <ide> * @method \Illuminate\Http\Client\PendingRequest throw(callable $callback = null) <ide> * @method \Illuminate\Http\Client\PendingRequest throwIf($condition) <add> * @method \Illuminate\Ht...
2
Python
Python
test random input for bubble sort
9b3f7c36d0e116fac5df72fa35aa2fe74bb1b927
<ide><path>sorts/bubble_sort.py <ide> def bubble_sort(collection): <ide> Examples: <ide> >>> bubble_sort([0, 5, 2, 3, 2]) <ide> [0, 2, 2, 3, 5] <del> <del> >>> bubble_sort([]) <del> [] <del> <del> >>> bubble_sort([-2, -45, -5]) <del> [-45, -5, -2] <del> <del> >>> bubble_sort([-23, 0, 6, -4, 3...
1
Javascript
Javascript
increase loop protect timeout to 1000
bfdcd1ce25f3771b269a243b27343f29564d3c44
<ide><path>public/js/lib/loop-protect/loop-protect.js <ide> if (typeof DEBUG === 'undefined') { DEBUG = true; } <ide> var reSingle = /\b(for|while|do)\b/; <ide> var labelRe = /\b([a-z_]{1}\w+:)/i; <ide> var comments = /(?:\/\*(?:[\s\S]*?)\*\/)|(?:([\s;])+\/\/(?:.*)$)/gm; <del> var loopTimeout = 500; <add> var l...
1
PHP
PHP
update doc return to reflect assoc json decode
afdc47dab018010b9918e71dfb1ce982519bf709
<ide><path>src/Http/Client/Response.php <ide> public function body($parser = null) <ide> /** <ide> * Get the response body as JSON decoded data. <ide> * <del> * @return mixed <add> * @return array|null <ide> */ <ide> protected function _getJson() <ide> {
1
Text
Text
correct duplicate error
08451ce95e16224e1afba6e890e33b430d662779
<ide><path>docs/02-Scales.md <ide> min | Number | - | User defined minimum number for the scale, overrides minimum <ide> max | Number | - | User defined maximum number for the scale, overrides maximum value from data. <ide> maxTicksLimit | Number | 11 | Maximum number of ticks and gridlines to show. If not defined, it ...
1
Go
Go
remove lock in datastore for global scope
115cdb52b3cb97e436ac138d119a931b1bcdc993
<ide><path>libnetwork/datastore/datastore.go <ide> var ( <ide> ) <ide> <ide> type datastore struct { <del> scope string <del> store store.Store <del> cache *cache <del> watchCh chan struct{} <del> active bool <add> scope string <add> store store.Store <add> cache *cache <add> watchCh chan stru...
1
Java
Java
defer exchangefilterfunction to subscription time
d463598c09ad653d821bb9048c19f34661198390
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License")...
3
Ruby
Ruby
use `skip` so we can see what tests are not run
908796dac5c702123415727fd28f6f9633dc2354
<ide><path>activerecord/test/cases/base_test.rb <ide> def test_readonly_attributes <ide> assert_equal "changed", post.body <ide> end <ide> <del> unless current_adapter?(:MysqlAdapter) <del> def test_unicode_column_name <del> columns = Weird.columns_hash.keys <del> weird = Weird.create(:なまえ => 'たこ焼き...
1
PHP
PHP
fix docblock tag
bd22019d2d3f8b68924042d3156b2b08775439c7
<ide><path>tests/TestCase/Form/FormTest.php <ide> public function testSchema() <ide> * Test validator() <ide> * <ide> * @return void <del> * @deprecated <add> * @group deprecated <ide> */ <ide> public function testValidator() <ide> {
1
Javascript
Javascript
workaround a gc bug in chrome < 50
e34ef23ab868b36d18ee845f78536f0987edf56a
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> compileNode = $compileNode[0]; <ide> replaceWith(jqCollection, sliceArgs($template), compileNode); <ide> <add> // Support: Chrome < 50 <add> // https://github.com/angular/...
1
Javascript
Javascript
push dist to same remote as project
1ba45fcc15c894cad591d93cbb88010df5f235fe
<ide><path>build/release/dist.js <ide> module.exports = function( Release, complete ) { <ide> fs = require( "fs" ), <ide> shell = require( "shelljs" ), <ide> pkg = require( Release.dir.repo + "/package.json" ), <add> distRemote = Release.remote.replace( "jquery", "jquery-dist" ), <ide> // These files are inclu...
1
Java
Java
fix android activity template. fixes
f93cf6ca1921b8bd252866c40b52cb2a6a20ae2f
<ide><path>local-cli/generator-android/templates/package/MainActivity.java <ide> package <%= package %>; <ide> <ide> import com.facebook.react.ReactActivity; <add>import com.facebook.react.ReactPackage; <ide> import com.facebook.react.shell.MainReactPackage; <ide> <add>import java.util.Arrays; <add>import java.util.L...
1
Text
Text
fix comparison between sorting and search
c5e7a9aa78eb083ac9838e0e2a46dfc5a27b2dee
<ide><path>guide/english/algorithms/search-algorithms/linear-search/index.md <ide> end <ide> <ide> ## Why linear search is not efficient <ide> <del>There is no doubt that linear search is simple but because it compares each element one by one, it is time consuming and hence not much efficient. If we have to find a nu...
1
Javascript
Javascript
fix faulty relpath test
9cd932f4359daf4d9add982cda70dfa5215f3f8a
<ide><path>test/parallel/test-fs-realpath-native.js <ide> const common = require('../common'); <ide> const assert = require('assert'); <ide> const fs = require('fs'); <ide> <del>if (!common.isOSX) common.skip('MacOS-only test.'); <add>const filename = __filename.toLowerCase(); <ide> <del>assert.strictEqual(fs.realpat...
1
Ruby
Ruby
remove call to self.locale from helpers
c178a87b4326edd491922136c0a55bf4b889473d
<ide><path>actionpack/lib/action_view/helpers/active_record_helper.rb <ide> def error_messages_for(*params) <ide> end <ide> <ide> count = objects.inject(0) {|sum, object| sum + object.errors.count } <del> locale = options[:locale] <del> locale ||= self.locale if respond_to?(:loca...
3
Python
Python
add tests for params handling in dag construction
d8433679240614af1fcb4b4faa99845e5c7480e1
<ide><path>tests/models.py <ide> from airflow.operators.dummy_operator import DummyOperator <ide> <ide> <add>class DagTest(unittest.TestCase): <add> <add> def test_parms_not_passed_is_empty_dict(self): <add> """ <add> Test that when 'params' is _not_ passed to a new Dag, that the params <add> ...
1
Ruby
Ruby
pass the pk to compile_update
8d7d2df3e2f9162d892817a4ec2d687b21c2900a
<ide><path>activerecord/lib/active_record/counter_cache.rb <ide> def reset_counters(id, *counters) <ide> <ide> stmt = unscoped.where(arel_table[primary_key].eq(object.id)).arel.compile_update({ <ide> arel_table[counter_name] => object.send(association).count <del> }) <add> }, pr...
3
Javascript
Javascript
remove ios platform check for running devtools
1b40db7ec0acb3a38a2a1c73623dbce420d2c1e5
<ide><path>Libraries/JavaScriptAppEngine/Initialization/InitializeJavaScriptAppEngine.js <ide> function setUpMapAndSet() { <ide> function setUpDevTools() { <ide> if (__DEV__) { <ide> // not when debugging in chrome <del> if (!window.document && require('Platform').OS === 'ios') { <add> if (!window.document)...
1
Javascript
Javascript
fix build by checking view_preserves_context
3ff2d411108a8f893c2c5d0eb9c886a233a542e0
<ide><path>packages/ember-views/tests/views/view/template_test.js <ide> <ide> var set = Ember.set, get = Ember.get; <ide> <add>var VIEW_PRESERVES_CONTEXT = Ember.VIEW_PRESERVES_CONTEXT; <add> <ide> module("Ember.View - Template Functionality"); <ide> <ide> test("should call the function of the associated template", ...
1