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
update ut 5th
be235550ef05043fef1b18706ef7b2015861375b
<ide><path>keras/utils/conv_utils_test.py <ide> def test_normalize_tuple(self): <ide> ValueError, r'The `strides` argument .* a tuple of 3 integers.* \(2, 1\)$'): <ide> conv_utils.normalize_tuple((2, 1), n=3, name='strides', allow_zero=True) <ide> <del> with self.assertRaises( <add> with self.a...
1
Python
Python
ignore the result of periodictask's by default
4722cfa99cbc467eba77db1cae7bc93eb8cda178
<ide><path>celery/task/base.py <ide> class PeriodicTask(Task): <ide> <ide> """ <ide> run_every = timedelta(days=1) <add> ignore_result = True <ide> type = "periodic" <ide> <ide> def __init__(self):
1
Text
Text
update form examples [ci skip]
f2cedf91516f64f170e0567af12fc46f9620febe
<ide><path>guides/source/action_text_overview.md <ide> Then refer to this field in the form for the model: <ide> <ide> ```erb <ide> <%# app/views/messages/_form.html.erb %> <del><%= form_with(model: message) do |form| %> <add><%= form_with model: message do |form| %> <ide> <div class="field"> <ide> <%= form.labe...
9
Text
Text
add date to 3.12 release
68b23075a2d72935f1e6c428c664d49412a8af68
<ide><path>docs/community/release-notes.md <ide> You can determine your currently installed version using `pip show`: <ide> <ide> ### 3.12.0 <ide> <add>Date: 28th September 2020 <add> <ide> * Add `--file` option to `generateschema` command. [#7130] <ide> * Support `tags` for OpenAPI schema generation. See [the schema...
1
PHP
PHP
fix bugs. add tests
d48e5312550e7df050f63c5040c3043cde96f369
<ide><path>src/Illuminate/Database/Connection.php <ide> public function select($query, $bindings = [], $useReadPdo = true) <ide> } <ide> <ide> /** <del> * Run a select statement against the database and returns a cursor. <add> * Run a select statement against the database and returns a generator. <ide>...
4
Text
Text
fix spacy convert argument
02369f91d307a6ba43f1d9ad97efbb5e348cc599
<ide><path>website/docs/usage/adding-languages.md <ide> One thing to keep in mind is that spaCy expects to train its models from **whole <ide> documents**, not just single sentences. If your corpus only contains single <ide> sentences, spaCy's models will never learn to expect multi-sentence documents, <ide> leading to...
1
Javascript
Javascript
attach "default events" to all viewconfigs
d01676630362bcb4da11780ae61f43dc56d86677
<ide><path>Libraries/ReactNative/getNativeComponentAttributes.js <ide> function getNativeComponentAttributes(uiViewClassName: string): any { <ide> directEventTypes, <ide> }); <ide> <del> if (!hasAttachedDefaultEventTypes) { <del> attachDefaultEventTypes(viewConfig); <del> hasAttachedDefaultEventTypes = tr...
1
Javascript
Javascript
add missing semicolons in sea3dloader
6160d83b220550730a5310a3b96fab43aa60434e
<ide><path>examples/js/loaders/sea3d/SEA3DLoader.js <ide> THREE.SEA3D.ScriptDomain = function( domain, root ) { <ide> <ide> return domain.id; <ide> <del> } <add> }; <ide> <ide> this.isRoot = function() { <ide> <ide> return root; <ide> <del> } <add> }; <ide> <ide> this.addEvent = function( type, listener ) {...
1
PHP
PHP
add method to register a 'retrieved' model event
e00feed421ab788a593e3a19a41fc0b342c03c07
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasEvents.php <ide> public static function deleted($callback) <ide> static::registerModelEvent('deleted', $callback); <ide> } <ide> <add> /** <add> * Register a retrieved model event with the dispatcher. <add> * <add> * @param \Closure|st...
1
Javascript
Javascript
add cachebreaker to remote assets
3ade096f02191b3f978fec71c3dff3cffa676f66
<ide><path>Libraries/Image/AssetSourceResolver.js <ide> export type ResolvedAssetSource = {| <ide> import type {PackagerAsset} from '@react-native/assets/registry'; <ide> <ide> const PixelRatio = require('../Utilities/PixelRatio'); <del>const pickScale = require('./AssetSourcePickScale'); <add>const {pickScale} = requ...
3
Text
Text
fix typo - stacks being managed, not tasks?
88da491cd9e2c2ea15df15654ac4d98f425d54ed
<ide><path>experimental/docker-stacks-and-bundles.md <ide> axqh55ipl40h vossibility-stack_vossibility-collector 1 icecrime/vossibility-co <ide> <ide> ## Managing stacks <ide> <del>Tasks are managed using the `docker stack` command: <add>Stacks are managed using the `docker stack` command: <ide> <ide> ```bash <ide>...
1
Javascript
Javascript
name anonymous functions in _http_outgoing
2ccf601efefe116a4bc208387cba39408cdd9547
<ide><path>lib/_http_outgoing.js <ide> function utcDate() { <ide> } <ide> return dateCache; <ide> } <del>utcDate._onTimeout = function() { <add>utcDate._onTimeout = function _onTimeout() { <ide> dateCache = undefined; <ide> }; <ide> <ide> util.inherits(OutgoingMessage, Stream); <ide> exports.OutgoingMessage = Ou...
1
Java
Java
add dedicated concat for array of publishers
3f324c6889b5369b79bdd3dfb8b4854b650a90be
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public static <T> Flowable<T> concat( <ide> return concatArray(p1, p2, p3, p4, p5, p6, p7, p8, p9); <ide> } <ide> <del> @SuppressWarnings({ "unchecked", "rawtypes" }) <ide> @BackpressureSupport(BackpressureKind.FULL) <ide> @SchedulerSuppo...
4
Javascript
Javascript
fix composition mode in ie for korean input
2789ccbcf9666b64211c08b188b168175109f563
<ide><path>src/ng/directive/input.js <ide> function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) { <ide> composing = true; <ide> }); <ide> <add> // Support: IE9+ <add> element.on('compositionupdate', function(ev) { <add> // End composition when ev.data is empty string on 'composit...
1
Javascript
Javascript
add known issue about firefox selection behavior
dcc57f1718b1b52a22ad833de4d093bcb418064b
<ide><path>src/ng/directive/select.js <ide> var SelectController = <ide> * @param {string=} ngAttrSize sets the size of the select element dynamically. Uses the <ide> * {@link guide/interpolation#-ngattr-for-binding-to-arbitrary-attributes ngAttr} directive. <ide> * <add> * <add> * @knownIssue <add> * <add> * In Fir...
1
Text
Text
add notes on authenticating locally
fa6de3c83f473d577daf7519549fe786dace34e0
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> Meaning, if you visit <http://localhost:3000/explorer> you should see the APIs t <ide> <ide> Congratulations 🎉! You now have a copy of freeCodeCamp's entire learning platform running on your local machine. <ide> <add>## How to Sign in when working locally <a...
1
Ruby
Ruby
add class name to method_added error
fb83fc7bc4bb7260ea300cf1b2f4874ee7268755
<ide><path>Library/Homebrew/formula.rb <ide> def patch <ide> def self.method_added method <ide> case method <ide> when :brew <del> raise "You cannot override Formula#brew" <add> raise "You cannot override Formula#brew in class #{name}" <ide> when :test <ide> @test_defined = true <ide> ...
1
Javascript
Javascript
remove extra newline in errors
49d1c366d85f4b7e321b1d71eabaae59c20b83c5
<ide><path>lib/child_process.js <ide> function checkExecSyncError(ret) { <ide> if (!err) { <ide> var msg = 'Command failed: '; <ide> msg += ret.cmd || ret.args.join(' '); <del> if (ret.stderr) <add> if (ret.stderr && ret.stderr.length > 0) <ide> msg += '\n' + ret.stderr.toString(); <id...
2
Ruby
Ruby
remove unreachable branch in env.fortran
38c1d25036d3851de120df46179dd78d31ccb369
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def fortran <ide> <ide> HomebrewEnvExtension::FC_FLAG_VARS.each {|key| self[key] = cflags} <ide> set_cpu_flags(HomebrewEnvExtension::FC_FLAG_VARS) <del> else <del> onoe <<-EOS <del>This formula requires a fortran compiler, but we could not find one by...
1
PHP
PHP
update a test to cover more cases
bb435dfdae377be94bebd7d3a721a084e4349a2a
<ide><path>tests/TestCase/Console/ConsoleOptionParserTest.php <ide> public function testMultipleOptions() <ide> public function testAddOptionWithMultiple() <ide> { <ide> $parser = new ConsoleOptionParser('test', false); <del> $parser->addOption('source', ['multiple' => true]); <add> $parse...
1
Python
Python
add cache_dir to save features textdataset
21d719238c68154798bff21581b82410f303e9ba
<ide><path>examples/language-modeling/run_language_modeling.py <ide> class DataTrainingArguments: <ide> ) <ide> <ide> <del>def get_dataset(args: DataTrainingArguments, tokenizer: PreTrainedTokenizer, evaluate=False): <add>def get_dataset( <add> args: DataTrainingArguments, <add> tokenizer: PreTrainedTokeniz...
2
Javascript
Javascript
react onlychild utility
1112f1a00305626377f0f9402f139622c57be014
<ide><path>src/utils/__tests__/onlyChild-test.js <add>/** <add> * @emails react-core <add> * @jsx React.DOM <add> */ <add> <add>"use strict"; <add> <add>describe('onlyChild', function() { <add> <add> var React; <add> var onlyChild; <add> var WrapComponent; <add> <add> beforeEach(function() { <add> React = requir...
2
PHP
PHP
fix missing quotation mark
a121e0b628993604b5b869c3b80b0c49ef8dfac2
<ide><path>cake/console/templates/skel/config/bootstrap.php <ide> /** <ide> * As of 1.3, additional rules for the inflector are added below <ide> * <del> * Inflector::rules('singular', array('rules' => array(), irregular' => array(), 'uninflected' => array())); <add> * Inflector::rules('singular', array('rules' => ar...
1
Mixed
Python
initialize trues to 0.0 in training example
ae5601beae505d46861aae230522d956d9979b17
<ide><path>.github/contributors/gavrieltal.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project...
2
Text
Text
add changelog entry
36720af42995c8bac06ea7187e2c5768f89c2783
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add backtrace to development routing error page. *Richard Schneeman* <add> <ide> * Replace `include_seconds` boolean argument with `:include_seconds => true` option <ide> in `distance_of_time_in_words` and `time_ago_in_words` ...
1
Ruby
Ruby
fix delete_all when chained with joins
6f6c2909dcf32fca71ccc645a36469864b97894a
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def sanitize_limit(limit) <ide> # on mysql (even when aliasing the tables), but mysql allows using JOIN directly in <ide> # an UPDATE statement, so in the mysql adapters we redefine this to do that. <ide> ...
4
Javascript
Javascript
remove unused var from child-process-fork
7b0cf87101407f43e2ba7e76572adac8cf501238
<ide><path>test/parallel/test-child-process-fork.js <ide> var args = ['foo', 'bar']; <ide> var n = fork(common.fixturesDir + '/child-process-spawn-node.js', args); <ide> assert.deepStrictEqual(args, ['foo', 'bar']); <ide> <del>var messageCount = 0; <del> <ide> n.on('message', function(m) { <ide> console.log('PARENT ...
1
Javascript
Javascript
update workers for `next export`
61b8b7323e089c8cc0372ce0f32402c8d70096f8
<ide><path>packages/next/export/index.js <ide> import { cpus } from 'os' <del>import { fork } from 'child_process' <del>import { recursiveCopy } from '../lib/recursive-copy' <add>import chalk from 'chalk' <add>import Worker from 'jest-worker' <add>import { promisify } from 'util' <ide> import mkdirpModule from 'mkdirp'...
17
Javascript
Javascript
remove test case 0 from tls-cnnic-whitelist
1d72434c8b80607078bf83c415307be811a6cd95
<ide><path>test/parallel/test-tls-cnnic-whitelist.js <ide> function loadPEM(n) { <ide> } <ide> <ide> const testCases = [ <del> { // Test 0: for the check of a cert not in the whitelist. <del> // agent7-cert.pem is issued by the fake CNNIC root CA so that its <del> // hash is not listed in the whitelist. <del> ...
1
Javascript
Javascript
reduce the memory usage of the operator list
f4942b11f8ed58d9376898a67cc05efc98c4e563
<ide><path>src/core/core.js <ide> var Page = (function PageClosure() { <ide> var annotations = datas[1]; <ide> <ide> if (annotations.length === 0) { <del> PartialEvaluator.optimizeQueue(pageOpList); <ide> pageOpList.flush(true); <ide> promise.resolve(pageOpList); <ide> ...
8
PHP
PHP
use array_merge_recursive in input class
98fa907805f24a90d0394e6a15b032c8a5fd8f2a
<ide><path>laravel/input.php <ide> class Input { <ide> */ <ide> public static function all() <ide> { <del> $input = array_merge(static::get(), static::query(), static::file()); <add> $input = array_merge_recursive(static::get(), static::query(), static::file()); <ide> <ide> unset($input[Request::spoofer]); <id...
1
Text
Text
fix positional/option in cli types
83c1b919a7f35452a23a1016fd862e6034107cfb
<ide><path>website/docs/api/cli.md <ide> $ python -m spacy info [model] [--markdown] [--silent] [--exclude] <ide> <ide> | Name | Description | <ide> | ------------------------------------------...
1
Python
Python
fix typo in docstring of bitwise_or
952ae80c9e780100a0fa017fe8ef0fe988ba4ad2
<ide><path>numpy/core/code_generators/ufunc_docstrings.py <ide> def add_newdoc(place, name, doc): <ide> <ide> Examples <ide> -------- <del> The number 13 has the binaray representation ``00001101``. Likewise, <add> The number 13 has the binary representation ``00001101``. Likewise, <ide> 16 is repres...
1
Javascript
Javascript
add ref to integer
eaa08062f317a439ec655a231cee948ead8ae7dd
<ide><path>tools/doc/type-parser.js <ide> const jsDocUrl = 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/' + <ide> 'Reference/Global_Objects/'; <ide> const jsPrimitiveUrl = 'https://developer.mozilla.org/en-US/docs/Web/' + <ide> 'JavaScript/Data_structures'; <del>const...
1
Javascript
Javascript
fix removealllisteners() for stream.readable
9f4bf4ca43bc40f68a05c87081a9bae8736515b1
<ide><path>lib/_stream_readable.js <ide> Readable.prototype.removeListener = function(ev, fn) { <ide> }; <ide> <ide> Readable.prototype.removeAllListeners = function(ev) { <del> const res = Stream.prototype.removeAllListeners.call(this, ev); <add> const res = Stream.prototype.removeAllListeners.apply(this, arguments...
2
Mixed
Text
add extends to derived classes
5c9209bc4d9f5e7da78eb03824ad27add5324bc8
<ide><path>doc/api/assert.md <ide> lenient legacy mode. <ide> <ide> ## Class: assert.AssertionError <ide> <del>A subclass of `Error` that indicates the failure of an assertion. All errors <del>thrown by the `assert` module will be instances of the `AssertionError` class. <add>* Extends: {errors.Error} <add> <add>Indi...
3
Python
Python
use model_dir inside of load_model
c19b83f6ae42634d6b2a1403bebf328edcd61de6
<ide><path>examples/training/load_ner.py <ide> def load_model(model_dir): <ide> with (model_dir / 'vocab' / 'strings.json').open('r', encoding='utf8') as file_: <ide> nlp.vocab.strings.load(file_) <ide> nlp.vocab.load_lexemes(model_dir / 'vocab' / 'lexemes.bin') <del> ner = EntityRecognizer.load(path...
1
Mixed
Javascript
add rm method
4e9f3cc6fe7147128c2e837ff94d18dd8778e6fc
<ide><path>doc/api/errors.md <ide> added: v14.0.0 <ide> Used when a feature that is not available <ide> to the current platform which is running Node.js is used. <ide> <add><a id="ERR_FS_EISDIR"></a> <add>### `ERR_FS_EISDIR` <add> <add>Path is a directory. <add> <ide> <a id="ERR_FS_FILE_TOO_LARGE"></a> <ide> ### `ERR_...
10
Ruby
Ruby
use prepare-hermes-for-build in cocoapods
aaa01f77106f891696d9ec508e2ee71111a6af2a
<ide><path>scripts/react_native_pods.rb <ide> def use_react_native! (options={}) <ide> end <ide> <ide> if hermes_enabled <add> system("(cd #{prefix} && node scripts/hermes/prepare-hermes-for-build)") <ide> pod 'React-hermes', :path => "#{prefix}/ReactCommon/hermes" <del> hermes_source_path = downloadAndC...
1
Javascript
Javascript
add additional ssg transform test
05ba91d3ba50d097a5c3ec59c971778e6b8d0fc0
<ide><path>test/unit/babel-plugin-next-ssg-transform.test.js <ide> describe('babel plugin (next-ssg-transform)', () => { <ide> ) <ide> }) <ide> <add> it('should remove re-exported variable declarations (safe)', () => { <add> const output = babel(trim` <add> const unstable_getStaticPaths = () =...
1
Text
Text
fix nits in esm.md
9d21b0395cc248a0e5537a11cc84f61919eccca6
<ide><path>doc/api/esm.md <ide> from `data:text/javascript,import "./foo";` will fail to resolve since there <ide> is no concept of relative resolution for `data:` URLs. An example of a `data:` <ide> URLs being used is: <ide> <del>```mjs <del>import 'data:text/javascript,console.log("hello!");' <del>import _ from 'dat...
1
Text
Text
add release notes for v1.2.30
83bc2479675fd1e0e023c5be1dbcbeb2e2932c6d
<ide><path>CHANGELOG.md <add><a name="1.2.30"></a> <add># 1.2.30 patronal-resurrection (2016-07-21) <add> <add> <add>_**Note:** This release contains some security fixes that required breaking changes. Since the <add>legacy 1.2.x branch is the only version branch that supports IE8, it was necessary to introduce a <add>...
1
Python
Python
get a better error when check_copies fails
4ba248748f779b6eb1317734a2493307b3c26431
<ide><path>tests/test_utils_check_copies.py <ide> def check_copy_consistency(self, comment, class_name, class_code, overwrite_resu <ide> with open(fname, "w") as f: <ide> f.write(code) <ide> if overwrite_result is None: <del> self.assertTrue(check_copies.is_copy_consistent(fname))...
2
Mixed
Javascript
make params in writing methods optional
c100f9ad295b3d930cc47b9b4d91abd34ce93973
<ide><path>doc/api/fs.md <ide> added: v10.0.0 <ide> Change the file system timestamps of the object referenced by the {FileHandle} <ide> then resolves the promise with no arguments upon success. <ide> <del>#### `filehandle.write(buffer[, offset[, length[, position]]])` <add>#### `filehandle.write(buffer, offset[, leng...
6
Mixed
Text
add an option `end_at` to `find_in_batches`
3dc432068b295504be938e7d4d67bc628edbf850
<ide><path>activerecord/CHANGELOG.md <add>* `find_in_batches` now accepts an `:end_at` parameter that complements the `:start` <add> parameter to specify where to stop batch processing. <add> <add> *Vipul A M* <add> <ide> * Fix rounding problem for PostgreSQL timestamp column. <ide> <ide> If timestamp c...
4
Python
Python
document the method tofile()
2e6688521aabe7a03fd980e226f7088abb71a307
<ide><path>numpy/add_newdocs.py <ide> <ide> <ide> add_newdoc('numpy.core.multiarray', 'ndarray', ('tofile', <del> """a.tofile(fid, sep="") -> None. Write the data to a file. <add> """a.tofile(fid, sep="", format="%s") -> None. Write the data to a file. <add> <add> Required arguments: <add> file -- an ...
1
PHP
PHP
fix lazycollection#takeuntiltimeout
aac0da02132d38cff8fe9ff6aee5f9b0ca689a18
<ide><path>src/Illuminate/Collections/LazyCollection.php <ide> public function takeUntilTimeout(DateTimeInterface $timeout) <ide> $timeout = $timeout->getTimestamp(); <ide> <ide> return new static(function () use ($timeout) { <del> $iterator = $this->getIterator(); <del> <del> if ...
3
Javascript
Javascript
preserve cursor pos
c07edd90f5bfb4edb98b57e76e56742e08142b91
<ide><path>lib/_debugger.js <ide> Interface.prototype.childPrint = function(text) { <ide> }).map(function(chunk) { <ide> return '< ' + chunk; <ide> }).join('\n')); <del> this.repl.displayPrompt(); <add> this.repl.displayPrompt(true); <ide> }; <ide> <ide> // Errors formatting <ide><path>lib/readline.js <ide> ...
3
PHP
PHP
fix most coding standards in test/case/view
f5804cb4caca2dc3f98e42fa64c4de35055bc17d
<ide><path>lib/Cake/Test/Case/View/Helper/CacheHelperTest.php <ide> public function cache_parsing() { <ide> $this->set('batman', 'bruce wayne'); <ide> $this->set('spiderman', 'peter parker'); <ide> } <add> <ide> } <ide> <ide> /** <ide> public function setUp() { <ide> Configure::write('Cache.check', true); <ide>...
19
Javascript
Javascript
add assertions to zero length buffer test
927661f8ace022a0f77a35ea76dffb5bb21b188d
<ide><path>test/parallel/test-buffer-slice.js <ide> assert.equal(buf.slice('0', '-111'), ''); <ide> <ide> // try to slice a zero length Buffer <ide> // see https://github.com/joyent/node/issues/5881 <del>Buffer.alloc(0).slice(0, 1); <add>assert.doesNotThrow(() => Buffer.alloc(0).slice(0, 1)); <add>assert.strictEqual(B...
1
Python
Python
add upsampling layer tests
84909a49c2c58d7cda893897c183067acc0794ef
<ide><path>tests/auto/keras/layers/test_convolutional.py <ide> def test_convolution_1d(self): <ide> for subsample_length in [1, 3]: <ide> for W_regularizer in [None, 'l2']: <ide> for b_regularizer in [None, 'l2']: <del> layer = convo...
1
Javascript
Javascript
update jquery code
98a1c9fd05bbcfdf7c8b50377ce7c76e7ae9b480
<ide><path>tests/jquery-1.7.1.js <ide> /*! <del> * jQuery JavaScript Library v1.7.1 <add> * jQuery JavaScript Library v1.7.2 <ide> * http://jquery.com/ <ide> * <ide> * Copyright 2011, John Resig <ide> * Copyright 2011, The Dojo Foundation <ide> * Released under the MIT, BSD, and GPL Licenses. <ide> * <del> * Date...
1
Python
Python
raise error for negative arc indices (closes )
cc76a26fe815b400794964b383df4cd81f564f2f
<ide><path>spacy/displacy/render.py <ide> from .templates import TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_ARCS, TPL_ENTS <ide> from .templates import TPL_ENT, TPL_ENT_RTL, TPL_FIGURE, TPL_TITLE, TPL_PAGE <ide> from ..util import minify_html, escape_html, get_entry_points <add>from ..errors import Errors <add> <ide> <ide> D...
3
PHP
PHP
add second param
1c75bf80888bbd5c76950395cbded1db5c6d607d
<ide><path>src/Illuminate/Foundation/Testing/TestResponse.php <ide> public function assertExactJson(array $data) <ide> * Assert that the response has a given JSON structure. <ide> * <ide> * @param array|null $structure <add> * @param array|null $responseData <ide> * @return $this <ide> ...
1
Go
Go
add fast path for userns
67aa418df26f850be34b0536a3e32ba218d71bec
<ide><path>daemon/graphdriver/overlay2/check.go <ide> import ( <ide> "path/filepath" <ide> "syscall" <ide> <add> "github.com/containerd/containerd/sys" <ide> "github.com/docker/docker/pkg/system" <ide> "github.com/pkg/errors" <ide> "golang.org/x/sys/unix" <ide> import ( <ide> // which copies up the opaque flag wh...
1
Python
Python
move export_base.py to oss
0d3cab0c998cba761aaa38c2c65fa11b1988c219
<ide><path>official/core/export_base.py <add># Copyright 2021 The TensorFlow Authors. All Rights Reserved. <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <add># <add># ...
1
Ruby
Ruby
remove thread hack for ruby 1.9
a856b3dc2cf6715c96d117996994e3eb092eae59
<ide><path>activerecord/test/cases/transactions_test.rb <ide> def test_rollback_when_saving_a_frozen_record <ide> assert topic.frozen?, 'not frozen' <ide> end <ide> <del> # The behavior of killed threads having a status of "aborting" was changed <del> # in Ruby 2.0, so Thread#kill on 1.9 will prematurely commi...
1
Python
Python
replace \t by whitespace for readability
4f748ee310048c1b4c100cc155399fbc8e6ad98c
<ide><path>numpy/f2py/cb_rules.py <ide> jmp_buf #name#_jmpbuf; <ide> /*typedef #rctype#(*#name#_typedef)(#optargs_td##args_td##strarglens_td##noargs#);*/ <ide> #static# #rctype# #callbackname# (#optargs##args##strarglens##noargs#) { <del>\tPyTupleObject *capi_arglist = #name#_args_capi; <del>\tPyObject *capi_return = N...
1
Ruby
Ruby
fix typo in spec
564a06dfbb711a995558c64c55b353d1fdfcb473
<ide><path>Library/Homebrew/test/utils/github_spec.rb <ide> describe "::search_issues", :needs_network do <ide> it "queries GitHub issues with the passed parameters" do <ide> results = subject.search_issues("brew search", repo: "Homebrew/brew", author: "avetamine", is: "closed") <del> expect(results.co...
1
Javascript
Javascript
update example to use a module
e83c5ba68e9a154a28c7045042502af180623a00
<ide><path>src/ng/directive/ngPluralize.js <ide> * @param {number=} offset Offset to deduct from the total number. <ide> * <ide> * @example <del> <example> <add> <example module="pluralizeExample"> <ide> <file name="index.html"> <ide> <script> <del> function Ctrl($scope) { <del> ...
1
Python
Python
fix mobilenet bugs
8040ad72dd488feac9843caca4f875186d3b75c1
<ide><path>keras/applications/mobilenet.py <ide> def MobileNet(input_shape=None, <ide> '(pre-training on ImageNet).') <ide> <ide> if weights == 'imagenet' and include_top and classes != 1000: <del> raise ValueError('If using `weights` as ImageNet with `include_top`' <del> ...
1
Text
Text
add arabic translation for bash-chmod
635d97d559b287a52e2f9d534b3fe96bfd760356
<ide><path>guide/arabic/bash/bash-chmod/index.md <add>--- <add>title: Bash chmod <add>localeTitle: باش chmod <add>--- <add> <add>## ايعاز باش: chomd <add> <add>**يستخدم لتغير تصريح الملفات او المجلدات** <add> <add>مثال: <add> <add>`chmod u+x hello.py` <add> <add>يمنح المستخدم التصريح لتنفيذ الملف. <add> <add>### للمزيد...
1
PHP
PHP
avoid aliases.
563af376828934fb796e400c9f69a0ef439d53c9
<ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php <ide> public function withCount($relations) <ide> // Finally we will add the proper result column alias to the query and run the subselect <ide> // statement against the query builder. Then we will return the builder i...
1
Python
Python
build priority packages in separate processes pool
2d3b63d14302187d5ca49d3fcb058832418eeeb2
<ide><path>docs/build_docs.py <ide> from rich.console import Console <ide> from tabulate import tabulate <ide> <add>from airflow.utils.helpers import partition <ide> from docs.exts.docs_build import dev_index_generator, lint_checks # pylint: disable=no-name-in-module <ide> from docs.exts.docs_build.code_utils import ...
1
Javascript
Javascript
use modern imports
64d471600337222ac0a0ff07891140807c1b2471
<ide><path>spec/git-repository-async-spec.js <ide> 'use babel' <ide> <del>const fs = require('fs-plus') <del>const path = require('path') <del>const temp = require('temp') <del>const Git = require('nodegit') <add>import fs from 'fs-plus' <add>import path from 'path' <add>import temp from 'temp' <add>import Git from 'n...
2
Go
Go
fix race in restart loop
752a0d6f34ee3c92dc877273c33b8cd0239fda71
<ide><path>integration-cli/docker_cli_restart_test.go <ide> func TestRestartWithVolumes(t *testing.T) { <ide> logDone("restart - does not create a new volume on restart") <ide> } <ide> <del>func TestRecordRestartPolicyNO(t *testing.T) { <add>func TestRestartPolicyNO(t *testing.T) { <ide> defer deleteAllContainers() ...
1
Javascript
Javascript
propagate weak option for knewlistener
606f7213c4392e73dbe3aaec2418d6722a86d69a
<ide><path>lib/internal/event_target.js <ide> class EventTarget { <ide> initEventTarget(this); <ide> } <ide> <del> [kNewListener](size, type, listener, once, capture, passive) { <add> [kNewListener](size, type, listener, once, capture, passive, weak) { <ide> if (this[kMaxEventTargetListeners] > 0 && <ide> ...
1
Java
Java
remove factory methods from webreactiveconfigurer
61cf9fdda5b2219adc76a4a3e024006ed01fcdd6
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/config/DelegatingWebReactiveConfiguration.java <ide> import org.springframework.validation.Validator; <ide> import org.springframework.web.reactive.accept.RequestedContentTypeResolverBuilder; <ide> import org.springframework.web.reactive.resu...
4
Python
Python
resolve line-too-long in testing_infra
37055edc159d9c851262bb657b0f3e1e2254a435
<ide><path>keras/testing_infra/keras_doctest_lib.py <ide> class _FloatExtractor(object): <ide> dot_digits=r"(?:\.[0-9]+)", <ide> # digits: "12" <ide> digits=r"(?:[0-9]+)", <del> # The exponent: An "e" or "E", optional sign, and at least one digit. <del> # "e-123...
3
Text
Text
add note about habtm relations with scopes
2ffeee3d2a211f7bb84c6b209c6d2c576ae6d586
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> CatalogProduct < ActiveRecord::Base <ide> end <ide> ``` <ide> <add>* Note that the the prefix takes scopes into account as well, so relations between `Catalog::Category` and `Catalog::Product` or `Catalog::Category` and `CatalogProduct` need to be updated simil...
1
Text
Text
add alt to laravel logo image
c233957734b1353d8952e07c1dae462f8cddc3d4
<ide><path>README.md <del><p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p> <add><p align="center"><a href="https://laravel.com" target="_blank...
1
PHP
PHP
support custom urls for aws storage
dfd494f0515d8bf712ac0e751b2baf7e687fddeb
<ide><path>config/filesystems.php <ide> <ide> 's3' => [ <ide> 'driver' => 's3', <add> 'url' => env('AWS_URL'), <ide> 'key' => env('AWS_KEY'), <ide> 'secret' => env('AWS_SECRET'), <ide> 'region' => env('AWS_REGION'),
1
Python
Python
update quick_sort.py (#830)
a0ab3ce098c95c7edf3f32fedc9d3930d2d641e8
<ide><path>sorts/quick_sort.py <ide> def quick_sort(collection): <ide> return collection <ide> else: <ide> pivot = collection[0] <del> greater = [element for element in collection[1:] if element > pivot] <del> lesser = [element for element in collection[1:] if element <= pivot] <add> ...
1
Javascript
Javascript
add help option to react-native-cli
9c667f29688158727f2b02f4a8954e2018423ea0
<ide><path>react-native-cli/index.js <ide> var commands = argv._; <ide> if (cli) { <ide> cli.run(); <ide> } else { <add> if (argv._.length === 0 && (argv.h || argv.help)) { <add> console.log([ <add> '', <add> ' Usage: react-native [command] [options]', <add> '', <add> '', <add> ' Comman...
1
Javascript
Javascript
update webglutils for webgl 2.0 unsigned_int_24_8
f02117fe857f8bb5517830a14969ade397494e4a
<ide><path>src/renderers/webgl/WebGLUtils.js <ide> function WebGLUtils( gl, extensions ) { <ide> <ide> extension = extensions.get( 'WEBGL_depth_texture' ); <ide> <del> if ( extension !== null ) return extension.UNSIGNED_INT_24_8_WEBGL; <add> if ( extension !== null ) return isWebGL2 ? extension.UNSIGNED_INT_24...
1
Javascript
Javascript
change schema and unpack script
b014b234042c8573660d1cb72ab105d2eeea819c
<ide><path>getChallenges.js <ide> function superblockInfo(filePath) { <ide> } <ide> } <ide> <del>module.exports = function getChallenges(challengesDir) { <add>// unpackFlag is an argument passed by the unpack script in unpack.js <add>// which allows us to conditionall omit translations when running <add>// the test ...
4
Javascript
Javascript
add tests for moment#tonow and fixed prototype
d34425468c8c926ccd1e44d0c1a9288db6c87f67
<ide><path>src/lib/moment/prototype.js <ide> proto.format = format; <ide> proto.from = from; <ide> proto.fromNow = fromNow; <ide> proto.to = to; <del>proto.toNow = fromNow; <add>proto.toNow = toNow; <ide> proto.get = getSet; <ide> proto.invalidAt = invalidAt; <ide>...
2
Javascript
Javascript
add use-subscription to rollup bundle config
8d540387736ac8a3d2d1e932b187cf7fe2c9607e
<ide><path>scripts/rollup/bundles.js <ide> const bundles = [ <ide> externals: ['react', 'scheduler'], <ide> }, <ide> <del> /******* createComponentWithSubscriptions (experimental) *******/ <add> /******* createComponentWithSubscriptions *******/ <ide> { <ide> bundleTypes: [NODE_DEV, NODE_PROD], <ide> ...
1
Text
Text
remove unsused link
a17d5d2b0bff535dc1d7dcbd36947648e7a0511f
<ide><path>docs/tutorial/1-serialization.md <ide> We'll see how we can start to improve things in [part 2 of the tutorial][tut-2]. <ide> [virtualenv]: http://www.virtualenv.org/en/latest/index.html <ide> [tut-2]: 2-requests-and-responses.md <ide> [httpie]: https://github.com/jakubroztocil/httpie#installation <del>[brew...
1
Python
Python
move microvertion to connection
2309be55f5b98e08c557614078195a7ea816ddc4
<ide><path>libcloud/common/openstack.py <ide> def __init__( <ide> ex_force_service_type=None, <ide> ex_force_service_name=None, <ide> ex_force_service_region=None, <add> ex_force_microversion=None, <ide> ex_auth_cache=None, <ide> retry_delay=None, <ide> backoff=Non...
3
Javascript
Javascript
show different text for build error skips
d94145e38de0d2a182e872b3eb5ed0cc7119a94b
<ide><path>lib/cache/PackFileCacheStrategy.js <ide> class PackContentItems { <ide> } catch (e) { <ide> rollback(s); <ide> if (e === NOT_SERIALIZABLE) continue; <del> const message = `Skipped not serializable cache item: ${e.message}`; <add> const msg = "Skipped not serializable cache item"; <ide> ...
1
Text
Text
add cask cookbook link to maintainer guidlines
73ca9a0e05efa24c9e26011271729589d48e481b
<ide><path>docs/Maintainer-Guidelines.md <ide> access** to Homebrew’s repository and help merge the contributions of <ide> others. You may find what is written here interesting, but it’s <ide> definitely not a beginner’s guide. <ide> <del>Maybe you were looking for the [Formula Cookbook](Formula-Cookbook.md)? <add>May...
1
Python
Python
fix merge conflicts
095b6c118cb0b0c3bfda9c012e2dbcd5546f4afb
<ide><path>keras/backend/tensorflow_backend.py <ide> def mean(x, axis=None, keepdims=False): <ide> def any(x, axis=None, keepdims=False): <ide> '''Bitwise reduction (logical OR). <ide> <del> Return array of int8 (0s and 1s). <add> Return array of uint8 (0s and 1s). <ide> ''' <ide> axis = normalize_ax...
9
Go
Go
run auplink before unmounting aufs
2f67a62b5b48862948b1ce92aeffbb83c3707ee0
<ide><path>mount.go <ide> package docker <ide> <ide> import ( <ide> "fmt" <add> "github.com/dotcloud/docker/utils" <ide> "os" <add> "os/exec" <ide> "path/filepath" <ide> "syscall" <ide> "time" <ide> ) <ide> <ide> func Unmount(target string) error { <add> if err := exec.Command("auplink", target, "flush").Run(); ...
1
Javascript
Javascript
add lazy evaluation tests
78cea046e4ca01a068ae5701cd835357584327ff
<ide><path>packages/ember-glimmer/tests/utils/shared-conditional-tests.js <ide> export class TogglingHelperConditionalsTest extends TogglingConditionalsTest { <ide> this.assertText('T1'); <ide> } <ide> <add> ['@glimmer evaluation should be lazy'](assert) { <add> let truthyEvaluated; <add> let falsyEvaluat...
1
Ruby
Ruby
fix polymorphic preloads on not null _type columns
de32d972bfde8871f7c1a4621f2223ea9b6715b2
<ide><path>activerecord/lib/active_record/associations/preloader.rb <ide> def grouped_records(association, records) <ide> <ide> reflection_records.each_with_object({}) do |(reflection, r_records),h| <ide> h[reflection] = r_records.group_by { |record| <del> association_klass(reflection, rec...
2
Ruby
Ruby
handle array of licenses
1ac470fe7a939c628f8e532e313ae06a11aeca4a
<ide><path>Library/Homebrew/dev-cmd/bump-revision.rb <ide> def bump_revision <ide> end <ide> <ide> old = if formula.license <add> license_string = if formula.license.length > 1 <add> formula.license <add> else <add> "\"#{formula.license.first}\"" <add> end <ide> ...
1
Javascript
Javascript
allow numbers as answers
1244e9775f664707bc54d5f977a9b29a34615784
<ide><path>tools/challenge-md-parser/tests-to-data.js <ide> function plugin() { <ide> if (lang === 'yml') { <ide> const tests = YAML.load(value); <ide> if (tests.question) { <add> // mdToHTML can not parse numbers. If an answer is a number <add> // (i.e. 5, not '5') it has to be ...
1
Ruby
Ruby
remove dead code
55b0ee787ae88c4bd1087040984303ba53d33c78
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def installed? <ide> !!detect_version <ide> end <ide> <del> def mavericks_dev_tools? <del> MacOS.dev_tools_path == Pathname("#{MAVERICKS_PKG_PATH}/usr/bin") && <del> File.directory?("#{MAVERICKS_PKG_PATH}/usr/include") <del> end ...
1
Ruby
Ruby
pass the correct formats
518ae9f055cd31c0f00c221d56bf0d44733cb782
<ide><path>actionview/lib/action_view/layouts.rb <ide> def _layout_for_option(name) <ide> case name <ide> when String then _normalize_layout(name) <ide> when Proc then name <del> when true then Proc.new { _default_layout(formats, true) } <del> when :default then Proc.new {...
1
Python
Python
add license to migration file
ddbcd88bb086d1978c9196833d126ded18db97f8
<ide><path>airflow/migrations/versions/211e584da130_add_ti_state_index.py <add># -*- coding: utf-8 -*- <add># <add># Licensed under the Apache License, Version 2.0 (the "License"); <add># you may not use this file except in compliance with the License. <add># You may obtain a copy of the License at <add># <add># http:/...
1
PHP
PHP
method() calls
9a2d5c67468be927b0e7530b1a5768a03b32c757
<ide><path>src/Illuminate/Log/Writer.php <ide> public function write() <ide> */ <ide> public function __call($method, $parameters) <ide> { <add> if (isset($parameters[0]) && in_array(gettype($parameters[0]), ['object', 'array', 'resource'])) { <add> $parameters[0] = print_r($parameters[0], true); <add> } <add> ...
1
Text
Text
add v4.5.0-beta.1 to changelog
474057360405daf9d1bb3d402f5742e27e76c8af
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.5.0-beta.1 (May 2, 2022) <add> <add>- [#20052](https://github.com/emberjs/ember.js/pull/20052) / [#20055](https://github.com/emberjs/ember.js/pull/20055) [FEATURE] Add the default helper manager to implement [RFC #0756](https://github.com/emberjs/rfcs/b...
1
Text
Text
remove duplicate information
8ca7abd3f67efd4e1bd688986eba7aa156ee93dd
<ide><path>guide/english/css/background-opacity/index.md <ide> You have to add the following CSS property to achieve the transparency levels. <ide> .class-name { <ide> opacity:0.5; <ide> } <add> <ide> /* Opacity value can be anything between 0 and 1; */ <ide> ``` <ide> <ide> Using the rgba value is most preferable w...
1
Python
Python
fix critical trace warnings to allow onnx export
d53dffec6ef5f0cf28df3a1e7f70f1c5da5762ce
<ide><path>src/transformers/models/deberta_v2/modeling_deberta_v2.py <ide> # limitations under the License. <ide> """ PyTorch DeBERTa-v2 model.""" <ide> <del>import math <ide> from collections.abc import Sequence <ide> from typing import Optional, Tuple, Union <ide> <del>import numpy as np <ide> import torch <ide> im...
2
Javascript
Javascript
improve hmac coverage with webcrypto tests
4811210ca7e49e12512912f3b1bc8fa0ba67ed0f
<ide><path>test/parallel/test-webcrypto-export-import.js <ide> const { subtle, getRandomValues } = require('crypto').webcrypto; <ide> code: 'ERR_INVALID_ARG_TYPE' <ide> }); <ide> }); <add> assert.rejects( <add> subtle.importKey('raw', keyData, { <add> name: 'HMAC' <add> }, false, ['sign', 'v...
1
Javascript
Javascript
unify dom helper across htmlbars and ember views
0c0df5990bf6939c775cd4e82e1a59fde103b710
<ide><path>packages/ember-application/lib/system/application.js <ide> import EnumerableUtils from "ember-metal/enumerable_utils"; <ide> import ObjectController from "ember-runtime/controllers/object_controller"; <ide> import ArrayController from "ember-runtime/controllers/array_controller"; <ide> import Renderer from "...
10
PHP
PHP
fix failing tests in viewbuilder
2fa8735ad25ee2678d6fc65ef60cd9af8e619fa9
<ide><path>src/Error/ExceptionRenderer.php <ide> public function render() <ide> if ($unwrapped instanceof CakeException && $isDebug) { <ide> $this->controller->set($unwrapped->getAttributes()); <ide> } <del> <ide> $this->controller->response = $response; <add> <ide> return $t...
3
Javascript
Javascript
add tests for invalid utf-8
dc35aef14cdf3d3f382d162967788b9064ca6935
<ide><path>test/parallel/test-blob.js <ide> assert.throws(() => new Blob({}), { <ide> })); <ide> } <ide> <add>{ <add> const b = new Blob(['hello', new Uint8Array([0xed, 0xa0, 0x88])]); <add> assert.strictEqual(b.size, 8); <add> b.text().then(common.mustCall((text) => { <add> assert.strictEqual(text, 'hello\uff...
3
Python
Python
add missing import
a95cb4687b3c6feb8ac8f12f04d6c091c52bbf00
<ide><path>libcloud/dns/drivers/route53.py <ide> from libcloud.dns.types import Provider, RecordType <ide> from libcloud.dns.types import ZoneDoesNotExistError, RecordDoesNotExistError <ide> from libcloud.dns.base import DNSDriver, Zone, Record <add>from libcloud.common.types import InvalidCredsError <ide> from libclou...
1